/* =============================================
   NYEMILKU MARKETPLACE — Main Stylesheet
   Clean · Lightweight · Multi-brand
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* --- Variables --- */
:root {
  --primary:        #8B5E3C;
  --primary-dark:   #6B4528;
  --primary-light:  #F4EDE4;
  --accent:         #C4956A;
  --accent-light:   #FDF6EE;

  --bg:             #F9F9F7;
  --surface:        #FFFFFF;
  --surface-raised: #FFFFFF;
  --border:         #EBEBEB;
  --border-strong:  #D8D0C8;

  --text:           #1A1A1A;
  --text-2:         #555555;
  --text-3:         #999999;

  --green:          #2D7A4F;
  --green-bg:       #EBF5EF;
  --red:            #C0392B;
  --red-bg:         #FDECEA;
  --gold:           #E8A838;

  --font-display: 'Playfair Display', Georgia, serif;
  --font:         'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 999px;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t:    0.2s var(--ease);

  --w: 1240px;
  --px: clamp(1rem, 4vw, 2rem);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: var(--font); }
h1,h2,h3,h4,h5 { line-height: 1.25; color: var(--text); }

/* --- Container --- */
.wrap {
  width: 100%;
  max-width: var(--w);
  margin-inline: auto;
  padding-inline: var(--px);
}

/* ==============================================
   BUTTONS
   ============================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--r-full);
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--t);
  text-decoration: none;
}
.btn-primary  { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color:#fff; transform:translateY(-1px); box-shadow: 0 4px 14px rgba(139,94,60,.28); }
.btn-outline  { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost    { background: transparent; color: var(--text-2); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg); color: var(--text); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 13px 28px; font-size: 15px; }
.btn-icon {
  width: 38px; height: 38px;
  padding: 0;
  border-radius: var(--r-full);
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-2);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--t);
}
.btn-icon:hover { background: var(--bg); color: var(--primary); border-color: var(--primary); }

/* ==============================================
   HEADER
   ============================================== */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

/* Top bar */
.header-topbar {
  background: var(--primary);
  color: rgba(255,255,255,.88);
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 0;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.topbar-inner a { color: rgba(255,255,255,.88); transition: color var(--t); }
.topbar-inner a:hover { color: #fff; }

/* Main header row */
.header-main { padding: 12px 0; }
.header-row {
  display: flex; align-items: center;
  gap: 16px;
}

/* Logo */
.site-logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo-mark {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--primary); }
.logo-tagline { font-size: 10.5px; font-weight: 500; color: var(--text-3); letter-spacing: .02em; }

/* Search */
.header-search {
  flex: 1;
  max-width: 520px;
  position: relative;
}
.header-search form {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  overflow: hidden;
  background: var(--bg);
  transition: border-color var(--t), box-shadow var(--t);
}
.header-search form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139,94,60,.12);
  background: #fff;
}
.header-search input {
  flex: 1;
  padding: 9px 14px;
  border: none; background: transparent;
  font-family: var(--font); font-size: 14px;
  color: var(--text); outline: none;
}
.header-search input::placeholder { color: var(--text-3); }
.search-submit {
  padding: 0 16px;
  background: var(--primary);
  border: none; cursor: pointer;
  color: #fff;
  display: flex; align-items: center;
  transition: background var(--t);
}
.search-submit:hover { background: var(--primary-dark); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.cart-btn {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--primary-light);
  border: none; border-radius: var(--r-full);
  color: var(--primary); font-weight: 600; font-size: 13.5px;
  cursor: pointer; transition: all var(--t); text-decoration: none;
}
.cart-btn:hover { background: var(--primary); color: #fff; }
.cart-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--red); color: #fff;
  font-size: 10.5px; font-weight: 700;
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  display: none;
}
.cart-badge.visible { display: flex; }

/* Category nav */
.header-nav {
  border-top: 1px solid var(--border);
  background: #fff;
}
.nav-inner {
  display: flex; align-items: center;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 0;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-item {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-size: 13.5px; font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--t);
  text-decoration: none;
  border: none; background: transparent;
}
.nav-item:hover { background: var(--primary-light); color: var(--primary); }
.nav-item.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.nav-item svg { flex-shrink: 0; }

/* Mobile toggle */
.menu-toggle {
  display: none;
  flex-direction: column; gap: 4px;
  padding: 6px; background: none; border: none; cursor: pointer;
}
.menu-toggle span {
  display: block; width: 20px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all var(--t);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 8px 0 16px;
}
.mobile-drawer.open { display: flex; }
.mobile-drawer a {
  padding: 12px var(--px);
  font-size: 15px; font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.mobile-drawer a:last-child { border-bottom: none; }
.mobile-drawer a:hover { background: var(--bg); color: var(--primary); }

/* ==============================================
   HERO — Marketplace style
   ============================================== */
.hero-marketplace {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 0;
  min-height: 360px;
}
.hero-main {
  background: linear-gradient(135deg, #FDF6EE 0%, #F4EDE4 60%, #EDD9C3 100%);
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(2rem, 4vw, 3rem);
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.hero-main::after {
  content: '';
  position: absolute; right: -40px; bottom: -40px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(196,149,106,.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 4px 12px;
  font-size: 12px; font-weight: 600;
  color: var(--primary);
  letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 1rem;
  width: fit-content;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: .875rem;
  color: var(--text);
}
.hero-title em { color: var(--primary); font-style: italic; }
.hero-sub {
  font-size: 15px; color: var(--text-2);
  margin-bottom: 1.75rem;
  max-width: 420px; line-height: 1.7;
}
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.hero-stat strong { display: block; font-size: 20px; font-weight: 700; color: var(--primary); }
.hero-stat span { font-size: 12px; color: var(--text-3); }

/* Hero side panels */
.hero-side {
  display: flex; flex-direction: column;
  border-left: 1px solid var(--border);
}
.hero-banner {
  flex: 1;
  background: var(--primary);
  padding: 1.5rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; overflow: hidden;
  cursor: pointer;
  transition: opacity var(--t);
}
.hero-banner:hover { opacity: .92; }
.hero-banner + .hero-banner {
  border-top: 1px solid rgba(255,255,255,.15);
  background: #2C2220;
}
.hero-banner-label {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255,255,255,.65);
  margin-bottom: 4px;
}
.hero-banner-title {
  font-size: 17px; font-weight: 700; color: #fff;
  line-height: 1.3;
}
.hero-banner-cta {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.8);
  margin-top: 10px;
}

/* ==============================================
   SECTION COMMONS
   ============================================== */
.section { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-alt { background: #fff; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.section-title {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
}
.section-title span { color: var(--primary); }
.section-link {
  font-size: 13.5px; font-weight: 600;
  color: var(--primary);
  display: flex; align-items: center; gap: 4px;
  white-space: nowrap;
}
.section-link:hover { color: var(--primary-dark); }

/* ==============================================
   CATEGORY CHIPS / GRID
   ============================================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}
.category-chip {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 16px 8px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  cursor: pointer; text-decoration: none;
  transition: all var(--t);
  text-align: center;
}
.category-chip:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.category-chip.active {
  border-color: var(--primary);
  background: var(--primary-light);
}
.cat-icon {
  width: 48px; height: 48px;
  background: var(--bg);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  transition: background var(--t);
}
.category-chip:hover .cat-icon,
.category-chip.active .cat-icon { background: rgba(139,94,60,.12); }
.cat-name { font-size: 12.5px; font-weight: 600; color: var(--text-2); line-height: 1.3; }
.category-chip:hover .cat-name,
.category-chip.active .cat-name { color: var(--primary); }

/* ==============================================
   BRAND CARDS
   ============================================== */
.brands-scroll {
  display: flex; gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.brands-scroll::-webkit-scrollbar { display: none; }

.brand-card {
  flex-shrink: 0;
  width: 180px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 16px;
  display: flex; flex-direction: column; align-items: center;
  gap: 10px;
  text-decoration: none; cursor: pointer;
  transition: all var(--t);
}
.brand-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.brand-logo {
  width: 72px; height: 72px;
  border-radius: var(--r-md);
  background: var(--bg);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.brand-logo-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
}
.brand-name { font-size: 13.5px; font-weight: 700; color: var(--text); text-align: center; }
.brand-count { font-size: 12px; color: var(--text-3); }
.brand-badge-nyemilku {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 10.5px; font-weight: 700;
  padding: 2px 8px; border-radius: var(--r-full);
}

/* Brand grid (full page) */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

/* ==============================================
   PRODUCT CARD — Marketplace style
   ============================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.products-grid-5 {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.pcard {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--t);
  display: flex; flex-direction: column;
  position: relative;
}
.pcard:hover {
  border-color: rgba(139,94,60,.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* Image */
.pcard-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg);
  position: relative;
}
.pcard-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s var(--ease);
}
.pcard:hover .pcard-img img { transform: scale(1.04); }

/* Badges */
.pcard-badges {
  position: absolute; top: 8px; left: 8px;
  display: flex; flex-direction: column; gap: 4px;
}
.badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 7px;
  border-radius: var(--r-full);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.5;
}
.badge-new    { background: var(--primary); color: #fff; }
.badge-sale   { background: var(--red); color: #fff; }
.badge-best   { background: #E8A838; color: #fff; }
.badge-official { background: rgba(255,255,255,.92); color: var(--primary); border: 1px solid var(--primary-light); }

/* Wishlist btn */
.pcard-wish {
  position: absolute; top: 8px; right: 8px;
  width: 30px; height: 30px;
  background: rgba(255,255,255,.9);
  border: none; border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-3);
  transition: all var(--t);
  opacity: 0;
}
.pcard:hover .pcard-wish { opacity: 1; }
.pcard-wish:hover { color: var(--red); background: #fff; }

/* Body */
.pcard-body { padding: 12px; flex: 1; display: flex; flex-direction: column; gap: 4px; }

/* Brand row */
.pcard-brand {
  display: flex; align-items: center; gap: 5px;
}
.pcard-brand-logo {
  width: 16px; height: 16px;
  border-radius: 4px; overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 700; color: var(--primary);
}
.pcard-brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.pcard-brand-name {
  font-size: 11.5px; font-weight: 600;
  color: var(--text-3);
  transition: color var(--t);
}
.pcard:hover .pcard-brand-name { color: var(--primary); }

/* Title */
.pcard-title {
  font-size: 13.5px; font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pcard-title a { color: inherit; }
.pcard-title a:hover { color: var(--primary); }

/* Rating */
.pcard-rating {
  display: flex; align-items: center; gap: 4px;
  font-size: 11.5px; color: var(--text-3);
}
.stars-sm { color: var(--gold); font-size: 11px; }

/* Price */
.pcard-price {
  display: flex; align-items: baseline; gap: 6px;
  flex-wrap: wrap; margin-top: auto; padding-top: 6px;
}
.price-main { font-size: 15px; font-weight: 700; color: var(--red); }
.price-original { font-size: 12px; color: var(--text-3); text-decoration: line-through; }
.price-discount {
  font-size: 11px; font-weight: 700;
  background: var(--red-bg); color: var(--red);
  padding: 1px 5px; border-radius: 4px;
}
.price-normal { font-size: 15px; font-weight: 700; color: var(--text); }

/* Footer */
.pcard-foot {
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
}
.pcard-sold { font-size: 11.5px; color: var(--text-3); }
.pcard-atc {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  background: var(--primary); color: #fff;
  border: none; border-radius: var(--r-full);
  cursor: pointer; font-size: 16px;
  transition: all var(--t); flex-shrink: 0;
}
.pcard-atc:hover { background: var(--primary-dark); transform: scale(1.08); }

/* ==============================================
   CURATED / FEATURED ROW
   ============================================== */
.curated-banner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1px;
  background: var(--border);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.curated-left {
  background: var(--primary);
  padding: 28px 24px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.curated-left h3 {
  font-family: var(--font-display);
  font-size: 22px; color: #fff; font-weight: 700;
  line-height: 1.3;
}
.curated-left p { font-size: 13px; color: rgba(255,255,255,.75); margin-top: 8px; }
.curated-right {
  background: #fff;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-items: start;
}

/* ==============================================
   SINGLE PRODUCT
   ============================================== */
.sp-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: 2rem 0;
  align-items: start;
}

/* Gallery */
.sp-gallery { position: sticky; top: 80px; }
.sp-main-img {
  aspect-ratio: 1;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg);
  border: 1.5px solid var(--border);
  margin-bottom: 10px;
}
.sp-main-img img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.sp-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.sp-thumb {
  width: 72px; height: 72px;
  border-radius: var(--r-md);
  overflow: hidden; cursor: pointer;
  border: 2px solid var(--border);
  background: var(--bg);
  transition: border-color var(--t);
}
.sp-thumb:hover, .sp-thumb.active { border-color: var(--primary); }
.sp-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Info */
.sp-info {}
.sp-brand-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
}
.sp-brand-logo {
  width: 28px; height: 28px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  overflow: hidden; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--primary);
}
.sp-brand-link { font-size: 13.5px; font-weight: 600; color: var(--primary); }
.sp-brand-verified { color: var(--green); }

.sp-title { font-size: clamp(1.375rem, 3vw, 1.875rem); font-weight: 700; margin-bottom: 10px; line-height: 1.25; }
.sp-rating-row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.sp-rating-val { font-weight: 700; font-size: 14px; }
.sp-sold-count { font-size: 13px; color: var(--text-3); }

.sp-price-box {
  background: var(--bg);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 16px;
}
.sp-price { font-size: 28px; font-weight: 700; color: var(--red); }
.sp-price-original { font-size: 14px; color: var(--text-3); text-decoration: line-through; margin-left: 8px; }
.sp-price-off {
  display: inline-block;
  background: var(--red-bg); color: var(--red);
  font-size: 12px; font-weight: 700;
  padding: 2px 7px; border-radius: 4px; margin-left: 6px;
}

.sp-meta { margin-bottom: 16px; }
.sp-meta-row {
  display: flex; gap: 12px; padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.sp-meta-row:last-child { border-bottom: none; }
.sp-meta-label { color: var(--text-3); min-width: 100px; }
.sp-meta-value { color: var(--text); font-weight: 500; }

.sp-qty-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px; flex-wrap: wrap;
}
.qty-box {
  display: flex; align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  overflow: hidden;
}
.qty-btn {
  width: 38px; height: 38px;
  background: none; border: none;
  font-size: 18px; cursor: pointer;
  color: var(--text-2);
  transition: all var(--t);
  display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { background: var(--bg); color: var(--primary); }
.qty-num {
  width: 44px; text-align: center;
  border: none; border-inline: 1.5px solid var(--border);
  font-family: var(--font); font-size: 15px; font-weight: 600;
  background: none; color: var(--text);
  outline: none;
  -moz-appearance: textfield;
}
.qty-num::-webkit-inner-spin-button { -webkit-appearance: none; }

.sp-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sp-atc {
  flex: 1; min-width: 160px;
  padding: 12px 20px;
  background: var(--primary); color: #fff;
  border: none; border-radius: var(--r-full);
  font-family: var(--font); font-size: 15px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 8px;
  transition: all var(--t);
}
.sp-atc:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(139,94,60,.28); }

.sp-buy {
  flex: 1; min-width: 160px;
  padding: 12px 20px;
  background: transparent; color: var(--primary);
  border: 2px solid var(--primary); border-radius: var(--r-full);
  font-family: var(--font); font-size: 15px; font-weight: 700;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 8px;
  transition: all var(--t);
}
.sp-buy:hover { background: var(--primary); color: #fff; }

.sp-wish {
  width: 46px; height: 46px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  background: none; cursor: pointer;
  color: var(--text-3); font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t);
}
.sp-wish:hover { color: var(--red); border-color: var(--red); }

/* Brand mini card */
.sp-brand-card {
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px;
  display: flex; align-items: center; gap: 12px;
  margin-top: 16px;
  background: #fff;
}
.sp-brand-card-logo {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  overflow: hidden; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--primary);
  flex-shrink: 0;
}
.sp-brand-card-info { flex: 1; }
.sp-brand-card-name { font-size: 14px; font-weight: 700; }
.sp-brand-card-desc { font-size: 12.5px; color: var(--text-3); }
.sp-brand-card-link { font-size: 13px; font-weight: 600; color: var(--primary); white-space: nowrap; }

/* Tabs */
.tabs { margin-top: 2.5rem; }
.tab-bar {
  display: flex; border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem; gap: 0;
}
.tab-btn {
  padding: 10px 20px;
  font-family: var(--font); font-size: 14px; font-weight: 600;
  color: var(--text-3); background: none; border: none;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  cursor: pointer; transition: all var(--t);
}
.tab-btn:hover { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ==============================================
   SHOP / ARCHIVE
   ============================================== */
.shop-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 20px 0 3rem;
  align-items: start;
}

/* Sidebar */
.shop-aside { position: sticky; top: 80px; }
.filter-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 12px;
}
.filter-head {
  padding: 12px 14px;
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--text-2);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  display: flex; align-items: center; justify-content: space-between;
}
.filter-body { padding: 12px 14px; }
.filter-opt {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0; cursor: pointer;
  font-size: 14px; color: var(--text-2);
  transition: color var(--t);
}
.filter-opt:hover { color: var(--primary); }
.filter-opt input { accent-color: var(--primary); width: 15px; height: 15px; }
.filter-opt-count { margin-left: auto; font-size: 12px; color: var(--text-3); }

/* Shop main */
.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 14px; flex-wrap: wrap;
}
.shop-count { font-size: 13.5px; color: var(--text-3); }
.shop-sort select {
  padding: 7px 28px 7px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  background: #fff;
  font-family: var(--font); font-size: 13.5px;
  color: var(--text); outline: none; cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

/* Active filters */
.active-filters {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px;
}
.filter-tag {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--r-full);
  padding: 4px 10px;
  font-size: 12.5px; font-weight: 600;
}
.filter-tag button {
  background: none; border: none; cursor: pointer;
  color: var(--primary); font-size: 14px; line-height: 1;
  padding: 0; margin-left: 2px;
}

/* Pagination */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; margin-top: 2.5rem;
}
.page-link {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: 14px; font-weight: 500;
  color: var(--text-2); background: #fff;
  text-decoration: none; transition: all var(--t);
}
.page-link:hover, .page-link.active {
  background: var(--primary); border-color: var(--primary); color: #fff;
}

/* ==============================================
   CART
   ============================================== */
.cart-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  padding: 24px 0 3rem;
  align-items: start;
}
.cart-head { font-size: 1.375rem; font-weight: 700; margin-bottom: 16px; }
.cart-items-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.cart-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 80px; height: 80px; flex-shrink: 0;
  border-radius: var(--r-md);
  overflow: hidden; background: var(--bg);
  border: 1px solid var(--border);
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-brand { font-size: 12px; color: var(--text-3); margin-bottom: 2px; }
.cart-item-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.cart-item-price { font-size: 16px; font-weight: 700; color: var(--red); }

/* Summary card */
.order-summary {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 20px;
  position: sticky; top: 80px;
}
.order-summary h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.summary-row.total { font-weight: 700; font-size: 16px; border-top: 1px solid var(--border); margin-top: 6px; padding-top: 12px; color: var(--text); }
.summary-row.total span:last-child { color: var(--red); }

/* ==============================================
   FORMS
   ============================================== */
.form-field { margin-bottom: 16px; }
.form-label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--text-2); }
.form-label .req { color: var(--red); }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--font); font-size: 14px;
  color: var(--text); background: #fff;
  outline: none; transition: border-color var(--t), box-shadow var(--t);
  appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139,94,60,.1);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ==============================================
   FOOTER
   ============================================== */
.site-footer { background: #1A1A1A; color: rgba(255,255,255,.7); }
.footer-top { padding: 3rem 0 2.5rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-brand-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.footer-logo-mark {
  width: 32px; height: 32px;
  background: var(--primary);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-display); font-size: 16px; font-weight: 700;
}
.footer-logo-name { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: #fff; }
.footer-desc { font-size: 13.5px; line-height: 1.7; margin-bottom: 16px; }
.footer-socials { display: flex; gap: 8px; }
.social-btn {
  width: 34px; height: 34px;
  border-radius: var(--r-full);
  border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6); transition: all var(--t);
}
.social-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.footer-col-title {
  font-size: 12.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: rgba(255,255,255,.9);
  margin-bottom: 14px;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 13.5px; color: rgba(255,255,255,.6); transition: color var(--t); }
.footer-links a:hover { color: var(--accent); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; margin-bottom: 10px; }
.footer-contact-item svg { margin-top: 2px; opacity: .5; flex-shrink: 0; }

.footer-bottom {
  padding: 16px 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; font-size: 13px;
}
.footer-bottom a { color: rgba(255,255,255,.45); }
.footer-bottom a:hover { color: var(--accent); }
.pay-badges { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pay-badge {
  padding: 3px 8px;
  background: rgba(255,255,255,.1);
  border-radius: 4px;
  font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,.7);
}

/* ==============================================
   NOTICES
   ============================================== */
.notice {
  padding: 12px 16px; border-radius: var(--r-md);
  border-left: 3px solid; font-size: 14px; margin-bottom: 14px;
}
.notice-ok   { background: var(--green-bg); border-color: var(--green); color: var(--green); }
.notice-err  { background: var(--red-bg); border-color: var(--red); color: var(--red); }
.notice-info { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }

/* ==============================================
   WOOCOMMERCE OVERRIDES
   ============================================== */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--primary) !important; color: #fff !important;
  border-radius: var(--r-full) !important; font-family: var(--font) !important;
  font-weight: 600 !important; border: none !important;
  padding: 10px 22px !important; transition: all var(--t) !important;
}
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover { background: var(--primary-dark) !important; }
.woocommerce-Price-amount { color: var(--red); font-weight: 700; }
.woocommerce .star-rating span::before { color: var(--gold); }
.woocommerce-message { border-top-color: var(--primary) !important; }

/* ==============================================
   UTILITIES
   ============================================== */
.text-center { text-align: center; }
.text-muted { color: var(--text-3); }
.text-primary { color: var(--primary); }
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0; }

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .curated-right { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { display: none; }
  .sp-wrap { grid-template-columns: 1fr; }
  .sp-gallery { position: static; }
  .cart-wrap { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-aside { position: static; display: none; }
  .shop-aside.open { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .curated-banner { grid-template-columns: 1fr; }
  .curated-left { padding: 20px; }
  .curated-right { grid-template-columns: repeat(2, 1fr); }
  .header-search { display: none; }
  .header-search.mobile-open { display: block; width: 100%; }
  .menu-toggle { display: flex; }
  .header-nav { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .sp-actions { flex-wrap: wrap; }
  .sp-atc, .sp-buy { min-width: 0; flex: 1; }
}

@media (max-width: 480px) {
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 1rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .brands-grid { grid-template-columns: repeat(2, 1fr); }
}
