/* ============================================================
   Alke Clothes — Main Stylesheet  v3.0
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Variables ──────────────────────────────────────────────── */
:root {
  /* Core */
  --ink:          #0f0f0f;
  --ink-2:        #3a3a3a;
  --muted:        #7a7a7a;
  --white:        #ffffff;
  --page-bg:      #ffffff;
  --soft-bg:      #f9f9f8;

  /* Accent — warm gold */
  --accent:       #b8916a;
  --accent-dark:  #8c6a44;
  --accent-light: #fdf3e7;
  --accent-border:#e5d0b5;

  /* Borders */
  --border:       #e8e8e8;
  --border-dark:  #c8c8c8;

  /* Dark surfaces */
  --dark:         #0f0f0f;

  /* Shadows */
  --shadow-xs:   0 1px 3px rgba(0,0,0,.07);
  --shadow-sm:   0 2px 8px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:   0 6px 20px rgba(0,0,0,.09), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg:   0 16px 40px rgba(0,0,0,.11), 0 4px 10px rgba(0,0,0,.06);
  --shadow-xl:   0 24px 52px rgba(0,0,0,.13), 0 8px 16px rgba(0,0,0,.07);

  /* Radius */
  --r-xs:   6px;
  --r-sm:   10px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-pill: 999px;

  /* Motion */
  --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);

  /* Legacy aliases — keeps old class references working */
  --primary-color:   var(--ink);
  --secondary-color: var(--ink-2);
  --accent-color:    var(--accent);
  --text-color:      var(--ink-2);
  --muted-text:      var(--muted);
  --border-color:    var(--border);
  --navy:            var(--dark);
  --slate:           #141414;
  --silver:          #2c2c2c;
  --alabaster:       #e0e0e0;
  --ash:             var(--border);
  --radius-sm:       var(--r-sm);
  --radius-md:       var(--r-md);
  --radius-pill:     var(--r-pill);
  --ease-premium:    var(--ease-spring);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Snappier taps on mobile: no 300ms delay, no grey flash on press */
button, a, .btn, .qty-btn, input[type="submit"], [role="button"] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* ── Base ───────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
               'Helvetica Neue', Arial, sans-serif;
  color: var(--ink-2);
  background: var(--page-bg);
  line-height: 1.6;
  overflow-x: hidden;
  touch-action: manipulation; /* no double-tap-to-zoom (works on Safari) */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

/* ── Navbar ──────────────────────────────────────────────────── */
.site-header {
  background: rgba(10,10,10,.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrap {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  transition: opacity .2s var(--ease);
}
.brand:hover { opacity: .8; }

.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.18);
}

.brand-text {
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-size: .8rem;
  font-weight: 500;
  color: rgba(255,255,255,.72);
  letter-spacing: .08em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 2px;
  transition: color .2s var(--ease);
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .26s var(--ease-spring);
}

.site-nav a:hover        { color: var(--white); }
.site-nav a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  border: 1px solid rgba(255,255,255,.2);
  background: transparent;
  color: var(--white);
  padding: 6px 10px;
  border-radius: var(--r-xs);
  font-size: 1.05rem;
  cursor: pointer;
  transition: background .18s var(--ease);
}
.nav-toggle:hover { background: rgba(255,255,255,.1); }

.nav-user-actions {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-left: 8px;
}

.nav-user-actions .profile-link {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(255,255,255,.72);
  transition: color .2s var(--ease);
}
.nav-user-actions .profile-link:hover { color: var(--white); }

/* Cart toggle */
.cart-icon { font-size: 1.1rem; }

.cart-toggle-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .18s var(--ease);
}
.cart-toggle-btn:hover { background: rgba(255,255,255,.1); }

.cart-emoji { font-size: 1.2rem; line-height: 1; }

.cart-count-badge {
  position: absolute;
  top: -3px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--r-pill);
  background: #e53e3e;
  color: #fff;
  font-size: .66rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  border: 2px solid rgba(10,10,10,.97);
  animation: badgePulse 2s ease-in-out infinite;
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  min-height: 82vh;
  background:
    linear-gradient(100deg, rgba(12,10,8,.78) 0%, rgba(12,10,8,.42) 42%, rgba(12,10,8,.12) 72%),
    url('../assets/products/alke-18.jpg') center 22% / cover no-repeat;
  color: var(--white);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10%;
  background: radial-gradient(circle at 20% 40%, rgba(184,145,106,.1), transparent 55%);
  animation: heroFloat 14s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.04) 50%, transparent 60%);
  transform: translateX(-120%);
  animation: shimmerSweep 7s linear infinite;
  pointer-events: none;
}

.hero-content {
  max-width: 600px;
  padding: 88px 0;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--white);
  margin-bottom: 18px;
}

.hero p {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,.8);
  margin-bottom: 30px;
  max-width: 440px;
  line-height: 1.75;
}

.hero-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  animation: heroRise .8s var(--ease-spring) both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  animation: heroRise .8s .24s var(--ease-spring) both;
}

.hero-btn-ghost {
  background: transparent !important;
  border: 1px solid rgba(255,255,255,.45) !important;
  color: var(--white) !important;
}
.hero-btn-ghost:hover {
  background: rgba(255,255,255,.12) !important;
  border-color: var(--white) !important;
}

/* ── Buttons ─────────────────────────────────────────────────── */
a.btn, a.btn:visited, a.btn:hover, a.btn:active, a.btn:focus,
button.btn, button.btn:hover, button.btn:active, button.btn:focus,
a.checkout-secondary-btn, a.checkout-secondary-btn:visited,
a.checkout-secondary-btn:hover, a.checkout-secondary-btn:active,
a.checkout-secondary-btn:focus { color: #ffffff !important; }

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--white);
  padding: 12px 26px;
  border-radius: var(--r-sm);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .03em;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform .22s var(--ease-spring),
    box-shadow .22s var(--ease),
    background .2s var(--ease),
    opacity .2s var(--ease);
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.14) 50%, transparent 70%);
  transform: translateX(-130%);
  z-index: -1;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,.22);
}

.btn:hover::before {
  transform: translateX(130%);
  transition: transform .65s var(--ease-spring);
}

.btn:active {
  transform: translateY(0) scale(.98);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.checkout-secondary-btn { background: var(--ink-2); border-color: var(--ink-2); }

a.checkout-secondary-btn, a.checkout-secondary-btn:visited,
a.checkout-secondary-btn:hover, a.checkout-secondary-btn:active,
a.checkout-secondary-btn:focus { color: #ffffff !important; }

/* ── Sections ────────────────────────────────────────────────── */
.section { padding: 80px 0; }

.section-title {
  text-align: center;
  margin-bottom: 44px;
}

.section-title h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
  margin-bottom: 10px;
}

.section-title p {
  color: var(--muted);
  font-size: .93rem;
}

/* ── Product grid ────────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.products-grid .product-card { animation: fadeUp .5s var(--ease-spring) both; }
.products-grid .product-card:nth-child(2) { animation-delay: .07s; }
.products-grid .product-card:nth-child(3) { animation-delay: .14s; }
.products-grid .product-card:nth-child(4) { animation-delay: .21s; }
.products-grid .product-card:nth-child(5) { animation-delay: .28s; }
.products-grid .product-card:nth-child(6) { animation-delay: .35s; }

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    transform .3s var(--ease-spring),
    box-shadow .3s var(--ease),
    border-color .3s var(--ease);
}

.product-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-border);
}

.product-card-link {
  display: block;
  color: inherit;
}

.product-card-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--r-md);
}

.product-image {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform .55s var(--ease-spring);
}

.product-card:hover .product-image { transform: scale(1.05); }

.product-body {
  padding: 14px 16px 8px;
}

.product-name {
  font-size: .93rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 5px;
  letter-spacing: -.01em;
}

.product-price {
  color: var(--accent-dark);
  font-weight: 700;
  font-size: .9rem;
}

.product-card-actions {
  padding: 0 14px 14px;
}

.product-card-actions form { margin: 0; }

.product-btn {
  width: 100%;
  padding: 10px;
  font-size: .83rem;
  text-align: center;
  border-radius: var(--r-sm);
  margin-top: 6px;
}

.products-page   { min-height: 60vh; }
.products-section { padding-top: 36px; }
.shop-grid        { gap: 24px; }

.no-products {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px;
  color: var(--muted);
  max-width: 500px;
  margin: 20px auto 0;
  font-size: .93rem;
}

/* ── Cart table ──────────────────────────────────────────────── */
.cart-table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.cart-table th,
.cart-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.cart-table th {
  background: var(--soft-bg);
  color: var(--ink);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.cart-table tr:last-child td { border-bottom: none; }
.cart-table tr:hover td      { background: var(--soft-bg); }

.cart-thumb-link {
  display: inline-block;
  border-radius: var(--r-sm);
  transition: transform .18s var(--ease);
}
.cart-thumb-link:hover { transform: translateY(-2px); }
.cart-thumb-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.cart-thumb {
  width: 66px;
  height: 66px;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
}

/* Cart becomes stacked cards on mobile (no more sideways scrolling) */
@media (max-width: 640px) {
  .cart-table-wrap {
    overflow-x: visible;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
  }
  .cart-table { min-width: 0; }
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody { display: block; width: 100%; }

  .cart-table tr.cart-row {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 6px 14px;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
    padding: 14px;
    margin-bottom: 14px;
  }
  .cart-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 0;
    border: none;
  }
  .cart-table tr:hover td { background: transparent; }

  .cart-row td:first-child { grid-column: 1; grid-row: 1 / span 5; align-self: start; }
  .cart-row .cart-thumb { width: 76px; height: 96px; }
  .cart-row .cart-name-cell { font-weight: 600; color: var(--ink); }

  .cart-table td[data-label]::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: .8rem;
    font-weight: 500;
  }

  .cart-action-cell { justify-content: flex-start; }
  .cart-action-cell .product-btn { width: auto; margin: 6px 0 0; padding: 8px 20px; }
}

.cart-summary {
  margin-top: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.cart-summary h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
}

/* Cart action buttons — consistent, aligned row */
.cart-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.cart-actions .btn {
  margin: 0;
  padding: 12px 22px;
  font-size: .86rem;
  white-space: nowrap;
}
/* Push the primary CTA to the right on desktop */
.cart-checkout-btn { margin-left: auto; }

/* Secondary (outline) buttons — dark text on white (element-qualified so it
   reliably overrides the global .btn white-text rule) */
a.btn-ghost, a.btn-ghost:visited, a.btn-ghost:active, a.btn-ghost:focus,
button.btn-ghost, button.btn-ghost:active, button.btn-ghost:focus {
  background: var(--white) !important;
  color: var(--ink) !important;
  border: 1px solid var(--border-dark) !important;
}
a.btn-ghost:hover, button.btn-ghost:hover {
  background: var(--soft-bg) !important;
  border-color: var(--ink) !important;
  color: var(--ink) !important;
}
/* Clear cart = subtle danger */
a.cart-clear, button.cart-clear,
a.cart-clear:focus, button.cart-clear:focus {
  color: #c0392b !important;
  border-color: #e6b3ab !important;
}
a.cart-clear:hover, button.cart-clear:hover {
  background: #fdecea !important;
  border-color: #c0392b !important;
  color: #c0392b !important;
}

@media (max-width: 560px) {
  .cart-actions { flex-direction: column; align-items: stretch; }
  .cart-actions .btn { width: 100%; text-align: center; }
  .cart-checkout-btn { margin-left: 0; order: -1; } /* checkout on top on mobile */
}

/* Qty control */
.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--soft-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 3px 6px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s var(--ease);
}
.qty-btn:hover { background: var(--accent-dark); }

.qty-value {
  min-width: 22px;
  text-align: center;
  font-weight: 700;
  font-size: .9rem;
  color: var(--ink);
}

/* ── Cart Drawer ─────────────────────────────────────────────── */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.42);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .24s var(--ease), visibility .24s;
  z-index: 200;
}
.cart-drawer-overlay.show { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(380px, 92vw);
  height: 100vh;             /* fallback */
  height: 100dvh;           /* excludes mobile browser toolbars so the footer stays visible */
  max-height: 100vh;
  max-height: 100dvh;
  background: var(--white);
  border-left: 1px solid var(--border);
  box-shadow: -12px 0 40px rgba(0,0,0,.13);
  transform: translateX(100%);
  transition: transform .3s var(--ease-spring);
  z-index: 210;
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.cart-drawer-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
}

.cart-drawer-close {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--soft-bg);
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s var(--ease);
}
.cart-drawer-close:hover { background: var(--border); }

.cart-drawer-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0; /* allow the body to shrink so the footer is never pushed off-screen */
}

.mini-cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.mini-cart-item:last-child { border-bottom: none; }

.mini-cart-thumb-link {
  display: inline-block;
  border-radius: var(--r-sm);
  flex-shrink: 0;
  transition: transform .18s var(--ease);
}
.mini-cart-thumb-link:hover { transform: translateY(-2px); }
.mini-cart-thumb-link:focus-visible,
.mini-cart-name-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

.mini-cart-thumb {
  width: 60px;
  height: 76px;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
}

.mini-cart-name-link { color: inherit; text-decoration: none; }
.mini-cart-name-link:hover .mini-cart-name { color: var(--accent-dark); }

.mini-cart-name {
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  transition: color .18s var(--ease);
}

.mini-cart-meta {
  font-size: .81rem;
  color: var(--muted);
}

.mini-cart-empty {
  text-align: center;
  color: var(--muted);
  padding: 36px 0;
  font-size: .9rem;
}

.cart-drawer-footer {
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  /* Keep clear of the home-indicator / browser chrome on phones */
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  background: var(--soft-bg);
  flex: 0 0 auto; /* never shrink — the button is always visible */
}

.mini-cart-total {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.mini-cart-full-btn {
  display: block;
  text-align: center;
}

/* ── Product details ─────────────────────────────────────────── */
.product-details-page { min-height: 60vh; }

/* Product image gallery thumbnails */
.product-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.product-thumb-btn {
  width: 64px;
  height: 80px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  overflow: hidden;
  cursor: pointer;
  background: var(--soft-bg);
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}
.product-thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-thumb-btn:hover { transform: translateY(-2px); }
.product-thumb-btn.is-active { border-color: var(--accent); }

.product-details-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: var(--shadow-lg);
}

.product-details-image-wrap {
  background: var(--soft-bg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: start; /* don't stretch to the content column's height */
  min-width: 0;
}

.product-details-image {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  max-height: 620px;
  object-fit: cover;
  border-radius: var(--r-md);
  transition: opacity .2s var(--ease); /* fade when swiping between images */
  touch-action: pan-y; /* vertical scroll stays with the page; we handle horizontal swipes */
}
.product-details-image.is-swapping { opacity: 0; }

.product-details-content {
  padding: 40px 36px;
}

.product-details-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.product-details-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 14px;
}

.product-details-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 20px;
}

.product-details-description {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.8;
  margin-bottom: 22px;
}

.product-details-meta {
  background: var(--soft-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  margin-bottom: 26px;
}
.product-details-meta p {
  font-size: .88rem;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.product-details-meta p:last-child { margin-bottom: 0; }

.product-details-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.product-options {
  display: grid;
  gap: 16px;
  margin-bottom: 26px;
}

.option-group { position: relative; }

.option-group label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 7px;
  letter-spacing: .02em;
}

.option-group select {
  width: 100%;
  padding: 11px 40px 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background:
    var(--white)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E")
    no-repeat right 14px center / 16px;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 500;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.option-group select:hover  { border-color: var(--border-dark); }
.option-group select:focus  {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184,145,106,.15);
}

/* ── Profile page ────────────────────────────────────────────── */
.profile-container { max-width: 860px !important; padding: 0 4px; }

.profile-section { margin-bottom: 20px; }

.profile-clean-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 22px;
}

.profile-title { margin-bottom: 0; }

.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.profile-actions-top { display: flex; gap: 10px; flex-wrap: wrap; }

.profile-field-row {
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.profile-field-row:last-child { border-bottom: none; }

.profile-label {
  margin: 0 0 4px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted) !important;
}

.profile-value {
  margin: 0;
  font-size: .97rem;
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}

.profile-order-item {
  background: var(--soft-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 14px;
  margin-bottom: 10px;
}

.profile-order-block  { display: block; }
.profile-order-items  { margin-top: 10px; }
.profile-order-item-line { margin-left: 12px; }
.profile-empty-message { margin: 10px 0 0; }
.profile-toast        { right: 20px; bottom: 20px; }

.profile-edit-btn   { background: var(--accent-dark); border-color: var(--accent-dark); }
.profile-save-btn   { background: var(--ink);         border-color: var(--ink); }
.profile-cancel-btn { background: var(--ink-2);       border-color: var(--ink-2); }

/* ── Modal ───────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.52);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-overlay.is-visible { display: flex; }

.modal-content {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  animation: fadeUp .28s var(--ease-spring) both;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.modal-close {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--soft-bg);
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s var(--ease);
}
.modal-close:hover { background: var(--border); }

.modal-body {
  padding: 18px 22px;
  display: grid;
  gap: 14px;
}
.modal-body .checkout-field { margin: 0; }

.modal-footer {
  padding: 14px 22px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
}

/* ── Checkout ────────────────────────────────────────────────── */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: start;
}

.checkout-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 26px;
}

.checkout-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 6px;
  letter-spacing: -.01em;
}

.checkout-card-subtitle {
  color: var(--muted);
  font-size: .88rem;
  margin-bottom: 20px;
}

.checkout-form { display: grid; gap: 14px; }

.checkout-field label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
  letter-spacing: .02em;
}

.checkout-field input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--white);
  font-size: .9rem;
  color: var(--ink);
  font-family: inherit;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.checkout-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184,145,106,.15);
}

.checkout-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.checkout-summary-list { display: grid; gap: 12px; }

.checkout-summary-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.checkout-item-left {
  display: flex;
  gap: 12px;
  align-items: center;
}

.checkout-item-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--r-sm);
  object-fit: cover;
  border: 1px solid var(--border);
}

.checkout-item-name {
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 3px;
}

.checkout-item-meta {
  font-size: .82rem;
  color: var(--muted);
}

.checkout-item-subtotal {
  font-size: .92rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.checkout-total {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 2px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-2);
}
.checkout-total strong {
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.checkout-alert {
  background: #fff2f2;
  border: 1px solid #fca5a5;
  color: #7f1d1d;
  border-radius: var(--r-sm);
  padding: 13px 16px;
  margin-bottom: 18px;
  font-size: .88rem;
}

/* Required-field asterisk */
.req {
  color: #c0392b;
  font-weight: 700;
}

/* Coupon apply row */
.coupon-row { display: flex; gap: 8px; align-items: stretch; }
.coupon-row input { flex: 1; }
.coupon-apply-btn {
  flex-shrink: 0;
  padding: 0 22px;
  margin: 0;
  white-space: nowrap;
}
.coupon-msg { margin-top: 8px; font-size: .85rem; font-weight: 600; }
.coupon-msg.is-ok    { color: #1e8f4e; }
.coupon-msg.is-error { color: #c0392b; }

/* Product material & care */
.product-care {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.product-care h3 {
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 10px;
}
.product-care ul { list-style: none; padding: 0; margin: 0; }
.product-care li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
  font-size: .88rem;
  color: var(--ink-2);
}
.product-care li::before {
  content: '';
  position: absolute;
  left: 2px; top: .6em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* Contact info cards */
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 26px;
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xs);
  font-size: .86rem;
  color: var(--ink-2);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
  flex: 1 1 200px;
}
.contact-info-item:hover { border-color: var(--accent-border); box-shadow: var(--shadow-sm); }
.contact-info-item strong { color: var(--ink); }
.contact-info-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--ink);
}

/* ── Cookie notice ──────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(15, 15, 15, .97);
  color: #f4f1ec;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .3s var(--ease), transform .3s var(--ease-spring);
}
.cookie-banner.show { opacity: 1; transform: translateY(0); }
.cookie-text {
  margin: 0;
  font-size: .82rem;
  line-height: 1.55;
  color: rgba(244,241,236,.85);
}
.cookie-accept {
  flex-shrink: 0;
  padding: 9px 20px;
  font-size: .8rem;
}
@media (max-width: 520px) {
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner { transition: none; }
}

/* ── Payment method options ─────────────────────────────────── */
.payment-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}
.payment-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: border-color .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
}
.payment-option:hover { border-color: var(--accent-border); background: var(--soft-bg); }
/* Hide the native radio circle — selection is shown by the card highlight */
.payment-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.payment-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-light);
  box-shadow: 0 0 0 2px var(--accent-light);
}
/* Keyboard focus ring for accessibility */
.payment-option:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* CLIQ details shown inline on checkout when CLIQ is selected */
.cliq-details {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid var(--accent-border);
  background: var(--accent-light);
  border-radius: var(--r-sm);
  font-size: .9rem;
}
.cliq-details h4 { margin-bottom: 6px; color: var(--ink); }
.cliq-details p  { margin: 4px 0; }

/* CLIQ "recipient name" reassurance note (checkout + confirmation) */
.cliq-note {
  background: rgba(255,255,255,.6);
  border: 1px dashed var(--accent-border);
  border-radius: var(--r-xs);
  padding: 8px 10px;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.payment-option-body { display: flex; flex-direction: column; gap: 2px; }
.payment-option-title { font-weight: 600; color: var(--ink); }
.payment-option-desc  { font-size: .82rem; color: var(--muted); }

/* Payment line in review / confirmation */
.checkout-review-payment {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: .92rem;
}
.checkout-review-payment strong { color: var(--ink); }

/* Order confirmed badge */
.order-confirmed-badge {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #e6f7ec;
  color: #1e8f4e;
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CLIQ / COD instructions box */
.cliq-instructions {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--accent-border);
  background: var(--accent-light);
  border-radius: var(--r-sm);
  font-size: .9rem;
}
.cliq-instructions h4 { margin-bottom: 6px; color: var(--ink); }
.cliq-instructions p  { margin: 4px 0; }
.cliq-instructions.cod-note { border-color: var(--border); background: var(--soft-bg); }
.cliq-alias {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--accent-dark);
  margin: 8px 0 !important;
}

/* CLIQ payment-proof upload */
.proof-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--accent-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.proof-form label { font-size: .9rem; }
.proof-form input[type="file"] { font-size: .85rem; }
.proof-message { margin-top: 12px; font-weight: 600; }
.proof-message.is-ok    { color: #1e8f4e; }
.proof-message.is-error { color: #c0392b; }
.proof-uploaded { margin-top: 14px; }
.proof-thumb {
  margin-top: 10px;
  max-width: 220px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
}

.checkout-success {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-align: center;
  padding: 44px 28px;
  box-shadow: var(--shadow-md);
  max-width: 560px;
  margin: 0 auto;
}
.checkout-success-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  font-weight: 800;
}
.checkout-success h3 { color: var(--ink); font-size: 1.2rem; margin-bottom: 8px; }
.checkout-success p  { color: var(--muted); margin-bottom: 20px; font-size: .93rem; }

.checkout-empty-action { text-align: center; margin-top: 20px; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: #111111;
  color: #aaa;
  margin-top: 64px;
}

.footer-grid {
  padding: 56px 0 36px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
}

.site-footer h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: .03em;
}

.site-footer h4 {
  font-size: .72rem;
  font-weight: 700;
  color: rgba(255,255,255,.4);
  margin-bottom: 16px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.site-footer p,
.site-footer li {
  color: #777;
  margin-bottom: 9px;
  list-style: none;
  font-size: .88rem;
  line-height: 1.6;
}

.site-footer a {
  color: #777;
  transition: color .18s var(--ease);
}
.site-footer a:hover { color: var(--white); }

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 18px 10px;
  font-size: .8rem;
  color: #555;
}

/* ── Toast notifications ─────────────────────────────────────── */
.toast-notification {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 9999;
  min-width: 240px;
  max-width: min(90vw, 360px);
  background: #1a1a1a;
  color: #fff;
  border-radius: var(--r-md);
  padding: 14px 20px;
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
  opacity: 0;
  transform: translateX(120%);
  pointer-events: none;
}

.toast-notification p {
  margin: 0;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .01em;
}

.toast-notification.toast-success { background: #1a1a1a; }
.toast-notification.toast-error   { background: #7f1d1d; }
.toast-notification.toast-show    { animation: toastSlideIn .32s var(--ease-spring) forwards; }
.toast-notification.toast-hide    { animation: toastFadeOut .4s var(--ease) forwards; }

/* ── Keyframes ───────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes shimmerSweep {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

@keyframes heroFloat {
  0%   { transform: translate3d(-2%, -1%, 0) scale(1);    }
  100% { transform: translate3d(2%,   1%, 0) scale(1.03); }
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1);    }
  50%       { transform: scale(1.12); }
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(120%); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes toastFadeOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(30px); }
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 960px) {
  .products-grid        { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .footer-grid          { grid-template-columns: 1fr 1fr; }
  .product-details-card { grid-template-columns: 1fr; }
  .product-details-image { max-height: 460px; }
  .product-details-content { padding: 28px 24px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }

  /* Sharp, full-width black bar that expands the (sticky) header and slides the
     page down. White text, gold underline on tap, no rounding, edge to edge. */
  .nav-wrap { flex-wrap: wrap; row-gap: 0; }

  .site-nav {
    order: 10;                       /* sits below brand / toggle / cart */
    flex: 0 0 100vw;                 /* full viewport width, never shrink */
    max-width: 100vw;
    margin-left: calc(50% - 50vw);   /* bleed out past the container padding */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;         /* links only as wide as their text */
    gap: 6px;
    background: #000;                 /* pure matte black */
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 4vw;
    transition: max-height .3s var(--ease), opacity .22s var(--ease),
                padding .3s var(--ease);
  }
  .site-nav.open {
    max-height: 320px;
    opacity: 1;
    padding: 12px 4vw 16px;
  }
  .site-nav a,
  .site-nav a:hover {
    color: #fff !important;          /* beat the light-header dark override */
    padding: 8px 0;
  }

  .products-grid   { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero            { min-height: 62vh; }
  .footer-grid     { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .section         { padding: 56px 0; }

  .cart-drawer        { width: min(96vw, 420px); }
  .cart-drawer-header { padding: 16px; }
  .cart-drawer-body   { padding: 12px 14px; }
  .cart-drawer-footer { padding: 12px 14px 16px; }

  .mini-cart-thumb    { width: 54px; height: 68px; }
  .mini-cart-name     { font-size: .88rem; line-height: 1.3; word-break: break-word; }
  .mini-cart-meta     { font-size: .8rem; }
  .mini-cart-full-btn { width: 100%; padding: 12px; text-align: center; }

  .profile-clean-card  { padding: 16px; }
  .profile-header      { align-items: flex-start; }
  .profile-actions-top { width: 100%; }
  .profile-actions-top .btn { width: 100%; text-align: center; }

  .modal-content          { max-width: 100%; }
  .modal-footer .btn      { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
  .hero-content  { padding: 56px 0; }
  .hero h1       { font-size: 2rem; }
}

/* ============================================================
   v3.1 additions — search, filters, badges, pagination, etc.
   ============================================================ */

/* ── Nav search bar ─────────────────────────────────────────── */
.nav-search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--soft-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 4px 6px 4px 14px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.nav-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.nav-search input {
  border: none;
  background: transparent;
  outline: none;
  font: inherit;
  font-size: .88rem;
  width: 150px;
  color: var(--ink);
}
.nav-search button {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: .95rem;
  padding: 4px 8px;
  border-radius: var(--r-pill);
  transition: background .2s var(--ease);
}
.nav-search button:hover { background: var(--accent-light); }

@media (max-width: 880px) {
  .nav-search { display: none; }
}

/* ── Shop toolbar (filters + sort) ──────────────────────────── */
.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}
.shop-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-chip {
  display: inline-block;
  padding: 7px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-dark);
  background: var(--white);
  color: var(--ink-2);
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s var(--ease);
}
.filter-chip:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--accent-light);
}
.filter-chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.shop-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: var(--muted);
}
.shop-sort select {
  font: inherit;
  font-size: .85rem;
  padding: 7px 12px;
  border: 1px solid var(--border-dark);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

/* ── Product image + stock badges ───────────────────────────── */
.product-image-wrap {
  position: relative;
  overflow: hidden;
}
.stock-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--white);
  box-shadow: var(--shadow-sm);
  z-index: 2;
}
.stock-badge.out { background: #c0392b; }
.stock-badge.low { background: #d97706; }

.product-btn:disabled,
.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Pagination ─────────────────────────────────────────────── */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 44px;
}
.page-link {
  display: inline-block;
  min-width: 38px;
  padding: 8px 14px;
  text-align: center;
  border: 1px solid var(--border-dark);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--ink-2);
  font-size: .88rem;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s var(--ease);
}
.page-link:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--accent-light);
}
.page-link.current {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.page-ellipsis { color: var(--muted); padding: 0 4px; }

/* ── Category cards (homepage) ──────────────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
}
.category-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 104px;
  padding: 26px 24px;
  text-align: center;
  background: var(--soft-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: all .25s var(--ease-spring);
}
.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-border);
  background: var(--accent-light);
  box-shadow: var(--shadow-md);
}
.category-card h3 {
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0;
  transition: color .2s var(--ease);
}
.category-card:hover h3 { color: var(--accent-dark); }

/* ── Breadcrumbs ────────────────────────────────────────────── */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  font-size: .84rem;
  color: var(--muted);
}
.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.breadcrumbs a:hover { color: var(--accent-dark); }
.breadcrumb-current {
  color: var(--ink);
  font-weight: 500;
}

/* ── Success alert variant ──────────────────────────────────── */
.checkout-alert.success-alert {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}
.checkout-alert.success-alert a {
  color: #166534;
  font-weight: 600;
}

/* ── Contact form textarea ──────────────────────────────────── */
.checkout-field textarea {
  width: 100%;
  font: inherit;
  font-size: .92rem;
  padding: 12px 14px;
  border: 1px solid var(--border-dark);
  border-radius: var(--r-sm);
  resize: vertical;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.checkout-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

/* ============================================================
   v3.2 polish pass — visual refinements
   ============================================================ */

::selection { background: var(--accent-light); color: var(--accent-dark); }

html { scroll-behavior: smooth; }

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Slim elegant scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--soft-bg); }
::-webkit-scrollbar-thumb {
  background: var(--border-dark);
  border-radius: 10px;
  border: 2px solid var(--soft-bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Glassy sticky header ───────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}

/* Fix nav text visibility on light header */
.brand-text                        { color: var(--ink); }
.brand-logo                        { border-color: rgba(0,0,0,.12); }
.site-nav a                        { color: var(--ink-2); }
.site-nav a:hover                  { color: var(--ink); }
.nav-user-actions .profile-link    { color: var(--ink-2); }
.nav-user-actions .profile-link:hover { color: var(--ink); }
.nav-toggle                        { border-color: rgba(0,0,0,.18); color: var(--ink); }

/* ── Hero refinements ───────────────────────────────────────── */
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  animation: heroRise .8s var(--ease-spring) both;
}
.hero p {
  max-width: 480px;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7;
  color: rgba(255,255,255,.85);
  animation: heroRise .8s .12s var(--ease-spring) both;
}
.hero .btn {
  animation: heroRise .8s .24s var(--ease-spring) both;
  background: var(--accent);
  border-color: var(--accent);
}
.hero .btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
@keyframes heroRise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Section title with gold accent line ────────────────────── */
.section-title h2 {
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}
.section-title h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 46px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
}

/* ── Product cards: image zoom + lift ───────────────────────── */
.product-card { will-change: transform; }
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-border);
}
.product-card .product-image {
  transition: transform .5s var(--ease-spring);
}
.product-card:hover .product-image {
  transform: scale(1.05);
}
.product-card .product-price {
  color: var(--accent-dark);
  font-weight: 600;
}

/* Grid entrance animation */
.products-grid > .product-card {
  animation: cardIn .5s var(--ease) both;
}
.products-grid > .product-card:nth-child(2) { animation-delay: .06s; }
.products-grid > .product-card:nth-child(3) { animation-delay: .12s; }
.products-grid > .product-card:nth-child(4) { animation-delay: .18s; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Buttons: gold sheen on hover ───────────────────────────── */
.btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: 0 8px 22px rgba(140, 106, 68, .28);
}

/* ── Forms: nicer focus states everywhere ───────────────────── */
.checkout-field input:focus,
.checkout-field textarea:focus,
.option-group select:focus,
.shop-sort select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Footer polish ──────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  border-top: 3px solid var(--accent);
}
.site-footer a { transition: color .2s var(--ease); }
.site-footer a:hover { color: var(--accent); }

/* ── Cart drawer polish ─────────────────────────────────────── */
.cart-drawer {
  box-shadow: -16px 0 48px rgba(0,0,0,.16);
}
.mini-cart-item {
  transition: background .2s var(--ease);
  border-radius: var(--r-sm);
}
.mini-cart-item:hover { background: var(--soft-bg); }

/* ── Reduced motion respect ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
