/* CUSTOM RESPONSIVE  */
@media screen and (max-width: 420px) {
    body, html {
        max-width: 100vw;
        overflow-x: hidden;
    }
    .header-info {
        font-size: 13px;
    }
    #search_widget form input {
        padding: 8px 12px 8px 40px;
    }
    #search_widget form i {
        padding: 12px .5rem;
    }
    .info-row {
        margin: 0 0 18px 0;
    }
    .header-tools-left {
        align-items: flex-start;
    }
    .header-tools-right, .header-tools-left {
        display: block;
    }
    #search_widget {
        width: 90%;
        margin: 24px auto 12px auto;
    }
    .top-contact {
        margin: 0px 12px 0 5%;
        display: inline-flex;
        max-width: 60px;
        float: left;
    }
    #_desktop_user_info {
        margin: 0px 12x;
        display: inline-flex;
        min-width: 60px;
        float: left;
        width: fit-content;
    }
    #_desktop_cart-active,
    #_desktop_cart-inactive {
        margin: 0px 12x;
        display: inline-flex;
        min-width: 60px;
        float: left;
    }
    #slider-container {
        display: grid;
        grid-template-columns: 100%;
        gap: 0;
    }
    .product-selection {
        height: fit-content;
        border-radius: 6px;
    }
    #custom-text .title_cat {
        line-height: 23px;
    }
    .title_cat span {
        background-color: rgba(0,0,0,0.065);
    }
    .carousel {
        padding-bottom: 0;
    }
    .carousel-inner {
        margin-bottom: 0;
    }
    .title_cat span {
        background-color: transparent;
    }
    .featured-products {
        max-width: 100vw;
        margin: 0 auto;
    }
    .featured-products .products {
        display: grid;
        grid-template-columns: 1FR 1FR;
        grid-auto-flow: row;
        gap: 12px;
        max-width: 90vw;
        margin: 0 auto;
        float: none;
    }
    .right-focus {
        float: none;
        margin: 24px auto;
        max-width: 90vw;
        width: 100vw;
        height: fit-content;
        border: 1px solid #dad8d8;
        padding: 12px;
        border-radius: 6px;
        background-color: white;
        text-align: center;
    }
    .blocpdf {
        aspect-ratio: in;
        background-size: cover;
    }
    .blocpdf a {
        text-align: left;
    }
    .blocpdf span {
        font-size: 19px;
    }
    .detail {
        float: none;
        width: 100%;
        text-align: center;
    }
    .imagesprod {
        float: none;
        width: 100%;
        margin: 0 auto;
        text-align: center;
    }
    .title_cat {
        margin: 6px auto 18px auto;
    }
    #featured_categories {
        max-width: 90%;
        margin: 0 auto;
    }
    .featured_categories_list {
        display: grid;
        grid-template-columns: 100%;
        grid-auto-flow: row;
        gap: 24px;
        max-width: 100%;
        margin: 0 auto;
    }
    .fcl-item:first-child {
        aspect-ratio: 1/1;
    }
    .item-one {
        grid-column: 1;
        display: grid;
        grid-template-columns: 100%;
        grid-auto-flow: row;
        gap: 24px;
    }
    .reassurance-grid {
        max-width: 1280px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-auto-flow: row;
        gap: 12px;
        text-align: center;
        font-weight: 900;
        color: black;
        margin: 0 auto 18px auto;
    }
    #reassurance-row {
        padding: 22px 0 0 0;
        background-color: #eeeeee;
    }
    #prez-container {
        max-width: 90vw;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1FR;
        gap: 24px;
    }
    .prez-content-open {
        max-height: 2500px;
        transition: max-height 1s ease;
    }
    .left-focus-categ {
        display: none;
    }
    #subcategories {
        max-width: 90%;
        margin: 0 auto;
    }
    #subcategories ul {
        margin: 0 0 0 -10px;
        display: grid;
        grid-template-columns: 100%;
        gap: 12px;
        grid-auto-flow: row;
    }
    #products {
        color: #656565;
        max-width: 90%;
        margin: 12px auto 0 auto;
    }
    .products {
        gap: 6px;
    }
    .js-product {
        padding: 0;
        height: fit-content;
        border: 1px solid #d8d8d8;
        overflow: hidden;
        border-radius: 6px;
        transition: all 0.3s ease-in-out;
    }
    #category .js-product {
        max-width: 49%;
    }
    .tabs {
        padding: 0;
        /* margin-top: 2rem; */
        background: #fff;
    }
    .table-product-discounts {
        font-size: 3.3vw;
    }
    .footer-container .links ul > li {
        padding: 3px 0;
        font-weight: 600;
        border-bottom: 1px solid #fff;
        max-width: 90%;
        margin: 0 auto;
    }
    .footer-container .links ul {
        margin-bottom: 0;
        background-color: #f6f6f6;
        padding-bottom: 12px;
    }
    .block-contact, .footer-container li a {
        font-size: 1rem;
    }
    .cms-page-link::before, .custom-page-link::before {
        content: none !important;
    }
    #module-faqs-display .col-sm-3, #module-faqs-display .col-xs-12 {
        max-width: 90% !important;
        margin: 0 auto 24px auto;
        display: block;
        float: none;
    }
    .block-faq-left-column {
        margin-bottom: 0.25rem;
    }
    .block-category h1 {
        margin-bottom: 1rem;
        font-size: 6vw;
    }
    .st_mega_menu_container {
        display: none;
    }
    #index #wrapper {
        padding-top: 0;
    }
}

@media screen and (min-width: 421px) and (max-width: 1024px) {
    .featured_categories_list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-auto-flow: row;
        gap: 24px;
        margin-bottom: 0;
        max-width: 90%;
        margin: 0 auto;
    }
    .fcl-item:first-child {
        aspect-ratio: auto;
        width: 100%;
        height: auto;
        text-align: left;
    }
    .item-one {
        grid-column: 1 / span 2;
        display: grid;
        grid-template-columns: 30% 1FR;
        gap: 24px;
    }
    .fcl-item:not(:first-child) {
        aspect-ratio: auto;
        width: 100%;
        height: auto;
    }
    .fcl-item:first-child .imagecatlarge {
        aspect-ratio: 1/1;
        height: auto;
        width: auto;
    }
    #prez-container {
        max-width: 90%;
        margin: 0 auto;
    }
    .featured-products .products {
        grid-template-columns: repeat(3, 1fr);
        max-width: 70%;
    }
    .right-focus {
        max-width: 28%;
    }
    .product-selection {
        box-shadow: 0 0 5px #706f6f;
        overflow: hidden;
        padding: 6px;
        height: auto;
        position: relative;
        background: white;
        border-radius: 6px;
    }
    .product-selection h3 {
        text-transform: uppercase;
        font-size: 15px;
        text-align: center;
        color: #2F2F30;
        margin: 0 0 6px 0;
    }
    .title_cat span {
        display: inline-block;
        background-color: transparent;
        padding: 0 12px;
        line-height: 20px;
    }
    .bloctitle, .product-selection .detail, .product-selection .description {
        display: none;
    }
    #left-column {
        margin: 0 16px 0 0;
        box-shadow: 0 2px 16px rgba(0,0,0,0.065);
        border-radius: 6px;
        padding: 15px;
        background: white;
    }
    .st_mega_menu li:not(#st_menu_12) .ma_level_0:after {
        content: "";
        width: 2px;
        height: 48px;
        background-color: rgba(256,256,256,0.25);
        display: inline-block;
        position: absolute;
        margin: -24px 0px 0 6px;
    }

}

/* PHUK 2026-11-27 — Sélecteur de devise au style EXACT de STUK, sur sa propre ligne AU-DESSUS de la recherche et des boutons
   contact / compte / panier (demande de l'utilisateur). Remplace le bloc du 17/11 de custom.css (« Currency: » sur deux lignes
   + menu déroulant), retiré. Gabarit : modules/ps_currencyselector/ps_currencyselector.tpl de STUK (thème panda).
   Ici et non dans custom.css : custom.css est servi sans numéro de version (7 jours de cache navigateur) ; responsive.css est
   appelé par head.tpl avec ?v=… -> les visiteurs qui ont encore l'ancien custom.css en cache reçoivent quand même ces règles,
   chargées après lui, qui neutralisent l'ancien bloc (order, flex-direction, marges, règles ≤ 575 px).
   Avant : var/claude-20261127/devise-stuk-avant/. */

/* 1. Règles de STUK (custom.css du thème panda, bloc « Currency switch »), valeurs recopiées telles quelles, police comprise ;
      sélecteurs préfixés par #header pour passer devant les règles #header … du thème phospho et l'ancien bloc. */
#header .currency-switch {
    display: inline-flex;
    flex-direction: row;
    justify-content: normal;
    align-items: center;
    gap: 8px;
    font-family: Open-sans, apple-system, sans-serif;
    font-size: 14px;
    font-weight: normal;
    line-height: 1;
    margin: 0;
    padding: 0;
}
#header .currency-switch .currency-selector-label {
    color: #33b2e7;
    font-weight: normal;
    margin: 0;
}
#header .currency-switch-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
}
#header .currency-switch-list li:last-child .currency-switch-link {
    border-radius: 0 12px 12px 0;
}
#header .currency-switch-item {
    margin: 0;
    padding: 0;
}
#header .currency-switch-link {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid transparent;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
#header .currency-switch-item:not(.is-current) .currency-switch-link {
    color: #631990;
    border-color: transparent;
}
#header .currency-switch-item:not(.is-current) .currency-switch-link:hover {
    color: #631990;
    border-color: transparent;
}
#header .currency-switch-item.is-current .currency-switch-link {
    background: #631990;
    color: white;
    font-weight: 600;
    cursor: default;
}

/* 2. Pastille blanche : sur STUK elle est portée par le conteneur #nav_right (fond blanc, rayon 22 px, retrait gauche 6 px,
      25 px de haut, devises calées en bas) ; ici par #_desktop_currency_selector. */
#header #_desktop_currency_selector {
    display: flex;
    align-items: flex-end;
    height: 23px;
    padding: 0 0 0 6px;
    background: #fff;
    border-radius: 22px;
    line-height: 21px;
    font-size: 14px;
    order: 0;
    align-self: auto;
    flex: none;
    margin: 0;
}

/* 3. Placement : ligne à part, au-dessus de la recherche et des boutons, calée à droite comme sur STUK. Hors du flux (absolu)
      pour ne pas faire passer les boutons à la ligne en tablette (rangée pleine à 800 px). 37 px = pastille 25 + écart 12. */
#header .header-tools-left {
    position: relative;
    padding-top: 37px;
}
#header .header-tools-left #_desktop_currency_selector {
    position: absolute;
    top: 0;
    right: 0;
}

/* 4. ≤ 575 px : pastille centrée sur sa ligne (comme STUK en mobile), puis la recherche sur toute la largeur, puis contact,
      compte, panier alignés à gauche (règles du 17/11 reprises, sauf le sélecteur). Pastille hors du flux ici aussi : l'en-tête
      du tunnel (/order) n'a pas de recherche, la pastille s'y rangeait sur la ligne des boutons et poussait le panier dessous.
      ≤ 420 px, responsive.css met la zone en blocs flottants : la zone reste ici en flex. */
@media screen and (max-width: 575px) {
    #header .header-tools-left {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        padding-top: 37px; /* 12 + pastille 25 ; les éléments dessous gardent leurs 12 px de marge haute */
    }
    #header .header-tools-left #_desktop_currency_selector {
        top: 12px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: max-content; /* sinon left: 50 % rétrécit la pastille et « EUR € » passe sur deux lignes */
    }
    #header .header-tools-left #search_widget {
        flex: 1 1 100%;
        min-width: 0;
        width: auto;
        margin: 12px 5% 0 5%;
        align-self: auto;
        float: none;
    }
    #header .header-tools-left .top-contact { margin: 12px 12px 0 5%; }
    #header .header-tools-left #_desktop_user_info { margin: 12px 0 0 0; } /* l'écart de 12 px est dans .user-info-login */
    #header .header-tools-left #_desktop_cart-active,
    #header .header-tools-left #_desktop_cart-inactive { margin: 12px 0 0 0; }
}

/* 5. Logo (2026-11-27 08:55, demande de l'utilisateur : « centre le logo comme sur STUK et grossis-le à 320 px de large »).
      Largeur 320 px (avant : max-width 290 px dans custom.css, règle retirée ; celle-ci passe aussi devant l'ancienne si
      custom.css est encore en cache), réduite à la largeur de sa colonne quand elle manque (tablette, petits mobiles).
      Centrage vertical comme sur STUK : son logo est centré sur la rangée recherche + boutons (la pastille y est dans une barre
      à part, au-dessus) -> ici, colonne du logo étirée à la hauteur des outils, mêmes 37 px réservés en haut, logo centré dans
      les 60 px restants. ≥ 768 px seulement (en dessous, logo et outils sont sur des lignes séparées). */
#header .logo {
    width: 320px;
    max-width: 100%;
    height: auto;
}
@media (min-width: 768px) {
    #header .brand-row { display: flex; align-items: stretch; }
    #header .brand-row::after { display: none; } /* clearfix du thème : inutile en flex */
    #header .brand-row > .col-md-4 { display: flex; align-items: center; padding-top: 37px; }
    #header #_desktop_logo { margin: 0 auto 0 0; } /* thème : -7px de marge haute */
}
