/*
Theme Name: SewCiety Prototype
Theme URI: https://sewciety.co.za
Description: SewCiety Marketplace theme — a warm vintage haberdashery atelier: heritage plum, olive sage, antique brass and walnut over linen paper. Aligned to the SewCiety Design System.
Author: SewCiety
Author URI: https://sewciety.co.za
Version: 4.0.0
Text Domain: sewciety-theme
Requires at least: 6.0
Requires PHP: 7.4
*/

/* ========================================
   FONT IMPORT
   Design System stack: Newsreader (serif headings),
   Hanken Grotesk (body/UI), Spline Sans Mono (shop tickets).
   Retro Stitch (brand display) is self-hosted below.
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;0,6..72,700;1,6..72,400;1,6..72,500&family=Hanken+Grotesk:wght@400;500;600;700;800&family=Spline+Sans+Mono:wght@400;500;600&display=swap');

/* Brand display face — self-hosted, short large words only */
@font-face {
  font-family: "Retro Stitch";
  src: url("fonts/RetroStitch.woff2") format("woff2"),
       url("fonts/RetroStitch.ttf") format("truetype"),
       url("fonts/RetroStitch.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ========================================
   CSS CUSTOM PROPERTIES / DESIGN TOKENS
   ======================================== */
:root {
  /* Heritage Plum — the signature brand colour (DS plum-500/700/100) */
  --sc-dusk: #7C5F71;
  --sc-dusk-hover: #543F4D;
  --sc-dusk-light: #ECE0E8;
  /* Walnut — woodwork, ink, the wordmark brown (DS walnut-700/500b/400b) */
  --sc-oak: #4A3528;
  --sc-oak-medium: #755946;
  --sc-oak-light: #937866;
  /* Antique Brass — thread, trim, focus, eyebrows (DS brass-500/600/200) */
  --sc-brass: #9C8C5C;
  --sc-brass-hover: #8A7A49;
  --sc-brass-light: #E0D4B2;
  /* Olive Sage — natural / eco / "good" / success (DS sage-500/100) */
  --sc-patina: #6E7F58;
  --sc-patina-light: #E4EAD9;

  /* Clay / Terracotta — sale tags, wishlist hearts, danger (DS clay) */
  --sc-clay: #BC5B39;
  --sc-clay-hover: #A84B2C;
  --sc-clay-light: #F6E2D6;

  /* Linen / Paper — warm neutral foundation (DS linen-100/200/50/0) */
  --sc-linen: #F6F0E6;
  --sc-cream: #EFE7DA;
  --sc-ecru: #FBF7EF;
  --sc-ivory: #FFFDF9;
  /* Ink scale — all walnut (DS walnut-900/800/500b/400b) */
  --sc-ink: #2A1E16;
  --sc-graphite: #38291E;
  --sc-stone: #755946;
  --sc-ash: #937866;
  --sc-umber: #2A1E16;

  /* Borders — warm linen hairlines (DS linen-400/500) */
  --sc-border: #D8CAB6;
  --sc-border-strong: #C4B49C;

  /* Wool (legacy neutrals — mapped to walnut/linen) */
  --sc-wool-heather: #937866;
  --sc-wool-oatmeal: #C4B49C;
  --sc-wool-charcoal: #4A3528;

  /* Functional */
  --sc-gold: #9C8C5C;          /* rating stars — brass per DS */
  --sc-gold-empty: #D8CAB6;
  --sc-success: #5C6E43;       /* sage-600 */
  --sc-success-light: #E4EAD9; /* sage-100 */
  --sc-error: #A84B2C;         /* clay-600 */

  /* Shadows — warm, walnut-tinted, low and soft (DS rgba(58,41,30)) */
  --sc-shadow-soft: 0 2px 4px rgba(58,41,30,0.05), 0 6px 16px rgba(58,41,30,0.08);
  --sc-shadow-medium: 0 4px 10px rgba(58,41,30,0.06), 0 14px 32px rgba(58,41,30,0.10);
  --sc-shadow-deep: 0 8px 22px rgba(58,41,30,0.08), 0 28px 60px rgba(58,41,30,0.14);
  --sc-shadow-header: 0 1px 0 var(--sc-oak-12);
  --sc-shadow-cta: 0 4px 16px var(--sc-brass-30);
  --sc-shadow-warm: 0 2px 12px var(--sc-dusk-15);
  --sc-ring-focus: 0 0 0 3px rgba(156,140,92,0.40); /* brass focus ring */

  /* Typography — Design System stack */
  --sc-font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sc-font-body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sc-font-ui: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sc-font-mono: 'Spline Sans Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --sc-font-stitch: 'Retro Stitch', 'Newsreader', Georgia, serif;

  /* Layout */
  --sc-max-width: 1400px;
  --sc-padding-page: 64px;
  --sc-padding-page-mobile: 20px;
  --sc-header-height: 72px;
  --sc-nav-height: 48px;
  --sc-gap-grid: 24px;

  /* Radius */
  --sc-radius-sm: 4px;
  --sc-radius-md: 8px;
  --sc-radius-lg: 12px;
  --sc-radius-xl: 20px;
  --sc-radius-pill: 9999px;
  --sc-radius-full: 50%;

  /* Transitions */
  --sc-transition-fast: 150ms ease;
  --sc-transition-normal: 250ms ease;

    /* ── Alpha colour tokens ─────────────────────────
       Re-derived from the Design System base palette (v4.0.0).
       Base RGB: ink/walnut-900 #2A1E16 = 42,30,22 ·
       oak/walnut-700 #4A3528 = 74,53,40 ·
       brass-500 #9C8C5C = 156,140,92 ·
       dusk/plum-500 #7C5F71 = 124,95,113 ·
       linen-100 #F6F0E6 = 246,240,230 ·
       cream/linen-200 #EFE7DA = 239,231,218 ·
       blush (plum-100) #ECE0E8 = 236,224,232 ·
       wheat (brass-200) #E0D4B2 = 224,212,178 ·
       warm (linen-0) #FFFDF9 = 255,253,249 */
    --sc-ink-08:    rgba(42, 30, 22, 0.08);
    --sc-ink-12:    rgba(42, 30, 22, 0.12);
    --sc-ink-15:    rgba(42, 30, 22, 0.15);
    --sc-ink-16:    rgba(42, 30, 22, 0.16);
    --sc-ink-30:    rgba(42, 30, 22, 0.30);
    --sc-ink-45:    rgba(42, 30, 22, 0.45);
    --sc-ink-50:    rgba(42, 30, 22, 0.50);
    --sc-oak-012:   rgba(74, 53, 40, 0.012);
    --sc-oak-015:   rgba(74, 53, 40, 0.015);
    --sc-oak-02:    rgba(74, 53, 40, 0.02);
    --sc-oak-06:    rgba(74, 53, 40, 0.06);
    --sc-oak-08:    rgba(74, 53, 40, 0.08);
    --sc-oak-10:    rgba(74, 53, 40, 0.10);
    --sc-oak-12:    rgba(74, 53, 40, 0.12);
    --sc-oak-15:    rgba(74, 53, 40, 0.15);
    --sc-oak-18:    rgba(74, 53, 40, 0.18);
    --sc-brass-15:  rgba(156, 140, 92, 0.15);
    --sc-brass-25:  rgba(156, 140, 92, 0.25);
    --sc-brass-30:  rgba(156, 140, 92, 0.30);
    --sc-brass-35:  rgba(156, 140, 92, 0.35);
    --sc-dusk-12:   rgba(124, 95, 113, 0.12);
    --sc-dusk-15:   rgba(124, 95, 113, 0.15);
    --sc-linen-06:  rgba(246, 240, 230, 0.06);
    --sc-linen-08:  rgba(246, 240, 230, 0.08);
    --sc-linen-10:  rgba(246, 240, 230, 0.10);
    --sc-linen-45:  rgba(246, 240, 230, 0.45);
    --sc-linen-55:  rgba(246, 240, 230, 0.55);
    --sc-linen-60:  rgba(246, 240, 230, 0.60);
    --sc-linen-70:  rgba(246, 240, 230, 0.70);
    --sc-linen-80:  rgba(246, 240, 230, 0.80);
    --sc-blush-25:  rgba(236, 224, 232, 0.25);
    --sc-wheat-20:  rgba(224, 212, 178, 0.20);
    --sc-warm-92:   rgba(255, 253, 249, 0.92);
    --sc-cream-04:  rgba(239, 231, 218, 0.04);
    --sc-cream-06:  rgba(239, 231, 218, 0.06);
    --sc-cream-92:  rgba(239, 231, 218, 0.92);
    --sc-clay-15:   rgba(188, 91, 57, 0.15);
    --sc-clay-25:   rgba(188, 91, 57, 0.25);

    /* ── Compatibility aliases ───────────────────────
       The PHP templates (header.php, footer.php, front-page.php,
       page.php) and functions.php reference an older token
       vocabulary that was never defined in this v2/v3 stylesheet.
       These aliases map the old names onto the atelier palette so
       inline styles render instead of falling back to browser
       defaults. VERIFY against the intended design — these are
       best-fit mappings, not the original values. */
    --sc-primary:         var(--sc-dusk);
    --sc-primary-light:   var(--sc-dusk-light);
    --sc-secondary-light: var(--sc-brass-light);
    --sc-bg-white:        var(--sc-ivory);
    --sc-shadow-card:     var(--sc-shadow-soft);
    --sc-footer-text:     var(--sc-linen-70);

    /* ── Type scale ──────────────────────────────── */
    --sc-text-2xs:  10px;
    --sc-text-xs:   11px;
    --sc-text-sm:   13px;
    --sc-text-base: 15px;
    --sc-text-md:   17px;
    --sc-text-lg:   18px;
    --sc-text-xl:   22px;
    --sc-text-2xl:  28px;
    --sc-text-3xl:  36px;
    --sc-text-4xl:  48px;

    /* ── Spacing scale ───────────────────────────── */
    --sc-space-1:   4px;
    --sc-space-2:   8px;
    --sc-space-3:   12px;
    --sc-space-4:   16px;
    --sc-space-5:   20px;
    --sc-space-6:   24px;
    --sc-space-8:   32px;
    --sc-space-10:  40px;
    --sc-space-12:  48px;
    --sc-space-16:  64px;
    --sc-space-20:  80px;

    /* ── Z-index scale ───────────────────────────── */
    --sc-z-base:    1;
    --sc-z-raised:  2;
    --sc-z-header:  100;
    --sc-z-overlay: 110;
    --sc-z-menu:    120;
    --sc-z-modal:   200;
  --sc-transition-slow: 400ms ease;
}

/* ========================================
   RESET / BASE
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

body.sewciety-marketplace {
  font-family: var(--sc-font-body);
  color: var(--sc-ink);
  background-color: var(--sc-ivory);
  margin: 0;
  padding: 0;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Override TT5 defaults */
body.sewciety-marketplace .wp-site-blocks {
  padding: 0;
  max-width: 100%;
}

body.sewciety-marketplace .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--sc-transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   KEYFRAME ANIMATIONS
   ======================================== */

/* Dropdown reveal */
@keyframes scFadeSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Dropdown hide */
@keyframes scFadeSlideUp {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-8px); }
}

/* Atmospheric shadow drift for hero ambience */
@keyframes driftShadow {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  25% {
    transform: translate(20px, -15px) scale(1.05);
    opacity: 0.35;
  }
  50% {
    transform: translate(-10px, 10px) scale(0.95);
    opacity: 0.25;
  }
  75% {
    transform: translate(15px, 5px) scale(1.02);
    opacity: 0.32;
  }
}

/* Paper flutter — subtle textile/paper movement */
@keyframes paperFlutter {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  25% { transform: rotate(0.5deg) translateY(-3px); }
  50% { transform: rotate(-0.3deg) translateY(-1px); }
  75% { transform: rotate(0.2deg) translateY(-2px); }
}

/* Thread drift — SVG path animation for decorative threads */
@keyframes threadDrift {
  0% { stroke-dashoffset: 100; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -100; }
}

/* Brass shimmer — CTA button highlight sweep */
@keyframes brassShimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Scroll reveal entrance */
@keyframes scRevealUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Shimmer for skeleton loading */
@keyframes scShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ========================================
   SCROLL REVEAL SYSTEM
   ======================================== */
.sc-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 600ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

.sc-reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   HEADER
   ======================================== */
.sc-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--sc-ecru);
  box-shadow: var(--sc-shadow-header);
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 3px,
      var(--sc-oak-015) 3px,
      var(--sc-oak-015) 4px
    );
}

.sc-header__main {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px var(--sc-padding-page);
  height: var(--sc-header-height);
  max-width: var(--sc-max-width);
  margin: 0 auto;
}

.sc-header__logo {
  flex-shrink: 0;
}

.sc-header__logo-img {
  height: 140px;
  width: auto;
  margin: -40px -20px -40px -10px;
  max-width: none;
  mix-blend-mode: multiply;
  filter: sepia(15%) contrast(95%);
}

.sc-header__logo-text {
  font-family: var(--sc-font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--sc-oak);
  letter-spacing: -0.5px;
  text-decoration: none;
  position: relative;
}

/* Stitched underline effect on logo text */
.sc-header__logo-text::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--sc-oak) 0px, var(--sc-oak) 4px,
    transparent 4px, transparent 8px
  );
  opacity: 0.7;
}

/* Custom logo from the WordPress Customizer.
   the_custom_logo() outputs <a class="custom-logo-link"><img class="custom-logo">,
   which does NOT carry the .sc-header__logo-img class — so without these rules
   the logo renders at its full natural size and overflows into the nav and page
   content. Constrain it to the header height (no negative-margin overflow hack). */
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  margin: 0;
}
.custom-logo {
  height: 56px;
  max-height: 56px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.sc-header__categories-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--sc-linen);
  border: 1px solid var(--sc-oak-12);
  cursor: pointer;
  font-family: var(--sc-font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--sc-graphite);
  padding: 10px 16px;
  border-radius: var(--sc-radius-pill);
  transition: all var(--sc-transition-fast);
  flex-shrink: 0;
}

.sc-header__categories-btn:hover {
  background: var(--sc-dusk-light);
  color: var(--sc-dusk);
  border-color: var(--sc-dusk);
}

.sc-header__categories-btn svg {
  width: 18px;
  height: 18px;
}

/* ========================================
   CATEGORIES DROPDOWN PANEL
   ======================================== */
.sc-categories-menu {
  position: relative;
  flex-shrink: 0;
}

.sc-categories-menu.open .sc-header__categories-btn {
  background: var(--sc-dusk-light);
  color: var(--sc-dusk);
  border-color: var(--sc-dusk);
}

.sc-categories-panel[hidden] {
  display: none !important;
}

.sc-categories-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: var(--sc-z-menu);
  width: min(760px, 90vw);
  max-height: 70vh;
  overflow-y: auto;
  padding: 20px;
  background: var(--sc-ivory);
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius-lg);
  box-shadow: var(--sc-shadow-deep);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 24px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity var(--sc-transition-fast), transform var(--sc-transition-fast);
}

.sc-categories-menu.open .sc-categories-panel {
  opacity: 1;
  transform: translateY(0);
}

.sc-categories-panel__group {
  min-width: 0;
}

.sc-categories-panel__parent {
  display: block;
  font-family: var(--sc-font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--sc-oak);
  text-decoration: none;
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--sc-border);
  transition: color var(--sc-transition-fast);
}

.sc-categories-panel__parent:hover {
  color: var(--sc-dusk);
}

.sc-categories-panel__children {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sc-categories-panel__children li {
  margin: 0;
}

.sc-categories-panel__children a {
  display: block;
  font-family: var(--sc-font-ui);
  font-size: 13px;
  color: var(--sc-stone);
  text-decoration: none;
  padding: 4px 0;
  transition: color var(--sc-transition-fast);
}

.sc-categories-panel__children a:hover {
  color: var(--sc-dusk);
}

.sc-categories-panel__footer {
  grid-column: 1 / -1;
  border-top: 1px solid var(--sc-border);
  padding-top: 12px;
  text-align: right;
}

.sc-categories-panel__footer a {
  font-family: var(--sc-font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--sc-dusk);
  text-decoration: none;
}

@media (max-width: 768px) {
  .sc-categories-panel {
    position: fixed;
    top: auto;
    left: 12px;
    right: 12px;
    width: auto;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .sc-categories-panel {
    grid-template-columns: 1fr;
  }
}

.sc-header__search {
  flex: 1;
  display: flex;
  align-items: center;
  border: 1.5px solid var(--sc-oak-18);
  border-radius: var(--sc-radius-pill);
  overflow: hidden;
  transition: all var(--sc-transition-fast);
  max-width: 700px;
  background: var(--sc-ivory);
}

.sc-header__search:focus-within {
  border-color: var(--sc-brass);
  background: var(--sc-ivory);
  box-shadow: 0 0 0 3px var(--sc-brass-15);
}

.sc-header__search input {
  flex: 1;
  border: none;
  padding: 12px 18px;
  font-size: 14px;
  font-family: var(--sc-font-ui);
  outline: none;
  background: transparent;
  color: var(--sc-ink);
}

.sc-header__search input::placeholder {
  color: var(--sc-ash);
}

.sc-header__search-btn {
  background: var(--sc-brass);
  border: none;
  padding: 12px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--sc-transition-fast);
}

.sc-header__search-btn:hover {
  background: var(--sc-brass-hover);
}

.sc-header__search-btn svg {
  width: 20px;
  height: 20px;
  fill: var(--sc-ivory);
}

.sc-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.sc-header__action-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  border-radius: var(--sc-radius-pill);
  font-family: var(--sc-font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--sc-graphite);
  transition: all var(--sc-transition-fast);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.sc-header__action-link:hover {
  background: var(--sc-dusk-light);
  color: var(--sc-dusk);
}

.sc-header__action-link svg {
  width: 20px;
  height: 20px;
}

.sc-header__action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--sc-radius-pill);
  font-family: var(--sc-font-ui);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--sc-transition-fast);
  white-space: nowrap;
}

.sc-header__action-btn--ghost {
  border: 1.5px solid var(--sc-oak-18);
  color: var(--sc-graphite);
  background: transparent;
}

.sc-header__action-btn--ghost:hover {
  border-color: var(--sc-oak);
  color: var(--sc-oak);
  background: var(--sc-linen);
}

.sc-header__action-btn--sell {
  background: var(--sc-brass);
  color: var(--sc-ivory);
  border: 1.5px solid var(--sc-brass);
  box-shadow: var(--sc-shadow-cta);
}

.sc-header__action-btn--sell:hover {
  background: var(--sc-brass-hover);
  border-color: var(--sc-brass-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--sc-brass-35);
}

.sc-header__action-btn--sell svg {
  width: 16px;
  height: 16px;
}

.sc-header__cart-count {
  background: var(--sc-dusk);
  color: var(--sc-ivory);
  font-family: var(--sc-font-ui);
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: var(--sc-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -4px;
  margin-top: -8px;
}

/* Category Nav Bar */
.sc-header__nav {
  border-top: 1px solid var(--sc-oak-10);
  background: var(--sc-ecru);
}

.sc-header__nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 0 var(--sc-padding-page);
  height: var(--sc-nav-height);
  max-width: var(--sc-max-width);
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.sc-header__nav-inner::-webkit-scrollbar {
  display: none;
}

.sc-header__nav-link {
  font-family: var(--sc-font-ui);
  font-size: 14px;
  font-weight: 400;
  color: var(--sc-graphite);
  white-space: nowrap;
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  transition: all var(--sc-transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.2px;
}

.sc-header__nav-link:hover {
  color: var(--sc-oak);
  border-bottom-color: var(--sc-brass);
}

.sc-header__nav-link svg {
  width: 16px;
  height: 16px;
}

/* ── Category nav hover dropdowns ── */
.sc-nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.sc-nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: var(--sc-ivory);
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius-md);
  box-shadow: var(--sc-shadow-medium);
  z-index: var(--sc-z-menu);
  padding: 8px 0;
  animation: scFadeSlideDown 150ms ease;
}

.sc-nav-item:hover .sc-nav-dropdown {
  display: block;
}

.sc-nav-dropdown__link {
  display: block;
  padding: 9px 18px;
  font-family: var(--sc-font-ui);
  font-size: 13px;
  font-weight: 400;
  color: var(--sc-graphite);
  white-space: nowrap;
  text-decoration: none;
  transition: all var(--sc-transition-fast);
}

.sc-nav-dropdown__link:hover {
  background: var(--sc-linen);
  color: var(--sc-oak);
  padding-left: 22px;
}

.sc-header__nav-inner {
  overflow: visible;
}

@media (max-width: 1024px) {
  .sc-header__action-btn--ghost {
    display: none;
  }
  .sc-header__action-btn--sell span {
    display: none;
  }
  .sc-header__action-btn--sell {
    padding: 10px 12px;
  }
}

/* ========================================
   MOBILE MENU
   ======================================== */
.sc-mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--sc-ink-50);
  z-index: 1100;
  opacity: 0;
  transition: opacity var(--sc-transition-normal);
  backdrop-filter: blur(4px);
}

.sc-mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

.sc-mobile-menu {
  position: fixed;
  top: 0;
  left: -320px;
  bottom: 0;
  width: 320px;
  background: var(--sc-ecru);
  z-index: 1200;
  transition: left var(--sc-transition-normal);
  overflow-y: auto;
  padding: 24px;
  box-shadow: 4px 0 24px var(--sc-ink-12);
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 3px,
      var(--sc-oak-015) 3px,
      var(--sc-oak-015) 4px
    );
}

.sc-mobile-menu.active {
  left: 0;
}

.sc-mobile-menu__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--sc-linen);
  border: 1px solid var(--sc-oak-12);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--sc-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--sc-transition-fast);
  color: var(--sc-graphite);
}

.sc-mobile-menu__close:hover {
  background: var(--sc-dusk-light);
  color: var(--sc-dusk);
  border-color: var(--sc-dusk);
}

.sc-mobile-menu__link {
  display: block;
  padding: 14px 0;
  font-family: var(--sc-font-ui);
  font-size: 15px;
  font-weight: 400;
  color: var(--sc-graphite);
  border-bottom: 1px solid var(--sc-oak-10);
  transition: all var(--sc-transition-fast);
}

.sc-mobile-menu__link:hover {
  color: var(--sc-oak);
  padding-left: 8px;
}

/* ========================================
   HERO SECTION
   ======================================== */
.sc-hero {
  position: relative;
  background:
    linear-gradient(
      165deg,
      var(--sc-dusk-12) 0%,
      var(--sc-oak-06) 20%,
      var(--sc-blush-25) 45%,
      var(--sc-linen) 70%,
      var(--sc-ecru) 100%
    );
  padding: 80px var(--sc-padding-page);
  overflow: hidden;
}

/* Linen texture overlay */
.sc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 2px,
      var(--sc-oak-02) 2px,
      var(--sc-oak-02) 3px
    );
  z-index: 1;
  pointer-events: none;
}

/* Decorative brass circle top-right */
.sc-hero__inner::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 360px;
  height: 360px;
  background: var(--sc-brass);
  border-radius: 50%;
  opacity: 0.08;
  filter: blur(80px);
  z-index: 1;
  animation: driftShadow 12s infinite ease-in-out;
  pointer-events: none;
}

/* Decorative dusk circle bottom-left */
.sc-hero__inner::after {
  content: '';
  position: absolute;
  bottom: -160px;
  left: -100px;
  width: 420px;
  height: 420px;
  background: var(--sc-dusk);
  border-radius: 50%;
  opacity: 0.06;
  filter: blur(100px);
  z-index: 1;
  animation: driftShadow 12s infinite ease-in-out reverse;
  pointer-events: none;
}

.sc-hero__inner {
  max-width: var(--sc-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.sc-hero__content {
  position: relative;
  z-index: 2;
}

.sc-hero__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sc-ivory);
  color: var(--sc-dusk);
  font-family: var(--sc-font-ui);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 8px 16px;
  border-radius: var(--sc-radius-pill);
  margin-bottom: 20px;
  box-shadow: var(--sc-shadow-soft);
  border: 1px solid var(--sc-dusk-12);
}

.sc-hero__title {
  font-family: var(--sc-font-display);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--sc-umber);
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}

.sc-hero__nowrap {
  white-space: nowrap;
}
/* .sc-hero__accent inherits all styles from the parent h1 - no special formatting */

.sc-hero__note {
  font-family: var(--sc-font-body);
  font-size: 18px;
  font-weight: 400;
  color: var(--sc-stone);
  margin: 0 0 28px;
  max-width: 480px;
  line-height: 1.7;
}

.sc-hero__subtitle {
  font-family: var(--sc-font-body);
  font-size: 18px;
  color: var(--sc-stone);
  margin: 0 0 16px;
  max-width: 480px;
  line-height: 1.7;
}

.sc-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--sc-oak);
  color: var(--sc-ivory);
  border-radius: var(--sc-radius-pill);
  font-family: var(--sc-font-ui);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--sc-transition-fast);
  box-shadow: var(--sc-shadow-soft);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.sc-hero__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--sc-wheat-20) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: brassShimmer 4s infinite linear;
  pointer-events: none;
}

.sc-hero__cta:hover {
  background: var(--sc-umber);
  transform: translateY(-2px);
  box-shadow: var(--sc-shadow-deep);
}

.sc-hero__image {
  position: relative;
  z-index: 2;
}

.sc-hero__image img {
  width: 100%;
  border-radius: var(--sc-radius-xl);
  box-shadow: var(--sc-shadow-medium);
  object-fit: cover;
  aspect-ratio: 4/3;
  animation: paperFlutter 6s infinite ease-in-out;
}

@media (max-width: 1024px) {
  .sc-hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .sc-hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .sc-hero__title {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .sc-hero {
    padding: 48px var(--sc-padding-page-mobile);
  }
  .sc-hero__title {
    font-size: 28px;
  }
  .sc-hero__subtitle {
    font-size: 16px;
  }
}

/* ========================================
   TRUST BADGES / FEATURES BAR
   ======================================== */
.sc-features-bar {
  background: var(--sc-ecru);
  border-bottom: 1px solid var(--sc-oak-08);
  padding: 24px var(--sc-padding-page);
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 3px,
      var(--sc-oak-012) 3px,
      var(--sc-oak-012) 4px
    );
}

.sc-features-bar__inner {
  max-width: var(--sc-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.sc-feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--sc-radius-lg);
  transition: all var(--sc-transition-fast);
}

.sc-feature-item:hover {
  background: var(--sc-linen);
}

.sc-feature-item__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--sc-radius-full);
  background: var(--sc-dusk-light);
  color: var(--sc-dusk);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sc-feature-item__icon svg {
  width: 22px;
  height: 22px;
}

.sc-feature-item__icon--secondary {
  background: var(--sc-patina-light);
  color: var(--sc-patina);
}

.sc-feature-item__icon--accent {
  background: var(--sc-brass-light);
  color: var(--sc-brass);
}

.sc-feature-item__icon--green {
  background: var(--sc-success-light);
  color: var(--sc-success);
}

.sc-feature-item__text h4 {
  font-family: var(--sc-font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--sc-ink);
  margin: 0 0 2px;
}

.sc-feature-item__text p {
  font-family: var(--sc-font-body);
  font-size: 13px;
  color: var(--sc-ash);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .sc-features-bar__inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .sc-features-bar__inner {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   CATEGORY SHOWCASE
   ======================================== */
.sc-categories-showcase {
  margin: 48px 0;
  padding: 0 var(--sc-padding-page);
  max-width: var(--sc-max-width);
  margin-left: auto;
  margin-right: auto;
}

.sc-categories-showcase__title {
  font-family: var(--sc-font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--sc-umber);
  margin-bottom: 20px;
}

.sc-categories-showcase__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.sc-category-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--sc-ecru);
  border: 1px solid var(--sc-oak-10);
  border-radius: var(--sc-radius-lg);
  cursor: pointer;
  transition: all var(--sc-transition-fast);
}

.sc-category-card:hover {
  border-color: var(--sc-brass);
  box-shadow: var(--sc-shadow-soft);
  transform: translateY(-2px);
}

.sc-category-card__image {
  width: 56px;
  height: 56px;
  border-radius: var(--sc-radius-md);
  overflow: hidden;
  flex-shrink: 0;
}

.sc-category-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--sc-transition-slow);
}

.sc-category-card:hover .sc-category-card__image img {
  transform: scale(1.08);
}

.sc-category-card__info {
  min-width: 0;
}

.sc-category-card__name {
  font-family: var(--sc-font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--sc-graphite);
}

/* ========================================
   PROMO BANNER SECTION
   ======================================== */
.sc-promo-banner {
  background: linear-gradient(135deg, var(--sc-patina-light) 0%, var(--sc-dusk-light) 100%);
  padding: 60px var(--sc-padding-page);
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}

.sc-promo-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      transparent 3px,
      var(--sc-oak-02) 3px,
      var(--sc-oak-02) 4px
    );
  pointer-events: none;
}

.sc-promo-banner__inner {
  max-width: var(--sc-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.sc-promo-banner__content {
  text-align: left;
}

.sc-promo-banner__badge {
  display: inline-block;
  background: var(--sc-brass);
  color: var(--sc-ivory);
  font-family: var(--sc-font-ui);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: var(--sc-radius-pill);
  margin-bottom: 16px;
}

.sc-promo-banner__title {
  font-family: var(--sc-font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--sc-umber);
  margin: 0 0 12px;
  line-height: 1.2;
}

.sc-promo-banner__desc {
  font-family: var(--sc-font-body);
  font-size: 17px;
  color: var(--sc-stone);
  margin: 0 0 24px;
  line-height: 1.65;
}

.sc-promo-banner__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--sc-umber);
  color: var(--sc-ivory);
  border-radius: var(--sc-radius-pill);
  font-family: var(--sc-font-ui);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--sc-transition-fast);
  box-shadow: var(--sc-shadow-soft);
}

.sc-promo-banner__cta:hover {
  background: var(--sc-oak);
  transform: translateY(-1px);
  box-shadow: var(--sc-shadow-medium);
}

.sc-promo-banner__image img {
  width: 100%;
  border-radius: var(--sc-radius-xl);
  box-shadow: var(--sc-shadow-medium);
  aspect-ratio: 16/10;
  object-fit: cover;
}

@media (max-width: 1024px) {
  .sc-promo-banner__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .sc-promo-banner__content {
    text-align: center;
  }
}

/* ========================================
   SECTION HEADERS
   ======================================== */
.sc-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.sc-section-header__title {
  font-family: var(--sc-font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--sc-umber);
  margin: 0;
}

.sc-section-header__link {
  font-family: var(--sc-font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--sc-oak-medium);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all var(--sc-transition-fast);
}

.sc-section-header__link:hover {
  gap: 8px;
  color: var(--sc-oak);
}

.sc-section-header__link svg {
  width: 16px;
  height: 16px;
}


/* ========================================
   MARKETPLACE PAGE
   ======================================== */
.sc-marketplace {
  max-width: var(--sc-max-width);
  margin: 0 auto;
  padding: 24px var(--sc-padding-page) 48px;
}

.sc-marketplace__title-bar {
  margin-bottom: 20px;
}

.sc-marketplace__title {
  font-family: var(--sc-font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--sc-umber);
  margin: 0 0 4px;
  display: inline;
}

.sc-marketplace__result-count {
  font-family: var(--sc-font-body);
  font-size: 15px;
  color: var(--sc-stone);
  margin-left: 12px;
  font-weight: 400;
}

.sc-marketplace__filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.sc-marketplace__filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ========================================
   PRODUCT GRID
   WooCommerce outputs <ul class="products"> as the only child of .sc-product-grid.
   display:contents makes that <ul> transparent so the <li> items become direct
   grid children and the 4-column layout applies correctly.
   ======================================== */
.sc-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sc-gap-grid);
}
.sc-product-grid ul.products {
  display: contents;
}
.sc-product-grid ul.products li.product {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ========================================
   DOKAN STORE PAGE - hide default sidebar
   ======================================== */
body.dokan-store .widget-area,
body.dokan-store aside.widget-area,
body.dokan-store #secondary,
body.dokan-store .dokan-store-left-sidebar {
  display: none !important;
}
body.dokan-store #primary,
body.dokan-store .dokan-store-right-content {
  width: 100% !important;
  margin-left: 0 !important;
}

/* ========================================
   WOOCOMMERCE SHOP - CATEGORY GRID
   ======================================== */

/* Widen content column on category/shop archive pages */
.woocommerce-page #primary,
.woocommerce-page .site-main,
.archive #primary,
.archive .site-main {
  width: 100% !important;
  max-width: 1320px !important;
  margin: 0 auto !important;
  padding: 0 32px !important;
  float: none !important;
  box-sizing: border-box !important;
}

/* Category grid layout — broad selectors cover pages without a .woocommerce ancestor div */
ul.products.columns-4,
.woocommerce ul.products.columns-4 {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px !important;
  padding: 0 !important;
  list-style: none !important;
  width: 100% !important;
}

/* Reset WooCommerce's default float/width on li items so grid columns fill correctly */
ul.products.columns-4 li.product,
.woocommerce ul.products.columns-4 li.product {
  width: auto !important;
  min-width: 0 !important;
  float: none !important;
  margin: 0 !important;
  clear: none !important;
}

/* Inside .sc-product-grid the ul must stay display:contents so its li children
   are direct grid items of the parent div — restore it after the rule above */
.sc-product-grid ul.products.columns-4 {
  display: contents !important;
  grid-template-columns: unset !important;
  gap: unset !important;
  width: auto !important;
}

@media (max-width: 1024px) {
  ul.products.columns-4,
  .woocommerce ul.products.columns-4 {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 768px) {
  ul.products.columns-4,
  .woocommerce ul.products.columns-4 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
}

@media (max-width: 480px) {
  ul.products.columns-4,
  .woocommerce ul.products.columns-4 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
}

/* Category thumbnail */
.woocommerce ul.products li.product-category a img {
  width: 100% !important;
  height: 200px !important;
  object-fit: cover !important;
  border-radius: 8px !important;
}

/* Category title */
.woocommerce ul.products li.product-category .woocommerce-loop-category__title {
  font-size: 15px !important;
  text-align: center !important;
}

/* Remove yellow product count highlight */
.woocommerce ul.products li.product-category .woocommerce-loop-category__title mark {
  background: transparent !important;
  color: inherit !important;
  font-weight: normal !important;
}

/* ========================================
   VENDOR STORE BADGES
   ======================================== */
.sc-store-badges {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 14px 0 6px;
}
.sc-store-badges .sc-store-badge {
  height: 52px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  cursor: default;
  transition: transform 0.15s ease;
}
.sc-store-badges .sc-store-badge:hover {
  transform: translateY(-2px) scale(1.06);
}

/* ========================================
   PRODUCT CARD
   ======================================== */
.sc-product-card {
  position: relative;
  cursor: pointer;
  transition: all var(--sc-transition-normal);
  background: var(--sc-ecru);
  border-radius: var(--sc-radius-lg);
  overflow: hidden;
  box-shadow: var(--sc-shadow-soft);
}

.sc-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sc-shadow-deep);
}

.sc-product-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Product Image */
.sc-product-card__image-wrap {
  position: relative;
  width: 100%;
  padding-top: 100%;
  border-radius: var(--sc-radius-lg) var(--sc-radius-lg) 0 0;
  overflow: hidden;
  background: var(--sc-linen);
}

.sc-product-card__image-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--sc-transition-slow);
}

.sc-product-card:hover .sc-product-card__image-wrap img {
  transform: scale(1.06);
}

/* Favourite Heart */
.sc-product-card__favourite {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: var(--sc-radius-full);
  background: var(--sc-warm-92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--sc-oak-10);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.85);
  transition: all var(--sc-transition-fast);
  z-index: 2;
  box-shadow: var(--sc-shadow-soft);
}

.sc-product-card:hover .sc-product-card__favourite {
  opacity: 1;
  transform: scale(1);
}

.sc-product-card__favourite:hover {
  background: rgba(255,255,255,1);
  transform: scale(1.1) !important;
  border-color: var(--sc-clay);
}

.sc-product-card__favourite.active {
  opacity: 1;
  transform: scale(1);
}

.sc-product-card__favourite.active svg {
  fill: var(--sc-clay);
  stroke: var(--sc-clay);
}

.sc-product-card__favourite svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--sc-graphite);
  stroke-width: 2;
}

/* Product Info */
.sc-product-card__info {
  padding: 14px 4px 8px;
}

.sc-product-card__title {
  font-family: var(--sc-font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--sc-ink);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 4px;
}

.sc-product-card__vendor {
  font-family: var(--sc-font-ui);
  font-size: 12px;
  color: var(--sc-ash);
  margin-bottom: 6px;
}

.sc-product-card__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.sc-product-card__review-count {
  font-family: var(--sc-font-ui);
  font-size: 12px;
  color: var(--sc-stone);
}

/* Pricing */
.sc-product-card__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.sc-product-card__current-price {
  font-family: var(--sc-font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--sc-oak);
}

.sc-product-card__original-price {
  font-family: var(--sc-font-mono);
  font-size: 12px;
  color: var(--sc-ash);
  text-decoration: line-through;
}

.sc-product-card__discount {
  font-family: var(--sc-font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--sc-clay-hover);
  background: var(--sc-clay-light);
  padding: 2px 8px;
  border-radius: var(--sc-radius-sm);
}

/* Badges */
.sc-product-card__badges {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* ========================================
   FILTER PILLS
   ======================================== */
.sc-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: 1.5px solid var(--sc-oak-15);
  border-radius: var(--sc-radius-pill);
  background: transparent;
  font-family: var(--sc-font-ui);
  font-size: 13px;
  font-weight: 400;
  color: var(--sc-graphite);
  cursor: pointer;
  transition: all var(--sc-transition-fast);
  white-space: nowrap;
}

.sc-filter-pill:hover {
  border-color: var(--sc-oak-medium);
  color: var(--sc-oak);
  background: var(--sc-linen);
}

.sc-filter-pill.active {
  background: var(--sc-oak);
  color: var(--sc-ivory);
  border-color: var(--sc-oak);
  box-shadow: var(--sc-shadow-soft);
}

.sc-filter-pill svg {
  width: 14px;
  height: 14px;
}

/* ========================================
   SORT DROPDOWN
   ======================================== */
.sc-sort-dropdown {
  position: relative;
}

.sc-sort-dropdown__trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: 1.5px solid var(--sc-oak-15);
  border-radius: var(--sc-radius-pill);
  background: transparent;
  font-family: var(--sc-font-ui);
  font-size: 13px;
  font-weight: 400;
  color: var(--sc-graphite);
  cursor: pointer;
  transition: all var(--sc-transition-fast);
}

.sc-sort-dropdown__trigger:hover {
  border-color: var(--sc-oak-medium);
  background: var(--sc-linen);
}

.sc-sort-dropdown__trigger svg {
  width: 16px;
  height: 16px;
}

.sc-sort-dropdown__menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--sc-ecru);
  border: 1px solid var(--sc-oak-12);
  border-radius: var(--sc-radius-md);
  box-shadow: var(--sc-shadow-medium);
  z-index: 100;
  min-width: 200px;
  overflow: hidden;
}

.sc-sort-dropdown__menu.open {
  display: block;
  animation: scFadeSlideDown 200ms ease;
}

.sc-sort-dropdown__option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 18px;
  font-family: var(--sc-font-ui);
  font-size: 13px;
  font-weight: 400;
  color: var(--sc-graphite);
  background: none;
  border: none;
  cursor: pointer;
  transition: all var(--sc-transition-fast);
}

.sc-sort-dropdown__option:hover {
  background: var(--sc-linen);
  color: var(--sc-oak);
}

.sc-sort-dropdown__option.active {
  font-weight: 600;
  color: var(--sc-oak);
  background: var(--sc-cream);
}

/* ========================================
   STAR RATING
   ======================================== */
.sc-stars {
  display: inline-flex;
  gap: 2px;
}

.sc-star {
  display: inline-flex;
}

.sc-star svg {
  width: 14px;
  height: 14px;
}

.sc-star svg.filled {
  fill: var(--sc-gold);
}

.sc-star svg.half {
  fill: url(#sc-star-half-gradient);
}

.sc-star svg.empty {
  fill: var(--sc-gold-empty);
}

/* ========================================
   BADGES
   ======================================== */
.sc-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--sc-radius-sm);
  font-family: var(--sc-font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.sc-badge--delivery {
  background: var(--sc-patina-light);
  color: var(--sc-patina);
}

/* ========================================
   PAGINATION
   ======================================== */
.sc-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 48px;
}

.sc-pagination__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1.5px solid var(--sc-oak-15);
  border-radius: var(--sc-radius-pill);
  background: var(--sc-ecru);
  font-family: var(--sc-font-ui);
  font-size: 14px;
  font-weight: 400;
  color: var(--sc-graphite);
  cursor: pointer;
  transition: all var(--sc-transition-fast);
  text-decoration: none;
}

.sc-pagination__btn:hover {
  border-color: var(--sc-oak-medium);
  color: var(--sc-oak);
  background: var(--sc-linen);
}

.sc-pagination__btn.active {
  background: var(--sc-oak);
  color: var(--sc-ivory);
  border-color: var(--sc-oak);
  box-shadow: var(--sc-shadow-soft);
}

.sc-pagination__btn.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.sc-pagination__dots {
  color: var(--sc-ash);
  padding: 0 8px;
  font-size: 14px;
  font-family: var(--sc-font-ui);
}

.sc-pagination__prev,
.sc-pagination__next {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ========================================
   NO RESULTS
   ======================================== */
.sc-no-results {
  grid-column: 1/-1;
  text-align: center;
  padding: 80px 20px;
  background: var(--sc-ecru);
  border-radius: var(--sc-radius-xl);
  border: 1.5px dashed var(--sc-oak-15);
}

.sc-no-results svg {
  margin: 0 auto 20px;
  display: block;
  color: var(--sc-ash);
}

.sc-no-results h3 {
  font-family: var(--sc-font-display);
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--sc-umber);
}

.sc-no-results p {
  font-family: var(--sc-font-body);
  color: var(--sc-stone);
  font-size: 15px;
  margin: 0;
}

.sc-no-results a {
  color: var(--sc-oak-medium);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ========================================
   SEARCH RESULTS DROPDOWN
   ======================================== */
.sc-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--sc-ecru);
  border: 1px solid var(--sc-oak-12);
  border-radius: var(--sc-radius-md);
  box-shadow: var(--sc-shadow-medium);
  z-index: 1000;
  max-height: 420px;
  overflow-y: auto;
  padding: 8px;
}

.sc-search-results__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--sc-radius-md);
  transition: background var(--sc-transition-fast);
  cursor: pointer;
  text-decoration: none;
}

.sc-search-results__item:hover {
  background: var(--sc-linen);
}

.sc-search-results__item img {
  width: 44px;
  height: 44px;
  border-radius: var(--sc-radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.sc-search-results__item-info {
  flex: 1;
  min-width: 0;
}

.sc-search-results__item-title {
  font-family: var(--sc-font-ui);
  font-size: 13px;
  font-weight: 400;
  color: var(--sc-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.sc-search-results__item-price {
  font-family: var(--sc-font-ui);
  font-size: 12px;
  font-weight: 600;
  color: var(--sc-oak-medium);
  margin-top: 2px;
}


/* ========================================
   BLOG / TIPS SECTION
   ======================================== */
.sc-blog-section {
  padding: 48px var(--sc-padding-page);
  max-width: var(--sc-max-width);
  margin: 0 auto;
}

.sc-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sc-blog-card {
  background: var(--sc-ecru);
  border-radius: var(--sc-radius-lg);
  overflow: hidden;
  border: 1px solid var(--sc-oak-08);
  transition: all var(--sc-transition-normal);
  box-shadow: var(--sc-shadow-soft);
}

.sc-blog-card:hover {
  box-shadow: var(--sc-shadow-deep);
  transform: translateY(-4px);
}

.sc-blog-card__image {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.sc-blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--sc-transition-slow);
}

.sc-blog-card:hover .sc-blog-card__image img {
  transform: scale(1.06);
}

.sc-blog-card__content {
  padding: 20px;
}

.sc-blog-card__meta {
  font-family: var(--sc-font-ui);
  font-size: 11px;
  color: var(--sc-ash);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 500;
}

.sc-blog-card__title {
  font-family: var(--sc-font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--sc-umber);
  margin: 0 0 8px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sc-blog-card__excerpt {
  font-family: var(--sc-font-body);
  font-size: 15px;
  color: var(--sc-stone);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .sc-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sc-blog-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   INSTAGRAM SECTION
   ======================================== */
.sc-instagram-section {
  padding: 48px var(--sc-padding-page);
  max-width: var(--sc-max-width);
  margin: 0 auto;
}

.sc-instagram-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.sc-instagram-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--sc-radius-md);
  overflow: hidden;
  background: var(--sc-linen);
  cursor: pointer;
}

.sc-instagram-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--sc-transition-slow);
}

.sc-instagram-item:hover img {
  transform: scale(1.08);
}

.sc-instagram-item__overlay {
  position: absolute;
  inset: 0;
  background: var(--sc-ink-45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--sc-transition-fast);
}

.sc-instagram-item:hover .sc-instagram-item__overlay {
  opacity: 1;
}

.sc-instagram-item__overlay svg {
  width: 28px;
  height: 28px;
  fill: var(--sc-ivory);
}

@media (max-width: 1024px) {
  .sc-instagram-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .sc-instagram-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================
   RELATED TAGS
   ======================================== */
.sc-related-tags {
  margin: 32px 0;
  padding: 0 var(--sc-padding-page);
  max-width: var(--sc-max-width);
  margin-left: auto;
  margin-right: auto;
}

.sc-related-tags__title {
  font-family: var(--sc-font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--sc-umber);
  margin-bottom: 14px;
}

.sc-related-tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sc-related-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: 1.5px solid var(--sc-oak-15);
  border-radius: var(--sc-radius-pill);
  font-family: var(--sc-font-ui);
  font-size: 13px;
  font-weight: 400;
  color: var(--sc-graphite);
  background: transparent;
  text-decoration: none;
  transition: all var(--sc-transition-fast);
}

.sc-related-tag:hover {
  border-color: var(--sc-oak-medium);
  color: var(--sc-oak);
  background: var(--sc-linen);
}

.sc-related-tag svg {
  width: 14px;
  height: 14px;
}

/* ========================================
   NEWSLETTER SECTION
   ======================================== */
.sc-newsletter {
  background: linear-gradient(135deg, var(--sc-dusk) 0%, var(--sc-dusk-hover) 100%);
  padding: 56px var(--sc-padding-page);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sc-newsletter::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: var(--sc-cream-06);
  border-radius: 50%;
  animation: driftShadow 15s infinite ease-in-out;
}

.sc-newsletter::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 250px;
  height: 250px;
  background: var(--sc-cream-04);
  border-radius: 50%;
  animation: driftShadow 15s infinite ease-in-out reverse;
}

.sc-newsletter__text {
  font-family: var(--sc-font-body);
  font-size: 18px;
  color: var(--sc-cream-92);
  margin-bottom: 24px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
  line-height: 1.65;
}

.sc-newsletter__form {
  display: flex;
  max-width: 520px;
  margin: 0 auto;
  border-radius: var(--sc-radius-pill);
  overflow: hidden;
  background: var(--sc-ivory);
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 20px var(--sc-ink-15);
}

.sc-newsletter__input {
  flex: 1;
  padding: 16px 24px;
  border: none;
  font-size: 15px;
  font-family: var(--sc-font-body);
  outline: none;
  background: transparent;
  color: var(--sc-ink);
}

.sc-newsletter__input::placeholder {
  color: var(--sc-ash);
  font-family: var(--sc-font-body);
}

.sc-newsletter__btn {
  padding: 16px 32px;
  background: var(--sc-umber);
  color: var(--sc-ivory);
  border: none;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--sc-font-ui);
  cursor: pointer;
  transition: all var(--sc-transition-fast);
  white-space: nowrap;
}

.sc-newsletter__btn:hover {
  background: var(--sc-oak);
}


/* ========================================
   FOOTER
   ======================================== */
.sc-footer {
  background: var(--sc-wool-charcoal);
  color: var(--sc-linen-80);
  border-top: none;
}

.sc-footer__eco {
  text-align: center;
  padding: 16px;
  background: var(--sc-wool-charcoal);
  font-family: var(--sc-font-ui);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--sc-linen-70);
  border-bottom: 1px solid var(--sc-linen-08);
}

.sc-footer__eco svg {
  width: 20px;
  height: 20px;
  color: var(--sc-patina-light);
}

.sc-footer__main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 56px var(--sc-padding-page);
  max-width: var(--sc-max-width);
  margin: 0 auto;
}

.sc-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sc-footer__logo {
  height: 48px;
  width: auto;
  filter: sepia(20%) contrast(90%);
}

.sc-footer__logo-text {
  font-family: var(--sc-font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--sc-brass-light);
}

.sc-footer__column h4 {
  font-family: var(--sc-font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--sc-brass-light);
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.sc-footer__column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sc-footer__column li {
  margin-bottom: 12px;
}

.sc-footer__column a {
  font-family: var(--sc-font-body);
  font-size: 15px;
  color: var(--sc-linen-70);
  transition: all var(--sc-transition-fast);
  display: inline-block;
}

.sc-footer__column a:hover {
  color: var(--sc-brass-light);
  transform: translateX(3px);
}

.sc-footer__social {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.sc-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--sc-radius-full);
  background: var(--sc-linen-06);
  border: 1px solid var(--sc-linen-10);
  transition: all var(--sc-transition-fast);
}

.sc-footer__social a:hover {
  background: var(--sc-brass);
  border-color: var(--sc-brass);
}

.sc-footer__social svg {
  width: 16px;
  height: 16px;
  fill: var(--sc-linen-60);
  transition: fill var(--sc-transition-fast);
}

.sc-footer__social a:hover svg {
  fill: var(--sc-ivory);
}

.sc-footer__app-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--sc-brass);
  color: var(--sc-ivory);
  border-radius: var(--sc-radius-pill);
  font-family: var(--sc-font-ui);
  font-size: 14px;
  font-weight: 600;
  width: fit-content;
  transition: all var(--sc-transition-fast);
  text-decoration: none;
  box-shadow: var(--sc-shadow-cta);
}

.sc-footer__app-btn:hover {
  background: var(--sc-brass-hover);
  transform: translateY(-1px);
}

/* Footer Bottom Bar */
.sc-footer__bottom {
  background: var(--sc-ink-30);
  padding: 20px var(--sc-padding-page);
  border-top: 1px solid var(--sc-linen-06);
}

.sc-footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--sc-max-width);
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 12px;
}

.sc-footer__locale {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sc-font-ui);
  font-size: 13px;
  color: var(--sc-linen-55);
}

.sc-footer__locale svg {
  width: 16px;
  height: 16px;
  color: var(--sc-brass-light);
}

.sc-footer__legal {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--sc-font-ui);
  font-size: 13px;
}

.sc-footer__legal span {
  color: var(--sc-linen-45);
}

.sc-footer__legal a {
  color: var(--sc-linen-60);
  text-decoration: none;
  transition: color var(--sc-transition-fast);
}

.sc-footer__legal a:hover {
  color: var(--sc-brass-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ========================================
   JOIN PAGE
   ======================================== */
.sc-join-page {
  min-height: 100vh;
  background:
    linear-gradient(
      160deg,
      var(--sc-linen) 0%,
      var(--sc-dusk-light) 40%,
      var(--sc-cream) 100%
    );
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px 60px;
}

.sc-join-hero {
  text-align: center;
  margin-bottom: 32px;
}

.sc-join-hero__logo {
  font-family: var(--sc-font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--sc-oak);
  display: block;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  text-decoration: none;
  position: relative;
}

.sc-join-hero__logo::after {
  content: '';
  display: block;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--sc-oak) 0px, var(--sc-oak) 4px,
    transparent 4px, transparent 8px
  );
  opacity: 0.7;
  margin-top: 4px;
}

.sc-join-hero__title {
  font-family: var(--sc-font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--sc-umber);
  margin: 0 0 8px;
}

.sc-join-hero__sub {
  font-family: var(--sc-font-body);
  font-size: 17px;
  color: var(--sc-stone);
  margin: 0;
  max-width: 440px;
  line-height: 1.6;
}

/* Tabs */
.sc-join-tabs {
  display: flex;
  gap: 8px;
  background: var(--sc-ecru);
  padding: 6px;
  border-radius: var(--sc-radius-pill);
  box-shadow: var(--sc-shadow-soft);
  margin-bottom: 32px;
  border: 1px solid var(--sc-oak-08);
}

.sc-join-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--sc-radius-pill);
  border: none;
  background: transparent;
  font-family: var(--sc-font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--sc-stone);
  cursor: pointer;
  transition: all var(--sc-transition-normal);
}

.sc-join-tab svg {
  width: 18px;
  height: 18px;
}

.sc-join-tab:hover {
  color: var(--sc-oak);
  background: var(--sc-linen);
}

.sc-join-tab.active {
  background: var(--sc-oak);
  color: var(--sc-ivory);
  box-shadow: var(--sc-shadow-soft);
}

/* Panel */
.sc-join-panel {
  display: none;
  width: 100%;
  max-width: 520px;
  animation: scFadeSlideDown 250ms ease;
}

.sc-join-panel.active {
  display: block;
}

/* Card */
.sc-join-card {
  background: var(--sc-ecru);
  border-radius: var(--sc-radius-xl);
  padding: 40px;
  box-shadow: var(--sc-shadow-medium);
  text-align: center;
  border: 1px solid var(--sc-oak-08);
}

.sc-join-card__icon {
  width: 72px;
  height: 72px;
  border-radius: var(--sc-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.sc-join-card__icon svg {
  width: 32px;
  height: 32px;
}

.sc-join-card__icon--buyer {
  background: var(--sc-patina-light);
  color: var(--sc-patina);
}

.sc-join-card__icon--seller {
  background: var(--sc-dusk-light);
  color: var(--sc-dusk);
}

.sc-join-card__title {
  font-family: var(--sc-font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--sc-umber);
  margin: 0 0 10px;
}

.sc-join-card__desc {
  font-family: var(--sc-font-body);
  font-size: 16px;
  color: var(--sc-stone);
  line-height: 1.6;
  margin: 0 0 24px;
}

/* Benefits list */
.sc-join-benefits {
  list-style: none;
  margin: 0 0 28px;
  padding: 16px 20px;
  text-align: left;
  background: var(--sc-linen);
  border-radius: var(--sc-radius-md);
  border: 1px solid var(--sc-oak-06);
}

.sc-join-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--sc-font-body);
  font-size: 14px;
  color: var(--sc-graphite);
  padding: 8px 0;
  line-height: 1.5;
}

.sc-join-benefits li + li {
  border-top: 1px solid var(--sc-oak-08);
}

.sc-join-benefits li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--sc-patina);
  margin-top: 3px;
}

/* CTA buttons */
.sc-join-cta {
  display: block;
  width: 100%;
  padding: 16px;
  border-radius: var(--sc-radius-pill);
  font-family: var(--sc-font-ui);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all var(--sc-transition-fast);
  margin-bottom: 16px;
  border: none;
  cursor: pointer;
}

.sc-join-cta--buyer {
  background: var(--sc-umber);
  color: var(--sc-ivory);
  box-shadow: var(--sc-shadow-soft);
}

.sc-join-cta--buyer:hover {
  background: var(--sc-oak);
  transform: translateY(-1px);
  box-shadow: var(--sc-shadow-medium);
}

.sc-join-cta--seller {
  background: var(--sc-brass);
  color: var(--sc-ivory);
  box-shadow: var(--sc-shadow-cta);
}

.sc-join-cta--seller:hover {
  background: var(--sc-brass-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--sc-brass-35);
}

/* Seller note */
.sc-join-seller-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--sc-brass-light);
  border: 1px solid var(--sc-brass-25);
  border-radius: var(--sc-radius-md);
  padding: 12px 16px;
  font-family: var(--sc-font-body);
  font-size: 13px;
  color: var(--sc-oak);
  text-align: left;
  margin-bottom: 16px;
  line-height: 1.5;
}

.sc-join-seller-note svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--sc-brass);
  margin-top: 2px;
}

/* Sign-in link */
.sc-join-signin {
  font-family: var(--sc-font-body);
  font-size: 14px;
  color: var(--sc-stone);
  margin: 4px 0 0;
}

.sc-join-signin a {
  color: var(--sc-oak-medium);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Footer links */
.sc-join-footer-links {
  margin-top: 28px;
  font-family: var(--sc-font-ui);
  font-size: 12px;
  color: var(--sc-ash);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.sc-join-footer-links a {
  color: var(--sc-stone);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--sc-transition-fast);
}

.sc-join-footer-links a:hover {
  color: var(--sc-oak);
}

/* ========================================
   LOADING SKELETON
   ======================================== */
.sc-skeleton {
  background: linear-gradient(90deg, var(--sc-linen) 25%, var(--sc-cream) 50%, var(--sc-linen) 75%);
  background-size: 200% 100%;
  animation: scShimmer 1.5s infinite;
  border-radius: var(--sc-radius-md);
}

.sc-skeleton--image {
  width: 100%;
  padding-top: 100%;
  border-radius: var(--sc-radius-lg);
}

.sc-skeleton--text {
  height: 14px;
  margin-bottom: 8px;
  width: 80%;
}

.sc-skeleton--text-sm {
  height: 10px;
  width: 60%;
}

/* ========================================
   WOOCOMMERCE: REGISTRATION NOTICE
   ======================================== */
.sc-login-required-notice {
  background: var(--sc-dusk-light);
  border: 1px solid var(--sc-dusk);
  border-radius: var(--sc-radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px auto;
  max-width: 640px;
  font-family: var(--sc-font-body);
  font-size: 15px;
  color: var(--sc-ink);
}

.sc-login-required-notice svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--sc-dusk);
}

.sc-login-required-notice a {
  color: var(--sc-dusk);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* ========================================
   UTILITY CLASSES
   ======================================== */
.sc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

.sc-container {
  max-width: var(--sc-max-width);
  margin: 0 auto;
  padding: 0 var(--sc-padding-page);
}

.sc-page-container {
  padding: 40px 20px;
  min-height: 60vh;
}

/* ========================================
   WP ADMIN BAR ADJUSTMENT
   ======================================== */
body.admin-bar .sc-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .sc-header {
    top: 46px;
  }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
  .sc-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .sc-header__main {
    padding: 10px 24px;
  }

  .sc-header__nav-inner {
    padding: 0 24px;
    gap: 24px;
  }

  .sc-marketplace {
    padding: 20px 24px 40px;
  }

  .sc-footer__main {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 40px 24px;
  }

  .sc-categories-showcase,
  .sc-related-tags,
  .sc-blog-section,
  .sc-instagram-section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .sc-newsletter {
    padding: 48px 24px;
  }

  .sc-hero {
    padding: 60px 24px;
  }

  .sc-promo-banner {
    padding: 48px 24px;
  }

  .sc-features-bar {
    padding: 20px 24px;
  }

  .sc-hero__inner {
    gap: 40px;
  }

  .sc-hero__title {
    font-size: 40px;
  }

  .sc-hero__image img {
    animation: none;
  }
}

/* Small Tablet */
@media (max-width: 768px) {
  :root {
    --sc-padding-page: 16px;
  }

  .sc-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .sc-header__main {
    padding: 8px 16px;
    gap: 8px;
    height: 64px;
  }

  .sc-header__categories-btn span {
    display: none;
  }

  .sc-header__action-link span {
    display: none;
  }

  .sc-header__search {
    max-width: none;
  }

  .sc-header__nav-inner {
    padding: 0 16px;
    justify-content: flex-start;
    gap: 20px;
  }

  .sc-header__nav {
    display: none;
  }

  .sc-marketplace {
    padding: 16px var(--sc-padding-page-mobile) 32px;
  }

  .sc-marketplace__title {
    font-size: 22px;
  }

  .sc-marketplace__filters {
    flex-direction: column;
    align-items: flex-start;
  }

  .sc-newsletter {
    padding: 40px 16px;
  }

  .sc-newsletter__form {
    flex-direction: column;
    border-radius: var(--sc-radius-md);
  }

  .sc-newsletter__btn {
    border-radius: 0 0 var(--sc-radius-md) var(--sc-radius-md);
  }

  .sc-footer__main {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 16px;
  }

  .sc-footer__bottom {
    padding: 16px;
  }

  .sc-footer__bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .sc-categories-showcase,
  .sc-related-tags,
  .sc-blog-section,
  .sc-instagram-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .sc-hero__title {
    font-size: 28px;
  }

  .sc-hero__subtitle {
    font-size: 16px;
  }

  .sc-promo-banner__title {
    font-size: 24px;
  }

  .sc-promo-banner {
    padding: 40px 16px;
  }

  .sc-section-header__title {
    font-size: 20px;
  }

  .sc-join-card {
    padding: 28px 20px;
  }

  .sc-join-hero__title {
    font-size: 24px;
  }

  .sc-join-tabs {
    gap: 4px;
    padding: 4px;
  }

  .sc-join-tab {
    padding: 8px 16px;
    font-size: 13px;
  }

  .sc-features-bar {
    padding: 16px;
  }

  .sc-container {
    padding: 0 16px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .sc-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .sc-product-card__current-price {
    font-size: 14px;
  }

  .sc-product-card__title {
    font-size: 13px;
  }

  .sc-product-card__favourite {
    opacity: 1;
    transform: scale(1);
  }

  .sc-header__logo-text {
    font-size: 22px;
  }

  .sc-header__logo-img {
    height: 100px;
    margin: -24px -12px -24px -6px;
  }

  .custom-logo {
    height: 44px;
    max-height: 44px;
    max-width: 160px;
  }

  .sc-filter-pill {
    padding: 8px 14px;
    font-size: 12px;
  }

  .sc-hero {
    padding: 40px 16px;
  }

  .sc-hero__title {
    font-size: 26px;
  }

  .sc-hero__cta {
    padding: 14px 24px;
    font-size: 14px;
  }

  .sc-promo-banner__title {
    font-size: 22px;
  }

  .sc-promo-banner__cta {
    padding: 12px 20px;
  }

  .sc-blog-grid {
    gap: 16px;
  }

  .sc-blog-card__content {
    padding: 16px;
  }

  .sc-instagram-grid {
    gap: 8px;
  }

  .sc-pagination__btn {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    font-size: 13px;
  }

  .sc-footer__main {
    padding: 24px 16px;
  }

  .sc-footer__column h4 {
    font-size: 12px;
  }

  .sc-footer__column a {
    font-size: 14px;
  }

  .sc-related-tag {
    padding: 8px 14px;
    font-size: 12px;
  }
}
}

/* ========================================
   SHOP FILTER SIDEBAR
   ======================================== */

/* ── Layout ────────────────────────────── */
.sc-shop-layout {
  display: grid !important;
  grid-template-columns: 280px 1fr !important;
  gap: 32px;
  align-items: start;
  padding-top: 24px;
  width: 100%;
}

.sc-shop-main {
  min-width: 0;
}

.sc-shop-toolbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.sc-shop-title {
  font-family: var(--sc-font-display);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 600;
  color: var(--sc-oak);
  margin: 0;
}

.sc-shop-result-count {
  font-size: 13px;
  color: var(--sc-ash);
  margin: 0;
  white-space: nowrap;
}

/* ── Sidebar shell ─────────────────────── */
.sc-filter-sidebar {
  background: var(--sc-ivory);
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius-lg);
  position: sticky;
  top: calc(var(--sc-header-height) + var(--sc-nav-height) + 16px);
  max-height: calc(100vh - var(--sc-header-height) - var(--sc-nav-height) - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sc-filter-sidebar::-webkit-scrollbar { width: 4px; }
.sc-filter-sidebar::-webkit-scrollbar-thumb { background: var(--sc-border); border-radius: 4px; }

.sc-filter-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--sc-border);
  position: sticky;
  top: 0;
  background: var(--sc-ivory);
  z-index: 2;
}

.sc-filter-sidebar__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--sc-oak);
  font-family: var(--sc-font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sc-filter-clear {
  font-size: 12px;
  color: var(--sc-dusk);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sc-filter-clear:hover { color: var(--sc-dusk-hover); }

/* ── Active tag strip ──────────────────── */
.sc-filter-active-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--sc-border);
}

.sc-filter-active-tags[style*="none"] { display: none; }

.sc-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px 3px 10px;
  background: var(--sc-dusk-light);
  border-radius: var(--sc-radius-pill);
  font-size: 12px;
  color: var(--sc-dusk-hover);
}

.sc-filter-tag__remove {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  color: var(--sc-dusk-hover);
  opacity: 0.7;
}

.sc-filter-tag__remove:hover { opacity: 1; }

/* ── Filter groups (details/summary) ──── */
.sc-filter-group {
  border-bottom: 1px solid var(--sc-border);
}

.sc-filter-group:last-child { border-bottom: none; }

.sc-filter-group__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--sc-oak);
  list-style: none;
  user-select: none;
}

.sc-filter-group__summary::-webkit-details-marker { display: none; }

.sc-filter-group__summary:hover { background: var(--sc-linen); }

.sc-filter-group__summary i {
  font-size: 14px;
  color: var(--sc-ash);
  transition: transform var(--sc-transition-fast);
  flex-shrink: 0;
}

.sc-filter-group[open] .sc-filter-group__summary i {
  transform: rotate(180deg);
}

.sc-filter-group__body {
  padding: 8px 16px 14px;
}

/* ── Sort select ───────────────────────── */
.sc-filter-sort {
  width: 100%;
  padding: 7px 10px;
  font-size: 13px;
  font-family: inherit;
  color: var(--sc-oak);
  background: var(--sc-linen);
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius-md);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239C8C5C' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

/* ── Colour swatches ───────────────────── */
.sc-colour-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 2px 0;
}

.sc-swatch-wrap {
  cursor: pointer;
  display: inline-block;
}

.sc-swatch-wrap input { position: absolute; opacity: 0; width: 0; height: 0; }

.sc-swatch {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  outline: 2px solid transparent;
  transition: transform var(--sc-transition-fast), outline-color var(--sc-transition-fast);
}

.sc-swatch--multi {
  background: conic-gradient(#E53935 0deg 60deg, #FB8C00 60deg 120deg, #FDD835 120deg 180deg, #43A047 180deg 240deg, #1E88E5 240deg 300deg, #7C5F71 300deg 360deg);
}

.sc-swatch-wrap--active .sc-swatch,
.sc-swatch-wrap:hover .sc-swatch {
  transform: scale(1.18);
  outline-color: var(--sc-dusk);
}

/* ── Checklist items ───────────────────── */
.sc-filter-checklist {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sc-filter-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: var(--sc-radius-md);
  cursor: pointer;
  font-size: 13px;
  color: var(--sc-oak);
  transition: background var(--sc-transition-fast);
}

.sc-filter-check-label:hover { background: var(--sc-linen); }
.sc-filter-check-label.active { color: var(--sc-dusk-hover); }

.sc-filter-check-label input[type="checkbox"] {
  accent-color: var(--sc-dusk);
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  cursor: pointer;
}

.sc-filter-check-label span:first-of-type { flex: 1; }

.sc-filter-count {
  font-size: 11px;
  color: var(--sc-ash);
  font-family: var(--sc-font-mono);
  flex-shrink: 0;
}

/* ── Sub-group labels ──────────────────── */
.sc-filter-subgroup { margin-bottom: 10px; }
.sc-filter-subgroup:last-child { margin-bottom: 0; }

.sc-filter-subgroup__label {
  display: block;
  font-size: 10px;
  font-family: var(--sc-font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sc-brass);
  padding: 6px 8px 3px;
}

/* ── Price sliders ─────────────────────── */
.sc-price-sliders {
  position: relative;
  height: 28px;
  margin-bottom: 12px;
  --track-lo: 0%;
  --track-hi: 100%;
}

.sc-price-sliders input[type="range"] {
  position: absolute;
  width: 100%;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  appearance: none;
  height: 4px;
  background: transparent;
  pointer-events: none;
}

.sc-price-sliders::before {
  content: '';
  position: absolute;
  height: 4px;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
  background: var(--sc-border);
  border-radius: 2px;
}

.sc-price-sliders::after {
  content: '';
  position: absolute;
  height: 4px;
  top: 50%;
  transform: translateY(-50%);
  left: var(--track-lo);
  right: calc(100% - var(--track-hi));
  background: var(--sc-dusk);
  border-radius: 2px;
}

.sc-price-sliders input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sc-ivory);
  border: 2px solid var(--sc-dusk);
  cursor: pointer;
  pointer-events: all;
  box-shadow: var(--sc-shadow-soft);
  transition: border-color var(--sc-transition-fast);
}

.sc-price-sliders input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sc-ivory);
  border: 2px solid var(--sc-dusk);
  cursor: pointer;
  pointer-events: all;
}

.sc-price-sliders input[type="range"]:hover::-webkit-slider-thumb { border-color: var(--sc-dusk-hover); }

.sc-price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sc-price-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--sc-ash);
  font-family: var(--sc-font-mono);
  flex: 1;
}

.sc-price-label input {
  width: 100%;
  padding: 5px 6px;
  font-size: 12px;
  font-family: var(--sc-font-mono);
  color: var(--sc-oak);
  background: var(--sc-linen);
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius-sm);
}

.sc-price-dash { color: var(--sc-ash); font-size: 13px; flex-shrink: 0; }

/* ── Product grid loading state ────────── */
.sc-product-grid.sc-loading {
  opacity: 0.5;
  pointer-events: none;
  transition: opacity var(--sc-transition-normal);
}

/* ── Mobile filter toggle ──────────────── */
.sc-filter-mobile-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--sc-ivory);
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--sc-oak);
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 16px;
}

.sc-filter-mobile-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--sc-dusk);
  color: var(--sc-ivory);
  border-radius: 9px;
  font-size: 11px;
  font-family: var(--sc-font-mono);
}

.sc-filter-mobile-done {
  display: none;
  width: calc(100% - 32px);
  margin: 16px;
  padding: 11px;
  background: var(--sc-dusk);
  color: var(--sc-ivory);
  border: none;
  border-radius: var(--sc-radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

/* ── Overlay scrim ─────────────────────── */
.sc-filter-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(42, 30, 22, 0.45);
  z-index: 200;
}

.sc-filter-overlay--visible { display: block; }

/* ── Mobile responsive ─────────────────── */
@media (max-width: 860px) {
  .sc-shop-layout {
    grid-template-columns: 1fr;
  }

  .sc-filter-mobile-toggle { display: flex; }

  .sc-filter-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100dvh;
    width: min(320px, 90vw);
    border-radius: 0 var(--sc-radius-xl) var(--sc-radius-xl) 0;
    z-index: 300;
    max-height: 100dvh;
    transform: translateX(-100%);
    transition: transform var(--sc-transition-normal);
    box-shadow: var(--sc-shadow-deep);
  }

  .sc-filter-sidebar--open {
    transform: translateX(0);
  }

  .sc-filter-mobile-done { display: block; }
}
