/* ===========================
   BOUTIQUE PAGE
   =========================== */

.boutique-page {
  font-family: 'Montserrat', sans-serif;
  color: #111;
  margin: 0;
  background: #fff;
}

.boutique-page img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* --- Sub-nav --- */
.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;
}

/* --- Hero --- */
.b-hero {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 70px 24px 80px;
}

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

.b-hero-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

/* --- Trust bar --- */
.b-trust {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 28px 40px;
}

.b-trust-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto;
}

.b-trust-inner h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 400;
  color: #888;
  margin: 0;
  white-space: nowrap;
}

.b-trust-services {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  flex: 1;
  justify-content: center;
}

.b-service {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #444;
}

.b-service-icon {
  font-size: 16px;
}

.b-trust-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.b-icon-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}

.b-icon-btn:hover {
  border-color: #999;
}

/* --- Shop (gamme-style product grid) --- */
.b-shop.g-products {
  padding: 20px 40px 80px;
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
}

.boutique-page .g-product-grid {
  width: 100%;
}

.boutique-page .g-product-img {
  background: transparent;
  border: none;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.boutique-page .g-product-img .shop-img-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.boutique-page .g-product-img .shop-img-link img,
.boutique-page .g-product-img img {
  max-width: 92%;
  max-height: 92%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  mix-blend-mode: multiply;
}

/* Luminaires spots: fill the square frame like appareillage cards */
.boutique-page [data-section="luminaires"] .g-product-img {
  border-radius: 0;
  background: transparent;
}

.boutique-page [data-section="luminaires"] .g-product-img .shop-img-link,
.boutique-page [data-section="luminaires"] .g-product-img .shop-img-link img {
  border-radius: 0;
}

.boutique-page [data-section="luminaires"] .g-product-img .shop-img-link img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.boutique-page [data-section="sanitaires"] .g-product-img {
  border-radius: 24px;
  overflow: hidden;
}

.boutique-page [data-section="sanitaires"] .g-product-img .shop-img-link {
  border-radius: 24px;
  overflow: hidden;
}

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

.b-boutique-sections {
  display: flex;
  flex-direction: column;
  gap: 56px;
  width: 100%;
}

.b-boutique-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 400;
  text-align: center;
  margin: 32px 0 36px;
  letter-spacing: 0.02em;
  color: #111;
  scroll-margin-top: 140px;
}

.b-boutique-section-grid {
  width: 100%;
}

.b-boutique-section:not(:first-child) {
  padding-top: 8px;
  border-top: 1px solid #eee;
}

.b-boutique-section:first-child .b-boutique-section-title {
  margin-top: 44px;
}

.b-boutique-section:not(:first-child) .b-boutique-section-title {
  margin-top: 40px;
}

/* --- Section jump nav --- */
.b-section-nav {
  position: sticky;
  top: 72px;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 8px 40px 24px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.b-section-nav[hidden] {
  display: none !important;
}

.b-section-nav-btn {
  appearance: none;
  border: 1px solid #ddd;
  background: #fff;
  color: #222;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.2;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.b-section-nav-btn:hover,
.b-section-nav-btn:focus-visible {
  background: #111;
  border-color: #111;
  color: #fff;
  outline: none;
}

.b-section-nav-btn.is-active {
  background: #111;
  border-color: #111;
  color: #fff;
}

.b-section-nav-btn[hidden] {
  display: none !important;
}

/* --- Search bar --- */
.b-search-bar {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px 28px;
  background: #fff;
}

.b-search-bar input {
  width: 100%;
  padding: 14px 20px 14px 44px;
  border: 1px solid #e0e0e0;
  border-radius: 28px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  background: #fafafa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") 16px center no-repeat;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.b-search-bar input:focus {
  border-color: #e8752a;
  box-shadow: 0 0 0 3px rgba(232, 117, 42, 0.1);
  background-color: #fff;
}

/* --- Product card --- */
.b-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e5e5;
  background: #fff;
  padding: 16px;
  color: #111;
  transition: box-shadow 0.2s, transform 0.2s;
}

.b-product-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.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--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; }

.b-product-img {
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  margin-bottom: 12px;
  background: #f7f7f7;
  overflow: hidden;
  position: relative;
}

.b-product-img img {
  max-height: 82%;
  max-width: 82%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.b-stars {
  font-size: 12px;
  color: #e8752a;
  margin-bottom: 8px;
}

.b-stars span {
  color: #888;
  margin-left: 4px;
}

.b-product-card h3 {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

/* --- Sidebar --- */
.b-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.b-promo {
  padding: 24px 20px;
  text-align: center;
  color: #fff;
}

.b-promo--featured {
  background: #1a1a1a;
}

.b-promo--featured .b-promo-product {
  max-height: 100px;
  margin: 0 auto 16px;
  object-fit: contain;
  filter: brightness(1.1);
}

.b-promo--featured h3 {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 8px;
  line-height: 1.4;
}

.b-promo-price {
  font-size: 13px;
  color: #ccc;
  margin: 0 0 16px;
}

.b-promo--discount {
  background: #111;
  padding: 32px 20px;
}

.b-promo--discount h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 20px;
}

.b-promo-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #fff;
  color: #111;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}

.b-promo-btn:hover {
  background: #eee;
}

.b-promo-image img {
  width: 100%;
  min-height: 280px;
  object-fit: cover;
}

/* --- Contact --- */
.b-contact {
  text-align: center;
  padding: 80px 24px 100px;
  background: #fff;
}

.b-contact h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 400;
  margin: 0 0 12px;
}

.b-contact p {
  font-size: 15px;
  color: #666;
  margin: 0 0 28px;
}

.b-contact-btn {
  display: inline-block;
  padding: 14px 36px;
  border: 1px solid #bbb;
  border-radius: 6px;
  color: #111;
  text-decoration: none;
  font-size: 14px;
  background: #fff;
  transition: background 0.2s;
}

.b-contact-btn:hover {
  background: #f5f5f5;
}

/* --- Responsive --- */
@media (max-width: 1200px) {
  .b-shop.g-products {
    padding-inline: 24px;
  }
}

@media (max-width: 992px) {
  .b-trust {
    padding: 20px 16px;
  }

  .b-trust-inner {
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .b-trust-inner::-webkit-scrollbar {
    display: none;
  }

  .b-trust-inner h2 {
    font-size: 16px;
    flex: 0 0 auto;
    max-width: 140px;
    white-space: normal;
    line-height: 1.3;
  }

  .b-trust-services {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 16px;
  }

  .b-service {
    flex: 0 0 auto;
    font-size: 11px;
  }

  .b-trust-actions {
    flex: 0 0 auto;
  }
}

@media (max-width: 768px) {
  .b-subnav {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 10px 16px;
    font-size: 11px;
  }

  .b-community {
    font-size: 11px;
    text-align: right;
  }

  .b-hero {
    padding: 48px 16px 56px;
  }

  .b-section-nav {
    top: 64px;
    gap: 8px;
    padding: 6px 16px 18px;
  }

  .b-section-nav-btn {
    font-size: 11px;
    padding: 8px 11px;
  }

  .b-boutique-section-title,
  .b-boutique-section:first-child .b-boutique-section-title,
  .b-boutique-section:not(:first-child) .b-boutique-section-title {
    scroll-margin-top: 160px;
  }

  .b-shop {
    padding: 24px 16px;
  }

  .boutique-page .g-product-grid:not(.g-product-grid--staggered) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }
}

@media (max-width: 480px) {
  .b-search-bar {
    padding: 0 16px 20px;
  }

  .b-trust-inner h2 {
    max-width: 110px;
    font-size: 14px;
  }

  .b-service {
    font-size: 10px;
  }
}

@media (max-width: 360px) {
  .boutique-page .g-product-grid:not(.g-product-grid--staggered) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 10px;
  }
}
