/* ===========================
   SHOP SYSTEM STYLES
   Cart, Favorites, Search, Product Detail, Gamme Grid
   =========================== */

.b-subnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #000;
  color: #fff;
  padding: 10px 40px;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.b-breadcrumb { color: #fff; }

.b-community {
  color: #ccc;
  font-size: 14px;
  font-weight: 300;
  text-decoration: none;
}

.b-subnav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.b-subnav-btn {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border-color 0.2s;
}

.b-subnav-btn:hover {
  border-color: #fff;
}

/* --- Product image actions (cart + like overlays) --- */
.b-product-img,
.g-product-img,
.pd-img-wrap {
  position: relative;
}

.shop-product-actions {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 3;
}

.b-product-img:hover .shop-product-actions,
.g-product-img:hover .shop-product-actions,
.pd-img-wrap:hover .shop-product-actions,
.shop-product-actions:focus-within {
  opacity: 1;
  transform: translateY(0);
}

/* Gamme pages: keep cart/heart visible on laptop (not hover-only) */
.gamme-page .shop-product-actions,
.gamme-page .g-product-img .shop-product-actions {
  opacity: 1;
  transform: none;
}

.shop-action-btn {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: background 0.2s, transform 0.15s;
}

.shop-action-btn:hover {
  background: #fff;
  transform: scale(1.08);
}

.shop-like-btn.is-liked {
  color: #c0392b;
}

.shop-img-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.shop-img-link img {
  max-height: 120px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s;
}

.shop-img-link.shop-img--scaled img {
  transform: scale(var(--img-scale, 1));
  transform-origin: center center;
}

.b-product-img:hover .shop-img-link img,
.g-product-img:hover .shop-img-link img {
  transform: scale(1.03);
}

.b-product-img:hover .shop-img-link.shop-img--scaled img,
.g-product-img:hover .shop-img-link.shop-img--scaled img {
  transform: scale(calc(var(--img-scale, 1) * 1.03));
}

/* --- Boutique card title link --- */
.b-product-card h3 a {
  color: inherit;
  text-decoration: none;
}

.b-product-card h3 a:hover {
  text-decoration: underline;
}

/* --- Trust bar badge counts --- */
.b-icon-btn {
  position: relative;
}

.shop-count-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #e8752a;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.shop-count-badge[hidden] {
  display: none;
}

.shop-count-badge.is-bump {
  animation: shop-badge-bump 0.45s ease;
}

@keyframes shop-badge-bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.35); }
  70% { transform: scale(0.92); }
  100% { transform: scale(1); }
}

.b-icon-btn.is-cart-highlight,
.shop-action-btn.is-cart-added,
.pd-btn--cart.is-cart-added {
  animation: shop-cart-pop 0.45s ease;
}

@keyframes shop-cart-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* --- Boutique inline search (moved to boutique.css) --- */

/* --- Search overlay --- */
.shop-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 24px 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.shop-search-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.shop-search-modal {
  width: 100%;
  max-width: 560px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.shop-search-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}

.shop-search-header input {
  flex: 1;
  border: none;
  font-size: 16px;
  font-family: 'Montserrat', sans-serif;
  outline: none;
}

.shop-search-close {
  width: 32px;
  height: 32px;
  border: none;
  background: #f0f0f0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.shop-search-results {
  max-height: 400px;
  overflow-y: auto;
  padding: 8px;
}

.shop-search-hint {
  padding: 24px;
  text-align: center;
  color: #888;
  font-size: 14px;
  margin: 0;
}

.shop-search-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  text-decoration: none;
  color: #111;
  border-radius: 8px;
  transition: background 0.15s;
}

.shop-search-item:hover {
  background: #f5f5f5;
}

.shop-search-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #fafafa;
  border-radius: 6px;
}

.shop-search-item strong {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}

.shop-search-item span {
  font-size: 12px;
  color: #888;
}

/* --- Floating cart / favorites (all shop pages) --- */
.shop-floating-bar {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 1800;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body:has(.b-subnav-actions) .shop-floating-bar,
body:has(.b-trust-actions) .shop-floating-bar,
body:has(.ck-subbar-actions) .shop-floating-bar {
  display: none;
}

/* Boutique mobile: trust-bar icons scroll away — keep floating cart/heart */
@media (max-width: 992px) {
  body.boutique-page:has(.b-trust-actions) .shop-floating-bar {
    display: flex;
  }

  body.boutique-page .b-trust-actions {
    display: none;
  }
}

.shop-floating-btn {
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, background 0.2s ease;
}

.shop-floating-btn:hover {
  transform: translateY(-2px);
  background: #000;
}

.shop-floating-btn .shop-count-badge {
  top: -4px;
  right: -4px;
}

.lc-quadrant-visual,
.lc-reglette-media,
.lc-coffret-media {
  position: relative;
}

.lc-quadrant-visual .shop-product-actions,
.lc-reglette-media .shop-product-actions,
.lc-coffret-media .shop-product-actions {
  opacity: 1;
  transform: none;
}

.lc-quadrant-link,
.lc-reglette-item,
.lc-coffret-item {
  position: relative;
}

@media (max-width: 700px) {
  .shop-floating-bar {
    right: 12px;
    bottom: 16px;
  }

  .shop-floating-btn {
    width: 46px;
    height: 46px;
    font-size: 18px;
  }
}

/* --- Side panels (cart & favorites) --- */
.shop-panels-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1900;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.shop-panels-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.shop-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background: #fff;
  z-index: 1950;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
}

.shop-panel.is-open {
  transform: translateX(0);
}

.shop-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #eee;
}

.shop-panel-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  margin: 0;
}

.shop-panel-close {
  width: 32px;
  height: 32px;
  border: none;
  background: #f0f0f0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
}

.shop-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.shop-panel-empty {
  text-align: center;
  color: #888;
  padding: 40px 0;
  font-size: 14px;
}

.shop-panel-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.shop-panel-item--link {
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  padding: 12px;
  margin: 0 -12px;
  border-radius: 8px;
}

.shop-panel-item--link:hover {
  background: #f8f8f8;
}

.shop-panel-item-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.shop-panel-item img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #fafafa;
  border-radius: 6px;
  flex-shrink: 0;
}

.shop-panel-item-info {
  flex: 1;
  min-width: 0;
}

.shop-panel-item-info strong {
  display: block;
  font-size: 13px;
  line-height: 1.3;
  margin-bottom: 4px;
}

.shop-panel-item-info > span {
  font-size: 12px;
  color: #888;
}

.shop-panel-line-total {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #111;
  margin-top: 2px;
}

.shop-panel-discount {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #1a7f4b;
  margin-top: 2px;
}

.shop-panel-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.shop-panel-qty button {
  width: 26px;
  height: 26px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.shop-panel-remove {
  border: none;
  background: none;
  font-size: 20px;
  color: #999;
  cursor: pointer;
  padding: 0 4px;
}

.shop-panel-footer {
  padding: 16px 24px 24px;
  border-top: 1px solid #eee;
}

.shop-panel-total {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}

.shop-panel-checkout {
  display: block;
  width: 100%;
  padding: 14px;
  background: #111;
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

body.shop-panel-open {
  overflow: hidden;
}

/* --- Toast --- */
.shop-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #111;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 13px;
  z-index: 3000;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.shop-toast--cart {
  background: #1a3d2e;
}

.shop-toast-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #3ecf8e;
  color: #0b2a1c;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: shop-toast-check 0.35s ease;
}

@keyframes shop-toast-check {
  0% { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.shop-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --- Product detail page --- */
.product-page {
  font-family: 'Montserrat', sans-serif;
  color: #111;
  background: #fff;
}

.pd-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 40px 80px;
  align-items: start;
}

.pd-img-wrap {
  background: #fafafa;
  border: 1px solid #eee;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}

.pd-gallery--with-thumbs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pd-gallery-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px;
  gap: 12px;
  align-items: stretch;
}

.pd-gallery--with-thumbs .pd-img-wrap {
  min-height: 420px;
  padding: 28px;
}

.pd-thumbs-rail {
  display: flex;
  gap: 10px;
}

.pd-thumbs-rail--right {
  flex-direction: column;
}

.pd-thumbs-rail--bottom {
  flex-direction: row-reverse;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.pd-thumb {
  appearance: none;
  border: 1px solid #e4e4e4;
  background: #fafafa;
  padding: 6px;
  width: 84px;
  height: 84px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pd-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.pd-thumb:hover,
.pd-thumb.is-active {
  border-color: #111;
  box-shadow: inset 0 0 0 1px #111;
}

.pd-img-wrap img {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
}

.pd-view360-wrap {
  width: 100%;
}

.pd-view360 {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.pd-view360.is-dragging {
  cursor: grabbing;
}

.pd-view360__img {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  pointer-events: none;
}

.pd-view360__slider {
  width: min(100%, 280px);
  accent-color: #1a1a1a;
}

.pd-view360__hint {
  margin: 0;
  font-size: 12px;
  color: #888;
  letter-spacing: 0.02em;
}

.pd-gamme {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin: 0 0 8px;
}

.pd-info h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 400;
  margin: 0 0 12px;
  line-height: 1.2;
}

.pd-review-stats {
  margin: 0 0 16px;
  font-size: 14px;
}

.pd-price {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 20px;
}

.pd-price span {
  font-size: 13px;
  font-weight: 400;
  color: #888;
}

.pd-desc {
  margin: 0 0 28px;
}

.pd-desc-list {
  margin: 0 0 18px;
  padding: 0 0 0 1.15em;
  list-style: disc;
  font-size: 15px;
  line-height: 1.65;
  color: #555;
}

.pd-desc-list li {
  margin: 0 0 0.45em;
}

.pd-desc-list li:last-child {
  margin-bottom: 0;
}

.pd-desc-text {
  font-size: 15px;
  line-height: 1.7;
  color: #555;
  margin: 0 0 18px;
}

.pd-tech-sheet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid #111;
  color: #111;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.pd-tech-sheet:hover {
  background: #111;
  color: #fff;
}

.pd-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.pd-btn {
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: 1px solid #111;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
}

.pd-btn--cart {
  background: #111;
  color: #fff;
}

.pd-btn--cart:hover {
  background: #333;
}

.pd-btn--fav {
  background: #fff;
  color: #111;
}

.pd-btn--fav.is-liked {
  color: #c0392b;
  border-color: #c0392b;
}

.pd-back {
  font-size: 13px;
  color: #888;
  text-decoration: none;
}

.pd-back:hover {
  color: #111;
}

.shop-error {
  text-align: center;
  padding: 80px 24px;
  color: #888;
}

/* --- Gamme pages --- */
.gamme-page {
  font-family: 'Montserrat', sans-serif;
  color: #111;
  background: #fff;
}

.g-hero {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 80px 24px 90px;
}

.g-hero--image {
  position: relative;
  min-height: 660px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 110px 24px 120px;
  background-color: #111;
  background-size: cover;
  background-position: center;
}

.g-hero-top {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.g-hero-top a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
}

.g-hero-content {
  max-width: 720px;
}

.g-catalog-link {
  display: inline-block;
  margin-top: 24px;
  margin-right: 18px;
  font-size: 13px;
  color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.g-catalog-link:hover {
  color: #555;
}

.g-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 400;
  margin: 0 0 16px;
}

.g-hero p {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  max-width: 600px;
  margin-inline: auto;
}

.g-intro {
  text-align: center;
  padding: 56px 24px 40px;
  max-width: 720px;
  margin: 0 auto;
}

.g-intro h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  margin: 0 0 8px;
}

.g-intro h3 {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  margin: 0 0 16px;
  text-transform: none;
  letter-spacing: 0;
  text-align: left;
}

.g-intro p {
  font-size: 15px;
  line-height: 1.7;
  color: #555;
  margin: 0;
  text-align: left;
}

.g-products {
  padding: 20px 40px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

.g-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
}

/* Gamme pages — alternating 2 / 3 item rows, image left + text right */
.g-product-grid.g-product-grid--staggered {
  display: flex;
  flex-direction: column;
  gap: 120px;
  width: 100%;
  max-width: 1400px;
}

.g-product-grid--staggered .g-product-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  width: 100%;
}

/* 2-item rows: centred pair on one line, wide gap between cards */
.g-product-grid--staggered .g-product-row--2 {
  flex-wrap: nowrap;
  justify-content: center;
  column-gap: clamp(120px, 14vw, 260px);
  row-gap: 88px;
  max-width: 100%;
  margin-inline: auto;
}

/* 3-item rows: span wider, closer to container edges */
.g-product-grid--staggered .g-product-row--3 {
  justify-content: space-between;
  column-gap: clamp(28px, 3.5vw, 64px);
  row-gap: 80px;
  max-width: none;
  margin-inline: clamp(-20px, -2vw, -40px);
  padding-inline: clamp(0px, 1vw, 12px);
}

.g-product-grid--staggered .g-product-row--1 {
  justify-content: center;
  gap: 64px;
}

.gamme-page--staggered .g-product-card {
  flex-direction: row;
  align-items: flex-start;
  gap: 22px;
}

.g-product-grid--staggered .g-product-row--2 .g-product-card {
  flex: 0 1 440px;
  width: auto;
  max-width: 440px;
  min-width: 0;
}

.g-product-grid--staggered .g-product-row--3 .g-product-card {
  flex: 1 1 0;
  min-width: min(100%, 280px);
  max-width: 400px;
}

.g-product-grid--staggered .g-product-row--1 .g-product-card {
  flex: 0 1 520px;
  max-width: 100%;
}

.gamme-page--staggered .g-product-img {
  width: 168px;
  height: 168px;
  aspect-ratio: 1;
  flex-shrink: 0;
}

.gamme-page--staggered .g-product-info {
  flex: 1;
  min-width: 0;
  padding-top: 8px;
}

.gamme-page--staggered .g-product-info h3 {
  font-size: 15px;
  margin-bottom: 10px;
}

.gamme-page--staggered .g-product-meta,
.gamme-page--staggered .g-product-serie {
  font-size: 12px;
  line-height: 1.65;
}

.gamme-page--staggered .g-products {
  padding: 40px clamp(20px, 3vw, 40px) 120px;
  max-width: 1400px;
}

/* Dark gamme theme — classique, rectangle, moderne */
.gamme-page--dark {
  background: #000;
  color: #fff;
}

.gamme-page--dark .g-intro h2 {
  color: #fff;
}

.gamme-page--dark .g-intro h3 {
  color: rgba(255, 255, 255, 0.92);
}

.gamme-page--dark .g-intro p {
  color: rgba(255, 255, 255, 0.72);
}

.gamme-page--dark .g-catalog-link {
  color: rgba(255, 255, 255, 0.85);
}

.gamme-page--dark .g-catalog-link:hover {
  color: #fff;
}

.gamme-page--dark .g-product-info h3 a {
  color: #fff;
}

.gamme-page--dark .g-product-price {
  color: rgba(255, 255, 255, 0.9);
}

.gamme-page--dark .g-product-meta,
.gamme-page--dark .g-product-serie {
  color: rgba(255, 255, 255, 0.55);
}

.gamme-page--dark .g-product-meta span,
.gamme-page--dark .g-product-serie span {
  color: rgba(255, 255, 255, 0.35);
}

.gamme-page--dark .review-summary,
.gamme-page--dark .review-stars + .review-count,
.gamme-page--dark .review-summary-empty {
  color: rgba(255, 255, 255, 0.5);
}

.g-product-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.g-product-img {
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 1;
  background: #f7f7f7;
  border: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.gamme-page .g-product-img {
  background: transparent;
  border: none;
}

.g-product-img .shop-img-link img {
  max-height: 75%;
  max-width: 75%;
  object-fit: contain;
}

.g-product-info {
  text-align: left;
}

.g-product-price {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  margin: 6px 0 4px;
}

.review-summary,
.pd-review-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

.review-stars {
  color: #c9a227;
  letter-spacing: 1px;
}

.review-summary-empty,
.review-list-empty {
  font-size: 12px;
  color: #999;
  font-style: italic;
}

.review-count {
  color: #888;
}

/* --- Product reviews --- */
.pd-reviews {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px 80px;
  border-top: 1px solid #eee;
}

.pd-reviews h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 400;
  margin: 40px 0 16px;
}

.pd-reviews h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 16px;
}

.review-form {
  background: #fafafa;
  border: 1px solid #eee;
  padding: 24px;
  margin-bottom: 32px;
}

.review-field {
  display: block;
  margin-bottom: 16px;
}

.review-field span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #444;
}

.review-field input,
.review-field textarea {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 0;
  box-sizing: border-box;
}

.review-star-picker {
  display: flex;
  gap: 4px;
}

.review-star-picker button {
  background: none;
  border: none;
  font-size: 24px;
  color: #ddd;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
}

.review-star-picker button.is-active {
  color: #c9a227;
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review-item {
  border-bottom: 1px solid #eee;
  padding-bottom: 16px;
}

.review-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 8px;
  font-size: 13px;
}

.review-item-head time {
  color: #999;
  font-size: 12px;
  margin-left: auto;
}

.review-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #444;
}

.g-product-info h3 {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.3;
}

.g-product-info h3 a {
  color: inherit;
  text-decoration: none;
}

.g-product-info h3 a:hover {
  text-decoration: underline;
}

.g-product-meta,
.g-product-serie {
  font-size: 11px;
  color: #888;
  margin: 0;
  line-height: 1.5;
}

.g-product-meta span,
.g-product-serie span {
  color: #bbb;
  margin-right: 4px;
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .g-product-grid:not(.g-product-grid--staggered) {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Continuous 2-column product grid on tablet/phone */
  .g-product-grid.g-product-grid--staggered {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
  }

  .g-product-grid--staggered .g-product-row--2,
  .g-product-grid--staggered .g-product-row--3,
  .g-product-grid--staggered .g-product-row--1 {
    display: contents;
  }

  .g-product-grid--staggered .g-product-row--2 .g-product-card,
  .g-product-grid--staggered .g-product-row--3 .g-product-card,
  .g-product-grid--staggered .g-product-row--1 .g-product-card {
    flex: unset;
    max-width: none;
    min-width: 0;
    width: auto;
  }

  .gamme-page--staggered .g-product-card {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .gamme-page--staggered .g-product-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .pd-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 24px 60px;
  }

  .pd-gallery-stage {
    grid-template-columns: minmax(0, 1fr) 72px;
    gap: 10px;
  }

  .pd-thumb {
    width: 72px;
    height: 72px;
  }

  .pd-gallery--with-thumbs .pd-img-wrap {
    min-height: 320px;
    padding: 20px;
  }
}

@media (max-width: 560px) {
  .pd-gallery-stage {
    grid-template-columns: 1fr;
  }

  .pd-thumbs-rail--right {
    flex-direction: row;
    flex-wrap: wrap;
    order: 1;
  }

  .pd-thumbs-rail--bottom {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .pd-thumb {
    width: calc(25% - 8px);
    height: 72px;
  }
}

@media (max-width: 768px) {
  .g-product-grid:not(.g-product-grid--staggered) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }

  /* Flatten staggered rows into a continuous 2×2 grid on mobile */
  .g-product-grid.g-product-grid--staggered {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }

  .g-product-grid--staggered .g-product-row--2,
  .g-product-grid--staggered .g-product-row--3,
  .g-product-grid--staggered .g-product-row--1 {
    display: contents;
  }

  .g-product-grid--staggered .g-product-row--2 .g-product-card,
  .g-product-grid--staggered .g-product-row--3 .g-product-card,
  .g-product-grid--staggered .g-product-row--1 .g-product-card {
    flex: unset;
    max-width: none;
    min-width: 0;
    width: auto;
  }

  .gamme-page--staggered .g-product-card {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .gamme-page--staggered .g-product-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .gamme-page--staggered .g-product-info {
    padding-top: 0;
  }

  .gamme-page--staggered .g-product-info h3 {
    font-size: 13px;
    margin-bottom: 6px;
    line-height: 1.35;
  }

  .gamme-page--staggered .g-product-meta,
  .gamme-page--staggered .g-product-serie,
  .gamme-page--staggered .g-product-price,
  .gamme-page--staggered .review-summary {
    font-size: 11px;
  }

  .gamme-page--staggered .g-products {
    padding: 20px 12px 60px;
  }

  .g-products {
    padding: 20px 12px 60px;
  }

  .b-search-bar {
    padding: 0 16px;
  }

  .shop-product-actions {
    opacity: 1;
    transform: none;
  }

  .g-product-info h3 {
    font-size: 13px;
  }

  .g-product-price {
    font-size: 12px;
  }

  .review-summary,
  .review-summary-empty {
    font-size: 10px;
  }
}

@media (max-width: 600px) {
  .g-hero-top {
    flex-direction: column;
    gap: 8px;
    padding: 0 20px;
  }
}

.b-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #fff;
}

.b-badge--inline {
  position: static;
  display: inline-block;
  margin: 8px 0 12px;
}

.b-badge--offer { background: #2b6cb0; }
.b-badge--sale { background: #d4a017; color: #111; }
.b-badge--vente { background: #2d8a4e; }
.b-badge--promo { background: #c0392b; }
.b-badge--fin-serie { background: #4a5568; }
.b-badge--nouveaute { background: #6d28d9; }
.b-badge--stock-epuise { background: #374151; }
