/* Gamme Sanitaire — dark luxury carousel layout */

.sanitaires-page {
  --san-product-radius: 24px;
  font-family: 'Montserrat', sans-serif;
  background: #000;
  color: #fff;
  margin: 0;
}

/* Hero */
.san-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 72px 24px 64px;
  background: url('Photos/neptune Photos/sanitaire.gif') center/cover no-repeat;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

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

.san-hero-content {
  max-width: 680px;
}

.san-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 6vw, 58px);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0 0 20px;
  color: #fff;
}

.san-hero p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

.san-hero .g-catalog-link {
  color: rgba(255, 255, 255, 0.9);
  margin-top: 20px;
}

.san-hero .g-catalog-link:hover {
  color: #fff;
}

.san-main {
  padding-bottom: 80px;
}

/* Category sections */
.san-group {
  padding: 72px 0 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.san-group:last-child {
  border-bottom: none;
}

.san-group h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 400;
  text-align: center;
  margin: 0 0 8px;
  color: #fff;
  letter-spacing: 0.02em;
}

.san-group-meta {
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin: 0 0 40px;
}

.san-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #111;
  background: rgba(255, 255, 255, 0.92);
}

/* Sub-sections inside Accessoires SDB (porte-papier, porte-brosse, etc.) */
.san-sdb-subsection {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.san-sdb-subsection--first {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.san-sdb-subhead {
  text-align: center;
  margin-bottom: 40px;
}

.san-sdb-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 400;
  margin: 0 0 8px;
  color: #fff;
  letter-spacing: 0.02em;
}

.san-sdb-submeta {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

/* Inox sub-section inside Accessoires SDB */
.san-inox-subsection {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.san-inox-subhead {
  text-align: center;
  margin-bottom: 40px;
}

.san-inox-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 400;
  margin: 0 0 10px;
  color: #fff;
  letter-spacing: 0.02em;
}

.san-inox-desc {
  margin: 0 auto 18px;
  max-width: 560px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.45);
}

.san-inox-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.san-inox-link:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
}

/* Carousel viewport */
.san-carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 72px;
}

.san-carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.san-carousel-track {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 20px;
  min-height: 380px;
  will-change: transform;
}

.san-carousel-track.is-sliding .san-slide {
  transition: opacity 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Slides */
.san-slide {
  flex: 0 0 26%;
  max-width: 280px;
  opacity: 0.35;
  transform: scale(0.9);
  transform-origin: center bottom;
  transition: opacity 0.4s ease, transform 0.4s ease;
  text-align: center;
  pointer-events: none;
}

.san-slide.san-slide--side {
  pointer-events: auto;
  cursor: pointer;
}

.san-slide.is-center {
  flex: 0 0 38%;
  max-width: 420px;
  opacity: 1;
  transform: scale(1);
  transform-origin: center bottom;
  pointer-events: auto;
}

.san-slide-card {
  position: relative;
  background: transparent;
  padding: 0;
  margin-bottom: 20px;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: 260px;
  min-height: 260px;
  overflow: visible;
}

.san-slide.is-center .san-slide-card {
  height: 260px;
  min-height: 260px;
}

.san-slide-card .shop-img-link {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  text-decoration: none;
  border-radius: var(--san-product-radius);
  overflow: hidden;
}

.san-slide-card .shop-img-link img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center bottom;
  border-radius: var(--san-product-radius);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center bottom;
}

.san-slide--side:hover .san-slide-card .shop-img-link img {
  opacity: 0.85;
}

.san-slide-card:hover .shop-img-link img {
  transform: scale(1.04);
}

/* Cuvettes, lavabo, robinetterie, accessoires — tall product shots, avoid cropping */
#san-group-cuvettes .san-slide-card,
#san-group-lavabo .san-slide-card,
#san-group-robinetterie-lavabo .san-slide-card,
#san-group-robinetterie-chasse .san-slide-card,
#san-group-accessoires-sdb .san-slide-card {
  aspect-ratio: auto;
  height: 300px;
  min-height: 300px;
}

#san-group-cuvettes .san-slide.is-center .san-slide-card,
#san-group-lavabo .san-slide.is-center .san-slide-card,
#san-group-robinetterie-lavabo .san-slide.is-center .san-slide-card,
#san-group-robinetterie-chasse .san-slide.is-center .san-slide-card,
#san-group-accessoires-sdb .san-slide.is-center .san-slide-card {
  height: 300px;
  min-height: 300px;
}

#san-group-cuvettes .san-slide-card .shop-img-link img,
#san-group-lavabo .san-slide-card .shop-img-link img,
#san-group-robinetterie-lavabo .san-slide-card .shop-img-link img,
#san-group-robinetterie-chasse .san-slide-card .shop-img-link img,
#san-group-accessoires-sdb .san-slide-card .shop-img-link img,
#san-group-douches .san-slide-card .shop-img-link img {
  object-fit: contain;
  object-position: center bottom;
}

#san-group-cuvettes .san-slide-card:hover .shop-img-link img,
#san-group-lavabo .san-slide-card:hover .shop-img-link img,
#san-group-robinetterie-lavabo .san-slide-card:hover .shop-img-link img,
#san-group-robinetterie-chasse .san-slide-card:hover .shop-img-link img,
#san-group-accessoires-sdb .san-slide-card:hover .shop-img-link img {
  transform: scale(1.02);
}

/* Douches — tall portrait product shots, full product visible */
#san-group-douches .san-slide-card {
  aspect-ratio: auto;
  height: 320px;
  min-height: 320px;
}

#san-group-douches .san-slide.is-center .san-slide-card {
  height: 320px;
  min-height: 320px;
}

#san-group-douches .san-slide-card:hover .shop-img-link img {
  transform: scale(1.02);
}

#san-group-douches .san-slide h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
}

#san-group-douches .san-price {
  font-weight: 600;
}

/* Rounded corners on product images */
.sanitaires-page .san-slide-card .shop-img-link {
  display: flex;
  max-height: none;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: var(--san-product-radius);
  overflow: hidden;
}

.sanitaires-page .san-slide-card .shop-img-link img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--san-product-radius);
  object-fit: contain;
  object-position: center bottom;
}

/* Grid views linked from sanitaires (boutique section, inox page) */
.sanitaires-page .g-product-img,
.boutique-page [data-section="sanitaires"] .g-product-img {
  background: transparent;
  border: none;
  border-radius: var(--san-product-radius);
  overflow: hidden;
}

.sanitaires-page .g-product-img .shop-img-link,
.boutique-page [data-section="sanitaires"] .g-product-img .shop-img-link {
  border-radius: var(--san-product-radius);
  overflow: hidden;
}

.sanitaires-page .g-product-img .shop-img-link img,
.boutique-page [data-section="sanitaires"] .g-product-img .shop-img-link img {
  border-radius: var(--san-product-radius);
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.san-slide-card .shop-product-actions {
  opacity: 0;
}

.san-slide.is-center .san-slide-card:hover .shop-product-actions,
.san-slide.is-center .san-slide-card .shop-product-actions:focus-within {
  opacity: 1;
}

.san-slide h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 500;
  margin: 0 0 8px;
  line-height: 1.3;
}

.san-slide h3 a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s;
}

.san-slide h3 a:hover {
  color: rgba(255, 255, 255, 0.75);
}

.san-desc {
  font-size: 12px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.san-slide.is-center .san-desc {
  color: rgba(255, 255, 255, 0.55);
}

.san-price {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 8px;
  letter-spacing: 0.03em;
}

.san-slide .review-summary {
  justify-content: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

.san-slide .review-summary-empty {
  color: rgba(255, 255, 255, 0.3);
  font-size: 11px;
}

/* Navigation arrows */
.san-nav {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  z-index: 3;
}

.san-nav:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.san-nav--prev { left: 12px; }
.san-nav--next { right: 12px; }

.san-nav:disabled {
  opacity: 0.2;
  cursor: default;
}

/* Single-product fallback */
.san-carousel--single .san-slide {
  flex: 0 0 42%;
  max-width: 420px;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

@media (max-width: 900px) {
  .san-carousel {
    padding: 0 56px;
  }

  .san-slide {
    flex: 0 0 22%;
    max-width: 200px;
  }

  .san-slide.is-center {
    flex: 0 0 50%;
    max-width: 320px;
  }

  .san-slide-card {
    height: 200px;
    min-height: 200px;
  }

  .san-slide.is-center .san-slide-card {
    height: 200px;
    min-height: 200px;
  }
}

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

  .san-group {
    padding: 48px 0 40px;
  }

  .san-carousel {
    padding: 0 40px;
  }

  .san-carousel-track {
    gap: 12px;
    min-height: 300px;
  }

  /* Keep side slides visible so the laptop-style slide animation works */
  .san-slide {
    flex: 0 0 28%;
    max-width: 140px;
    opacity: 0.4;
    transform: scale(0.86);
  }

  .san-slide.is-center {
    flex: 0 0 56%;
    max-width: 260px;
    opacity: 1;
    transform: scale(1);
  }

  .san-slide-card,
  .san-slide.is-center .san-slide-card {
    height: 170px;
    min-height: 170px;
  }

  #san-group-cuvettes .san-slide-card,
  #san-group-lavabo .san-slide-card,
  #san-group-robinetterie-lavabo .san-slide-card,
  #san-group-robinetterie-chasse .san-slide-card,
  #san-group-accessoires-sdb .san-slide-card,
  #san-group-cuvettes .san-slide.is-center .san-slide-card,
  #san-group-lavabo .san-slide.is-center .san-slide-card,
  #san-group-robinetterie-lavabo .san-slide.is-center .san-slide-card,
  #san-group-robinetterie-chasse .san-slide.is-center .san-slide-card,
  #san-group-accessoires-sdb .san-slide.is-center .san-slide-card {
    height: 190px;
    min-height: 190px;
  }

  #san-group-douches .san-slide-card,
  #san-group-douches .san-slide.is-center .san-slide-card {
    height: 170px;
    min-height: 170px;
  }

  .san-slide h3 {
    font-size: 13px;
  }

  .san-desc {
    font-size: 11px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .san-price {
    font-size: 12px;
  }

  .san-nav {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }

  .san-nav--prev { left: 2px; }
  .san-nav--next { right: 2px; }
}
