/* ============================================================
   MY FRENCH BAKER — Global Stylesheet
   Brand: Navy #1A2B4A | Or #C9A84C | Crème #FDF6EA
   Fonts: Playfair Display (headings) + Lato (body)
   ============================================================ */

/* ---- Custom Properties ---- */
:root {
  --navy:          #1A2B4A;   /* navy logo — couleur exacte du texte logo */
  --navy-light:    #253a62;
  --navy-dark:     #111e35;
  --gold:          #B8922C;   /* or laiton — couleur exacte du logo */
  --gold-light:    #D4AE58;
  --gold-dark:     #96741E;
  --cream:         #F8F2E4;   /* ivoire chaud — proche du bonnet du logo */
  --cream-dark:    #F0E4C8;
  --cream-darker:  #E8D8B0;
  --white:         #FFFFFF;
  --gray-100:      #F8F4EE;
  --gray-200:      #EFE9DF;
  --gray-400:      #C4B49A;
  --gray-600:      #8A7460;
  --gray-800:      #2E3748;
  --text-dark:     #1A2B4A;
  --text-medium:   #4A5568;
  --text-light:    #718096;
  --success:       #2E7D32;
  --error:         #C62828;
  --warning:       #E65100;
  --border:        #E8D8B8;

  --font-heading:  'Playfair Display', Georgia, serif;
  --font-body:     'Lato', 'Helvetica Neue', Arial, sans-serif;

  --radius-sm:     6px;
  --radius:        12px;
  --radius-lg:     20px;
  --radius-full:   9999px;

  --shadow-sm:     0 2px 8px rgba(26,43,74,0.08);
  --shadow:        0 6px 24px rgba(26,43,74,0.12);
  --shadow-lg:     0 16px 48px rgba(26,43,74,0.18);
  --shadow-gold:   0 4px 20px rgba(201,168,76,0.30);

  --transition:    0.25s ease;
  --transition-slow: 0.45s ease;

  --max-width:     1260px;
  --header-height: 100px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); border: none; background: none; }
input, select, textarea { font-family: var(--font-body); font-size: 1rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }

.text-gold   { color: var(--gold); }
.text-navy   { color: var(--navy); }
.text-center { text-align: center; }
.text-sm     { font-size: 0.875rem; }
.text-lg     { font-size: 1.125rem; }

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 80px 0;
}
.section-sm { padding: 48px 0; }
.section-lg { padding: 120px 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.flex   { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

/* ---- Section Headers ---- */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-medium);
  font-size: 1.05rem;
}
.divider-gold {
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  margin: 16px auto 0;
}

/* ============================================================
   INDEX — GRILLES RESPONSIVE (remplacent les styles inline)
   ============================================================ */
.props-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.box-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  height: var(--header-height);
  box-shadow: 0 2px 16px rgba(26,43,74,0.08);
  transition: background var(--transition);
  border-bottom: 1px solid var(--border);
}
.site-header.scrolled { background: rgba(255,255,255,0.97); backdrop-filter: blur(8px); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 32px;
}

/* Logo */
.site-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.site-logo img {
  height: 80px;
  width: auto;
}
.site-logo .logo-text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: 0.02em;
}
.site-logo .logo-text span { color: var(--gold); display: block; font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; font-family: var(--font-body); font-weight: 400; }

/* Navigation */
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
  transition: all var(--transition);
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a.active { color: var(--gold-dark); background: rgba(184,146,44,0.08); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  letter-spacing: 0.03em;
}
.cart-btn:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: var(--shadow-gold); }
.cart-btn svg { width: 18px; height: 18px; }
.cart-count {
  position: absolute;
  top: -8px; right: -8px;
  background: var(--error);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--navy);
  transition: transform 0.2s;
}
.cart-count.bump { transform: scale(1.3); }
.cart-count.hidden { display: none; }

/* Mobile Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Promo Bar */
.promo-bar {
  background: linear-gradient(90deg, var(--navy-dark), var(--navy), var(--navy-dark));
  color: var(--gold-light);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(200,132,58,0.25);
}
.promo-bar a { text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding-top: 72px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .site-logo { margin-bottom: 20px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 300px; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-family: var(--font-body);
  font-weight: 700;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.9rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--gold); }
.footer-col .contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 0.88rem; }
.footer-col .contact-item svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--gold); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a:hover { color: var(--gold); }

.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  color: rgba(255,255,255,0.7);
}
.social-links a:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,168,76,0.1); }
.social-links svg { width: 15px; height: 15px; }

.trust-badges { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.trust-badge { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: rgba(255,255,255,0.5); }
.trust-badge svg { width: 16px; height: 16px; color: var(--gold); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
  color: var(--navy);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.12); border-color: var(--white); color: var(--white); }

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline-gold:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }

.btn-sm  { padding: 9px 20px; font-size: 0.85rem; }
.btn-lg  { padding: 17px 40px; font-size: 1.05rem; }
.btn-xl  { padding: 20px 52px; font-size: 1.1rem; }
.btn-block { width: 100%; }

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
.btn.loading { position: relative; color: transparent; }
.btn.loading::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  color: var(--navy);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.45;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(26,43,74,0.75) 40%, rgba(26,43,74,0.28) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  color: var(--white);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
}
.hero h1 { color: var(--white); margin-bottom: 24px; text-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero .lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
  line-height: 1.75;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 24px; margin-top: 52px; flex-wrap: wrap; }
.hero-badge {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.7); font-size: 0.85rem;
}
.hero-badge svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; }

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, #ffffff 80%, var(--cream) 100%);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.product-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--cream);
}
.product-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-card-image img { transform: scale(1.06); }
.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.product-badge.new   { background: var(--navy); color: var(--white); }
.product-badge.sale  { background: var(--error); color: var(--white); }
.product-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-category {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.product-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--navy);
}
.product-card-body p {
  font-size: 0.88rem;
  color: var(--text-medium);
  flex: 1;
  margin-bottom: 16px;
  line-height: 1.6;
}
.product-price {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 16px;
}
.product-price .price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  font-family: var(--font-heading);
}
.product-price .price-each { font-size: 0.78rem; color: var(--text-light); }
.product-price .price-original { font-size: 0.9rem; color: var(--text-light); text-decoration: line-through; }

/* ============================================================
   CAROUSEL — product cards
   ============================================================ */
.card-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.card-slides {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
  will-change: transform;
}
.card-slides img {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background: rgba(255,255,255,0.92);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(26,43,74,0.18);
  transition: all var(--transition);
  opacity: 0;
  color: var(--navy);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0;
}
.card-arrow:hover { background: var(--white); box-shadow: 0 4px 12px rgba(26,43,74,0.25); }
.card-arrow.prev { left: 8px; }
.card-arrow.next { right: 8px; }
.product-card:hover .card-arrow { opacity: 1; }
.card-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 10;
}
.card-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  transition: background var(--transition), transform var(--transition);
  cursor: pointer;
}
.card-dot.active {
  background: var(--white);
  transform: scale(1.25);
}

/* Quantity selector — product cards */
.qty-select {
  width: 100%;
  padding: 9px 36px 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-family: var(--font-body);
  color: var(--navy);
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231A2B4A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  margin-bottom: 12px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.qty-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,146,44,0.12);
}

.product-actions { display: flex; gap: 10px; margin-top: auto; }
.product-actions .btn-add {
  flex: 1;
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 11px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: all var(--transition);
}
.product-actions .btn-add:hover { background: var(--gold); color: var(--navy); transform: translateY(-1px); }
.product-actions .btn-add.added { background: var(--success); color: var(--white); }
.btn-view-product {
  padding: 11px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-medium);
  display: flex; align-items: center;
  transition: all var(--transition);
}
.btn-view-product:hover { border-color: var(--gold); color: var(--gold); }
.btn-view-product svg { width: 16px; height: 16px; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 36px; left: 12.5%; right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  z-index: 0;
}
.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-icon {
  width: 72px; height: 72px;
  background: var(--cream-dark);
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  transition: all var(--transition);
}
.step-icon svg { width: 32px; height: 32px; color: var(--gold); }
.step-card:hover .step-icon { background: var(--navy); border-color: var(--navy); }
.step-card:hover .step-icon svg { color: var(--gold); }
.step-card h4 { margin-bottom: 8px; }
.step-card p { font-size: 0.88rem; color: var(--text-medium); }
.step-number {
  position: absolute;
  top: -8px; right: calc(50% - 40px);
  width: 22px; height: 22px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stars { display: flex; gap: 3px; margin-bottom: 16px; }
.stars svg { width: 16px; height: 16px; fill: none; stroke: var(--gold); stroke-width: 1.5px; }
.stars svg.star-filled { fill: var(--gold); }
.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-text::before { content: '\201C'; font-size: 1.5em; color: var(--gold); line-height: 0; vertical-align: -0.4em; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--cream-dark);
  border: 2px solid var(--border);
  overflow: hidden;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
}
.author-name { font-weight: 700; font-size: 0.9rem; color: var(--navy); margin-bottom: 2px; }
.author-location { font-size: 0.78rem; color: var(--text-light); }

/* ============================================================
   CART
   ============================================================ */
.cart-page { padding: 60px 0; }
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table thead th {
  text-align: left; padding: 12px 16px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-light); border-bottom: 2px solid var(--border);
}
.cart-table tbody tr { border-bottom: 1px solid var(--border); transition: background var(--transition); }
.cart-table tbody tr:hover { background: var(--cream); }
.cart-table td { padding: 20px 16px; vertical-align: middle; }
.cart-product { display: flex; align-items: center; gap: 16px; }
.cart-product-image {
  width: 72px; height: 72px; border-radius: var(--radius);
  overflow: hidden; flex-shrink: 0; border: 1px solid var(--border);
}
.cart-product-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-product-name { font-weight: 700; font-size: 0.95rem; margin-bottom: 2px; }
.cart-product-category { font-size: 0.78rem; color: var(--text-light); }
.qty-control { display: flex; align-items: center; gap: 0; border: 1.5px solid var(--border); border-radius: var(--radius-full); overflow: hidden; width: fit-content; }
.qty-btn { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; font-size: 1.2rem; color: var(--navy); transition: background var(--transition); }
.qty-btn:hover { background: var(--cream-dark); }
.qty-input { width: 44px; text-align: center; border: none; outline: none; font-size: 0.9rem; font-weight: 700; background: none; padding: 0; }
.remove-item { background: none; border: none; color: var(--text-light); cursor: pointer; padding: 6px; border-radius: 50%; transition: all var(--transition); }
.remove-item:hover { color: var(--error); background: rgba(198,40,40,0.08); }
.cart-price { font-weight: 700; font-size: 1rem; color: var(--navy); }

/* Cart Summary */
.cart-summary {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--header-height) + 20px);
}
.cart-summary h3 { margin-bottom: 24px; font-size: 1.3rem; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 0.92rem; }
.summary-row .label { color: var(--text-medium); }
.summary-row .value { font-weight: 600; }
.summary-row.total { border-top: 2px solid var(--border); padding-top: 16px; margin-top: 8px; font-size: 1.1rem; }
.summary-row.total .value { color: var(--navy); font-family: var(--font-heading); font-size: 1.3rem; }
.summary-row.free-shipping .value { color: var(--success); }
.coupon-form { display: flex; gap: 8px; margin: 20px 0; }
.coupon-form input {
  flex: 1; padding: 10px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.88rem; outline: none;
  transition: border-color var(--transition);
}
.coupon-form input:focus { border-color: var(--gold); }
.shipping-notice {
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--text-medium);
  margin-bottom: 16px;
  text-align: center;
}
.shipping-notice strong { color: var(--navy); }

/* ============================================================
   CHECKOUT
   ============================================================ */
.checkout-page { padding: 60px 0; background: var(--cream); }
.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: 48px; align-items: start; }
.checkout-steps { display: flex; gap: 0; margin-bottom: 40px; }
.checkout-step {
  flex: 1; text-align: center; padding: 12px;
  border-bottom: 3px solid var(--border);
  font-size: 0.85rem; font-weight: 700; color: var(--text-light);
  transition: all var(--transition);
}
.checkout-step.active { border-color: var(--gold); color: var(--navy); }
.checkout-step.done   { border-color: var(--success); color: var(--success); }

.form-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.form-section h3 { margin-bottom: 24px; font-size: 1.2rem; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
  color: var(--text-dark);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.form-group input.error { border-color: var(--error); }
.form-group .error-msg { font-size: 0.78rem; color: var(--error); margin-top: 4px; display: none; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* Order Summary Sidebar (Checkout) */
.order-summary-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.order-item { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.order-item-image {
  position: relative;
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.order-item-image img { width: 100%; height: 100%; object-fit: cover; }
.order-item-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--navy); color: var(--white);
  font-size: 0.65rem; font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.order-item-name { font-size: 0.88rem; font-weight: 600; margin-bottom: 2px; }
.order-item-price { font-size: 0.82rem; color: var(--text-light); }
.order-item-total { margin-left: auto; font-weight: 700; font-size: 0.92rem; }

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.product-detail { padding: 60px 0; }
.product-detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.product-gallery {}
.product-main-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--cream-dark);
  margin-bottom: 12px;
}
.product-main-image img { width: 100%; height: 100%; object-fit: cover; }
.product-info { position: sticky; top: calc(var(--header-height) + 24px); }
.product-info .product-category { margin-bottom: 8px; }
.product-info h1 { font-size: 2.2rem; margin-bottom: 12px; }
.product-info .product-price { margin-bottom: 24px; }
.product-info .product-price .price { font-size: 2rem; }
.product-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.product-rating .stars { margin-bottom: 0; }
.product-rating span { font-size: 0.85rem; color: var(--text-light); }
.product-description { color: var(--text-medium); line-height: 1.8; margin-bottom: 28px; }
.product-features { margin-bottom: 28px; }
.product-feature {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.88rem; margin-bottom: 10px;
}
.product-feature svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }
.qty-add-row { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; }
.qty-add-row .qty-control { border-color: var(--navy); }
.product-add-btn { flex: 1; }
.product-extras { display: flex; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.stock-indicator { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; }
.stock-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.stock-dot.low { background: var(--warning); }

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--text-light);
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb svg { width: 12px; height: 12px; }

/* ============================================================
   CUSTOM BOX BUILDER
   ============================================================ */
.box-builder { padding: 60px 0; }
.box-builder-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.box-products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.box-product-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}
.box-product-card.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), var(--shadow-gold);
}
.box-product-card:hover { border-color: var(--navy); transform: translateY(-3px); }
.box-product-card .card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--cream);
}
.box-product-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.box-product-card:hover .card-img img { transform: scale(1.05); }
.box-product-card .card-body { padding: 14px; }
.box-product-card .card-body h4 { font-size: 0.95rem; margin-bottom: 6px; }
.box-product-card .card-body .price { font-size: 0.88rem; color: var(--gold); font-weight: 700; margin-bottom: 10px; }
.box-qty-control { display: flex; align-items: center; justify-content: center; gap: 0; border: 1.5px solid var(--border); border-radius: var(--radius-full); overflow: hidden; }
.box-qty-control .qty-btn { width: 30px; height: 30px; font-size: 1.1rem; }
.box-qty-control .qty-input { width: 36px; font-size: 0.9rem; font-weight: 700; }

.box-summary {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: var(--white);
}
.box-summary h3 { color: var(--white); margin-bottom: 8px; }
.box-progress-bar { height: 6px; background: rgba(255,255,255,0.15); border-radius: 3px; margin-bottom: 8px; overflow: hidden; }
.box-progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-light)); border-radius: 3px; transition: width 0.4s ease; }
.box-count-text { font-size: 0.82rem; color: rgba(255,255,255,0.7); margin-bottom: 24px; }
.box-count-text strong { color: var(--gold); }
.box-items-list { max-height: 260px; overflow-y: auto; margin-bottom: 20px; }
.box-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 0.85rem; }
.box-item .name { color: rgba(255,255,255,0.85); }
.box-item .item-price { color: var(--gold); font-weight: 700; }
.box-total { border-top: 2px solid rgba(255,255,255,0.2); padding-top: 16px; margin-top: 8px; }
.box-total .total-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.9rem; }
.box-total .total-row .label { color: rgba(255,255,255,0.7); }
.box-total .grand-total { display: flex; justify-content: space-between; font-size: 1.25rem; font-weight: 700; font-family: var(--font-heading); margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.15); }
.box-total .grand-total .label { color: var(--white); }
.box-total .grand-total .value { color: var(--gold); }
.box-min-notice { text-align: center; font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.btn-box-checkout { width: 100%; }

/* ============================================================
   PAGES: ABOUT, HOW IT WORKS, RETURNS
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #1e3a6e 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../images/page-hero-pattern.svg') repeat center;
  opacity: 0.05;
}
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,0.75); max-width: 560px; margin: 0 auto; font-size: 1.05rem; }
.page-hero .eyebrow { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }

.page-content { padding: 80px 0; }
.page-content h2 { margin-bottom: 20px; margin-top: 48px; }
.page-content h2:first-child { margin-top: 0; }
.page-content p, .page-content li { color: var(--text-medium); line-height: 1.85; }
.page-content ul { margin-bottom: 1rem; }
.page-content ul li { padding-left: 20px; position: relative; margin-bottom: 8px; }
.page-content ul li::before { content: '→'; position: absolute; left: 0; color: var(--gold); }

/* Values Grid */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 56px 0; }
.value-card {
  text-align: center; padding: 40px 28px;
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
.value-icon { width: 64px; height: 64px; margin: 0 auto 20px; color: var(--gold); }
.value-icon svg { width: 100%; height: 100%; }
.value-card h3 { margin-bottom: 12px; }
.value-card p { font-size: 0.9rem; color: var(--text-medium); }

/* Timeline */
.timeline { position: relative; padding-left: 40px; }
.timeline::before { content: ''; position: absolute; left: 12px; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--gold), transparent); }
.timeline-item { position: relative; margin-bottom: 36px; }
.timeline-dot {
  position: absolute; left: -36px; top: 4px;
  width: 24px; height: 24px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; color: var(--navy);
}
.timeline-item h4 { margin-bottom: 8px; }
.timeline-item p { font-size: 0.9rem; color: var(--text-medium); }

/* ============================================================
   NOTICES, ALERTS, TOASTS
   ============================================================ */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 0.9rem;
  display: flex; align-items: flex-start; gap: 10px;
}
.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: rgba(46,125,50,0.1); border: 1px solid rgba(46,125,50,0.3); color: #1B5E20; }
.alert-error   { background: rgba(198,40,40,0.1); border: 1px solid rgba(198,40,40,0.3); color: #B71C1C; }
.alert-info    { background: rgba(26,43,74,0.08);  border: 1px solid rgba(26,43,74,0.2);  color: var(--navy); }
.alert-warning { background: rgba(230,81,0,0.08); border: 1px solid rgba(230,81,0,0.25); color: #BF360C; }

.toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--navy);
  color: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  display: flex; align-items: center; gap: 10px;
  pointer-events: all;
  animation: slideInRight 0.3s ease forwards;
  max-width: 320px;
}
.toast svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }
.toast.success { border-left: 4px solid var(--success); }
.toast.error   { border-left: 4px solid var(--error); }

/* ============================================================
   FLOATING SUPPORT BUBBLE
   ============================================================ */
.support-bubble {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 9990;
}
.support-trigger {
  width: 60px; height: 60px;
  background: var(--navy);
  border-radius: 50%;
  box-shadow: 0 4px 24px rgba(26,43,74,0.4);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  border: 3px solid var(--gold);
}
.support-trigger:hover { background: var(--gold); transform: scale(1.08); }
.support-trigger:hover svg { color: var(--navy); }
.support-trigger svg { width: 26px; height: 26px; color: var(--white); }
.support-trigger .notif-dot {
  position: absolute; top: -2px; right: -2px;
  width: 14px; height: 14px;
  background: var(--error); border-radius: 50%;
  border: 2px solid var(--cream);
  animation: pulse 2s infinite;
}
.support-window {
  position: absolute;
  bottom: 72px; right: 0;
  width: 340px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  display: none;
  animation: fadeUp 0.25s ease forwards;
}
.support-window.open { display: block; }
.support-header {
  background: var(--navy);
  padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.support-header-info { display: flex; align-items: center; gap: 12px; }
.support-avatar {
  width: 38px; height: 38px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.support-name { color: var(--white); font-weight: 700; font-size: 0.9rem; }
.support-status { color: rgba(255,255,255,0.6); font-size: 0.75rem; }
.online-dot { width: 8px; height: 8px; background: #4CAF50; border-radius: 50%; display: inline-block; margin-right: 4px; }
.support-close { background: none; border: none; color: rgba(255,255,255,0.6); cursor: pointer; padding: 4px; border-radius: 4px; transition: color var(--transition); }
.support-close:hover { color: var(--white); }
.support-messages {
  padding: 20px;
  height: 240px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 12px;
}
.support-msg { max-width: 85%; }
.support-msg .bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.55;
}
.support-msg.bot { align-self: flex-start; }
.support-msg.bot .bubble { background: var(--cream-dark); color: var(--navy); border-bottom-left-radius: 4px; }
.support-msg.user { align-self: flex-end; }
.support-msg.user .bubble { background: var(--navy); color: var(--white); border-bottom-right-radius: 4px; }
.support-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px;
  border-top: 1px solid var(--border);
}
.suggestion-chip {
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  background: var(--white);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  font-family: var(--font-body);
  line-height: 1.4;
}
.suggestion-chip:hover {
  background: var(--navy);
  color: var(--white);
}
.support-input-row {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  display: flex; gap: 8px;
}
.support-input {
  flex: 1; padding: 9px 12px;
  border: 1.5px solid var(--border); border-radius: var(--radius-full);
  font-size: 0.85rem; outline: none;
  transition: border-color var(--transition);
}
.support-input:focus { border-color: var(--gold); }
.support-send-btn {
  width: 36px; height: 36px;
  background: var(--navy); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
  flex-shrink: 0;
}
.support-send-btn:hover { background: var(--gold); }
.support-send-btn svg { width: 16px; height: 16px; color: var(--white); }

/* ============================================================
   SUCCESS PAGE
   ============================================================ */
.success-page { min-height: 70vh; display: flex; align-items: center; padding: 80px 0; }
.success-card {
  max-width: 600px; margin: 0 auto;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.success-icon {
  width: 80px; height: 80px;
  background: rgba(46,125,50,0.1);
  border: 3px solid var(--success);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 28px;
}
.success-icon svg { width: 40px; height: 40px; color: var(--success); }
.success-card h1 { font-size: 2rem; margin-bottom: 12px; }
.success-card p { color: var(--text-medium); margin-bottom: 8px; }
.order-number-badge {
  display: inline-block;
  background: var(--cream-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 16px;
  font-family: monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 16px 0;
}
.success-next-steps { display: flex; flex-direction: column; gap: 12px; margin: 32px 0; text-align: left; }
.next-step { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--cream); border-radius: var(--radius); font-size: 0.88rem; }
.next-step svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }

/* ============================================================
   NEWSLETTER SECTION
   ============================================================ */
.newsletter-section {
  background: var(--navy);
  padding: 72px 0;
  text-align: center;
}
.newsletter-section h2 { color: var(--white); margin-bottom: 12px; }
.newsletter-section p { color: rgba(255,255,255,0.7); margin-bottom: 32px; font-size: 1.05rem; }
.newsletter-form {
  display: flex; gap: 12px;
  max-width: 460px; margin: 0 auto;
}
.newsletter-form input {
  flex: 1; padding: 14px 20px;
  border: none; border-radius: var(--radius-full);
  font-size: 0.95rem; outline: none;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.2);
  transition: border-color var(--transition);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input:focus { border-color: var(--gold); background: rgba(255,255,255,0.12); }
.newsletter-disclaimer { font-size: 0.78rem; color: rgba(255,255,255,0.4); margin-top: 12px; }

/* ============================================================
   EMPTY STATES
   ============================================================ */
.empty-state {
  text-align: center; padding: 72px 24px;
}
.empty-state svg { width: 72px; height: 72px; color: var(--gray-400); margin: 0 auto 24px; }
.empty-state h3 { margin-bottom: 12px; }
.empty-state p { color: var(--text-light); margin-bottom: 28px; }

/* ============================================================
   STRIPE ELEMENTS PLACEHOLDER
   ============================================================ */
#stripe-payment-element {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--white);
  min-height: 48px;
}
#stripe-errors {
  color: var(--error);
  font-size: 0.85rem;
  margin-top: 8px;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.hidden      { display: none !important; }
.sr-only     { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.mb-0        { margin-bottom: 0; }
.mt-auto     { margin-top: auto; }
.bg-cream    { background: var(--cream); }
.bg-white    { background: var(--white); }
.bg-navy     { background: var(--navy); }
.rounded     { border-radius: var(--radius); }
.shadow      { box-shadow: var(--shadow); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes spin        { to { transform: rotate(360deg); } }
@keyframes pulse       { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes fadeUp      { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight{ from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeIn      { from { opacity: 0; } to { opacity: 1; } }
@keyframes shimmer {
  0%   { background-position: -468px 0; }
  100% { background-position: 468px 0; }
}

.fade-in  { animation: fadeIn 0.5s ease forwards; }
.fade-up  { animation: fadeUp 0.5s ease forwards; }

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 400% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .cart-layout      { grid-template-columns: 1fr; }
  .cart-summary     { position: static; }
  .checkout-layout  { grid-template-columns: 1fr; }
  .order-summary-sidebar { position: static; }
  .footer-grid      { grid-template-columns: 1fr 1fr; gap: 36px; }
  .steps-grid       { grid-template-columns: repeat(2,1fr); }
  .steps-grid::before { display: none; }
}

@media (max-width: 900px) {
  :root { --header-height: 68px; }
  .site-logo img { height: 50px; }
  .site-nav { display: none; }
  .site-nav.mobile-open {
    display: flex; flex-direction: column;
    position: fixed; top: var(--header-height);
    left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 12px 16px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
  }
  .site-nav.mobile-open a { padding: 12px 16px; font-size: 1rem; color: var(--navy); }
  .hamburger { display: flex; }
  .product-detail-layout { grid-template-columns: 1fr; gap: 40px; }
  .product-info { position: static; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .box-builder-layout { grid-template-columns: 1fr; }
  .box-summary { position: static; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section  { padding: 56px 0; }

  /* Grilles inline → responsive */
  .props-grid      { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .box-cta-grid    { grid-template-columns: 1fr; gap: 32px; }
  .box-cta-grid .box-cta-emojis { display: none; }
  .story-grid      { grid-template-columns: 1fr; gap: 40px; }

  /* Promo bar : une seule ligne, texte tronqué */
  .promo-bar {
    font-size: 0.72rem;
    padding: 6px 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.03em;
  }

  /* Hero : contenu centré verticalement, padding-bottom pour dégager la bulle chat */
  .hero     { min-height: 85vh; align-items: center; padding-bottom: 80px; padding-top: 40px; }
  .hero-content { max-width: 100%; }
  .hero-eyebrow { display: none; }
  .hero-badges  { display: none; }
  .hero .lead   { font-size: 0.97rem; line-height: 1.65; margin-bottom: 28px;
                  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-actions .btn { text-align: center; justify-content: center; }
  .newsletter-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .success-card { padding: 40px 24px; }
  .form-section { padding: 24px 20px; }
  .support-window { width: calc(100vw - 40px); right: -10px; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }

  /* Cart table → layout carte sur mobile */
  .cart-table thead          { display: none; }
  .cart-table tbody          { display: block; }
  .cart-table tr {
    display: grid;
    grid-template-columns: 1fr auto auto;
    grid-template-areas:
      "product product product"
      "qty     total   remove";
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    column-gap: 12px;
    row-gap: 0;
  }
  /* Ligne 1 : produit pleine largeur */
  .cart-table td:nth-child(1) { grid-area: product; padding: 0 0 12px; }
  /* Ligne 2 : quantité */
  .cart-table td:nth-child(2) { grid-area: qty; padding: 0; display: flex; align-items: center; text-align: left; }
  /* Colonne Prix unitaire : déjà affiché sous le nom, on la cache */
  .cart-table td:nth-child(3) { display: none; }
  /* Ligne 2 : total en gras */
  .cart-table td:nth-child(4) { grid-area: total; padding: 0; display: flex; align-items: center; justify-content: flex-end; font-size: 1rem; }
  /* Ligne 2 : bouton supprimer */
  .cart-table td:nth-child(5) { grid-area: remove; padding: 0; display: flex; align-items: center; justify-content: flex-end; }
}
