:root {
  --md-navy: #061e57;
  --md-navy-deep: #041536;
  --md-yellow: #ffc107;
  --md-yellow-soft: #ffe082;
  --md-orange: #ff6b35;
  --md-bg: #ffffff;
  --md-surface: #f5f6f8;
  --md-border: #e8eaef;
  --md-text: #1a1a1a;
  --md-muted: #6b7280;
  --md-radius: 12px;
  --md-radius-pill: 999px;
  --md-header-h: 64px;
  --md-font: "Plus Jakarta Sans", system-ui, sans-serif;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body.md-store {
  margin: 0;
  font-family: var(--md-font);
  color: var(--md-text);
  background: var(--md-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.md-container {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

/* Top bar */
.md-topbar {
  background: var(--md-navy-deep);
  color: #fff;
  font-size: 0.8rem;
  text-align: center;
  padding: 0.45rem 1rem;
  position: relative;
  z-index: 1001;
}

.md-topbar strong {
  color: var(--md-yellow);
}

/* Header */
.md-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  color: var(--md-navy);
  height: var(--md-header-h);
  display: flex;
  align-items: center;
  border: 0;
  border-bottom: none;
  box-shadow: none;
  outline: none;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

/* Home: navbar blanche sous la topbar, au-dessus du slider */
.md-home .md-header--overlay {
  position: sticky;
  top: 0;
  background: #fff;
  border: 0;
  border-bottom: none;
  box-shadow: none;
}

.md-home .md-header--overlay.is-scrolled {
  position: sticky;
  background: #fff;
  box-shadow: 0 4px 18px rgba(6, 30, 87, 0.08);
  border: 0;
  border-bottom: none;
}

.md-home main {
  padding-top: 0;
}

.md-header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.md-logo img {
  height: 36px;
  width: auto;
}

.md-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}

.md-nav::-webkit-scrollbar {
  display: none;
}

.md-nav a {
  color: var(--md-navy);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.md-nav a:hover,
.md-nav a.is-active {
  background: rgba(6, 30, 87, 0.08);
  color: var(--md-navy);
}

.md-header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.md-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--md-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
  position: relative;
}

.md-cart-badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--md-yellow);
  color: var(--md-navy);
  font-size: 0.65rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Cart drawer */
body.md-cart-open {
  overflow: hidden;
}

.md-cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(4, 21, 54, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.md-cart-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.md-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1101;
  width: min(420px, 100%);
  height: 100%;
  background: #fff;
  color: var(--md-text);
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.18);
}

.md-cart-drawer.is-open {
  transform: translateX(0);
}

.md-cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.15rem;
  border-bottom: 1px solid var(--md-border);
}

.md-cart-drawer-head h2 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--md-navy);
}

.md-cart-drawer-count {
  color: var(--md-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.md-cart-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--md-surface);
  color: var(--md-navy);
  cursor: pointer;
}

.md-cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.15rem;
}

.md-cart-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--md-muted);
}

.md-cart-empty i {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  opacity: 0.45;
}

.md-cart-lines {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.md-cart-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0.75rem;
  align-items: start;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--md-border);
}

.md-cart-line-img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--md-surface);
}

.md-cart-line-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.md-cart-line-name {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--md-navy);
  line-height: 1.3;
}

.md-cart-line-meta {
  font-size: 0.78rem;
  color: var(--md-muted);
  margin: 0.25rem 0 0.45rem;
}

.md-cart-line-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.md-cart-line-row strong {
  font-size: 0.85rem;
  color: var(--md-navy);
}

.md-cart-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--md-border);
  border-radius: 8px;
  overflow: hidden;
}

.md-cart-qty button {
  width: 28px;
  height: 28px;
  border: 0;
  background: var(--md-surface);
  cursor: pointer;
  color: var(--md-navy);
  font-weight: 700;
}

.md-cart-qty span {
  min-width: 28px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.md-cart-line-remove {
  border: 0;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  padding: 0.25rem;
}

.md-cart-line-remove:hover {
  color: #b91c1c;
}

.md-cart-drawer-foot {
  border-top: 1px solid var(--md-border);
  padding: 1rem 1.15rem 1.25rem;
  background: #fff;
}

.md-cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.md-cart-total strong {
  font-size: 1.15rem;
  color: var(--md-navy);
}

.md-cart-ship {
  margin: 0 0 0.9rem;
  font-size: 0.8rem;
  color: #10b981;
}

.md-cart-continue {
  margin-top: 0.5rem;
  background: #fff;
  border: 1px solid var(--md-border);
  color: var(--md-navy);
}

.md-icon-btn:hover {
  background: rgba(6, 30, 87, 0.08);
  color: var(--md-navy);
}

.md-menu-toggle {
  display: none;
}

.md-nav-mobile-only {
  display: none;
}

.md-show-mobile {
  display: none !important;
}

/* Hero slider */
.md-slider {
  position: relative;
  width: 100%;
  min-height: min(100vh, 800px);
  height: clamp(560px, 72vh, 800px);
  overflow: hidden;
  background: var(--md-navy-deep);
  color: #fff;
}

.md-slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.md-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: grid;
  align-items: stretch;
  overflow: hidden;
}

.md-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: none;
}

.md-slide-bg--livraison {
  object-position: 62% center;
}

.md-slide-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(4, 21, 54, 0.78) 0%, rgba(4, 21, 54, 0.48) 42%, rgba(4, 21, 54, 0.22) 100%);
}

.md-slide--light .md-slide-overlay {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.55) 45%, rgba(255, 255, 255, 0.18) 100%);
}

.md-slide--dark .md-slide-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  padding: 2.75rem 1.75rem 3rem;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  max-width: 36rem;
  width: 100%;
  box-sizing: border-box;
}

.md-slide--light .md-slide-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  padding: 2.75rem 1.75rem 3rem;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  max-width: 36rem;
  width: 100%;
  box-sizing: border-box;
}

.md-slide--dark .md-slide-copy h1 {
  color: var(--md-yellow);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.md-slide--dark .md-slide-copy p {
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.md-slide--light {
  color: var(--md-navy);
}

.md-slide-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
  padding: 0;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  align-items: stretch;
  height: 100%;
  min-height: inherit;
  box-sizing: border-box;
}

.md-slide-copy h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 4.2vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.md-slide--dark .md-slide-copy h1 {
  color: var(--md-yellow);
}

.md-slide-copy p {
  margin: 0 0 1.35rem;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 34rem;
  opacity: 0.92;
}

.md-slide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.md-slide-note {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  opacity: 0.75;
}

.md-slide-visual {
  display: grid;
  place-items: center;
}

.md-slide-visual img {
  width: min(100%, 460px);
  max-height: 360px;
  object-fit: contain;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35));
}

.md-slide-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  align-self: center;
  padding-right: 0.25rem;
}

.md-slide-product {
  background: #fff;
  border-radius: 12px;
  padding: 0.55rem;
  text-align: center;
  color: var(--md-text);
  border: 1px solid rgba(6, 30, 87, 0.06);
  transition: transform 0.2s ease;
}

.md-slide-product:hover {
  transform: translateY(-3px);
}

.md-slide-product img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: #f3f4f6;
}

.md-slide-product strong {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--md-navy);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}

.md-slide-product span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--md-navy);
}

.md-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease;
}

.md-slider-btn:hover {
  background: rgba(255, 255, 255, 0.32);
}

.md-slider.is-light .md-slider-btn {
  background: rgba(6, 30, 87, 0.18);
  color: var(--md-navy);
}

.md-slider.is-light .md-slider-btn:hover {
  background: rgba(6, 30, 87, 0.28);
}

.md-slider-btn.prev { left: 1rem; }
.md-slider-btn.next { right: 1rem; }

.md-slider-dots {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.md-slider-dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.md-slider-dots button.is-active {
  width: 22px;
  background: var(--md-yellow);
}

.md-home .md-slider.is-light .md-slider-dots button {
  background: rgba(6, 30, 87, 0.25);
}

.md-home .md-slider.is-light .md-slider-dots button.is-active {
  background: var(--md-navy);
}

/* Legacy single hero (fallback) */
.md-hero {
  position: relative;
  min-height: clamp(320px, 48vw, 460px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--md-navy);
  color: #fff;
}

.md-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.md-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem 1rem;
  max-width: 720px;
}

.md-hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

.md-hero-content p {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 991px) {
  .md-slide-inner {
    grid-template-columns: 1fr;
    padding: 0;
    gap: 0;
    align-items: stretch;
    min-height: inherit;
    height: 100%;
  }

  .md-slide-visual {
    display: none !important;
  }

  .md-slide-products {
    display: none !important;
  }

  .md-slide--dark .md-slide-copy,
  .md-slide--light .md-slide-copy {
    max-width: none;
    width: 100%;
    min-height: 100%;
    border-radius: 0;
    padding: 1.5rem 1rem 2.75rem;
    justify-content: flex-end;
    background: transparent;
  }

  .md-slide-overlay {
    background: linear-gradient(0deg, rgba(4, 21, 54, 0.82) 0%, rgba(4, 21, 54, 0.4) 55%, rgba(4, 21, 54, 0.12) 100%);
  }

  .md-slide--light .md-slide-overlay {
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.45) 55%, rgba(255, 255, 255, 0.1) 100%);
  }

  .md-slide-copy h1 {
    font-size: clamp(1.55rem, 7vw, 2.1rem);
  }

  .md-slide-copy p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  .md-slide-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .md-slide-actions .md-btn {
    width: 100%;
  }

  .md-slider {
    height: auto;
    min-height: clamp(320px, 52svh, 420px);
    max-height: none;
  }

  .md-slider-track,
  .md-slide {
    min-height: clamp(320px, 52svh, 420px);
    height: auto;
  }

  .md-slider-btn,
  .md-bs-nav {
    display: none !important;
  }

  /* Mobile home: Best-seller → Qualité → Nos produits uniquement */
  .md-home .md-slider,
  .md-home .md-section-2 {
    display: none !important;
  }

  .md-home .md-bestsellers,
  .md-home .md-awards-banner,
  .md-home .md-new-arrivals {
    display: block !important;
    visibility: visible !important;
  }

  .md-home .md-bestsellers .md-bs-slider {
    padding: 0 0.25rem 1.25rem;
  }

  .md-home .md-bs-viewport {
    overflow: visible;
  }

  .md-home .md-bs-track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    transform: none !important;
  }

  .md-home .md-bs-slide {
    flex: none;
    width: auto;
    min-width: 0;
  }

  .md-home .md-bs-dots {
    display: none;
  }

  .md-slider-dots {
    bottom: 1rem;
  }
}

/* Buttons */
.md-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.md-btn:hover {
  transform: translateY(-1px);
}

.md-btn-primary {
  background: var(--md-yellow);
  color: var(--md-navy);
}

.md-btn-primary:hover {
  background: var(--md-yellow-soft);
  color: var(--md-navy);
}

.md-btn-dark {
  background: var(--md-navy);
  color: #fff;
}

.md-btn-dark:hover {
  background: #0a2f7a;
  color: #fff;
}

.md-btn-outline {
  background: #fff;
  color: #111;
  border: 1.5px solid #111;
}

.md-btn-outline:hover {
  background: #f5f5f5;
  color: #111;
  border-color: #111;
}

.md-btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.md-btn-ghost:hover {
  background: #fff;
  color: var(--md-navy);
}

.md-btn-block {
  width: 100%;
}

.md-btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.85rem;
  border-radius: 999px;
}

/* Sections */
.md-section {
  padding: 3rem 0;
}

.md-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.md-section-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--md-navy);
}

.md-section-head p {
  margin: 0.35rem 0 0;
  color: var(--md-muted);
  font-size: 0.95rem;
}

.md-link-more {
  color: var(--md-navy);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.md-link-more:hover {
  color: var(--md-orange);
}

/* Section 2 — trust + catégories mosaic */
.md-section-2 {
  background: #fff;
}

.md-trust-strip {
  background: #f3f4f6;
  border-bottom: 1px solid #ececec;
}

.md-trust-strip-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.1rem 0;
}

.md-trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  color: #4b5563;
  font-size: 0.92rem;
  font-weight: 500;
  text-align: center;
}

.md-trust-item i {
  color: var(--md-navy);
  font-size: 1.15rem;
}

.md-cat-mosaic-wrap {
  padding: 1.5rem 0 0.5rem;
}

.md-cat-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 280px 260px;
  gap: 0.85rem;
}

.md-cat-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: var(--md-navy-deep);
  isolation: isolate;
}

.md-cat-tile--lg {
  grid-column: 1 / -1;
}

.md-cat-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.md-cat-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 21, 54, 0.55) 0%, rgba(4, 21, 54, 0.08) 45%, rgba(4, 21, 54, 0.35) 100%);
  z-index: 1;
}

.md-cat-tile:hover img {
  transform: scale(1.05);
}

.md-cat-tile-label {
  position: absolute;
  top: 1rem;
  left: 1.1rem;
  z-index: 2;
  color: #fff;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.md-cat-mosaic-more {
  display: flex;
  justify-content: flex-end;
  padding: 0.85rem 0 0;
}

@media (max-width: 767px) {
  .md-trust-strip-inner {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1rem 0;
  }

  .md-trust-item {
    justify-content: flex-start;
    font-size: 0.88rem;
  }

  .md-cat-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .md-cat-tile {
    min-height: 200px;
  }

  .md-cat-tile--lg {
    min-height: 230px;
  }
}

/* Awards / product showcase banner */
.md-awards-banner {
  margin: 0.75rem 0 0;
  padding: 1.5rem 0 2rem;
  background: #fff;
}

.md-awards-hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: clamp(280px, 42vw, 420px);
  background: #9aa8d4;
}

.md-awards-hero-img {
  width: 100%;
  height: 100%;
  min-height: clamp(280px, 42vw, 420px);
  object-fit: cover;
  object-position: center right;
  display: block;
}

.md-awards-hero-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(48%, 520px);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  color: #fff;
  background: linear-gradient(90deg, rgba(6, 30, 87, 0.55) 0%, rgba(6, 30, 87, 0.28) 70%, transparent 100%);
}

.md-awards-hero-content h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(4, 21, 54, 0.35);
}

.md-awards-hero-content p {
  margin: 0 0 1rem;
  font-size: clamp(0.85rem, 1.4vw, 0.98rem);
  opacity: 0.95;
  max-width: 26rem;
}

.md-awards-badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  max-width: 400px;
  margin-bottom: 1rem;
}

.md-award-badge {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px);
  border-radius: 10px;
  padding: 0.55rem 0.4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  min-height: 72px;
  justify-content: center;
}

.md-award-badge i {
  color: var(--md-yellow);
  font-size: 1rem;
}

.md-award-badge span {
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.md-awards-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.md-awards-links .md-btn-ghost {
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
}

.md-awards-links .md-btn-ghost:hover {
  background: #fff;
  color: var(--md-navy);
}

@media (max-width: 991px) {
  .md-awards-hero-content {
    width: 100%;
    background: linear-gradient(180deg, rgba(6, 30, 87, 0.72) 0%, rgba(6, 30, 87, 0.35) 55%, rgba(6, 30, 87, 0.15) 100%);
  }

  .md-awards-hero-img {
    object-position: 70% center;
  }
}

@media (max-width: 575px) {
  .md-awards-badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md-awards-hero {
    min-height: 460px;
  }

  .md-awards-hero-img {
    min-height: 460px;
  }
}

/* Best-seller carousel */
.md-bestsellers {
  padding-top: 2.5rem;
  padding-bottom: 2.75rem;
}

.md-bestsellers-title {
  margin: 0 0 1.75rem;
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111;
}

.md-bs-slider {
  position: relative;
  padding: 0 2.5rem 1.5rem;
}

.md-bs-viewport {
  overflow: hidden;
}

.md-bs-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.md-bs-slide {
  flex: 0 0 calc((100% - 3rem) / 4);
  min-width: 0;
}

.md-bs-nav {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #e5e7eb;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.md-bs-nav:hover {
  background: var(--md-navy);
}

.md-bs-nav.prev { left: 0; }
.md-bs-nav.next { right: 0; }

.md-bs-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.25rem;
}

.md-bs-dots button {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: #d1d5db;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.md-bs-dots button.is-active {
  width: 22px;
  background: var(--md-yellow);
}

.md-bs-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.md-bs-media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  background: #f3f4f6;
  border-radius: 14px;
  overflow: hidden;
}

.md-bs-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.md-bs-card:hover .md-bs-media img {
  transform: scale(1.04);
}

.md-bs-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  background: var(--md-yellow);
  color: var(--md-navy);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
}

.md-bs-body {
  padding: 0.85rem 0.15rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.md-bs-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.md-bs-title a:hover {
  color: var(--md-navy);
}

.md-bs-features {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #eceff3;
  border-bottom: 1px solid #eceff3;
}

.md-bs-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0;
  font-size: 0.78rem;
  color: #4b5563;
  border-bottom: 1px solid #f1f3f5;
}

.md-bs-features li:last-child {
  border-bottom: 0;
}

.md-bs-features i {
  color: var(--md-navy);
  font-size: 0.85rem;
}

.md-bs-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
}

.md-bs-price strong {
  display: block;
  font-size: 0.98rem;
  color: var(--md-navy);
}

.md-bs-price s {
  color: #9ca3af;
  font-size: 0.78rem;
}

.md-bs-add {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--md-navy);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.md-bs-add:hover {
  background: #0a2f7a;
}

/* Nouvel arrivage → Nos produits */
.md-new-arrivals {
  padding-top: 2.75rem;
  padding-bottom: 3rem;
  background: #fff;
}

.md-new-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.35rem 1rem;
}

@media (max-width: 991px) {
  .md-bs-slide {
    flex-basis: calc((100% - 1rem) / 2);
  }

  .md-new-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .md-bs-slider {
    padding: 0 2rem 1.25rem;
  }

  .md-bs-slide {
    flex-basis: 100%;
  }

  .md-new-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 0.75rem;
  }
}

/* Category chips (legacy / autres pages) */
.md-chips {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}

.md-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: var(--md-radius-pill);
  background: var(--md-surface);
  border: 1px solid var(--md-border);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--md-navy);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.md-chip:hover,
.md-chip.is-active {
  background: var(--md-navy);
  border-color: var(--md-navy);
  color: #fff;
}

.md-chip img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

/* Product grid & card */
.md-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.md-product {
  background: #fff;
  border: 1px solid var(--md-border);
  border-radius: var(--md-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
  height: 100%;
}

.md-product:hover {
  border-color: #cfd5e3;
  transform: translateY(-3px);
}

.md-product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--md-surface);
  overflow: hidden;
}

.md-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.md-product:hover .md-product-media img {
  transform: scale(1.04);
}

.md-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  background: var(--md-yellow);
  color: var(--md-navy);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.55rem;
  border-radius: 4px;
}

.md-product-body {
  padding: 0.9rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.md-product-cat {
  font-size: 0.75rem;
  color: var(--md-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.md-product-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--md-text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.md-product-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--md-navy);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.md-product-price small {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--md-muted);
}

.md-product-price-old {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--md-muted);
  text-decoration: line-through;
}

.md-product-footer {
  position: relative;
  margin-top: auto;
  padding-top: 0.5rem;
  min-height: 2.75rem;
}

.md-product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  align-items: stretch;
}

.md-product-actions .md-btn {
  padding: 0.55rem 0.5rem;
  font-size: 0.72rem;
  line-height: 1.2;
  border-radius: 999px;
  white-space: normal;
}

.md-product-actions .md-btn-outline {
  background: #fff;
  color: #111;
  border: 1.5px solid #111;
}

.md-product-actions .md-btn-outline:hover {
  border-color: #111;
  background: #f5f5f5;
}

.md-product-actions form {
  margin: 0;
  display: flex;
}

/* Desktop: prix visible, boutons au survol à la place */
@media (hover: hover) and (pointer: fine) {
  .md-product-actions {
    position: absolute;
    left: 0;
    right: 0;
    top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  }

  .md-product:hover .md-product-price {
    opacity: 0;
    visibility: hidden;
  }

  .md-product:hover .md-product-actions {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
}

/* Categories page grid */
.md-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.md-category-card {
  text-decoration: none;
  color: inherit;
}

.md-category-card-desc {
  margin: 0;
  font-size: 0.88rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.md-category-card-cta {
  margin-top: 0.65rem;
  color: var(--md-navy) !important;
  font-size: 0.95rem !important;
}

.md-category-card .md-product-title {
  min-height: 0;
}

@media (hover: hover) and (pointer: fine) {
  .md-category-card:hover .md-product-price {
    opacity: 1;
    visibility: visible;
  }
}

@media (max-width: 991px) {
  .md-categories-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .md-category-card {
    display: grid;
    grid-template-columns: 132px 1fr;
    align-items: stretch;
  }

  .md-category-card .md-product-media {
    aspect-ratio: auto;
    min-height: 100%;
    height: 100%;
  }

  .md-category-card .md-product-body {
    padding: 0.85rem 0.95rem;
    justify-content: center;
  }

  .md-category-card-desc {
    -webkit-line-clamp: 2;
    font-size: 0.82rem;
  }

  .md-category-card-cta {
    margin-top: 0.4rem;
    font-size: 0.88rem !important;
  }
}

@media (max-width: 575px) {
  .md-category-card {
    grid-template-columns: 1fr;
  }

  .md-category-card .md-product-media {
    aspect-ratio: 16 / 10;
    height: auto;
  }
}

/* Catalog layout */
.md-catalog {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.md-filters {
  background: #fff;
  border: 1px solid var(--md-border);
  border-radius: var(--md-radius);
  padding: 1.1rem;
  position: sticky;
  top: calc(var(--md-header-h) + 1rem);
}

.md-filters h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--md-navy);
}

.md-filter-group {
  margin-bottom: 1.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--md-border);
}

.md-filter-group:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.md-filter-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--md-muted);
  margin-bottom: 0.45rem;
}

.md-input,
.md-select {
  width: 100%;
  border: 1px solid var(--md-border);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-size: 0.9rem;
  background: #fff;
  color: var(--md-text);
}

.md-input:focus,
.md-select:focus {
  outline: 2px solid rgba(6, 30, 87, 0.25);
  border-color: var(--md-navy);
}

.md-price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.md-filter-cats {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.md-filter-cats a {
  font-size: 0.9rem;
  padding: 0.4rem 0.55rem;
  border-radius: 6px;
  color: var(--md-text);
}

.md-filter-cats a:hover,
.md-filter-cats a.is-active {
  background: var(--md-surface);
  color: var(--md-navy);
  font-weight: 600;
}

/* Mobile filter bar + sheet (Oraimo-like) */
.md-mfilter-bar,
.md-filter-sheet {
  display: none;
}

.md-cat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.md-cat-results {
  margin: 0.25rem 0 0;
}

@media (max-width: 991px) {
  .md-filters-desktop {
    display: none !important;
  }

  .md-hide-mobile-toolbar {
    display: none;
  }

  .md-cat-section {
    padding-top: 0.75rem !important;
  }

  .md-catalog {
    grid-template-columns: 1fr;
  }

  .md-mfilter-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    position: sticky;
    top: var(--md-header-h);
    z-index: 40;
    background: #fff;
    border-bottom: 1px solid #ececec;
    margin: 0 -0.625rem;
    width: calc(100% + 1.25rem);
  }

  .md-mfilter-bar-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-height: 46px;
    padding: 0.4rem 0.25rem;
    border: 0;
    background: transparent;
    color: #222;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
  }

  .md-mfilter-bar-item i {
    font-size: 0.65rem;
    opacity: 0.75;
  }

  .md-mfilter-bar-item.is-active {
    color: var(--md-navy);
  }

  .md-catalog-toolbar h1 {
    font-size: 1.45rem;
    margin: 0.35rem 0 0;
  }

  .md-cat-results {
    font-size: 0.85rem;
  }

  .md-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.75rem;
  }

  .md-filter-sheet {
    display: none !important;
    position: fixed;
    inset: 0;
    z-index: 1200;
  }

  .md-filter-sheet.is-open {
    display: block !important;
    visibility: visible;
    pointer-events: auto;
  }

  .md-filter-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
  }

  .md-filter-sheet-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 12vh;
    background: #fff;
    border-radius: 16px 16px 0 0;
    display: flex;
    flex-direction: column;
    transform: translateY(105%);
    transition: transform 0.28s ease;
  }

  .md-filter-sheet.is-open .md-filter-sheet-panel {
    transform: translateY(0);
  }

  .md-filter-sheet-head {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 1rem 1rem 0.85rem;
    border-bottom: 1px solid #ececec;
    flex-shrink: 0;
  }

  .md-filter-sheet-head h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #111;
  }

  .md-filter-sheet-close {
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #111;
    font-size: 1.15rem;
    cursor: pointer;
  }

  .md-filter-sheet-body {
    overflow: auto;
    flex: 1;
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }

  .md-filter-acc {
    border-bottom: 1px solid #ececec;
  }

  .md-filter-acc summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.1rem;
    font-weight: 700;
    font-size: 0.98rem;
    color: #111;
    cursor: pointer;
  }

  .md-filter-acc summary::-webkit-details-marker {
    display: none;
  }

  .md-filter-acc summary i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
  }

  .md-filter-acc[open] summary i {
    transform: rotate(180deg);
  }

  .md-filter-acc-body {
    padding: 0 1.1rem 1rem;
  }

  .md-price-row--sheet {
    align-items: end;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.55rem;
  }

  .md-price-row--sheet label {
    display: block;
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 0.3rem;
    text-transform: none;
    font-weight: 500;
    letter-spacing: 0;
  }

  .md-price-dash {
    padding-bottom: 0.7rem;
    color: #999;
  }

  .md-filter-clear {
    margin-top: 0.65rem;
    border: 0;
    background: none;
    color: #333;
    font: inherit;
    font-size: 0.82rem;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
  }

  .md-filter-cat-checks {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }

  .md-filter-cat-link {
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--md-border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--md-navy);
  }

  .md-filter-cat-link.is-active {
    background: var(--md-navy);
    color: #fff;
    border-color: var(--md-navy);
  }

  .md-filter-sheet-actions {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0.65rem;
    padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid #ececec;
  }

  .md-filter-sheet-actions .md-btn {
    border-radius: 999px;
    min-height: 46px;
    font-size: 0.88rem;
  }

  .md-filter-sheet-actions .md-btn-outline {
    background: #fff;
    border: 1.5px solid #222;
    color: #111;
  }

  body.md-filter-sheet-open {
    overflow: hidden;
  }
}

.md-catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.md-catalog-toolbar h1 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--md-navy);
}

.md-muted {
  color: var(--md-muted);
}

/* Product detail */
.md-pdp {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.md-pdp-gallery {
  position: sticky;
  top: calc(var(--md-header-h) + 1rem);
}

.md-pdp-main {
  border-radius: var(--md-radius);
  overflow: hidden;
  background: var(--md-surface);
  border: 1px solid var(--md-border);
  aspect-ratio: 1 / 1;
}

.md-pdp-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.md-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.md-thumbs button {
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  background: var(--md-surface);
  cursor: pointer;
  aspect-ratio: 1;
}

.md-thumbs button.is-active,
.md-thumbs button:hover {
  border-color: var(--md-yellow);
}

.md-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.md-pdp-info h1 {
  margin: 0.5rem 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--md-navy);
}

.md-pdp-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--md-navy);
  margin-bottom: 1rem;
}

.md-pdp-price-block {
  margin-bottom: 1rem;
}

.md-promo-badge {
  display: inline-block;
  margin-bottom: 0.45rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: #ffc107;
  color: #041536;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.md-pdp-price-old {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin-bottom: 0.15rem;
  color: var(--md-muted);
  font-size: 1rem;
  font-weight: 600;
}

.md-pdp-price-old s {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.md-promo-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--md-muted);
}

.md-pdp-price--promo {
  margin-bottom: 0;
  color: #b45309;
}

.md-pdp-price small {
  font-size: 0.9rem;
  color: var(--md-muted);
  font-weight: 600;
}

.md-pdp-price--promo small {
  color: #b45309;
}

.md-dim-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 1rem 0;
}

.md-dim {
  border: 1px solid var(--md-border);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: #fff;
}

.md-dim strong {
  color: var(--md-navy);
}

.md-color-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0 1.25rem;
}

.md-color-list span {
  background: var(--md-surface);
  border: 1px solid var(--md-border);
  border-radius: var(--md-radius-pill);
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.md-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 1rem 0 1.5rem;
  font-size: 0.88rem;
  color: var(--md-muted);
}

.md-trust i {
  color: #10b981;
  margin-right: 0.35rem;
}

/* PDP mobile bottom bar + dimension sheet (hidden on desktop) */
.md-pdp-mobile-bar,
.md-sheet {
  display: none;
}

.md-pdp-mbar-btn {
  flex: 1;
  min-height: 48px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.7rem 0.85rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.md-pdp-mbar-btn--outline {
  background: #fff;
  color: var(--md-navy);
  border: 1.5px solid var(--md-navy);
}

.md-pdp-mbar-btn--solid {
  background: var(--md-navy);
  color: #fff;
  border: 1.5px solid var(--md-navy);
}

.md-pdp-mbar-btn--outline:active {
  background: #f5f5f5;
}

.md-pdp-mbar-btn--solid:active {
  background: #041536;
}

.md-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 30, 87, 0.45);
}

.md-sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 0.5rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  max-height: min(85vh, 640px);
  overflow: auto;
  transform: translateY(110%);
  transition: transform 0.28s ease;
  z-index: 1;
}

.md-sheet.is-open .md-sheet-panel {
  transform: translateY(0);
}

.md-sheet-handle {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: #d7dbe3;
  margin: 0.35rem auto 0.75rem;
}

.md-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.md-sheet-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--md-navy);
}

.md-sheet-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f1f3f6;
  color: var(--md-navy);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.md-sheet-dims {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.md-sheet-dim {
  display: block;
  cursor: pointer;
}

.md-sheet-dim input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.md-sheet-dim-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1.5px solid var(--md-border);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.md-sheet-dim-main strong {
  font-size: 0.95rem;
  color: var(--md-navy);
  font-weight: 700;
  font-style: normal;
}

.md-sheet-dim-main em {
  font-style: normal;
  font-weight: 800;
  color: var(--md-navy);
  white-space: nowrap;
}

.md-sheet-dim input:checked + .md-sheet-dim-main {
  border-color: var(--md-navy);
  background: rgba(6, 30, 87, 0.04);
  box-shadow: inset 0 0 0 1px var(--md-navy);
}

.md-sheet-qty {
  margin-bottom: 1rem;
}

.md-sheet-qty label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--md-navy);
  margin-bottom: 0.35rem;
}

.md-sheet-qty .md-input {
  max-width: 120px;
}

.md-sheet-empty {
  color: var(--md-muted);
  margin: 0 0 1rem;
}

body.md-sheet-open {
  overflow: hidden;
}

/* Floating product video */
.md-float-video {
  position: fixed;
  left: 1rem;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 960;
}

.md-float-video-mini {
  position: relative;
  width: 132px;
  height: 232px;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 12px 32px rgba(6, 30, 87, 0.28);
  cursor: pointer;
}

.md-float-video-mini video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.md-float-video-close,
.md-float-video-expand,
.md-float-video-modal-x {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  font-size: 0.75rem;
}

.md-float-video-close {
  top: 8px;
  right: 8px;
}

.md-float-video-expand {
  right: 8px;
  bottom: 8px;
}

.md-float-video-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  visibility: hidden;
  pointer-events: none;
}

.md-float-video-modal.is-open {
  visibility: visible;
  pointer-events: auto;
}

.md-float-video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 21, 54, 0.72);
}

.md-float-video-modal-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: min(360px, calc(100vw - 2rem));
  max-height: min(82vh, 720px);
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.22s ease;
}

.md-float-video-modal.is-open .md-float-video-modal-panel {
  transform: translate(-50%, -50%) scale(1);
}

.md-float-video-modal-panel video {
  width: 100%;
  height: min(82vh, 720px);
  object-fit: contain;
  display: block;
  background: #000;
}

.md-float-video-modal-x {
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  font-size: 0.95rem;
}

body.md-float-video-open {
  overflow: hidden;
}

/* Floating WhatsApp */
.md-wa-float {
  position: fixed;
  right: 1rem;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 9999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease, background 0.2s ease;
  pointer-events: auto;
  text-decoration: none;
}

.md-wa-float:hover {
  background: #1ebe57;
  color: #fff;
  transform: scale(1.06);
}

@media (max-width: 991px) {
  .md-float-video {
    left: 0.65rem;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }

  .md-float-video-mini {
    width: 104px;
    height: 184px;
    border-radius: 14px;
  }

  .md-wa-float {
    right: 0.85rem;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    width: 52px;
    height: 52px;
    font-size: 1.55rem;
  }

  body.md-pdp-page .md-wa-float {
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }
}

/* Breadcrumb */
.md-breadcrumb {
  padding: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--md-muted);
}

.md-breadcrumb a:hover {
  color: var(--md-navy);
}

/* Legal pages */
.md-legal h1 {
  color: var(--md-navy);
  font-size: clamp(1.55rem, 3vw, 1.85rem);
  margin: 0 0 0.85rem;
  font-weight: 800;
}

.md-legal h2 {
  color: var(--md-navy);
  font-size: 1.05rem;
  margin: 1.75rem 0 0.65rem;
  font-weight: 800;
}

.md-legal-intro,
.md-legal p,
.md-legal li {
  color: var(--md-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.md-legal-meta {
  font-size: 0.82rem;
  color: #9aa3b2;
  margin: 0 0 1.5rem;
}

.md-legal ul {
  margin: 0.4rem 0 0.85rem;
  padding-left: 1.2rem;
  color: var(--md-muted);
}

.md-legal a {
  color: var(--md-navy);
  font-weight: 600;
}

.md-legal-cta {
  margin-top: 2rem;
}

/* Footer — style type Oraimo */
.md-footer {
  background: var(--md-navy-deep);
  color: rgba(255, 255, 255, 0.92);
  margin-top: 3rem;
  padding: 3.5rem 0 1.75rem;
}

.md-footer a {
  color: rgba(255, 255, 255, 0.88);
}

.md-footer a:hover {
  color: var(--md-yellow);
}

.md-footer-newsletter {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.md-footer-newsletter h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.md-footer-newsletter p {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
}

.md-footer-news-form {
  display: flex;
  align-items: stretch;
  width: min(100%, 480px);
  margin: 0 auto 0.85rem;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.md-footer-news-form input {
  flex: 1;
  border: 0;
  outline: none;
  padding: 0.85rem 1.15rem;
  font: inherit;
  font-size: 0.92rem;
  background: #fff;
  color: #111;
  min-width: 0;
}

.md-footer-news-form button {
  flex: 0 0 56px;
  border: 0;
  background: var(--md-navy);
  color: var(--md-yellow);
  cursor: pointer;
  font-size: 1.05rem;
  display: grid;
  place-items: center;
}

.md-footer-news-form button:hover {
  background: #0a2f7a;
}

.md-footer-news-agree {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.72rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.65);
  text-align: left;
  max-width: 480px;
  margin: 0 auto;
}

.md-footer-news-agree input {
  margin-top: 0.15rem;
  accent-color: var(--md-yellow);
}

.md-footer-news-agree a {
  text-decoration: underline;
  color: rgba(255, 255, 255, 0.85);
}

.md-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem 1.5rem;
}

.md-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0 0 1rem;
}

.md-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.md-footer li {
  margin-bottom: 0.55rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
}

.md-footer-contact strong {
  color: #fff;
  font-weight: 700;
}

.md-footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.md-social {
  display: flex;
  gap: 0.65rem;
}

.md-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.md-social a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--md-yellow);
}

/* Empty / alerts */
.md-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--md-muted);
}

.md-alert {
  border-radius: 10px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
}

.md-alert-success {
  background: #ecfdf5;
  color: #065f46;
}

.md-alert-danger {
  background: #fef2f2;
  color: #991b1b;
}

/* Auth (Oraimo-like) */
.md-auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  background: var(--md-navy-deep) center / cover no-repeat;
  position: relative;
}

.md-auth-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(4, 21, 54, 0.72);
}

.md-auth-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  background: #f3f4f6;
  border-radius: 24px;
  padding: 2.25rem 1.75rem;
}

.md-auth-card h1 {
  margin: 0 0 1.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #111;
  text-align: center;
}

.md-auth-field {
  margin-bottom: 1.25rem;
}

.md-auth-field label {
  display: block;
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 0.35rem;
}

.md-auth-field input {
  width: 100%;
  border: 0;
  border-bottom: 1.5px solid #c5c7cc;
  background: transparent;
  padding: 0.55rem 0;
  font: inherit;
  font-size: 1rem;
  border-radius: 0;
}

.md-auth-field input:focus {
  outline: none;
  border-bottom-color: var(--md-navy);
}

.md-auth-meta {
  font-size: 0.85rem;
  margin: -0.35rem 0 1.25rem;
}

.md-auth-meta a {
  color: var(--md-navy);
  font-weight: 600;
}

/* Pagination */
.md-store .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
}

.md-store .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border: 1px solid var(--md-border);
  border-radius: 8px;
  color: var(--md-navy);
  background: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}

.md-store .page-item.active .page-link,
.md-store .page-link:hover {
  background: var(--md-navy);
  border-color: var(--md-navy);
  color: #fff;
}

.md-store .page-item.disabled .page-link {
  opacity: 0.45;
  pointer-events: none;
}

.md-nav-mobile-only {
  display: none;
}

@media (max-width: 991px) {
  .md-nav-mobile-only {
    display: block;
  }
}

.md-trust-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}

@media (max-width: 575px) {
  .md-trust-bar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {
  .md-hide-sm {
    display: none !important;
  }

  .md-footer {
    display: none !important;
  }

  .md-nav-mobile-only {
    display: block;
  }

  .md-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md-catalog {
    grid-template-columns: 1fr;
  }

  .md-filters {
    position: static;
  }

  .md-pdp {
    grid-template-columns: 1fr;
  }

  .md-pdp-gallery {
    position: static;
  }

  .md-pdp,
  .md-pdp-gallery,
  .md-pdp-info {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .md-pdp-buy-desktop {
    display: none !important;
  }

  .md-pdp-mobile-bar {
    display: flex !important;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 950;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background: #fff;
    box-shadow: 0 -6px 24px rgba(6, 30, 87, 0.1);
  }

  /* Fermé : jamais visible (évite page blanche mobile) */
  .md-sheet {
    display: none !important;
    position: fixed;
    inset: 0;
    z-index: 1100;
    visibility: hidden;
    pointer-events: none;
  }

  .md-sheet.is-open {
    display: block !important;
    visibility: visible;
    pointer-events: auto;
  }

  body.md-pdp-page {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  .md-pdp-whatsapp {
    margin-bottom: 0.5rem;
  }

  .md-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .md-menu-toggle {
    display: inline-flex;
  }

  .md-show-mobile {
    display: inline-flex !important;
  }

  .md-header-inner {
    position: relative;
    gap: 0.35rem;
    width: calc(100% - 1rem);
    justify-content: space-between;
  }

  .md-logo {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-start;
    margin-right: auto;
  }

  .md-logo img {
    height: 30px;
  }

  .md-header-actions {
    flex: 0 0 auto;
    gap: 0;
    margin-left: auto;
  }

  .md-icon-btn {
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
  }

  .md-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    gap: 0.15rem;
    border-bottom: 1px solid var(--md-border);
    box-shadow: 0 10px 24px rgba(6, 30, 87, 0.08);
    z-index: 1001;
  }

  .md-nav.is-open {
    display: flex;
  }

  .md-nav a {
    color: var(--md-navy);
    padding: 0.75rem 0.85rem;
  }

  .md-header {
    position: sticky;
  }

  .md-container {
    width: calc(100% - 1.25rem);
  }

  .md-bs-slider {
    padding: 0 2rem 1.25rem;
  }
}

@media (max-width: 575px) {
  .md-hide-xs {
    display: none !important;
  }

  .md-topbar {
    font-size: 0.72rem;
    padding: 0.4rem 0.65rem;
    line-height: 1.35;
  }

  .md-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .md-product-footer {
    min-height: 0;
  }

  .md-product-price {
    margin-bottom: 0.45rem;
  }

  .md-product-actions {
    grid-template-columns: 1fr;
  }

  .md-footer-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .md-product-title {
    font-size: 0.88rem;
    min-height: 0;
  }

  .md-section {
    padding: 2rem 0;
  }

  .md-bestsellers-title {
    font-size: 1.35rem;
    margin-bottom: 1.15rem;
  }

  .md-new-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 0.65rem;
  }

  .md-bs-features {
    display: none;
  }

  .md-bs-title {
    font-size: 0.82rem;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .md-bs-price strong {
    font-size: 0.85rem;
  }

  .md-cat-tile-label {
    font-size: 1.05rem;
    top: 0.75rem;
    left: 0.85rem;
  }

  .md-trust-item {
    font-size: 0.84rem;
  }

  .md-cart-drawer {
    width: 100%;
  }

  .md-awards-links .md-btn {
    flex: 1 1 auto;
  }

  .md-slide-copy h1 {
    font-size: 1.55rem;
  }

  .md-slider {
    min-height: clamp(280px, 48svh, 380px);
  }

  .md-slider-track,
  .md-slide {
    min-height: clamp(280px, 48svh, 380px);
  }

  .md-trust-bar {
    grid-template-columns: 1fr;
  }
}
