/* ============================================================
   BOUTIQUE.CSS — E-commerce styles for Oscareaux plumber shop
   Uses CSS variables defined in main.css
   ============================================================ */

/* -------------------------------------------------------
   0. SHARED UTILITIES
   ------------------------------------------------------- */
.boutique-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  font-family: var(--font-body), sans-serif;
  color: var(--color-text);
}

.boutique-section h1,
.boutique-section h2,
.boutique-section h3,
.boutique-section h4 {
  font-family: var(--font-title), sans-serif;
  color: var(--color-heading);
}

.boutique-section h1 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.boutique-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.boutique-breadcrumb {
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.boutique-breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
}

.boutique-breadcrumb a:hover {
  text-decoration: underline;
}

.boutique-breadcrumb span {
  margin: 0 0.4rem;
  color: var(--color-border);
}

/* -------------------------------------------------------
   1. PRODUCT CATALOGUE GRID
   ------------------------------------------------------- */
.catalogue-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.catalogue-header p {
  font-size: 0.9375rem;
  color: var(--color-text);
}

.catalogue-sort select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body), sans-serif;
  font-size: 0.875rem;
  color: var(--color-text);
  background: var(--color-white);
  cursor: pointer;
}

.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* -------------------------------------------------------
   2. PRODUCT CARD
   ------------------------------------------------------- */
.product-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.product-card__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.product-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 1rem;
}

.product-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__name {
  font-family: var(--font-title), sans-serif;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-heading);
  margin: 0 0 0.375rem;
}

.product-card__name a {
  color: inherit;
  text-decoration: none;
}

.product-card__name a:hover {
  color: var(--color-primary);
}

.product-card__desc {
  font-size: 0.875rem;
  color: var(--color-text);
  line-height: 1.5;
  margin: 0 0 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
}

.product-card__price {
  font-family: var(--font-title), sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
}

.product-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-body), sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.product-card__btn:hover {
  background: var(--color-primary-dark);
}

/* -------------------------------------------------------
   3. PRODUCT PAGE — NEW DESIGN
   ------------------------------------------------------- */

/* Breadcrumb bar */
.breadcrumb-bar {
  padding: 90px 0 var(--space-sm);
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #888;
}

.breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
}

.breadcrumb__sep {
  color: #ccc;
}

/* Top section : gallery + info */
.product-hero {
  padding: var(--space-lg) 0;
}

.product-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

/* Gallery */
.product-gallery {
  position: sticky;
  top: 100px;
}

.product-gallery__main {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--space-md);
}

.product-gallery__thumbs {
  display: flex;
  gap: var(--space-xs);
}

.product-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--color-border);
  cursor: pointer;
  background: var(--color-bg-alt);
  padding: 4px;
  transition: border-color 0.2s;
}

.product-thumb:hover,
.product-thumb.active {
  border-color: var(--color-primary);
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Product info */
.product-info__name {
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: var(--space-xs);
}

.product-info__price {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.product-info__desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.product-info__highlights ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-md);
}

.product-info__highlights li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  font-size: 15px;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.product-info__highlights li:last-child {
  border-bottom: none;
}

.product-info__highlights li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* Installation toggle */
.product-info__install {
  display: block;
  cursor: pointer;
  margin-bottom: var(--space-md);
}

.product-info__install input {
  display: none;
}

.install-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 15px;
  transition: all 0.2s;
}

.install-toggle__check {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: transparent;
  transition: all 0.2s;
  flex-shrink: 0;
}

.product-info__install input:checked ~ .install-toggle {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.product-info__install input:checked ~ .install-toggle .install-toggle__check {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

/* Quantity + Add to cart */
.product-info__actions {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.qty-selector {
  display: flex;
  align-items: center;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.qty-selector button {
  width: 44px;
  height: 48px;
  border: none;
  background: var(--color-bg-alt);
  font-size: 18px;
  cursor: pointer;
  color: var(--color-heading);
  transition: background 0.2s;
}

.qty-selector button:hover {
  background: var(--color-border);
}

.qty-selector input {
  width: 48px;
  height: 48px;
  text-align: center;
  border: none;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--color-heading);
  background: white;
}

.product-info__add {
  flex: 1;
}

.product-info__shipping {
  font-size: 13px;
  color: #888;
}

/* -------------------------------------------------------
   3b. PRODUCT DROPDOWN SECTIONS
   ------------------------------------------------------- */
.product-details {
  padding-bottom: var(--space-xl);
}

.product-dropdown {
  border-bottom: 1px solid var(--color-border);
}

.product-dropdown:first-child {
  border-top: 1px solid var(--color-border);
}

.product-dropdown__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-md) 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-heading);
}

.product-dropdown__icon {
  transition: transform 0.3s;
  flex-shrink: 0;
}

.product-dropdown.open .product-dropdown__icon {
  transform: rotate(180deg);
}

.product-dropdown__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.product-dropdown.open .product-dropdown__body {
  max-height: 2000px;
  padding-bottom: var(--space-md);
}

.product-dropdown__text {
  line-height: 1.8;
  color: var(--color-text);
}

.product-dropdown__text p {
  margin-bottom: var(--space-sm);
}

/* Specs table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid var(--color-border);
}

.specs-table tr:last-child {
  border-bottom: none;
}

.specs-table th,
.specs-table td {
  padding: 12px 0;
  font-size: 15px;
  text-align: left;
}

.specs-table th {
  font-weight: 600;
  color: var(--color-heading);
  width: 40%;
}

.specs-table td {
  color: var(--color-text);
}

/* FAQ inside dropdown */
.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-heading);
  text-align: left;
}

.faq-item__icon {
  font-size: 20px;
  color: var(--color-primary);
  transition: transform 0.3s;
}

.faq-item.open .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-item__a {
  max-height: 500px;
}

.faq-item__a p {
  padding-bottom: 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .product-top {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .product-gallery {
    position: static;
  }

  .product-info__name { font-size: 24px; }
  .product-info__price { font-size: 22px; }

  .product-info__actions {
    flex-direction: column;
  }

  .qty-selector {
    align-self: flex-start;
  }
}

/* OLD STYLES BELOW — keep for reference, overridden */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

/* --- Image gallery --- */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-gallery__main {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-gallery__thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
}

.product-gallery__thumb {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: var(--color-bg-alt);
  transition: border-color 0.2s ease;
}

.product-gallery__thumb:hover,
.product-gallery__thumb.active {
  border-color: var(--color-primary);
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Product info --- */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.product-info__title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
}

.product-info__ref {
  font-size: 0.8125rem;
  color: var(--color-text);
  opacity: 0.7;
}

.product-info__short-desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text);
}

/* --- Price display --- */
.price-display {
  font-family: var(--font-title), sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

.price-display__ttc {
  display: block;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--color-text);
  opacity: 0.7;
}

.price-display--old {
  font-size: 1.125rem;
  color: var(--color-text);
  opacity: 0.5;
  text-decoration: line-through;
  margin-left: 0.75rem;
  font-weight: 400;
}

/* --- Points forts --- */
.product-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-points li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-text);
}

.product-points li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* --- Specs table --- */
.product-specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.product-specs caption {
  text-align: left;
  font-family: var(--font-title), sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: 0.75rem;
  caption-side: top;
}

.product-specs tr {
  border-bottom: 1px solid var(--color-border);
}

.product-specs th,
.product-specs td {
  padding: 0.625rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.product-specs th {
  width: 40%;
  font-weight: 600;
  color: var(--color-heading);
  background: var(--color-bg-alt);
}

.product-specs td {
  color: var(--color-text);
}

/* --- Installation option --- */
.installation-option {
  background: var(--color-primary-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.installation-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.installation-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.installation-toggle__slider {
  position: absolute;
  inset: 0;
  background: var(--color-border);
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.25s ease;
}

.installation-toggle__slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--color-white);
  border-radius: 50%;
  transition: transform 0.25s ease;
}

.installation-toggle input:checked + .installation-toggle__slider {
  background: var(--color-primary);
}

.installation-toggle input:checked + .installation-toggle__slider::after {
  transform: translateX(20px);
}

.installation-option__text {
  flex: 1;
}

.installation-option__label {
  font-weight: 600;
  color: var(--color-heading);
  font-size: 0.9375rem;
  display: block;
  cursor: pointer;
}

.installation-option__detail {
  font-size: 0.8125rem;
  color: var(--color-text);
  margin-top: 0.125rem;
}

.installation-option__price {
  font-weight: 700;
  color: var(--color-primary);
}

/* --- Quantity selector --- */
.quantity-selector {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.quantity-selector__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--color-bg-alt);
  color: var(--color-heading);
  font-size: 1.125rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.quantity-selector__btn:hover {
  background: var(--color-primary-light);
}

.quantity-selector__input {
  width: 48px;
  height: 40px;
  border: none;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  text-align: center;
  font-family: var(--font-body), sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-heading);
  background: var(--color-white);
  -moz-appearance: textfield;
}

.quantity-selector__input::-webkit-outer-spin-button,
.quantity-selector__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* --- Add to cart row --- */
.product-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-add-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-body), sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-add-cart:hover {
  background: var(--color-primary-dark);
}

.btn-add-cart:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* -------------------------------------------------------
   4. FAQ ACCORDION
   ------------------------------------------------------- */
.faq-section {
  margin-top: 3rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-white);
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  font-family: var(--font-title), sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-heading);
  cursor: pointer;
  text-align: left;
  gap: 1rem;
  transition: background 0.2s ease;
}

.faq-item__question:hover {
  background: var(--color-bg-alt);
}

.faq-item__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--color-primary);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-item__answer {
  max-height: 600px;
}

.faq-item__answer-inner {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text);
}

/* -------------------------------------------------------
   5. CART PAGE
   ------------------------------------------------------- */
.cart-section {
  margin-bottom: 2rem;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table thead th {
  font-family: var(--font-title), sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text);
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--color-border);
  text-align: left;
}

.cart-table tbody tr {
  border-bottom: 1px solid var(--color-border);
}

.cart-table td {
  padding: 1rem;
  vertical-align: middle;
  font-size: 0.9375rem;
}

.cart-product {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-product__img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-bg-alt);
}

.cart-product__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-product__name {
  font-weight: 600;
  color: var(--color-heading);
}

.cart-product__variant {
  font-size: 0.8125rem;
  color: var(--color-text);
  opacity: 0.7;
}

.cart-table .cart-price {
  font-weight: 600;
  color: var(--color-heading);
  white-space: nowrap;
}

.cart-table .cart-subtotal {
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

.cart-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: 1.125rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cart-remove:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

/* Cart empty */
.cart-empty {
  text-align: center;
  padding: 3rem 1rem;
}

.cart-empty__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.cart-empty__message {
  font-size: 1.125rem;
  color: var(--color-heading);
  margin-bottom: 0.5rem;
}

.cart-empty__link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.cart-empty__link:hover {
  text-decoration: underline;
}

/* Cart totals */
.cart-totals {
  margin-top: 2rem;
  display: flex;
  justify-content: flex-end;
}

.cart-totals__box {
  width: 100%;
  max-width: 400px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.cart-totals__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--color-text);
}

.cart-totals__row--total {
  border-top: 2px solid var(--color-border);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-heading);
}

.cart-totals__row--total span:last-child {
  color: var(--color-primary);
  font-size: 1.375rem;
}

.btn-checkout {
  display: block;
  width: 100%;
  margin-top: 1.25rem;
  padding: 0.875rem;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-body), sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn-checkout:hover {
  background: var(--color-primary-dark);
}

/* -------------------------------------------------------
   6. CHECKOUT PAGE
   ------------------------------------------------------- */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 2.5rem;
  align-items: start;
}

/* --- Form --- */
.checkout-form fieldset {
  border: none;
  padding: 0;
  margin: 0 0 2rem;
}

.checkout-form legend {
  font-family: var(--font-title), sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
  width: 100%;
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-row--full {
  grid-template-columns: 1fr;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-heading);
}

.form-group label .required {
  color: #dc2626;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body), sans-serif;
  font-size: 0.9375rem;
  color: var(--color-heading);
  background: var(--color-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-group input.error,
.form-group select.error {
  border-color: #dc2626;
}

.form-group .form-error {
  font-size: 0.75rem;
  color: #dc2626;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* --- Order summary sidebar --- */
.order-summary {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: sticky;
  top: 2rem;
}

.order-summary__title {
  font-family: var(--font-title), sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-heading);
  margin: 0 0 1.25rem;
}

.order-summary__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.order-summary__item-img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-white);
}

.order-summary__item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-summary__item-details {
  flex: 1;
  min-width: 0;
}

.order-summary__item-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-summary__item-qty {
  font-size: 0.75rem;
  color: var(--color-text);
}

.order-summary__item-price {
  font-weight: 600;
  color: var(--color-heading);
  white-space: nowrap;
  font-size: 0.9375rem;
}

.order-summary__totals {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.order-summary__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9375rem;
  color: var(--color-text);
}

.order-summary__row--total {
  border-top: 2px solid var(--color-border);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-heading);
}

.order-summary__row--total span:last-child {
  color: var(--color-primary);
}

.btn-place-order {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.875rem;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-body), sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  transition: background 0.2s ease;
}

.btn-place-order:hover {
  background: var(--color-primary-dark);
}

.btn-place-order:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* -------------------------------------------------------
   7. CONFIRMATION PAGE
   ------------------------------------------------------- */
.confirmation {
  max-width: 640px;
  margin: 3rem auto;
  text-align: center;
}

.confirmation__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--color-primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirmation__icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.confirmation__title {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.confirmation__subtitle {
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 2rem;
}

.confirmation__details {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: left;
  margin-bottom: 2rem;
}

.confirmation__details h3 {
  font-size: 1rem;
  margin: 0 0 1rem;
}

.confirmation__row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--color-border);
}

.confirmation__row:last-child {
  border-bottom: none;
}

.confirmation__row span:first-child {
  color: var(--color-text);
}

.confirmation__row span:last-child {
  font-weight: 600;
  color: var(--color-heading);
}

.confirmation__items {
  margin-top: 1.25rem;
}

.confirmation__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9375rem;
}

.confirmation__item:last-child {
  border-bottom: none;
}

.confirmation__item-name {
  color: var(--color-heading);
  font-weight: 500;
}

.confirmation__item-price {
  color: var(--color-primary);
  font-weight: 600;
}

.btn-continue {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-body), sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn-continue:hover {
  background: var(--color-primary-dark);
}

/* -------------------------------------------------------
   8. BADGES
   ------------------------------------------------------- */
.badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 999px;
  line-height: 1.4;
  white-space: nowrap;
}

.badge--in-stock {
  background: #dcfce7;
  color: #15803d;
}

.badge--out-of-stock {
  background: #fee2e2;
  color: #dc2626;
}

.badge--promo {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--color-primary);
  color: var(--color-white);
  z-index: 1;
}

/* -------------------------------------------------------
   9. PRICE DISPLAY (standalone large variant)
   ------------------------------------------------------- */
.price-lg {
  font-family: var(--font-title), sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.price-lg__currency {
  font-size: 1.25rem;
  vertical-align: super;
  font-weight: 600;
}

.price-lg__cents {
  font-size: 1.25rem;
  vertical-align: super;
}

/* -------------------------------------------------------
   10. INSTALLATION OPTION TOGGLE (standalone)
   ------------------------------------------------------- */
.install-toggle-card {
  background: var(--color-primary-light);
  border: 1px solid var(--color-primary-mid);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.install-toggle-card:hover {
  border-color: var(--color-primary);
}

.install-toggle-card.active {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.install-toggle-card__checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid var(--color-primary-mid);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--color-white);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.install-toggle-card.active .install-toggle-card__checkbox {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.install-toggle-card__checkbox svg {
  width: 14px;
  height: 14px;
  stroke: var(--color-white);
  fill: none;
  stroke-width: 3;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.install-toggle-card.active .install-toggle-card__checkbox svg {
  opacity: 1;
}

.install-toggle-card__content {
  flex: 1;
}

.install-toggle-card__title {
  font-weight: 600;
  color: var(--color-heading);
  font-size: 0.9375rem;
}

.install-toggle-card__desc {
  font-size: 0.8125rem;
  color: var(--color-text);
  margin-top: 0.125rem;
}

.install-toggle-card__price {
  font-family: var(--font-title), sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-primary);
  white-space: nowrap;
}

/* -------------------------------------------------------
   11. SHARED BUTTONS
   ------------------------------------------------------- */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1.25rem;
  background: transparent;
  color: var(--color-primary);
  font-family: var(--font-body), sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* -------------------------------------------------------
   PANIER PAGE — layout aliases
   ------------------------------------------------------- */
.panier-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-lg, 2rem);
  align-items: start;
}

.panier-content { min-width: 0; }

.panier-table {
  width: 100%;
  border-collapse: collapse;
}

.panier-table thead th {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text);
  padding: 12px 16px;
  border-bottom: 2px solid var(--color-border);
  text-align: left;
}

.panier-table tbody tr {
  border-bottom: 1px solid var(--color-border);
}

.panier-table td {
  padding: 16px;
  vertical-align: middle;
  font-size: 15px;
}

.panier-table__product {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panier-table__product img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--color-bg-alt);
}

.quantity-selector {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}

.quantity-selector button {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--color-bg-alt);
  cursor: pointer;
  font-size: 16px;
  color: var(--color-heading);
}

.quantity-selector button:hover {
  background: var(--color-border);
}

.quantity-selector span {
  padding: 0 12px;
  font-weight: 600;
  font-size: 15px;
}

.btn-remove {
  background: none;
  border: none;
  font-size: 22px;
  color: #ccc;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.btn-remove:hover {
  color: #e53e3e;
  background: #fff5f5;
}

.panier-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md, 1.5rem);
}

.panier-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.panier-summary {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 24px;
}

.panier-summary h2 {
  font-size: 20px;
  margin-bottom: 16px;
  font-family: var(--font-title);
}

.panier-total__line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--color-border);
  margin-bottom: 16px;
}

.panier-total__line strong {
  font-size: 22px;
  color: var(--color-primary);
}

.panier-continue {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 14px;
  color: var(--color-primary);
  text-decoration: none;
}

.panier-continue:hover {
  text-decoration: underline;
}

.panier-empty {
  text-align: center;
  padding: 80px 20px;
  color: #888;
  font-size: 18px;
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm, 16px);
}

.panier-empty h2 {
  margin-bottom: 0;
}

.panier-empty p {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .panier-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .panier-main { gap: 1rem; }

  /* Cards sur mobile : 1 commande = 1 card aérée */
  .panier-table,
  .panier-table thead,
  .panier-table tbody,
  .panier-table tr,
  .panier-table td {
    display: block;
    width: 100%;
  }
  .panier-table thead { display: none; }

  .panier-table tr {
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #e8e3d6;
    border-radius: 8px;
    background: #fff;
    position: relative;
  }

  .panier-table td { padding: 4px 0; text-align: left; font-size: 14px; }

  .panier-table__product {
    flex-direction: row;
    gap: 14px;
    margin-bottom: 12px;
    align-items: flex-start;
  }
  .panier-table__product img {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
  }
  .panier-table__product > div {
    flex: 1;
    min-width: 0;
  }
  .panier-table__product strong {
    font-size: 14px;
    line-height: 1.3;
    display: block;
    margin-bottom: 4px;
  }

  /* Étiquettes "Prix / Quantité / Total" pour clarifier */
  .panier-table td:nth-of-type(2)::before { content: "Prix unitaire · "; color: #6b6b67; font-size: 12px; }
  .panier-table td:nth-of-type(3)::before { content: "Quantité · "; color: #6b6b67; font-size: 12px; }
  .panier-table td:nth-of-type(4)::before { content: "Total · "; color: #6b6b67; font-size: 12px; }
  .panier-table td:nth-of-type(4) strong { color: #0a0a0c; font-size: 16px; }

  /* Bouton supprimer flottant en haut à droite de la card */
  .panier-table td:last-child {
    position: absolute;
    top: 12px;
    right: 12px;
    width: auto;
    padding: 0;
  }
  .panier-table td:last-child::before { content: none; }

  /* Sidebar récap = bloc plein large */
  .panier-sidebar {
    position: static !important;
    width: 100%;
  }
  .panier-summary { padding: 18px; border-radius: 8px; }
  .panier-summary h2 { font-size: 1.1rem; margin-bottom: 12px; }
}

/* -------------------------------------------------------
   RESPONSIVE — TABLET (max-width: 992px)
   ------------------------------------------------------- */
@media (max-width: 992px) {
  .catalogue-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .order-summary {
    position: static;
  }
}

/* -------------------------------------------------------
   RESPONSIVE — MOBILE (max-width: 640px)
   ------------------------------------------------------- */
@media (max-width: 640px) {
  .boutique-section {
    padding: 1.25rem 1rem;
  }

  .boutique-section h1 {
    font-size: 1.5rem;
  }

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

  .product-card__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-card__btn {
    width: 100%;
    justify-content: center;
  }

  /* Cart table -> stacked on mobile */
  .cart-table,
  .cart-table thead,
  .cart-table tbody,
  .cart-table th,
  .cart-table td,
  .cart-table tr {
    display: block;
  }

  .cart-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }

  .cart-table tbody tr {
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
  }

  .cart-table td {
    padding: 0;
  }

  .cart-table td:first-child {
    width: 100%;
  }

  .cart-table td[data-label]::before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: var(--color-heading);
    font-size: 0.8125rem;
    margin-right: 0.25rem;
  }

  .cart-totals {
    justify-content: stretch;
  }

  .cart-totals__box {
    max-width: none;
  }

  /* Checkout form */
  .form-row {
    grid-template-columns: 1fr;
  }

  .price-display {
    font-size: 1.625rem;
  }

  .price-lg {
    font-size: 1.75rem;
  }

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

  .btn-add-cart {
    width: 100%;
    justify-content: center;
  }

  .product-gallery__thumb {
    width: 56px;
    height: 56px;
  }

  .confirmation {
    margin: 2rem auto;
  }

  .confirmation__title {
    font-size: 1.375rem;
  }

  .installation-option {
    flex-direction: column;
    align-items: stretch;
  }

  .install-toggle-card {
    flex-wrap: wrap;
  }

  .install-toggle-card__price {
    width: 100%;
    text-align: right;
    margin-top: 0.25rem;
  }
}

/* -------------------------------------------------------
   BOUTIQUE LANDING (Particuliers / Professionnels)
   ------------------------------------------------------- */
.boutique-landing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.boutique-landing__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 2rem;
  background: #fff;
  border-radius: var(--radius-md, 12px);
  border: 2px solid var(--color-border, #e5e5e5);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.boutique-landing__card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 30px rgba(11, 47, 114, 0.12);
  transform: translateY(-4px);
}

.boutique-landing__icon {
  margin-bottom: 1.5rem;
}

.boutique-landing__card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-heading);
}

.boutique-landing__card p {
  color: var(--color-text);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .boutique-landing {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------
   CATEGORY PILLS
   ------------------------------------------------------- */
.category-pills-bar {
  background: #f8f9fb;
  border-bottom: 1px solid var(--color-border, #e5e5e5);
  padding: 1rem 0;
}

.category-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.category-pill {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  background: #fff;
  border: 1px solid var(--color-border, #e5e5e5);
  color: var(--color-text);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.category-pill:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.category-pill.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* -------------------------------------------------------
   PRODUCT CARD — RUPTURE DE STOCK
   ------------------------------------------------------- */
.product-card--rupture {
  opacity: 0.75;
}

.product-card__badge-rupture {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #e74c3c;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 2;
}

.product-card__image {
  position: relative;
}

/* Product card mini for cart related */
.product-card--mini {
  max-width: 220px;
}

.catalogue-grid--sm {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

/* -------------------------------------------------------
   PRODUCT GALLERY RUPTURE OVERLAY
   ------------------------------------------------------- */
.product-gallery__rupture-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(231, 76, 60, 0.9);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 8px;
  z-index: 3;
}

.product-gallery__main {
  position: relative;
}

/* -------------------------------------------------------
   STOCK ALERT (Notify me)
   ------------------------------------------------------- */
.stock-alert {
  margin-top: 1rem;
}

.stock-alert__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.stock-alert__form {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.stock-alert__form .form-control {
  flex: 1;
}

.stock-alert__success {
  color: #2d8a5e;
  font-weight: 500;
  padding: 0.75rem;
  background: #f0faf4;
  border-radius: 8px;
  text-align: center;
  margin-top: 0.5rem;
}

/* -------------------------------------------------------
   MAINTENANCE OPTIONS
   ------------------------------------------------------- */
.product-info__maintenance {
  margin-top: 1rem;
  padding: 1rem;
  background: #f8f9fb;
  border-radius: 8px;
  border: 1px solid var(--color-border, #e5e5e5);
}

.product-info__maintenance-label {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-heading);
}

.maintenance-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.maintenance-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: background 0.2s;
  font-size: 0.875rem;
}

.maintenance-option:hover {
  background: #eef1f6;
}

.maintenance-option input[type="radio"] {
  accent-color: var(--color-primary);
}

/* -------------------------------------------------------
   RELATED PRODUCTS MODAL
   ------------------------------------------------------- */
.related-modal__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.related-modal__overlay.active {
  opacity: 1;
}

.related-modal {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  max-width: 540px;
  width: 90%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.94);
  transition: transform 0.3s;
}
@media (max-width: 600px) {
  .related-modal {
    width: 94%;
    padding: 1.25rem 1rem;
    border-radius: 12px;
    max-height: 92vh;
  }
}

.related-modal__overlay.active .related-modal {
  transform: scale(1);
}

.related-modal__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: #999;
  line-height: 1;
}

.related-modal__close:hover {
  color: #333;
}

.related-modal__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--color-heading);
}

.related-modal__grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.related-modal__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border: 1px solid var(--color-border, #e5e5e5);
  border-radius: 10px;
  transition: border-color 0.2s;
}

.related-modal__item:hover {
  border-color: var(--color-primary);
}

.related-modal__item img {
  border-radius: 8px;
  object-fit: cover;
}

.related-modal__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.related-modal__info strong {
  font-size: 0.925rem;
}

.related-modal__info span {
  color: var(--color-primary);
  font-weight: 600;
}

.related-modal__add {
  white-space: nowrap;
}

.related-modal__added {
  opacity: 0.6;
  cursor: default;
}

.related-modal__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.related-modal__actions .btn,
.related-modal__actions .btn-oe {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 600px) {
  .related-modal__actions {
    flex-direction: column;
    gap: 8px;
  }
  .related-modal__actions .btn,
  .related-modal__actions .btn-oe {
    width: 100%;
    min-height: 44px;
    padding: 12px 16px;
  }
  .related-modal__title { font-size: 1rem; line-height: 1.3; padding-right: 28px; }
  .related-modal__close { top: 8px; right: 10px; }
  .related-modal__item { padding: 0.6rem; gap: 0.6rem; }
  .related-modal__item img { width: 56px; height: 56px; }
  .related-modal__add { padding: 8px 12px; font-size: 12px; }
}

/* -------------------------------------------------------
   INSTALLATION CALENDAR
   ------------------------------------------------------- */
.install-calendar {
  margin-top: 0.5rem;
}

.install-calendar__info {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 1rem;
}

.install-calendar__grid {
  background: #fff;
  border: 1px solid var(--color-border, #e5e5e5);
  border-radius: 12px;
  overflow: hidden;
}

.install-calendar__header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--color-primary, #0b2f72);
  color: #fff;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.5rem 0;
}

.install-calendar__header span {
  padding: 0.25rem;
}

.install-calendar__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: #f0f0f0;
}

.calendar-day {
  background: #fff;
  padding: 0.5rem;
  min-height: 60px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  position: relative;
}

.calendar-day:hover {
  background: #f0f4ff;
}

.calendar-day--empty {
  cursor: default;
  background: #fafafa;
}

.calendar-day--empty:hover {
  background: #fafafa;
}

.calendar-day--dimanche {
  background: #fafafa;
  color: #ccc;
}

.calendar-day--selected {
  background: #e8f0fe;
  border: 2px solid var(--color-primary, #0b2f72);
}

.calendar-day__num {
  font-weight: 600;
  font-size: 0.9rem;
  display: block;
}

.calendar-day__month {
  font-size: 0.6rem;
  text-transform: uppercase;
  color: var(--color-primary);
  display: block;
  margin-top: 1px;
}

.calendar-day__creneau {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
}

.creneau-choice {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.6rem;
  cursor: pointer;
  white-space: nowrap;
}

.creneau-choice input[type="radio"] {
  width: 12px;
  height: 12px;
  accent-color: var(--color-primary);
}

.install-calendar__summary {
  margin-top: 1rem;
  padding: 1rem;
  background: #f8f9fb;
  border-radius: 8px;
  font-size: 0.875rem;
}

.install-calendar__summary ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
}

.install-calendar__summary li {
  padding: 4px 0;
  border-bottom: 1px solid #eee;
}

.install-calendar__summary li:last-child {
  border-bottom: none;
}

/* -------------------------------------------------------
   PANIER RELATED
   ------------------------------------------------------- */
.panier-related {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--color-border, #e5e5e5);
}

.panier-related h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* -------------------------------------------------------
   PRODUCT INFO SHIPPING
   ------------------------------------------------------- */
.product-info__shipping {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border, #e5e5e5);
  font-size: 0.875rem;
  color: #666;
}

.product-info__shipping strong {
  color: #2d8a5e;
}

/* -------------------------------------------------------
   BADGES
   ------------------------------------------------------- */
.badge--success {
  background: #e8f5e9;
  color: #2d8a5e;
}

/* -------------------------------------------------------
   RESPONSIVE CALENDAR
   ------------------------------------------------------- */
@media (max-width: 640px) {
  .calendar-day {
    min-height: 45px;
    padding: 0.25rem;
  }

  .calendar-day__num {
    font-size: 0.8rem;
  }

  .creneau-choice {
    font-size: 0.55rem;
  }

  .related-modal {
    padding: 1.5rem;
  }

  .related-modal__item img {
    width: 60px;
    height: 60px;
  }
}
