/* Merchant overrides can be added here after installation. */

/* ── Product gallery: cursor hints ── */
[data-ch-cover] { cursor: zoom-in; }
[data-ch-thumb] { cursor: pointer; }

/* ── Lightbox ── */
.ch-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.ch-lightbox.is-open { display: flex; }

.ch-lightbox__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .82);
  cursor: pointer;
}

.ch-lightbox__box {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 1100px);
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ch-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 8px 48px rgba(0, 0, 0, .55);
}

.ch-lightbox__close {
  position: absolute;
  top: -2.6rem;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: .15rem .45rem;
  opacity: .85;
}
.ch-lightbox__close:hover { opacity: 1; }

/* ── Category sidebar ── */
.ch-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Category navigation widget */
.ch-catnav {
  font-size: .8rem;
  letter-spacing: .03em;
}

.ch-catnav__heading {
  margin: 0 0 .75rem;
  padding-bottom: .45rem;
  border-bottom: 1px solid var(--ch-line);
}

/* Root category */
.ch-catnav__root {
  margin-bottom: .5rem;
}

.ch-catnav__link--root .ch-catnav__label {
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* List resets */
.ch-catnav__list,
.ch-catnav__sub {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ch-catnav__sub {
  padding-left: .5rem;
  border-left: 1px solid var(--ch-line);
  margin: .2rem 0 .2rem .75rem;
}

.ch-catnav__sub.is-hidden { display: none; }

/* Item */
.ch-catnav__item {
  margin-bottom: .1rem;
}

.ch-catnav__item.is-current > .ch-catnav__row > .ch-catnav__link .ch-catnav__label {
  color: var(--ch-ink);
  font-weight: 600;
}

/* Row: image + label + toggle */
.ch-catnav__row {
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* Link wraps image + label */
.ch-catnav__link {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: var(--ch-muted);
  padding: .22rem 0;
  transition: color .15s;
}
.ch-catnav__link:hover,
.ch-catnav__link.is-current { color: var(--ch-ink); }

/* Thumbnail */
.ch-catnav__img {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 2px;
  overflow: hidden;
  background: var(--ch-cream, #f5f0ea);
}
.ch-catnav__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Label */
.ch-catnav__label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

/* Chevron toggle */
.ch-catnav__toggle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--ch-muted);
  transition: transform .18s, color .15s;
  border-radius: 2px;
}
.ch-catnav__toggle:hover { color: var(--ch-ink); }
.ch-catnav__toggle.is-open { transform: rotate(90deg); }
.ch-catnav__toggle.is-open svg { color: var(--ch-ink); }

/* Filters block below nav */
.ch-filters {
  border: 1px solid var(--ch-line);
  background: #fffaf4;
  padding: 1rem;
}

/* Mobile: sidebar collapses above products, category nav collapsible */
@media (max-width: 991px) {
  .ch-sidebar {
    gap: 1rem;
  }
  .ch-catnav {
    border: 1px solid var(--ch-line);
    padding: .75rem 1rem;
    background: #fffaf4;
  }
  .ch-catnav__list { margin-top: .35rem; }
}

/* ── Cart badge counter ── */
.blockcart { display: flex; align-items: center; }
.ch-cart-btn { position: relative; }
.ch-badge {
  position: absolute;
  top: -5px;
  right: -7px;
  background: var(--ch-ink, #1a1a1a);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  min-width: 15px;
  height: 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  pointer-events: none;
  line-height: 1;
}

/* ── Checkout header ── */
.ch-checkout-header { border-bottom: 1px solid var(--ch-line, #e8e0d8); background: #fff; padding: .75rem 0; }
.ch-checkout-header__inner { display: flex; align-items: center; justify-content: space-between; }
.ch-checkout-header .ch-logo img { max-height: 50px; width: auto; }
.ch-checkout-header__security { font-size: .78rem; color: var(--ch-muted, #888); }

/* ═══════════════════════════════════════════════════════════════
   LAYOUT AMÉLIORÉ — 2026-05-17
   Catalogues larges · Fiche produit fluide · Panier harmonisé
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. Pages catégories : conteneur élargi (1440 px) ───────── */
section.ch-listing-layout {
  max-width: 1440px;
}
.ch-listing-hero .container {
  max-width: 1440px;
}

/* 5 colonnes sur très grands écrans (≥ 1500 px) */
@media (min-width: 1500px) {
  .ch-product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ── 2. Fiche produit : description sous le bloc principal ───── */
.ch-product-details {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 2rem;
  border-top: 1px solid var(--ch-line);
}

/* L'accordéon dans ch-product-details n'a plus besoin de sa propre
   bordure haute (déjà portée par ch-product-details) */
.ch-product-details .ch-accordion {
  border-top: none;
  margin-top: 0;
}

/* 2 colonnes pour le texte de la description sur desktop */
@media (min-width: 992px) {
  .ch-product-details .ch-accordion__item:first-child .ch-accordion__content {
    column-count: 2;
    column-gap: 3rem;
    column-rule: 1px solid var(--ch-line);
  }
  .ch-product-details .ch-accordion__item:first-child .ch-accordion__content h2,
  .ch-product-details .ch-accordion__item:first-child .ch-accordion__content h3,
  .ch-product-details .ch-accordion__item:first-child .ch-accordion__content h4,
  .ch-product-details .ch-accordion__item:first-child .ch-accordion__content p,
  .ch-product-details .ch-accordion__item:first-child .ch-accordion__content ul,
  .ch-product-details .ch-accordion__item:first-child .ch-accordion__content ol {
    break-inside: avoid;
  }
  /* Tableaux : pleine largeur, scroll horizontal si nécessaire */
  .ch-product-details .ch-accordion__item:first-child .ch-accordion__content table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
    break-inside: avoid;
  }
}

/* Mobile : une colonne */
@media (max-width: 767px) {
  .ch-product-details .ch-accordion__item:first-child .ch-accordion__content {
    column-count: 1;
  }
}

/* ── 3. Page panier harmonisée ───────────────────────────────── */
.ch-cart-page {
  padding: clamp(2rem, 4vw, 4rem) 0 clamp(4rem, 7vw, 6rem);
}

.ch-cart-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 992px) {
  .ch-cart-grid {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 3rem;
  }
}

.ch-cart-card {
  background: #fff;
  border: 1px solid var(--ch-line);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.ch-cart-card > .ch-title--md {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ch-line);
  font-size: clamp(1.3rem, 2vw, 1.75rem);
}

.ch-cart-continue {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--ch-muted);
  font-size: .88rem;
  text-decoration: none;
  padding: .5rem 0;
  transition: color .15s;
}
.ch-cart-continue:hover { color: var(--ch-ink); }

.ch-cart-sidebar .ch-cart-card {
  position: sticky;
  top: 130px;
  margin-bottom: 0;
}

/* Lignes produits dans le panier */
.ch-cart-page .cart-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ch-cart-page .cart-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--ch-line);
}

.ch-cart-page .cart-item:last-child {
  border-bottom: none;
}

/* Lignes de sous-totaux */
.ch-cart-page .cart-summary-line {
  display: flex;
  justify-content: space-between;
  padding: .5rem 0;
  font-size: .9rem;
  color: var(--ch-muted);
}

/* Total global */
.ch-cart-page .cart-total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .85rem 0;
  border-top: 2px solid var(--ch-line);
  font-weight: 700;
  font-size: 1.05rem;
}

/* Champ code promo */
.ch-cart-page .cart-voucher {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ch-line);
}

.ch-cart-page .cart-voucher .input-group {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.ch-cart-page .cart-voucher input[type=text] {
  flex: 1 1 140px;
  min-height: 44px;
  padding: .6rem .9rem;
  border: 1px solid var(--ch-line);
  background: var(--ch-ivory);
  font: inherit;
  font-size: .88rem;
}

/* Bouton "Passer commande" pleine largeur */
.ch-cart-page .cart-detailed-actions .btn,
.ch-cart-page .cart-detailed-actions a.btn {
  display: flex;
  width: 100%;
  margin-top: 1rem;
  justify-content: center;
}

/* Séparateur dans la carte panier */
.ch-cart-page .separator { border: none; border-top: 1px solid var(--ch-line); margin: 1rem 0; }

/* ═══════════════════════════════════════════════════════════════
   HOMEPAGE PRODUITS — ONGLETS + GRILLE — 2026-05-18
   ═══════════════════════════════════════════════════════════════ */

/* ── En-tête du bloc produits ────────────────────────────────── */
.ch-home-products__header {
  text-align: center;
  margin-bottom: 1.75rem;
}

/* ── Navigation onglets ──────────────────────────────────────── */
.ch-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--ch-line);
}

.ch-tab-btn {
  position: relative;
  padding: .85rem 1.8rem;
  border: 0;
  background: transparent;
  color: var(--ch-muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .18s;
  white-space: nowrap;
}

.ch-tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ch-ink);
  opacity: 0;
  transition: opacity .18s;
}

.ch-tab-btn:hover { color: var(--ch-ink); }
.ch-tab-btn.is-active { color: var(--ch-ink); }
.ch-tab-btn.is-active::after { opacity: 1; }

/* Mobile : onglets compacts */
@media (max-width: 480px) {
  .ch-tab-btn { padding: .75rem .9rem; font-size: .68rem; letter-spacing: .08em; }
}

/* ── Panels ──────────────────────────────────────────────────── */
.ch-tab-panel { display: none; }
.ch-tab-panel.is-active { display: block; }

/* ── Grille produits homepage — auto-fill responsive ─────────── */
.ch-home-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: clamp(.85rem, 2.5vw, 1.5rem);
}

/* Force 2 colonnes minimum sur petits écrans */
@media (max-width: 439px) {
  .ch-home-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Assure que les cartes produits homepage ont le bon rendu */
.ch-home-product-grid .ch-product-card {
  min-width: 0;
}

/* Petits écrans : pas de texte tronqué trop court */
@media (max-width: 380px) {
  .ch-home-product-grid .ch-product-card__name { font-size: .8rem; min-height: auto; }
}

/* ── Wishlist / blockwishlist ── */
/* blockwishlist (product.bundle.js) injecte .wishlist-button dans #products   */
/* et .featured-products via querySelectorAll + MutationObserver.               */
/* Sur les listings, on masque le bouton — il sera remplacé par le module       */
/* favoris custom prévu. Sur la fiche produit il reste visible avec icône CSS.  */

/* Masquage sur les listings (injection JS dans .thumbnail-container) */
#products .wishlist-button,
#products .wishlist-button-add,
.featured-products .wishlist-button,
.featured-products .wishlist-button-add,
.ch-product-card .wishlist-button,
.ch-product-card .wishlist-button-add {
  display: none !important;
}

/* Fiche produit : remplacer "favorite_border" (Material Icons manquante)      */
/* par un cœur Unicode — pas de dépendance police externe.                      */
.wishlist-button-add i.material-icons {
  font-size: 0 !important;
  line-height: 1;
  color: transparent !important;
}
.wishlist-button-add i.material-icons::before {
  content: "\2661"; /* ♡ cœur vide */
  font-size: 1.3rem;
  line-height: 1;
  color: rgba(60, 40, 30, 0.55);
  display: block;
}
.wishlist-button-add.checked i.material-icons::before {
  content: "\2665"; /* ♥ cœur plein */
  color: #b8895a;
}
.wishlist-button-add {
  background: rgba(255, 255, 255, 0.88) !important;
  border: none !important;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
}
.wishlist-button-add:hover {
  background: white !important;
}

/* ═══════════════════════════════════════════════════════════════
   CHECKOUT — Styles essentiels (PS9 / cachemirehermine)
   ═══════════════════════════════════════════════════════════════ */

/* ── col-lg-8 manquant du Bootstrap lite (requis par le checkout classic) ── */
@media (min-width: 992px) {
  .col-lg-8 { flex: 0 0 auto; width: 66.666667%; }
}

/* ── Layout général ── */
body#checkout main#wrapper { background: #f9f6f2; }
body#checkout #content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  box-sizing: border-box;
}
body#checkout .row {
  margin-top: 0;
}
body#checkout .cart-grid-body {
  padding-right: 1rem;
}
body#checkout .cart-grid-right {
  padding-left: 1rem;
}
@media (max-width: 991px) {
  body#checkout .cart-grid-body,
  body#checkout .cart-grid-right {
    padding: 0;
  }
}

/* ── Étapes (checkout-process) ── */
.checkout-process .checkout-step {
  background: #fff;
  border: 1px solid #e8e0d8;
  border-radius: 4px;
  margin-bottom: 1rem;
  overflow: hidden;
}
.checkout-step .step-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  border-bottom: 1px solid transparent;
}
.checkout-step.-current .step-title {
  border-bottom-color: #e8e0d8;
  background: #fff;
}
.checkout-step.-complete .step-title {
  background: #faf8f5;
}
.checkout-step .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem; height: 1.75rem;
  border-radius: 50%;
  background: #c9a96e;
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  margin-right: .75rem;
  flex-shrink: 0;
}
.checkout-step.-complete .step-number { background: #4cae4c; }
.checkout-step .step-edit { font-size: .8rem; color: #c9a96e; text-decoration: underline; cursor: pointer; }
.checkout-step .content { padding: 1.25rem; }
.checkout-step.-current .content,
.checkout-step.js-current-step .content { display: block; }

/* ── Boutons ── */
body#checkout .btn-primary,
body#checkout .continue { background: #1a1a1a; border-color: #1a1a1a; color: #fff; }
body#checkout .btn-primary:hover,
body#checkout .continue:hover { background: #c9a96e; border-color: #c9a96e; }
body#checkout .btn-outline-secondary { border-color: #ccc; color: #555; }

/* ── Adresses ── */
.address-selector .radio-block {
  border: 1px solid #e8e0d8;
  border-radius: 4px;
  padding: .9rem 1rem;
  margin-bottom: .5rem;
  cursor: pointer;
  transition: border-color .2s;
}
.address-selector .radio-block.selected,
.address-selector .radio-block:has(input:checked) {
  border-color: #c9a96e;
  background: #fdf9f4;
}

/* ── Transporteurs ── */
.delivery-options-list .delivery-option {
  border: 1px solid #e8e0d8;
  border-radius: 4px;
  padding: .75rem 1rem;
  margin-bottom: .5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .75rem;
  transition: border-color .2s;
}
.delivery-options-list .delivery-option:has(input:checked),
.delivery-options-list .delivery-option.selected {
  border-color: #c9a96e;
  background: #fdf9f4;
}

/* ── Options de paiement ── */
.payment-options { margin-top: 1rem; }
.payment-option label {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1rem;
  border: 1px solid #e8e0d8;
  border-radius: 4px;
  margin-bottom: .5rem;
  cursor: pointer;
  transition: border-color .2s;
  background: #fff;
}
.payment-option label:hover,
.payment-option input:checked + label,
.payment-option.selected label {
  border-color: #c9a96e;
  background: #fdf9f4;
}
#payment-confirmation {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e8e0d8;
}
#payment-confirmation button[type="submit"] {
  width: 100%;
  padding: .85rem;
  font-size: 1rem;
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #fff;
  border-radius: 4px;
}
#payment-confirmation button[type="submit"]:hover {
  background: #c9a96e;
  border-color: #c9a96e;
}

/* ── Stripe Elements container ── */
#stripe-payment-element {
  margin-top: .75rem;
  padding: .75rem;
  border: 1px solid #e8e0d8;
  border-radius: 4px;
  background: #fff;
}

/* ── Résumé panier (droite) ── */
.cart-summary {
  background: #fff;
  border: 1px solid #e8e0d8;
  border-radius: 4px;
  padding: 1.25rem;
  position: sticky;
  top: 1rem;
}
.cart-summary .cart-summary-top {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid #e8e0d8;
}
.cart-summary .cart-summary-products { margin-bottom: .75rem; }
.cart-summary .cart-summary-subtotals { border-top: 1px solid #e8e0d8; padding-top: .5rem; }
.cart-summary .cart-total { font-weight: 700; font-size: 1.1rem; }

/* ── Résumé panier checkout — ciblage ID réel généré par cart-summary.tpl ── */
#js-checkout-summary {
  background: #fff;
  border: 1px solid #e8e0d8 !important;
  border-radius: 4px;
  padding: 1.25rem;
  position: sticky;
  top: 1rem;
}

/* ── Formulaires ── */
body#checkout .form-control:focus {
  border-color: #c9a96e;
  box-shadow: 0 0 0 .2rem rgba(201,169,110,.25);
}

/* ── Retirer le footer principal au checkout ── */
body#checkout #footer { background: #f9f6f2; border-top: 1px solid #e8e0d8; padding: 1rem 0; }

/* ── Supprimer mode_edit link si affiché ── */
.page-header-actions,
[data-action="page-edit"] { display: none !important; }

/* ── Page confirmation commande ── */
body#order-confirmation #content-wrapper {
  background: #fff;
  padding: 2rem;
  border-radius: 4px;
  border: 1px solid #e8e0d8;
  margin-top: 1.5rem;
}
body#order-confirmation .order-confirmation-table {
  width: 100%;
}

/* ════════════════════════════════════════════════════════
   MENU DÉROULANT COMPTE CLIENT (icône header)
   ════════════════════════════════════════════════════════ */

.ch-user-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.ch-user-menu__trigger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

/* Caché par défaut — ouverture UNIQUEMENT via JS (.is-open) */
.ch-user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  min-width: 190px;
  background: #fff;
  border: 1px solid #E4D8C8;
  border-radius: 3px;
  box-shadow: 0 4px 16px rgba(45,36,28,.1);
  z-index: 9999;
  padding: .4rem 0;
  white-space: nowrap;
}

.ch-user-menu.is-open .ch-user-dropdown {
  display: block;
}

.ch-user-dropdown__name {
  padding: .55rem 1.1rem .3rem;
  font-size: .78rem;
  font-weight: 600;
  color: #9e8a75;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-bottom: 1px solid #F0E8DC;
  margin-bottom: .3rem;
}

.ch-user-dropdown__item {
  display: block;
  padding: .55rem 1.1rem;
  color: #181512;
  font-size: .9rem;
  font-weight: 400;
  text-decoration: none;
  transition: background .15s;
}

.ch-user-dropdown__item:hover {
  background: #F7F2EA;
  color: #181512;
  text-decoration: none;
}

.ch-user-dropdown__logout {
  border-top: 1px solid #F0E8DC;
  margin-top: .3rem;
  color: #7a6856;
  font-size: .85rem;
}

.ch-user-dropdown__logout:hover {
  background: #fdf6ee;
  color: #c9a96e;
}

/* Triangle (caret) visuel optionnel */
.ch-user-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 14px;
  width: 10px;
  height: 6px;
  background: #fff;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  border-left: 1px solid #E4D8C8;
  border-right: 1px solid #E4D8C8;
}

/* Mobile : le dropdown s'affiche en bas, pleine largeur si nécessaire */
@media (max-width: 767px) {
  .ch-user-dropdown {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
  }
  .ch-user-dropdown::before {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
}

/* ════════════════════════════════════════════════════════
   MATERIAL ICONS — chargement depuis le thème classic
   ════════════════════════════════════════════════════════ */
@font-face {
  font-family: "Material Icons";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../../../classic/assets/css/af9a28e7f261a412f581.eot);
  src: local("Material Icons"), local("MaterialIcons-Regular"),
       url(../../../classic/assets/css/2d8017489da689caedc1.woff2) format("woff2"),
       url(../../../classic/assets/css/08cefa1bc6566a650da7.woff) format("woff"),
       url(../../../classic/assets/css/698bd8550d863c20a3e1.ttf) format("truetype");
}

.material-icons {
  display: inline-block;
  font-family: "Material Icons", Arial, sans-serif;
  font-size: 1.25rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  vertical-align: middle;
  -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga";
  text-rendering: optimizeLegibility;
}

/* ════════════════════════════════════════════════════════
   COMPTE CLIENT — layout général
   ════════════════════════════════════════════════════════ */
body#my-account #wrapper,
body#order-history #wrapper,
body#order-detail #wrapper,
body#address #wrapper,
body#addresses #wrapper,
body#identity #wrapper,
body#order-slip #wrapper,
body#order-follow #wrapper {
  background: #f9f6f2;
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

/* Titre de page */
body#my-account .page-header,
body#order-history .page-header,
body#order-detail .page-header,
body#identity .page-header,
body#addresses .page-header,
body#address .page-header {
  border-bottom: 2px solid #c9a96e;
  margin-bottom: 1.75rem;
  padding-bottom: .5rem;
}

/* Grille des liens du compte */
body#my-account .links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

body#my-account .links a.col-lg-4,
body#my-account .links a.col-md-6 {
  flex: 0 0 calc(33.333% - .7rem);
  max-width: calc(33.333% - .7rem);
  text-decoration: none;
  color: inherit;
}

@media (max-width: 767px) {
  body#my-account .links a.col-lg-4,
  body#my-account .links a.col-md-6 {
    flex: 0 0 calc(50% - .5rem);
    max-width: calc(50% - .5rem);
  }
}

body#my-account .links .link-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1.5rem 1rem;
  background: #fff;
  border: 1px solid #e8e0d8;
  border-radius: 4px;
  text-align: center;
  font-size: .95rem;
  font-weight: 500;
  transition: border-color .2s, box-shadow .2s;
}

body#my-account .links .link-item:hover {
  border-color: #c9a96e;
  box-shadow: 0 2px 8px rgba(201,169,110,.2);
}

body#my-account .links .link-item .material-icons {
  font-size: 2rem;
  color: #c9a96e;
}

/* Bouton déconnexion */
.ch-account-footer {
  margin-top: 2rem;
  text-align: center;
}

.ch-logout-btn {
  display: inline-block;
  padding: .65rem 2.5rem;
  border: 1px solid #c9a96e;
  border-radius: 2px;
  color: #c9a96e;
  background: #fff;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .03em;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.ch-logout-btn:hover {
  background: #c9a96e;
  color: #fff;
  text-decoration: none;
}

/* Lien retour compte dans les sous-pages */
.account-links a,
.customer-account-links a {
  color: #c9a96e;
  text-decoration: underline;
}

/* ── Historique commandes ── */
body#order-history .table {
  background: #fff;
  border: 1px solid #e8e0d8;
}

body#order-history .table th {
  background: #f9f6f2;
  font-weight: 600;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 2px solid #e8e0d8;
}

body#order-history .table td { vertical-align: middle; }

body#order-history .btn-info,
body#order-detail .btn-info {
  background: #181512;
  border-color: #181512;
  color: #fff;
  border-radius: 2px;
  font-size: .85rem;
  padding: .35rem .85rem;
}

/* ════════════════════════════════════════════════════════
   PAGE CONFIRMATION COMMANDE — améliorations
   ════════════════════════════════════════════════════════ */
body#order-confirmation #content-hook_order_confirmation .card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #181512;
  border-left: 4px solid #c9a96e;
  padding-left: .75rem;
  margin-bottom: 1rem;
}

body#order-confirmation #content-hook_order_confirmation .material-icons.done {
  color: #4a9d5b;
  font-size: 1.8rem;
  vertical-align: middle;
  margin-right: .4rem;
}

body#order-confirmation #content,
body#order-confirmation #content-hook_order_confirmation {
  background: #fff;
  border: 1px solid #e8e0d8;
  border-radius: 4px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

body#order-confirmation #order-details {
  background: #f9f6f2;
  border: 1px solid #e8e0d8;
  border-radius: 4px;
  padding: 1.25rem;
  font-size: .95rem;
}

body#order-confirmation #order-details h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .75rem;
  color: #181512;
}

body#order-confirmation #order-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

body#order-confirmation #order-details ul li {
  padding: .3rem 0;
  border-bottom: 1px solid #e8e0d8;
}

body#order-confirmation #order-details ul li:last-child { border-bottom: 0; }

body#order-confirmation .order-confirmation-table th {
  background: #f9f6f2;
  font-weight: 600;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}

/* ── Liens retour dans la confirmation ── */
body#order-confirmation #content-hook-order-confirmation-footer {
  text-align: center;
  margin-top: 1.5rem;
}

body#order-confirmation #content-hook-order-confirmation-footer a {
  display: inline-block;
  margin: .4rem;
  padding: .6rem 1.5rem;
  background: #181512;
  color: #fff;
  border-radius: 2px;
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
}

body#order-confirmation #content-hook-order-confirmation-footer a:hover {
  background: #c9a96e;
}

/* ════════════════════════════════════════════════════════
   CHECKOUT — Onglets Invité / Connexion (Bootstrap 4 tab shim)
   ID réel du conteneur : #checkout-personal-information-step
   Scope : body#checkout pour couvrir tous les cas
   ════════════════════════════════════════════════════════ */

/* Navigation : liste horizontale */
body#checkout .nav.nav-inline {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
  gap: 0;
  border-bottom: 2px solid #e8e0d8;
  flex-wrap: wrap;
}

body#checkout .nav.nav-inline .nav-item {
  list-style: none;
}

/* Masquer le séparateur pipe */
body#checkout .nav-separator {
  display: none !important;
}

/* Liens onglets */
body#checkout .nav-link {
  display: block;
  padding: .65rem 1.25rem;
  color: #888;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .15s, border-color .15s;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

body#checkout .nav-link:hover {
  color: #1a1a1a;
}

body#checkout .nav-link.active {
  color: #1a1a1a;
  border-bottom-color: #c9a96e;
  font-weight: 600;
}

/* Panneaux : masqués par défaut, visibles si .active */
body#checkout .tab-content > .tab-pane {
  display: none !important;
}

body#checkout .tab-content > .tab-pane.active {
  display: block !important;
}

/* ── Fix offcanvas mobile : décalage au scroll/touch iOS ────────────────
   Problème : sans overflow sur le drawer, iOS propage le scroll au body.
   Le body scrollant sous position:fixed crée un décalage visuel.
   Solution : rendre le drawer scrollable et bloquer le body quand menu ouvert. */

#ch-mobile-menu.offcanvas {
  overflow: hidden;
  will-change: transform;
}

#ch-mobile-menu.offcanvas.show {
  transform: translateX(0) !important;
}

#ch-mobile-menu .ch-mobile-drawer {
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
}

body.ch-offcanvas-open {
  overflow: hidden;
}

/* ── Fix sous-menus mobile : neutralise le transform desktop dans le drawer ──
   Le menu desktop centre les sous-menus avec translate(-50%, 0).
   Dans l'offcanvas mobile, ce transform décale les sous-menus hors écran sur iPhone.
   On force donc les sous-menus du drawer à rester dans le flux vertical. */

#ch-mobile-menu .ch-mobile-drawer .ch-submenu,
#ch-mobile-menu .ch-mobile-drawer .ch-nav__list > li:hover > .ch-submenu,
#ch-mobile-menu .ch-mobile-drawer .ch-nav__list > li:focus-within > .ch-submenu {
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  transform: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

#ch-mobile-menu .ch-mobile-drawer .ch-submenu {
  overflow: visible !important;
}

/* ════════════════════════════════════════════════════════
   FICHE PRODUIT — Badge remise : correction positionnement
   La classe .ch-product-card__flag est définie en
   position:absolute pour les miniatures listing. Sur la
   fiche produit, l'ancêtre sticky (.ch-product-info) crée
   un contexte de positionnement qui fait remonter le badge
   au-dessus du titre h1. On ramène le badge à l'inline
   dans le seul contexte .ch-product-price.
   ════════════════════════════════════════════════════════ */
.ch-product-price .ch-product-card__flag {
  position: static;
  display: inline-block;
  margin-left: .5rem;
  vertical-align: middle;
  font-size: .75rem;
}

/* ════════════════════════════════════════════════════════
   CHECKOUT ADRESSE — Fix esthétique
   Le <hr> dans .js-address-item crée une barre visuelle
   qui chevauche le bas de la carte adresse. On le masque
   et on restructure visuellement la carte comme un bloc
   unique : article = conteneur bordé, radio-block sans
   bordure propre, footer adresse intégré au-dessous.
   ════════════════════════════════════════════════════════ */

/* Supprimer le séparateur hr interne (redondant avec la bordure de la carte) */
.js-address-item > hr,
.address-item > hr { display: none; }

/* La carte adresse = l'article, pas le label seul */
.address-item {
  border: 1px solid #e8e0d8;
  border-radius: 4px;
  margin-bottom: .75rem;
  overflow: hidden;
}

/* Le label radio ne reprend plus la bordure (elle est sur l'article) */
.address-selector .radio-block {
  border: none !important;
  border-radius: 0;
  margin-bottom: 0;
  padding: .9rem 1rem .6rem;
}
.address-selector .radio-block.selected,
.address-selector .radio-block:has(input:checked) {
  border: none;
}

/* Sélection : colorer le fond de l'article entier */
.address-item:has(input:checked),
.address-item.selected {
  border-color: #c9a96e;
  background: #fdf9f4;
}

/* Footer liens Modifier / Supprimer */
.address-item .address-footer {
  padding: .4rem 1rem .6rem;
  font-size: .82rem;
  display: flex;
  gap: 1rem;
}
.address-item .address-footer a.text-muted {
  color: #888 !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .2rem;
}
.address-item .address-footer a.text-muted:hover { color: #c9a96e !important; }


/* ════════════════════════════════════════════════════════
   CHECKOUT PREMIUM — 2026-06-20
   QW1·QW2·QW3·QW4·QW5·QW6·QW7·QW8 · Amélio. A, C, D, E
   ════════════════════════════════════════════════════════ */

/* ─── A — Typographie et espacement premium ─── */

/* Padding contenu étapes */
.checkout-step .content {
  padding: 1.75rem 2rem;
}

/* Titres étapes */
.checkout-step .step-title {
  font-size: 1.12rem;
  letter-spacing: .01em;
  padding: 1.1rem 1.5rem;
}

/* Gap entre étapes */
.checkout-process .checkout-step {
  margin-bottom: 1.25rem;
}

/* Labels formulaire */
body#checkout .content .form-group > label {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #9e8a75;
  margin-bottom: .4rem;
  display: block;
}

/* Champs input */
body#checkout .form-control {
  padding: .6rem .9rem;
  font-size: .95rem;
  line-height: 1.5;
  border-color: #ddd5cb;
  border-radius: 4px;
}

/* ─── QW7 — Espacement entre champs ─── */
body#checkout .content .form-group {
  margin-bottom: 1.5rem;
}

/* ─── D — Onglets Invité / Connexion ─── */
body#checkout .nav.nav-inline .nav-link {
  padding: .85rem 2rem;
  font-size: .9rem;
}
body#checkout .nav.nav-inline .nav-link:not(.active) {
  color: #9e8a75;
}
body#checkout .tab-content {
  padding-top: 1.5rem;
}

/* ─── A (suite) — Bloc "Créer un compte (optionnel)" ─── */
body#checkout .form-informations {
  padding: .9rem 1rem;
  margin: 1.25rem 0;
  background: #faf8f5;
  border-left: 3px solid #c9a96e;
  border-radius: 0 4px 4px 0;
  font-size: .88rem;
}
body#checkout .form-informations-title {
  font-weight: 600;
  color: #1a1a1a;
}
body#checkout .form-informations-option {
  color: #9e8a75;
  font-style: normal;
}
body#checkout .form-informations-subtitle {
  font-size: .82rem;
  color: #9e8a75;
  display: block;
  margin-top: .25rem;
}

/* ─── E — Cartes adresse premium ─── */
.address-item .address-alias {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #9e8a75;
  margin-bottom: .4rem;
  display: block;
}
.address-item .address {
  font-size: .9rem;
  line-height: 1.65;
  color: #3d3028;
}
.address-item:has(input:checked),
.address-item.selected {
  border-color: #c9a96e;
  box-shadow: 0 0 0 2px rgba(201,169,110,.22);
  background: #fdf9f4;
}
.add-address a,
a[data-link-action="different-invoice-address"] {
  font-size: .85rem;
  color: #c9a96e;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .4rem 0;
}
.add-address a:hover,
a[data-link-action="different-invoice-address"]:hover {
  color: #1a1a1a;
  text-decoration: underline;
}

/* ─── QW1 — Produits récapitulatif visibles par défaut (desktop uniquement) ─── */
@media (min-width: 992px) {
  #js-checkout-summary #cart-summary-product-list {
    display: block !important;
  }
  #js-checkout-summary .js-show-details {
    display: none;
  }
}

/* ─── QW2 — Alignement flex labels/valeurs récapitulatif ─── */
#js-checkout-summary .cart-summary-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: .35rem 0;
  font-size: .88rem;
}

/* ─── QW5 — Livraison gratuite : mise en valeur verte ─── */
#js-checkout-summary #cart-subtotal-shipping .value {
  color: #4cae4c;
  font-weight: 600;
}

/* ─── QW6 — Image produit récapitulatif ─── */
#js-checkout-summary .media {
  display: flex;
  align-items: flex-start;
  padding: .6rem 0;
  border-bottom: 1px solid #f0ebe4;
}
#js-checkout-summary .media:last-child {
  border-bottom: none;
}
#js-checkout-summary .media-left {
  padding-right: .75rem;
  flex-shrink: 0;
}
#js-checkout-summary .media-object {
  width: 56px;
  height: 70px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid #e8e0d8;
  display: block;
}
#js-checkout-summary .product-name {
  font-size: .85rem;
  color: #3d3028;
  display: block;
  margin-bottom: .2rem;
}
#js-checkout-summary .product-name a {
  color: inherit;
  text-decoration: none;
}
#js-checkout-summary .product-name a:hover { color: #c9a96e; }
#js-checkout-summary .product-price {
  font-size: .95rem;
  font-weight: 600;
  color: #1a1a1a;
}
#js-checkout-summary .product-quantity {
  font-size: .82rem;
  color: #9e8a75;
  margin-left: .3rem;
}
#js-checkout-summary .product-line-info-secondary {
  font-size: .78rem;
  color: #9e8a75;
}

/* ─── C — Section rassurance checkout ─── */
body#checkout .cart-grid-right #block-reassurance {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid #e8e0d8;
  border-radius: 4px;
  background: #faf8f5;
}
body#checkout .cart-grid-right #block-reassurance ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
body#checkout .cart-grid-right #block-reassurance li {
  padding: .35rem 0;
}
body#checkout .cart-grid-right .block-reassurance-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .82rem;
  color: #9e8a75;
}
body#checkout .cart-grid-right .block-reassurance-item img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: .75;
}

/* ─── QW3 — Textareas livraison et cadeau ─── */
body#checkout textarea#delivery_message,
body#checkout textarea#gift_message {
  width: 100%;
  resize: none;
  min-height: 80px;
  padding: .6rem .9rem;
  border: 1px solid #e8e0d8;
  border-radius: 4px;
  font-size: .9rem;
  line-height: 1.5;
  margin-top: .5rem;
}

/* ─── QW4 + QW8 — Bouton Continuer 100% · Padding mobile ─── */
@media (max-width: 575px) {
  body#checkout .continue,
  body#checkout .btn-primary.continue,
  body#checkout button[type="submit"].continue {
    width: 100%;
    float: none !important;
    display: block;
    margin-top: 1rem;
  }
  .checkout-step .content {
    padding: 1.25rem .75rem;
  }
