/* ============================================================
   ELITEFITS — PREMIUM JERSEY ATELIER
   Design System: Quiet Luxury Light Theme
   Palette: Off-White #FAFAFA / Charcoal #1A1A1A / Gold-Accent #B8860B / Warm-Grey #6B6B6B
   Typography: Cormorant (Display) + Geist/Montserrat (Body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Montserrat:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400..900&family=Oswald:wght@200..700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Rubik+Mono+One&family=Share+Tech+Mono&family=Teko:wght@300..700&display=swap');

/* ---- CSS Variables — Light Theme ---- */
:root {
  --black: #1A1A1A;
  --bg-dark: #F7F5F2;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F3F1EE;
  --gold: #B8860B;
  --gold-light: #D4A017;
  --gold-dim: rgba(184, 134, 11, 0.10);
  --white: #FFFFFF;
  --off-white: #1A1A1A;
  --text-primary: #1A1A1A;
  --text-muted: #6B6B6B;
  --text-dim: #A0A0A0;
  --border-dark: rgba(0, 0, 0, 0.09);
  --border-gold: rgba(184, 134, 11, 0.35);
  --shadow-gold: 0 0 40px rgba(184, 134, 11, 0.08);
  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Base Reset ---- */
*, *::before, *::after {
  box-sizing: border-box;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: #FAFAFA;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden;
}

/* ---- Material Symbols ---- */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  font-size: 20px;
}

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.font-display {
  font-family: 'Cormorant', serif;
}
.font-body {
  font-family: 'Montserrat', sans-serif;
}

/* ============================================================
   HEADER / NAV — Clean White Bar
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 64px;
  height: 72px;
  background: rgba(250, 250, 250, 0.95);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--border-dark);
  transition: all 400ms var(--transition-smooth);
}

@media (max-width: 768px) {
  .site-header { padding: 0 20px; height: 64px; }
}

.site-header.scrolled {
  background: rgba(250, 250, 250, 0.98);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cormorant', serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text-primary);
  text-transform: uppercase;
  cursor: pointer;
  transition: color 300ms ease;
}

.site-logo::before {
  content: "";
  display: block;
  width: 48px;
  height: 35px;
  flex: 0 0 48px;
  background: url("../brand/elitefits-mark-color.svg?v=20260729-2") center / contain no-repeat;
}

.home-page .site-header:not(.scrolled) .site-logo::before {
  background-image: url("../brand/elitefits-mark-light.svg?v=20260729-2");
}

.site-logo:hover {
  color: var(--gold);
}

.header-btn {
  color: var(--text-muted);
  background: transparent;
  border: none;
  padding: 8px;
  transition: color 200ms ease;
  cursor: pointer;
}

.header-btn:hover {
  color: var(--text-primary);
}

/* ============================================================
   NAVIGATION DRAWER
   ============================================================ */
.menu-drawer {
  background: #FAFAFA;
  border-right: 1px solid var(--border-dark);
  transform: translateX(-100%);
  transition: transform 400ms var(--transition-smooth);
  pointer-events: none;
  touch-action: pan-y;
  will-change: transform;
}

.menu-drawer.open {
  transform: translateX(0);
  pointer-events: auto;
}

.drawer-nav-link {
  font-family: 'Cormorant', serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  transition: all 300ms ease;
  position: relative;
  display: block;
  padding: 8px 0;
}

.drawer-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 300ms var(--transition-smooth);
}

.drawer-nav-link:hover {
  color: var(--text-primary);
  padding-left: 12px;
}

.drawer-nav-link:hover::after {
  width: 100%;
}

/* ============================================================
   CART DRAWER
   ============================================================ */
.cart-overlay {
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  transition: opacity 400ms ease-in-out;
}

.cart-drawer {
  background: #FAFAFA;
  border-left: 1px solid var(--border-dark);
  transform: translateX(100%);
  transition: transform 400ms var(--transition-smooth);
  pointer-events: none;
  touch-action: pan-y;
  will-change: transform;
}

.cart-drawer.open {
  transform: translateX(0);
  pointer-events: auto;
}

.menu-drawer.is-dragging,
.cart-drawer.is-dragging {
  transition: none !important;
  user-select: none;
}

.menu-drawer.is-settling,
.cart-drawer.is-settling {
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* ============================================================
   HERO SECTION — Cinematic Full-Screen
   ============================================================ */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.65) contrast(1.1);
  transform-origin: center top;
  animation: subtleFloat 20s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
}

@keyframes subtleFloat {
  0% { transform: scale(1.0) translateY(0); filter: brightness(0.60) contrast(1.1); }
  50% { transform: scale(1.06) translateY(0); filter: brightness(0.75) contrast(1.15); }
  100% { transform: scale(1.12) translateY(0); filter: brightness(0.50) contrast(1.1); }
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.25) 50%,
    transparent 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 20px 80px;
  max-width: 900px;
}

@media (min-width: 768px) {
  .hero-content { padding: 0 64px 100px; }
}

.hero-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s var(--transition-smooth) forwards;
}

.hero-title {
  font-family: 'Cormorant', serif;
  font-size: clamp(40px, 10vw, 96px);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  text-transform: uppercase;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.9s 0.5s var(--transition-smooth) forwards;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 42px;
    line-height: 1.05;
    margin-bottom: 24px;
  }
  .hero-content {
    padding: 0 20px 60px;
  }
  .hero-cta {
    padding: 14px 28px;
    font-size: 9px;
  }
  .product-card-name {
    font-size: 15px !important;
  }
  .product-card-price {
    font-size: 17px !important;
  }
}

.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.7);
  padding: 18px 40px;
  cursor: pointer;
  transition: all 300ms var(--transition-smooth);
  opacity: 0;
  animation: fadeUp 0.9s 0.8s var(--transition-smooth) forwards;
}

.hero-cta:hover {
  background: rgba(255,255,255,0.1);
  border-color: #FFFFFF;
  letter-spacing: 0.3em;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   MARQUEE TICKER
   ============================================================ */
.marquee-wrapper {
  background: var(--text-primary);
  overflow: hidden;
  padding: 12px 0;
  position: relative;
}

.marquee-track {
  display: flex;
  gap: 0;
  animation: marqueeScroll 30s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #FAFAFA;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.marquee-item::after {
  content: '·';
  font-size: 16px;
  opacity: 0.4;
}

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-bar {
  display: flex;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-bottom: 1px solid var(--border-dark);
  padding-bottom: 0;
}

.filter-bar::-webkit-scrollbar { display: none; }

.filter-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 14px 20px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 250ms ease;
  margin-bottom: -1px;
}

.filter-btn:hover {
  color: var(--text-primary);
}

.filter-btn.active {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

/* Team sub-filter */
.team-filter-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--border-dark);
  padding: 8px 16px;
  cursor: pointer;
  transition: all 200ms ease;
}

.team-filter-btn:hover,
.team-filter-btn.active {
  color: var(--text-primary);
  border-color: var(--text-muted);
  background: rgba(0,0,0,0.04);
}

/* ============================================================
   PRODUCT CARDS — Clean Minimal Light
   ============================================================ */
.product-card {
  position: relative;
  cursor: pointer;
  background: #FFFFFF;
  border: 1px solid var(--border-dark);
  transition: all 400ms var(--transition-smooth);
  overflow: hidden;
}

.product-card:hover {
  border-color: rgba(0,0,0,0.18);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

.product-card-image-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #F3F1EE;
}

.product-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--transition-smooth);
}

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

/* Badge overlays */
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-family: 'Montserrat', sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 10px;
}

.product-badge.gold {
  background: var(--gold);
  color: #FFFFFF;
}

.product-badge.dark {
  background: rgba(26,26,26,0.85);
  color: #FFFFFF;
  border: none;
}

/* Quick view overlay on hover */
.product-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  transform: translateY(100%);
  transition: transform 350ms var(--transition-smooth);
}

.product-card:hover .product-card-overlay {
  transform: translateY(0);
}

.product-card-quick-btn {
  display: block;
  width: 100%;
  padding: 10px 20px;
  background: rgba(255,255,255,0.95);
  color: var(--text-primary);
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background 200ms ease;
}

.product-card-quick-btn:hover {
  background: #FFFFFF;
}

/* Product card info */
.product-card-info {
  padding: 14px 16px 18px;
  position: relative;
  z-index: 2;
}

.product-card-league {
  font-family: 'Montserrat', sans-serif;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 5px;
  display: block;
}

.product-card-name {
  font-family: 'Cormorant', serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 6px;
}

.product-card-team {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.product-card-price {
  font-family: 'Cormorant', serif;
  font-size: 21px;
  font-weight: 500;
  color: var(--text-primary);
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Cormorant', serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1.05;
}

/* ============================================================
   MANIFESTO SECTION
   ============================================================ */
.manifesto-section {
  background: #F7F5F2;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  position: relative;
  overflow: hidden;
}

.manifesto-quote {
  font-family: 'Cormorant', serif;
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: var(--text-primary);
  text-align: center;
}

.manifesto-rule {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  background: #FFFFFF;
}

.stat-item {
  text-align: center;
  padding: 40px 20px;
  border-right: 1px solid var(--border-dark);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: 'Cormorant', serif;
  font-size: 44px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
  display: block;
}

.stat-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 8px;
  display: block;
}

/* ============================================================
   NEWSLETTER SECTION
   ============================================================ */
.newsletter-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.2);
  color: var(--text-primary);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 0;
  outline: none;
  width: 100%;
  transition: border-color 300ms ease;
}

.newsletter-input::placeholder {
  color: var(--text-dim);
}

.newsletter-input:focus {
  border-bottom-color: var(--text-primary);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #F7F5F2;
  border-top: 1px solid var(--border-dark);
  padding: 60px 20px 40px;
}

@media (min-width: 768px) {
  .site-footer { padding: 60px 64px 40px; }
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Cormorant', serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.footer-logo::before {
  content: "";
  display: block;
  width: 58px;
  height: 42px;
  flex: 0 0 58px;
  background: url("../brand/elitefits-mark-color.svg?v=20260729-2") center / contain no-repeat;
}

.account-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  font-family: 'Cormorant', serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-decoration: none;
}

.account-brand::before {
  content: "";
  display: block;
  width: 54px;
  height: 39px;
  flex: 0 0 54px;
  background: url("../brand/elitefits-mark-color.svg?v=20260729-2") center / contain no-repeat;
}

@media (max-width: 768px) {
  .site-logo {
    gap: 0;
    font-size: 0;
    letter-spacing: 0;
  }

  .site-logo::before {
    width: 43px;
    height: 31px;
    flex-basis: 43px;
  }

  .account-brand {
    gap: 8px;
    font-size: 17px;
    letter-spacing: 0.12em;
  }

  .account-brand::before {
    width: 44px;
    height: 32px;
    flex-basis: 44px;
  }
}

/* ============================================================
   WHATSAPP SUPPORT
   ============================================================ */
.whatsapp-fab {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 8px 18px 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: #171714;
  color: #F7F4EE;
  text-decoration: none;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  animation: whatsappFabEnter 520ms var(--transition-smooth) both;
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.whatsapp-fab:hover {
  transform: translateY(-3px);
  background: #22221F;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.whatsapp-fab:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.4);
  outline-offset: 4px;
}

.whatsapp-fab-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
}

.whatsapp-fab-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.whatsapp-fab-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  white-space: nowrap;
}

.whatsapp-fab-copy small {
  color: #B7B4AC;
  font: 600 8px/1 'Montserrat', sans-serif;
  letter-spacing: 0.2em;
}

.whatsapp-fab-copy strong {
  color: #F7F4EE;
  font: 600 10px/1 'Montserrat', sans-serif;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

@keyframes whatsappFabEnter {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 768px) {
  .whatsapp-fab {
    right: 16px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    width: 56px;
    min-height: 56px;
    padding: 7px;
    justify-content: center;
  }

  .whatsapp-fab-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .whatsapp-fab-copy {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .product-page .whatsapp-fab {
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-fab {
    animation: none;
    transition: none;
  }
}

.footer-tagline {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 200ms ease;
}

.footer-link:hover {
  color: var(--text-primary);
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   IMAGE ZOOM
   ============================================================ */
.mobile-product-gallery { display: none; }

.desktop-product-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.image-zoom-container { overflow: hidden; }
.image-zoom-container img {
  transition: transform 0.6s var(--transition-smooth);
}
.image-zoom-container:hover img {
  transform: scale(1.04);
}

@media (max-width: 767px) {
  .mobile-product-gallery {
    position: relative;
    display: block;
    overflow: hidden;
    background: #F3F1EE;
  }

  .desktop-product-gallery { display: none; }

  .mobile-product-gallery-track {
    display: flex;
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-product-gallery-slide {
    flex: 0 0 100%;
    margin: 0;
    aspect-ratio: 3 / 4;
    background: #F3F1EE;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .mobile-product-gallery-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
  }

  .mobile-product-gallery-status {
    position: absolute;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 32px;
    padding: 8px 10px;
    background: rgba(250, 250, 250, 0.82);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
  }

  .mobile-product-gallery-dots {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .mobile-product-gallery-dot {
    width: 6px;
    height: 6px;
    min-width: 6px;
    min-height: 6px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(26, 26, 26, 0.28);
    transition: width 220ms var(--transition-smooth), background-color 160ms ease;
  }

  .mobile-product-gallery-dot.is-active {
    width: 20px;
    background: var(--gold);
  }

  #mobile-product-gallery-count {
    color: var(--text-primary);
    font: 600 8px/1 'Montserrat', sans-serif;
    letter-spacing: 0.16em;
  }
}

@media (hover: none), (pointer: coarse) {
  button:not(:disabled),
  .hero-cta,
  .product-card,
  .whatsapp-fab {
    -webkit-tap-highlight-color: transparent;
    transform-origin: center;
  }

  button:not(:disabled):active,
  .hero-cta:active,
  .whatsapp-fab:active {
    transform: scale(0.97);
    transition: transform 100ms ease-out;
  }

  .product-card:active {
    transform: scale(0.992);
    transition-duration: 100ms;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .mobile-product-gallery-status,
  .mobile-purchase-bar {
    background: #FAFAFA !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .cart-overlay,
  #drawer-overlay {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

@media (prefers-contrast: more) {
  :root { --border-dark: rgba(0, 0, 0, 0.28); }
  .mobile-product-gallery-status { border: 1px solid currentColor; }
}

/* ============================================================
   SCROLLBARS
   ============================================================ */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.custom-scrollbar::-webkit-scrollbar { width: 2px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: var(--border-dark); }

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.studio-panel {
  background: #FFFFFF;
  border: 1px solid var(--border-dark);
  padding: 28px;
}

.size-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border-dark);
  padding: 10px 18px;
  cursor: pointer;
  transition: all 200ms ease;
}

.size-btn:hover,
.size-btn.active {
  border-color: var(--text-primary);
  color: var(--text-primary);
  background: rgba(0,0,0,0.04);
}

.color-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 200ms ease, transform 200ms ease;
}

.color-dot.active,
.color-dot:hover {
  border-color: var(--text-primary);
  transform: scale(1.1);
}

.add-to-bag-btn {
  width: 100%;
  padding: 18px;
  background: var(--text-primary);
  color: #FFFFFF;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 300ms var(--transition-smooth);
}

.add-to-bag-btn:hover {
  background: #333333;
  letter-spacing: 0.32em;
}

/* ============================================================
   CUSTOMIZATION STUDIO
   ============================================================ */
.jersey-preview {
  position: relative;
  background: var(--bg-dark);
  border: 1px solid var(--border-dark);
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
}

.customizer-jersey-card {
  width: 150px;
  height: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border-radius: 8px;
  overflow: hidden;
  transition: all 300ms var(--transition-smooth);
}

.customizer-collar {
  position: absolute;
  top: 0;
  width: 52px;
  height: 16px;
  border-bottom: 1px solid var(--border-dark);
  border-left: 1px solid var(--border-dark);
  border-right: 1px solid var(--border-dark);
  border-radius: 0 0 50% 50%;
  background: var(--bg-dark);
}

.customizer-seams {
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 12px;
}

.customizer-seam {
  width: 22px;
  height: 1px;
  background: var(--border-dark);
  opacity: 0.6;
}

.customizer-preview-name {
  font-size: 10px;
  color: var(--text-primary);
  letter-spacing: 0.3em;
  margin-top: 10px;
  text-align: center;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.8;
}

.customizer-preview-number {
  font-size: 64px;
  line-height: 1;
  color: var(--gold);
  margin-top: 8px;
  font-weight: 700;
}

.customizer-bottom-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.customizer-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-dark);
  padding: 10px 0;
  color: var(--text-primary);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  outline: none;
  transition: border-color 300ms ease;
}

.customizer-input:focus {
  border-bottom-color: var(--gold);
}

.customizer-input::placeholder {
  color: var(--text-dim);
}

.customizer-select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-dark);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  outline: none;
  cursor: pointer;
  border-radius: 4px;
  transition: all 300ms var(--transition-smooth);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'><path d='M1 1L5 5L9 1' stroke='%236B6B6B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.customizer-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-dim);
}


/* ============================================================
   CHECKOUT PAGE
   ============================================================ */
.checkout-input {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid var(--border-dark);
  color: var(--text-primary);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 14px 16px;
  outline: none;
  transition: border-color 300ms ease;
}

.checkout-input:focus {
  border-color: var(--text-primary);
}

.checkout-input::placeholder {
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================================
   LOADING STATE
   ============================================================ */
.loading-skeleton {
  background: linear-gradient(90deg, #F0EEEC 25%, #E8E6E3 50%, #F0EEEC 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s infinite;
}

@keyframes skeleton {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   AUTH MODAL
   ============================================================ */
.auth-modal-card {
  background: #FAFAFA;
  border: 1px solid var(--border-dark);
  padding: 48px 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

/* ============================================================
   REDUCED MOTION SUPPORT
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .hero-image { animation: none; transform: scale(1); }
  .marquee-track { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  body, html {
    overflow-x: hidden;
    position: relative;
    width: 100%;
  }

  .filter-btn {
    padding: 12px 14px;
    font-size: 9px;
  }
  
  .header-btn {
    padding: 12px;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .customizer-preview-col {
    order: -1;
    margin-bottom: 24px;
  }

  .hero-section {
    min-height: 75svh;
  }
  
  .hero-content {
    padding: 0 16px 40px;
  }
  
  .hero-title {
    font-size: clamp(28px, 9vw, 40px) !important;
    line-height: 1.1;
    margin-bottom: 20px;
  }
  
  .hero-title br {
    display: none !important;
  }
  
  .hero-cta {
    padding: 12px 24px;
    font-size: 9px;
  }

  .section-title {
    font-size: 24px !important;
  }

  .px-5 {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  
  .customizer-select {
    font-size: 10px;
    padding: 10px 12px;
  }
  
  .customizer-input {
    font-size: 10px;
    padding: 8px 0;
    border-radius: 0;
    -webkit-appearance: none;
  }
}
