/* ============================================================
   LOYLTE FASHION — Design System
   Style: Black & White Minimal + Gold Accent
   Fonts: Cormorant (headings) + Montserrat (body)
   Mobile-first | Breakpoints: 375 / 768 / 1024 / 1440
============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* --- CSS Variables (Design Tokens) --- */
:root {
  --color-primary:       #171717;
  --color-secondary:     #404040;
  --color-accent:        #A16207;
  --color-accent-light:  #FEF3C7;
  --color-bg:            #FFFFFF;
  --color-bg-soft:       #F9F9F9;
  --color-bg-dark:       #111111;
  --color-text:          #171717;
  --color-text-muted:    #6B7280;
  --color-border:        #E5E5E5;
  --color-card:          #FFFFFF;
  --color-success:       #16A34A;
  --color-error:         #DC2626;
  --color-sale:          #DC2626;

  --font-heading:        'Cormorant', Georgia, serif;
  --font-body:           'Montserrat', sans-serif;

  --radius-sm:           4px;
  --radius-md:           8px;
  --radius-lg:           16px;
  --radius-full:         9999px;

  --shadow-sm:           0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:           0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:           0 8px 32px rgba(0,0,0,0.12);

  --transition:          all 0.3s ease;
  --transition-fast:     all 0.15s ease;

  --container-max:       1440px;
  --container-pad:       16px;

  --nav-height:          64px;
  --bottom-nav-height:   64px;
}

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

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }
input, select, textarea { font-family: var(--font-body); font-size: 16px; }

/* --- Typography Scale --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.8rem, 8vw, 6rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2.2rem); letter-spacing: -0.01em; }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); letter-spacing: 0; }
h5 { font-size: 1rem; letter-spacing: 0; }

p { font-size: 0.9375rem; line-height: 1.7; color: var(--color-text-muted); }

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

@media (min-width: 768px)  { .container { padding: 0 32px; } }
@media (min-width: 1024px) { .container { padding: 0 48px; } }
@media (min-width: 1440px) { .container { padding: 0 64px; } }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  min-height: 48px;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border: 2px solid var(--color-primary);
}
.btn-primary:hover { background: #333; border-color: #333; transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }

.btn-accent {
  background: var(--color-accent);
  color: #fff;
  border: 2px solid var(--color-accent);
}
.btn-accent:hover { background: #92400E; border-color: #92400E; }

.btn-white {
  background: #fff;
  color: var(--color-primary);
  border: 2px solid #fff;
}
.btn-white:hover { background: transparent; color: #fff; }

.btn-full { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 0.75rem; min-height: 40px; }

/* --- Badge / Tag --- */
.badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
}
.badge-sale   { background: var(--color-sale); color: #fff; }
.badge-new    { background: var(--color-primary); color: #fff; }
.badge-accent { background: var(--color-accent); color: #fff; }

/* ============================================================
   HEADER / NAVIGATION
============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  height: var(--nav-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-primary);
}
.site-logo span { color: var(--color-accent); }

.header-nav { display: none; }
@media (min-width: 1024px) {
  .header-nav {
    display: flex;
    align-items: center;
    gap: 36px;
  }
  .header-nav a {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text);
    transition: var(--transition-fast);
    position: relative;
  }
  .header-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1.5px;
    background: var(--color-accent);
    transition: width 0.3s ease;
  }
  .header-nav a:hover::after,
  .header-nav a.active::after { width: 100%; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  color: var(--color-text);
  position: relative;
  vertical-align: middle;
}
.header-icon-btn:hover { background: var(--color-bg-soft); }
.header-icon-btn svg { display: block; flex-shrink: 0; }

.cart-count {
  position: absolute;
  top: 6px; right: 6px;
  width: 16px; height: 16px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Announcement Bar (Marquee) --- */
/* Hidden everywhere — only shown on home page via body.home class */
.announcement-bar { display: none !important; }
body.home .announcement-bar {
  display: block !important;
  background: var(--color-primary);
  height: 36px;
  overflow: hidden;
  position: relative;
  z-index: 101;
}
.announcement-track {
  display: inline-block;
  white-space: nowrap;
  line-height: 36px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  animation: marquee-scroll 35s linear infinite;
}
.announcement-track:hover { animation-play-state: paused; }
.announcement-track strong { color: var(--color-accent-light); font-weight: 700; }
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .announcement-track { animation: none; }
  .announcement-bar { display: flex; align-items: center; justify-content: center; }
}

/* ============================================================
   BOTTOM NAVIGATION (Mobile)
============================================================ */
.bottom-nav {
  display: flex;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border);
  height: var(--bottom-nav-height);
  padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: var(--transition-fast);
  padding: 8px 0;
  min-height: 44px;
}
.bottom-nav-item.active,
.bottom-nav-item:hover { color: var(--color-primary); }
.bottom-nav-item svg { width: 22px; height: 22px; }

@media (min-width: 1024px) { .bottom-nav { display: none; } }

/* ============================================================
   HERO SECTION
============================================================ */
.hero {
  position: relative;
  height: calc(100svh - var(--nav-height));
  min-height: 500px;
  max-height: 900px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-bottom: calc(var(--bottom-nav-height) + 32px);
}

@media (min-width: 1024px) { .hero { padding-bottom: 64px; align-items: center; } }

.hero-bg {
  position: absolute;
  inset: 0;
  background: #111;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.75;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 640px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.hero-title {
  color: #fff;
  margin-bottom: 16px;
}
.hero-title em { font-style: italic; color: rgba(255,255,255,0.75); }

.hero-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  max-width: 420px;
}

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

/* ============================================================
   HERO SPLIT — Editorial Fashion Layout
============================================================ */
.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100svh - var(--nav-height) - 36px); /* 36px = announcement bar */
}
@media (min-width: 768px) {
  .hero-split {
    grid-template-columns: 44% 56%;
    max-height: 780px;
    min-height: 520px;
  }
}

.hero-split-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 24px 40px;
  background: var(--color-bg);
  order: 2;
}
@media (min-width: 768px) {
  .hero-split-content { order: 1; padding: 64px 48px 64px 56px; }
}
@media (min-width: 1024px) {
  .hero-split-content { padding: 80px 56px 80px 72px; }
}
@media (min-width: 1280px) {
  .hero-split-content { padding: 80px 64px 80px 96px; }
}

.hero-split-eyebrow {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.hero-split-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--color-primary);
  margin-bottom: 20px;
}
.hero-split-title em {
  font-style: italic;
  color: var(--color-text-muted);
}

.hero-split-sub {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 340px;
}

.hero-split-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-split-image {
  position: relative;
  overflow: hidden;
  order: 1;
  aspect-ratio: 4/5;
  background: var(--color-bg-soft);
}
@media (min-width: 768px) {
  .hero-split-image { order: 2; aspect-ratio: auto; }
}
.hero-split-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.8s cubic-bezier(0.0, 0.0, 0.2, 1);
}
.hero-split:hover .hero-split-image img { transform: scale(1.03); }

/* ============================================================
   SECTION COMMONS
============================================================ */
.section { padding: 64px 0; }
@media (min-width: 768px)  { .section { padding: 88px 0; } }
@media (min-width: 1024px) { .section { padding: 110px 0; } }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}
.section-title {
  margin-bottom: 12px;
  letter-spacing: -0.025em;
}
.section-subtitle { max-width: 520px; margin: 0 auto; }

/* ============================================================
   CATEGORY TILES
============================================================ */
.categories { background: var(--color-bg-soft); }

.category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (min-width: 768px)  { .category-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
@media (min-width: 1024px) { .category-grid { gap: 20px; } }

.category-card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: 0;
  cursor: pointer;
}
@media (min-width: 768px) { .category-card { aspect-ratio: 2/3; } }

.category-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(30%);
  transition: transform 0.65s cubic-bezier(0.0, 0.0, 0.2, 1), filter 0.65s ease;
}
.category-card:hover img {
  transform: scale(1.06);
  filter: grayscale(0%);
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.08) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 18px;
  transition: background 0.4s ease;
}
.category-card:hover .category-card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.80) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
}
.category-card-name {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 600;
  font-style: italic;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.category-card-count {
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.65);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.category-card-btn {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 3px;
  width: fit-content;
  transition: var(--transition-fast);
  transform: translateY(4px);
  opacity: 0.8;
  transition: opacity 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.category-card:hover .category-card-btn {
  border-color: var(--color-accent);
  color: var(--color-accent-light);
  transform: translateY(0);
  opacity: 1;
}

/* ============================================================
   PRODUCT GRID
============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 768px)  { .products-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .products-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

/* --- Product Card --- */
.product-card {
  position: relative;
  background: var(--color-card);
  border-radius: 0;
  overflow: hidden;
  transition: var(--transition);
}
/* No card lift — image zoom only */
.product-card:hover { box-shadow: none; transform: none; }

.product-card-image {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--color-bg-soft);
}
.product-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.0, 0.0, 0.2, 1);
}
.product-card:hover .product-card-image img { transform: scale(1.04); }

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

/* Badge: NEW as thin border tag, SALE stays solid */
.badge-new {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.product-card-actions {
  position: absolute;
  top: 10px; right: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 1;
  transform: translateX(0);
  z-index: 2;
}

.product-action-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.95);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  color: var(--color-text);
}
.product-action-btn:hover { background: var(--color-primary); color: #fff; }

/* Quick-add: always visible at bottom of image */
.product-card-quick-add {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(23,23,23,0.92);
  color: #fff;
  text-align: center;
  padding: 11px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateY(0);
  transition: background 0.2s ease;
  cursor: pointer;
}
.product-card-quick-add:hover { background: rgba(23,23,23,1); }

.product-card-body { padding: 12px 2px 4px; }

/* Brand label removed — single-brand store, it's redundant */
.product-card-brand { display: none; }

.product-card-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-card-price {
  display: flex;
  align-items: center;
  gap: 8px;
}
.price-current { font-size: 0.9375rem; font-weight: 600; color: var(--color-text); }
.price-original { font-size: 0.8125rem; font-weight: 400; color: var(--color-text-muted); text-decoration: line-through; }
.price-sale { color: var(--color-sale); }

.product-card-colors {
  display: flex;
  gap: 5px;
  margin-top: 8px;
}
.color-swatch {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  cursor: pointer;
  transition: var(--transition-fast);
}
.color-swatch:hover, .color-swatch.active { border-color: var(--color-primary); transform: scale(1.2); }

/* ============================================================
   BESTSELLERS HORIZONTAL SCROLL
============================================================ */
.scroll-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.scroll-track::-webkit-scrollbar { display: none; }
.scroll-track .product-card {
  flex: 0 0 200px;
  scroll-snap-align: start;
}
@media (min-width: 768px) { .scroll-track .product-card { flex: 0 0 240px; } }

/* ============================================================
   LOOKBOOK BANNER
============================================================ */
.lookbook-banner {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #111;
}
@media (min-width: 1024px) { .lookbook-banner { min-height: 600px; } }

.lookbook-banner-bg { position: absolute; inset: 0; }
.lookbook-banner-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }

.lookbook-banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 100%);
}

.lookbook-banner-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 560px;
}
.lookbook-banner-content .section-eyebrow { color: var(--color-accent-light); }
.lookbook-banner-content h2 { color: #fff; margin-bottom: 16px; }
.lookbook-banner-content p { color: rgba(255,255,255,0.8); margin-bottom: 32px; }

/* ============================================================
   TRUST BAR
============================================================ */
.trust-bar {
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 32px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (min-width: 768px)  { .trust-grid { grid-template-columns: repeat(4, 1fr); } }

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.trust-icon {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}
.trust-icon svg { width: 28px; height: 28px; }
.trust-label { font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.trust-desc  { font-size: 0.75rem; color: var(--color-text-muted); }

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,0.8);
  /* bottom-nav (64px) + sticky bar (~60px) + breathing room (24px) */
  padding: 64px 0 calc(var(--bottom-nav-height) + 84px);
}
@media (min-width: 1024px) { .site-footer { padding: 80px 0 48px; } }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (min-width: 768px)  { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-brand .site-logo { color: #fff; margin-bottom: 16px; display: block; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; color: rgba(255,255,255,0.55); max-width: 260px; }

.footer-socials { display: flex; gap: 12px; margin-top: 20px; }
.footer-social-btn {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: var(--transition-fast);
}
.footer-social-btn:hover { border-color: var(--color-accent); color: var(--color-accent); }

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.875rem; color: rgba(255,255,255,0.55); transition: var(--transition-fast); }
.footer-links a:hover { color: var(--color-accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

.footer-payments { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; }
.payment-badge {
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ============================================================
   SHOP PAGE — FILTERS + GRID
============================================================ */
.shop-layout {
  display: block;
}
@media (min-width: 1024px) {
  .shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
}

.filter-sidebar { display: none; }
@media (min-width: 1024px) { .filter-sidebar { display: block; position: sticky; top: calc(var(--nav-height) + 16px); } }

.filter-group { margin-bottom: 28px; }
.filter-group-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}
.filter-options { display: flex; flex-direction: column; gap: 8px; }
.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  cursor: pointer;
}
.filter-option input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--color-primary); }

/* Mobile filter bar */
.mobile-filter-bar {
  display: flex;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.mobile-filter-bar::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .mobile-filter-bar { display: none; } }

.filter-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
  min-height: 40px;
}
.filter-chip:hover, .filter-chip.active { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.shop-count { font-size: 0.875rem; color: var(--color-text-muted); }
.sort-select {
  padding: 8px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  background: #fff;
  cursor: pointer;
  min-height: 40px;
  color: var(--color-text);
}

/* ============================================================
   PRODUCT DETAIL PAGE
============================================================ */
.pdp-layout {
  display: block;
  padding-top: 24px;
}
@media (min-width: 768px) {
  .pdp-layout { display: grid; grid-template-columns: 320px 440px; gap: 40px; align-items: start; }
}
@media (min-width: 1024px) { .pdp-layout { grid-template-columns: 360px 460px; gap: 48px; } }
@media (min-width: 1280px) { .pdp-layout { grid-template-columns: 400px 480px; gap: 56px; } }

.pdp-gallery { margin-bottom: 24px; }
@media (min-width: 768px) { .pdp-gallery { margin-bottom: 0; position: sticky; top: calc(var(--nav-height) + 16px); } }

.pdp-main-image {
  aspect-ratio: 3/4;
  max-height: 500px;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-bg-soft);
  margin-bottom: 12px;
}
.pdp-main-image img { width: 100%; height: 100%; object-fit: cover; }

.pdp-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.pdp-thumbs::-webkit-scrollbar { display: none; }
.pdp-thumb {
  flex-shrink: 0;
  width: 72px; height: 88px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
  background: var(--color-bg-soft);
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb.active, .pdp-thumb:hover { border-color: var(--color-primary); }

.pdp-info {}
.pdp-breadcrumb {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}
.pdp-breadcrumb a:hover { color: var(--color-primary); }
.pdp-brand { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 8px; }
.pdp-name { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 12px; }
.pdp-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 0.875rem; color: var(--color-text-muted); }
.pdp-stars { color: #F59E0B; }
.pdp-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 24px; }
.pdp-price .price-current { font-size: 1.5rem; font-weight: 600; }

.pdp-divider { border: none; border-top: 1px solid var(--color-border); margin: 20px 0; }

.pdp-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.pdp-colors { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.pdp-color-swatch {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
  outline-offset: 3px;
}
.pdp-color-swatch.active, .pdp-color-swatch:hover { outline: 2px solid var(--color-primary); }

.pdp-sizes { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.size-btn {
  min-width: 48px; height: 44px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
  background: #fff;
}
.size-btn:hover  { border-color: var(--color-primary); }
.size-btn.active { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }
.size-btn.out-of-stock {
  opacity: 0.35;
  cursor: not-allowed;
  position: relative;
}
.size-btn.out-of-stock::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top right, transparent calc(50% - 0.5px), var(--color-border) calc(50% - 0.5px), var(--color-border) calc(50% + 0.5px), transparent calc(50% + 0.5px));
}

/* Qty row: qty+wishlist on top, full-width Add to Cart below */
.pdp-qty-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.pdp-qty-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 0;
  overflow: hidden;
  height: 48px;
}
.qty-btn {
  width: 44px; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  font-weight: 400;
  transition: var(--transition-fast);
  background: #fff;
  color: var(--color-text);
}
.qty-btn:hover { background: var(--color-bg-soft); }
.qty-input {
  width: 48px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  font-size: 0.9375rem;
  font-weight: 500;
  height: 100%;
  -moz-appearance: textfield;
}
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Add to Cart: full-width own row */
.pdp-add-btn {
  width: 100%;
  border-radius: 0;
  min-height: 52px;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
}

.pdp-wishlist-btn {
  width: 48px; height: 48px;
  border: 1px solid var(--color-border);
  border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition-fast);
  color: var(--color-text-muted);
  flex-shrink: 0;
  margin-left: auto;
}
.pdp-wishlist-btn:hover { border-color: var(--color-sale); color: var(--color-sale); }

/* Sticky Add to Cart — Mobile */
.pdp-sticky-bar {
  position: fixed;
  bottom: var(--bottom-nav-height);
  left: 0; right: 0;
  z-index: 90;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--color-border);
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex;
  gap: 10px;
  align-items: center;
}
@media (min-width: 1024px) { .pdp-sticky-bar { display: none !important; } }

.pdp-sticky-bar .product-name-mini {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pdp-sticky-bar .price-mini { font-size: 0.9375rem; font-weight: 600; white-space: nowrap; }

/* PDP Trust Signals */
.pdp-trust {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
  padding: 14px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.pdp-trust span {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* PDP Tabs */
.pdp-tabs { margin-top: 32px; }
.pdp-tab-nav { display: flex; border-bottom: 1px solid var(--color-border); margin-bottom: 16px; }
.pdp-tab-btn {
  padding: 10px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: var(--transition-fast);
  cursor: pointer;
  min-height: 44px;
}
.pdp-tab-btn.active { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.pdp-tab-content { font-size: 0.9rem; line-height: 1.8; color: var(--color-text-muted); }
.pdp-tab-pane { display: none; }
.pdp-tab-pane.active { display: block; }

/* ============================================================
   CART PAGE
============================================================ */
.cart-layout {
  display: block;
}
@media (min-width: 1024px) {
  .cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
  align-items: start;
}
@media (min-width: 480px) { .cart-item { grid-template-columns: 100px 1fr; } }

.cart-item-img {
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--color-bg-soft);
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }

.cart-item-name { font-family: var(--font-heading); font-size: 1.05rem; margin-bottom: 4px; }
.cart-item-meta { font-size: 0.8125rem; color: var(--color-text-muted); margin-bottom: 12px; }

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.cart-summary-box {
  background: var(--color-bg-soft);
  border-radius: var(--radius-md);
  padding: 24px;
  position: sticky;
  top: calc(var(--nav-height) + 16px);
}
.cart-summary-title { font-family: var(--font-heading); font-size: 1.3rem; margin-bottom: 20px; }
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--color-border);
}
.cart-summary-row.total { font-weight: 600; font-size: 1rem; border-bottom: none; padding-top: 14px; }

.coupon-input-row { display: flex; gap: 8px; margin: 16px 0; }
.coupon-input {
  flex: 1;
  padding: 11px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  background: #fff;
  min-height: 44px;
}
.coupon-input:focus { outline: none; border-color: var(--color-primary); }

/* ============================================================
   CHECKOUT
============================================================ */
.checkout-layout {
  display: block;
}
@media (min-width: 1024px) {
  .checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
}

.checkout-step-bar {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 32px;
  overflow-x: auto;
  scrollbar-width: none;
}
.checkout-step-bar::-webkit-scrollbar { display: none; }

.checkout-step {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition-fast);
}
.checkout-step.active .step-num { background: var(--color-primary); color: #fff; }
.checkout-step.done .step-num { background: var(--color-success); color: #fff; }
.step-label { font-size: 0.8125rem; font-weight: 500; color: var(--color-text-muted); }
.checkout-step.active .step-label { color: var(--color-primary); font-weight: 600; }

.step-divider {
  height: 1px;
  width: 32px;
  background: var(--color-border);
  margin: 0 8px;
  flex-shrink: 0;
}

.checkout-form-section {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 16px;
}
.checkout-section-title { font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 20px; }

.form-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 480px) { .form-grid-2 { grid-template-columns: 1fr 1fr; } }

.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 0.8125rem; font-weight: 500; color: var(--color-text); }
.form-input {
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  transition: var(--transition-fast);
  background: #fff;
  min-height: 48px;
}
.form-input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(23,23,23,0.06); }
.form-input.error { border-color: var(--color-error); }
.form-error { font-size: 0.75rem; color: var(--color-error); }

/* ============================================================
   UTILITY CLASSES
============================================================ */
.text-center { text-align: center; }
.text-muted   { color: var(--color-text-muted); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }
.flex  { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8  { gap: 8px; }
.gap-16 { gap: 16px; }
.hidden-mobile  { display: none !important; }
@media (min-width: 768px) { .hidden-mobile { display: block !important; } }
.hidden-desktop { display: block; }
@media (min-width: 1024px) { .hidden-desktop { display: none !important; } }

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-load 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-load {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   MOBILE RESPONSIVE POLISH
============================================================ */

/* --- Touch devices: always show product-card quick-add & wishlist --- */
@media (hover: none) {
  .product-card-quick-add {
    transform: translateY(0) !important;
    background: rgba(23,23,23,0.88);
  }
  .product-card-actions {
    opacity: 1 !important;
    transform: translateX(0) !important;
  }
}

/* --- PDP: cap image height so product info shows above the fold --- */
@media (max-width: 767px) {
  .pdp-main-image {
    aspect-ratio: unset;
    height: 52vw;
    max-height: 240px;
    min-height: 180px;
  }

  /* Breadcrumb not needed on mobile */
  .pdp-breadcrumb { display: none; }

  /* Tighter vertical rhythm */
  .pdp-name        { font-size: clamp(1.3rem, 6vw, 1.8rem); margin-bottom: 8px; }
  .pdp-rating      { margin-bottom: 10px; }
  .pdp-price       { margin-bottom: 14px; }
  .pdp-divider     { margin: 12px 0; }
  .pdp-label       { margin-bottom: 8px; }
  .pdp-sizes       { margin-bottom: 14px; gap: 6px; }
  .pdp-colors      { margin-bottom: 14px; }

  /* Qty control — slightly smaller to give add-btn more space */
  .qty-control     { height: 44px; }
  .qty-btn         { width: 36px; }
  .qty-input       { width: 38px; }

  /* Add to Cart — full-width already, ensure comfortable height on mobile */
  .pdp-add-btn { min-height: 48px; font-size: 0.75rem; }

  /* Thumb strip — smaller on mobile */
  .pdp-thumb { width: 60px; height: 74px; }
}

/* --- PDP section: ensure content clears both sticky bars on mobile --- */
@media (max-width: 1023px) {
  .page-product .section {
    padding-bottom: calc(var(--bottom-nav-height) + 76px + env(safe-area-inset-bottom)) !important;
  }
}

/* --- Sticky bar: full-width add-to-cart button on very small screens --- */
@media (max-width: 374px) {
  .pdp-sticky-bar .product-name-mini { display: none; }
  .pdp-sticky-bar .btn-sm { flex: 1; }
}

/* --- Shop toolbar: stack on tiny screens --- */
@media (max-width: 374px) {
  .shop-toolbar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .sort-select  { width: 100%; }
}

/* --- Cart: summary box not sticky on mobile (it's at bottom of page) --- */
@media (max-width: 1023px) {
  .cart-summary-box { position: static; margin-top: 24px; }
}

/* --- Footer: single column on tiny screens --- */
@media (max-width: 479px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
