/*
Theme Name: COSA NOSTRA
Theme URI: https://cosanostra.in
Author: COSA NOSTRA
Description: Premium Men's Fashion – Clean Minimal Design
Version: 5.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: cosanostra
*/

/* ─────────────────────────────────────────────────────────
   TOKENS — single source of truth, all names unified
───────────────────────────────────────────────────────── */
:root {
  /* Colours */
  --black:      #111111;
  --white:      #ffffff;
  --gray-100:   #f5f5f5;
  --gray-200:   #e8e8e8;
  --gray-400:   #bbbbbb;
  --gray-600:   #767676;
  --gray-800:   #444444;
  --red:        #CC0000;
  --border:     #e0e0e0;

  /* Legacy aliases — used by components.css */
  --cn-black:      var(--black);
  --cn-white:      var(--white);
  --cn-off-white:  var(--gray-100);
  --cn-mid-gray:   var(--gray-400);
  --cn-dark-gray:  var(--gray-800);
  --cn-light-gray: var(--gray-200);
  --cn-border:     var(--border);
  --cn-red:        var(--red);

  /* Typography */
  --font: 'Helvetica Neue', Arial, sans-serif;

  /* Easing */
  --ease: cubic-bezier(0.4,0,0.2,1);
  --fast: 0.15s;
  --med:  0.25s;
  --slow: 0.4s;

  /* Layout */
  --max:      1400px;
  --pad:      clamp(16px, 3vw, 40px);
  --header-h: 64px;
}

/* ─────────────────────────────────────────────────────────
   RESET
───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden; /* FIX: prevent horizontal overflow on html */
}
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }
/* FIX: prevent WooCommerce default styles conflicting */
.woocommerce-page .col2-set,
.woocommerce-page .col-1,
.woocommerce-page .col-2 { float: none; width: 100%; }

/* ─────────────────────────────────────────────────────────
   LOADING SCREEN
───────────────────────────────────────────────────────── */
.loading-screen {
  position: fixed; inset: 0; background: var(--white); z-index: 99999;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  transition: opacity var(--slow) var(--ease), visibility var(--slow);
}
.loading-screen.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-logo-img { max-height: 52px; width: auto; object-fit: contain; }
.loading-bar-wrap { width: 80px; height: 1px; background: var(--gray-200); overflow: hidden; }
.loading-bar { height: 100%; background: var(--black); animation: load 1.2s var(--ease) forwards; }
@keyframes load { from { width: 0 } to { width: 100% } }

/* ─────────────────────────────────────────────────────────
   ANNOUNCEMENT BAR
───────────────────────────────────────────────────────── */
.announcement-bar {
  background: var(--black); color: var(--white);
  text-align: center; padding: 10px var(--pad);
  font-size: 12px; letter-spacing: .06em; font-weight: 500; line-height: 1.4;
  position: relative; z-index: 901; /* above header */
}
.announcement-bar a { color: inherit; text-decoration: underline; }

/* ─────────────────────────────────────────────────────────
   HEADER
───────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; width: 100%; background: var(--white);
  border-bottom: 1px solid var(--border); z-index: 900;
  transition: box-shadow var(--med) var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.07); }
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
  height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center; gap: 24px;
}

/* Logo */
.site-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.cn-header-logo-img { height: 32px; width: auto; max-width: 160px; object-fit: contain; display: block; }

/* Primary nav — centered */
.primary-nav-wrap { display: flex; justify-content: center; overflow: visible; }
.primary-nav { display: flex; align-items: center; }
.primary-nav > li { position: relative; }
.primary-nav > li > a {
  display: block; padding: 0 14px; height: var(--header-h); line-height: var(--header-h);
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--black); white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--fast), border-color var(--fast);
}
.primary-nav > li > a:hover { border-bottom-color: var(--black); }
.primary-nav > li > a.is-sale { color: var(--red); }
.primary-nav > li > a.is-sale:hover { border-bottom-color: var(--red); }
.primary-nav > li > a.is-new { color: var(--black); }

/* Mega menu */
.mega-menu {
  position: absolute; top: calc(100% + 1px); left: 50%;
  background: var(--white); border-top: 2px solid var(--black); border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 40px rgba(0,0,0,.1);
  display: grid; grid-template-columns: repeat(4,160px); gap: 32px; padding: 32px;
  opacity: 0; visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: opacity var(--med) var(--ease), transform var(--med) var(--ease), visibility var(--med);
  pointer-events: none; z-index: 100; min-width: 680px;
}
.primary-nav > li:hover .mega-menu,
.primary-nav > li:focus-within .mega-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.mega-menu-col h4 { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-600); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.mega-menu-col ul li { margin-bottom: 8px; }
.mega-menu-col ul li a { font-size: 13px; color: var(--gray-800); transition: color var(--fast), padding-left var(--fast); display: block; }
.mega-menu-col ul li a:hover { color: var(--black); padding-left: 4px; }

/* Header actions */
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 0; flex-shrink: 0; }
.header-icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: none; border: none; border-radius: 50%;
  color: var(--black); position: relative;
  transition: background var(--fast), transform var(--fast);
}
.header-icon-btn:hover { background: var(--gray-100); transform: scale(1.05); }
.header-icon-btn svg { width: 20px; height: 20px; stroke-width: 1.5; pointer-events: none; }
.badge {
  position: absolute; top: 6px; right: 6px; width: 16px; height: 16px;
  background: var(--black); color: var(--white); border-radius: 50%;
  font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  line-height: 1; transition: transform var(--fast);
}
.header-icon-btn:hover .badge { transform: scale(1.15); }

/* Hamburger */
.menu-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; }
.menu-toggle span { display: block; height: 1.5px; background: var(--black); transition: transform var(--med) var(--ease), opacity var(--med); border-radius: 1px; }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1998; opacity: 0; visibility: hidden; transition: opacity var(--slow), visibility var(--slow); }
.mobile-nav-overlay.is-visible { opacity: 1; visibility: visible; }
.mobile-nav-drawer { position: fixed; top: 0; left: -100%; width: min(340px,92vw); height: 100%; background: var(--white); z-index: 1999; display: flex; flex-direction: column; overflow-y: auto; transition: left var(--slow) var(--ease); box-shadow: 4px 0 40px rgba(0,0,0,.1); }
.mobile-nav-drawer.is-open { left: 0; }
.mobile-nav-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.mobile-nav-close { font-size: 20px; line-height: 1; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background var(--fast); }
.mobile-nav-close:hover { background: var(--gray-100); }
.mobile-nav-body { flex: 1; padding: 8px 0; }
.mobile-nav-body a { display: flex; align-items: center; padding: 13px 20px; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; border-bottom: 1px solid var(--gray-100); color: var(--black); transition: background var(--fast), padding-left var(--fast); }
.mobile-nav-body a:hover { background: var(--gray-100); padding-left: 26px; }
.mobile-nav-body .sub-link { font-size: 13px; font-weight: 400; text-transform: none; padding-left: 36px; color: var(--gray-800); }
.mobile-nav-body .sale-link { color: var(--red); }

/* Search overlay */
.search-overlay { position: fixed; top: 0; left: 0; right: 0; background: var(--white); z-index: 1100; padding: 20px var(--pad); transform: translateY(-100%); transition: transform var(--med) var(--ease); box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.search-overlay.is-open { transform: translateY(0); }
.search-form-wrap { max-width: 680px; margin: 0 auto; position: relative; }
.search-input { width: 100%; border: none; border-bottom: 2px solid var(--black); padding: 10px 48px 10px 0; font-size: 18px; color: var(--black); background: transparent; outline: none; transition: border-color var(--fast); }
.search-input::placeholder { color: var(--gray-400); }
.search-close { position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--gray-600); padding: 4px; transition: color var(--fast), transform var(--fast); }
.search-close:hover { color: var(--black); transform: translateY(-50%) rotate(90deg); }
.search-tags { display: flex; gap: 8px; margin: 14px auto 0; max-width: 680px; flex-wrap: wrap; }
.search-tag { padding: 5px 14px; border: 1px solid var(--border); font-size: 12px; cursor: pointer; transition: all var(--fast); border-radius: 2px; }
.search-tag:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.search-results { max-width: 680px; margin: 12px auto 0; display: grid; grid-template-columns: repeat(auto-fill,minmax(140px,1fr)); gap: 10px; }

/* Cart drawer */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1998; opacity: 0; visibility: hidden; transition: opacity var(--slow), visibility var(--slow); }
.cart-overlay.is-visible { opacity: 1; visibility: visible; }
.cart-drawer { position: fixed; top: 0; right: -100%; width: min(440px,100vw); height: 100%; background: var(--white); z-index: 1999; display: flex; flex-direction: column; transition: right var(--slow) var(--ease); box-shadow: -4px 0 40px rgba(0,0,0,.08); }
.cart-drawer.is-open { right: 0; }
.cart-drawer-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.cart-drawer-header h3 { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.cart-close { font-size: 18px; color: var(--black); width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background var(--fast), transform var(--fast); }
.cart-close:hover { background: var(--gray-100); transform: rotate(90deg); }
.cart-free-shipping-bar { padding: 10px 24px; background: var(--gray-100); border-bottom: 1px solid var(--border); flex-shrink: 0; }
.cn-free-shipping-msg { font-size: 12px; color: var(--gray-800); margin-bottom: 6px; }
.cn-free-shipping-track { height: 2px; background: var(--gray-200); overflow: hidden; border-radius: 2px; }
.cn-free-shipping-progress { height: 100%; background: var(--black); transition: width .6s var(--ease); }
.cart-drawer-items { flex: 1; overflow-y: auto; padding: 12px 24px; }
.cart-empty { text-align: center; padding: 56px 24px; }
.cart-empty svg { width: 44px; height: 44px; margin: 0 auto 16px; color: var(--gray-400); }
.cart-empty p { font-size: 13px; color: var(--gray-600); margin-bottom: 20px; }
/* FIX: cart item row uses correct grid — consistent with PHP-rendered HTML */
.cart-item-row { display: grid; grid-template-columns: 80px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--gray-100); animation: fadeSlideIn .3s var(--ease); }
.cart-item-img { aspect-ratio: 3/4; object-fit: cover; width: 80px; background: var(--gray-100); }
.cart-item-info { min-width: 0; display: flex; flex-direction: column; }
.cart-item-name { font-size: 13px; font-weight: 600; line-height: 1.3; margin-bottom: 4px; }
.cart-item-variant { font-size: 12px; color: var(--gray-600); margin-bottom: 8px; }
.cart-item-controls { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.qty-box { display: flex; align-items: center; border: 1px solid var(--border); height: 30px; }
.qty-box button { width: 28px; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 14px; transition: background var(--fast); }
.qty-box button:hover { background: var(--gray-100); }
.qty-box input { width: 32px; height: 100%; text-align: center; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); font-size: 12px; }
.cart-item-price { font-size: 13px; font-weight: 700; }
.cart-item-remove { font-size: 11px; color: var(--gray-600); text-decoration: underline; margin-top: 8px; cursor: pointer; background: none; border: none; display: block; transition: color var(--fast); }
.cart-item-remove:hover { color: var(--red); }
.cart-loading { text-align: center; padding: 40px; font-size: 13px; color: var(--gray-600); }
.cart-drawer-footer { padding: 18px 24px; border-top: 1px solid var(--border); flex-shrink: 0; background: var(--white); }
.cart-subtotal-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 13px; }
.cart-subtotal-row strong { font-size: 16px; font-weight: 700; }

/* ─────────────────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 24px; height: 46px; font-size: 13px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; border: 1.5px solid transparent;
  transition: background var(--fast), color var(--fast), border-color var(--fast), transform var(--fast), box-shadow var(--fast);
  white-space: nowrap; font-family: var(--font); vertical-align: middle;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-primary:hover { background: #2a2a2a; border-color: #2a2a2a; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.btn-outline { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-outline-white:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-red { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-red:hover { background: #aa0000; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 11px; }
.btn-lg { height: 52px; padding: 0 36px; font-size: 14px; }
.btn-full { width: 100%; }

/* ─────────────────────────────────────────────────────────
   LAYOUT
───────────────────────────────────────────────────────── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); width: 100%; }
.section      { padding: 80px 0; }
.section--sm  { padding: 56px 0; }
.section--xs  { padding: 32px 0; }
.section--dark { background: var(--black); color: var(--white); }
.section--gray { background: var(--gray-100); }
.flex-between { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; }
.section-header { margin-bottom: 32px; }
.section-header.centered { text-align: center; }
.section-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--gray-600); margin-bottom: 8px; display: block; }
.section-title { font-size: clamp(22px,3vw,36px); font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; line-height: 1.05; }
.section-subtitle { font-size: 15px; color: var(--gray-600); margin-top: 8px; max-width: 520px; line-height: 1.6; }
.section-header.centered .section-subtitle { margin-inline: auto; }

/* ─────────────────────────────────────────────────────────
   REVEAL ANIMATIONS
───────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-left.is-visible { opacity: 1; transform: none; }
.reveal-right { opacity: 0; transform: translateX(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-right.is-visible { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(.96); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal-scale.is-visible { opacity: 1; transform: scale(1); }
/* Stagger delays */
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
.reveal-d4 { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale { opacity: 1; transform: none; transition: none; }
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ─────────────────────────────────────────────────────────
   HERO
───────────────────────────────────────────────────────── */
.hero { position: relative; height: clamp(420px, calc(100vh - 110px), 820px); overflow: hidden; background: var(--gray-100); }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s var(--ease); }
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide-bg { width: 100%; height: 100%; object-fit: cover; object-position: center top; transform: scale(1.04); transition: transform 6s ease-out; }
.hero-slide.active .hero-slide-bg { transform: scale(1); }
.hero-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #e8e8e8, #d0d0d0); }
.hero-placeholder-text { font-size: clamp(60px,15vw,160px); font-weight: 900; color: rgba(255,255,255,.5); letter-spacing: -.04em; text-transform: uppercase; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,.6) 0%, rgba(0,0,0,.25) 55%, transparent 100%); z-index: 2; }
.hero-content {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--pad); max-width: var(--max); margin-inline: auto; left: 0; right: 0; gap: 18px;
  z-index: 3;
}
.hero-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.7); opacity: 0; transform: translateY(12px); transition: opacity .6s .3s, transform .6s .3s var(--ease); }
.hero-headline { font-size: clamp(32px,6vw,80px); font-weight: 900; text-transform: uppercase; letter-spacing: -.03em; line-height: .95; color: var(--white); max-width: 640px; opacity: 0; transform: translateY(16px); transition: opacity .6s .45s, transform .6s .45s var(--ease); }
.hero-sub { font-size: clamp(14px,1.5vw,17px); color: rgba(255,255,255,.8); max-width: 400px; line-height: 1.6; opacity: 0; transform: translateY(12px); transition: opacity .6s .6s, transform .6s .6s var(--ease); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; opacity: 0; transform: translateY(12px); transition: opacity .5s .75s, transform .5s .75s var(--ease); }
.hero-slide.active .hero-eyebrow,
.hero-slide.active .hero-headline,
.hero-slide.active .hero-sub,
.hero-slide.active .hero-cta { opacity: 1; transform: none; }
.hero-controls { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 4; }
.hero-dot { width: 24px; height: 2px; background: rgba(255,255,255,.4); border: none; cursor: pointer; transition: all var(--fast); padding: 0; }
.hero-dot.active { background: var(--white); width: 40px; }
.hero-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.85); width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; z-index: 4; transition: background var(--fast), transform var(--fast); border: none; }
.hero-nav-btn:hover { background: var(--white); transform: translateY(-50%) scale(1.05); }
.hero-prev { left: 16px; }
.hero-next { right: 16px; }

/* ─────────────────────────────────────────────────────────
   TICKER
───────────────────────────────────────────────────────── */
.ticker { background: var(--black); color: var(--white); overflow: hidden; padding: 11px 0; white-space: nowrap; }
.ticker-track { display: inline-flex; animation: ticker 30s linear infinite; will-change: transform; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 10px; padding: 0 28px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.ticker-item .dot { width: 3px; height: 3px; background: rgba(255,255,255,.4); border-radius: 50%; }
@keyframes ticker { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* ─────────────────────────────────────────────────────────
   COLLECTIONS GRID
───────────────────────────────────────────────────────── */
.collections-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 3px; }
.collection-card { position: relative; overflow: hidden; aspect-ratio: 3/4; background: var(--gray-100); display: block; }
.collection-card:first-child { grid-column: span 2; aspect-ratio: unset; }
.collection-card-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: clamp(32px,7vw,80px); font-weight: 900; color: var(--gray-200); }
.collection-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .7s var(--ease); }
.collection-card:hover .collection-card-img { transform: scale(1.05); }
.collection-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.1) 60%); transition: background var(--med); }
.collection-card:hover .collection-card-overlay { background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.2) 70%); }
.collection-card-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; transform: translateY(0); transition: transform var(--med) var(--ease); }
.collection-card-label { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.65); margin-bottom: 5px; }
.collection-card-title { font-size: clamp(15px,2vw,22px); font-weight: 900; text-transform: uppercase; color: var(--white); margin-bottom: 12px; line-height: 1.15; }
.collection-card-cta { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--white); border-bottom: 1px solid rgba(255,255,255,.5); padding-bottom: 1px; transition: border-color var(--fast), gap var(--fast); }
.collection-card-cta svg { width: 12px; height: 12px; transition: transform var(--fast); }
.collection-card:hover .collection-card-cta { border-color: var(--white); gap: 8px; }
.collection-card:hover .collection-card-cta svg { transform: translateX(3px); }

/* ─────────────────────────────────────────────────────────
   PRODUCT CARDS & GRIDS — unified class names
───────────────────────────────────────────────────────── */
.products-grid { display: grid; gap: 2px; }
.products-grid--4 { grid-template-columns: repeat(4,1fr); }
.products-grid--3 { grid-template-columns: repeat(3,1fr); }
.products-grid--2 { grid-template-columns: repeat(2,1fr); }

/* Product card — covers both .cn-product-card and legacy .product-card */
.cn-product-card,
.product-card { list-style: none; position: relative; background: var(--white); }

/* FIX: product-card-media maps to __inner */
.cn-product-card__inner,
.product-card-media {
  position: relative; overflow: hidden; aspect-ratio: 3/4; background: var(--gray-100); display: block;
}
.cn-product-card__img-wrap,
.product-card-media > a {
  display: block; width: 100%; height: 100%; overflow: hidden; position: relative;
}
/* Images inside card media */
.cn-product-card__img-wrap img,
.product-card-media > a img,
.product-card-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  transition: transform .7s var(--ease), opacity .4s;
}
.product-card-img-alt { opacity: 0; }
.cn-product-card:hover .product-card-img-alt { opacity: 1; }
.product-card:hover .product-card-img-alt { opacity: 1; }
.cn-product-card:hover .product-card-img:not(.product-card-img-alt),
.product-card:hover .product-card-img:not(.product-card-img-alt) { transform: scale(1.04); }

/* FIX: placeholder inside media */
.cn-product-card__placeholder,
.product-card-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 900; color: var(--gray-200); background: var(--gray-100); }

/* Badges */
.cn-product-card__badges,
.product-badge-wrap { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; flex-direction: column; gap: 3px; }
.cn-badge,
.product-badge { padding: 3px 8px; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.cn-badge--sale,
.product-badge--sale { background: var(--red); color: var(--white); }
.cn-badge--new,
.product-badge--new { background: var(--black); color: var(--white); }
.cn-badge--bestseller,
.product-badge--hot { background: var(--gray-800); color: var(--white); }

/* Wishlist button */
.cn-product-card__wishlist,
.product-action-btn.cn-wishlist-btn {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  background: rgba(255,255,255,.9); border: none; width: 36px; height: 36px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0;
  transition: opacity var(--med), color var(--fast), transform var(--fast);
  color: var(--black);
}
.cn-product-card:hover .cn-product-card__wishlist,
.product-card:hover .product-action-btn.cn-wishlist-btn,
.cn-product-card__wishlist.is-wishlisted,
.product-action-btn.cn-wishlist-btn.wishlisted { opacity: 1; }
.cn-product-card__wishlist.is-wishlisted,
.product-action-btn.cn-wishlist-btn.wishlisted { color: var(--red); }
.cn-product-card__wishlist:hover,
.product-action-btn.cn-wishlist-btn:hover { transform: scale(1.1); }
.cn-product-card__wishlist svg,
.product-action-btn.cn-wishlist-btn svg { width: 16px; height: 16px; stroke-width: 1.5; }

/* Product card actions wrap */
.product-card-actions { position: absolute; top: 10px; right: 10px; z-index: 3; display: flex; flex-direction: column; gap: 6px; }
.product-action-btn { background: rgba(255,255,255,.9); border: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transition: opacity var(--med), transform var(--fast), color var(--fast); color: var(--black); }
.product-card:hover .product-action-btn { opacity: 1; }
.product-action-btn:hover { transform: scale(1.1); }
.product-action-btn svg { width: 16px; height: 16px; stroke-width: 1.5; }

/* Quick add */
.cn-product-card__quick-add,
.product-card-quick-add {
  position: absolute; bottom: 0; left: 0; right: 0;
  transform: translateY(100%);
  transition: transform .3s var(--ease);
  z-index: 3;
}
.cn-product-card:hover .cn-product-card__quick-add,
.product-card:hover .product-card-quick-add { transform: translateY(0); }
.cn-quick-add-btn,
.product-card-quick-add .btn {
  display: block; width: 100%; padding: 13px;
  background: var(--black); color: var(--white);
  border: none; font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer; text-align: center; text-decoration: none;
  transition: background var(--fast);
}
.cn-quick-add-btn:hover,
.product-card-quick-add .btn:hover { background: #2a2a2a; color: var(--white); }

/* Product info */
.cn-product-card__info,
.product-card-info { padding: 10px 4px 4px; background: var(--white); }
.product-card-brand { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-600); margin-bottom: 3px; }
.cn-product-card__name,
.product-card-name { display: block; font-size: 13px; font-weight: 600; color: var(--black); text-decoration: none; margin-bottom: 5px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cn-product-card__name:hover,
.product-card-name:hover { text-decoration: underline; }
/* FIX: product card link wrapper */
.product-card-info > a { text-decoration: none; color: inherit; }
.product-card-info > a:hover .product-card-name { text-decoration: underline; }

/* Price */
.cn-product-card__price-row,
.product-card-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.cn-product-card__price,
.price-current { font-size: 14px; font-weight: 700; color: var(--black); }
.cn-product-card__price--sale,
.price-current.on-sale { color: var(--red); }
.cn-product-card__price--regular,
.price-original { font-size: 12px; color: var(--gray-600); text-decoration: line-through; font-weight: 400; }
.price-off { font-size: 11px; font-weight: 700; color: var(--red); }

/* Color swatches on card */
.cn-product-card__colors,
.product-card-colors { display: flex; gap: 4px; margin-top: 5px; flex-wrap: wrap; }
.cn-product-card__color-dot,
.color-swatch { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,.14); cursor: pointer; transition: transform var(--fast); }
.color-swatch:hover { transform: scale(1.3); }

/* ─────────────────────────────────────────────────────────
   LIFESTYLE BANNERS
───────────────────────────────────────────────────────── */
.lifestyle-banner { position: relative; overflow: hidden; min-height: 460px; display: flex; align-items: center; background: var(--gray-100); }
.lifestyle-banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 8s ease-out; }
.lifestyle-banner:hover .lifestyle-banner-img { transform: scale(1.03); }
.lifestyle-banner-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg,#ddd,#c0c0c0); font-size: clamp(40px,8vw,100px); font-weight: 900; color: rgba(255,255,255,.5); letter-spacing: -.04em; text-transform: uppercase; }
.lifestyle-banner-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.lifestyle-banner-content { position: relative; z-index: 2; padding: 64px var(--pad); width: 100%; max-width: var(--max); margin-inline: auto; }
.lifestyle-banner-content .section-eyebrow { color: rgba(255,255,255,.65); }
.lifestyle-banner-content .section-title { color: var(--white); font-size: clamp(24px,4vw,52px); }
.lifestyle-banner-sub { color: rgba(255,255,255,.8); font-size: 15px; margin: 12px 0 28px; max-width: 460px; line-height: 1.6; }
.lifestyle-banner--right .lifestyle-banner-content { text-align: right; }
.lifestyle-banner--right .lifestyle-banner-sub { margin-inline-start: auto; }
.lifestyle-banner--right .banner-cta { justify-content: flex-end; }
.banner-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ─────────────────────────────────────────────────────────
   NEWSLETTER
───────────────────────────────────────────────────────── */
.newsletter { background: var(--black); color: var(--white); }
.newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.newsletter-heading { font-size: clamp(20px,3vw,32px); font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; margin-top: 8px; line-height: 1.1; }
.newsletter-desc { color: rgba(255,255,255,.55); font-size: 14px; margin-top: 10px; line-height: 1.6; }
.newsletter-form { display: flex; height: 48px; }
.newsletter-input { flex: 1; background: transparent; border: 1px solid rgba(255,255,255,.3); border-right: none; padding: 0 16px; color: var(--white); font-size: 14px; outline: none; transition: border-color var(--fast); min-width: 0; }
.newsletter-input::placeholder { color: rgba(255,255,255,.4); }
.newsletter-input:focus { border-color: rgba(255,255,255,.7); }
.newsletter-form .btn { height: 48px; flex-shrink: 0; }

/* ─────────────────────────────────────────────────────────
   FEATURES STRIP
───────────────────────────────────────────────────────── */
.features-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 28px 0; }
.features-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 32px; }
.feature-item { display: flex; align-items: flex-start; gap: 14px; }
.feature-icon { width: 28px; height: 28px; flex-shrink: 0; color: var(--black); }
.feature-icon svg { width: 100%; height: 100%; stroke-width: 1.5; }
.feature-title { font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.feature-desc { font-size: 12px; color: var(--gray-600); line-height: 1.5; }

/* ─────────────────────────────────────────────────────────
   INSTAGRAM GRID
───────────────────────────────────────────────────────── */
.insta-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 2px; }
.insta-item { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--gray-100); display: block; }
.insta-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.insta-item:hover img { transform: scale(1.08); }
.insta-item-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.4); opacity: 0; display: flex; align-items: center; justify-content: center; transition: opacity var(--med); }
.insta-item:hover .insta-item-overlay { opacity: 1; }
.insta-item-overlay svg { width: 28px; height: 28px; color: var(--white); }
.insta-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--gray-200); font-size: 24px; }

/* ─────────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────────── */
.site-footer { background: var(--white); border-top: 1px solid var(--border); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding: 64px var(--pad); max-width: var(--max); margin: 0 auto; }
.footer-logo-img { height: 32px; width: auto; object-fit: contain; max-width: 160px; margin-bottom: 16px; }
.footer-brand-desc { font-size: 13px; color: var(--gray-600); line-height: 1.7; max-width: 280px; }
.footer-social { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.footer-social a { width: 34px; height: 34px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--black); transition: all var(--fast); }
.footer-social a svg { width: 14px; height: 14px; stroke-width: 1.5; }
.footer-social a:hover { border-color: var(--black); background: var(--black); color: var(--white); transform: translateY(-2px); }
.footer-col h4 { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { font-size: 13px; color: var(--gray-600); transition: color var(--fast), padding-left var(--fast); display: block; }
.footer-col ul li a:hover { color: var(--black); padding-left: 4px; }
.footer-bottom { border-top: 1px solid var(--border); padding: 18px var(--pad); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; max-width: var(--max); margin: 0 auto; }
.footer-copyright { font-size: 12px; color: var(--gray-600); }
.footer-payments { display: flex; gap: 6px; flex-wrap: wrap; }
.payment-icon { padding: 4px 8px; border: 1px solid var(--border); font-size: 10px; font-weight: 700; letter-spacing: .04em; color: var(--gray-800); border-radius: 2px; transition: border-color var(--fast); }
.payment-icon:hover { border-color: var(--gray-400); }

/* ─────────────────────────────────────────────────────────
   PAGE COMPONENTS
───────────────────────────────────────────────────────── */
.cn-page-title-bar { background: var(--gray-100); padding: 48px 0 32px; border-bottom: 1px solid var(--border); }
.cn-page-title-bar__title { font-size: clamp(24px,4vw,40px); font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; }
.cn-breadcrumb { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--gray-600); margin-bottom: 10px; flex-wrap: wrap; }
.cn-breadcrumb a { color: var(--gray-600); transition: color var(--fast); }
.cn-breadcrumb a:hover { color: var(--black); text-decoration: underline; }
.cn-breadcrumb--light a { color: rgba(255,255,255,.6); }
.cn-breadcrumb--light a:hover { color: var(--white); }

/* ─────────────────────────────────────────────────────────
   SHOP / ARCHIVE
───────────────────────────────────────────────────────── */
.cn-shop-layout { padding: 36px 0 80px; }
.cn-shop-layout__inner { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.cn-shop-sidebar { position: sticky; top: calc(var(--header-h) + 16px); height: fit-content; }
.cn-sidebar-close { display: none; align-items: center; gap: 8px; }
.cn-shop-sidebar__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--black); }
.cn-shop-sidebar__header h3 { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.cn-filter-group { border-bottom: 1px solid var(--border); }
.cn-filter-group__toggle { width: 100%; background: none; border: none; padding: 13px 0; display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; transition: color var(--fast); }
.cn-filter-group__toggle:hover { color: var(--gray-600); }
.cn-arrow { font-size: 10px; transition: transform var(--med) var(--ease); }
.cn-arrow.is-open { transform: rotate(180deg); }
.cn-filter-group__body { padding-bottom: 14px; overflow: hidden; transition: max-height .35s var(--ease); max-height: 300px; }
.cn-filter-group__body.is-closed { max-height: 0; padding-bottom: 0; }
.cn-size-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.cn-size-chip { padding: 5px 10px; border: 1px solid var(--border); font-size: 11px; font-weight: 600; cursor: pointer; transition: all var(--fast); }
.cn-size-chip:hover, .cn-size-chip.active { background: var(--black); color: var(--white); border-color: var(--black); }
.cn-color-swatches--filter { display: flex; flex-wrap: wrap; gap: 6px; }
.cn-color-swatch--filter { width: 24px; height: 24px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; outline: 1px solid rgba(0,0,0,.15); transition: border-color var(--fast), transform var(--fast); }
.cn-color-swatch--filter:hover { transform: scale(1.1); }
.cn-color-swatch--filter.active { border-color: var(--black); outline-offset: 2px; }
.cn-shop-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
/* FIX: mobile filter toggle — visible on tablet */
.cn-filter-toggle { display: none; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--black); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; transition: background var(--fast), color var(--fast); }
.cn-filter-toggle:hover { background: var(--black); color: var(--white); }
.woocommerce-result-count { font-size: 12px; color: var(--gray-600); margin: 0 auto 0 0 !important; }

/* FIX: WooCommerce product list — must override default */
ul.products {
  display: grid !important;
  grid-template-columns: repeat(3,1fr) !important;
  gap: 2px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ─────────────────────────────────────────────────────────
   SINGLE PRODUCT
───────────────────────────────────────────────────────── */
.cn-product-page { padding: 40px 0 80px; }
.cn-product-page__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.cn-product-gallery { position: sticky; top: calc(var(--header-h) + 16px); display: grid; grid-template-columns: 72px 1fr; gap: 8px; }
.cn-product-gallery__thumbs { display: flex; flex-direction: column; gap: 5px; }
.cn-gallery-thumb { border: 2px solid transparent; padding: 0; background: none; cursor: pointer; transition: border-color var(--fast); overflow: hidden; }
.cn-gallery-thumb.is-active, .cn-gallery-thumb:hover { border-color: var(--black); }
.cn-gallery-thumb img { width: 68px; height: 90px; object-fit: cover; display: block; transition: transform var(--fast); }
.cn-gallery-thumb:hover img { transform: scale(1.04); }
.cn-product-gallery__main { position: relative; overflow: hidden; aspect-ratio: 3/4; background: var(--gray-100); cursor: zoom-in; }
.cn-gallery-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .35s var(--ease); }
.cn-gallery-slide.is-active { opacity: 1; position: relative; }
.cn-gallery-slide__img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.cn-product-badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; font-size: 11px; font-weight: 700; z-index: 2; }
.cn-product-badge--sale { background: var(--red); color: var(--white); }
.cn-gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.88); border: none; width: 38px; height: 38px; font-size: 16px; cursor: pointer; z-index: 2; display: flex; align-items: center; justify-content: center; transition: background var(--fast), transform var(--fast); }
.cn-gallery-nav:hover { background: var(--white); transform: translateY(-50%) scale(1.05); }
.cn-gallery-nav--prev { left: 8px; }
.cn-gallery-nav--next { right: 8px; }
.cn-product-info__eyebrow { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gray-600); margin-bottom: 8px; }
.cn-product-info__title { font-size: clamp(20px,2.5vw,28px); font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 12px; }
.cn-product-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.cn-stars { display: flex; gap: 1px; }
.cn-star { color: var(--gray-200); font-size: 14px; transition: color var(--fast); }
.cn-star--filled { color: var(--black); }
.cn-product-rating__count { font-size: 12px; color: var(--gray-600); text-decoration: underline; cursor: pointer; }
.cn-product-price { margin-bottom: 20px; }
.cn-product-price__current,
.cn-product-price__sale { font-size: 24px; font-weight: 900; }
.cn-product-price__sale { color: var(--red); }
.cn-product-price__regular { font-size: 16px; color: var(--gray-600); text-decoration: line-through; margin-left: 8px; font-weight: 400; }
.cn-product-price__tax { display: block; font-size: 11px; color: var(--gray-600); margin-top: 4px; }
.cn-product-usps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 20px 0; padding: 16px; background: var(--gray-100); }
.cn-product-usp { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--gray-800); }
.cn-product-usp svg { width: 14px; height: 14px; flex-shrink: 0; }
.cn-product-tabs { margin-top: 24px; }
.cn-product-tabs__nav { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; gap: 0; scrollbar-width: none; }
.cn-product-tabs__nav::-webkit-scrollbar { display: none; }
.cn-product-tab-btn { background: none; border: none; padding: 11px 14px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; color: var(--gray-600); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color var(--fast), border-color var(--fast); }
.cn-product-tab-btn.is-active { color: var(--black); border-bottom-color: var(--black); }
.cn-product-tab-panel { display: none; font-size: 13px; line-height: 1.8; color: var(--gray-800); }
.cn-product-tab-panel.is-active { display: block; animation: fadeSlideIn .3s var(--ease); }
.cn-details-table { width: 100%; border-collapse: collapse; }
.cn-details-table td { padding: 9px 0; border-bottom: 1px solid var(--gray-100); font-size: 13px; }
.cn-details-table td:first-child { color: var(--gray-600); width: 110px; font-size: 12px; }
.cn-size-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cn-size-table th, .cn-size-table td { padding: 9px 12px; border: 1px solid var(--border); text-align: center; }
.cn-size-table th { background: var(--black); color: var(--white); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.cn-size-table tr:nth-child(even) td { background: var(--gray-100); }

/* ─────────────────────────────────────────────────────────
   CART PAGE
───────────────────────────────────────────────────────── */
.cn-cart-page { display: grid; grid-template-columns: 1fr 340px; gap: 48px; padding: 48px 0 80px; align-items: start; }
.cn-cart-items__header { display: grid; grid-template-columns: 80px 1fr 120px 140px 90px 28px; gap: 14px; padding-bottom: 12px; border-bottom: 2px solid var(--black); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-600); }
.cn-cart-item { display: grid; grid-template-columns: 80px 1fr 120px 140px 90px 28px; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--border); animation: fadeSlideIn .35s var(--ease); }
.cn-cart-item__img img { width: 80px; height: 107px; object-fit: cover; display: block; background: var(--gray-100); }
.cn-cart-item__name { font-size: 13px; font-weight: 600; color: var(--black); text-decoration: none; display: block; margin-bottom: 4px; line-height: 1.3; }
.cn-cart-item__name:hover { text-decoration: underline; }
.cn-cart-item__variation { font-size: 12px; color: var(--gray-600); }
.cn-cart-item__price, .cn-cart-item__subtotal { font-size: 13px; font-weight: 700; }
.cn-qty-control { display: flex; align-items: center; border: 1px solid var(--border); width: fit-content; }
.cn-qty-btn { background: none; border: none; width: 30px; height: 34px; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background var(--fast); }
.cn-qty-btn:hover { background: var(--gray-100); }
.cn-qty-input { width: 40px; height: 34px; border: none; border-left: 1px solid var(--border); border-right: 1px solid var(--border); text-align: center; font-size: 13px; }
.cn-cart-item__remove { background: none; border: none; font-size: 16px; color: var(--gray-400); cursor: pointer; transition: color var(--fast), transform var(--fast); }
.cn-cart-item__remove:hover { color: var(--red); transform: scale(1.1); }
.cn-cart-actions { display: flex; align-items: center; gap: 10px; padding: 18px 0; flex-wrap: wrap; }
.cn-coupon { display: flex; }
.cn-coupon .cn-input { padding: 9px 14px; border: 1px solid var(--border); border-right: none; font-size: 13px; min-width: 0; transition: border-color var(--fast); }
.cn-coupon .cn-input:focus { border-color: var(--black); outline: none; }
.cn-cart-totals { border: 1px solid var(--border); padding: 24px; position: sticky; top: calc(var(--header-h) + 16px); }
.cn-cart-totals h3 { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--black); }
.cn-total-row { display: flex; justify-content: space-between; padding: 9px 0; font-size: 13px; border-bottom: 1px solid var(--gray-100); }
.cn-total-row--grand { font-weight: 700; font-size: 15px; border-bottom: none; padding-top: 14px; }

/* WooCommerce cart totals */
.cart_totals h2 { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--black); }
.cart_totals table { width: 100%; border-collapse: collapse; }
.cart_totals table tr td, .cart_totals table tr th { padding: 9px 0; border-bottom: 1px solid var(--gray-100); font-size: 13px; vertical-align: middle; }
.cart_totals table tr th { color: var(--gray-600); font-weight: 400; }
.cart_totals .order-total td, .cart_totals .order-total th { font-weight: 700; font-size: 15px; border-bottom: none; padding-top: 14px; }
.wc-proceed-to-checkout .checkout-button {
  display: flex; align-items: center; justify-content: center; width: 100%;
  background: var(--black); color: var(--white); text-align: center;
  padding: 0 24px; height: 52px; font-weight: 700; font-size: 13px;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  margin-top: 14px; transition: background var(--fast), transform var(--fast);
}
.wc-proceed-to-checkout .checkout-button:hover { background: #2a2a2a; transform: translateY(-1px); }

/* ─────────────────────────────────────────────────────────
   MY ACCOUNT
───────────────────────────────────────────────────────── */
.cn-account-page { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding: 48px 0 80px; align-items: start; }
.cn-account-nav { position: sticky; top: calc(var(--header-h) + 16px); border: 1px solid var(--border); overflow: hidden; }
.cn-account-nav__user { padding: 18px 20px; background: var(--black); color: var(--white); }
.cn-account-nav__avatar { width: 40px; height: 40px; background: rgba(255,255,255,.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 16px; margin-bottom: 10px; }
.cn-account-nav__name { display: block; font-weight: 700; font-size: 14px; }
.cn-account-nav__email { display: block; font-size: 11px; color: rgba(255,255,255,.5); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cn-account-nav__link { display: flex; align-items: center; gap: 8px; padding: 12px 20px; text-decoration: none; color: var(--gray-800); font-size: 13px; font-weight: 500; border-bottom: 1px solid var(--gray-100); transition: background var(--fast), color var(--fast), padding-left var(--fast); }
.cn-account-nav__link:hover, .cn-account-nav__link.is-active { background: var(--gray-100); color: var(--black); font-weight: 600; padding-left: 24px; }

/* ─────────────────────────────────────────────────────────
   CHECKOUT
───────────────────────────────────────────────────────── */
.cn-checkout-page { display: grid; grid-template-columns: 1fr 400px; gap: 60px; padding: 48px 0 80px; align-items: start; }
.cn-checkout-section-title { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 28px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.cn-checkout-section-title:first-child { margin-top: 0; }
.cn-checkout-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cn-field { grid-column: 1 / -1; }
.cn-field--half { grid-column: span 1; }
.woocommerce-form-row label, .cn-form-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gray-600); margin-bottom: 5px; }
.woocommerce-input-wrapper input,
.woocommerce-input-wrapper select,
.woocommerce-input-wrapper textarea,
.cn-input { width: 100%; padding: 11px 14px; border: 1px solid var(--border); font-size: 13px; background: var(--white); outline: none; transition: border-color var(--fast), box-shadow var(--fast); }
.woocommerce-input-wrapper input:focus,
.woocommerce-input-wrapper select:focus,
.cn-input:focus { border-color: var(--black); box-shadow: 0 0 0 2px rgba(17,17,17,.08); }
.cn-shipping-option, .cn-payment-option { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--border); margin-bottom: 8px; cursor: pointer; transition: border-color var(--fast), background var(--fast); }
.cn-shipping-option:hover, .cn-payment-option:hover { border-color: var(--black); background: var(--gray-100); }
.cn-shipping-option input, .cn-payment-option input { accent-color: var(--black); }
.cn-checkout-submit .btn { font-size: 14px; padding: 0 32px; height: 52px; margin-top: 4px; }
.cn-checkout-secure { display: flex; align-items: center; gap: 6px; justify-content: center; margin-top: 10px; font-size: 11px; color: var(--gray-600); letter-spacing: .04em; }
.cn-checkout-summary { background: var(--gray-100); padding: 24px; position: sticky; top: calc(var(--header-h) + 16px); }
.cn-checkout-summary__title { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--black); }
.cn-checkout-summary-item { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.cn-checkout-summary-item__img { position: relative; flex-shrink: 0; }
.cn-checkout-summary-item__img img { width: 56px; height: 74px; object-fit: cover; background: var(--white); }
.cn-checkout-summary-item__qty { position: absolute; top: -7px; right: -7px; width: 18px; height: 18px; background: var(--black); color: var(--white); border-radius: 50%; font-size: 9px; display: flex; align-items: center; justify-content: center; }
.cn-checkout-summary-item__info { flex: 1; min-width: 0; }
.cn-checkout-summary-item__name { display: block; font-size: 12px; font-weight: 600; line-height: 1.3; margin-bottom: 3px; }
.cn-checkout-summary-item__var { font-size: 11px; color: var(--gray-600); }
.cn-checkout-summary-item__price { font-weight: 700; font-size: 13px; white-space: nowrap; }
.cn-checkout-summary__totals { margin-top: 18px; }
.cn-checkout-total-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 13px; }
.cn-checkout-total-row--total { font-weight: 700; font-size: 15px; border-top: 2px solid var(--black); margin-top: 8px; padding-top: 14px; }
.cn-checkout-login-prompt { background: var(--gray-100); padding: 12px 14px; font-size: 12px; margin-bottom: 20px; border-left: 3px solid var(--black); }

/* ─────────────────────────────────────────────────────────
   WOOCOMMERCE GLOBAL
───────────────────────────────────────────────────────── */
.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
  border-top: 3px solid var(--black) !important;
  background: var(--gray-100) !important;
  padding: 14px 18px !important;
  margin-bottom: 20px !important;
  font-size: 13px !important;
  list-style: none !important;
  border-radius: 0 !important;
  animation: fadeSlideIn .4s var(--ease);
}
.woocommerce-error { border-top-color: var(--red) !important; }
.woocommerce-pagination ul { display: flex; gap: 4px; justify-content: center; margin-top: 48px; list-style: none; padding: 0; }
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--border); font-size: 13px; text-decoration: none; color: var(--black); transition: all var(--fast); }
.woocommerce-pagination ul li a:hover,
.woocommerce-pagination ul li span.current { background: var(--black); color: var(--white); border-color: var(--black); }

/* FIX: WooCommerce add to cart button — unified styles */
.single_add_to_cart_button,
button.single_add_to_cart_button {
  background: var(--black) !important;
  color: var(--white) !important;
  border: none !important;
  padding: 0 32px !important;
  height: 52px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  border-radius: 0 !important;
  transition: background var(--fast), transform var(--fast) !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.single_add_to_cart_button:hover { background: #2a2a2a !important; transform: translateY(-1px) !important; }
.variations select { padding: 10px 14px; border: 1px solid var(--border); font-size: 13px; background: var(--white); width: 100%; margin-bottom: 14px; outline: none; transition: border-color var(--fast); }
.variations select:focus { border-color: var(--black); }
.variations_form .variations tr { display: block; margin-bottom: 14px; }
.variations .label label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gray-600); display: block; margin-bottom: 6px; }

/* Sticky ATC */
.cn-sticky-atc { position: fixed; bottom: 0; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--border); padding: 10px 16px; display: flex; align-items: center; gap: 12px; z-index: 500; transform: translateY(100%); transition: transform .3s var(--ease); box-shadow: 0 -4px 20px rgba(0,0,0,.08); }
.cn-sticky-atc.is-visible { transform: translateY(0); }
.cn-sticky-atc__name { flex: 1; font-size: 13px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cn-sticky-atc__btn { height: 40px; padding: 0 20px; font-size: 12px; }

/* ─────────────────────────────────────────────────────────
   TOAST
───────────────────────────────────────────────────────── */
.cn-toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 99999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.cn-toast { background: var(--black); color: var(--white); padding: 13px 18px; font-size: 13px; pointer-events: all; transform: translateX(120%); opacity: 0; transition: transform .35s var(--ease), opacity .35s; max-width: 320px; display: flex; align-items: center; gap: 10px; border-left: 3px solid transparent; }
.cn-toast.is-visible { transform: translateX(0); opacity: 1; }
.cn-toast--error { border-left-color: var(--red); }
.cn-toast--success { border-left-color: #22c55e; }
.cn-toast__close { background: none; border: none; color: rgba(255,255,255,.5); cursor: pointer; font-size: 14px; margin-left: auto; padding: 0; transition: color var(--fast); }
.cn-toast__close:hover { color: var(--white); }

/* ─────────────────────────────────────────────────────────
   ARCHIVE / BLOG
───────────────────────────────────────────────────────── */
.cn-archive-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.cn-archive-card__thumb { display: block; overflow: hidden; aspect-ratio: 16/9; background: var(--gray-100); }
.cn-archive-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cn-archive-card:hover .cn-archive-card__thumb img { transform: scale(1.05); }
.cn-archive-card__body { padding: 18px 0; }
.cn-archive-card__meta { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--gray-600); margin-bottom: 10px; }
.cn-archive-card__title { font-size: 16px; font-weight: 700; line-height: 1.3; margin-bottom: 10px; }
.cn-archive-card__title a { color: var(--black); }
.cn-archive-card__title a:hover { text-decoration: underline; }
.cn-archive-card__excerpt { color: var(--gray-600); font-size: 13px; line-height: 1.6; margin-bottom: 14px; }
.cn-archive-card__link { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--black); text-decoration: none; border-bottom: 1px solid var(--black); padding-bottom: 1px; transition: letter-spacing var(--fast); }
.cn-archive-card__link:hover { letter-spacing: .12em; }

/* ─────────────────────────────────────────────────────────
   404
───────────────────────────────────────────────────────── */
.cn-404 { min-height: 72vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 80px var(--pad); background: var(--black); }
.cn-404__number { font-size: clamp(80px,20vw,200px); font-weight: 900; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.12); line-height: 1; margin-bottom: -20px; }
.cn-404__title { font-size: clamp(20px,4vw,40px); color: var(--white); font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; margin-bottom: 16px; }
.cn-404__desc { color: rgba(255,255,255,.5); margin-bottom: 36px; font-size: 14px; line-height: 1.7; }
.cn-404__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─────────────────────────────────────────────────────────
   AUTH MODAL
───────────────────────────────────────────────────────── */
.auth-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  z-index: 9998; opacity: 0; visibility: hidden;
  transition: opacity var(--slow), visibility var(--slow);
  backdrop-filter: blur(3px);
}
.auth-overlay.is-visible { opacity: 1; visibility: visible; }
.auth-modal {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -46%);
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  background: var(--white); z-index: 9999;
  overflow-y: auto; padding: 36px 40px 32px;
  opacity: 0; visibility: hidden;
  transition: opacity var(--med) var(--ease), transform var(--med) var(--ease), visibility var(--med);
  box-shadow: 0 24px 80px rgba(0,0,0,.2);
}
.auth-modal.is-open { opacity: 1; visibility: visible; transform: translate(-50%, -50%); }
@media (max-width: 520px) {
  .auth-modal {
    position: fixed; top: auto; bottom: 0; left: 0; right: 0;
    width: 100%; transform: translateY(100%);
    border-radius: 16px 16px 0 0; max-height: 92vh;
    padding: 28px 24px 32px;
  }
  .auth-modal.is-open { transform: translateY(0); top: auto; }
}
.auth-modal__close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: var(--gray-100); border: none; border-radius: 50%; font-size: 14px; color: var(--gray-600); cursor: pointer; transition: background var(--fast), color var(--fast), transform var(--fast); }
.auth-modal__close:hover { background: var(--gray-200); color: var(--black); transform: rotate(90deg); }
.auth-modal__logo { text-align: center; margin-bottom: 24px; }
.auth-modal__logo img { height: 32px; width: auto; margin: 0 auto; object-fit: contain; max-width: 160px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.auth-tab { padding: 12px 8px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: none; border: none; border-bottom: 2px solid transparent; color: var(--gray-600); cursor: pointer; margin-bottom: -1px; transition: color var(--fast), border-color var(--fast); }
.auth-tab.active { color: var(--black); border-bottom-color: var(--black); }
.auth-panel { display: none; }
.auth-panel.active { display: block; animation: fadeSlideIn .3s var(--ease); }
.auth-welcome { font-size: 13px; color: var(--gray-600); line-height: 1.6; margin-bottom: 20px; }
.auth-msg { padding: 10px 14px; font-size: 13px; margin-bottom: 16px; display: none; }
.auth-msg.is-error { background: #fff5f5; border-left: 3px solid var(--red); color: #c00; display: block; }
.auth-msg.is-success { background: #f0fff4; border-left: 3px solid #22c55e; color: #166534; display: block; }
.auth-field { margin-bottom: 16px; }
.auth-field label:not(.auth-checkbox) { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-600); margin-bottom: 5px; }
.auth-field input[type="text"],
.auth-field input[type="email"],
.auth-field input[type="password"] { width: 100%; padding: 11px 14px; border: 1px solid var(--border); font-size: 14px; color: var(--black); background: var(--white); outline: none; transition: border-color var(--fast), box-shadow var(--fast); -webkit-appearance: none; }
.auth-field input:focus { border-color: var(--black); box-shadow: 0 0 0 2px rgba(17,17,17,.08); }
.auth-field input.is-invalid { border-color: var(--red); }
.auth-fields-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-password-wrap { position: relative; }
.auth-password-wrap input { padding-right: 44px; }
.auth-password-toggle { position: absolute; right: 0; top: 0; width: 44px; height: 100%; background: none; border: none; cursor: pointer; color: var(--gray-400); display: flex; align-items: center; justify-content: center; transition: color var(--fast); }
.auth-password-toggle svg { width: 17px; height: 17px; }
.auth-password-toggle:hover { color: var(--black); }
.auth-password-strength { height: 3px; margin-top: 6px; background: var(--gray-200); overflow: hidden; border-radius: 2px; }
.auth-password-strength::after { content: ''; display: block; height: 100%; width: 0; transition: width .4s var(--ease), background .4s; }
.auth-password-strength[data-strength="1"]::after { width: 25%; background: var(--red); }
.auth-password-strength[data-strength="2"]::after { width: 50%; background: #f59e0b; }
.auth-password-strength[data-strength="3"]::after { width: 75%; background: #3b82f6; }
.auth-password-strength[data-strength="4"]::after { width: 100%; background: #22c55e; }
.auth-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.auth-checkbox { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray-800); cursor: pointer; }
.auth-checkbox input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--black); flex-shrink: 0; }
.auth-forgot { font-size: 12px; color: var(--gray-600); text-decoration: underline; }
.auth-forgot:hover { color: var(--black); }
.auth-submit { position: relative; }
.auth-submit__loader { display: none; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.auth-submit.is-loading .auth-submit__text { opacity: 0; }
.auth-submit.is-loading .auth-submit__loader { display: block; position: absolute; }
@keyframes spin { to { transform: rotate(360deg); } }
.auth-switch { text-align: center; font-size: 13px; color: var(--gray-600); margin-top: 20px; }
.auth-switch-btn { background: none; border: none; color: var(--black); font-weight: 700; text-decoration: underline; cursor: pointer; font-size: inherit; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { font-size: 11px; color: var(--gray-600); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.auth-social { display: flex; gap: 10px; }
.auth-social-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 16px; border: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--black); text-decoration: none; transition: border-color var(--fast), background var(--fast); }
.auth-social-btn:hover { border-color: var(--black); background: var(--gray-100); }
/* Account dropdown */
.account-dropdown-wrap { position: relative; }
.account-dot { position: absolute; bottom: 8px; right: 8px; width: 7px; height: 7px; background: #22c55e; border-radius: 50%; border: 1.5px solid var(--white); }
.account-dropdown { position: absolute; top: calc(100% + 8px); right: 0; width: 240px; background: var(--white); border: 1px solid var(--border); box-shadow: 0 8px 32px rgba(0,0,0,.1); z-index: 500; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity var(--med), transform var(--med) var(--ease), visibility var(--med); }
.account-dropdown-wrap:hover .account-dropdown,
.account-dropdown.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.account-dropdown__header { display: flex; gap: 12px; align-items: center; padding: 16px; border-bottom: 1px solid var(--border); background: var(--gray-100); }
.account-dropdown__avatar { width: 36px; height: 36px; background: var(--black); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 15px; flex-shrink: 0; }
.account-dropdown__name { font-size: 13px; font-weight: 700; line-height: 1.2; }
.account-dropdown__email { font-size: 11px; color: var(--gray-600); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.account-dropdown__nav { padding: 8px 0; }
.account-dropdown__nav a { display: block; padding: 10px 16px; font-size: 13px; color: var(--gray-800); transition: background var(--fast), color var(--fast), padding-left var(--fast); }
.account-dropdown__nav a:hover { background: var(--gray-100); color: var(--black); padding-left: 20px; }
.account-dropdown__logout { color: var(--red) !important; border-top: 1px solid var(--border); margin-top: 4px; }
.account-dropdown__logout:hover { background: #fff5f5 !important; }
.cn-guest-prompt { background: var(--gray-100); border: 1px solid var(--border); padding: 20px; margin-bottom: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cn-guest-prompt p { font-size: 13px; color: var(--gray-800); line-height: 1.5; }
.cn-guest-prompt strong { display: block; font-size: 14px; color: var(--black); margin-bottom: 4px; }

/* ─────────────────────────────────────────────────────────
   MEMBER CTA
───────────────────────────────────────────────────────── */
.member-cta { display: grid; grid-template-columns: 1fr 360px; gap: 60px; align-items: center; }
.member-perks { list-style: none; padding: 0; margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.member-perks li { font-size: 13px; color: rgba(255,255,255,.7); letter-spacing: .02em; }

/* ─────────────────────────────────────────────────────────
   SCROLL-TO-TOP
───────────────────────────────────────────────────────── */
.scroll-to-top {
  position: fixed; bottom: 24px; left: 24px; width: 40px; height: 40px;
  background: var(--black); color: var(--white); border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  z-index: 500; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--med), visibility var(--med), transform var(--med) var(--ease), background var(--fast);
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.scroll-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.scroll-to-top:hover { background: #2a2a2a; transform: translateY(-2px); }
.scroll-to-top svg { width: 16px; height: 16px; }

/* ═══════════════════════════════════════════════════════════
   EDITORIAL HOMEPAGE — new design system
═══════════════════════════════════════════════════════════ */

/* shared label / heading / link atoms */
.cn-label {
  display: block; font-size: 10px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gray-600); margin-bottom: 6px;
}
.cn-label--light  { color: rgba(255,255,255,.55); }
.cn-label--muted  { color: rgba(255,255,255,.35); }

.cn-heading {
  font-size: clamp(24px,4vw,42px); font-weight: 900;
  text-transform: uppercase; letter-spacing: -.03em;
  line-height: 1; color: var(--black);
}
.cn-heading--light { color: var(--white); }

.cn-text-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--black);
  border-bottom: 1px solid currentColor; padding-bottom: 1px;
  transition: gap var(--fast); white-space: nowrap; text-decoration: none;
}
.cn-text-link:hover { gap: 10px; }
.cn-text-link svg  { width: 14px; height: 10px; flex-shrink: 0; }
.cn-text-link--light { color: var(--white); }

/* section head (label + heading + "view all" link) */
.cn-section-head {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2px;
}
.cn-section-head--dark { border-bottom-color: rgba(255,255,255,.12); }
.cn-section-head__left { display: flex; flex-direction: column; }

/* product sections */
.cn-products-section        { padding: 64px 0; }
.cn-products-section--light { background: var(--gray-100); }
.cn-products-section--dark  {
  background: var(--black);
  /* override border token inside dark bg */
}
.cn-products-section--dark .cn-section-head { border-bottom-color: rgba(255,255,255,.1); }

/* product rail — desktop 4-col grid */
.cn-product-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 2px;
}

/* ── Editorial category grid ── */
.cn-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: 3px;
  background: var(--black);
}
/* card 1: hero-wide */
.cn-edit-card--1 { grid-column: 1 / -1; aspect-ratio: 21/8; }
.cn-edit-card--2,
.cn-edit-card--3,
.cn-edit-card--4 { aspect-ratio: 3/4; }

.cn-edit-card {
  position: relative; display: block;
  overflow: hidden; background: var(--gray-200);
  text-decoration: none;
}
.cn-edit-card__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  transition: transform .7s var(--ease);
}
.cn-edit-card:hover .cn-edit-card__img { transform: scale(1.04); }

.cn-edit-card__placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  overflow: hidden;
}
.cn-edit-card__placeholder img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}
.cn-edit-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.05) 55%);
  transition: background var(--med);
}
.cn-edit-card:hover .cn-edit-card__overlay {
  background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.1) 65%);
}
.cn-edit-card__body {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px 20px;
}
.cn-edit-card__eyebrow {
  display: block; font-size: 9px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.5); margin-bottom: 5px;
}
.cn-edit-card__title {
  font-size: clamp(14px, 2vw, 22px); font-weight: 900;
  text-transform: uppercase; color: var(--white);
  letter-spacing: -.01em; line-height: 1.1; margin-bottom: 10px;
}
.cn-edit-card__cta {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.4);
  padding-bottom: 2px;
  transition: gap var(--fast), border-color var(--fast);
}
.cn-edit-card__cta svg { width: 14px; height: 10px; transition: transform var(--fast); }
.cn-edit-card:hover .cn-edit-card__cta { gap: 9px; border-color: var(--white); }
.cn-edit-card:hover .cn-edit-card__cta svg { transform: translateX(3px); }

/* ── Editorial full-bleed banners ── */
.cn-editorial-banner { display: block; }
.cn-editorial-banner__inner {
  position: relative; display: block;
  height: clamp(480px, 65vh, 800px);
  overflow: hidden; text-decoration: none;
}
.cn-editorial-banner__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  transition: transform 7s ease-out;
}
.cn-editorial-banner__inner:hover .cn-editorial-banner__img { transform: scale(1.03); }
.cn-editorial-banner__fallback {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #181818 0%, #2c2c2c 100%);
  overflow: hidden;
}
.cn-editorial-banner__fallback img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}
.cn-editorial-banner__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.65) 0%, rgba(0,0,0,.2) 55%, transparent 100%);
}
.cn-editorial-banner--right .cn-editorial-banner__overlay {
  background: linear-gradient(to left, rgba(0,0,0,.65) 0%, rgba(0,0,0,.2) 55%, transparent 100%);
}
.cn-editorial-banner__text {
  position: absolute; bottom: 0; top: 0; left: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(32px, 5vw, 72px);
  max-width: min(520px, 55%);
}
.cn-editorial-banner--right .cn-editorial-banner__text {
  left: auto; right: 0;
  text-align: right; align-items: flex-end;
}
.cn-editorial-banner__heading {
  font-size: clamp(28px, 4.5vw, 60px); font-weight: 900;
  text-transform: uppercase; letter-spacing: -.03em; line-height: .95;
  color: var(--white); margin: 8px 0 14px;
}
.cn-editorial-banner__sub {
  font-size: clamp(13px, 1.3vw, 15px); color: rgba(255,255,255,.75);
  line-height: 1.65; margin-bottom: 24px; max-width: 380px;
}
.cn-editorial-banner--right .cn-editorial-banner__sub { max-width: 340px; }
.cn-editorial-banner__cta { align-self: flex-start; }
.cn-editorial-banner--right .cn-editorial-banner__cta { align-self: flex-end; }

/* ── Hero overrides ── */
/* Hero sits full-viewport-height, text anchors to bottom */
.hero {
  height: 100svh;
  height: 100vh; /* fallback */
  min-height: 560px;
  max-height: 920px;
}
.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.1) 0%,
    rgba(0,0,0,.35) 55%,
    rgba(0,0,0,.65) 100%
  ) !important;
}
.hero-content {
  justify-content: flex-end !important;
  padding-bottom: clamp(72px, 12vh, 130px) !important;
}
/* Announcement bar is gone */
.announcement-bar { display: none !important; }


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — 1200px
═══════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .cn-product-rail { grid-template-columns: repeat(3, 1fr); }
  .cn-edit-card--1 { aspect-ratio: 16/7; }
  .insta-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — 1024px  (tablet / hidden primary nav)
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .primary-nav-wrap { display: none; }
  .menu-toggle { display: flex; }
  .header-inner { grid-template-columns: auto 1fr auto; }

  /* Shop sidebar slides in from left */
  .cn-shop-layout__inner { grid-template-columns: 1fr; }
  .cn-shop-sidebar {
    position: fixed; top: 0; left: -320px; width: 300px; height: 100vh;
    background: var(--white); z-index: 9999; overflow-y: auto; padding: 24px;
    box-shadow: 4px 0 24px rgba(0,0,0,.12);
    transition: left var(--slow) var(--ease); border: none;
  }
  .cn-shop-sidebar.is-open { left: 0; }
  .cn-sidebar-close { display: flex; }
  .cn-filter-toggle { display: flex; }

  ul.products { grid-template-columns: repeat(2, 1fr) !important; }
  .cn-product-page__inner  { grid-template-columns: 1fr; }
  .cn-product-gallery      { position: static; }
  .cn-cart-page            { grid-template-columns: 1fr; }
  .cn-account-page         { grid-template-columns: 1fr; }
  .cn-account-nav          { position: static; }
  .cn-checkout-page        { grid-template-columns: 1fr; }
  .cn-checkout-summary     { position: static; }
  .features-grid           { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .member-cta              { grid-template-columns: 1fr; gap: 32px; }

  .cn-editorial-banner__inner { height: clamp(380px, 55vh, 640px); }
  .cn-edit-card--1 { aspect-ratio: 16/8; }
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — 768px  (mobile)
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --header-h: 52px; }

  /* ── Hero: full portrait viewport ── */
  .hero {
    height: 100svh; height: 100vh;
    min-height: 480px; max-height: 780px;
  }
  .hero-nav-btn { display: none; }
  .hero-content { padding: 0 20px clamp(64px, 10vh, 96px) !important; gap: 12px; }
  .hero-headline { font-size: clamp(32px, 10vw, 52px); }
  .hero-sub      { max-width: none; }
  .hero-cta      { flex-direction: column; align-items: flex-start; }
  .hero-cta .btn { min-width: 160px; height: 48px; }

  /* ── Edit grid: 2-col on mobile ── */
  .cn-edit-grid { grid-template-columns: 1fr 1fr; gap: 2px; }
  .cn-edit-card--1 { grid-column: 1 / -1; aspect-ratio: 4/3; }
  .cn-edit-card--2,
  .cn-edit-card--3,
  .cn-edit-card--4 { aspect-ratio: 1/1; }
  .cn-edit-card__body  { padding: 14px 12px; }
  .cn-edit-card__title { font-size: 13px; margin-bottom: 6px; }
  .cn-edit-card__cta   { font-size: 9px; }

  /* ── Product rail: horizontal scroll snap ── */
  .cn-product-rail {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 2px;
    /* bleed to screen edges */
    margin-left: calc(-1 * var(--pad));
    margin-right: calc(-1 * var(--pad));
    padding-left: var(--pad);
    padding-right: var(--pad);
    margin-top: 2px;
  }
  .cn-product-rail::-webkit-scrollbar { display: none; }
  .cn-product-rail .cn-product-card,
  .cn-product-rail .product-card {
    flex: 0 0 calc(50vw - var(--pad) - 1px);
    scroll-snap-align: start;
    min-width: 150px;
    max-width: 240px;
  }

  /* ── Product sections ── */
  .cn-products-section { padding: 40px 0 48px; }
  .cn-section-head     { padding-bottom: 16px; margin-bottom: 0; }
  .cn-heading          { font-size: clamp(20px, 6vw, 30px); }

  /* ── Editorial banners: portrait, text bottom ── */
  .cn-editorial-banner__inner {
    height: 100vw; min-height: 340px; max-height: 520px;
  }
  .cn-editorial-banner__overlay {
    background: linear-gradient(
      to bottom,
      rgba(0,0,0,.04) 0%,
      rgba(0,0,0,.6) 100%
    ) !important;
  }
  .cn-editorial-banner__text {
    top: auto; left: 0; right: 0;
    text-align: left; align-items: flex-start;
    max-width: 100%;
    padding: 24px 20px 28px;
  }
  .cn-editorial-banner--right .cn-editorial-banner__text {
    text-align: left; align-items: flex-start;
    left: 0; right: 0;
  }
  .cn-editorial-banner__heading { font-size: clamp(22px, 7vw, 36px); }
  .cn-editorial-banner__sub     { display: none; }
  .cn-editorial-banner__cta     { height: 42px; padding: 0 22px; font-size: 12px;
                                   align-self: flex-start; }

  /* ── Footer ── */
  .newsletter-inner { grid-template-columns: 1fr; gap: 32px; }
  .insta-grid  { grid-template-columns: repeat(3, 1fr); }
  .footer-top  { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-top > .footer-brand { grid-column: 1 / -1; }

  /* ── Misc ── */
  .cn-archive-grid { grid-template-columns: repeat(2, 1fr); }
  .cn-checkout-fields { grid-template-columns: 1fr; }
  .cn-field--half { grid-column: 1 / -1; }
  ul.products     { grid-template-columns: repeat(2, 1fr) !important; }
  .cn-cart-page   { padding: 24px 0 60px; }
  .cn-checkout-page { padding: 24px 0 60px; gap: 32px; }
  .cn-cart-items__header { display: none; }
  .cn-cart-item { grid-template-columns: 70px 1fr; gap: 10px; }
  .cn-cart-item__price,
  .cn-cart-item__qty,
  .cn-cart-item__subtotal,
  .cn-cart-item__remove { grid-column: 2; }
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — 480px  (small phones / iPhone SE)
═══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  :root { --header-h: 52px; --pad: 16px; }

  /* Hero */
  .hero-headline { font-size: clamp(28px, 11vw, 44px); }
  .hero-eyebrow  { font-size: 9px; }

  /* Edit grid: all cards taller portrait */
  .cn-edit-card--1,
  .cn-edit-card--2,
  .cn-edit-card--3,
  .cn-edit-card--4 { aspect-ratio: 3/4; }

  /* Product rail: slightly wider cards on small phones */
  .cn-product-rail .cn-product-card,
  .cn-product-rail .product-card {
    flex: 0 0 calc(58vw - var(--pad));
    max-width: 210px;
  }

  /* Banners */
  .cn-editorial-banner__inner { height: 115vw; max-height: 480px; }
  .cn-editorial-banner__heading { font-size: clamp(20px, 8vw, 30px); }

  /* Gallery */
  .cn-product-gallery { grid-template-columns: 1fr; }
  .cn-product-gallery__thumbs {
    flex-direction: row; overflow-x: auto;
    scrollbar-width: none; margin-top: 8px;
  }
  .cn-product-gallery__thumbs::-webkit-scrollbar { display: none; }

  /* Footer */
  .footer-top  { grid-template-columns: 1fr; padding: 40px var(--pad); }
  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .insta-grid  { grid-template-columns: repeat(2, 1fr); }
  ul.products  { gap: 2px !important; }

  /* Spacing */
  .cn-products-section { padding: 32px 0 40px; }
  .section     { padding: 48px 0; }
  .section--sm { padding: 36px 0; }

  /* Auth modal: bottom sheet */
  .auth-fields-row { grid-template-columns: 1fr; }
  .auth-modal {
    position: fixed; top: auto; bottom: 0; left: 0; right: 0;
    width: 100%; transform: translateY(100%);
    border-radius: 16px 16px 0 0; max-height: 92vh;
    padding: 28px 24px 32px;
  }
  .auth-modal.is-open { transform: translateY(0); top: auto; }
}
