/* ===================================
   RESET GENERAL
=================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}


body{
    background:#eaeded;
    color:#111;
}

/* Espace en bas pour ne pas passer sous la barre mobile */
@media(max-width:900px){
    body{
        padding-bottom:78px;
    }
}


/* ===================================
   HEADER (repris de produit.html pour cohérence)
=================================== */


header{
    background:#131921;
    color:white;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:12px 25px;
    position:sticky;
    top:0;
    z-index:1000;
    flex-wrap:wrap;
    gap:10px;
    box-shadow:0 2px 10px rgba(0,0,0,.25);
}


.logo-container{
    display:flex;
    align-items:center;
    gap:12px;
    min-width:0;
}


.logo{
    width:52px;
    height:52px;
    object-fit:contain;
    object-position:center;
    border-radius:50%;
    background:white;
    padding:5px;
    display:block;
    margin:auto;
    box-shadow:0 2px 6px rgba(0,0,0,.2);
    flex-shrink:0;
}


.logo-container h1{
    font-size:22px;
    color:white;
    letter-spacing:.3px;
    white-space:nowrap;
}


.header-actions{
    display:flex;
    align-items:center;
    gap:10px;
}


/* ===================================
   ICONES HEADER (Panier, Compte, Menu)
=================================== */


.icon-btn{
    position:relative;
    width:42px;
    height:42px;
    border-radius:50%;
    border:none;
    background:#232f3e;
    color:white;
    font-size:19px;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    transition:.2s;
    flex-shrink:0;
}


.icon-btn i{
    line-height:1;
    pointer-events:none;
}


.icon-btn:hover{
    background:#febd69;
    color:#131921;
}


#logoutBtn{
    background:#febd69;
    color:#131921;
}


#logoutBtn:hover{
    background:#ff9900;
}


#cartCount{
    position:absolute;
    top:-4px;
    right:-4px;
    background:#ff9900;
    color:#131921;
    min-width:19px;
    height:19px;
    padding:0 3px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:11px;
    font-weight:bold;
    border:2px solid #131921;
}


/* ===================================
   MENU
=================================== */


.dropbtn{
    background:#232f3e;
    color:white;
    border:none;
    width:42px;
    height:42px;
    border-radius:50%;
    cursor:pointer;
    font-size:18px;
    display:flex;
    align-items:center;
    justify-content:center;
}


.dropdown-content{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100vh;
    background:white;
    padding-top:90px;
    z-index:9999;
}


.dropdown-content.show{
    display:block;
}


.dropdown-content a{
    display:block;
    width:90%;
    margin:15px auto;
    padding:15px;
    background:#eaeded;
    color:#111;
    text-decoration:none;
    border-radius:8px;
    font-weight:bold;
}


.dropdown-content a:hover{
    background:#131921;
    color:white;
}


.close-menu{
    position:absolute;
    right:25px;
    top:20px;
    font-size:35px;
    color:#111;
    cursor:pointer;
}


/* ===================================
   TITRE PAGE
=================================== */


.page-header{
    width:95%;
    margin:20px auto 0;
    background:white;
    padding:18px 20px;
    border-radius:10px;
    box-shadow:0 2px 8px rgba(0,0,0,.1);
}


.page-header h2{
    font-size:24px;
    color:#131921;
    border-left:5px solid #febd69;
    padding-left:12px;
}


/* ===================================
   RECHERCHE
=================================== */


.search-section{
    width:95%;
    margin:16px auto;
}


.search-box{
    display:flex;
    background:white;
    border-radius:12px;
    box-shadow:0 3px 12px rgba(0,0,0,.12);
    overflow:hidden;
}


.search-box input{
    flex:1;
    height:52px;
    border:none;
    padding:15px 18px;
    font-size:16px;
    background:transparent;
}


.search-box input:focus{
    outline:none;
}


.search-box button{
    width:60px;
    border:none;
    background:#febd69;
    font-size:20px;
    cursor:pointer;
}


.search-box button:hover{
    background:#ff9900;
}


/* ===================================
   SECTIONS
=================================== */

.section{
    width:95%;
    margin:35px auto;
}


/* ===================================
   BOUTIQUES (annuaire) — rendu plus professionnel
=================================== */


.shop-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:22px;
}


.shop-card{
    position:relative;
    background:white;
    padding:0;
    border-radius:14px;
    text-align:left;
    box-shadow:0 3px 12px rgba(0,0,0,.10);
    cursor:pointer;
    transition:.25s;
    overflow:hidden;
    border:1px solid #eee;
}


.shop-card:hover{
    transform:translateY(-6px);
    box-shadow:0 14px 28px rgba(0,0,0,.18);
    border-color:#febd69;
}


/* Bandeau supérieur coloré avec initiale de la boutique,
   en attendant une éventuelle photo de boutique */

.shop-card .shop-banner{
    height:70px;
    background:linear-gradient(135deg,#131921,#232f3e);
    display:flex;
    align-items:center;
    padding:0 18px;
}


.shop-card .shop-avatar{
    width:46px;
    height:46px;
    min-width:46px;
    border-radius:50%;
    background:#febd69;
    color:#131921;
    font-weight:bold;
    font-size:19px;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 2px 6px rgba(0,0,0,.25);
}


.shop-card .shop-body{
    padding:16px 18px 18px;
}


.shop-card h3{
    color:#131921;
    font-size:17px;
    margin-bottom:6px;
    line-height:1.3;
}


.shop-card p{
    color:#666;
    font-size:13.5px;
    display:flex;
    align-items:center;
    gap:6px;
}


.shop-card .shop-badge{
    position:absolute;
    top:12px;
    right:12px;
    background:#25D366;
    color:white;
    font-size:10.5px;
    font-weight:bold;
    padding:4px 10px;
    border-radius:20px;
    letter-spacing:.3px;
}


.shop-card .shop-cta{
    margin-top:12px;
    display:inline-flex;
    align-items:center;
    gap:6px;
    font-size:13px;
    font-weight:bold;
    color:#131921;
}


.shop-card:hover .shop-cta{
    color:#ff9900;
}


#emptyShops{
    color:#555;
    font-size:16px;
}


/* ===================================
   FOOTER
=================================== */


footer{
    background:#131921;
    color:white;
    padding:40px;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:25px;
    margin-top:40px;
}


footer h3, footer h4{
    margin-bottom:10px;
}


footer a{
    display:block;
    color:white;
    text-decoration:none;
    margin:8px 0;
}


.copyright{
    grid-column:1/-1;
    text-align:center;
}


/* ===================================
   BARRE DE NAVIGATION BASSE (mobile, reprise de produit.css)
=================================== */


.bottom-nav{
    display:none;
}


@media(max-width:900px){

.bottom-nav{
    display:flex;
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    background:#131921;
    box-shadow:0 -3px 12px rgba(0,0,0,.25);
    z-index:1500;
    padding:6px 4px calc(6px + env(safe-area-inset-bottom));
}


.bottom-nav a{
    flex:1;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    color:#9aa1ab;
    text-decoration:none;
    font-size:10.5px;
    font-weight:bold;
    padding:6px 2px;
    border-radius:10px;
}


.bottom-nav a .bn-icon{
    font-size:18px;
}


.bottom-nav a.active{
    color:#febd69;
}

}


/* ===================================
   TABLETTE / DESKTOP MENU
=================================== */


@media(min-width:901px){

.close-menu{
    display:none;
}

.dropdown{
    position:static;
}

.dropdown-content{
    display:flex !important;
    position:static;
    width:auto;
    height:auto;
    background:none;
    padding:0;
    align-items:center;
    gap:6px;
}

.dropdown-content a{
    width:auto;
    margin:0;
    padding:9px 14px;
    background:none;
    color:#d8dbe0;
    font-weight:600;
    font-size:14.5px;
    border-radius:20px;
}

.dropdown-content a:hover{
    background:#232f3e;
    color:#febd69;
}

.dropbtn{
    display:none;
}

}


@media(max-width:900px){

header{
    padding:12px 16px;
}

.logo-container h1{
    font-size:19px;
}

}


/* ===================================
   MOBILE
=================================== */


@media(max-width:600px){

.logo{
    width:44px;
    height:44px;
}

.logo-container h1{
    font-size:17px;
}

.icon-btn,
.dropbtn{
    width:38px;
    height:38px;
    font-size:17px;
}

.shop-container{
    grid-template-columns:1fr;
}

footer{
    text-align:center;
}

}


/* ===========================
   Bouton Help Kingdom Market
=========================== */

.help-button{
    position:fixed;
    bottom:25px;
    left:25px;
    width:65px;
    height:65px;
    background:linear-gradient(135deg,#180117,#ffb300);
    color:white;
    display:flex;
    justify-content:center;
    align-items:center;
    border-radius:50%;
    font-size:30px;
    text-decoration:none;
    box-shadow:0 10px 25px rgba(0,0,0,.35);
    z-index:1400;
    transition:.3s;
}

.help-button:hover{
    transform:scale(1.1);
    box-shadow:0 15px 35px rgba(255,152,0,.5);
}

.help-button::before{
    content:"";
    position:absolute;
    width:100%;
    height:100%;
    border-radius:50%;
    background:rgba(255,152,0,.4);
    animation:pulse 2s infinite;
}

.help-button i{
    position:relative;
    z-index:2;
}

@keyframes pulse{
    0%{ transform:scale(1); opacity:.8; }
    70%{ transform:scale(1.5); opacity:0; }
    100%{ transform:scale(1.5); opacity:0; }
}

@media(max-width:768px){
.help-button{
    width:58px;
    height:58px;
    font-size:26px;
    bottom:100px;
    left:20px;
}
}