﻿/* ═══════════════════════════════════════════════
   Kay Beauty — Main Stylesheet
   ═══════════════════════════════════════════════ */

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

:root {
  --black:   #111111;
  --white:   #ffffff;
  --gold:    #c9a84c;
  --gold-lt: #e8d08a;
  --gray-50: #f9f9f9;
  --gray-100:#f3f3f3;
  --gray-200:#e8e8e8;
  --gray-300:#d0d0d0;
  --gray-500:#888888;
  --gray-700:#444444;
  --red:     #c0392b;
  --green:   #27ae60;
  --blue:    #2980b9;
  --radius:  4px;
  --radius-lg:12px;
  --shadow:  0 2px 20px rgba(0,0,0,0.08);
  --shadow-lg:0 8px 40px rgba(0,0,0,0.15);
  --transition: 0.25s ease;
  --font-sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body { font-family: var(--font-sans); color: var(--black); background: var(--white); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
input, select, textarea { outline: none; }

/* ─── Typography ────────────────────────────────── */
h1, h2, h3, h4, h5 { line-height: 1.2; font-weight: 700; }
.serif { font-family: var(--font-serif); }

/* ─── Utilities ─────────────────────────────────── */
.container { max-width: 1400px; margin: 0 auto; padding: 0 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-gold { color: var(--gold); }
.text-red { color: var(--red); }
.text-green { color: var(--green); }
.text-gray { color: var(--gray-500); }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.375rem; }
.fw-600 { font-weight: 600; }
.hidden { display: none !important; }

/* ─── Buttons ───────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius); border: 2px solid transparent;
  font-weight: 600; font-size: 0.9rem; letter-spacing: 0.05em; text-transform: uppercase;
  cursor: pointer; transition: all var(--transition); white-space: nowrap;
}
.btn-primary { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-primary:hover { background: var(--gray-700); border-color: var(--gray-700); }
.btn-gold { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-gold:hover { background: #b8922e; border-color: #b8922e; }
.btn-outline { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--black); }
.btn-sm { padding: 8px 18px; font-size: 0.8rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-icon { padding: 10px; border-radius: 50%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ─── Alerts ────────────────────────────────────── */
.alert { padding: 14px 20px; border-radius: var(--radius); margin-bottom: 20px; font-size: 0.9rem; border-left: 4px solid; }
.alert-success { background: #eafaf1; color: #1e8449; border-color: var(--green); }
.alert-error   { background: #fdedec; color: #922b21; border-color: var(--red); }
.alert-warning { background: #fef9e7; color: #7d6608; border-color: #f1c40f; }
.alert-info    { background: #eaf2fb; color: #1a5276; border-color: var(--blue); }

/* ─── Form Elements ─────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.875rem; color: var(--gray-700); letter-spacing: 0.03em; text-transform: uppercase; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 16px; border: 2px solid var(--gray-200);
  border-radius: var(--radius); background: var(--white); color: var(--black);
  transition: border-color var(--transition); font-size: 1rem;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--black); }
.form-input.error, .form-select.error { border-color: var(--red); }
.form-error { color: var(--red); font-size: 0.8rem; margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.form-textarea { resize: vertical; min-height: 100px; }
.form-check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.form-check input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; accent-color: var(--black); }

/* ─── Badge ─────────────────────────────────────── */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.badge-sale  { background: var(--red); color: var(--white); }
.badge-new   { background: var(--black); color: var(--white); }
.badge-gold  { background: var(--gold); color: var(--white); }
.badge-oos   { background: #6b7280; color: var(--white); }

/* ═══════════════════════════════════════════════
   HEADER & NAVIGATION
   ═══════════════════════════════════════════════ */

.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white);
  box-shadow: 0 1px 0 var(--gray-200);
}

/* Top bar */
.header-top {
  background: var(--black); color: var(--white);
  padding: 8px 0; font-size: 0.8rem; text-align: center;
}
.header-top a { color: var(--gold-lt); }
.header-top-inner { display: flex; justify-content: space-between; align-items: center; }

/* Main header */
.header-main { padding: 16px 0; }
.header-main-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

/* ─── Brand wordmark ─────────────────────────────
   "Kay" in deep serif + "Beauty" as a shimmering gold
   italic, with an animated flourish underline on hover. */
.site-logo {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--black);
  position: relative;
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
  padding: 2px 0 6px;
  transition: transform var(--transition);
}
.site-logo span {
  margin-left: 0.16em;
  font-style: italic;
  font-weight: 900;
  /* Deep antique gold so every letter (incl. the trailing "y") reads dark and
     bold on white; the brighter highlight sits at ~80% so it's only seen
     sweeping through during the hover shimmer, never washing out a letter. */
  background: linear-gradient(105deg, #4a3604 0%, #785808 26%, #a37d12 52%, #c9a84c 80%, #a37d12 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #785808; /* fallback for older browsers */
}
/* growing gold flourish under the wordmark */
.site-logo::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--black), var(--gold));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.site-logo:hover { transform: translateY(-1px); }
.site-logo:hover::after { transform: scaleX(1); }
.site-logo:hover span { animation: logoShimmer 1.8s linear infinite; }
@keyframes logoShimmer { to { background-position: 220% center; } }
.site-logo sup { font-size: 0.5em; color: var(--gray-500); vertical-align: super; font-family: var(--font-sans); font-weight: 400; letter-spacing: 0.1em; }

/* Search */
.header-search { flex: 1; max-width: 480px; position: relative; }
.header-search input {
  width: 100%; padding: 11px 44px 11px 18px;
  border: 2px solid var(--gray-200); border-radius: 30px;
  font-size: 0.9rem; background: var(--gray-50);
  transition: all var(--transition);
}
.header-search input:focus { border-color: var(--black); background: var(--white); }
.header-search button {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--gray-500); padding: 4px;
}
.header-search button:hover { color: var(--black); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-icon-btn {
  position: relative; display: flex; flex-direction: column; align-items: center;
  gap: 2px; padding: 8px 12px; border-radius: var(--radius);
  background: none; border: none; cursor: pointer;
  font-size: 0.7rem; color: var(--gray-700); font-weight: 600; letter-spacing: 0.03em;
  text-transform: uppercase; transition: all var(--transition);
}
.header-icon-btn:hover { color: var(--black); background: var(--gray-100); }
.header-icon-btn svg { width: 22px; height: 22px; }
.cart-badge {
  position: absolute; top: 4px; right: 8px;
  background: var(--red); color: var(--white);
  border-radius: 50%; width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700;
}

/* Main nav */
.header-nav { border-top: 1px solid var(--gray-200); }
.nav-list { display: flex; align-items: stretch; gap: 0; justify-content: center; flex-wrap: nowrap; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 3px;
  /* Scale padding + text with the viewport so all department items fit on one row */
  padding: 13px clamp(4px, 0.62vw, 12px);
  font-weight: 600; font-size: clamp(0.5rem, 0.8vw, 0.74rem);
  text-transform: uppercase; letter-spacing: 0.01em; color: var(--gray-700);
  transition: color var(--transition); border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--black); border-bottom-color: var(--gold); }
.nav-link svg { width: 9px; height: 9px; flex-shrink: 0; transition: transform var(--transition); }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }
.nav-sale .nav-link { color: var(--red); }

/* Mega Menu */
.mega-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--white); box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--gold); border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 32px; display: none; min-width: 700px; z-index: 999;
  animation: menuFade 0.2s ease;
}
@keyframes menuFade { from { opacity: 0; transform: translateX(-50%) translateY(-8px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.nav-item:hover .mega-menu { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.mega-col h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray-500); margin-bottom: 12px; font-weight: 700; }
.mega-col ul li { margin-bottom: 8px; }
.mega-col ul li a { font-size: 0.9rem; color: var(--gray-700); transition: color var(--transition); }
.mega-col ul li a:hover { color: var(--gold); }
.mega-featured { grid-column: span 1; }
.mega-featured img { width: 100%; height: 160px; object-fit: cover; border-radius: var(--radius); margin-bottom: 8px; }
.mega-featured span { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gold); }

/* Brands mega menu */
.brands-mega {
  left: auto;
  right: 0;
  transform: none;
  min-width: 520px;
  padding: 24px 28px;
}
.nav-item:hover .brands-mega {
  display: block;
  animation: menuFadeSimple 0.2s ease;
}
@keyframes menuFadeSimple {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.brands-mega-list {
  columns: 3;
  column-gap: 24px;
}
.brands-mega-list a {
  display: block;
  padding: 7px 0;
  font-size: 0.875rem;
  color: var(--gray-700);
  break-inside: avoid;
  border-bottom: 1px solid var(--gray-100);
  transition: color var(--transition), padding-left var(--transition);
}
.brands-mega-list a:hover {
  color: var(--gold);
  padding-left: 6px;
}

/* Keep edge dropdowns inside the viewport: the leftmost nav item aligns its
   menu to the left edge, the rightmost aligns to the right edge — otherwise a
   centered/right-anchored wide menu spills off the window and gets clipped. */
.nav-item:first-child .mega-menu,
.nav-item:first-child .brands-mega {
  left: 0; right: auto; transform: none; animation-name: menuFadeSimple;
}
.nav-item:last-child .mega-menu,
.nav-item:last-child .brands-mega {
  left: auto; right: 0; transform: none; animation-name: menuFadeSimple;
}

/* Simple dropdown */
.dropdown-menu {
  position: absolute; top: 100%; left: 0;
  background: var(--white); box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--gold); border-radius: 0 0 var(--radius) var(--radius);
  min-width: 200px; padding: 12px 0; display: none; z-index: 999;
}
.nav-item:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 10px 20px; font-size: 0.9rem; color: var(--gray-700); transition: all var(--transition); }
.dropdown-menu a:hover { background: var(--gray-50); color: var(--gold); padding-left: 28px; }

/* Mobile menu toggle */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--black); margin: 5px 0; transition: all var(--transition); }

/* ═══════════════════════════════════════════════
   HERO & BANNERS
   ═══════════════════════════════════════════════ */

/* ═══════════════════════════════════
   HERO SLIDER
   ═══════════════════════════════════ */
.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #111;
}

/* Each slide fills the hero and stacks via z-index */
.hero-slide {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  z-index: 0;
  transition: opacity 1s ease;
}
.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

/* Background image */
.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
}

/* Dark overlay */
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.15) 100%);
}

/* Text content */
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 0 40px;
  max-width: 580px;
  margin-left: 6%;
}

.hero-tag {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  padding: 5px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: 2px;
  margin-bottom: 18px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: 3.4rem;
  line-height: 1.1;
  margin: 0 0 16px;
  color: #fff;
}
.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 32px;
  max-width: 420px;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Content animation — triggered via JS class */
@keyframes heroSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-slide.active .hero-content > * {
  animation: heroSlideUp 0.6s ease both;
}
.hero-slide.active .hero-content > *:nth-child(1) { animation-delay: 0.2s; }
.hero-slide.active .hero-content > *:nth-child(2) { animation-delay: 0.35s; }
.hero-slide.active .hero-content > *:nth-child(3) { animation-delay: 0.5s; }
.hero-slide.active .hero-content > *:nth-child(4) { animation-delay: 0.65s; }

/* Navigation dots */
.hero-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.hero-dot {
  width: 9px; height: 9px;
  border-radius: 9px;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: width 0.3s, background 0.3s;
  padding: 0;
}
.hero-dot.active {
  width: 28px;
  background: #fff;
}

/* Prev / Next arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.35);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.hero-arrow:hover { background: rgba(255,255,255,0.35); }
.hero-arrow-prev { left: 20px; }
.hero-arrow-next { right: 20px; }

/* Mini banners */
.mini-banners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 32px 0; }
.mini-banner { position: relative; overflow: hidden; border-radius: var(--radius); height: 280px; cursor: pointer; }
.mini-banner img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.mini-banner:hover img { transform: scale(1.05); }
.mini-banner-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 60%); }
.mini-banner-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; color: white; }
.mini-banner-content h3 { font-family: var(--font-serif); font-size: 1.5rem; margin-bottom: 4px; }
.mini-banner-content p { font-size: 0.85rem; opacity: 0.9; margin-bottom: 12px; }
.mini-banner-content a { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 2px solid var(--gold); padding-bottom: 2px; color: var(--gold-lt); }

/* ═══════════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════════ */

.section { padding: 60px 0; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-tag { display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--gold); margin-bottom: 8px; }
.section-title { font-family: var(--font-serif); font-size: 2.2rem; color: var(--black); }
.section-subtitle { color: var(--gray-500); margin-top: 8px; max-width: 480px; margin-left: auto; margin-right: auto; }
.section-divider { width: 60px; height: 3px; background: var(--gold); margin: 16px auto 0; }

/* ═══════════════════════════════════════════════
   PRODUCT CARDS
   ═══════════════════════════════════════════════ */

.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.products-grid--6 { grid-template-columns: repeat(6, 1fr); gap: 18px; }

.product-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  background: var(--white);
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.product-card-img {
  position: relative; overflow: hidden; aspect-ratio: 3/4;
  background: var(--gray-100);
}
.product-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.05); }

.product-card-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 4px; z-index: 1; }

/* ── Bulk select (shop & collection listings) ─────────────────── */
.bulk-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 16px;
  background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius); }
.bulk-selectall { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.bulk-selectall input { width: 16px; height: 16px; cursor: pointer; }
.bulk-count { font-size: 0.85rem; color: var(--gray-500); margin-right: auto; }
#bulkAddBtn:disabled { opacity: 0.5; cursor: not-allowed; }

.product-select-wrap { position: absolute; top: 10px; left: 10px; z-index: 3; cursor: pointer; line-height: 0; }
.product-select-wrap input { position: absolute; opacity: 0; width: 0; height: 0; }
.product-select-box { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px;
  background: rgba(255,255,255,0.95); border: 2px solid var(--gray-300); border-radius: 6px; color: transparent;
  transition: all 0.15s; box-shadow: 0 1px 3px rgba(0,0,0,0.12); }
.product-select-wrap:hover .product-select-box { border-color: var(--black); }
.product-select:checked + .product-select-box { background: var(--black); border-color: var(--black); color: #fff; }
.product-card.is-selected { outline: 2px solid var(--black); outline-offset: 2px; }
/* Keep the sale badge clear of the checkbox only when a checkbox is present */
.product-card-img:has(.product-select) .product-card-badges { left: 44px; }
.product-card-actions {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(17,17,17,0.85); padding: 14px 16px;
  display: flex; gap: 8px;
  transform: translateY(100%); transition: transform var(--transition);
  backdrop-filter: blur(4px);
}
.product-card:hover .product-card-actions { transform: translateY(0); }
.product-card-actions .btn { flex: 1; font-size: 0.75rem; padding: 9px 12px; }

.product-wishlist {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: var(--white); border: none; border-radius: 50%; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); transition: all var(--transition);
  color: var(--gray-500); opacity: 0;
}
.product-card:hover .product-wishlist { opacity: 1; }
.product-wishlist:hover { color: var(--red); transform: scale(1.1); }
.product-wishlist.active { color: var(--red); opacity: 1; }

.product-card-body { padding: 16px 4px 4px; }
.product-brand { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-500); margin-bottom: 4px; }
.product-name { font-weight: 600; font-size: 0.95rem; color: var(--black); margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-name a:hover { color: var(--gold); }
.product-price { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.product-price-current { font-weight: 700; font-size: 1rem; color: var(--black); }
.product-price-current.sale { color: var(--red); }
.product-price-original { font-size: 0.875rem; color: var(--gray-500); text-decoration: line-through; }
.product-price-save { font-size: 0.75rem; color: var(--green); font-weight: 600; }

/* Product colors preview */
.product-colors { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.color-swatch { width: 16px; height: 16px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; transition: transform var(--transition); }
.color-swatch:hover { transform: scale(1.3); }

/* Stars */
.stars { display: flex; gap: 2px; color: var(--gold); }
.stars svg { width: 12px; height: 12px; }

/* ═══════════════════════════════════════════════
   PRODUCT DETAIL PAGE
   ═══════════════════════════════════════════════ */

.product-detail { padding: 40px 0 80px; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }

.product-gallery { position: sticky; top: 100px; }
.gallery-main { aspect-ratio: 3/4; overflow: hidden; border-radius: var(--radius); background: var(--gray-100); margin-bottom: 12px; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform 0.4s ease; }
.gallery-main img:hover { transform: scale(1.03); }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gallery-thumb { aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer; background: var(--gray-100); transition: border-color var(--transition); }
.gallery-thumb.active { border-color: var(--black); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { border-color: var(--gray-300); }
.gallery-thumb.empty { background: var(--gray-50); border-color: var(--gray-100); cursor: default; }
.gallery-thumb.empty:hover { border-color: var(--gray-100); }

.product-info {}
.product-info-brand { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 8px; }
.product-info-title { font-family: var(--font-serif); font-size: 2rem; color: var(--black); margin-bottom: 16px; }
.product-info-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 24px; }
.price-main { font-size: 1.8rem; font-weight: 700; }
.price-main.sale { color: var(--red); }
.price-original { font-size: 1.1rem; color: var(--gray-500); text-decoration: line-through; }
.price-save-tag { background: var(--red); color: white; padding: 4px 10px; border-radius: 3px; font-size: 0.8rem; font-weight: 700; }

.product-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 0.875rem; color: var(--gray-500); }

.variant-label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-700); margin-bottom: 10px; }
.variant-label span { color: var(--black); font-weight: 600; }
.size-options { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.size-btn {
  min-width: 48px; padding: 10px 14px; border: 2px solid var(--gray-200);
  border-radius: var(--radius); background: var(--white); cursor: pointer;
  font-size: 0.85rem; font-weight: 600; transition: all var(--transition); text-align: center;
}
.size-btn:hover { border-color: var(--black); }
.size-btn.selected { border-color: var(--black); background: var(--black); color: var(--white); }
.size-btn.out-of-stock { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }

.color-options { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.color-option {
  width: 32px; height: 32px; border-radius: 50%; border: 3px solid transparent;
  cursor: pointer; transition: all var(--transition); outline: 2px solid transparent; outline-offset: 3px;
  /* Subtle ring so white/very light swatches stay visible on the white page.
     Semi-transparent, so it only shows against light colors. */
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.2);
}
.color-option:hover { outline-color: var(--gray-300); }
.color-option.selected { outline-color: var(--black); }

/* Name-only color (no swatch) renders as a labeled pill */
.color-option-named {
  width: auto; height: auto; border-radius: var(--radius); border: 2px solid var(--gray-200);
  background: var(--white); padding: 8px 14px; font-size: 0.85rem; font-weight: 600; color: var(--gray-700);
  outline: none;
}
.color-option-named:hover { outline: none; border-color: var(--black); }
.color-option-named.selected { outline: none; border-color: var(--black); background: var(--black); color: var(--white); }

/* Swatch count + search filter (large variant lists) */
.variant-count { color: var(--gray-400) !important; font-weight: 600; }
.variant-filter {
  width: 100%; max-width: 320px; padding: 8px 12px; margin-bottom: 12px;
  border: 2px solid var(--gray-200); border-radius: var(--radius); font-size: 0.85rem;
}
.variant-filter:focus { border-color: var(--black); outline: none; }
.color-options-scroll, .opt-options-scroll {
  max-height: 200px; overflow-y: auto; padding: 6px;
  border: 1px solid var(--gray-100); border-radius: var(--radius);
}

/* Option groups: design / shape / length / style */
.opt-options { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.opt-option {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border: 2px solid var(--gray-200); border-radius: var(--radius);
  background: var(--white); cursor: pointer; font-size: 0.85rem; font-weight: 600;
  color: var(--gray-700); transition: all var(--transition); font-family: inherit;
}
.opt-option:hover { border-color: var(--black); }
.opt-option.selected { border-color: var(--black); background: var(--black); color: var(--white); }
.opt-option.out-of-stock { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }
.opt-swatch { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.15); flex-shrink: 0; }
.opt-option.selected .opt-swatch { border-color: rgba(255,255,255,0.5); }

.qty-selector { display: flex; align-items: center; gap: 0; border: 2px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; width: fit-content; margin-bottom: 20px; }
.qty-btn { width: 44px; height: 44px; background: var(--gray-50); border: none; cursor: pointer; font-size: 1.2rem; color: var(--gray-700); transition: background var(--transition); }
.qty-btn:hover { background: var(--gray-200); }
.qty-input { width: 56px; height: 44px; border: none; text-align: center; font-weight: 700; font-size: 1rem; }
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.product-add-actions { display: flex; gap: 12px; margin-bottom: 28px; }
.product-add-actions .btn-primary { flex: 1; }

/* Category quick-shop dropdown */
.category-quickshop { border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; }
.category-quickshop summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 14px 16px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--gray-700); background: var(--gray-50); user-select: none;
}
.category-quickshop summary::-webkit-details-marker { display: none; }
.category-quickshop[open] summary { border-bottom: 1px solid var(--gray-200); }
.quickshop-caret { transition: transform var(--transition); flex-shrink: 0; }
.category-quickshop[open] .quickshop-caret { transform: rotate(180deg); }

.quickshop-head, .quickshop-row {
  display: grid; grid-template-columns: 1fr auto auto 40px; align-items: center; gap: 12px; padding: 8px 16px;
}
.quickshop-head {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--gray-500); border-bottom: 1px solid var(--gray-100);
}
.quickshop-list { max-height: 360px; overflow-y: auto; }
.quickshop-row { border-bottom: 1px solid var(--gray-100); font-size: 0.85rem; }
.quickshop-row:last-child { border-bottom: none; }
.quickshop-row.is-current { background: var(--gray-50); }
.quickshop-prod { display: flex; align-items: center; gap: 10px; min-width: 0; }
.quickshop-img { width: 40px; height: 40px; object-fit: cover; border-radius: var(--radius); background: var(--gray-100); flex-shrink: 0; }
.quickshop-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quickshop-name:hover { color: var(--gold); }
.quickshop-name em { color: var(--gray-500); font-weight: 400; font-style: normal; font-size: 0.78rem; }
.quickshop-sku { font-size: 0.75rem; color: var(--gray-500); white-space: nowrap; }
.quickshop-price { font-weight: 700; white-space: nowrap; }
.quickshop-add {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--gray-200); border-radius: var(--radius); background: var(--white);
  color: var(--gray-700); cursor: pointer; transition: all var(--transition); flex-shrink: 0;
}
.quickshop-add:hover { border-color: var(--green); background: var(--green); color: var(--white); }
.quickshop-add.added { border-color: var(--green); background: var(--green); color: var(--white); }

.product-features { margin-bottom: 28px; }
.product-feature { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--gray-200); font-size: 0.875rem; color: var(--gray-700); }
.product-feature svg { color: var(--gold); width: 18px; height: 18px; flex-shrink: 0; }

.product-tabs { border-top: 2px solid var(--gray-200); }
.tab-nav { display: flex; gap: 0; }
.tab-btn { padding: 14px 24px; background: none; border: none; border-bottom: 3px solid transparent; cursor: pointer; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-500); transition: all var(--transition); }
.tab-btn.active { color: var(--black); border-bottom-color: var(--gold); }
.tab-content { display: none; padding: 24px 0; color: var(--gray-700); line-height: 1.8; }
.tab-content.active { display: block; }

/* ═══════════════════════════════════════════════
   SHOP PAGE
   ═══════════════════════════════════════════════ */

.shop-layout { display: grid; grid-template-columns: 280px 1fr; gap: 40px; padding: 40px 0 80px; align-items: start; }
.shop-sidebar {}
/* A long brand list (60+) must not tower over the product column — cap & scroll */
.sidebar-list-scroll { max-height: 340px; overflow-y: auto; padding-right: 6px; }
.sidebar-brand-filter { width: 100%; padding: 8px 10px; border: 2px solid var(--gray-200); border-radius: var(--radius); font-size: 0.85rem; margin-bottom: 12px; font-family: var(--font); }
.sidebar-brand-filter:focus { outline: none; border-color: var(--gray-700); }

/* ── Legal / content pages (privacy, terms, returns) ── */
.legal-page h2 { font-size: 1.15rem; margin: 28px 0 8px; color: var(--black); }
.legal-page p { margin-bottom: 12px; }
.legal-page a { color: var(--accent, #c2185b); text-decoration: underline; }
.legal-page ol, .legal-page ul { padding-left: 22px; margin: 8px 0; }
.legal-page li { margin-bottom: 6px; }
.sidebar-section { margin-bottom: 32px; }
.sidebar-title { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray-700); margin-bottom: 14px; border-bottom: 2px solid var(--gray-200); padding-bottom: 10px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.sidebar-list li { margin-bottom: 8px; }
.sidebar-list a { font-size: 0.9rem; color: var(--gray-700); transition: color var(--transition); display: flex; justify-content: space-between; align-items: center; }
.sidebar-list a:hover, .sidebar-list a.active { color: var(--black); font-weight: 600; }
.sidebar-list a .count { color: var(--gray-500); font-size: 0.8rem; }
.sidebar-check { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; cursor: pointer; }
.sidebar-check input { accent-color: var(--black); }
.sidebar-check span { font-size: 0.9rem; color: var(--gray-700); }

.price-range-inputs { display: flex; gap: 8px; align-items: center; }
.price-range-inputs input { width: 90px; padding: 8px 10px; border: 2px solid var(--gray-200); border-radius: var(--radius); font-size: 0.85rem; }
.price-range-inputs span { color: var(--gray-500); font-size: 0.875rem; }

.shop-main {}
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; padding: 16px 20px; background: var(--gray-50); border-radius: var(--radius); }
.shop-results-count { font-size: 0.875rem; color: var(--gray-500); }
.shop-sort { display: flex; align-items: center; gap: 10px; }
.shop-sort label { font-size: 0.875rem; color: var(--gray-700); font-weight: 600; white-space: nowrap; }
.shop-sort select { padding: 8px 12px; border: 2px solid var(--gray-200); border-radius: var(--radius); font-size: 0.875rem; background: var(--white); }
.shop-view-toggle { display: flex; gap: 4px; }
.view-btn { padding: 8px; border: 2px solid var(--gray-200); border-radius: var(--radius); background: var(--white); cursor: pointer; color: var(--gray-500); transition: all var(--transition); }
.view-btn.active { border-color: var(--black); color: var(--black); }

/* Active filters */
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-tag { display: flex; align-items: center; gap: 6px; padding: 5px 12px; background: var(--black); color: var(--white); border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.filter-tag button { background: none; border: none; color: var(--white); cursor: pointer; font-size: 1rem; line-height: 1; opacity: 0.7; }
.filter-tag button:hover { opacity: 1; }

/* Pagination */
.pagination-wrap { margin-top: 40px; }
.pagination { display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; padding: 4px 2px 10px; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--gray-300) transparent; }
.page-btn { width: 38px; height: 38px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border: 2px solid var(--gray-200); border-radius: var(--radius); font-weight: 600; font-size: 0.875rem; transition: all var(--transition); color: var(--gray-700); }
.page-btn:hover { border-color: var(--black); color: var(--black); }
.page-btn.active { background: var(--black); border-color: var(--black); color: var(--white); }


/* ═══════════════════════════════════════════════
   CART PAGE
   ═══════════════════════════════════════════════ */

.cart-page { padding: 40px 0 80px; }
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }

.cart-table { width: 100%; }
.cart-table-header { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 16px; padding: 0 0 12px; border-bottom: 2px solid var(--gray-200); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-500); }
.cart-item { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 16px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--gray-200); }
.cart-item-info { display: flex; gap: 16px; align-items: center; }
.cart-item-img { width: 90px; height: 110px; flex-shrink: 0; border-radius: var(--radius); overflow: hidden; background: var(--gray-100); }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-details {}
.cart-item-brand { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); font-weight: 700; }
.cart-item-name { font-weight: 600; font-size: 0.95rem; margin: 4px 0 6px; }
.cart-item-name a:hover { color: var(--gold); }
.cart-item-variant { font-size: 0.8rem; color: var(--gray-500); }
.cart-qty { display: flex; align-items: center; border: 2px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; width: fit-content; }
.cart-qty button { padding: 6px 12px; background: none; border: none; cursor: pointer; font-size: 1rem; color: var(--gray-700); transition: background var(--transition); }
.cart-qty button:hover { background: var(--gray-100); }
.cart-qty input { width: 44px; text-align: center; border: none; font-weight: 700; padding: 6px 0; }
.cart-item-price, .cart-item-subtotal { font-weight: 600; font-size: 0.95rem; }
.cart-item-subtotal { font-weight: 700; }
.cart-remove { background: none; border: none; cursor: pointer; color: var(--gray-400); transition: color var(--transition); padding: 6px; }
.cart-remove:hover { color: var(--red); }
.cart-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; }

/* Cart summary */
.cart-summary { background: var(--gray-50); border-radius: var(--radius-lg); padding: 32px; position: sticky; top: 100px; }
.cart-summary h3 { font-family: var(--font-serif); font-size: 1.4rem; margin-bottom: 24px; }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--gray-200); font-size: 0.9rem; }
.summary-row:last-of-type { border-bottom: none; }
.summary-row label { color: var(--gray-700); }
.summary-row .value { font-weight: 600; }
.summary-total { display: flex; justify-content: space-between; align-items: center; padding: 16px 0 24px; margin-top: 4px; border-top: 2px solid var(--black); }
.summary-total .label { font-weight: 700; font-size: 1rem; }
.summary-total .value { font-weight: 800; font-size: 1.4rem; }
.promo-form { display: flex; gap: 8px; margin: 20px 0; }
.promo-form input { flex: 1; padding: 10px 14px; border: 2px solid var(--gray-200); border-radius: var(--radius); font-size: 0.875rem; }
.promo-form button { padding: 10px 18px; }

/* Free shipping progress */
.free-shipping-bar { margin: 20px 0; padding: 14px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-200); }
.free-shipping-bar p { font-size: 0.8rem; color: var(--gray-700); margin-bottom: 8px; }
.free-shipping-bar p strong { color: var(--black); }
.progress-bar { height: 4px; background: var(--gray-200); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--green)); border-radius: 2px; transition: width 0.5s ease; }

/* ═══════════════════════════════════════════════
   CHECKOUT PAGE
   ═══════════════════════════════════════════════ */

.checkout-page { padding: 40px 0 80px; }
.checkout-layout { display: grid; grid-template-columns: 1fr 420px; gap: 48px; align-items: start; }

.checkout-steps { display: flex; gap: 0; margin-bottom: 40px; }
.checkout-step { flex: 1; display: flex; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 3px solid var(--gray-200); }
.checkout-step.active { border-bottom-color: var(--gold); }
.checkout-step.done { border-bottom-color: var(--green); }
.step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--gray-200); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; flex-shrink: 0; }
.checkout-step.active .step-num { background: var(--gold); color: var(--white); }
.checkout-step.done .step-num { background: var(--green); color: var(--white); }
.step-label { font-size: 0.875rem; font-weight: 600; color: var(--gray-500); }
.checkout-step.active .step-label { color: var(--black); }

.checkout-section { background: var(--white); border: 2px solid var(--gray-200); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 24px; }
.checkout-section h3 { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.checkout-section h3 svg { color: var(--gold); }

.payment-methods { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.payment-method { flex: 1; min-width: 120px; padding: 12px 16px; border: 2px solid var(--gray-200); border-radius: var(--radius); cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 600; transition: all var(--transition); }
.payment-method.active { border-color: var(--black); background: var(--gray-50); }
.payment-method svg { width: 24px; height: 24px; }

.card-element-wrapper { padding: 14px 16px; border: 2px solid var(--gray-200); border-radius: var(--radius); background: var(--white); transition: border-color var(--transition); }
.card-element-wrapper.focused { border-color: var(--black); }

/* Mock card form */
.mock-payment { padding: 20px; background: var(--gray-50); border-radius: var(--radius); border: 2px dashed var(--gray-300); text-align: center; }
.mock-payment p { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 12px; }
.test-cards { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
.test-card { font-family: monospace; font-size: 0.8rem; background: var(--white); padding: 4px 8px; border-radius: 4px; border: 1px solid var(--gray-200); cursor: pointer; }
.test-card:hover { background: var(--gray-100); }

/* Order summary sidebar */
.order-summary { background: var(--gray-50); border-radius: var(--radius-lg); padding: 28px; position: sticky; top: 100px; }
.order-summary h3 { font-family: var(--font-serif); font-size: 1.3rem; margin-bottom: 20px; }
.order-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--gray-200); }
.order-item-img { width: 60px; height: 72px; flex-shrink: 0; border-radius: var(--radius); overflow: hidden; background: var(--gray-200); position: relative; }
.order-item-img img { width: 100%; height: 100%; object-fit: cover; }
.order-item-qty { position: absolute; top: -6px; right: -6px; background: var(--gray-700); color: white; border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; }
.order-item-info { flex: 1; }
.order-item-info .name { font-size: 0.875rem; font-weight: 600; margin-bottom: 2px; }
.order-item-info .variant { font-size: 0.75rem; color: var(--gray-500); margin-bottom: 4px; }
.order-item-info .price { font-weight: 700; font-size: 0.9rem; }
.order-summary-totals { margin-top: 16px; }
.summary-line { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.875rem; color: var(--gray-700); }
.summary-line.total { font-weight: 700; font-size: 1.1rem; color: var(--black); padding-top: 14px; border-top: 2px solid var(--black); }

/* Shipping options */
.shipping-options { display: flex; flex-direction: column; gap: 10px; }
.shipping-option { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 2px solid var(--gray-200); border-radius: var(--radius); cursor: pointer; transition: all var(--transition); }
.shipping-option:hover { border-color: var(--gray-300); }
.shipping-option.selected { border-color: var(--black); background: var(--gray-50); }
.shipping-option input { accent-color: var(--black); width: 18px; height: 18px; }
.shipping-option-info { flex: 1; }
.shipping-option-name { font-weight: 700; font-size: 0.9rem; }
.shipping-option-time { font-size: 0.8rem; color: var(--gray-500); }
.shipping-option-price { font-weight: 700; font-size: 0.95rem; }
.shipping-option-price .free { color: var(--green); }

/* ═══════════════════════════════════════════════
   AUTH PAGES
   ═══════════════════════════════════════════════ */

.auth-page { min-height: calc(100vh - 200px); display: flex; align-items: center; justify-content: center; padding: 60px 24px; background: var(--gray-50); }
.auth-card { background: var(--white); border-radius: var(--radius-lg); padding: 48px; width: 100%; max-width: 480px; box-shadow: var(--shadow-lg); }
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo a { font-family: var(--font-serif); font-size: 1.8rem; font-weight: 700; }
.auth-logo span { color: var(--gold); }
.auth-title { font-family: var(--font-serif); font-size: 1.8rem; margin-bottom: 8px; }
.auth-subtitle { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 32px; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 0.875rem; color: var(--gray-500); }
.auth-footer a { color: var(--black); font-weight: 600; border-bottom: 1px solid var(--gray-300); }
.auth-footer a:hover { border-color: var(--black); }
.auth-divider { display: flex; align-items: center; gap: 16px; margin: 24px 0; color: var(--gray-500); font-size: 0.875rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--gray-200); }

/* ═══════════════════════════════════════════════
   ACCOUNT PAGES
   ═══════════════════════════════════════════════ */

.account-page { padding: 40px 0 80px; }
.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; }
.account-sidebar { }
.account-nav { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.account-user { padding: 24px; background: var(--black); color: var(--white); text-align: center; }
.account-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; color: white; margin: 0 auto 12px; }
.account-user-name { font-weight: 700; font-size: 1rem; }
.account-user-email { font-size: 0.8rem; opacity: 0.7; margin-top: 4px; }
.account-nav-link { display: flex; align-items: center; gap: 12px; padding: 14px 20px; color: var(--gray-700); font-weight: 600; font-size: 0.875rem; border-left: 3px solid transparent; transition: all var(--transition); }
.account-nav-link:hover { background: var(--gray-50); color: var(--black); border-left-color: var(--gray-300); }
.account-nav-link.active { background: var(--gray-50); color: var(--black); border-left-color: var(--gold); }
.account-nav-link svg { width: 18px; height: 18px; }

.account-content { }
.account-section-title { font-family: var(--font-serif); font-size: 1.6rem; margin-bottom: 24px; }
.account-card { background: var(--white); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); margin-bottom: 24px; }
.account-card h3 { font-size: 1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 20px; color: var(--gray-700); border-bottom: 2px solid var(--gray-200); padding-bottom: 12px; }

/* Orders table */
.orders-table { width: 100%; border-collapse: collapse; }
.orders-table th { padding: 12px 16px; text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-500); font-weight: 700; border-bottom: 2px solid var(--gray-200); }
.orders-table td { padding: 16px; border-bottom: 1px solid var(--gray-200); font-size: 0.875rem; vertical-align: middle; }
.orders-table tr:hover td { background: var(--gray-50); }
.order-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.status-pending   { background: #fef9e7; color: #7d6608; }
.status-processing{ background: #eaf2fb; color: #1a5276; }
.status-shipped   { background: #e8f8f5; color: #1e8449; }
.status-delivered { background: #eafaf1; color: #145a32; }
.status-cancelled { background: #fdedec; color: #922b21; }

/* ═══════════════════════════════════════════════
   ORDER CONFIRMATION
   ═══════════════════════════════════════════════ */

.order-confirmation { padding: 80px 0; text-align: center; }
.order-confirmation-icon { width: 80px; height: 80px; background: var(--green); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; color: white; animation: scaleIn 0.5s ease; }
@keyframes scaleIn { from { transform: scale(0); } to { transform: scale(1); } }
.order-confirmation h1 { font-family: var(--font-serif); font-size: 2.5rem; margin-bottom: 12px; }
.order-confirmation .order-num { font-size: 1.1rem; color: var(--gray-500); margin-bottom: 8px; }
.order-confirmation .order-num strong { color: var(--gold); font-size: 1.2rem; }
.order-details-card { background: var(--gray-50); border-radius: var(--radius-lg); padding: 32px; max-width: 600px; margin: 40px auto; text-align: left; }

/* ═══════════════════════════════════════════════
   BRANDS SECTION
   ═══════════════════════════════════════════════ */

.brands-section { background: var(--gray-50); padding: 48px 0; }
.brands-grid { display: flex; gap: 32px; align-items: center; justify-content: center; flex-wrap: wrap; }
.brand-logo { padding: 16px 28px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); filter: grayscale(100%); opacity: 0.6; transition: all var(--transition); cursor: pointer; }
.brand-logo:hover { filter: grayscale(0%); opacity: 1; box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.brand-logo span { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; white-space: nowrap; color: var(--black); }

/* Auto-scrolling brands strip (homepage) — fixed height regardless of brand count */
.brands-marquee { overflow: hidden; width: 100%; -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); }
.brands-marquee-track { display: flex; width: max-content; animation: brands-scroll var(--marquee-duration, 180s) linear infinite; }
.brands-marquee:hover .brands-marquee-track,
.brands-marquee:focus-within .brands-marquee-track { animation-play-state: paused; }
.brands-marquee-group { display: flex; align-items: center; gap: 24px; padding-right: 24px; }
.brands-marquee-group .brand-logo { flex-shrink: 0; }
@keyframes brands-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .brands-marquee { -webkit-mask-image: none; mask-image: none; }
  .brands-marquee-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .brands-marquee-group { flex-wrap: wrap; justify-content: center; padding-right: 0; }
  .brands-marquee-group[aria-hidden="true"] { display: none; }
}

/* ═══════════════════════════════════════════════
   NEWSLETTER
   ═══════════════════════════════════════════════ */

.newsletter { background: var(--black); color: var(--white); padding: 60px 0; }
.newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.newsletter h2 { font-family: var(--font-serif); font-size: 2rem; margin-bottom: 8px; }
.newsletter p { color: rgba(255,255,255,0.7); }
.newsletter-form { display: flex; gap: 0; }
.newsletter-form input { flex: 1; padding: 14px 20px; border: none; background: rgba(255,255,255,0.1); color: white; font-size: 0.9rem; border-radius: var(--radius) 0 0 var(--radius); }
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form input:focus { outline: none; background: rgba(255,255,255,0.15); }
.newsletter-form button { padding: 14px 28px; background: var(--gold); border: none; color: white; font-weight: 700; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; border-radius: 0 var(--radius) var(--radius) 0; transition: background var(--transition); }
.newsletter-form button:hover { background: #b8922e; }

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */

.site-footer { background: #0a0a0a; color: rgba(255,255,255,0.7); }
.footer-main { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding: 60px 0 40px; }
.footer-brand {}
.footer-logo { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; color: var(--white); margin-bottom: 16px; }
.footer-logo span { color: var(--gold); }
.footer-tagline { font-size: 0.875rem; line-height: 1.7; margin-bottom: 20px; max-width: 280px; }
.footer-social { display: flex; gap: 12px; }
.social-btn { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); transition: all var(--transition); }
.social-btn:hover { background: var(--gold); color: var(--white); transform: translateY(-2px); }
.social-btn svg { width: 18px; height: 18px; }
.footer-col h4 { color: var(--white); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.875rem; color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; font-size: 0.8rem; }
.footer-bottom-left { display: flex; gap: 24px; }
.footer-bottom-left a { color: rgba(255,255,255,0.5); }
.footer-bottom-left a:hover { color: rgba(255,255,255,0.9); }
.footer-payments { display: flex; gap: 8px; align-items: center; }
.payment-icon { background: rgba(255,255,255,0.1); border-radius: 4px; padding: 4px 8px; font-size: 0.7rem; font-weight: 700; color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.2); }

/* ═══════════════════════════════════════════════
   TOASTS & OVERLAYS
   ═══════════════════════════════════════════════ */

.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 12px; }
.toast { background: var(--black); color: var(--white); padding: 14px 20px; border-radius: var(--radius); min-width: 280px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-lg); animation: slideInRight 0.3s ease; font-size: 0.9rem; }
@keyframes slideInRight { from { transform: translateX(100px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.toast.toast-success { border-left: 4px solid var(--green); }
.toast.toast-error   { border-left: 4px solid var(--red); }
.toast.toast-info    { border-left: 4px solid var(--gold); }
.toast-icon { font-size: 1.2rem; }
.toast-close { margin-left: auto; background: none; border: none; color: rgba(255,255,255,0.6); cursor: pointer; font-size: 1.1rem; }
.toast-close:hover { color: white; }
.toast.removing { animation: slideOutRight 0.3s ease forwards; }
@keyframes slideOutRight { to { transform: translateX(120px); opacity: 0; } }

/* Cart sidebar */
.cart-drawer { position: fixed; top: 0; right: 0; width: 420px; height: 100vh; background: var(--white); box-shadow: -4px 0 40px rgba(0,0,0,0.15); z-index: 2000; transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.25,0.8,0.25,1); display: flex; flex-direction: column; }
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1999; display: none; backdrop-filter: blur(2px); }
.cart-drawer-overlay.show { display: block; }
.cart-drawer-header { padding: 20px 24px; border-bottom: 1px solid var(--gray-200); display: flex; align-items: center; justify-content: space-between; }
.cart-drawer-header h3 { font-family: var(--font-serif); font-size: 1.3rem; }
.cart-drawer-close { background: none; border: none; cursor: pointer; color: var(--gray-500); padding: 6px; border-radius: 50%; transition: all var(--transition); }
.cart-drawer-close:hover { background: var(--gray-100); color: var(--black); }
.cart-drawer-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-drawer-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--gray-200); }
.cart-drawer-img { width: 70px; height: 84px; flex-shrink: 0; border-radius: var(--radius); overflow: hidden; background: var(--gray-100); }
.cart-drawer-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-drawer-info { flex: 1; }
.cart-drawer-info .brand { font-size: 0.7rem; text-transform: uppercase; color: var(--gold); font-weight: 700; letter-spacing: 0.05em; }
.cart-drawer-info .name { font-weight: 600; font-size: 0.875rem; margin: 3px 0 4px; }
.cart-drawer-info .variant { font-size: 0.75rem; color: var(--gray-500); margin-bottom: 8px; }
.cart-drawer-info .price-qty { display: flex; align-items: center; justify-content: space-between; }
.cart-drawer-info .price-qty .price { font-weight: 700; }
.drawer-item-remove { background: none; border: none; cursor: pointer; color: var(--gray-400); transition: color var(--transition); }
.drawer-item-remove:hover { color: var(--red); }
.cart-drawer-footer { padding: 20px 24px; border-top: 1px solid var(--gray-200); }
.cart-drawer-subtotal { display: flex; justify-content: space-between; margin-bottom: 16px; font-weight: 700; font-size: 1rem; }
.cart-drawer-footer .btn { margin-bottom: 10px; }

/* Loading spinner */
.spinner { width: 32px; height: 32px; border: 3px solid var(--gray-200); border-top-color: var(--black); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay { position: fixed; inset: 0; background: rgba(255,255,255,0.85); z-index: 9998; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--gray-500); padding: 16px 0; }
.breadcrumb a { color: var(--gray-500); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--black); }
.breadcrumb span { color: var(--gray-300); }

/* Page header */
.page-header { background: var(--gray-50); padding: 40px 0 32px; border-bottom: 1px solid var(--gray-200); margin-bottom: 0; }
.page-header h1 { font-family: var(--font-serif); font-size: 2.2rem; }
.page-header p { color: var(--gray-500); margin-top: 6px; }

/* Empty states */
.empty-state { text-align: center; padding: 80px 24px; }
.empty-state svg { width: 64px; height: 64px; color: var(--gray-300); margin: 0 auto 20px; }
.empty-state h3 { font-size: 1.3rem; margin-bottom: 8px; }
.empty-state p { color: var(--gray-500); margin-bottom: 24px; }

/* Trustmarks */
.trustmarks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 48px 0; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); margin: 40px 0; }
.trustmark { text-align: center; }
.trustmark svg { width: 36px; height: 36px; color: var(--gold); margin: 0 auto 12px; }
.trustmark h4 { font-size: 0.875rem; font-weight: 700; margin-bottom: 4px; }
.trustmark p { font-size: 0.8rem; color: var(--gray-500); }

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */

@media (max-width: 1200px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid--6 { grid-template-columns: repeat(4, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 1024px) {
  .shop-layout { grid-template-columns: 240px 1fr; gap: 28px; }
  .checkout-layout { grid-template-columns: 1fr 360px; gap: 32px; }
  .product-detail-grid { gap: 40px; }
  .trustmarks { grid-template-columns: repeat(2, 1fr); }
  .mini-banners { grid-template-columns: 1fr 1fr; }
  .mini-banners .mini-banner:last-child { grid-column: span 2; }
}

@media (max-width: 768px) {
  /* Force every grid/flex child to be shrinkable — prevents overflow on mobile */
  .shop-layout > *,
  .shop-main,
  .products-grid > *,
  .products-grid--6 > *,
  .cart-layout > *,
  .checkout-layout > *,
  .newsletter-inner > *,
  .product-detail-grid > *,
  .footer-main > * { min-width: 0; }

  .header-search { display: none; }
  .header-nav .nav-list { display: none; }
  .menu-toggle { display: block; }

  /* Simplify top bar to 1 item on small screens */
  .header-top-inner { flex-wrap: wrap; justify-content: center; gap: 4px; }
  .header-top-inner > span:first-child,
  .header-top-inner > span:last-child { display: none; }

  /* Prevent header actions from overflowing */
  .header-actions .btn-gold { display: none; }

  .hero { height: 420px; }
  .hero-title { font-size: 2.2rem; }
  .hero-arrow { width: 40px; height: 40px; }
  .hero-arrow-prev { left: 12px; }
  .hero-arrow-next { right: 12px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .products-grid--6 { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { display: none; }
  .shop-toolbar { flex-wrap: wrap; gap: 10px; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-table-header { display: none; }
  .cart-item { grid-template-columns: 1fr; gap: 12px; }
  .checkout-layout { grid-template-columns: 1fr; }
  .product-detail-grid { grid-template-columns: 1fr; }
  /* Single-column on mobile: the gallery must NOT stay sticky, or the pinned
     image floats over the info section below it and blocks taps (badge, etc.). */
  .product-gallery { position: static; top: auto; }
  /* Cap the main image height on phones so the product info is visible
     without scrolling; contain (not cover) so the shorter box doesn't crop. */
  .product-detail { padding: 16px 0 60px; }
  .product-detail-grid { gap: 24px; }
  .gallery-main { aspect-ratio: auto; height: 32vh; max-height: 300px; }
  .gallery-main img { object-fit: contain; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .gallery-thumb { max-width: 72px; }
  /* Product tabs + footer payment icons overflowed 375px screens */
  .tab-nav { flex-wrap: wrap; }
  .tab-btn { padding: 12px 14px; font-size: 0.78rem; }
  .footer-payments { flex-wrap: wrap; justify-content: center; }
  .mini-banners { grid-template-columns: 1fr; }
  .mini-banners .mini-banner:last-child { grid-column: span 1; }
  .newsletter-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .account-layout { grid-template-columns: 1fr; }
  .cart-drawer { width: 100%; }
  .brands-grid { gap: 16px; }

  /* Mobile pagination: smaller buttons */
  .pagination .page-btn { width: 34px; height: 34px; font-size: 0.78rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 12px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .products-grid--6 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hero { height: 320px; }
  .hero-title { font-size: 1.8rem; }
  .hero-arrow { display: none; }
  .hero-content { margin-left: 5%; padding: 0 20px; }
  .auth-card { padding: 28px 20px; }
  .footer-main { grid-template-columns: 1fr; }

  /* Header top bar: hide side items, keep center promo only */
  .header-top-inner { justify-content: center; }
  .header-top-inner > span:first-child,
  .header-top-inner > span:last-child { display: none; }

  /* Header main: tighten up on small screens */
  .header-main { padding: 10px 0; }
  .header-main-inner { gap: 8px; }
  .site-logo { font-size: 1.4rem; }

  /* Hide "Create Account" button in header on mobile — it blows the row */
  .header-actions .btn-gold { display: none; }
  .header-icon-btn { padding: 8px; font-size: 0.65rem; }
  .header-icon-btn svg { width: 20px; height: 20px; }

  /* Shop toolbar: stack vertically */
  .shop-toolbar { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px; }
  .shop-sort { width: 100%; justify-content: space-between; }
  .shop-view-toggle { display: none; }


  /* Product card body text doesn't overflow */
  .product-name { font-size: 0.85rem; }
  .product-price-current { font-size: 0.9rem; }

  /* Bulk bar wraps cleanly */
  .bulk-bar { flex-wrap: wrap; gap: 10px; }

  /* Section titles smaller */
  .section-title { font-size: 1.6rem; }
  .page-header h1 { font-size: 1.6rem; }

  /* Newsletter form stacks */
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { border-radius: var(--radius); }
  .newsletter-form button { border-radius: var(--radius); }

  /* Footer bottom stacks */
  .footer-bottom-left { flex-wrap: wrap; gap: 12px; justify-content: center; }
}

/* ─── Mobile nav ─────────────────────────────── */
.mobile-nav {
  position: fixed; inset: 0; background: var(--white); z-index: 3000;
  transform: translateX(-100%); transition: transform 0.3s ease;
  overflow-y: auto; padding: 0 0 32px;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--gray-200); }
.mobile-nav-close { background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-search { padding: 16px 24px; }
.mobile-search input { width: 100%; padding: 12px 16px; border: 2px solid var(--gray-200); border-radius: var(--radius); }
.mobile-nav-links a { display: block; padding: 14px 24px; font-weight: 600; font-size: 1rem; border-bottom: 1px solid var(--gray-100); color: var(--gray-700); }
.mobile-nav-links a:hover { background: var(--gray-50); color: var(--black); }
.mobile-nav-links .mobile-sub { padding-left: 40px; font-size: 0.9rem; font-weight: 500; }
.mobile-nav-links .mobile-cat { background: var(--gray-50); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray-500); padding: 10px 24px 6px; }


/* ─── Required variant highlight (flash when Add to Cart is clicked without a choice) ─── */
.variant-required { animation: variantRequiredFlash 0.9s ease 2; border-radius: 6px; }
@keyframes variantRequiredFlash {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.55); }
}
