/*
 * The Nichest – Main Stylesheet
 * Fonts: Cormorant Garamond (display) + DM Sans (body)
 */

/* =============================================
   1. CSS VARIABLES & RESET
   ============================================= */
:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f7f5f2;
  --color-dark: #1a1a1a;
  --color-dark-soft: #2d2d2d;
  --color-text: #3a3a3a;
  --color-text-muted: #7a7a7a;
  --color-accent: #c9a96e;
  --color-accent-dark: #a0824f;
  --color-border: #e8e4df;
  --color-white: #ffffff;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  /* Pill bar: 108px tall → semicircle caps; logo 106×106 sits flush vertically */
  --navbar-inner-h: 108px;
  --navbar-inner-max: 1440px;
  --navbar-logo: 106px;
  --radius-navbar: 54px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 4px 24px rgba(0,0,0,.10);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.14);

  --transition: 0.28s ease;
  --container-max: 1440px;
  --container-pad: clamp(16px, 5vw, 80px);
  /* Floating navbar: 12px pad + bar + 12px pad */
  --header-height: 132px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 15px; line-height: 1.7; color: var(--color-text); background: var(--color-bg); -webkit-font-smoothing: antialiased; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }
.skip-link { position: absolute; top: -40px; left: 16px; z-index: 10000; background: var(--color-dark); color: #fff; padding: 8px 16px; border-radius: var(--radius-sm); font-size: 14px; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 8px; }

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

/* =============================================
   2. LAYOUT
   ============================================= */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad); }

/* =============================================
   3. TYPOGRAPHY
   ============================================= */
.section-title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 46px); font-weight: 400; color: var(--color-dark); line-height: 1.2; margin-bottom: 12px; }
.section-title-center { text-align: center; }
.section-desc { color: var(--color-text-muted); max-width: 960px; }
.section-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }

/* =============================================
   4. BUTTONS
   ============================================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 30px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; transition: all var(--transition); white-space: nowrap; cursor: pointer; border: 1.5px solid transparent; }
.btn-dark { background: var(--color-dark); color: #fff; border-color: var(--color-dark); }
.btn-dark:hover { background: var(--color-dark-soft); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-outline { background: transparent; color: var(--color-dark); border-color: var(--color-dark); }
.btn-outline:hover { background: var(--color-dark); color: #fff; }
.btn-outline-dark { background: transparent; color: var(--color-dark); border-color: var(--color-dark); }
.btn-outline-dark:hover { background: var(--color-dark); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-light:hover { background: rgba(255,255,255,.15); border-color: #fff; }
.btn-hero { background: #fff; color: var(--color-dark); border-color: #fff; font-size: 14px; padding: 14px 36px; }
.btn-hero:hover { background: var(--color-bg-alt); }
.btn-full { width: 100%; }

/* =============================================
   5. HEADER — Pill / Floating Navbar
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  /* transparent bg so the pill floats */
  background: transparent;
  pointer-events: none; /* let clicks pass through the space outside the pill */
}
.navbar {
  pointer-events: auto;
  padding: 12px var(--container-pad);
  max-width: calc(var(--navbar-inner-max) + 2 * var(--container-pad));
  margin: 0 auto;
}
.navbar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: var(--navbar-inner-max);
  height: var(--navbar-inner-h);
  min-height: var(--navbar-inner-h);
  margin: 0 auto;
  padding: 0 32px;
  background: var(--color-white);
  border-radius: var(--radius-navbar);
  box-shadow: 0 4px 32px rgba(0,0,0,.10);
}

/* Logo — 106×106 in 108px bar; override global img { max-width: 100% } */
.navbar-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}
.navbar-logo img {
  width: var(--navbar-logo);
  height: var(--navbar-logo);
  max-width: var(--navbar-logo);
  object-fit: contain;
}

/* Nav Menu */
.navbar-menu { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; }
.nav-link { position: relative; display: flex; align-items: center; gap: 4px; padding: 8px 13px; font-size: 14px; font-weight: 400; color: var(--color-dark); letter-spacing: .02em; border-radius: var(--radius-sm); transition: color var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--color-accent); }
.nav-link.active::after { content: ''; position: absolute; bottom: 2px; left: 13px; right: 13px; height: 2px; background: var(--color-accent); border-radius: 2px; }
.chevron { transition: transform var(--transition); }
.has-dropdown:hover .chevron { transform: rotate(180deg); }

/* Mega Menu */
.has-dropdown { position: relative; }
.mega-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  padding: 24px;
  min-width: 580px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  pointer-events: none;
}
.has-dropdown:hover .mega-menu,
.has-dropdown:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.mega-menu-grid { display: flex; flex-direction: column; gap: 14px; }
.mega-menu-top-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mega-menu-bottom-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mega-menu-bottom-row .mega-menu-item { padding: 15px; }
.mega-menu-bottom-row .mega-menu-label { font-size: 13px; }
.mega-menu-item { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 10px; border-radius: var(--radius-sm); transition: background var(--transition); text-align: center; }
.mega-menu-item:hover { background: var(--color-bg-alt); }
.mega-menu-img { width: 100%; aspect-ratio: 7/9; overflow: hidden; border-radius: var(--radius-sm); }
.mega-menu-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.mega-menu-item:hover .mega-menu-img img { transform: scale(1.04); }
.mega-menu-label { font-size: 12px; font-weight: 500; color: var(--color-dark); }

/* Nav Actions */
.navbar-actions { display: flex; align-items: center; gap: 2px; }
.nav-icon-btn { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--color-dark); transition: background var(--transition); }
.nav-icon-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.nav-icon-btn:hover { background: var(--color-bg-alt); }
.badge { position: absolute; top: 4px; right: 4px; background: var(--color-dark); color: #fff; font-size: 10px; font-weight: 600; min-width: 16px; height: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }

/* Search Bar */
.search-bar { padding: 10px var(--container-pad); background: var(--color-bg-alt); border-bottom: 1px solid var(--color-border); animation: slideDown .2s ease; pointer-events: auto; }
@keyframes slideDown { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }
.search-form { display: flex; max-width: 560px; margin: 0 auto; border: 1.5px solid var(--color-dark); border-radius: var(--radius-pill); overflow: hidden; background: #fff; }
.search-input { flex: 1; padding: 10px 20px; border: none; outline: none; font-family: var(--font-body); font-size: 14px; }
.search-submit { padding: 10px 16px; color: var(--color-dark); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; padding: 8px; }
.hamburger span { display: block; width: 100%; height: 1.5px; background: var(--color-dark); border-radius: 2px; transition: all var(--transition); }

/* Mobile Menu */
.mobile-menu { position: fixed; inset: 0; background: #fff; z-index: 2000; padding: 24px; overflow-y: auto; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; padding-bottom: 16px; border-bottom: 1px solid var(--color-border); }
.mobile-close { color: var(--color-dark); }
.mobile-nav li a { display: block; padding: 16px 0; font-size: 22px; font-family: var(--font-display); font-weight: 400; color: var(--color-dark); border-bottom: 1px solid var(--color-border); transition: color var(--transition); }
.mobile-nav li a:hover { color: var(--color-accent); }

/* =============================================
   6. HERO CAROUSEL
   ============================================= */
.hero {
  position: relative;
  height: clamp(420px, 62vw, 946px);
  overflow: hidden;
  /* Overlap: pull up by full floating header (pad + bar + pad) */
  margin-top: calc(-1 * var(--header-height));
}
.hero-slides { position: relative; width: 100%; height: 100%; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-media { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* Overlay for text readability */
.hero-slide::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.28); z-index: 1; }

/* Hero Content */
.hero-content {
  position: absolute;
  bottom: 31%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  width: 90%;
  max-width: 860px;
}
.hero-text {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.5vw, 42px);
  font-weight: 400;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 28px;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}

/* Hero Buttons */
.hero-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255,255,255,.4);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.hero-btn:hover { background: rgba(255,255,255,.32); }
.hero-prev { left: 28px; }
.hero-next { right: 28px; }

/* Hero Dots */
.hero-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 8px; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.45); border: 1.5px solid rgba(255,255,255,.7); transition: all var(--transition); cursor: pointer; }
.hero-dot.active { background: #fff; transform: scale(1.2); }

/* =============================================
   7. TRUST BAR
   ============================================= */
.trust-bar { background: var(--color-dark); color: #fff; padding: 20px 0; }
.trust-bar-list { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 16px; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }

/* =============================================
   8. CATEGORY CARDS (pointer-drag rail; no full-bleed <a> in markup)
   ============================================= */
/* =============================================
   8. CATEGORY CARDS SLIDER
   ============================================= */
.categories-section {
  padding: 56px 0;
  overflow: hidden;
}

.categories-slider-wrap {
  position: relative;
}

.categories-slider {
  overflow: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.categories-slider.is-dragging {
  cursor: grabbing;
}

.categories-slider-rail {
  display: flex;
  gap: 16px;
  padding: 8px 0 20px;
  transition: transform .42s cubic-bezier(.25, .46, .45, .94);
  will-change: transform;
}

.category-card {
  flex: 0 0 260px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .32s ease, box-shadow .32s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 52px rgba(0, 0, 0, .22);
}

.category-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.category-card-inner {
  display: block;
  position: relative;
}

.category-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 20px;
}

.category-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  pointer-events: none;
  transition: transform .55s cubic-bezier(.25, .46, .45, .94);
}

.category-card:hover .category-card-img {
  transform: scale(1.07);
}

.category-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(to top,
      rgba(0, 0, 0, .80) 0%,
      rgba(0, 0, 0, .45) 35%,
      rgba(0, 0, 0, .10) 60%,
      transparent 80%);
}

.category-card-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 22px 18px 20px;
  z-index: 2;
}

.category-card-name {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.3vw, 17px);
  font-weight: 400;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 6px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}

.category-card-count {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}

/* ── Responsive ─── */
@media (max-width: 1200px) {
  .category-card {
    flex: 0 0 240px;
  }
}

@media (max-width: 900px) {
  .category-card {
    flex: 0 0 210px;
  }
}

@media (max-width: 640px) {
  .category-card {
    flex: 0 0 clamp(155px, 40vw, 200px);
  }

  .categories-slider-rail {
    gap: 12px;
  }

  .category-card-name {
    font-size: 13px;
  }

  .category-card-count {
    font-size: 10px;
  }
}
/* =============================================
   9. BRAND STORY
   ============================================= */
.brand-story { padding: 80px 0; }
.brand-story-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.brand-story-eyebrow { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 16px; }
.brand-story-title { font-family: var(--font-display); font-size: clamp(26px, 3.2vw, 40px); font-weight: 400; line-height: 1.25; color: var(--color-dark); margin-bottom: 20px; }
.brand-story-desc { color: var(--color-text-muted); margin-bottom: 28px; line-height: 1.8; }
.brand-story-image img { border-radius: var(--radius-md); width: 100%; height: 360px; object-fit: cover; }

/* =============================================
   10. NOUVEAUTÉS SLIDER
   ============================================= */
.nouveautes-section { padding: 80px 0; background: var(--color-dark); color: #fff; }
.nouveautes-section .section-title { color: #fff; }
.nouveautes-section .section-desc { color: rgba(255,255,255,.6); }

.products-slider-wrap { position: relative; }
.products-slider { overflow: hidden; }
.slider-track { display: flex; flex-wrap: nowrap; gap: 20px; transition: transform .42s cubic-bezier(.25,.46,.45,.94); will-change: transform; touch-action: pan-x; user-select: none; cursor: grab; }
#nouveautesTrack { touch-action: pan-x; -webkit-user-select: none; user-select: none; }
.slider-track.dragging { cursor: grabbing; }
.nouveautes-section .slider-item { flex: 0 0 calc((100% - 60px) / 4); min-width: 0; align-self: flex-start; }

/* Slider Buttons */
.slider-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--color-dark);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  z-index: 10;
}
.slider-btn:hover { background: var(--color-accent); color: #fff; }
.slider-prev { left: -22px; }
.slider-next { right: -22px; }

/* Product Card (shared) */
.product-card { }
.product-card-media { position: relative; width: 100%; }
.product-card-link { display: block; width: 100%; }
.product-card-link--image { text-decoration: none; color: inherit; }
.product-card-link--meta { text-decoration: none; color: inherit; }
.product-card-img-wrap { position: relative; overflow: hidden; border-radius: var(--radius-md); width: 100%; max-width: none; aspect-ratio: 1; background: var(--color-bg-alt); margin-inline: auto; }
.nouveautes-section .product-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; transition: opacity .4s ease, transform .5s ease; }
.nouveautes-section .product-image-primary { opacity: 1; }
.nouveautes-section .product-image-secondary { opacity: 0; }
.nouveautes-section .product-card:hover .product-image-primary { opacity: 0; }
.nouveautes-section .product-card:hover .product-image-secondary { opacity: 1; }
.nouveautes-section .product-card:hover .product-card-img-wrap img { transform: scale(1.05); }

.product-card-img-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 28px 12px 14px;
  font-family: var(--font-display);
  font-size: clamp(15px, 2.8vw, 18px);
  font-weight: 400;
  line-height: 1.25;
  color: #fff;
  text-align: center;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.4) 45%, transparent 100%);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* Hover actions — fine pointer: show on card hover; touch: always visible + clickable */
.product-card-hover-actions {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 12;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .product-card:hover .product-card-hover-actions {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }
}
/* Phones / tablets: no reliable hover — keep cart & wishlist usable */
@media (hover: none), (pointer: coarse) {
  .product-card-hover-actions {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }
}
.product-action-circle {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #fff;
  color: var(--color-dark);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.product-action-circle:hover { background: var(--color-dark); color: #fff; }

/* Add to cart bar — desktop hover only */
.product-add-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,.78);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .05em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}
@media (hover: hover) and (pointer: fine) {
  .product-card:hover .product-add-bar { opacity: 1; }
}

.product-card-info { padding: 12px 4px 0; }
.product-card-name { font-family: var(--font-display); font-size: 17px; font-weight: 400; color: #fff; line-height: 1.3; }
/* In non-dark sections */
.category-listing .product-card-name,
.nouveautes-listing .product-card-name,
.related-products .product-card-name,
.recently-viewed .product-card-name,
.search-results-section .product-card-name { color: var(--color-dark); }
.product-card-price { font-size: 14px; font-weight: 500; color: var(--color-accent); margin-top: 4px; }

/* =============================================
   11. TESTIMONIALS SLIDER
   ============================================= */
.testimonials-section { padding: 30px 0; background: var(--color-bg); }
.testimonials-slider-wrap { margin-top: 48px; position: relative; }
.testimonials-inner { position: relative; min-height: 320px; }
.testimonial-slide { display: none; }
.testimonial-slide.active { display: block; animation: fadeInUp .4s ease; }
@keyframes fadeInUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }

.testimonial-layout {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 60px;
  align-items: center;
}
.testimonial-content { }
.testimonial-author { font-size: 16px; font-weight: 700; font-style: normal; color: var(--color-dark); display: block; margin-bottom: 8px; }
.testimonial-stars { display: flex; gap: 3px; margin-bottom: 20px; }
.testimonial-text p { color: var(--color-text); line-height: 1.85; font-size: 15px; }
.testimonial-nav { display: flex; gap: 10px; margin-top: 28px; }
.testimonial-nav-single { justify-content: center; }
.testimonial-nav-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-dark);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.testimonial-nav-btn:hover { background: var(--color-accent); }

.testimonial-image img { width: 100%; border-radius: var(--radius-md); object-fit: cover; aspect-ratio: 11/9; }

/* =============================================
   12. INSTAGRAM (desktop = grid, mobile = separate slider block)
   ============================================= */
.instagram-section { padding: 0 0 0; }
/* Desktop: 5-up grid, hidden on small viewports */
.instagram-section--desktop { display: block; }
.instagram-section--desktop .instagram-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 32px;
}
/* Mobile: slider only, hidden on desktop */
.instagram-section--mobile { display: none; }
@media (max-width: 767px) {
  .instagram-section--desktop { display: none; }
  .instagram-section--mobile { display: block; padding: 24px 0 0; }
  .instagram-section--mobile .instagram-slider { overflow: hidden; margin-top: 24px; }
  .instagram-section--mobile .instagram-slider-rail {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    min-height: 0;
    margin-top: 0;
    gap: 0;
    touch-action: pan-y;
  }
  .instagram-section--mobile .instagram-slider-rail.instagram-slider-track { will-change: transform; }
  /* Slide width set in JS (100% of .instagram-slider) so the rail is wider than the viewport */
  .instagram-section--mobile .instagram-item {
    flex-shrink: 0;
    border-radius: var(--radius-md);
  }
  .instagram-section--mobile .instagram-item img { transition: transform .3s ease; }
  .instagram-section--mobile .instagram-item:hover img { transform: none; }
}

.instagram-item { position: relative; aspect-ratio: 1; overflow: hidden; }
.instagram-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.instagram-item:hover img { transform: scale(1.08); }
.instagram-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity var(--transition); }
.instagram-item:hover .instagram-overlay { opacity: 1; }

/* =============================================
   13. MAP / SHOWROOM
   ============================================= */
.showroom-section { padding: 60px 0 0; }
.map-container { margin-top: 32px; width: 100%; overflow: hidden; }
.map-container iframe { display: block; width: 100% !important; max-width: 100%; }

/* =============================================
   14. NEWSLETTER
   ============================================= */
.newsletter-section { padding: 64px var(--container-pad); text-align: center; background: var(--color-bg); border-top: 1px solid var(--color-border); }
.newsletter-title { font-family: var(--font-display); font-size: clamp(20px, 3vw, 30px); font-weight: 400; color: var(--color-dark); margin-bottom: 28px; line-height: 1.4; }
.newsletter-form { max-width: 520px; margin: 0 auto; }
.newsletter-input-wrap { display: flex; border: 1.5px solid var(--color-dark); border-radius: var(--radius-pill); overflow: hidden; background: #fff; }
.newsletter-input { flex: 1; padding: 12px 20px; border: none; outline: none; font-family: var(--font-body); font-size: 14px; }
.newsletter-btn { background: var(--color-dark); color: #fff; padding: 12px 24px; font-size: 13px; font-weight: 500; letter-spacing: .04em; transition: background var(--transition); white-space: nowrap; }
.newsletter-btn:hover { background: var(--color-dark-soft); }

/* =============================================
   15. FOOTER
   ============================================= */
.site-footer { background: var(--color-dark); color: white; padding: 64px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-brand img { width: 100px; }
.footer-address p { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 13px; line-height: 1.6; }
.footer-address a { color: inherit; transition: color var(--transition); }
.footer-address a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.7); transition: all var(--transition); }
.footer-social a:hover { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.footer-heading { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer-nav ul li { margin-bottom: 10px; }
.footer-nav a { font-size: 13px; color: rgba(255,255,255,.65); transition: color var(--transition); }
.footer-nav a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,.5); }
.footer-bottom a { color: rgba(255,255,255,.7); transition: color var(--transition); }
.footer-bottom a:hover { color: #fff; }
.footer-legal { display: flex; gap: 20px; font-size: 12px; }

/* =============================================
   16. PAGE HERO (inner pages)
   ============================================= */
/* Same overlap as .hero: background image extends to the top of the viewport under the floating pill header */
.page-hero {
  position: relative;
  height: 400px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: calc(-1 * var(--header-height));
}
/* Small inner-page hero: clear sticky navbar, keep background bleed; breadcrumbs readable */
.page-hero--sm {
  min-height: calc(var(--header-height) + 5.5rem);
  height: auto;
  max-height: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
}
.page-hero--sm .page-hero-bg { pointer-events: none; }
.page-hero--sm .container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: calc(var(--header-height) + 12px) var(--container-pad) 1.25rem;
  z-index: 1;
  position: relative;
  box-sizing: border-box;
}
.page-hero--sm .breadcrumb {
  max-width: 100%;
}
.page-hero--sm .breadcrumb ol {
  line-height: 1.4;
  font-size: 12px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.4) 100%);
  padding: 10px 12px;
  border-radius: 4px;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  margin-left: 0;
}
.page-hero-bg { position: absolute; inset: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.page-hero:not(.page-hero--sm) .container { position: relative; z-index: 1; padding-bottom: 24px; }
.page-title { font-family: var(--font-display); font-size: clamp(24px, 4vw, 40px); color: var(--color-dark); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--color-text-muted); margin-bottom: 8px; }
.breadcrumb li:not(:last-child)::after { content: '/'; margin-left: 6px; }
.breadcrumb a:hover { color: var(--color-accent); }

/* =============================================
   17. CATEGORIES PAGE
   ============================================= */
.categories-page-section { padding: 64px 0; }
.cat-page-item { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding: 64px 0; border-bottom: 1px solid var(--color-border); }
.cat-page-item:last-child { border-bottom: none; }
.cat-page-item--text-right .cat-page-text { order: 2; }
.cat-page-item--text-right .cat-page-img-wrap { order: 1; }
.cat-page-name { font-family: var(--font-display); font-size: clamp(28px, 3.5vw, 42px); font-weight: 400; color: var(--color-dark); margin-bottom: 12px; }
.cat-page-desc { color: var(--color-text-muted); margin-bottom: 28px; line-height: 1.8; font-style: italic; }
.cat-page-img-wrap img { width: 100%; border-radius: var(--radius-md); object-fit: cover; aspect-ratio: 4/3; }

/* =============================================
   18. CATEGORY LISTING
   ============================================= */
.category-listing { padding: 48px 0 80px; }
.category-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.sidebar-heading { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--color-dark); margin-bottom: 14px; }
.sidebar-cat-list li { margin-bottom: 2px; }
.sidebar-cat-list a { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: var(--radius-sm); font-size: 13px; color: var(--color-text); transition: all var(--transition); }
.sidebar-cat-list a:hover, .sidebar-cat-active { background: var(--color-bg-alt); color: var(--color-dark); font-weight: 500; }
.sidebar-cat-count { color: var(--color-text-muted); font-size: 12px; }
.products-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid var(--color-border); }
.sort-select { padding: 8px 14px; border: 1.5px solid var(--color-border); border-radius: var(--radius-pill); font-family: var(--font-body); font-size: 13px; background: #fff; cursor: pointer; outline: none; }
.sort-select:focus { border-color: var(--color-dark); }
.view-toggles { display: flex; gap: 4px; }
.view-toggle { width: 36px; height: 36px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: var(--color-text-muted); transition: all var(--transition); }
.view-toggle:hover, .view-toggle.active { background: var(--color-dark); color: #fff; }
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.products-list { display: flex; flex-direction: column; gap: 16px; }
.no-products { color: var(--color-text-muted); font-style: italic; grid-column: 1/-1; }
.pagination-wrap {
  margin-top: clamp(32px, 5vw, 48px);
  padding: 0 var(--container-pad) 6px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.pagination-wrap::-webkit-scrollbar { height: 4px; }
.pagination-wrap::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 2px;
}
.pagination-wrap .pagination-panel {
  width: 100%;
  max-width: 100%;
  flex: 0 0 auto;
  margin-inline: auto;
}

/* =============================================
   19. NOUVEAUTES PAGE
   ============================================= */
.nouveautes-listing { padding: 64px 0; }
.nouveautes-listing .products-grid { grid-template-columns: repeat(4, 1fr); }
.nouveautes-listing .product-card-name { color: var(--color-dark); }

/* =============================================
   20. ABOUT PAGE
   ============================================= */
.about-story { padding: 80px 0; }
.about-story-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.about-story-image img { border-radius: var(--radius-md); width: 100%; object-fit: cover;  }
.about-brand-name { font-family: var(--font-display); font-size: clamp(32px, 4vw, 52px); font-weight: 400; color: var(--color-dark); margin-bottom: 20px; }
.about-story-content p { margin-bottom: 16px; line-height: 1.85; color: var(--color-text); }
.about-story-content strong { color: var(--color-dark); }
.about-carousel { position: relative; }
.about-carousel-slide { display: none; }
.about-carousel-slide.active { display: block; }
.about-carousel-slide img { width: 100%; height: 600px; object-fit: cover; }
.about-carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--color-dark); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); z-index: 10; transition: all var(--transition); }
.about-carousel-btn:hover { background: #fff; }
.about-carousel-prev { left: 24px; }
.about-carousel-next { right: 24px; }
.about-partners { padding: 48px 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.partners-logos { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 32px; }
.partner-logo { opacity: .5; transition: opacity var(--transition); }
.partner-logo:hover { opacity: 1; }
.partner-logo img { height: 36px; width: auto; object-fit: contain; filter: grayscale(1); }

/* =============================================
   21. PRODUCT DETAIL
   ============================================= */
.product-detail { padding: 64px 0; }
.product-detail-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; min-width: 0; }
.category-products { min-width: 0; }

/* Gallery: main on top, thumbnail strip below — fluid frame, thumbs always smaller than main */
.product-gallery {
  --pg-aspect: 4 / 3;
  --thumb-gap: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  min-width: 0;
  width: 100%;
}
.product-gallery-main {
  position: relative;
  width: 100%;
  min-width: 0;
}
.product-gallery-main.is-dragging {
  user-select: none;
  -webkit-user-select: none;
}
/* Main image: responsive 4:3, bounded height so layout stays balanced on all screens */
.product-gallery-viewport {
  position: relative;
  width: 100%;
  margin-inline: auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-alt);
  aspect-ratio: var(--pg-aspect);
  max-height: min(72vh, 720px);
  min-height: 0;
  touch-action: pan-x pinch-zoom;
}
.product-gallery-viewport.is-draggable { cursor: grab; }
.product-gallery-viewport.is-draggable.is-dragging { cursor: grabbing; }
.product-gallery-track {
  display: flex;
  height: 100%;
  width: auto;
  min-width: 100%;
  will-change: transform;
  transition: transform 0.45s cubic-bezier(0.33, 1, 0.68, 1);
  flex-direction: row;
  flex-wrap: nowrap;
}
.product-gallery-viewport--instant .product-gallery-track { transition: none; }
.product-gallery-slide {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  height: 100%;
  position: relative;
  box-sizing: border-box;
}
.product-gallery-slide img,
.product-main-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-dark);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  padding: 0;
}
.product-gallery-nav:hover {
  background: var(--color-dark);
  color: #fff;
}
.product-gallery-nav:disabled,
.product-gallery-nav[hidden] {
  opacity: 0.35;
  pointer-events: none;
}
.product-gallery-nav--prev { left: 10px; }
.product-gallery-nav--next { right: 10px; }
@media (max-width: 768px) {
  .product-gallery-nav--prev { left: 6px; }
  .product-gallery-nav--next { right: 6px; }
  .product-gallery-nav { width: 38px; height: 38px; }
}

/* Thumbnail row: always narrower than main; ~4 per view; nav arrows */
.product-thumbs-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.product-thumbs-wrap.is-thumb-dragging {
  user-select: none;
  -webkit-user-select: none;
  cursor: grabbing;
}
.product-thumbs-nav {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), border-color var(--transition);
}
.product-thumbs-nav:hover:not([disabled]) {
  background: var(--color-bg-alt);
  border-color: var(--color-dark);
}
.product-thumbs-nav[disabled],
.product-thumbs-nav[hidden] {
  opacity: 0.25;
  pointer-events: none;
}
.product-thumbs-viewport {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-sm);
  /* Height set by square thumbs — JS + aspect; cap so thumbs never look larger than main */
  max-height: 88px;
  touch-action: pan-x;
}
.product-thumbs-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: var(--thumb-gap, 8px);
  will-change: transform;
  transition: transform 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
  align-items: stretch;
}
.product-thumbs-viewport--instant .product-thumbs-track { transition: none; }
.product-thumb {
  flex-shrink: 0;
  width: 64px;
  min-width: 48px;
  max-width: 80px;
  height: auto;
  aspect-ratio: 1;
  max-height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--color-border);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
  background: var(--color-bg-alt);
  padding: 0;
  box-sizing: border-box;
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.product-thumb:hover:not(.active):not(:disabled) {
  border-color: var(--color-dark);
  transform: translateY(-1px);
}
.product-thumb.active {
  border-color: var(--color-dark);
  box-shadow: 0 0 0 1px var(--color-dark), 0 4px 12px rgba(0, 0, 0, 0.08);
}
.product-thumb:focus-visible {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(201, 169, 110, 0.45), 0 4px 12px rgba(0, 0, 0, 0.06);
}
.product-thumb:disabled {
  opacity: 0.5;
  cursor: default;
}
.product-zoom-btn { position: absolute; top: 12px; right: 12px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.9); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); transition: all var(--transition); border: none; cursor: pointer; }
.product-gallery-viewport .product-main-img { cursor: zoom-in; }
.product-zoom-btn:hover { background: var(--color-dark); color: #fff; }
.product-title { font-family: var(--font-display); font-size: clamp(28px, 3.5vw, 44px); font-weight: 400; color: var(--color-dark); margin-bottom: 16px; }
.product-info { min-width: 0; }
.product-short-desc { color: var(--color-text-muted); line-height: 1.8; margin-bottom: 24px; }
.price-amount { font-size: 22px; font-weight: 600; color: var(--color-dark); }
.product-cta-group { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.product-meta { font-size: 13px; color: var(--color-text-muted); margin-bottom: 16px; }
.wishlist-btn { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--color-text-muted); transition: color var(--transition); }
.wishlist-btn:hover { color: var(--color-dark); }
.product-tabs { display: flex; border-bottom: 2px solid var(--color-border); margin: 48px 0 0; }
.product-tab { padding: 14px 28px; font-size: 14px; font-weight: 500; color: var(--color-text-muted); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all var(--transition); }
.product-tab:hover { color: var(--color-dark); }
.product-tab.active { color: var(--color-dark); border-bottom-color: var(--color-dark); }
.product-tab-panel { padding: 32px 0; display: none; }
.product-tab-panel.active { display: block; }
.product-description p { margin-bottom: 16px; line-height: 1.8; color: var(--color-text); }
.related-products, .recently-viewed { padding: 64px 0; }
.related-products .products-grid, .recently-viewed #recentlyViewedGrid { grid-template-columns: repeat(2, 1fr); max-width: 640px; margin: 40px auto 0; }

/* =============================================
   22. ORDER MODAL
   ============================================= */
/* [hidden] must win over display:flex — without this the modal stays visible and “FERMER” seems broken */
.modal-overlay[hidden] {
  display: none !important;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn .2s ease;
}
.modal-box {
  background: #fff;
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 48px;
  position: relative;
  animation: slideUp .25s ease;
}
@keyframes slideUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--color-dark);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  transition: background var(--transition);
  cursor: pointer;
  z-index: 2;
}
.modal-close:hover { background: #444; }
.modal-title { font-family: var(--font-display); font-size: 28px; font-weight: 400; color: var(--color-dark); margin-bottom: 28px; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--color-dark); margin-bottom: 6px; }
.form-input, .form-textarea { width: 100%; padding: 12px 16px; border: 1.5px solid var(--color-border); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 14px; color: var(--color-dark); background: var(--color-bg-alt); transition: border-color var(--transition); outline: none; }
.form-input:focus, .form-textarea:focus { border-color: var(--color-dark); background: #fff; }
.form-textarea { resize: vertical; min-height: 120px; }
.form-error { font-size: 12px; color: #e53e3e; display: block; margin-top: 4px; }
.form-input.is-error, .form-textarea.is-error { border-color: #e53e3e; }
.modal-success { text-align: center; padding: 40px 0; }
.modal-success svg { margin: 0 auto 16px; color: #48bb78; }
.modal-success p { font-size: 16px; color: var(--color-text); }

/* =============================================
   23. CONTACT PAGE
   ============================================= */
.contact-section { padding: 80px 0; }
.contact-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; align-items: start; }
.contact-info-title { font-family: var(--font-display); font-size: clamp(26px, 3vw, 38px); font-weight: 400; color: var(--color-dark); margin-bottom: 16px; }
.contact-info-desc { color: var(--color-text-muted); line-height: 1.8; margin-bottom: 36px; }
.contact-info-list { display: flex; flex-direction: column; }
.contact-info-list li { display: flex; align-items: flex-start; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--color-border); }
.contact-info-list li:last-child { border-bottom: none; }
.contact-info-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--color-bg-alt); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-list strong { display: block; font-size: 13px; font-weight: 600; color: var(--color-dark); margin-bottom: 4px; }
.contact-info-list a, .contact-info-list span, .contact-info-list address { font-size: 14px; color: var(--color-text-muted); font-style: normal; }
.contact-social { display: flex; gap: 12px; margin-top: 28px; }
.contact-social-btn { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 500; border: 1.5px solid var(--color-border); transition: all var(--transition); }
.whatsapp-btn:hover { background: #25d366; color: #fff; border-color: #25d366; }
.insta-btn:hover { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; border-color: transparent; }
.contact-form-wrap { background: var(--color-bg-alt); border-radius: var(--radius-lg); padding: 48px; }
.contact-form-title { font-family: var(--font-display); font-size: 26px; font-weight: 400; color: var(--color-dark); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 14px; }
.alert-success { background: #f0fff4; border: 1px solid #68d391; color: #276749; }

/* =============================================
   24. BLOG
   ============================================= */
.blog-section .container { padding: 64px var(--container-pad); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.blog-card { border-radius: var(--radius-md); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); transition: box-shadow var(--transition), transform var(--transition); }
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.blog-card-img-wrap { aspect-ratio: 3/2; overflow: hidden; }
.blog-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.blog-card:hover .blog-card-img-wrap img { transform: scale(1.05); }
.blog-card-body { padding: 24px; }
.blog-card-cat { display: inline-block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 10px; font-weight: 500; }
.blog-card-title { font-family: var(--font-display); font-size: 20px; font-weight: 400; color: var(--color-dark); line-height: 1.35; margin-bottom: 10px; }
.blog-card-excerpt { font-size: 13px; color: var(--color-text-muted); line-height: 1.7; margin-bottom: 16px; }
.blog-card-date { font-size: 12px; color: var(--color-text-muted); }

/* =============================================
   25. SEARCH
   ============================================= */
.search-results-section .container { padding: 64px var(--container-pad); }
.search-page-wrap { display: flex; gap: 12px; max-width: 600px; }
.search-page-input { flex: 1; padding: 12px 20px; border: 1.5px solid var(--color-border); border-radius: var(--radius-pill); font-family: var(--font-body); font-size: 15px; outline: none; transition: border-color var(--transition); }
.search-page-input:focus { border-color: var(--color-dark); }
.search-results-count { font-size: 14px; font-weight: 400; color: var(--color-text-muted); }

/* =============================================
   26. PAGINATION
   ============================================= */
.pagination-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  max-width: 100%;
}
.pagination-panel--simple {
  align-items: center;
}
.pagination-summary {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.5;
  max-width: 40rem;
  width: 100%;
}
.pagination-summary strong {
  font-weight: 600;
  color: var(--color-dark);
}
@media (min-width: 640px) {
  .pagination-panel:not(.pagination-panel--simple) {
    gap: 18px;
  }
}
.pagination {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  row-gap: 10px;
  list-style: none;
  padding: 12px 8px;
  margin: 0;
  width: fit-content;
  max-width: 100%;
}
.pagination li { display: flex; align-items: center; margin: 0; flex-shrink: 0; }
.pagination .page-link,
.pagination span.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: var(--color-dark);
  background: #fff;
  border: 1.5px solid var(--color-border);
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
  text-decoration: none;
  box-sizing: border-box;
}
.pagination svg {
  width: 1em;
  height: 1em;
  vertical-align: middle;
  flex-shrink: 0;
}
.pagination li:not(.active):not(.disabled) .page-link:hover:not([aria-disabled="true"]),
.pagination li:not(.active):not(.disabled) span.page-link:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-dark);
  color: var(--color-dark);
}
.pagination li:not(.active):not(.disabled) .page-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  z-index: 1;
  position: relative;
}
.pagination .page-item.active .page-link,
.pagination li.active .page-link,
.pagination span.page-link[aria-current="page"] {
  background: var(--color-dark);
  color: #fff;
  border-color: var(--color-dark);
  font-weight: 600;
}
.pagination .page-item.active .page-link:hover,
.pagination li.active .page-link:hover,
.pagination span.page-link[aria-current="page"]:hover {
  background: var(--color-dark-soft);
  border-color: var(--color-dark-soft);
  color: #fff;
}
.pagination .disabled .page-link,
.pagination .page-item.disabled .page-link,
.pagination li.disabled span.page-link {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  border-color: var(--color-border);
}
.pagination .ellipsis .page-link,
.pagination li.pagination-ellipsis .page-link {
  min-width: 36px;
  border-color: transparent;
  background: transparent;
  opacity: 1;
  pointer-events: none;
  color: var(--color-text-muted);
  font-weight: 500;
}

@media (max-width: 480px) {
  .pagination .page-link,
  .pagination span.page-link {
    min-width: 38px;
    min-height: 38px;
    padding: 0 10px;
    font-size: 13px;
  }
  .pagination { gap: 4px 6px; padding: 10px 4px; }
}

/* =============================================
   27. FLOATING ELEMENTS
   ============================================= */
.whatsapp-float { position: fixed; bottom: 80px; right: 20px; width: 52px; height: 52px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(37,211,102,.4); z-index: 500; transition: transform var(--transition); }
.whatsapp-float:hover { transform: scale(1.08); }
.back-to-top { position: fixed; bottom: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%; background: var(--color-dark); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); z-index: 500; opacity: 0; transform: translateY(10px); transition: all var(--transition); pointer-events: none; }
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--color-dark-soft); }

/* =============================================
   28. LEGAL, BLOG ARTICLE, SERVICE (base — before responsive overrides)
   ============================================= */
.legal-content h2 { font-family: var(--font-display); font-size: 22px; font-weight: 400; color: var(--color-dark); margin: 36px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--color-border); }
.legal-content p { color: var(--color-text); line-height: 1.85; margin-bottom: 16px; }
.legal-content a { color: var(--color-accent); }
.legal-content { overflow-wrap: anywhere; word-wrap: break-word; }
.legal-page-section { padding: 64px 0 80px; }
.legal-page-inner { max-width: 800px; }
.legal-updated { margin-top: 48px; font-size: 13px; color: var(--color-text-muted); }
.legal-updated a { color: var(--color-accent); }

.blog-post-section { padding: 0; }
.blog-post-section .container { max-width: 860px; margin: 0 auto; padding: 64px var(--container-pad); }
.blog-post-header { margin-bottom: 32px; }
.blog-post-title { font-family: var(--font-display); font-size: clamp(24px, 4.5vw, 38px); font-weight: 400; line-height: 1.2; color: var(--color-dark); margin: 0 0 12px; }
.blog-post-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; color: var(--color-text-muted); }
.blog-post-figure { margin: 0 0 32px; border-radius: var(--radius-md); overflow: hidden; }
.blog-post-img { width: 100%; height: auto; display: block; }
.blog-post-content { line-height: 1.85; color: var(--color-text); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.blog-post-content > *:first-child { margin-top: 0; }
.blog-post-content img,
.blog-post-content video,
.blog-post-content iframe { max-width: 100%; height: auto; }
.blog-post-content table { display: block; max-width: 100%; overflow-x: auto; }

.service-page-section { padding: 80px 0; }
.service-page-inner { max-width: 800px; margin: 0 auto; }
.service-hero-block { text-align: center; margin-bottom: 48px; }
.service-icon-wrap { width: 80px; height: 80px; border-radius: 50%; background: var(--color-bg-alt); display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.service-title-page { font-family: var(--font-display); font-size: clamp(28px, 4vw, 42px); font-weight: 400; color: var(--color-dark); margin-bottom: 20px; }
.service-lead { color: var(--color-text-muted); line-height: 1.8; max-width: 600px; margin: 0 auto; }
.service-points-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 48px; list-style: none; padding: 0; }
.service-points-list li { display: flex; align-items: flex-start; gap: 12px; padding: 16px; background: var(--color-bg-alt); border-radius: var(--radius-md); }
.service-point-text { font-size: 14px; color: var(--color-dark); line-height: 1.5; }
.service-point-icon { flex-shrink: 0; color: var(--color-accent); margin-top: 2px; }
.service-cta-row { text-align: center; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* =============================================
   29. RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .navbar-menu { display: none; }
  .hamburger { display: flex; }
  .mega-menu { display: none !important; }
  .category-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-story-inner { grid-template-columns: 1fr; gap: 40px; }
  .testimonial-layout { grid-template-columns: 1fr; }
  .testimonial-image { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .category-layout { grid-template-columns: 1fr; }
  .category-sidebar { display: none; }
  .product-detail-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-story-inner { grid-template-columns: 1fr; gap: 40px; }
  .cat-page-item { grid-template-columns: 1fr; gap: 32px; }
  .cat-page-item--text-right .cat-page-text { order: 1; }
  .cat-page-item--text-right .cat-page-img-wrap { order: 2; }
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .slider-item { flex: 0 0 calc(33.333% - 14px); }
  .page-hero:not(.page-hero--sm) { height: min(340px, 40vw); }
}
@media (max-width: 1100px) {
  .product-detail-inner { gap: 40px; }
  .product-gallery { gap: 12px; }
}
@media (max-width: 768px) {
  :root {
    --container-pad: 20px;
    --navbar-inner-h: 62px;
    --navbar-logo: 48px;
    --radius-navbar: 31px;
  }
  body { overflow-x: hidden; }
  .navbar-inner { padding: 0 18px; }
  .category-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .nouveautes-listing .products-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .instagram-section--desktop .instagram-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .slider-item { flex: 0 0 calc(50% - 10px); }
  .product-card-img-wrap { max-width: none; }
  .modal-box { padding: 32px 24px; }
  .modal-title { font-size: 22px; margin-bottom: 20px; }
  .product-gallery { gap: 14px; }
  .product-thumbs-wrap { gap: 8px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 28px 20px; }
  .blog-grid { grid-template-columns: 1fr; }
  .hero-btn { width: 36px; height: 36px; }
  .hero-prev { left: 12px; }
  .hero-next { right: 12px; }
  .page-hero:not(.page-hero--sm) { height: min(280px, 42vh); }
  .page-title { hyphens: auto; overflow-wrap: break-word; }
  .categories-page-section { padding: 40px 0; }
  .cat-page-item { padding: 40px 0; }
  .category-listing { padding: 32px 0 48px; }
  .product-detail { padding: 40px 0; }
  .related-products, .recently-viewed { padding: 40px 0; }
  .contact-section, .about-story { padding: 48px 0; }
  .about-partners { padding: 32px 0; }
  .about-carousel-slide img { height: auto; min-height: 220px; max-height: 480px; aspect-ratio: 4/3; }
  .about-carousel-prev { left: 8px; }
  .about-carousel-next { right: 8px; }
  .map-container iframe { height: min(400px, 50vh); }
  .search-page-wrap { flex-direction: column; align-items: stretch; }
  .search-page-wrap .btn { width: 100%; }
  .products-toolbar { flex-wrap: wrap; gap: 16px; }
  .sort-form { min-width: 0; flex: 1 1 160px; }
  .sort-select { max-width: 100%; }
  .product-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; gap: 0; }
  .product-tab { flex: 0 0 auto; padding: 12px 18px; font-size: 13px; }
  .nouveautes-listing { padding: 40px 0; }
  .section-header { margin-bottom: 24px; }
  .newsletter-title { font-size: clamp(18px, 4.5vw, 26px); }
  .newsletter-input-wrap { flex-direction: column; border-radius: var(--radius-md); align-items: stretch; }
  .newsletter-btn { width: 100%; border-radius: 0 0 var(--radius-md) var(--radius-md); }
  .blog-section .container,
  .search-results-section .container { padding: 40px var(--container-pad); }
  .blog-post-section .container { padding: 40px var(--container-pad); }
  .service-points-list { grid-template-columns: 1fr; }
  .legal-page-section { padding: 40px 0 56px; }
}
@media (max-width: 480px) {
  .trust-item span { display: none; }
  .instagram-section--desktop .instagram-grid { grid-template-columns: repeat(2, 1fr); }
  .products-slider { padding-left: 12px; }
  .slider-track { gap: 16px; }
  .nouveautes-section .slider-item { flex: 0 0 min(294px, 100%); max-width: 294px; }
  .nouveautes-section .products-slider .product-card-link { width: 100%; max-width: 100%; }
  .product-card { width: 100%; min-width: 0; }
  .product-card-link { width: 100%; max-width: 100%; }
  .product-card-img-wrap { max-width: none; border-radius: 24px; width: 100%; }
  .product-card-img-title { border-radius: 0 0 24px 24px; }
  .product-card-info { padding: 16px 0 0; }
  .product-cta-group { flex-direction: column; }
  .hero-text { font-size: 20px; }
  .page-hero:not(.page-hero--sm) { height: 200px; }
  .page-hero:not(.page-hero--sm) .container { padding-bottom: 16px; }
  .related-products .products-grid, .recently-viewed #recentlyViewedGrid { grid-template-columns: 1fr; max-width: 100%; }
  .contact-social { flex-wrap: wrap; justify-content: center; }
  .service-page-section { padding: 48px 0; }
  .category-listing .product-card-name { font-size: 16px; }
  .cat-page-name { font-size: clamp(22px, 5vw, 32px); }
}

@media (max-width: 600px) {
  .products-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .view-toggles { align-self: flex-end; }
}

/* Category listing: grid column modes + image swap (match nouveautés behavior) */
.category-listing .category-product-grid.products-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.category-listing .category-product-grid.products-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.category-listing .category-product-grid.products-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
.category-listing .product-card-img-wrap { position: relative; overflow: hidden; }
.category-listing .product-card-img-wrap .product-card-img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; transition: opacity 0.4s ease, transform 0.5s ease; }
.category-listing .product-card-img-wrap .product-image-primary { opacity: 1; z-index: 1; }
.category-listing .product-card-img-wrap .product-image-secondary { opacity: 0; z-index: 0; }
.category-listing .product-card:hover .product-image-primary { opacity: 0; }
.category-listing .product-card:hover .product-image-secondary { opacity: 1; }
.category-listing .product-card:hover .product-card-img { transform: scale(1.03); }

/* List view */
.product-list-item { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); transition: box-shadow var(--transition); }
.product-list-item:hover { box-shadow: var(--shadow-sm); }
.product-list-item__link { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center; padding: 16px; text-decoration: none; color: inherit; }
.product-list-item__img-wrap { position: relative; border-radius: var(--radius-sm); overflow: hidden; background: var(--color-bg-alt); aspect-ratio: 1; }
.product-list-item__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.4s ease; }
.product-list-item__img.product-image-primary { z-index: 1; }
.product-list-item__img.product-image-secondary { opacity: 0; z-index: 0; }
.product-list-item:hover .product-image-primary { opacity: 0; }
.product-list-item:hover .product-image-secondary { opacity: 1; }
.product-list-item__body { min-width: 0; }
.product-list-item__cat { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-muted); margin: 0 0 6px; }
.product-list-item__name { font-family: var(--font-display); font-size: clamp(20px, 2.5vw, 26px); font-weight: 400; color: var(--color-dark); margin: 0 0 8px; }
.product-list-item__excerpt { font-size: 14px; color: var(--color-text-muted); line-height: 1.6; margin: 0 0 12px; }
.product-list-item__price { font-size: 16px; font-weight: 600; color: var(--color-dark); }
@media (max-width: 640px) {
  .product-list-item__link { grid-template-columns: 120px 1fr; gap: 16px; padding: 12px; }
}
@media (max-width: 1024px) {
  .category-listing .category-product-grid.products-grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
  .category-listing .category-product-grid.products-grid--cols-3 { grid-template-columns: repeat(2, 1fr); }
}

/* Search & nouveautés listing: double image swap */
.nouveautes-listing .product-card-img-wrap,
.search-results-section .product-card-img-wrap { position: relative; overflow: hidden; }
.nouveautes-listing .product-card-img-wrap .product-card-img,
.search-results-section .product-card-img-wrap .product-card-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.4s ease, transform 0.5s ease; }
.nouveautes-listing .product-image-primary, .search-results-section .product-image-primary { opacity: 1; z-index: 1; }
.nouveautes-listing .product-image-secondary, .search-results-section .product-image-secondary { opacity: 0; }
.nouveautes-listing .product-card:hover .product-image-primary, .search-results-section .product-card:hover .product-image-primary { opacity: 0; }
.nouveautes-listing .product-card:hover .product-image-secondary, .search-results-section .product-card:hover .product-image-secondary { opacity: 1; }
.nouveautes-listing .product-card:hover .product-card-img, .search-results-section .product-card:hover .product-card-img { transform: scale(1.05); }

.related-products .product-card-img-wrap { position: relative; overflow: hidden; }
.related-products .product-card-img-wrap .product-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.4s ease, transform 0.5s ease; }
.related-products .product-image-primary { opacity: 1; }
.related-products .product-image-secondary { opacity: 0; }
.related-products .product-card:hover .product-image-primary { opacity: 0; }
.related-products .product-card:hover .product-image-secondary { opacity: 1; }

.category-link::before {
   content: "";
   position: absolute;
   bottom: -40px;
   width: 100%;
   height: 65px;
   left: 0;
}

/* Mobile menu: parent .site-header has pointer-events:none — re-enable interaction */
.mobile-menu { pointer-events: auto; }

/* ─── Cart drawer (slide-over) ─── */
.cart-drawer-overlay:not([hidden]) {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 8500;
  animation: cartOverlayIn 0.28s ease forwards;
}
@keyframes cartOverlayIn { from { opacity: 0; } to { opacity: 1; } }

.cart-drawer:not([hidden]) {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100%);
  max-width: 100vw;
  background: #fff;
  z-index: 8600;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
  animation: cartDrawerIn 0.32s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes cartDrawerIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

.cart-drawer-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.cart-drawer-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--color-dark);
}
.cart-drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--color-dark);
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s;
}
.cart-drawer-close:hover { background: var(--color-bg-alt); }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 16px 22px; min-height: 0; }
.cart-drawer-empty { text-align: center; color: var(--color-text-muted); padding: 32px 12px; font-size: 15px; margin: 0; }
.cart-drawer-list { list-style: none; margin: 0; padding: 0; }
.cart-drawer-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}
.cart-drawer-thumb img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.cart-drawer-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-dark);
  text-decoration: none;
  line-height: 1.35;
}
.cart-drawer-name:hover { text-decoration: underline; }
.cart-drawer-qty {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-top: 10px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.cart-qty-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--color-bg-alt);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: var(--color-dark);
}
.cart-qty-btn:hover { background: #e4e4e7; }
.cart-qty-val { min-width: 28px; text-align: center; font-size: 14px; font-weight: 500; }
.cart-drawer-remove {
  margin-top: 8px;
  padding: 0;
  border: none;
  background: none;
  font-size: 12px;
  text-decoration: underline;
  color: var(--color-text-muted);
  cursor: pointer;
}
.cart-drawer-remove:hover { color: var(--color-dark); }
.cart-drawer-price { font-size: 14px; font-weight: 600; color: var(--color-dark); white-space: nowrap; padding-top: 4px; }
.cart-drawer-footer {
  flex-shrink: 0;
  padding: 20px 22px 28px;
  border-top: 1px solid var(--color-border);
  background: #fafafa;
}
.cart-drawer-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 15px;
}
.cart-drawer-subtotal-label { font-weight: 600; }
.cart-drawer-actions { display: flex; flex-direction: column; gap: 12px; }
.btn-cart-secondary {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--color-dark);
  background: #fff;
  color: var(--color-dark);
  font-weight: 500;
  text-decoration: none;
  font-size: 14px;
  font-family: var(--font-body);
  transition: background 0.2s, color 0.2s;
}
.btn-cart-secondary:hover { background: var(--color-dark); color: #fff; }
.btn-cart-primary {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 20px;
  border-radius: 999px;
  border: none;
  background: #3f3f46;
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  font-size: 14px;
  font-family: var(--font-body);
  transition: background 0.2s;
}
.btn-cart-primary:hover { background: #18181b; color: #fff; }

.product-main-img--zoomable { cursor: zoom-in; }

/* Product lightbox */
.product-lightbox:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 9600;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
}
.product-lightbox-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.82);
  border: none;
  padding: 0;
  cursor: pointer;
  /* Clicks on dimmed area hit this layer; stage no longer blocks (see .product-lightbox-stage) */
}
.product-lightbox-content {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.product-lightbox-content > * { pointer-events: auto; }
/* Let clicks pass through the stage to the backdrop (dimmed / letterbox) — only the image is interactive for hit-testing */
.product-lightbox-content > .product-lightbox-stage { pointer-events: none; }
.product-lightbox-content .product-lightbox-img { pointer-events: auto; }
.product-lightbox.is-lb-swipe-dragging { cursor: grabbing; }
.product-lightbox.is-lb-swipe-dragging .product-lightbox-img { cursor: grabbing; }
.product-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}
.product-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}
.product-lightbox-prev { left: 12px; }
.product-lightbox-next { right: 12px; }
.product-lightbox-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  width: 100%;
  max-height: calc(100vh - 80px);
  padding: 56px 56px 72px;
  box-sizing: border-box;
  touch-action: none;
  min-height: 0;
}
.product-lightbox-img {
  max-width: 100%;
  max-height: min(85vh, 900px);
  object-fit: contain;
  transition: transform 0.2s ease;
  transform-origin: center center;
  will-change: transform;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.product-lightbox.is-lb-swipe-dragging .product-lightbox-img { transition: none; }
.product-lightbox-toolbar {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.product-lightbox-tool {
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-dark);
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}
.product-lightbox-tool:hover { background: #fff; }

@media (max-width: 768px) {
  .product-lightbox-stage { padding: 48px 12px 88px; }
  .product-lightbox-nav { width: 38px; height: 38px; }
  .product-lightbox-prev { left: 6px; }
  .product-lightbox-next { right: 6px; }
}
