/*
Theme Name: Puzzok Mobile-First
Theme URI: https://puzzok.com
Author: Puzzok Team
Description: Mobile-first, conversion-optimized WordPress + WooCommerce theme for Puzzok. Designed for 3 brands (FIFA, Snoopy, Puzzok Originals) × 4 categories (Puzzles, 3D Balls, LED Lights, Wall Art). SEO-optimized, WCAG 2.1 AA accessible, Core Web Vitals optimized.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: puzzok
*/

/* ============================================================
   1. DESIGN TOKENS — CSS Custom Properties
   ============================================================ */
:root {
  /* --- Brand Colors --- */
  --brand-fifa:       #0F1B33;
  --brand-snoopy:     #E2352C;
  --brand-originals:  #C47C2B;
  --brand-accent:     #F5A623;

  /* --- Neutral Palette --- */
  --bg-page:          #FAFAF8;
  --bg-surface:       #FFFFFF;
  --bg-subtle:        #F3F3F0;
  --bg-muted:         #EAEAE5;

  /* --- Text --- */
  --text-primary:     #1A1A1C;
  --text-secondary:   #5C5C60;
  --text-muted:       #8E8E93;
  --text-inverse:     #FFFFFF;

  /* --- Borders --- */
  --border-light:     #E5E5E0;
  --border-medium:    #D4D4CE;

  /* --- Interactive --- */
  --color-cta:        #0F1B33;
  --color-cta-hover:  #1A2F55;
  --color-cta-text:   #FFFFFF;
  --color-link:       #0F1B33;
  --color-success:    #2D8B4E;
  --color-warning:    #F5A623;
  --color-error:      #E2352C;

  /* --- Typography --- */
  --font-display:     'Playfair Display', Georgia, serif;
  --font-body:        'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs:     0.75rem;     /* 12px */
  --font-size-sm:     0.875rem;    /* 14px */
  --font-size-base:   1rem;        /* 16px */
  --font-size-lg:     1.125rem;    /* 18px */
  --font-size-xl:     1.25rem;     /* 20px */
  --font-size-2xl:    1.5rem;      /* 24px */
  --font-size-3xl:    1.875rem;    /* 30px */
  --font-size-4xl:    2.25rem;     /* 36px */
  --font-size-5xl:    3rem;        /* 48px */
  --line-height-tight: 1.15;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* --- Spacing (4px grid) --- */
  --space-1:   0.25rem;   /*  4px */
  --space-2:   0.5rem;    /*  8px */
  --space-3:   0.75rem;   /* 12px */
  --space-4:   1rem;      /* 16px */
  --space-5:   1.25rem;   /* 20px */
  --space-6:   1.5rem;    /* 24px */
  --space-8:   2rem;      /* 32px */
  --space-10:  2.5rem;    /* 40px */
  --space-12:  3rem;      /* 48px */
  --space-16:  4rem;      /* 64px */
  --space-20:  5rem;      /* 80px */
  --space-24:  6rem;      /* 96px */

  /* --- Layout --- */
  --max-width:     1440px;
  --content-width: 1200px;
  --narrow-width:  720px;
  --header-height: 56px;
  --header-height-desktop: 64px;

  /* --- Shadows --- */
  --shadow-sm:  0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.08);
  --shadow-xl:  0 20px 60px rgba(0,0,0,0.12);

  /* --- Radius --- */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  /* --- Transitions --- */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   2. RESET & BASE — Mobile-First
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover { color: var(--color-cta-hover); }

button, .btn {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  background: none;
}

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: var(--line-height-tight);
  color: var(--text-primary);
  font-weight: var(--font-weight-bold);
}

h1 { font-size: var(--font-size-3xl); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }

@media (min-width: 768px) {
  h1 { font-size: var(--font-size-4xl); }
  h2 { font-size: var(--font-size-3xl); }
  h3 { font-size: var(--font-size-2xl); }
}

@media (min-width: 1024px) {
  h1 { font-size: var(--font-size-5xl); }
  h2 { font-size: var(--font-size-4xl); }
}

p { margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

/* ============================================================
   3. UTILITY CLASSES
   ============================================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 768px)  { .container { padding: 0 var(--space-6); } }
@media (min-width: 1024px) { .container { padding: 0 var(--space-8); } }

.container--narrow {
  max-width: var(--narrow-width);
}

.section {
  padding: var(--space-12) 0;
}

@media (min-width: 768px)  { .section { padding: var(--space-16) 0; } }
@media (min-width: 1024px) { .section { padding: var(--space-20) 0; } }

.section--tight { padding: var(--space-8) 0; }
@media (min-width: 768px) { .section--tight { padding: var(--space-12) 0; } }

.section__header {
  text-align: center;
  margin-bottom: var(--space-8);
}

@media (min-width: 768px) { .section__header { margin-bottom: var(--space-12); } }

.section__title {
  font-family: var(--font-display);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-2);
}

@media (min-width: 768px)  { .section__title { font-size: var(--font-size-3xl); } }
@media (min-width: 1024px) { .section__title { font-size: var(--font-size-4xl); } }

.section__subtitle {
  font-family: var(--font-body);
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================================
   4. BUTTONS — Large touch targets (min 44px)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: var(--space-3) var(--space-6);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-align: center;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.btn--primary {
  background: var(--color-cta);
  color: var(--color-cta-text);
}
.btn--primary:hover,
.btn--primary:active {
  background: var(--color-cta-hover);
  color: var(--color-cta-text);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--color-cta);
  border: 1.5px solid var(--color-cta);
}
.btn--outline:hover,
.btn--outline:active {
  background: var(--color-cta);
  color: var(--color-cta-text);
}

.btn--white {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1.5px solid var(--border-light);
}
.btn--white:hover,
.btn--white:active {
  border-color: var(--text-primary);
}

.btn--brand-fifa {
  background: var(--brand-fifa);
  color: #fff;
}
.btn--brand-snoopy {
  background: var(--brand-snoopy);
  color: #fff;
}
.btn--brand-originals {
  background: var(--brand-originals);
  color: #fff;
}

.btn--lg {
  min-height: 56px;
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-size-lg);
  border-radius: var(--radius-md);
}

.btn--sm {
  min-height: 40px;
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-sm);
}

.btn--block { width: 100%; }

.btn--icon {
  min-height: 44px;
  min-width: 44px;
  padding: var(--space-2);
  border-radius: var(--radius-full);
}

/* ============================================================
   5. HEADER — Sticky, Mobile-First
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  height: var(--header-height);
  transition: box-shadow var(--transition-normal);
}

.site-header--scrolled {
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.header__logo {
  flex-shrink: 0;
}

.header__logo a {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.header__logo-img {
  height: 32px;
  width: auto;
}

/* --- Desktop Navigation --- */
.main-nav { display: none; }

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-1);
  }

  .main-nav__list {
    display: flex;
    align-items: center;
    gap: var(--space-1);
  }

  .main-nav__link {
    display: flex;
    align-items: center;
    padding: var(--space-2) var(--space-3);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
  }

  .main-nav__link:hover,
  .main-nav__link:active {
    background: var(--bg-subtle);
    color: var(--text-primary);
  }

  /* Brand-accented nav items */
  .main-nav__link--fifa:hover { background: rgba(15,27,51,0.06); color: var(--brand-fifa); }
  .main-nav__link--snoopy:hover { background: rgba(226,53,44,0.06); color: var(--brand-snoopy); }
  .main-nav__link--originals:hover { background: rgba(196,124,43,0.06); color: var(--brand-originals); }
}

/* --- Header Actions --- */
.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.header__action-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--text-primary);
  border-radius: var(--radius-full);
  transition: background var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.header__action-btn:hover,
.header__action-btn:active {
  background: var(--bg-subtle);
}

.header__cart-count {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-snoopy);
  color: #fff;
  font-size: 10px;
  font-weight: var(--font-weight-bold);
  border-radius: var(--radius-full);
  padding: 0 4px;
}

/* --- Mobile Hamburger --- */
.mobile-menu-toggle {
  display: flex;
}

@media (min-width: 1024px) {
  .mobile-menu-toggle { display: none; }
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--radius-sm);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-normal);
  transform-origin: center;
}

.hamburger--active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger--active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger--active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Mobile Menu Panel --- */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-surface);
  z-index: 999;
  overflow-y: auto;
  padding: var(--space-4);
  animation: slideDown var(--transition-normal) ease;
}

.mobile-menu--open { display: block; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mobile-menu__brands {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.mobile-menu__brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-3);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
  min-height: 80px;
  justify-content: center;
}

.mobile-menu__brand-card--fifa     { background: rgba(15,27,51,0.04); color: var(--brand-fifa); }
.mobile-menu__brand-card--snoopy   { background: rgba(226,53,44,0.04); color: var(--brand-snoopy); }
.mobile-menu__brand-card--originals { background: rgba(196,124,43,0.04); color: var(--brand-originals); }

.mobile-menu__brand-card span {
  font-family: var(--font-display);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
}

.mobile-menu__brand-card small {
  font-family: var(--font-body);
  font-size: var(--font-size-xs);
  opacity: 0.7;
}

.mobile-menu__brand-card:active { transform: scale(0.97); }

.mobile-menu__section {
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-light);
}

.mobile-menu__section-title {
  font-family: var(--font-body);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}

.mobile-menu__link {
  display: flex;
  align-items: center;
  padding: var(--space-3) 0;
  font-size: var(--font-size-base);
  color: var(--text-primary);
  font-weight: var(--font-weight-medium);
  transition: color var(--transition-fast);
}

.mobile-menu__link:active { color: var(--color-cta-hover); }

/* --- Cart Drawer --- */
.cart-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 2000;
}

.cart-drawer-overlay--open { display: block; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-surface);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  display: flex;
  flex-direction: column;
}

.cart-drawer--open { transform: translateX(0); }

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4);
  border-bottom: 1px solid var(--border-light);
}

.cart-drawer__title {
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4);
}

.cart-drawer__footer {
  padding: var(--space-4);
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.cart-drawer__total {
  display: flex;
  justify-content: space-between;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
}

/* ============================================================
   6. HERO — Brand Discovery Cards
   ============================================================ */
.hero {
  padding: var(--space-8) 0 var(--space-12);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
}

@media (min-width: 768px)  { .hero { padding: var(--space-12) 0 var(--space-16); } }
@media (min-width: 1024px) { .hero { padding: var(--space-16) 0 var(--space-20); } }

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

@media (min-width: 768px)  { .hero__inner { gap: var(--space-8); } }

.hero__headline {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.hero__headline h1 {
  font-family: var(--font-display);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  margin-bottom: var(--space-3);
}

@media (min-width: 768px)  { .hero__headline h1 { font-size: var(--font-size-3xl); } }
@media (min-width: 1024px) { .hero__headline h1 { font-size: var(--font-size-5xl); } }

.hero__headline p {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

.hero__tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.hero__tagline-dot {
  width: 4px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 50%;
}

/* --- Brand Selector Cards --- */
.brand-selector {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .brand-selector {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .brand-selector {
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-4);
  }
}

.brand-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: var(--space-6);
  min-height: 180px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition: transform var(--transition-normal);
  -webkit-tap-highlight-color: transparent;
}

.brand-card:active { transform: scale(0.98); }

@media (min-width: 768px) {
  .brand-card { min-height: 240px; padding: var(--space-8); }
}

@media (min-width: 1024px) {
  .brand-card:hover { transform: translateY(-4px); }
  .brand-card:hover .brand-card__arrow { transform: translateX(4px); }
}

.brand-card--fifa {
  background: linear-gradient(135deg, #0F1B33 0%, #1A3356 50%, #0F1B33 100%);
  color: #fff;
}

.brand-card--snoopy {
  background: linear-gradient(135deg, #C72A23 0%, #E2352C 50%, #C72A23 100%);
  color: #fff;
}

.brand-card--originals {
  background: linear-gradient(135deg, #A0681E 0%, #C47C2B 50%, #A0681E 100%);
  color: #fff;
}

.brand-card__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-3);
  line-height: 1;
}

.brand-card__name {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-1);
}

@media (min-width: 768px) { .brand-card__name { font-size: var(--font-size-2xl); } }

.brand-card__desc {
  font-size: var(--font-size-sm);
  opacity: 0.8;
  margin-bottom: var(--space-4);
  font-family: var(--font-body);
}

.brand-card__arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  opacity: 0.9;
  transition: transform var(--transition-normal);
}

/* ============================================================
   7. BRAND × CATEGORY MATRIX
   ============================================================ */
.matrix {
  background: var(--bg-page);
}

.matrix__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .matrix__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
}

@media (min-width: 1024px) {
  .matrix__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.matrix__col {}

.matrix__col-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--border-light);
}

.matrix__col-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-lg);
}

.matrix__col-icon--puzzles   { background: rgba(124,58,237,0.1); }
.matrix__col-icon--3d        { background: rgba(20,184,166,0.1); }
.matrix__col-icon--led       { background: rgba(245,158,11,0.1); }
.matrix__col-icon--wall      { background: rgba(239,68,68,0.1); }

.matrix__col-title {
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
}

.matrix__cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-2);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  text-decoration: none;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.matrix__cell:active { transform: scale(0.98); background: var(--bg-subtle); }

@media (min-width: 1024px) {
  .matrix__cell:hover {
    border-color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
  }
}

.matrix__cell--empty {
  opacity: 0.4;
  pointer-events: none;
}

.matrix__cell-brand {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}

.matrix__cell-count {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.matrix__cell-price {
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  font-weight: var(--font-weight-medium);
}

.matrix__cell--fifa     .matrix__cell-brand { color: var(--brand-fifa); }
.matrix__cell--snoopy   .matrix__cell-brand { color: var(--brand-snoopy); }
.matrix__cell--originals .matrix__cell-brand { color: var(--brand-originals); }

/* ============================================================
   8. PRODUCT CARDS — Conversion-Optimized
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
  }
}

/* Single product card */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
  -webkit-tap-highlight-color: transparent;
}

.product-card:active { transform: scale(0.98); }

@media (min-width: 1024px) {
  .product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
  }
}

.product-card__image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-subtle);
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

@media (min-width: 1024px) {
  .product-card:hover .product-card__image img {
    transform: scale(1.05);
  }
}

/* Quick-add button overlay */
.product-card__quick-add {
  position: absolute;
  bottom: var(--space-3);
  right: var(--space-3);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition-normal);
  font-size: var(--font-size-lg);
}

@media (max-width: 1023px) {
  .product-card__quick-add {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 1024px) {
  .product-card:hover .product-card__quick-add {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card__badge {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  padding: 2px 8px;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  color: #fff;
  border-radius: var(--radius-full);
  z-index: 1;
}

.product-card__badge--new    { background: var(--color-success); }
.product-card__badge--sale   { background: var(--color-error); }
.product-card__badge--fifa   { background: var(--brand-fifa); }
.product-card__badge--snoopy { background: var(--brand-snoopy); }

.product-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-3);
}

@media (min-width: 768px) { .product-card__body { padding: var(--space-4); } }

.product-card__brand {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-card__brand--fifa     { color: var(--brand-fifa); }
.product-card__brand--snoopy   { color: var(--brand-snoopy); }
.product-card__brand--originals { color: var(--brand-originals); }

.product-card__title {
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 768px) {
  .product-card__title { font-size: var(--font-size-base); }
}

.product-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
}

.product-card__price--sale {
  color: var(--color-error);
}

.product-card__price-old {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-normal);
  color: var(--text-muted);
  text-decoration: line-through;
}

/* ============================================================
   9. SINGLE PRODUCT PAGE
   ============================================================ */
.single-product {
  padding: var(--space-6) 0;
}

@media (min-width: 768px) { .single-product { padding: var(--space-8) 0; } }

.product-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .product-main {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

@media (min-width: 1024px) {
  .product-main {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-12);
  }
}

/* Image Gallery (Mobile: Swipe) */
.product-gallery {
  position: relative;
}

.product-gallery__main {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-subtle);
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery__thumbs {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: var(--space-1);
}

.product-gallery__thumbs::-webkit-scrollbar { display: none; }

.product-gallery__thumb {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.product-gallery__thumb--active {
  border-color: var(--text-primary);
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product Info */
.product-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .product-info {
    position: sticky;
    top: calc(var(--header-height) + var(--space-4));
  }
}

.product-info__brand {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  width: fit-content;
}

.product-info__brand--fifa     { background: rgba(15,27,51,0.08);  color: var(--brand-fifa); }
.product-info__brand--snoopy   { background: rgba(226,53,44,0.08); color: var(--brand-snoopy); }
.product-info__brand--originals { background: rgba(196,124,43,0.08); color: var(--brand-originals); }

.product-info__title {
  font-family: var(--font-display);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
}

@media (min-width: 768px) { .product-info__title { font-size: var(--font-size-3xl); } }

.product-info__price {
  font-family: var(--font-display);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
}

.product-info__short-desc {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

/* Sticky Add-to-Cart Bar (Mobile) */
.sticky-atc {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  padding: var(--space-3) var(--space-4);
  padding-bottom: max(var(--space-3), env(safe-area-inset-bottom));
  z-index: 100;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  transform: translateY(100%);
  transition: transform var(--transition-normal);
}

.sticky-atc--visible { transform: translateY(0); }

@media (min-width: 768px) {
  .sticky-atc { display: none; }
}

.sticky-atc__price {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  white-space: nowrap;
}

.sticky-atc .btn--primary {
  flex: 1;
  min-height: 48px;
}

/* Quantity Selector */
.qty-selector {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 48px;
}

.qty-selector button {
  width: 44px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-lg);
  color: var(--text-primary);
  transition: background var(--transition-fast);
}

.qty-selector button:active { background: var(--bg-subtle); }

.qty-selector input {
  width: 48px;
  height: 100%;
  border: none;
  text-align: center;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  font-family: var(--font-body);
  -moz-appearance: textfield;
}

.qty-selector input::-webkit-inner-spin-button,
.qty-selector input::-webkit-outer-spin-button { -webkit-appearance: none; }

/* Trust Badges */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-light);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.trust-badge__icon {
  font-size: var(--font-size-lg);
  flex-shrink: 0;
}

/* ============================================================
   10. PRODUCT DESCRIPTION TABS (Mobile: Accordion)
   ============================================================ */
.product-tabs {
  margin-top: var(--space-8);
}

@media (min-width: 1024px) {
  .product-tabs { margin-top: var(--space-12); }
}

.tab-accordion { border-top: 1px solid var(--border-light); }

.tab-accordion__item {
  border-bottom: 1px solid var(--border-light);
}

.tab-accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-4) 0;
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  text-align: left;
}

.tab-accordion__trigger:active { color: var(--color-cta-hover); }

.tab-accordion__icon {
  transition: transform var(--transition-normal);
  font-size: var(--font-size-sm);
}

.tab-accordion__item--open .tab-accordion__icon {
  transform: rotate(180deg);
}

.tab-accordion__content {
  display: none;
  padding-bottom: var(--space-6);
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

.tab-accordion__item--open .tab-accordion__content {
  display: block;
}

/* ============================================================
   11. CATEGORY / ARCHIVE PAGES
   ============================================================ */
.archive-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-6) 0;
}

.archive-header__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.archive-header__title {
  font-family: var(--font-display);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-2);
}

@media (min-width: 768px) { .archive-header__title { font-size: var(--font-size-3xl); } }

.archive-header__desc {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  max-width: 560px;
}

/* Category filter chips — horizontal scroll on mobile */
.category-chips {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: var(--space-4) 0;
  margin-bottom: var(--space-2);
}

.category-chips::-webkit-scrollbar { display: none; }

.category-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.category-chip--active {
  background: var(--text-primary);
  color: var(--text-inverse);
  border-color: var(--text-primary);
}

.category-chip:active {
  background: var(--bg-subtle);
}

.category-chip--active:active {
  background: var(--text-primary);
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  padding: var(--space-3) 0;
}

.breadcrumbs a {
  color: var(--text-secondary);
}

.breadcrumbs__sep {
  font-size: var(--font-size-xs);
  opacity: 0.5;
}

/* ============================================================
   12. BRAND SHOWCASE SECTIONS
   ============================================================ */
.brand-showcase {
  position: relative;
  overflow: hidden;
}

.brand-showcase--fifa {
  background: linear-gradient(180deg, #F8F9FB 0%, var(--bg-page) 100%);
  border-top: 3px solid var(--brand-fifa);
}

.brand-showcase--snoopy {
  background: linear-gradient(180deg, #FFF5F5 0%, var(--bg-page) 100%);
  border-top: 3px solid var(--brand-snoopy);
}

.brand-showcase--originals {
  background: linear-gradient(180deg, #FFFBF5 0%, var(--bg-page) 100%);
  border-top: 3px solid var(--brand-originals);
}

.brand-showcase__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

@media (min-width: 768px) {
  .brand-showcase__header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: var(--space-8);
  }
}

.brand-showcase__title {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
}

@media (min-width: 768px) { .brand-showcase__title { font-size: var(--font-size-2xl); } }

.brand-showcase__link {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

/* ============================================================
   13. SOCIAL PROOF / TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-6) 0;
}

.trust-bar__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  text-align: center;
}

@media (min-width: 768px) {
  .trust-bar__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.trust-bar__icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-1);
}

.trust-bar__value {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
}

.trust-bar__label {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

/* ============================================================
   14. ABOUT PAGE
   ============================================================ */
.about-hero {
  text-align: center;
  padding: var(--space-12) 0;
}

.about-hero__title {
  font-family: var(--font-display);
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-4);
}

@media (min-width: 768px) { .about-hero__title { font-size: var(--font-size-4xl); } }

.about-hero__subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-6);
}

.about-story {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 768px) {
  .about-story {
    grid-template-columns: 1fr 1fr;
  }
}

.about-story__image {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-subtle);
}

.about-story__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-story__content h2 {
  margin-bottom: var(--space-4);
}

.about-story__content p {
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

/* ============================================================
   15. CONTACT PAGE
   ============================================================ */
.contact-section {
  max-width: 640px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-group {}

.form-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast);
  -webkit-appearance: none;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--text-primary);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* ============================================================
   16. FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-cta);
  color: rgba(255,255,255,0.7);
  padding: var(--space-12) 0 var(--space-6);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer__brand {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .footer__brand { grid-column: auto; }
}

.footer__logo {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: #fff;
  margin-bottom: var(--space-3);
}

.footer__desc {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-4);
}

.footer__col-title {
  font-family: var(--font-body);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
}

.footer__link {
  display: block;
  padding: var(--space-1) 0;
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,0.7);
  transition: color var(--transition-fast);
}

.footer__link:hover,
.footer__link:active { color: #fff; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  text-align: center;
  font-size: var(--font-size-sm);
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ============================================================
   17. WOOCOMMERCE OVERRIDES
   ============================================================ */
.woocommerce-breadcrumb { display: none; }
.woocommerce-result-count { display: none; }
.woocommerce-ordering { display: none; }

.woocommerce .button,
.woocommerce button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: var(--space-3) var(--space-6);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  background: var(--color-cta);
  color: var(--color-cta-text);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.woocommerce .button:hover,
.woocommerce button.button:hover {
  background: var(--color-cta-hover);
  color: var(--color-cta-text);
}

.woocommerce .quantity .qty {
  min-height: 48px;
  font-size: var(--font-size-base);
}

.woocommerce div.product .product_title {
  font-family: var(--font-display);
  font-size: var(--font-size-2xl);
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-family: var(--font-display);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
}

/* Cart & Checkout */
.woocommerce-cart-form { margin-bottom: var(--space-8); }

.woocommerce table.shop_table {
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* ============================================================
   18. ANIMATIONS & MICRO-INTERACTIONS
   ============================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal--visible {
  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; }

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--bg-subtle) 25%, var(--bg-muted) 50%, var(--bg-subtle) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ============================================================
   19. ACCESSIBILITY
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-color-scheme: dark) {
  /* Keep light theme for brand consistency */
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--text-primary);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}

.skip-link:focus {
  top: var(--space-2);
}

/* ============================================================
   20. PRINT STYLES
   ============================================================ */
@media print {
  .site-header,
  .site-footer,
  .sticky-atc,
  .cart-drawer,
  .cart-drawer-overlay,
  .mobile-menu { display: none !important; }

  body { color: #000; background: #fff; }

  a { color: #000; text-decoration: underline; }
}


/* CHECKOUT TEST */

/* CHECKOUT TEST */

/* ========================================
   21. CHECKOUT — Custom Checkout Design
   ======================================== */

/* -- Container -- */
.checkout-wrapper {
  max-width: 1100px;
  margin: var(--space-8) auto var(--space-16);
  padding: 0 var(--space-4);
}

.woocommerce-notices-wrapper {
  max-width: 1100px;
  margin: var(--space-4) auto 0;
  padding: 0 var(--space-4);
}

/* -- Progress Steps -- */
.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: var(--space-8);
  padding: var(--space-6) var(--space-4);
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.checkout-step {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  opacity: 0.4;
  transition: opacity var(--transition-normal);
}

.checkout-step.active {
  opacity: 1;
}

.checkout-step.completed {
  opacity: 0.65;
}

.checkout-step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-muted);
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  font-weight: 600;
  font-family: var(--font-body);
  transition: all var(--transition-normal);
}

.checkout-step.active .checkout-step__number {
  background: var(--color-cta);
  color: var(--color-cta-text);
}

.checkout-step.completed .checkout-step__number {
  background: var(--color-success);
  color: var(--text-inverse);
}

.checkout-step__label {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
}

@media (max-width: 480px) {
  .checkout-step__label {
    display: none;
  }
  
  .checkout-steps {
    justify-content: center;
    gap: var(--space-3);
  }
}

.checkout-step__connector {
  width: 40px;
  height: 2px;
  background: var(--border-medium);
  margin: 0 var(--space-3);
  transition: background var(--transition-normal);
}

.checkout-step.completed + .checkout-step__connector {
  background: var(--color-success);
}

/* -- Grid Layout -- */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-8);
  align-items: start;
}

@media (max-width: 860px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

/* -- Main Form Area -- */
.checkout-main {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.checkout-section {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  border: 1px solid var(--border-light);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.checkout-section--hidden {
  display: none;
}

/* -- Section Title -- */
.checkout-section__title {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  color: var(--text-primary);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.checkout-section__title svg {
  color: var(--brand-accent);
  flex-shrink: 0;
}

/* -- Field Groups -- */
.checkout-field-group {
  margin-bottom: var(--space-6);
}

.checkout-field-group__heading {
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border-light);
}

/* -- Fields -- */
.checkout-field {
  margin-bottom: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.checkout-field__label {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-primary);
}

.checkout-field__label .required {
  color: var(--color-error);
  margin-left: 2px;
}

.checkout-field__input,
.checkout-field__select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--text-primary);
  background: var(--bg-page);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}

.checkout-field__input:focus,
.checkout-field__select:focus {
  outline: none;
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
  background: var(--bg-surface);
}

.checkout-field__input::placeholder {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

.checkout-field__input--apartment {
  margin-top: calc(-1 * var(--space-2));
  font-size: var(--font-size-sm);
}

.checkout-field__textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  color: var(--text-primary);
  background: var(--bg-page);
  resize: vertical;
  min-height: 64px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.checkout-field__textarea:focus {
  outline: none;
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
  background: var(--bg-surface);
}

.checkout-field__select-wrapper {
  position: relative;
}

.checkout-field__select-wrapper::after {
  content: '';
  position: absolute;
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-secondary);
  border-bottom: 2px solid var(--text-secondary);
  pointer-events: none;
}

.checkout-field__select {
  padding-right: var(--space-8);
  cursor: pointer;
}

/* -- Field Rows -- */
.checkout-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.checkout-field-row--triple {
  grid-template-columns: 2fr 1fr 1fr;
}

.checkout-field-row--promo {
  grid-template-columns: 1fr auto;
  align-items: flex-end;
}

@media (max-width: 480px) {
  .checkout-field-row,
  .checkout-field-row--triple {
    grid-template-columns: 1fr;
  }
  
  .checkout-section {
    padding: var(--space-4);
  }
}

/* -- Buttons -- */
.checkout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.checkout-btn--continue,
.checkout-btn--place-order {
  background: var(--color-cta);
  color: var(--color-cta-text);
  min-width: 160px;
}

.checkout-btn--continue:hover,
.checkout-btn--place-order:hover {
  background: var(--color-cta-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.checkout-btn--place-order {
  font-size: var(--font-size-lg);
  padding: var(--space-4) var(--space-8);
  min-width: 200px;
}

.checkout-btn__total {
  opacity: 0.8;
  font-weight: 400;
  margin-left: var(--space-2);
}

.checkout-btn__total::before {
  content: '· ';
}

.checkout-btn--back {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border-medium);
}

.checkout-btn--back:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.checkout-btn--promo {
  background: var(--bg-muted);
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  padding: var(--space-3) var(--space-4);
  white-space: nowrap;
}

.checkout-btn--promo:hover {
  background: var(--color-cta);
  color: var(--color-cta-text);
}

.checkout-btn-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-light);
}

.checkout-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* -- Sidebar -- */
.checkout-sidebar {
  position: sticky;
  top: 100px;
}

.checkout-sidebar__inner {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: var(--space-6);
}

.checkout-sidebar__title {
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-light);
}

@media (max-width: 860px) {
  .checkout-sidebar {
    position: static;
    order: -1;
  }
}

/* -- Order Items -- */
.order-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  max-height: 320px;
  overflow-y: auto;
}

.order-item {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.order-item__image {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-subtle);
  flex-shrink: 0;
}

.order-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-item__qty {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--color-cta);
  color: var(--color-cta-text);
  font-size: 0.625rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-item__info {
  flex: 1;
  min-width: 0;
}

.order-item__name {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-item__price {
  display: block;
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
  margin-top: 2px;
}

/* -- Promo Code -- */
.promo-code-toggle {
  margin-bottom: var(--space-4);
}

.promo-code-toggle__btn {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-link);
  cursor: pointer;
  padding: 0;
  transition: color var(--transition-fast);
}

.promo-code-toggle__btn:hover {
  color: var(--brand-accent);
}

.promo-code-form {
  margin-top: var(--space-2);
}

/* -- Order Totals -- */
.order-totals {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: var(--space-4);
}

.order-totals__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) 0;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}

.order-totals__row--discount {
  color: var(--color-success);
}

.order-totals__row--total {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: none;
  padding-top: var(--space-3);
  border-top: 2px solid var(--text-primary);
  margin-top: var(--space-2);
}

/* -- Trust Badges -- */
.checkout-trust {
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-light);
}

.checkout-trust__cards {
  margin-bottom: var(--space-3);
}

.checkout-trust__label {
  display: block;
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.checkout-trust__icons {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.checkout-trust__ssl {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-xs);
  color: var(--color-success);
  font-weight: 500;
}

.checkout-secure-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-top: var(--space-6);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
}

.checkout-secure-badge svg {
  color: var(--color-success);
  flex-shrink: 0;
}

/* -- Review Block -- */
.review-block {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
  margin-bottom: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.review-block__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
}

.review-block__label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  min-width: 60px;
}

.review-block__value {
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  text-align: right;
  line-height: 1.4;
}

/* -- Payment Method Cards -- */
.wc_payment_methods {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.wc_payment_method {
  margin: 0;
  padding: 0;
}

.payment_method_card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 2px solid var(--border-medium);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--bg-page);
}

.payment_method_card:hover {
  border-color: var(--border-medium);
  background: var(--bg-surface);
}

.payment_method_card--selected {
  border-color: var(--brand-accent);
  background: var(--bg-surface);
  box-shadow: 0 0 0 1px var(--brand-accent);
}

.payment_method_card__radio {
  margin-top: 2px;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  accent-color: var(--brand-accent);
}

.payment_method_card__content {
  flex: 1;
}

.payment_method_card__label {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.payment_method_card__icons {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.payment_method_card__desc {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-top: var(--space-1);
}

.payment_method_card__body {
  margin-top: var(--space-3);
  display: none;
}

.payment_method_card--selected .payment_method_card__body {
  display: block;
}

/* Card input styling (WooPayments / Stripe) */
.StripeElement,
.wc-stripe-elements-field {
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.StripeElement--focus,
.wc-stripe-elements-field.focused {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
}

.StripeElement--invalid {
  border-color: var(--color-error);
}

/* Hide default WooCommerce elements we're restyling */
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3,
.woocommerce-checkout .woocommerce-additional-fields h3,
.woocommerce-checkout #order_review_heading {
  display: none;
}

.woocommerce-checkout .col2-set {
  width: 100% !important;
  float: none !important;
  display: contents !important;
}

.woocommerce-checkout #order_review {
  display: none;
}

/* Loading State */
.checkout-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.checkout-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 10;
  background: rgba(255,255,255,0.5);
}

.checkout-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-medium);
  border-top-color: var(--brand-accent);
  border-radius: 50%;
  animation: checkout-spin 0.6s linear infinite;
}

@keyframes checkout-spin {
  to { transform: rotate(360deg); }
}

/* Error State */
.checkout-error {
  background: #FFF0F0;
  border: 1px solid #FCC;
  color: var(--color-error);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-4);
}

.checkout-field--error .checkout-field__input {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(226, 53, 44, 0.1);
}

.checkout-field__error {
  font-size: var(--font-size-xs);
  color: var(--color-error);
  margin-top: 2px;
}

/* Success State */
.checkout-success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #E8F5E9;
  color: var(--color-success);
  margin: 0 auto var(--space-4);
}

/* -- Empty Cart in Checkout -- */
.checkout-empty {
  text-align: center;
  padding: var(--space-16) var(--space-4);
}

.checkout-empty__icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
  opacity: 0.3;
}

.checkout-empty__title {
  font-family: var(--font-display);
  font-size: var(--font-size-2xl);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.checkout-empty__text {
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

/* -- Responsive Mobile Checkout CTA Bar -- */
@media (max-width: 860px) {
  .checkout-sidebar__inner {
    padding: var(--space-4);
  }
  
  .order-items {
    max-height: 200px;
  }
  
  .checkout-btn--place-order {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .checkout-wrapper {
    margin-top: var(--space-4);
    padding: 0 var(--space-3);
  }
  
  .checkout-steps {
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-3);
    margin-bottom: var(--space-4);
  }
  
  .checkout-btn-row {
    flex-direction: column;
    gap: var(--space-3);
  }
  
  .checkout-btn-row .checkout-btn {
    width: 100%;
    justify-content: center;
  }

  .checkout-btn-row .checkout-btn--back {
    order: 2;
  }
  
  .checkout-btn-row .checkout-btn--continue,
  .checkout-btn-row .checkout-btn--place-order {
    order: 1;
  }
  
  .review-block {
    padding: var(--space-3);
  }
}