/* ============================================================
   custom.css — Surcharges visuelles pour PrestaShop 8.2 + Thème Anvanto
   Style : Thème “Beige Doré / Crème Chaud”
   Auteur : Maison Des Mèches
   ============================================================ */

/* ===========================
   🎨 Variables globales
   =========================== */
:root {
    --color-primary: #D1833F;            /* Doré chaud – Couleur principale CTA */
    --color-primary-hover: #B86A2A;      /* Doré foncé – Hover */
    --color-bg-light: #F8F3EA;           /* Crème clair – Fond principal */
    --color-bg-soft: #F3E8D8;            /* Beige poudré – Sections */
    --color-bg-card: #FFFFFF;            /* Blanc – Cartes & blocs */
    --color-text-main: #2B2B2B;          /* Noir doux */
    --color-text-muted: #7A7A7A;         /* Texte secondaire */
    --color-border-light: #E6E0D5;       /* Bordures légères */
    --color-footer-bg: #232323;          /* Fond sombre du footer */
}

/* ===========================
   🌐 Corps du site
   =========================== */
body {
    background: var(--color-bg-light) !important;
    color: var(--color-text-main);
    font-family: "Inter", sans-serif;
}

/* ===========================
   🧭 Header
   =========================== */
#header .header-nav,
#header .header-nav.tablet-h,
#header, .header-top{
    background: #000000 !important; /* Noir élégant */
}
#header a{
    color:#fff;
}

#header svg path{
    fill:#fff;
}
#header .header-top .position-static {
    background:#f3ae09;
}
.fixed-menu-container > .anav-top > .amenu-item > a:after{
    content: "⏷";
    font-weight: bold;
    margin: 0 0 0 5px;
}
#header #amegamenu.fixed-menu #_fixed_logo,
#header .fixed-menu-right{
    width:18%;
}
#header #amegamenu.fixed-menu .anav-top{
    width:64%;
}
body .an_homeproducts-products .products.row {
    margin: 0;
    gap: 27px;
}
body#products .product-miniature,
body .featured-products .product-miniature,
body .product-accessories .product-miniature,
body .product-miniature .product-miniature{
    margin:0;
    padding:0;
}

#header{
    padding-top:26px;
}
#header .header-nav .header-nav-inside{
    border:0;
}
#header .header-nav.tablet-h,
#header .header-nav {
    color:#fff;
    background:#000000!important;
}
#header .header-nav.tablet-h a,
#header .header-nav p,
#header .header-nav a{
    color:#fff;
}
#header .header-nav a{
    color:var(--color-text-main);
}
#header .displayBandeaufixed{
    position:absolute;
    bottom:0;
    left:0;
    width:100%;
    background:#fffaeb!important;
    color:#000;
}
header a,
#header .clientservice_open-modal-btn{
    color:#fff;
}
#header .header-top{
    border:0;
}
@media(min-width:991px){
    #header .header-nav .header-nav-inside{
        height:26px;
        line-height:26px;
    }
    #header .header-nav.tablet-h,
    #header .header-nav {
        position:absolute;
        top:0;
        left:0;
        width:100%;
        height:26px;
        min-height:26px;
        overflow:hidden;
    }
    #header{
        position:relative;
        padding: 0 0 80px;
    }
    #header #_desktop_logo{
        width:230px;
    }
    #header .header-right{
        flex:auto;
        width:calc(100% - 230px);
    }
    #header .header-right .search-wrapper{
        width:calc(100% - 130px);
    }
    #header .header-right .search-button{
        display:none;
    }
    #header .header-right .search-widget form button[type="submit"] svg path{
        fill:#ce4403;
    }
    #header .header-right #search_widget{
        display:block;
        position:relative;
        top:auto;
        left:auto;
        right:auto;
        bottom:auto;
        width:100%;
        background:transparent;
    }
    #header .header-top .position-static {
        position:absolute;
        bottom:35px;
        left:0;
        width:100%;
    }
    #header .header-top > .container{
        position:initial;
    }
    #header .header-center .vertical-center{
        min-height:53px;
    }
    #header .header-center #amegamenu .amenu-item .adropdown,
    #header .header-center #amegamenu{
        background:#f3ae09;
    }
    #header #amegamenu a:hover,
    #header #amegamenu a{
        color:var(--color-text-main)!important;
    }
}

/* Barre de recherche */
#search_widget input {
    border-radius: 50px !important;
}

/* ===========================
   🎯 Boutons principaux
   =========================== */
.btn-primary,
button.btn-primary,
.button-primary {
    background: var(--color-primary) !important;
    color: white !important;
    border-radius: 10px !important;
    border: none !important;
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--color-primary-hover) !important;
}

/* ===========================
   🖼️ Hero Banner
   =========================== */
.mdm-hero {
    background: var(--color-bg-soft) !important;
    border-radius: 14px;
    padding: 40px 20px;
}

/* ===========================
   🛒 Cartes Produits
   =========================== */
.product-miniature {
    background: var(--color-bg-card) !important;
    border-radius: 14px !important;
    border: 1px solid var(--color-border-light);
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    transition: 0.25s ease;
}

.product-miniature:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.10);
}

/* Prix */
.product-price {
    color: var(--color-primary) !important;
    font-weight: 700;
}
#products .products{
    gap:10px;
}
/* ===========================
   📱 Carte Produit — Mobile
   =========================== */
@media (min-width:1024px) and (max-width: 4000px) {
    #header #amegamenu.fixed-menu .anav-top{
        width:100%;
        padding:0 140px;
    }
    #amegamenu.fixed-menu .fixed-menu-container{
        width:100%;
        max-width:100%;
    }
    #header #amegamenu.fixed-menu #_fixed_logo{
        position:absolute;
        top:0;
        left:0;
    }
    #header .fixed-menu-right{
        position:absolute;
        top:0;
        right:0;
    }
}
@media (min-width:860px) and  (max-width: 1199px) {
    body .featured-products .products .product-miniature {
        flex-basis: 31%;
        width: 31%;
        max-width: 31%;
        margin: 0;
    }
}
@media (max-width:860px) {
    .featured-products .products .product-miniature{
        flex-basis: 48%;
        width: 48%;
        max-width: 48%;
    }
}
@media (max-width: 991px) {
    #bandeaufixed p{
        font-size:12px;
    }
    .header-top.tablet-h .search-widget{
        padding-top:0;
    }
    #header{
        position: relative;
        padding: 0 0 40px;
    }
    #products .products {
        margin: 0;
    }
    #category .js-img-view-type,
    #search .js-img-view-type {
        width: calc(50% - 7px);
    }
    #header{
        padding-top:0;
    }
}
@media(max-width: 768px) {
    .products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
    }

    .product-miniature img {
        border-radius: 12px !important;
    }
    .featured-products .products .product-miniature{
        max-width:48%;
    }
    .product-miniature .product-title{
        height:24px;
        line-height:24px;
        overflow:hidden;
    }
    .product-miniature .product-title a{
        font-size:12px;
    }
    .product-miniature .an_pa_product-variants .product-variants-item-radio{
        display:none;
    }
    .product-miniature .an_productattributes{
       padding:5px 10px 0;
    }
    .product-miniature .product-description{
        padding:0;
    }
    .product-miniature  .thumbnail-container,
    .product-accessories .thumbnail-container,
    .featured-products.mt-3 .thumbnail-container{
        margin:0 0 15px;
    }
    .btn-primary,
    .an_productattributes-add-to-cart-btn{
        font-size:11px!important;
    }
}
@media(max-width:400px){
    #bandeaufixed p{
        font-size:11px;
    }
    body .btn-primary, body button.btn-primary, body .button-primary{
        font-size:10px!important;
    }
}
@media(max-width:369px){
    .featured-products .products .product-miniature{
        max-width:47%;
    }
}
/* ===========================
   📦 Sections de catégorie
   =========================== */
.mdm-category-card {
    background: var(--color-bg-card);
    border-radius: 16px;
    padding: 18px 12px;
    text-align: center;
    transition: 0.25s ease;
}

.mdm-category-card:hover {
    transform: translateY(-4px);
}
body .fixed-menu-mobile{
    background:#000000 !important;
}
/* ===========================
   📩 Footer
   =========================== */
footer, #footer {
    background: var(--color-footer-bg) !important;
    color: #ffffff !important;
    padding-top: 50px;
}
footer .footer-container a,
footer .block-contact,
footer .links .h3,
footer .h3,
footer a {
    color: #ffffff !important;
}

footer a:hover {
    color: var(--color-primary) !important;
}

.row.anblog-widget-posts{
    margin:0;
}
.footer-container{
    background:transparent;
}
#main #content + footer{
    background:none;!important;
    padding:0!important;
}
#wrapper .form-footer,
body#authentication #wrapper .form-footer,
body#contact #wrapper .form-footer,
body#checkout section.checkout-step .form-footer,
#cart #wrapper,
#checkout #wrapper{
    background:white!important;
}
body .an_productattributes-qty-add .btn-primary{
    padding:0;
}

/* ===========================
   Left Column -- 2026
   =========================== */
#btn-toggle-filter {
    background: transparent;
    border: none;
    font-size: 14px;
    line-height: 22px;
    cursor: pointer;
}
#products .products {
    gap: 0;
}
.product-miniature,
.product-miniature:hover {
    transition: all .3s;
}
#subcategories ul li {
    width: 150px;
}
.page-category #left-column {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 1001;
    background: white;
    transform: translateX(-100%);
    transition: .3s ease;
    width: 400px!important;
    padding: 30px;
    overflow: auto;
}
.page-category #left-column.is-open {
    transform: translateX(0);
}
.page-category #left-column.is-open .search_filters_mobile-modal {
    display: block;
    padding-top: 20px;
}
.filter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    opacity: 0;
    pointer-events: none;
    transition: .3s;
    z-index: 1000;
}
.filter-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
body.filter-open {
    overflow: hidden;
}
.filter-close {
    float: right;
    background: no-repeat;
    border: none;
    cursor: pointer;
    padding: 0 10px;
    z-index: 999;
    position: relative;
}
#category #products .product-miniature {
    margin-bottom: 10px;
}
#products .thumbnail-container:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.10);
    transition: all .3s;
}
.product-miniature:hover {
    box-shadow: none;
}
#products .product-miniature .thumbnail-container-image .b-loaded {
    border-radius: 14px 14px 0 0;
}

@media (min-width: 768px) {
    #products .thumbnail-container {
        background: var(--color-bg-card) !important;
        border-radius: 14px !important;
        border: 1px solid var(--color-border-light);
        box-shadow: 0 6px 20px rgba(0,0,0,0.05);
        height: 100%!important;
        transition: all .3s;
    }
}

@media (max-width: 450px) {
    .an_productattributes-qty-add .btn-primary {
        text-transform: none;
    }
}


@media (max-width: 991px) {
    body #_mobile_user_info svg path {
        fill: #fff!important;
    }
}