/*
 * Custom code goes here.
 * A template should always ship with an empty custom.css
 */

/* ── Top banner (refonte) — staticblock via displayBanner ── */
.header-banner {
    background: var(--top-banner-bg);
    color: var(--top-banner-color);
    font-size: .82rem;
    font-weight: 600;
    text-align: center;
    padding: 10px 20px;
    letter-spacing: .03em;
}

.header-banner [id^="static_content_wrapper_"],
.header-banner [id^="home_content_"] {
    margin: 0;
    padding: 0;
}

.header-banner em {
    color: var(--primary);
    font-style: normal;
    margin: 0 4px;
    font-weight: 800;
}

@media (max-width: 480px) {
    .header-banner {
        font-size: .7rem;
        line-height: 1.5;
        padding: 5px 12px;
    }
}

/* ── Utilitaires refonte ── */
.flex {
    display: flex;
    align-items: center;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    padding: 14px 30px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: .92rem;
    letter-spacing: .03em;
    display: inline-block;
    transition: opacity .2s;
    text-decoration: none;
    border: none;
}

.btn-primary:hover {
    opacity: .85;
    color: #fff;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    padding: 12px 30px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: .92rem;
    letter-spacing: .03em;
    display: inline-block;
    transition: background .2s, color .2s;
    text-decoration: none;
}

.btn-outline:hover {
    background: #fff;
    color: var(--primary);
    text-decoration: none;
}

/* Bouton secondaire sur fond clair (maquette_produit.html) — .btn-outline est
   pensé pour les fonds sombres (bordure et texte blancs). */
.btn-outline-dark {
    background: #fff;
    color: #333;
    border: 1.5px solid var(--gray-200);
    padding: 12px 20px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: .85rem;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .2s;
}

.btn-outline-dark:hover {
    border-color: var(--primary);
    color: #333;
    text-decoration: none;
}

.btn-outline-brown {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    padding: 12px 20px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .03em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
    text-decoration: none;
}

.btn-outline-brown:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    text-decoration: none;
}

/* ── Hero slider (refonte) ── */
.hero {
    position: relative;
    overflow: hidden;
    height: 420px;
}

.hero-slides {
    display: flex;
    height: 100%;
    transition: transform .6s cubic-bezier(.4, 0, .2, 1);
}

.hero-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-slide img.slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(5, 15, 35, .78) 0%, rgba(5, 15, 35, .38) 50%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h2 {
    font-size: 4rem;
    font-weight: 900;
    line-height: .9;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -.02em;
    text-shadow: 0 2px 28px rgba(0, 0, 0, .3);
    margin-bottom: 18px;
}

.hero-content p {
    color: rgba(255, 255, 255, .88);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 28px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-arrows {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 24px;
    z-index: 3;
}

.arrow-btn {
    pointer-events: all;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    line-height: 1;
    backdrop-filter: blur(4px);
    transition: background .2s;
    border: 1px solid rgba(255, 255, 255, .3);
    cursor: pointer;
    padding: 0;
}

.arrow-btn:hover {
    background: rgba(255, 255, 255, .45);
}

.hero-dots {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.hero-dots .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .45);
    cursor: pointer;
    transition: background .25s, transform .25s;
    border: none;
    padding: 0;
}

.hero-dots .dot.active {
    background: #fff;
    transform: scale(1.3);
}

@media (max-width: 1280px) {
    .hero {
        height: 380px;
    }

    .hero-content h2 {
        font-size: 3.4rem;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 320px;
    }

    .hero-content h2 {
        font-size: 2.4rem;
    }

    .hero-content p {
        font-size: .88rem;
        margin-bottom: 20px;
    }

    .btn-primary,
    .btn-outline {
        padding: 11px 20px;
        font-size: .82rem;
    }

    .arrow-btn {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 260px;
    }

    .hero-content h2 {
        font-size: 1.9rem;
        line-height: 1;
    }

    .hero-content p {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .btn-primary,
    .btn-outline {
        padding: 10px 18px;
        font-size: .78rem;
    }
}

/* ── Classes globales refonte ── */
.section-title {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.see-all {
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: .05em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    text-decoration: none;
}

.see-all::after {
    content: ' →';
}

/* ── Product miniatures (refonte) ── */

.ets_crosssell_block .ets_crosssell_title,
.featured-products .title_block,
.itr_featured-products .title_block {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-color);
    margin-bottom: 0;
}

.ets_crosssell_block hr.separator {
    display: none;
}

.products .product {
    padding: 0;
    margin: 0 8px;
    height: inherit;
}

/* Seule source de style de la miniature (product.tpl), quel que soit le contexte :
   accueil, listings, recherche, PDP, panier. featuredproducts.css et le front.css
   d'ets_crosssell ne la ciblent plus ; la grille (.product) reste au contexte. */
.product-miniature.product-card {
    height: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s;
}

.product-miniature.product-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, .1);
    transform: translateY(-4px);
}

.product-miniature.product-card .product-img {
    aspect-ratio: 1 / 1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-miniature.product-card .product-thumbnail {
    display: block;
    width: 100%;
    height: 100%;
}

.product-miniature.product-card .product-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14px;
    transition: transform .35s;
}

.product-miniature.product-card:hover .product-thumbnail img {
    transform: scale(1.06);
}

.product-miniature.product-card .product-info {
    padding: 12px 12px 14px;
    background: #fff;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    text-align: left;
    position: relative;
    z-index: 2;
}

.product-miniature.product-card .product-brand {
    font-size: .67rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gray-500);
    letter-spacing: .06em;
}

.product-miniature.product-card .product-name {
    font-size: .84rem;
    font-weight: 600;
    margin: 3px 0 8px;
    line-height: 1.3;
}

/* inherit : sur la PDP, `.product-description * { font-size: 16px }` (products.css,
   onglet description) atteint aussi la miniature, qui porte product-description. */
.product-miniature.product-card .product-name a {
    font-size: inherit;
    font-weight: inherit;
    color: var(--text-color);
    text-decoration: none;
    display: block;
}

.product-miniature.product-card .product-name a:hover {
    color: var(--text-color);
    opacity: .8;
}

.product-miniature.product-card .product-prices {
    display: flex;
    align-items: baseline;
    gap: 7px;
    flex-wrap: wrap;
}

.product-miniature.product-card .price-new {
    font-size: .95rem;
    font-weight: 800;
    color: var(--primary);
}

.product-miniature.product-card .price-old {
    font-size: .75rem;
    color: var(--gray-500);
    text-decoration: line-through;
}

.product-miniature.product-card .discount-product {
    display: none;
}

.product-miniature.product-card .product-reviews {
    display: none;
}

.product-miniature.product-card .product-miniature-meta {
    display: none;
}

/* ── Product stock popover (maquette_listing.html) ── */
.product-miniature.product-card .product-stock-popover {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 5;
    background: rgba(255, 255, 255, .98);
    padding: 10px;
    overflow-y: auto;
    color: inherit;
    text-decoration: none;
}

@media (hover: hover) {
    .product-miniature.product-card:hover .product-stock-popover:not(:empty) {
        display: block;
    }
}

.product-miniature.product-card .product-stock-popover.open {
    display: block;
}

.product-miniature.product-card .product-stock-toggle {
    display: none;
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    z-index: 6;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 50px;
    background: rgba(255, 255, 255, .97);
    border: 1px solid var(--gray-200);
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: .68rem;
    font-weight: 700;
    font-family: inherit;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

.product-miniature.product-card .product-stock-toggle svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.product-miniature.product-card .product-stock-popover.open + .product-stock-toggle,
.product-miniature.product-card .product-stock-popover:empty + .product-stock-toggle {
    display: none;
}

@media (max-width: 768px) {
    .product-miniature.product-card .product-stock-toggle {
        display: flex;
    }

    .product-miniature.product-card .product-stock-popover:empty + .product-stock-toggle,
    .product-miniature.product-card .product-stock-popover.open + .product-stock-toggle {
        display: none;
    }
}

.product-miniature.product-card .product-stock-group {
    margin-bottom: 8px;
}

.product-miniature.product-card .product-stock-group:last-child {
    margin-bottom: 0;
}

.product-miniature.product-card .product-stock-group-title {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .62rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.product-miniature.product-card .product-stock-group-title.ok {
    color: var(--success);
}

.product-miniature.product-card .product-stock-group-title.mid {
    color: #c97a17;
}

.product-miniature.product-card .product-stock-group-title.ko {
    color: #c0392b;
}

.product-miniature.product-card .product-stock-group-title svg {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
}

/* Pack : synthèse du pack puis disponibilité de chaque composant */
.product-miniature.product-card .product-stock-pack-label {
    font-size: .58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--gray-500);
    margin-bottom: 2px;
}

.product-miniature.product-card .product-stock-pack-summary {
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-200);
}

.product-miniature.product-card .product-stock-component-name {
    font-size: .62rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.product-miniature.product-card .product-stock-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.product-miniature.product-card .product-stock-chip {
    border: 1px solid var(--gray-200);
    border-radius: 5px;
    padding: 2px 6px;
    font-size: .6rem;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
    background: #fff;
}

/* ── Badges produit (product-flags.tpl : miniatures + image principale de la PDP) ── */
.product-flags {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.product-flags .product-flag {
    margin: 0;
    padding: 3px 8px;
    font-size: .7rem;
    font-weight: 700;
    color: #fff;
    background: var(--brand-primary);
    border-radius: 4px;
    pointer-events: auto;
}

.product-flags .product-flag.badge-promo {
    background: var(--promo);
}

.product-flags .product-flag.badge-new {
    background: var(--badge-new);
}

@media (max-width: 768px) {
    .section-header {
        flex-wrap: wrap;
        gap: 6px;
    }

    .section-title,
    .ets_crosssell_block .ets_crosssell_title,
    .featured-products .title_block,
    .itr_featured-products .title_block {
        font-size: .95rem;
    }

    .see-all {
        font-size: .75rem;
    }
}

/* ── Sticky header ── */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 100;
    overflow: visible;
}

/* ── Header top (refonte) ── */
#header {
    background: #fff;
    color: var(--text-color);
    border-bottom: none;
}

.header {
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
}

.header-top {
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 28px;
    justify-content: space-between;
}

#header .logo{
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

#header .logo a{
    display: flex;
    align-items: center;
}

#header .logo img{
    height: 60px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Search bar — aussi le champ de l'état « aucun résultat » de la recherche
   (hook displaySearch dans catalog/listing/search.tpl) */
#header .search-bar,
#search .plp-empty .search-bar {
    flex: 1;
    max-width: 580px;
    margin: 0 auto;
    border: none;
    border-radius: 28px;
    padding: 11px 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f0f2f5;
    transition: background .2s;
}

#header .search-bar:focus-within,
#search .plp-empty .search-bar:focus-within {
    background: #e8eaed;
}

#header .search-bar form,
#search .plp-empty .search-bar form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    margin: 0;
}

#header .search-bar input,
#search .plp-empty .search-bar input {
    border: none;
    background: transparent;
    flex: 1;
    min-width: 0;
    font-size: .92rem;
    font-family: "Arial";
    color: #555;
    outline: none;
    box-shadow: none;
    height: auto;
    padding: 0;
}
#header .search-bar input::placeholder,
#search .plp-empty .search-bar input::placeholder {
    color: #555;
}

#header .search-icon,
#search .plp-empty .search-icon {
    color: var(--gray-500);
    flex-shrink: 0;
}

/* Header icons */
#header .header-icons {
    gap: 24px;
    margin-left: auto;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding-right: 4px;
}

#header .header-icon-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    color: var(--text-color);
    font-weight: 600;
    position: relative;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.2;
}

#header .header-icon-btn svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

#header .cart-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#header .cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--promo);
    color: #fff;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: .62rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
    z-index: 1;
}

/* Reset anciens styles header */
#header .blockcart {
    padding: 0;
    margin: 0;
    border: none;
    text-align: inherit;
}

#header .blockcart .header {
    margin: 0;
    padding: 0;
    border: none;
    text-decoration: none;
    color: inherit;
}

#header .blockcart a.header {
    display: flex;
    align-items: center;
    justify-content: center;
}

#header .user-info {
    padding: 0;
}

#header #_desktop_cart {
    position: relative;
}

/* Mobile burger */
#header .mobile-burger-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    color: var(--primary);
    flex-shrink: 0;
    padding: 0;
    border: none;
    cursor: pointer;
}

#header .mobile-search-btn {
    display: none;
}

/* Responsive */
@media (max-width: 1024px) {
    #header .search-bar {
        max-width: 360px;
        margin: 0 14px;
    }

    #header .header-icon-btn > span:not(.cart-icon-wrap):not(.cart-count) {
        display: none;
    }

    #header .logo img{
        height: 50px;
    }
}

@media (max-width: 860px) {
    #header .search-bar {
        max-width: 240px;
    }
}

/* Le menu horizontal est masque des 1020px (iqitmegamenu). Le burger doit suivre. */
@media (max-width: 1020px) {
    #header .mobile-burger-btn {
        display: flex;
    }
}

@media (max-width: 767px) {
    #header .header-top {
        gap: 12px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    #header .logo img{
        height: 44px;
    }

    #header #_desktop_logo:not(:empty){
        flex: 1;
        justify-content: center;
    }

    #header #_desktop_logo:empty{
        display: none;
    }

    #header .search-bar {
        max-width: none;
        margin: 0;
        flex: 1;
        min-width: 0;
    }

    #header .header-icon-btn > span:not(.cart-icon-wrap):not(.cart-count) {
        display: none;
    }

    #header .header-icons {
        gap: 16px;
        flex-shrink: 0;
        margin-left: 0;
    }

    #header .mobile-burger-btn {
        display: flex;
    }
}

@media (max-width: 480px) {
    #header .header-top {
        flex-wrap: nowrap;
        gap: 0;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    #header .mobile-burger-btn {
        display: flex;
        flex-shrink: 0;
    }

    #header #_desktop_logo:not(:empty){
        flex: 1;
        justify-content: center;
    }

    #header #_desktop_logo:empty{
        display: none;
    }

    #header .search-bar {
        display: none;
    }

    /* width: auto : theme.css pose `.header-top .search-widget { width: 50% }`,
       qui l'emportait sur right: 0 (barre de 180px sur 375px). */
    #header .search-bar.is-open {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: auto;
        max-width: none;
        margin: 0;
        border-radius: 0;
        z-index: 10;
        padding: 12px 16px;
        background: #fff;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow);
    }

    #header .header {
        position: relative;
    }

    #header .mobile-search-btn {
        display: flex;
    }

    #header .search-bar input,
    #header .search-bar input[type="search"] {
        font-size: 16px;
    }

    #header .header-icons {
        gap: 14px;
        flex-shrink: 0;
        margin-left: 0;
    }
}

#_desktop_blockcart-content{
    width: 320px;
    max-width: 100vw;
    left: initial;
    right: 0;
    padding: 0;
    border: none;
    margin: 0;
    padding: 1rem;
    background: #fff;
    border: none 1px;
    box-shadow: 0px 6px 30px 0px rgba(0, 0, 0, 0.15);
}
#_desktop_blockcart-content #blockcart-content .cart-products {
    max-height: 380px;
    overflow-x: hidden;
    overflow-y: auto;
    margin-bottom: 0;
}
#_desktop_blockcart-content #blockcart-content .cart-products>li {
    padding-bottom: .875rem;
    border-bottom: 1px solid #acaaa6;
    margin-bottom: .875rem;
}
#_desktop_blockcart-content #blockcart-content .cart-products>li:last-child {
    border-bottom: none;
}
#_desktop_blockcart-content #blockcart-content .cart-products>li .product-name{
    font-size: 15px;
    margin-bottom: 3px;
}
#_desktop_blockcart-content #blockcart-content .cart-products>li .row {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}
#_desktop_blockcart-content #blockcart-content .cart-products>li .row.no-gutters{
    margin: 0;
}
#_desktop_blockcart-content #blockcart-content .cart-products>li .row .col-3{
    flex: 0 0 25%;
    max-width: 25%;
}
#_desktop_blockcart-content #blockcart-content .cart-products>li .row .col-3 img{
    max-width: 100% !important;
}
#_desktop_blockcart-content #blockcart-content .cart-products>li .row .col{
    flex-basis: 0;
    -ms-flex-positive: 1;
    flex-grow: 1;
    max-width: 100%;
}
#_desktop_blockcart-content #blockcart-content .cart-products>li .row .col-auto{
    flex: 0 0 auto;
    max-width: auto;
}
#_desktop_blockcart-content #blockcart-content .cart-subtotals {
    padding: .875rem 0;
    border-top: 1px solid #acaaa6;
}
#_desktop_blockcart-content #blockcart-content .cart-totals {
    padding: .875rem 0;
    border-top: 1px solid #acaaa6;
}
#_desktop_blockcart-content #blockcart-content .cart-summary-line {
    font-weight: 500;
}
#_desktop_blockcart-content #blockcart-content .cart-summary-line .value{
    float: right;
}
#_desktop_blockcart-content #blockcart-content #cart-subtotal-products {
    margin-bottom: 10px;
}
#_desktop_blockcart-content #blockcart-content .cart-buttons .btn-secondary:hover{
    color: #FFF;
}

/* ── Search autocomplete (maquette.html, #search-dropdown) ──
   Menu déroulant de la barre de recherche : markup ps_searchbar.tpl, JS
   ps_searchbar.js (tous deux dans themes/hotmer/modules/ps_searchbar/).
   Portée #search_widget : c'est l'id de la barre du header ET du champ de
   l'état « aucun résultat » de la recherche (hook displaySearch). Il faut de
   toute façon un id pour battre `#header a` (theme.css) sur les liens. */
#search_widget.search-bar {
    position: relative;
}

#search_widget .search-clear-btn {
    display: none;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--gray-500);
    cursor: pointer;
    transition: background .2s, color .2s;
}

#search_widget .search-clear-btn.show {
    display: flex;
}

#search_widget .search-clear-btn svg {
    width: 12px;
    height: 12px;
}

#search_widget .search-clear-btn:hover {
    background: var(--gray-200);
    color: #333;
}

#search_widget .search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: -22px;
    right: -22px;
    z-index: 250;
    max-height: 75vh;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .16);
    color: var(--text-color);
    line-height: normal;
    text-align: left;
}

#search_widget .search-dropdown.open {
    display: block;
}

/* Boutons et liens du panneau : la maquette part d'un reset global. Sans
   #search_widget : ce reset doit perdre face aux règles de chaque bouton. */
.search-dropdown button {
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

#search_widget .search-dropdown a,
#search_widget .search-dropdown a:hover {
    text-decoration: none;
}

#search_widget .search-dd-section {
    padding: 18px 22px;
}

/* :not([hidden]) : la section des recherches récentes reste dans le DOM, masquée, quand il n'y en a pas. */
#search_widget .search-dd-section:not([hidden]) + .search-dd-section {
    border-top: 1px solid var(--gray-200);
}

#search_widget .search-dd-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

#search_widget .search-dd-title {
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gray-500);
}

#search_widget .search-dd-results .search-dd-title {
    margin-bottom: 12px;
}

#search_widget .search-dd-clear {
    font-size: .76rem;
    font-weight: 700;
    color: var(--primary);
}

#search_widget .search-dd-clear:hover {
    color: var(--accent);
}

#search_widget .search-dd-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#search_widget .search-dd-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 8px 7px 14px;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 600;
    color: #333;
    transition: background .2s;
}

#search_widget .search-dd-pill:hover {
    background: var(--gray-200);
}

/* Pastille = deux boutons (relancer la recherche / la retirer) : le premier
   s'étend à toute la pastille, la croix passe au-dessus. */
#search_widget .search-dd-pill-term {
    color: inherit;
}

#search_widget .search-dd-pill-term::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 50px;
}

#search_widget .search-dd-pill-remove {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    color: var(--gray-500);
}

#search_widget .search-dd-pill-remove:hover {
    color: #b3261e;
    background: rgba(179, 38, 30, .1);
}

#search_widget .search-dd-pill-remove svg {
    width: 10px;
    height: 10px;
}

#search_widget .search-dd-trend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 9px 4px;
    border-radius: 8px;
    font-size: .86rem;
    font-weight: 500;
    color: #333;
    text-align: left;
}

#search_widget .search-dd-trend-item:hover {
    background: var(--gray-100);
    color: var(--primary);
}

#search_widget .search-dd-trend-item svg,
#search_widget .search-dd-sugg-item svg {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    color: var(--gray-500);
}

/* minmax(0, …) et non 1fr : un nom de produit sans espace ne doit pas élargir sa colonne. */
#search_widget .search-dd-results {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
}

/* Aucune catégorie : les produits prennent toute la largeur. */
#search_widget .search-dd-results.is-products-only {
    grid-template-columns: minmax(0, 1fr);
}

#search_widget .search-dd-suggestions {
    padding: 18px 22px;
    border-right: 1px solid var(--gray-200);
}

#search_widget .search-dd-sugg-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 6px;
    border-radius: 8px;
    font-size: .86rem;
    color: #333;
}

#search_widget .search-dd-sugg-item:hover {
    background: var(--gray-100);
    color: #333;
}

#search_widget .search-dd-sugg-item mark,
#search_widget .search-dd-product-name mark {
    padding: 0;
    background: none;
    color: var(--primary);
}

#search_widget .search-dd-sugg-item mark {
    font-weight: 800;
}

#search_widget .search-dd-products {
    padding: 18px 22px;
}

#search_widget .search-dd-product {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 9px 6px;
    border-radius: 8px;
}

#search_widget .search-dd-product:hover {
    background: var(--gray-100);
}

#search_widget .search-dd-product-img {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
}

#search_widget .search-dd-product-img img {
    width: 100%;
    height: 100%;
    padding: 4px;
    object-fit: contain;
}

/* Produit sans photo. */
#search_widget .search-dd-product-img.placeholder {
    background: repeating-linear-gradient(135deg, var(--gray-100), var(--gray-100) 4px, var(--gray-200) 4px, var(--gray-200) 8px);
}

#search_widget .search-dd-product-info {
    flex: 1;
    min-width: 0;
}

/* En bloc : dans la maquette, ces <span> en ligne mettaient la catégorie à la
   suite du nom, alors que son margin-top la veut dessous. */
#search_widget .search-dd-product-name {
    display: block;
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
}

#search_widget .search-dd-product-cat {
    display: block;
    margin-top: 2px;
    font-size: .72rem;
    color: var(--gray-500);
}

#search_widget .search-dd-product-price {
    flex-shrink: 0;
    font-size: .84rem;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
}

#search_widget .search-dd-empty {
    padding: 34px 22px;
    text-align: center;
}

#search_widget .search-dd-products .search-dd-empty {
    padding: 20px 4px;
}

#search_widget .search-dd-empty svg {
    width: 30px;
    height: 30px;
    margin-bottom: 10px;
    color: var(--gray-200);
}

#search_widget .search-dd-empty p {
    margin: 0;
    font-size: .85rem;
    color: var(--gray-500);
}

/* Tablette : la barre rétrécit (360px, puis 300px) et le panneau calé sur elle
   ne laisse plus de place aux noms de produits (la maquette n'est dessinée
   qu'en desktop). Il s'ancre à la rangée du header, sur sa largeur utile
   (padding du .container). */
@media (min-width: 481px) and (max-width: 1024px) {
    #header .header-top {
        position: relative;
    }

    #header #search_widget {
        position: static;
    }

    #header #search_widget .search-dropdown {
        top: 100%;
        left: 20px;
        right: 20px;
    }
}

@media (min-width: 481px) and (max-width: 767px) {
    #header #search_widget .search-dropdown {
        left: 16px;
        right: 16px;
    }
}

@media (max-width: 640px) {
    /* Champ de l'état « aucun résultat », en pleine largeur : pas de débord. */
    #search_widget .search-dropdown {
        left: 0;
        right: 0;
    }

    #search_widget .search-dd-results {
        grid-template-columns: minmax(0, 1fr);
    }

    #search_widget .search-dd-suggestions {
        border-right: 0;
        border-bottom: 1px solid var(--gray-200);
    }
}

/* Barre ouverte par la loupe (.is-open, en absolu sous le header) : le panneau
   la suit sur toute la largeur de l'écran. */
@media (max-width: 480px) {
    /* 180px : bandeau + rangée du header + barre ouverte (~155px, plus si le
       bandeau passe sur deux lignes). Sans ça, 75vh dépasse le bas de l'écran
       sur les petits téléphones et la fin du panneau devient inaccessible. */
    #header .search-bar.is-open .search-dropdown {
        top: 100%;
        left: 0;
        right: 0;
        max-height: calc(100vh - 180px);
        max-height: calc(100dvh - 180px);
        border-width: 1px 0;
        border-radius: 0;
    }
}

/* ── Newsletter (refonte.html) ── */
.newsletter-section {
    background: var(--primary, #0a1628) url('../img/newsletter-bg.jpg') center/cover no-repeat;
    padding: 60px 0;
    position: relative;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 22, 40, 0.72);
}

.newsletter-section .newsletter-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.newsletter-section .newsletter-text h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.newsletter-section .newsletter-text p {
    font-size: .9rem;
    color: rgba(255, 255, 255, .7);
    line-height: 1.6;
    margin: 0;
}

.newsletter-section .newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 420px;
}

.newsletter-section .newsletter-form form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-section .input-row {
    display: flex;
    gap: 12px;
}

.newsletter-section .newsletter-form input[type="email"] {
    flex: 1;
    padding: 13px 20px;
    border-radius: var(--radius, 8px);
    border: 1.5px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .1);
    font-family: "Arial";
    color: #fff;
    font-size: .92rem;
    outline: none;
    min-height: auto;
    height: auto;
    box-shadow: none;
}

.newsletter-section .newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, .45);
}

.newsletter-section .newsletter-form input[type="email"]:focus {
    border-color: rgba(255, 255, 255, .6);
}

.newsletter-section .btn-subscribe {
    background: var(--accent, #e85d04);
    color: #fff;
    padding: 13px 26px;
    border-radius: var(--radius, 8px);
    font-weight: 700;
    font-size: .9rem;
    white-space: nowrap;
    transition: opacity .2s;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
}

.newsletter-section .btn-subscribe:hover {
    opacity: .85;
}

.newsletter-section .newsletter-hint {
    font-size: .72rem;
    color: rgba(255, 255, 255, .45);
    display: flex;
    align-items: center;
    gap: 6px;
}

.newsletter-section .newsletter-alert {
    margin: 0;
    font-size: .82rem;
}

.newsletter-section #gdpr_consent {
    font-size: .72rem;
    color: rgba(255, 255, 255, .7);
}

.newsletter-section #gdpr_consent .custom-checkbox input[type="checkbox"] + span {
    border-color: rgba(255, 255, 255, .5);
}

@media (max-width: 860px) {
    .newsletter-section .newsletter-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .newsletter-section .newsletter-form {
        min-width: unset;
    }
}

@media (max-width: 480px) {
    .newsletter-section {
        padding: 36px 0;
    }

    .newsletter-section .newsletter-text h2 {
        font-size: 1.25rem;
    }

    .newsletter-section .input-row {
        flex-direction: column;
    }
}

/* ── Footer (refonte.html) ── */
.footer {
    background: #0e1c2f;
    color: #fff;
    padding: 56px 0 40px;
    border-top: none;
}

.footer .footer-grid {
    display: grid;
    grid-template-columns: 260px repeat(4, 1fr);
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.footer .footer-brand p {
    font-size: .82rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, .7);
    margin: 0 0 20px;
}

.footer .social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer .social-link {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background .2s;
    text-decoration: none;
    font-size: 15px;
    line-height: 1;
}

.footer .social-link:hover {
    background: var(--accent, #e85d04);
    color: #fff;
}

.footer .social-link span {
    display: none;
}

.footer .footer-col h4 {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #fff;
    margin: 0 0 16px;
}

.footer .footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer .footer-col li a {
    font-size: .82rem;
    color: rgba(255, 255, 255, .7);
    transition: color .2s;
    text-decoration: none;
}

.footer .footer-col li a:hover {
    color: #fff;
}

.footer .footer-bottom {
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer .footer-bottom p {
    font-size: .75rem;
    color: rgba(255, 255, 255, .45);
    margin: 0;
}

@media (max-width: 860px) {
    .footer .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer .footer-brand {
        grid-column: auto;
    }

    .footer .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

/* ── Étoiles des notes Google (accueil, module lggooglereviews) ──
   Cinq étoiles peintes d'un coup : un masque en étoile sur un dégradé à arrêt net (--store-rating-fill = note / 5).
   Variables : --store-star (or de la maquette), --store-star-empty, --store-star-size. */
.store-rating-stars {
    --store-rating-fill: 0%;
    display: inline-block;
    flex-shrink: 0;
    width: calc(var(--store-star-size, 16px) * 5);
    height: var(--store-star-size, 16px);
    background: linear-gradient(90deg, var(--store-star, #f4a800) var(--store-rating-fill), var(--store-star-empty, var(--gray-200)) var(--store-rating-fill));
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") 0 0 / var(--store-star-size, 16px) var(--store-star-size, 16px) repeat-x;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") 0 0 / var(--store-star-size, 16px) var(--store-star-size, 16px) repeat-x;
}

/* ── Accueil : avis clients des boutiques (module lggooglereviews, refonte.html « Reviews ») ── */
.store-reviews {
    padding: 50px 0;
    background: #f9fafb;
}

/* Le hook displayHome est rendu dans le .container de la page (padding 40 / 28 / 20 / 16px, voir theme.css) :
   des marges négatives égales à ce padding donnent un fond pleine largeur, le .container interne
   recentre le contenu. Au-delà de 1400px le conteneur est plafonné et centré : on y ajoute la moitié de
   l'écart restant (100vw compte la barre de défilement, le surplus de quelques px est rogné par le body). */
.page-home .store-reviews {
    margin-left: -40px;
    margin-right: -40px;
}

@media (min-width: 1401px) {
    .page-home .store-reviews {
        margin-left: calc(-40px - (100vw - 1400px) / 2);
        margin-right: calc(-40px - (100vw - 1400px) / 2);
    }
}

@media (max-width: 1280px) {
    .page-home .store-reviews {
        margin-left: -28px;
        margin-right: -28px;
    }
}

@media (max-width: 1024px) {
    .page-home .store-reviews {
        margin-left: -20px;
        margin-right: -20px;
    }
}

@media (max-width: 767px) {
    .page-home .store-reviews {
        margin-left: -16px;
        margin-right: -16px;
    }
}

.store-reviews-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 20px;
}

.store-reviews-title {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-color);
    margin: 0;
}

.store-reviews-nav {
    display: flex;
    gap: 8px;
}

.store-reviews-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 50%;
    color: var(--text-color);
    cursor: pointer;
    transition: border-color .2s, color .2s;
}

.store-reviews-arrow:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

.store-reviews-arrow:disabled {
    opacity: .4;
    cursor: default;
}

.store-reviews-inner {
    display: flex;
    gap: 52px;
    align-items: flex-start;
}

.store-reviews-summary {
    flex-shrink: 0;
    min-width: 190px;
}

.store-reviews-score {
    font-size: 3.4rem;
    font-weight: 900;
    color: var(--text-color);
    line-height: 1;
    margin-bottom: 10px;
}

.store-reviews-summary .store-rating-stars {
    --store-star-size: 20px;
}

.store-reviews-based {
    font-size: .75rem;
    color: var(--gray-500);
    margin-top: 6px;
}

/* Rail à défilement natif (comme la galerie de la fiche produit) : quatre avis visibles. */
.store-reviews-track {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 60px) / 4);
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}

.store-reviews-track::-webkit-scrollbar {
    display: none;
}

.store-reviews-track:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.store-review-card {
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}

.store-review-card .store-rating-stars {
    --store-star-size: 14px;
    margin-bottom: 8px;
}

.store-review-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    overflow: hidden;
    font-size: .82rem;
    line-height: 1.6;
    color: #444;
    margin: 0 0 12px;
}

.store-review-author {
    margin-top: auto;
    font-size: .75rem;
    font-weight: 700;
    color: var(--primary);
}

.store-review-author a {
    color: inherit;
    text-decoration: none;
}

.store-review-author a:hover {
    text-decoration: underline;
}

.store-review-place {
    font-weight: 500;
    color: var(--gray-500);
}

@media (max-width: 1100px) {
    .store-reviews-track {
        grid-auto-columns: calc((100% - 40px) / 3);
    }
}

@media (max-width: 768px) {
    .store-reviews-inner {
        flex-direction: column;
        gap: 24px;
        align-items: stretch;
    }

    .store-reviews-track {
        grid-auto-columns: calc((100% - 20px) / 2);
    }
}

@media (max-width: 480px) {
    .store-reviews {
        padding: 36px 0;
    }

    .store-reviews-nav {
        display: none;
    }

    .store-reviews-summary {
        display: flex;
        align-items: center;
        gap: 16px;
        min-width: 0;
    }

    .store-reviews-score {
        margin-bottom: 0;
    }

    .store-reviews-track {
        grid-auto-columns: 85%;
    }
}

/* ── Breadcrumb (refonte) ── */
#wrapper .breadcrumb {
  padding: 20px 0 4px;
  background: transparent;
  margin-bottom: 0;
  font-size: .78rem;
  color: var(--gray-500);
  line-height: 1.4;
  border-radius: 0;
}

#wrapper .breadcrumb[data-depth="1"] { display: none; }

#wrapper .breadcrumb ol {
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}

#wrapper .breadcrumb li {
  display: inline;
  font-size: .78rem;
  font-weight: 400;
  color: var(--gray-500);
}

#wrapper .breadcrumb li:after {
  content: '/';
  font-family: inherit;
  font-size: inherit;
  font-weight: 400;
  margin: 0 5px;
  color: var(--gray-200);
  vertical-align: baseline;
}

#wrapper .breadcrumb li:last-child {
  margin: 0;
  font-weight: 600;
  color: #1a1a1a;
}

#wrapper .breadcrumb li:last-child:after {
  content: '';
  margin: 0;
}

#wrapper .breadcrumb li .current {
  color: #1a1a1a;
  font-weight: 600;
}

#wrapper .breadcrumb li a {
  font-weight: 400;
  color: var(--gray-500);
  text-decoration: none;
  transition: color .2s;
}

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

@media screen and (max-width: 767px) {
  #wrapper .breadcrumb { padding: 16px 0 4px; }
}

/* Fil d'Ariane replié sur mobile (> 3 niveaux) : Accueil / … / dernier élément.
   Le bouton « … » déplie tout (.is-expanded posé par theme.js). */
#wrapper .breadcrumb .breadcrumb-more { display: none; }

@media screen and (max-width: 767px) {
  #wrapper .breadcrumb.is-collapsible:not(.is-expanded) li.breadcrumb-mid { display: none; }
  #wrapper .breadcrumb.is-collapsible:not(.is-expanded) li.breadcrumb-more { display: inline; }
  #wrapper .breadcrumb .breadcrumb-more-btn {
    margin: -12px -6px;
    padding: 12px 5px;
    background: none;
    border: 0;
    font: inherit;
    line-height: 1;
    color: var(--gray-500);
    cursor: pointer;
  }
  #wrapper .breadcrumb .breadcrumb-more-btn:hover,
  #wrapper .breadcrumb .breadcrumb-more-btn:focus-visible { color: var(--primary); }
}

/* ── Modale ajout panier (maquette_produit.html, .cart-modal) ──
   Markup : themes/hotmer/modules/ps_shoppingcart/modal.tpl. La structure Bootstrap
   (#blockcart-modal.modal > .modal-dialog > .modal-content) est conservée pour le JS ;
   ce bloc neutralise les règles Bootstrap 3 de theme.css. La transition
   d'ets_crosssell (.modal-content en scale(0) tant que .loaded_crossell est absent)
   n'est pas touchée. */
body:has(#blockcart-modal.in) .modal-backdrop.in {
    background: #0a1628;
    opacity: .55;
}

#blockcart-modal .cart-modal-dialog {
    max-width: 660px;
    margin: 30px auto;
    display: flex;
    align-items: center;
    min-height: calc(100% - 60px);
}

#blockcart-modal .cart-modal {
    width: 100%;
    padding: 32px;
    border: none;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}

#blockcart-modal .cart-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    float: none;
    border-radius: 50%;
    color: var(--gray-500);
    opacity: 1;
    text-shadow: none;
    transition: background .2s;
}

#blockcart-modal .cart-modal-close svg {
    width: 16px;
    height: 16px;
}

#blockcart-modal .cart-modal-close:hover {
    background: var(--gray-100);
    color: #1a1a1a;
}

#blockcart-modal .cart-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 22px;
    padding: 0 30px 0 0;
    border: none;
}

#blockcart-modal .cart-modal-check {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e8f7ee;
    color: var(--success);
}

#blockcart-modal .cart-modal-check svg {
    width: 22px;
    height: 22px;
}

#blockcart-modal .cart-modal-header .modal-title {
    display: block;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.3;
    color: #1a1a2e;
}

#blockcart-modal .cart-modal-subtitle {
    display: block;
    font-size: .8rem;
    color: var(--gray-500);
}

#blockcart-modal .cart-modal-body {
    padding: 0;
}

#blockcart-modal .cart-modal-product {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px;
    margin-bottom: 18px;
    background: #f9fafb;
    border-radius: var(--radius);
}

#blockcart-modal .cart-modal-product-img {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    object-fit: contain;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
}

#blockcart-modal .cart-modal-product-info {
    min-width: 0;
}

#blockcart-modal .cart-modal-product-brand {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--gray-500);
}

#blockcart-modal .cart-modal-product-name {
    margin: 3px 0 6px;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.25;
    color: #1a1a1a;
}

#blockcart-modal .cart-modal-product-variant {
    margin-bottom: 8px;
    font-size: .84rem;
    color: var(--gray-500);
}

#blockcart-modal .cart-modal-product-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
}

#blockcart-modal .cart-modal-product-qty {
    font-size: .84rem;
    font-weight: 600;
    color: var(--gray-500);
}

#blockcart-modal .cart-modal-summary {
    margin: 0;
    display: none;
}

#blockcart-modal .cart-modal-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 3px 2px;
    font-size: .82rem;
    color: var(--gray-500);
}

#blockcart-modal .cart-modal-summary dt,
#blockcart-modal .cart-modal-summary dd {
    margin: 0;
    font-weight: 600;
}

#blockcart-modal .cart-modal-summary dd {
    color: #1a1a1a;
    text-align: right;
    white-space: nowrap;
}

#blockcart-modal .cart-modal-summary-total {
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid var(--gray-200);
    font-size: .9rem;
}

#blockcart-modal .cart-modal-summary-total dt,
#blockcart-modal .cart-modal-summary-total dd {
    font-weight: 800;
    color: #1a1a1a;
}

/* Recommandations « Complète ton équipement » : bloc ets_crosssell
   (added_popup_page / purchasedtogether) injecté à la fin de .modal-body.
   L'onglet unique sert de titre ; le carrousel slick du module est conservé
   (front.js rappelle ets_crosssell_slide() juste après l'injection). */
#blockcart-modal .ets_crosssell_block {
    margin-top: 22px;
}

#blockcart-modal .ets_crosssell_nav_tabs {
    margin: 0 0 12px;
    padding: 0;
    border: none;
    background: none;
}

#blockcart-modal .ets_crosssell_nav_tabs li a {
    padding: 0;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gray-500);
}

/* Un seul onglet : c'est un titre, pas une navigation. */
#blockcart-modal .ets_crosssell_nav_tabs li:only-child a {
    pointer-events: none;
}

#blockcart-modal .ets_crosssell_tab_content {
    margin: 0;
}

/* ets_crosssell (front.css) : `.ets_crosssell_block .featured-products { margin: 0 -8px }`
   faisait déborder la grille de 8px de chaque côté de la modale, et
   `.slick-list { padding: 5px 0 20px }` ajoutait du vide sous les cartes. */
#blockcart-modal .ets_crosssell_block .featured-products {
    margin: 0;
}

#blockcart-modal .ets_crosssell_block .slick-list {
    padding: 0;
}

/* Repli AVANT l'initialisation de slick — et rendu définitif si l'onglet est
   configuré en grille côté BO (le wrapper n'a alors pas la classe .layout-slide
   et front.js ne l'initialise jamais). Ne cible que `:not(.slick-slider)` :
   une fois slick initialisé, c'est lui qui pilote la mise en page. */
#blockcart-modal .crosssell_product_list_wrapper:not(.slick-slider) {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

#blockcart-modal .crosssell_product_list_wrapper:not(.slick-slider) > .product {
    width: auto;
    height: auto;
    float: none;
    margin: 0;
    padding: 0;
}

/* Carrousel initialisé. Ne rien forcer sur .slick-track (largeur + transform
   calculés par slick, ::before/::after = son clearfix pour les slides flottées)
   ni sur la largeur de .slick-slide (style inline posé par slick) : c'est ce
   qui figeait le défilement. Gouttière de 10px via le padding des slides,
   compensée sur .slick-list. */
#blockcart-modal .crosssell_product_list_wrapper.slick-slider {
    margin: 0;
}

#blockcart-modal .crosssell_product_list_wrapper .slick-list {
    margin: 0 -5px;
    padding: 0;
}

/* Track en flex : les slides flottées donnent des cartes de hauteurs inégales
   (.product-card { height: 100% } ne résout à rien sur un parent auto). En flex
   elles s'étirent. La largeur et le transform du track restent ceux de slick ;
   `flex: 0 0 auto` garantit que la largeur inline des slides n'est pas rognée. */
#blockcart-modal .crosssell_product_list_wrapper .slick-track {
    display: flex;
    align-items: stretch;
}

/* Clearfix de slick.css, inutile dès lors que le track est en flex — et qui y
   deviendrait deux faux items. */
#blockcart-modal .crosssell_product_list_wrapper .slick-track::before,
#blockcart-modal .crosssell_product_list_wrapper .slick-track::after {
    display: none;
}

#blockcart-modal .crosssell_product_list_wrapper .slick-slide {
    flex: 0 0 auto;
    height: auto;
    padding: 0 5px;
    margin: 0;
}

#blockcart-modal .ets_crosssell_block .product-card {
    height: 100%;
    margin: 0;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: border-color .2s;
}

#blockcart-modal .ets_crosssell_block .product-card:hover {
    border-color: var(--primary);
    box-shadow: none;
    transform: none;
}

#blockcart-modal .ets_crosssell_block .product-card .product-img {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    aspect-ratio: auto;
    margin: 0 auto 8px;
    background: #f9fafb;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
}

#blockcart-modal .ets_crosssell_block .product-card .product-thumbnail img {
    padding: 6px;
    transform: none;
}

#blockcart-modal .ets_crosssell_block .product-card .product-flags,
#blockcart-modal .ets_crosssell_block .product-card .product-brand,
#blockcart-modal .ets_crosssell_block .product-card .price-old,
#blockcart-modal .ets_crosssell_block .product-card .product-stock-popover,
#blockcart-modal .ets_crosssell_block .product-card .product-stock-toggle {
    display: none;
}

#blockcart-modal .ets_crosssell_block .product-card .product-info {
    flex: 1;
    width: 100%;
    padding: 0;
    align-items: center;
    text-align: center;
    display: flex;
    flex-direction: column;
}

/* Cross-sell : déclinaisons + ajout rapide (modale ajout panier + bloc panier) */
.ets_crosssell_block .crosssell_product_list_wrapper .product-card:has(.cart-modal-reco-atc) .product-miniature-meta {
    display: none;
}

.ets_crosssell_block .crosssell_product_list_wrapper .cart-modal-reco-atc {
    width: 100%;
    margin-top: auto;
}

.ets_crosssell_block .crosssell_product_list_wrapper .cart-modal-reco-atc .ets-cs-atc-form {
    width: 100%;
    margin: 0;
}

.ets_crosssell_block .crosssell_product_list_wrapper .cart-modal-reco-add {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    margin-top: 8px;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: .66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: 7px 8px;
    border-radius: 6px;
    transition: background .2s;
    cursor: pointer;
    line-height: 1.2;
}

.ets_crosssell_block .crosssell_product_list_wrapper .cart-modal-reco-add:hover:not(:disabled) {
    background: var(--accent);
}

.ets_crosssell_block .crosssell_product_list_wrapper .cart-modal-reco-add:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.ets_crosssell_block .crosssell_product_list_wrapper .cart-modal-reco-add.added {
    background: var(--success);
    pointer-events: none;
}

.ets_crosssell_block .crosssell_product_list_wrapper .cart-modal-reco-atc .ets-cs-product-variants {
    width: 100%;
    margin-top: 6px;
}

.ets_crosssell_block .crosssell_product_list_wrapper .cart-modal-reco-atc .ets-cs-variant-label {
    display: none;
}

/* Modale : selects compacts (spécificité id pour battre .form-control du thème) */
#blockcart-modal #added_popup_page-purchasedtogether .cart-modal-reco-atc .form-control-select,
#blockcart-modal #added_popup_page-purchasedtogether .cart-modal-reco-atc .ets-cs-size-wrap select,
#blockcart-modal #added_popup_page-purchasedtogether .cart-modal-reco-atc .ets-cs-color-wrap select,
#blockcart-modal #added_popup_page-purchasedtogether .cart-modal-reco-atc .ets-cs-combo-select {
    width: 100%;
    min-width: initial;
    height: auto;
    min-height: 0;
    line-height: 1.25;
    font-size: .65rem;
    padding: 4px 6px;
    margin-bottom: 4px;
    border-radius: 6px;
    border: 1px solid var(--gray-200);
    background-color: #fff;
}

#blockcart-modal #added_popup_page-purchasedtogether .cart-modal-reco-add {
    padding: 7px 8px;
    font-size: .66rem;
    min-height: 0;
}

/* Page panier : selects lisibles + bouton plus haut */
#cart .ets_crosssell_block .crosssell_product_list_wrapper.cart_page .cart-modal-reco-atc .form-control-select,
#cart .ets_crosssell_block .crosssell_product_list_wrapper.cart_page .cart-modal-reco-atc .ets-cs-size-wrap select,
#cart .ets_crosssell_block .crosssell_product_list_wrapper.cart_page .cart-modal-reco-atc .ets-cs-color-wrap select,
#cart .ets_crosssell_block .crosssell_product_list_wrapper.cart_page .cart-modal-reco-atc .ets-cs-combo-select {
    width: 100%;
    min-width: initial;
    height: auto;
    min-height: 0;
    line-height: 1.3;
    font-size: .72rem;
    padding: 8px 10px;
    margin-bottom: 6px;
    border-radius: 6px;
    border: 1px solid var(--gray-200);
    background-color: #fff;
}

#cart .ets_crosssell_block .crosssell_product_list_wrapper.cart_page .cart-modal-reco-add {
    min-height: 42px;
    padding: 10px 12px;
    font-size: .72rem;
}

#blockcart-modal .ets_crosssell_block .product-card .product-name {
    min-height: 2.5em;
    margin: 0 0 3px;
    font-size: .7rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
}

#blockcart-modal .ets_crosssell_block .product-card .product-name a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #1a1a1a;
}

#blockcart-modal .ets_crosssell_block .product-card .product-prices {
    justify-content: center;
}

#blockcart-modal .ets_crosssell_block .product-card .price-new {
    font-size: .76rem;
    font-weight: 800;
}

/* Actions */
#blockcart-modal .cart-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    padding: 0;
    border: none;
}

#blockcart-modal .cart-modal-actions > * {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin: 0;
    text-align: center;
}

/* theme.css pose text-transform: uppercase sur .btn-primary. */
#blockcart-modal .cart-modal-actions .btn-primary {
    text-transform: none;
}

@media (max-width: 575px) {
    #blockcart-modal .cart-modal-dialog {
        margin: 16px;
        min-height: calc(100% - 32px);
    }

    #blockcart-modal .crosssell_product_list_wrapper:not(.slick-slider) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    #blockcart-modal .cart-modal {
        padding: 22px;
    }

    /* Nom et déclinaison passent sur plusieurs lignes : vignette calée en haut. */
    #blockcart-modal .cart-modal-product {
        align-items: flex-start;
        gap: 14px;
        padding: 14px;
    }

    #blockcart-modal .cart-modal-product-name {
        font-size: 1rem;
    }

    #blockcart-modal .cart-modal-product-img {
        width: 72px;
        height: 72px;
    }

    #blockcart-modal .cart-modal-actions {
        flex-direction: column;
    }
}

/* ── Correctifs de la prod depuis juin 2026 (CLS, bandeau, H1 accueil) ──
   Repris tels quels ; à rapprocher du nouveau balisage au fil des pages. */
/* ===== CLS / Core Web Vitals ===== */

/* Product listing cards */
.product-miniature .img_product .product-thumbnail {
    aspect-ratio: 1 / 1;
    display: block;
}
.product-miniature .img_product .product-thumbnail img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
}

/* Product cover */
.product-cover .img-cover > div {
    aspect-ratio: 1 / 1;
}
.product-cover .img-cover img,
.product-cover .js-qv-product-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
}

/* Home slider: keep height driven by image intrinsic ratio (width/height attrs) */
.carousel .carousel-item {
    height: auto;
}
.carousel .carousel-item figure {
    margin: 0;
    line-height: 0;
}
.carousel .carousel-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* CMS Mag cards */
.itr_settingsblog .item_cmspage > a,
.itr_settings-category .item_cmspage > a {
    padding-top: 0 !important;
    min-height: 220px;
    aspect-ratio: 16 / 10;
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.itr_settingsblog .img_cmspage,
.itr_settings-category .img_cmspage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Brands carousel */
#search_filters_brands .owl-carousel,
.brands-carousel.owl-carousel {
    min-height: 98px;
}
#search_filters_brands .owl-carousel img,
.brands-carousel.owl-carousel img {
    width: 98px;
    height: 98px;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Banner & reassurance */
.banner img.img-fluid {
    width: 100%;
    height: auto;
    aspect-ratio: 1110 / 214;
    display: block;
}
#block-reassurance img {
    width: 1.563rem;
    height: 1.563rem;
    object-fit: contain;
    flex-shrink: 0;
}

/* Cross-sell / packs */
.ets_cs_product_image {
    width: 125px;
    height: 125px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
}
.pack-product-container .mask img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    display: block;
}

/* Sticky header spacer (avoids layout shift on scroll) */
#fixedheader-spacer {
    display: block;
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    pointer-events: none;
}
body.omg_im_fixed {
    padding-top: 0 !important;
}

/* Floating widgets: keep out of document flow */
.viewandclick-bug-launcher,
.grecaptcha-badge {
    position: fixed !important;
}

/* Homepage H1 — same typography as section titles (.title_block) */
#index h1.homepage-h1.title_block {
    font-size: 24px;
    font-weight: 400;
    line-height: 42px;
    margin-top: 0;
    text-transform: none;
    border-bottom: 1px solid var(--brand-primary);
    padding-bottom: 5px;
}

#index .homepage-cta-cats {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    margin: 0 0 30px;
}

#index .homepage-cta-cats .btn-primary {
    margin: 0;
}
