/*
Theme Name: SinYoRo
Description: Custom theme for SinYoRo Sound Tech
Version: 1.0
*/

/* fonts loaded in header.php */

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #111827;
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Layout ────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Announcement Bar ──────────────────────────────────────────────────── */
.announcement-bar {
  background: #1C1917;
  color: #A8A29E;
  text-align: center;
  font-size: 11px;
  font-weight: 400;
  padding: 8px 24px;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.ann-sep { color: #44403C; }

/* ── Header ────────────────────────────────────────────────────────────── */
.site-header {
  background: #fff;
  border-bottom: 1px solid #F5F4F2;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 #F5F4F2;
}

/* Logo row */
.header-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px 0 16px;
}
.site-logo { text-align: center; }
.site-logo a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-decoration: none;
}
.logo-main {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  font-weight: 600;
  color: #1C1917;
  letter-spacing: 3px;
  text-transform: uppercase;
  line-height: 1;
}
.logo-sub {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 500;
  color: #A8A29E;
  letter-spacing: 4px;
  text-transform: uppercase;
}

/* Header divider */
.header-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #E7E5E4 20%, #E7E5E4 80%, transparent);
  margin: 0;
}

/* Navigation row */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
}
.site-nav a {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #78716C;
  padding: 13px 16px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: color 0.15s;
  position: relative;
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 1px;
  background: #1C1917;
  transition: left 0.2s, right 0.2s;
}
.site-nav a:hover { color: #1C1917; }
.site-nav a:hover::after { left: 16px; right: 16px; }

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}
.cart-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #78716C;
  transition: color 0.15s;
}
.cart-link:hover { color: #1C1917; }
.cart-count {
  background: #1C1917;
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  border-radius: 20px;
  padding: 2px 6px;
  min-width: 18px;
  text-align: center;
  letter-spacing: 0;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #78716C;
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: #fff;
  border-bottom: 1px solid #F5F4F2;
  padding: 12px 24px 16px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 13px;
  font-weight: 500;
  color: #44403C;
  padding: 10px 0;
  border-bottom: 1px solid #F5F4F2;
  letter-spacing: 0.3px;
}
.mobile-nav a:last-child { border-bottom: none; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  background: #FAFAF9;
  padding: 96px 24px 88px;
  text-align: center;
  border-bottom: 1px solid #F0EFED;
}
.hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: #A8A29E;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 500;
  color: #1C1917;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
}
.hero-sub {
  font-size: 15px;
  color: #78716C;
  max-width: 460px;
  margin: 0 auto 36px;
  line-height: 1.7;
  font-weight: 400;
}
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #111827;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 6px;
  border: 1.5px solid #111827;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
.btn:hover { background: #1F2937; }
.btn-outline {
  background: transparent;
  color: #111827;
  border: 1.5px solid #D1D5DB;
  margin-left: 10px;
}
.btn-outline:hover { background: #F9FAFB; border-color: #9CA3AF; }

/* ── Section ────────────────────────────────────────────────────────────── */
.section { padding: 72px 0; }
.section-sm { padding: 40px 0; }
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
}
.section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 30px;
  font-weight: 500;
  color: #1C1917;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}
.section-sub {
  font-size: 12px;
  color: #A8A29E;
  letter-spacing: 0.2px;
}
.view-all {
  font-size: 12px;
  font-weight: 500;
  color: #78716C;
  letter-spacing: 0.3px;
  transition: color 0.15s;
  white-space: nowrap;
  padding-bottom: 4px;
}
.view-all:hover { color: #1C1917; }

/* ── Product Slider ─────────────────────────────────────────────────────── */
.slider-card {
  border: 1px solid #F0EFED;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  height: 100%;
}
.slider-card:hover {
  border-color: #E7E5E4;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}
.slider-card__img { display: block; overflow: hidden; }
.slider-card__img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.slider-card:hover .slider-card__img img { transform: scale(1.03); }
.slider-card__body { padding: 14px 16px 16px; }
.slider-card__title {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #1C1917;
  line-height: 1.45;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.slider-card__price {
  font-size: 15px;
  font-weight: 600;
  color: #1C1917;
  margin-bottom: 12px;
}
.slider-card__btn {
  display: block;
  background: #1C1917;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  padding: 9px 14px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background 0.15s;
}
.slider-card__btn:hover { background: #292524; color: #fff; }

/* Splide arrows */
.splide__arrow {
  background: #fff !important;
  border: 1px solid #E7E5E4 !important;
  border-radius: 50% !important;
  width: 36px !important;
  height: 36px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
  opacity: 1 !important;
  transition: border-color 0.15s !important;
}
.splide__arrow:hover { border-color: #1C1917 !important; }
.splide__arrow svg { fill: #1C1917 !important; width: 14px !important; height: 14px !important; }

/* ── Category Grid ──────────────────────────────────────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.category-card {
  border: 1px solid #F0EFED;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.category-card:hover {
  border-color: #E7E5E4;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}
.category-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}
.category-card__info {
  padding: 14px 16px;
}
.category-card h3 {
  font-size: 13px;
  font-weight: 600;
  color: #1C1917;
  margin-bottom: 2px;
}
.category-card span {
  font-size: 11px;
  color: #A8A29E;
  letter-spacing: 0.2px;
}

/* ── Product Grid ───────────────────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* WooCommerce product grid override */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
  float: none !important;
  margin: 0 !important;
}
.woocommerce ul.products::after { display: none !important; }

.woocommerce ul.products li.product,
.product-card {
  border: 1px solid #F3F4F6 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: #fff !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}
.woocommerce ul.products li.product:hover {
  border-color: #E5E7EB !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
}
.woocommerce ul.products li.product a img {
  width: 100% !important;
  height: 200px !important;
  object-fit: cover !important;
  border-radius: 0 !important;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #111827 !important;
  padding: 12px 14px 4px !important;
  line-height: 1.45 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}
.woocommerce ul.products li.product .price {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #111827 !important;
  padding: 4px 14px 10px !important;
  display: block !important;
}
.woocommerce ul.products li.product .button {
  display: block !important;
  background: #111827 !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  text-align: center !important;
  padding: 10px 14px !important;
  margin: 0 14px 14px !important;
  border-radius: 5px !important;
  width: calc(100% - 28px) !important;
  transition: background 0.15s !important;
  border: none !important;
}
.woocommerce ul.products li.product .button:hover {
  background: #1F2937 !important;
  color: #fff !important;
}
.woocommerce span.onsale {
  background: #111827 !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  border-radius: 4px !important;
  padding: 3px 8px !important;
  min-height: unset !important;
  min-width: unset !important;
  top: 10px !important;
  left: 10px !important;
}

/* ── WooCommerce Shop Page ──────────────────────────────────────────────── */
.woocommerce-page .site-content,
.woocommerce .site-content {
  padding: 48px 0 64px;
}
.woocommerce .woocommerce-products-header {
  margin-bottom: 24px;
}
.woocommerce .woocommerce-products-header__title {
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  letter-spacing: -0.4px;
}
.woocommerce-ordering,
.woocommerce-result-count {
  font-size: 13px !important;
  color: #9CA3AF !important;
}
.woocommerce-ordering select {
  border: 1px solid #E5E7EB !important;
  border-radius: 5px !important;
  padding: 7px 12px !important;
  font-size: 13px !important;
  color: #374151 !important;
  background: #fff !important;
}

/* ── Breadcrumbs ────────────────────────────────────────────────────────── */
.woocommerce-breadcrumb {
  font-size: 12px !important;
  color: #9CA3AF !important;
  margin-bottom: 24px !important;
}
.woocommerce-breadcrumb a { color: #6B7280 !important; }
.woocommerce-breadcrumb a:hover { color: #111827 !important; }

/* ── Single Product ─────────────────────────────────────────────────────── */
.woocommerce div.product .product_title {
  font-size: 26px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  letter-spacing: -0.4px !important;
  line-height: 1.3 !important;
  margin-bottom: 10px !important;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-size: 22px !important;
  font-weight: 600 !important;
  color: #111827 !important;
}
.woocommerce div.product .woocommerce-product-details__short-description {
  font-size: 14px !important;
  color: #6B7280 !important;
  line-height: 1.7 !important;
  border-top: 1px solid #F3F4F6;
  padding-top: 16px;
  margin-top: 16px;
}
.single_add_to_cart_button,
.woocommerce #respond input#submit.alt,
.woocommerce button.button.alt {
  background: #111827 !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 14px 36px !important;
  border-radius: 6px !important;
  border: none !important;
  transition: background 0.15s !important;
}
.single_add_to_cart_button:hover { background: #1F2937 !important; }

/* ── All WooCommerce buttons ────────────────────────────────────────────── */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: #111827 !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  border-radius: 5px !important;
  padding: 10px 20px !important;
  border: none !important;
  transition: background 0.15s !important;
}
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: #1F2937 !important;
  color: #fff !important;
}

/* ── Cart & Checkout ────────────────────────────────────────────────────── */
.woocommerce table.shop_table {
  border: 1px solid #F3F4F6 !important;
  border-radius: 8px !important;
  overflow: hidden;
  font-size: 14px !important;
}
.woocommerce table.shop_table thead th {
  background: #F9FAFB !important;
  color: #374151 !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #F3F4F6 !important;
  padding: 12px 16px !important;
}
.woocommerce table.shop_table td { padding: 14px 16px !important; border-bottom: 1px solid #F9FAFB !important; }
#place_order {
  background: #111827 !important;
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  border-radius: 6px !important;
  padding: 14px 40px !important;
  width: 100%;
}

/* ── Forms ──────────────────────────────────────────────────────────────── */
.woocommerce form .form-row input,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
input[type="text"], input[type="email"],
input[type="password"], textarea, select {
  border: 1px solid #E5E7EB !important;
  border-radius: 5px !important;
  font-size: 14px !important;
  color: #111827 !important;
  padding: 10px 14px !important;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: 'Inter', sans-serif !important;
}
input:focus, textarea:focus, select:focus {
  border-color: #111827 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(17,24,39,0.06) !important;
}

/* ── Trust bar ──────────────────────────────────────────────────────────── */
.trust-bar {
  background: #1C1917;
  padding: 48px 0;
}
.trust-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.trust-item { text-align: center; }
.trust-icon {
  font-size: 14px;
  color: #A8A29E;
  margin-bottom: 12px;
  letter-spacing: 2px;
}
.trust-item h4 {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #E7E5E4;
  margin-bottom: 6px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.trust-item p { font-size: 12px; color: #78716C; line-height: 1.6; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  background: #111827;
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #1F2937;
}
.footer-brand p {
  font-size: 13px;
  color: #6B7280;
  margin-top: 10px;
  line-height: 1.6;
  max-width: 260px;
}
.footer-col h5 {
  font-size: 11px;
  font-weight: 600;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: #6B7280;
  margin-bottom: 8px;
  transition: color 0.15s;
}
.footer-col a:hover { color: #E5E7EB; }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p { font-size: 12px; color: #4B5563; }
.footer-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-bottom: 12px;
}
.footer-logo .logo-main {
  color: #FFFFFF;
  letter-spacing: 3px;
}
.footer-logo .logo-sub {
  color: #A8A29E;
}

/* ── Pagination ─────────────────────────────────────────────────────────── */
.woocommerce nav.woocommerce-pagination ul {
  border: none !important;
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-top: 40px;
}
.woocommerce nav.woocommerce-pagination ul li { border: none !important; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  border: 1px solid #E5E7EB !important;
  border-radius: 5px !important;
  color: #374151 !important;
  font-size: 13px !important;
  padding: 7px 12px !important;
  transition: all 0.15s;
}
.woocommerce nav.woocommerce-pagination ul li span.current {
  background: #111827 !important;
  border-color: #111827 !important;
  color: #fff !important;
}

/* ── Notices ────────────────────────────────────────────────────────────── */
.woocommerce-message, .woocommerce-info {
  background: #F0FDF4 !important;
  border-top-color: #111827 !important;
  color: #111827 !important;
  font-size: 14px !important;
}
.woocommerce-error {
  background: #FFF5F5 !important;
  border-top-color: #E53E3E !important;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .woocommerce ul.products { grid-template-columns: repeat(3, 1fr) !important; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-bar .container { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .site-nav { display: none; }
  .nav-toggle { display: block; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 65px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid #F3F4F6;
    padding: 12px 24px;
    gap: 0;
    z-index: 99;
  }
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .trust-bar .container { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 480px) {
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  .hero { padding: 56px 24px; }
}
