/* ============================================================
   REFLET EYEWEAR — Design System & Global Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;0,14..32,800;0,14..32,900;1,14..32,400&display=swap');

/* ——————————————————————————————————————
   Design Tokens
   —————————————————————————————————————— */
:root {
  --red:        #D81E3F;
  --red-dark:   #B8182F;
  --red-light:  rgba(216, 30, 63, 0.08);
  --bg:         #FAF8F6;
  --surface:    #F0EDE9;
  --border:     #E5E1DC;
  --text:       #1A1A1A;
  --muted:      #6B6560;
  --white:      #FFFFFF;
  --clay:       #C4A882;

  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --nav-h:      76px;
  --font:       'Inter', system-ui, -apple-system, sans-serif;

  --shadow:     0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-md:  0 4px 24px rgba(0, 0, 0, 0.10);
  --shadow-lg:  0 8px 40px rgba(0, 0, 0, 0.14);

  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
input, select, textarea { font-family: inherit; }

/* ——————————————————————————————————————
   Layout
   —————————————————————————————————————— */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.section { padding: 80px 0; }
@media (min-width: 768px) { .section { padding: 120px 0; } }

/* ——————————————————————————————————————
   Buttons
   —————————————————————————————————————— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  transition: background 0.18s, transform 0.18s var(--ease-out), box-shadow 0.18s;
  cursor: pointer;
  white-space: nowrap;
}

.btn-sm { padding: 10px 20px; font-size: 0.875rem; }
.btn-lg { padding: 17px 36px; font-size: 1rem; }

.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(216, 30, 63, 0.28);
}
.btn-primary:active { transform: translateY(0); box-shadow: none; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--text); }

.btn-outline {
  background: transparent;
  color: var(--red);
  border: 1.5px solid var(--red);
}
.btn-outline:hover { background: var(--red); color: var(--white); }

/* ——————————————————————————————————————
   Typography helpers
   —————————————————————————————————————— */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--red);
  flex-shrink: 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.section-sub {
  font-size: 1rem;
  color: var(--muted);
  margin-top: 8px;
  max-width: 480px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ——————————————————————————————————————
   Navigation — floating pill
   —————————————————————————————————————— */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 32px);
  max-width: 1100px;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s, background 0.3s;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 20px;
  gap: 16px;
  position: relative;
}

.nav-logo { flex-shrink: 0; }
.nav-logo img { height: 48px; width: auto; display: block; }

.nav-links {
  display: none;
  align-items: center;
  gap: 28px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
@media (min-width: 768px) { .nav-links { display: flex; } }

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: background 0.15s, color 0.15s;
}
.nav-cart:hover {
  background: var(--surface);
  color: var(--red);
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: var(--surface);
  transition: background 0.15s;
  position: relative;
}
.icon-btn:hover { background: var(--border); }

.cart-badge {
  position: absolute;
  top: 4px; right: 4px;
  width: 16px; height: 16px;
  background: var(--red);
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ——————————————————————————————————————
   Checkout page (/checkout)
   —————————————————————————————————————— */
.checkout-page { padding: 100px 0 80px; min-height: 70vh; }
.checkout-head { text-align: center; margin-bottom: 40px; }
.checkout-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.875rem; font-weight: 600; color: var(--muted);
  margin-bottom: 18px; transition: color 0.15s;
}
.checkout-back:hover { color: var(--text); }
.checkout-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800;
  letter-spacing: -0.025em; margin-bottom: 8px;
}
.checkout-sub { color: var(--muted); font-size: 0.95rem; }

.checkout-grid {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px;
  max-width: 1000px; margin: 0 auto;
}
@media (max-width: 768px) {
  .checkout-page { padding: 80px 0 60px; }
  .checkout-grid { grid-template-columns: 1fr; gap: 24px; }
}

.checkout-section-title {
  font-size: 1rem; font-weight: 700; margin-bottom: 18px;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted);
}
.checkout-form-wrap, .checkout-summary {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.checkout-summary { position: sticky; top: 90px; align-self: start; }
@media (max-width: 768px) {
  .checkout-summary { position: static; }
}

.checkout-lines { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.checkout-line {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 12px;
  align-items: center; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.checkout-line:last-child { border-bottom: none; padding-bottom: 0; }
.checkout-line-img {
  width: 56px; height: 56px; border-radius: var(--radius-sm);
  overflow: hidden; background: var(--surface-2);
}
.checkout-line-img img { width: 100%; height: 100%; object-fit: cover; }
.checkout-line-name { font-weight: 700; font-size: 0.9rem; }
.checkout-line-pack { color: var(--muted); font-size: 0.8rem; margin-top: 2px; }
.checkout-line-price { font-weight: 700; font-size: 0.9rem; }

.checkout-totals { border-top: 1px solid var(--border); padding-top: 16px; margin-bottom: 18px; }
.checkout-total-row {
  display: flex; justify-content: space-between;
  font-size: 0.9rem; margin-bottom: 8px; color: var(--muted);
}
.checkout-free { color: var(--text); font-weight: 600; }
.checkout-total-final {
  font-size: 1.05rem; color: var(--text); font-weight: 700;
  padding-top: 8px; margin-top: 8px; border-top: 1px solid var(--border);
}
.checkout-total-final strong { color: var(--red); font-size: 1.2rem; }
.checkout-submit { width: 100%; height: 52px; font-size: 1rem; }
.checkout-disclaimer {
  text-align: center; font-size: 0.75rem; color: var(--muted);
  margin-top: 12px;
}

.checkout-empty, .checkout-success {
  text-align: center; max-width: 460px; margin: 0 auto;
  padding: 60px 24px;
}
.checkout-empty-icon, .checkout-success-icon {
  width: 88px; height: 88px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.checkout-empty-icon { background: var(--surface-2); color: var(--muted); }
.checkout-success-icon { background: #d4edda; color: #1b7e3a; }
.checkout-empty h2, .checkout-success h2 {
  font-size: 1.5rem; font-weight: 800; margin-bottom: 12px;
}
.checkout-empty p, .checkout-success p {
  color: var(--muted); margin-bottom: 24px;
}
.checkout-success-ref {
  display: inline-block; padding: 10px 22px;
  background: var(--surface-2); border-radius: var(--radius-sm);
  font-family: ui-monospace, monospace; font-weight: 700;
  font-size: 1.05rem; margin-bottom: 24px;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: var(--radius-sm);
  position: relative;
  z-index: 101; /* above .mobile-nav so a second tap closes the menu */
}
.hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}
@media (min-width: 768px) { .hamburger { display: none; } }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-nav.open { opacity: 1; pointer-events: all; }
.mobile-nav a {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  transition: color 0.15s;
}
.mobile-nav a:hover { color: var(--red); }
.mobile-nav-close {
  position: absolute;
  top: 14px; right: 16px;
}

/* ——————————————————————————————————————
   Hero Section
   —————————————————————————————————————— */
.hero {
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  padding: 60px 0 80px;
  width: 100%;
}
@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    padding: 80px 0;
  }
}

.hero-content { order: 2; }
@media (min-width: 768px) { .hero-content { order: 1; } }

.hero-title {
  font-size: clamp(2.75rem, 8vw, 5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}
.hero-title em {
  font-style: normal;
  color: var(--red);
}

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

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

.hero-trust {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.hero-trust-dots {
  display: flex;
  gap: -4px;
}
.hero-trust-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  background: var(--surface);
  margin-left: -8px;
  overflow: hidden;
}
.hero-trust-dot:first-child { margin-left: 0; }

.hero-media {
  order: 1;
  position: relative;
}
@media (min-width: 768px) { .hero-media { order: 2; } }

.hero-img-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 4/5;
  position: relative;
}
.hero-img-wrap img,
.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.hero-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #E8E3DC 0%, #D8D0C6 50%, #C8BEB2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-img-placeholder svg {
  width: 48px;
  height: 48px;
  color: #A09080;
  opacity: 0.5;
}

.hero-float-card {
  position: absolute;
  bottom: 24px;
  left: -12px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
}
@media (min-width: 768px) { .hero-float-card { left: -32px; } }

.hero-float-icon {
  width: 40px;
  height: 40px;
  background: var(--red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}
.hero-float-label strong { display: block; font-size: 0.875rem; font-weight: 700; }
.hero-float-label span { font-size: 0.75rem; color: var(--muted); }

/* ——————————————————————————————————————
   Marquee Strip
   —————————————————————————————————————— */
.marquee-strip {
  background: var(--red);
  color: white;
  padding: 14px 0;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 24s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0 24px;
  letter-spacing: 0.02em;
}
.marquee-dot {
  width: 4px;
  height: 4px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ——————————————————————————————————————
   Product Grid & Cards
   —————————————————————————————————————— */
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (min-width: 640px) {
  .products-grid { gap: 20px; }
}
@media (min-width: 768px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
@media (min-width: 1024px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ——— Category tiles on /produits ——— */
.categories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px)  { .categories-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
@media (min-width: 1024px) { .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.category-card {
  display: block;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.category-card-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
}
.category-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out);
}
.category-card:hover .category-card-img img {
  transform: scale(1.05);
}
.category-card-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%);
  display: flex;
  align-items: flex-end;
  padding: 16px 18px;
  opacity: 0;
  transition: opacity 0.25s var(--ease-out);
}
.category-card:hover .category-card-overlay { opacity: 1; }
.category-card-cta {
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.category-card-body {
  padding: 14px 16px 18px;
}
.category-card-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.category-card-count {
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 500;
}

/* Skeleton state while /categories/active loads */
.category-card.is-skeleton { pointer-events: none; }
.category-card.is-skeleton .category-card-img { background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%); background-size: 200% 100%; animation: skel-shimmer 1.4s infinite; }
.category-card.is-skeleton .skel-line { height: 10px; border-radius: 4px; background: var(--border); }
.category-card.is-skeleton .skel-line-lg { width: 60%; margin-bottom: 8px; height: 14px; }
.category-card.is-skeleton .skel-line-sm { width: 35%; }
@keyframes skel-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.product-card {
  display: block;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s var(--ease-out);
  color: inherit;
}

/* ——————————————————————————————————————
   Product Carousel (homepage only)
   —————————————————————————————————————— */
.carousel-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.carousel-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.18s, background 0.18s, color 0.18s, opacity 0.18s;
}
.carousel-btn:hover { border-color: var(--text); }
.carousel-btn:disabled { opacity: 0.35; cursor: default; }
.carousel-btn:disabled:hover { border-color: var(--border); }
@media (max-width: 520px) { .carousel-seeall { display: none; } }

.product-carousel { position: relative; }

.product-carousel .products-grid {
  display: flex;
  grid-template-columns: none;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0;
}
.product-carousel .products-grid::-webkit-scrollbar { display: none; }

.product-carousel .product-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: calc((100% - 16px) / 1.15);   /* peek next card on mobile */
}
@media (min-width: 560px) {
  .product-carousel .products-grid { gap: 20px; }
  .product-carousel .product-card { width: calc((100% - 20px) / 1.9); }
}
@media (min-width: 900px) {
  .product-carousel .product-card { width: calc((100% - 48px) / 2.4); }
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, width 0.2s, transform 0.2s;
}
.carousel-dot.active {
  background: var(--red);
  width: 22px;
  border-radius: 4px;
}
.product-card:hover { transform: translateY(-5px); }

.product-card-img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #E8E3DC;
  position: relative;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out);
}
.product-card:hover .product-card-img img { transform: scale(1.05); }

.product-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #DDD8D0 0%, #C8C0B4 100%);
}

.product-card-body { padding: 14px 16px 18px; }

.product-card-name {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 4px;
  line-height: 1.3;
}
.product-card-price {
  font-size: 0.875rem;
  color: var(--red);
  font-weight: 700;
}
.product-card-from { font-weight: 400; color: var(--muted); }

.stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
}
.stock-badge.in  { background: #D4EDDA; color: #2D6A4F; }
.stock-badge.out { background: #F8D7DA; color: #842029; }
.stock-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

/* ——————————————————————————————————————
   Benefits / Features Strip
   —————————————————————————————————————— */
.benefits-section { padding: 72px 0 64px; }
@media (min-width: 768px) { .benefits-section { padding: 88px 0 72px; } }

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

.benefit-item {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

/* ——————————————————————————————————————
   How-to-order Steps (open, no boxes)
   —————————————————————————————————————— */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 940px;
  margin: 0 auto;
}
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
}
.step { text-align: center; }
.step-num {
  display: block;
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}
.step-title { font-size: 1.0625rem; font-weight: 700; margin-bottom: 7px; }
.step-text {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 170px;
  margin: 0 auto;
}

.benefit-icon {
  width: 44px;
  height: 44px;
  background: var(--red-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
}
.benefit-title { font-size: 0.9375rem; font-weight: 600; }
.benefit-text  { font-size: 0.8125rem; color: var(--muted); line-height: 1.5; }

/* ——————————————————————————————————————
   Testimonials
   —————————————————————————————————————— */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 640px) { .testimonials-grid { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
@media (min-width: 1024px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); column-gap: 56px; } }

.testimonial-card {
  background: none;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  color: var(--red);
  margin-bottom: 16px;
  font-size: 0.875rem;
}
.testimonial-text {
  font-size: 1.0625rem;
  line-height: 1.7;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
  flex: 1;
}
.testimonial-text::before {
  content: '“';
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: var(--red);
  opacity: 0.25;
  line-height: 0.6;
  margin-bottom: 8px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--border);
  overflow: hidden;
  flex-shrink: 0;
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-name { font-size: 0.875rem; font-weight: 600; }
.testimonial-city { font-size: 0.75rem; color: var(--muted); }

/* ——————————————————————————————————————
   FAQ
   —————————————————————————————————————— */
.faq-wrap { max-width: 700px; margin: 0 auto; }

.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-trigger {
  width: 100%;
  text-align: left;
  padding: 20px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  cursor: pointer;
}
.faq-trigger-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all 0.2s;
  font-size: 1rem;
  line-height: 1;
}
.faq-item.open .faq-trigger-icon {
  background: var(--red);
  border-color: var(--red);
  color: white;
  transform: rotate(45deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease-out);
}
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-answer-inner {
  overflow: hidden;
  padding-bottom: 0;
  transition: padding 0.3s;
}
.faq-item.open .faq-answer-inner { padding-bottom: 20px; }
.faq-answer p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ——————————————————————————————————————
   Footer
   —————————————————————————————————————— */
.footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.6);
  padding: 64px 0 0;
}

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

.footer-brand .logo-img {
  height: 30px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  margin-bottom: 16px;
}
.footer-tagline {
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 240px;
  margin-bottom: 20px;
}
.footer-socials { display: flex; gap: 10px; }
.footer-social {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all 0.2s;
}
.footer-social:hover { background: var(--red); color: white; }

.footer-col-title {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.875rem; transition: color 0.15s; }
.footer-links a:hover { color: rgba(255, 255, 255, 0.9); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 0.8125rem; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 0.8125rem; transition: color 0.15s; }
.footer-legal a:hover { color: rgba(255,255,255,0.9); }

/* ——————————————————————————————————————
   Product Page Layout
   —————————————————————————————————————— */
.product-page { padding-top: calc(var(--nav-h) + 32px); }

/* Mobile-only sticky order-now bar — pinned to the viewport bottom on
   phones so the primary CTA is always reachable while the customer scrolls
   product details. Hidden on tablets and desktop (>=768px). Sits below the
   modal overlay (z:200) and cart drawer (z:150) so those cover it cleanly. */
.mobile-order-bar { display: none; }

@media (max-width: 767px) {
  .mobile-order-bar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
    z-index: 90;
  }
  .mobile-order-bar .mobile-order-bar-btn {
    width: 100%;
    margin: 0;
    padding: 14px;
    font-size: 0.95rem;
    font-weight: 700;
  }
  /* Give the product page bottom breathing room so the last content isn't
     tucked under the fixed bar (~68px tall + safe-area). */
  .product-page {
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding: 48px 0 100px;
}
@media (min-width: 768px) {
  .product-layout { grid-template-columns: 1fr 1fr; gap: 72px; }
}
@media (min-width: 1024px) {
  .product-layout { grid-template-columns: 55% 1fr; }
}

.product-gallery {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 1;
}
.product-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #DDD8D0 0%, #BEB6AC 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #A09080;
}

/* Prev / next arrows on the product gallery */
.product-gallery { touch-action: pan-y; }
.product-gallery:focus { outline: none; }
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transition: opacity 0.2s, background 0.15s, transform 0.15s;
  z-index: 2;
}
.gallery-nav:hover { background: #fff; transform: translateY(-50%) scale(1.05); }
.product-gallery:hover .gallery-nav,
.product-gallery:focus-within .gallery-nav { opacity: 1; }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
@media (hover: none) {
  /* Touch devices — always show the arrows */
  .gallery-nav { opacity: 1; }
}

.product-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 16px;
}
.product-breadcrumb a:hover { color: var(--text); }
.product-breadcrumb span { color: var(--border); }

.product-category-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.product-name {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 8px;
}
.product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.product-rating-stars { color: var(--red); font-size: 0.875rem; }
.product-rating-count { font-size: 0.8125rem; color: var(--muted); }

.product-desc {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

/* Color swatches on the product page */
.product-colors { margin-bottom: 18px; }
.product-colors-label {
  font-size: 0.875rem; font-weight: 600; color: var(--muted);
  margin-bottom: 12px;
}
.product-colors-label span { color: var(--text); }
.product-colors-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.color-swatch {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--swatch, #ccc);
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1.5px var(--border);
  cursor: pointer; padding: 0;
  transition: box-shadow 0.15s, transform 0.15s;
}
.color-swatch:hover { transform: scale(1.08); }
.color-swatch.active {
  box-shadow: 0 0 0 2px var(--red);
}

/* Gallery thumbnails */
.product-media { display: flex; flex-direction: column; gap: 14px; }
.product-thumbs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.product-thumb {
  width: 74px;
  height: 74px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--border);
  padding: 0;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
  flex-shrink: 0;
}
.product-thumb:hover { transform: translateY(-2px); }
.product-thumb.active { border-color: var(--red); }
.product-thumb img,
.product-thumb .thumb-placeholder { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Single price + actions (pack selector removed) */
.product-price-lg {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}
.product-price-lg .price-now {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.product-price-lg .price-tax { font-size: 0.8125rem; color: var(--muted); }

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}
.btn-order-now,
.product-actions .btn-add-cart { width: 100%; margin-top: 0; }
.btn-order-now { padding: 16px; font-size: 1rem; font-weight: 700; }

.product-stock-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.product-stock-line.in  { color: #2D6A4F; }
.product-stock-line.out { color: #842029; }
.product-stock-line::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
}

/* Modal close (X) for the order popup */
.modal { position: relative; }
.modal-x {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background 0.15s;
}
.modal-x:hover { background: var(--border); }
.modal-form { text-align: left; padding: 36px 28px 28px; max-width: 460px; }
.modal-form .modal-title { text-align: center; }
.modal-form .modal-tagline { text-align: center; }
.modal-form .order-form { margin-top: 22px; }

/* Pack selector */
.pack-label {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}
.pack-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 32px;
}
.pack-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 8px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  background: none;
  font-family: inherit;
}
.pack-option:hover { border-color: var(--muted); }
.pack-option.selected {
  border-color: var(--red);
  background: var(--red-light);
}
.pack-option-qty { font-size: 1.0625rem; font-weight: 800; display: block; }
.pack-option-price {
  font-size: 0.8125rem;
  color: var(--red);
  font-weight: 700;
  display: block;
  margin-top: 4px;
}
.pack-option-note {
  font-size: 0.6875rem;
  color: var(--muted);
  display: block;
  margin-top: 3px;
}

/* Order Form */
.order-form-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.order-form { display: flex; flex-direction: column; gap: 14px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 0.875rem; font-weight: 500; }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(216, 30, 63, 0.1);
}
.form-input.invalid { border-color: var(--red); }
.form-error {
  font-size: 0.75rem;
  color: var(--red);
  display: none;
}
.form-error.show { display: block; }

.form-textarea { resize: vertical; min-height: 80px; }

.form-select-wrap { position: relative; }
.form-select-wrap::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--muted);
  pointer-events: none;
}

.form-submit {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 6px;
  border-radius: var(--radius);
  letter-spacing: 0.01em;
}
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

.form-disclaimer {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

/* ——————————————————————————————————————
   Order Success Modal
   —————————————————————————————————————— */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.65);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px 32px 36px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  transform: scale(0.94) translateY(16px);
  transition: transform 0.35s var(--ease-out);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }

.modal-icon {
  width: 80px;
  height: 80px;
  background: var(--red-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--red);
}

.modal-title {
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}
.modal-tagline {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.modal-ref-box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 24px;
}
.modal-ref-label { font-size: 0.75rem; color: var(--muted); margin-bottom: 4px; }
.modal-ref-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--red);
  letter-spacing: 0.05em;
}
.modal-body {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 28px;
}
.modal-close {
  width: 100%;
}

/* ——————————————————————————————————————
   Page Hero (generic interior pages)
   —————————————————————————————————————— */
.page-hero {
  padding: calc(var(--nav-h) + 76px) 0 60px;
  text-align: center;
}
.page-hero-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}
.page-hero-sub {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
  font-size: 1.0625rem;
  line-height: 1.65;
}

/* ——————————————————————————————————————
   About Page
   —————————————————————————————————————— */
.about-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: center;
  padding: 60px 0 100px;
}
@media (min-width: 768px) {
  .about-split { grid-template-columns: 1fr 1fr; }
}

.about-img {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--surface);
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }

.about-body h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 20px;
}
.about-body p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 16px;
}
.about-body p:last-child { margin-bottom: 0; }

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
  margin-top: 40px;
}
.about-value {
  background: none;
  border-radius: 0;
  padding: 18px 0 0;
  border-top: 1.5px solid var(--border);
}
.about-value-title { font-size: 0.9375rem; font-weight: 700; margin-bottom: 6px; }
.about-value-text  { font-size: 0.8125rem; color: var(--muted); line-height: 1.55; }

/* ——————————————————————————————————————
   Contact Page
   —————————————————————————————————————— */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  padding: 60px 0 100px;
}
@media (min-width: 768px) {
  .contact-layout { grid-template-columns: 1fr 1.5fr; }
}

.contact-info-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.contact-info-sub { color: var(--muted); line-height: 1.7; margin-bottom: 32px; }
.contact-info-list { display: flex; flex-direction: column; gap: 16px; }
.contact-info-item { display: flex; align-items: flex-start; gap: 14px; }
.contact-info-icon {
  width: 40px;
  height: 40px;
  background: var(--red-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  flex-shrink: 0;
}
.contact-info-text strong { display: block; font-size: 0.875rem; font-weight: 600; }
.contact-info-text span  { font-size: 0.875rem; color: var(--muted); }

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
}
.contact-form { display: flex; flex-direction: column; gap: 16px; }

/* ——————————————————————————————————————
   Legal Pages (privacy, cgv)
   —————————————————————————————————————— */
.legal-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 0 100px;
}
.legal-body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 12px;
}
.legal-body p { font-size: 0.9375rem; color: var(--muted); line-height: 1.75; margin-bottom: 14px; }
.legal-body ul { padding-left: 20px; list-style: disc; }
.legal-body li { font-size: 0.9375rem; color: var(--muted); line-height: 1.75; margin-bottom: 6px; }

/* ——————————————————————————————————————
   404 Page
   —————————————————————————————————————— */
.page-404 {
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}
.page-404-number {
  font-size: clamp(6rem, 20vw, 14rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--surface);
  line-height: 1;
  display: block;
  margin-bottom: -10px;
}
.page-404-title { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.page-404-sub { color: var(--muted); margin-bottom: 32px; font-size: 1rem; }

/* ——————————————————————————————————————
   Scroll Animations (GSAP targets)
   —————————————————————————————————————— */
/* Hidden state only applies once JS confirms GSAP is ready —
   otherwise content must never be stuck invisible. */
.gsap-ready .anim-fade-up { opacity: 0; transform: translateY(28px); }
.gsap-ready .anim-fade-in { opacity: 0; }
.gsap-ready .anim-fade-left  { opacity: 0; transform: translateX(-28px); }
.gsap-ready .anim-fade-right { opacity: 0; transform: translateX(28px); }

/* ——————————————————————————————————————
   Loading spinner
   —————————————————————————————————————— */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ——————————————————————————————————————
   Produits page filters
   —————————————————————————————————————— */
.products-header {
  padding: calc(var(--nav-h) + 64px) 0 40px;
}
.products-count { font-size: 0.875rem; color: var(--muted); margin-top: 8px; }

/* ——————————————————————————————————————
   Toasts
   —————————————————————————————————————— */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.toast {
  background: var(--text);
  color: white;
  border-radius: var(--radius);
  padding: 12px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.3s var(--ease-out);
  pointer-events: all;
}
.toast.error { background: var(--red); }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ——————————————————————————————————————
   Utility classes
   —————————————————————————————————————— */
.text-red    { color: var(--red); }
.text-muted  { color: var(--muted); }
.text-center { text-align: center; }
.mt-auto     { margin-top: auto; }
.hidden      { display: none !important; }

/* ——————————————————————————————————————
   Cart Drawer
   —————————————————————————————————————— */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 150;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  height: 100dvh;
  width: 430px;
  max-width: 92vw;
  background: var(--bg);
  z-index: 160;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.38s var(--ease-out);
  box-shadow: -12px 0 48px rgba(0, 0, 0, 0.18);
}
.cart-drawer.open { transform: translateX(0); }

.cart-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}
.cart-view.hidden { display: none; }

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-head h3 {
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.cart-head-count { color: var(--muted); font-weight: 500; font-size: 0.8125rem; }

.cart-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background 0.15s;
  flex-shrink: 0;
}
.cart-icon-btn:hover { background: var(--border); }
.cart-back { margin-right: auto; }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 6px 22px;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--muted);
  padding: 64px 20px;
  gap: 6px;
}
.cart-empty svg { color: var(--border); margin-bottom: 12px; }
.cart-empty strong { color: var(--text); font-size: 1rem; font-weight: 700; }
.cart-empty span { font-size: 0.875rem; }

.cart-line {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.cart-line:last-child { border-bottom: none; }
.cart-line-img {
  width: 68px;
  height: 68px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-line-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-info { flex: 1; min-width: 0; }
.cart-line-name { font-weight: 600; font-size: 0.9375rem; line-height: 1.3; }
.cart-line-pack { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }
.cart-line-price { color: var(--red); font-weight: 700; font-size: 0.875rem; margin-top: 6px; }
.cart-line-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}
.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.qty-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  line-height: 1;
  color: var(--text);
  background: var(--white);
  transition: background 0.15s;
}
.qty-btn:hover { background: var(--surface); }
.qty-btn:disabled { opacity: 0.4; cursor: default; }
.qty-val { width: 34px; text-align: center; font-size: 0.875rem; font-weight: 600; }
.cart-line-remove {
  font-size: 0.75rem;
  color: var(--muted);
  background: none;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
}
.cart-line-remove:hover { color: var(--red); }

.cart-foot {
  border-top: 1px solid var(--border);
  padding: 18px 22px 22px;
  flex-shrink: 0;
}
.cart-foot.hidden { display: none; }
.cart-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}
.cart-total-row span { color: var(--muted); font-size: 0.9375rem; }
.cart-total-row strong { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em; }
.cart-foot .btn { width: 100%; }
.cart-foot-note { font-size: 0.6875rem; color: var(--muted); text-align: center; margin-top: 12px; line-height: 1.5; }

.cart-checkout-form {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Cart success state */
.cart-success {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 28px;
  gap: 8px;
}
.cart-success-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--red-light);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.cart-success h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.cart-success p { color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }
.cart-success-ref {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 12px 20px;
  margin: 12px 0 24px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--red);
  letter-spacing: 0.05em;
}

/* Add-to-cart button on product cards */
.card-add {
  background: var(--white);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: var(--radius);
  width: 100%;
  text-align: center;
  letter-spacing: 0.01em;
  transform: translateY(8px);
  transition: transform 0.28s var(--ease-out), background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.product-card:hover .card-add { transform: translateY(0); }
.card-add:hover { background: var(--red); color: var(--white); }

/* Add-to-cart button on product page */
.btn-add-cart {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 10px;
  border-radius: var(--radius);
}

/* ——————————————————————————————————————
   Hero Entrance Animations
   —————————————————————————————————————— */
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-anim {
  animation: heroReveal 0.8s var(--ease-out) both;
}

/* ——————————————————————————————————————
   Hero — glow background + media layer
   —————————————————————————————————————— */
.hero {
  background: radial-gradient(ellipse at 75% 15%, rgba(216, 30, 63, 0.07) 0%, transparent 55%);
}
.hero-media::before {
  content: '';
  position: absolute;
  width: 65%;
  height: 65%;
  background: radial-gradient(circle, rgba(216, 30, 63, 0.18) 0%, transparent 70%);
  bottom: -12%;
  right: -18%;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

/* ——————————————————————————————————————
   Hero Float Card — floating animation
   —————————————————————————————————————— */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}
.hero-float-card {
  animation: float 3.8s ease-in-out infinite;
}

/* Colored avatar dots */
.hero-trust-dot:nth-child(1) { background: linear-gradient(135deg, #D81E3F, #B8182F); }
.hero-trust-dot:nth-child(2) { background: linear-gradient(135deg, #C4A882, #9A7A52); }
.hero-trust-dot:nth-child(3) { background: linear-gradient(135deg, #70645A, #4A4540); }
.hero-trust-dot:nth-child(4) { background: linear-gradient(135deg, #2A2A2A, #1A1A1A); }

/* ——————————————————————————————————————
   Section modifier — remove top padding
   —————————————————————————————————————— */
.section--slim-top { padding-top: 0 !important; }

/* ——————————————————————————————————————
   Stats Ribbon
   —————————————————————————————————————— */
.stats-ribbon {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr 1fr; row-gap: 36px; }
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2px 16px;
  gap: 9px;
  text-align: center;
  border-left: 1px solid var(--border);
}
.stat-item:first-child { border-left: none; }
@media (max-width: 640px) {
  .stat-item:nth-child(odd) { border-left: none; }
}
.stat-number-wrap {
  display: flex;
  align-items: baseline;
  gap: 2px;
  line-height: 1;
}
.stat-number {
  font-size: clamp(1.75rem, 3.5vw, 2.625rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}
.stat-unit {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}
.stat-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ——————————————————————————————————————
   Product Card — hover overlay CTA
   —————————————————————————————————————— */
.product-card-img { position: relative; }

.product-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 20, 20, 0.72) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 14px;
  opacity: 0;
  transition: opacity 0.28s;
}
.product-card:hover .product-card-overlay { opacity: 1; }

.product-card-cta-btn {
  background: var(--white);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: var(--radius);
  width: 100%;
  text-align: center;
  letter-spacing: 0.01em;
  transform: translateY(8px);
  transition: transform 0.28s var(--ease-out);
  display: block;
}
.product-card:hover .product-card-cta-btn { transform: translateY(0); }

/* ——————————————————————————————————————
   Brand Strip
   —————————————————————————————————————— */
.brand-strip {
  background: var(--text);
  color: var(--white);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) { .brand-strip { padding: 96px 0; } }

.brand-strip::before {
  content: '';
  position: absolute;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(216, 30, 63, 0.28) 0%, transparent 65%);
  top: -160px;
  right: -120px;
  border-radius: 50%;
  pointer-events: none;
}
.brand-strip::after {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(216, 30, 63, 0.1) 0%, transparent 65%);
  bottom: -100px;
  left: -80px;
  border-radius: 50%;
  pointer-events: none;
}

.brand-strip-inner {
  max-width: 820px;
  position: relative;
  z-index: 1;
}

.brand-strip-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 28px;
}
.brand-strip-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--red);
  flex-shrink: 0;
}

.brand-strip-heading {
  font-size: clamp(2.25rem, 6vw, 4.75rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.04;
  color: var(--white);
  margin-bottom: 44px;
}
.brand-strip-heading em {
  font-style: normal;
  color: var(--red);
}

.brand-strip-cta {
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s, gap 0.2s;
}
.brand-strip-cta:hover {
  color: var(--white);
  gap: 12px;
}
