/* Sous-pages du compte client (21/10/2026) : même charte que le tableau de bord « Mon compte » (.lc-acc).
   Fichier séparé, appelé avec un numéro de version dans head.tpl (catalog.css reste 7 jours en cache navigateur). */

/* ---- Menu de gauche : carte, bandeau noir, icônes en pastille rouge, regroupé comme le tableau de bord ---- */
.account-menu--sidebar { display: block; margin-bottom: 24px; background: #fff; border: 1px solid var(--lc-rule, #dcdad4); border-radius: 10px; overflow: hidden; }
.account-menu--sidebar .account-menu__title { margin: 0; padding: 18px 20px 16px; background: var(--lc-ink, #1a1a1a); border-top: 5px solid var(--lc-red, #c8102e); color: #fff; font-family: "Barlow Condensed", "Barlow", sans-serif; font-size: 1.45rem; font-weight: 700; line-height: 1; letter-spacing: .02em; text-transform: uppercase; }
.account-menu--sidebar .account-menu__nav { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 12px; }
.account-menu--sidebar .account-menu__nav::before,
.account-menu--sidebar .account-menu__nav::after { display: flex; align-items: center; gap: 10px; margin: 14px 8px 6px; font-family: "Barlow Condensed", "Barlow", sans-serif; font-size: .95rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lc-ink, #1a1a1a); }
.account-menu--sidebar .account-menu__nav::before { content: "Mes achats"; order: 1; margin-top: 6px; }
.account-menu--sidebar .account-menu__nav::after { content: "Mon profil"; order: 10; }
.account-menu--sidebar .account-menu__link { order: 15; display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; column-gap: 12px; margin: 0; padding: 8px 10px; border-radius: 8px; color: var(--lc-ink, #1a1a1a); font-size: .95rem; font-weight: 600; line-height: 1.25; text-decoration: none; transition: background-color .15s, color .15s; }
.account-menu--sidebar #history_link { order: 2; }
.account-menu--sidebar #lcs-account-link { order: 3; }
.account-menu--sidebar #wishlist_link { order: 4; }
.account-menu--sidebar #order-slips_link { order: 5; }
.account-menu--sidebar #discounts_link { order: 6; }
.account-menu--sidebar #returns_link { order: 7; }
.account-menu--sidebar #identity_link { order: 11; }
.account-menu--sidebar #addresses_link, .account-menu--sidebar #address_link { order: 12; }
.account-menu--sidebar #emailalerts_link { order: 13; }
.account-menu--sidebar #psgdpr_link { order: 14; }
.account-menu--sidebar #lcc_account_link { order: 14; }
.account-menu--sidebar .account-menu__link .account-menu__icon { display: grid; place-items: center; width: 36px; height: 36px; margin: 0; border-radius: 50%; background: var(--lc-red, #c8102e); color: #fff; font-size: 19px; }
.account-menu--sidebar .account-menu__link:hover,
.account-menu--sidebar .account-menu__link:focus-visible { background: #fdf0f2; color: var(--lc-ink, #1a1a1a); outline: 0; }
.account-menu--sidebar .account-menu__link:focus-visible { box-shadow: 0 0 0 2px var(--lc-red, #c8102e); }
.account-menu--sidebar .account-menu__link--active { background: #fdf0f2; color: var(--lc-red, #c8102e); font-weight: 700; box-shadow: inset 4px 0 0 var(--lc-red, #c8102e); }
.account-menu--sidebar .account-menu__link--active:hover { color: var(--lc-red, #c8102e); }
.account-menu--sidebar .account-menu__link--signout { order: 30; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--lc-rule, #dcdad4); border-radius: 0 0 8px 8px; color: #55595d; }
.account-menu--sidebar .account-menu__link--signout .account-menu__icon { background: var(--lc-ink, #1a1a1a); }
.account-menu--sidebar #lcs-account-link .lcs-badge { justify-self: start; grid-column: 2; margin: 2px 0 0; }

/* ---- En-tête de page : bandeau noir comme le tableau de bord ---- */
.row:has(> .col-lg-3 > .account-menu--sidebar) .page-header { margin: 0 0 16px; padding: clamp(20px, 2.6vw, 30px) clamp(20px, 3vw, 34px); background: var(--lc-ink, #1a1a1a); border-top: 5px solid var(--lc-red, #c8102e); border-radius: 10px; }
.row:has(> .col-lg-3 > .account-menu--sidebar) .page-header::before { content: "Espace client"; display: block; margin-bottom: 8px; font-family: "Barlow Condensed", "Barlow", sans-serif; font-size: .95rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #ff7a8e; }
.row:has(> .col-lg-3 > .account-menu--sidebar) .page-header .page-title-section,
.row:has(> .col-lg-3 > .account-menu--sidebar) .page-header h1 { margin: 0; color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.05; }
.row:has(> .col-lg-3 > .account-menu--sidebar) .account-menu__back { display: none; }

/* ---- Contenu : carte blanche, tableaux et blocs harmonisés ---- */
.row:has(> .col-lg-3 > .account-menu--sidebar) .page-content--customer { padding: clamp(18px, 2.4vw, 28px); background: #fff; border: 1px solid var(--lc-rule, #dcdad4); border-radius: 10px; }
.row:has(> .col-lg-3 > .account-menu--sidebar) .page-content--customer > p:first-child { color: #55595d; }
.row:has(> .col-lg-3 > .account-menu--sidebar) .page-content--customer .table { margin-bottom: 0; }
.row:has(> .col-lg-3 > .account-menu--sidebar) .page-content--customer .table thead th { background: #f6f5f2; border-bottom: 2px solid var(--lc-red, #c8102e); color: var(--lc-ink, #1a1a1a); font-family: "Barlow Condensed", "Barlow", sans-serif; font-size: .95rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.row:has(> .col-lg-3 > .account-menu--sidebar) .page-content--customer .alert-info { background: #fdf0f2; border: 1px solid #f3c4cc; border-left: 5px solid var(--lc-red, #c8102e); color: var(--lc-ink, #1a1a1a); }
.row:has(> .col-lg-3 > .account-menu--sidebar) .page-content--customer .card,
.row:has(> .col-lg-3 > .account-menu--sidebar) .page-content--customer .address { border: 1px solid var(--lc-rule, #dcdad4); border-radius: 10px; box-shadow: none; }

/* ---- Favoris (module blockwishlist : en-tête et liste à part) ---- */
.row:has(> .col-lg-3 > .account-menu--sidebar) .wishlist-container-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin: 0 0 16px; padding: clamp(20px, 2.6vw, 30px) clamp(20px, 3vw, 34px); background: var(--lc-ink, #1a1a1a); border-top: 5px solid var(--lc-red, #c8102e); border-radius: 10px; }
.row:has(> .col-lg-3 > .account-menu--sidebar) .wishlist-container-header h1 { margin: 0; color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.05; }
.row:has(> .col-lg-3 > .account-menu--sidebar) .wishlist-container-header h1::before { content: "Espace client"; display: block; margin-bottom: 8px; font-size: .95rem; letter-spacing: .08em; color: #ff7a8e; }
.row:has(> .col-lg-3 > .account-menu--sidebar) .wishlist-container-header .wishlist-add-to-new { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border: 2px solid rgba(255, 255, 255, .55); border-radius: 6px; color: #fff !important; font-weight: 600; text-decoration: none; }
.row:has(> .col-lg-3 > .account-menu--sidebar) .wishlist-container-header .wishlist-add-to-new:hover,
.row:has(> .col-lg-3 > .account-menu--sidebar) .wishlist-container-header .wishlist-add-to-new:focus-visible { background: #fff; border-color: #fff; color: var(--lc-ink, #1a1a1a) !important; outline: 0; }
.row:has(> .col-lg-3 > .account-menu--sidebar) .wishlist-container > .page-content.card { padding: 8px clamp(14px, 2vw, 22px); background: #fff; border: 1px solid var(--lc-rule, #dcdad4); border-radius: 10px; box-shadow: none; }
.row:has(> .col-lg-3 > .account-menu--sidebar) .wishlist-list-item-title { font-weight: 600; color: var(--lc-ink, #1a1a1a); }
.row:has(> .col-lg-3 > .account-menu--sidebar) .wishlist-list-item:hover { background: #fdf0f2; }

.row:has(> .col-lg-3 > .account-menu--sidebar) .wishlist-container-header .wishlist-add-to-new { cursor: pointer; }
.row:has(> .col-lg-3 > .account-menu--sidebar) .wishlist-container-header .wishlist-add-to-new,
.row:has(> .col-lg-3 > .account-menu--sidebar) .wishlist-container-header .wishlist-add-to-new * { color: #fff !important; -webkit-text-fill-color: #fff; } /* .text-primary de Bootstrap est prioritaire sur color */
.row:has(> .col-lg-3 > .account-menu--sidebar) .wishlist-container-header .wishlist-add-to-new:hover,
.row:has(> .col-lg-3 > .account-menu--sidebar) .wishlist-container-header .wishlist-add-to-new:hover *,
.row:has(> .col-lg-3 > .account-menu--sidebar) .wishlist-container-header .wishlist-add-to-new:focus-visible,
.row:has(> .col-lg-3 > .account-menu--sidebar) .wishlist-container-header .wishlist-add-to-new:focus-visible * { color: var(--lc-ink, #1a1a1a) !important; -webkit-text-fill-color: var(--lc-ink, #1a1a1a); }
/* Mes sélections : pas de second cadre dans la carte de contenu */
.row:has(> .col-lg-3 > .account-menu--sidebar) .page-content--customer .lcs-empty { padding: 20px 8px; border: 0; }

/* Mobile et tablette : le menu passerait avant le contenu (11 liens) ; on garde le bouton « Retour à votre compte » */
@media (max-width: 991.98px) {
  .row > .col-lg-3:has(> .account-menu--sidebar) { display: none; }
  .row:has(> .col-lg-3 > .account-menu--sidebar) .account-menu__back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; }
  .row:has(> .col-lg-3 > .account-menu--sidebar) .wishlist-container-header { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .account-menu--sidebar .account-menu__link { transition: none; } }

/* ---- Liste de favoris (blockwishlist, page « view ») : cartes produit lisibles (21/10/2026) ---- */
.wishlist-products-container .wishlist-products-container-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin: clamp(16px, 3vw, 30px) 0 18px; padding: clamp(20px, 2.6vw, 30px) clamp(20px, 3vw, 34px); background: var(--lc-ink, #1a1a1a); border-top: 5px solid var(--lc-red, #c8102e); border-radius: 10px; }
.wishlist-products-container .wishlist-products-container-header h1 { margin: 0; color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.05; }
.wishlist-products-container .wishlist-products-container-header h1::before { content: "Mes favoris"; display: block; margin-bottom: 8px; font-size: .95rem; letter-spacing: .08em; color: #ff7a8e; }
.wishlist-products-container .wishlist-products-count { color: #c9c9c9; font-size: .6em; vertical-align: middle; }
.wishlist-products-container .sort-by-row { display: flex; align-items: center; gap: 10px; margin: 0; }
.wishlist-products-container .sort-by-row .sort-by { flex: none; width: auto; max-width: none; padding: 0; color: #c9c9c9; font-size: .9rem; }
.wishlist-products-container .sort-by-row .products-sort-order { flex: none; width: auto; max-width: none; padding: 0; }
.wishlist-products-container .sort-by-row .select-title { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px; background: #fff; border: 0; border-radius: 6px; color: var(--lc-ink, #1a1a1a); font-weight: 600; }

.wishlist-products-container > #content.page-content { padding: 0; background: none; border: 0; box-shadow: none; }
.wishlist-products-container .wishlist-products-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.wishlist-products-container .wishlist-products-item { width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
.wishlist-products-container .wishlist-product { position: relative; display: flex; flex-direction: column; height: 100%; padding: 14px; background: #fff; border: 1px solid var(--lc-rule, #dcdad4); border-radius: 10px; transition: border-color .15s, box-shadow .15s; }
.wishlist-products-container .wishlist-product:hover { border-color: var(--lc-red, #c8102e); box-shadow: 0 10px 24px rgba(26, 26, 26, .08); }
.wishlist-products-container .wishlist-product-link { display: flex; flex: 1; flex-direction: column; gap: 10px; color: var(--lc-ink, #1a1a1a); text-decoration: none; }
.wishlist-products-container .wishlist-product-image { position: relative; display: grid; place-items: center; width: 100%; height: 190px; margin: 0; padding: 8px; background: #fff; border-radius: 8px; }
.wishlist-products-container .wishlist-product-image img { position: static !important; width: auto !important; max-width: 100%; height: auto !important; max-height: 174px; object-fit: contain; transform: none !important; }
.wishlist-products-container .wishlist-product-availability { position: absolute !important; left: 8px !important; right: auto !important; bottom: 8px; top: auto !important; width: auto !important; min-width: 0 !important; max-width: calc(100% - 16px); display: inline-flex; align-items: center; gap: 4px; margin: 0; padding: 3px 8px; background: #f3f2ee; border-radius: 999px; color: #4a4741; font-size: .78rem; font-weight: 600; line-height: 1.3; transform: none !important; }
.wishlist-products-container .wishlist-product-availability .material-icons { font-size: 15px; color: var(--lc-red, #c8102e); }
.wishlist-products-container .wishlist-product-availability-responsive { display: none !important; }
.wishlist-products-container .wishlist-product-right { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 0; }
.wishlist-products-container .wishlist-product-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; color: var(--lc-ink, #1a1a1a); font-size: .95rem; font-weight: 600; line-height: 1.3; text-transform: none; }
.wishlist-products-container .wishlist-product-link:hover .wishlist-product-title { color: var(--lc-red, #c8102e); }
.wishlist-products-container .wishlist-product-price { margin: auto 0 0; color: var(--lc-ink, #1a1a1a); font-size: 1.2rem; font-weight: 700; }
.wishlist-products-container .wishlist-product-price-promo { color: var(--lc-red, #c8102e); }
.wishlist-products-container .wishlist-product-combinations { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; }
.wishlist-products-container .wishlist-product-combinations-text { margin: 0; color: #55595d; font-size: .85rem; }
.wishlist-products-container .wishlist-product-combinations a { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border: 1px solid var(--lc-rule, #dcdad4); border-radius: 6px; color: var(--lc-ink, #1a1a1a); font-size: .8rem; font-weight: 600; text-decoration: none; }
.wishlist-products-container .wishlist-product-combinations a::after { content: "Modifier"; }
.wishlist-products-container .wishlist-product-combinations a .material-icons { font-size: 15px; }
.wishlist-products-container .wishlist-product-combinations a:hover { border-color: var(--lc-red, #c8102e); color: var(--lc-red, #c8102e); }

.wishlist-products-container .wishlist-product-bottom { position: static !important; display: flex; align-items: stretch; gap: 8px; width: 100% !important; margin: 14px 0 0; padding: 0; }
.wishlist-products-container .wishlist-product-addtocart { display: inline-flex; flex: 1; align-items: center; justify-content: center; gap: 6px; min-height: 44px; margin: 0; padding: 8px 12px; background: var(--lc-red, #c8102e) !important; border: 0 !important; border-radius: 6px; color: #fff !important; font-family: "Barlow Condensed", "Barlow", sans-serif; font-size: 1rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; box-shadow: none; }
.wishlist-products-container .wishlist-product-addtocart:hover, .wishlist-products-container .wishlist-product-addtocart:focus-visible { background: #a50d26 !important; outline: 0; }
.wishlist-products-container .wishlist-product-addtocart[disabled], .wishlist-products-container .wishlist-product-addtocart.disabled { background: #e9e7e2 !important; color: #6b6861 !important; cursor: not-allowed; }
.wishlist-products-container .wishlist-button-add { position: static !important; display: grid !important; place-items: center; flex: 0 0 44px; width: 44px !important; height: 44px !important; margin: 0 !important; padding: 0; background: #fff !important; border: 1px solid #c9c6bf !important; border-radius: 6px !important; box-shadow: none !important; color: #55595d; cursor: pointer; transform: none !important; }
.wishlist-products-container .wishlist-button-add .material-icons { color: inherit !important; font-size: 21px; }
.wishlist-products-container .wishlist-button-add:hover, .wishlist-products-container .wishlist-button-add:focus-visible { background: #fdf0f2 !important; border-color: var(--lc-red, #c8102e) !important; color: var(--lc-red, #c8102e); outline: 0; }
.wishlist-products-container ~ .wishlist-footer-links, .wishlist-footer-links { margin-top: 20px; }
/* Hummingbird impose .wishlist-button-add en !important dans ses couches CSS (@layer ps-modules) : un !important
   placé dans la première couche déclarée (vendors) passe devant. */
@layer vendors {
  .wishlist-products-container .wishlist-button-add { top: auto !important; right: auto !important; width: 44px !important; min-width: 44px !important; height: 44px !important; margin: 0 !important; padding: 0 !important; background-color: #fff !important; border: 1px solid #c9c6bf !important; border-radius: 6px !important; box-shadow: none !important; color: #55595d !important; }
  .wishlist-products-container .wishlist-button-add:hover,
  .wishlist-products-container .wishlist-button-add:focus-visible { background-color: #fdf0f2 !important; border-color: #c8102e !important; color: #c8102e !important; }
}
@media (max-width: 575.98px) {
  .wishlist-products-container .wishlist-products-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .wishlist-products-container .wishlist-product { padding: 10px; }
  .wishlist-products-container .wishlist-product-image { height: 130px; }
  .wishlist-products-container .wishlist-product-image img { max-height: 114px; }
  .wishlist-products-container .wishlist-product-addtocart { min-height: 40px; font-size: .88rem; letter-spacing: 0; padding: 6px 8px; }
  .wishlist-products-container .wishlist-product-combinations { flex-direction: column; align-items: flex-start; gap: 6px; }
  /* Corbeille en haut à droite de la carte : toute la largeur pour le bouton panier */
  .wishlist-products-container .wishlist-button-add { position: absolute !important; z-index: 6; }
}
@layer vendors {
  @media (max-width: 575.98px) {
    .wishlist-products-container .wishlist-button-add { top: 8px !important; right: 8px !important; width: 36px !important; min-width: 36px !important; height: 36px !important; }
  }
}
@media (prefers-reduced-motion: reduce) { .wishlist-products-container .wishlist-product { transition: none; } }

/* Prix des favoris : mention HT ou TTC selon le client (variable posée dans head.tpl) */
.wishlist-products-container .wishlist-product-price::after { content: "\00a0" var(--lc-tax-label, ""); font-size: .7em; font-weight: 600; }
