:root{
    --primary: #1180be;
    --secondary: #f8a12b;
    --accent: #ed5531;

    --dark: #131921;
    --light: #f3f3f3;
    --text: #111;
}

/* =========================
   BASE
========================= */
body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    background: var(--light);
    color: var(--text);
}

/* =========================
   LAYOUT
========================= */
.main-container{
    padding: 20px;
    min-height: 80vh;
}

.page-content{
    max-width: 1400px;
    margin: auto;
}

/* =========================
   TOPBAR (AMAZON STYLE)
========================= */
.topbar{

    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}


.topbar,
.header{
    background: #0f172a; /* bleu nuit moderne */
    color: white;
}

/* LOGO */
.logo{
    font-size: 20px;
    font-weight: bold;
    white-space: nowrap;
}

.logo span{
    color: var(--secondary);
}

/* =========================
   MENU
========================= */
.menu a{
    color: white;
    margin: 0 8px;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
}

.menu a:hover{
    color: var(--primary);
}

/* =========================
   SEARCH
========================= */
.search-box{
    display: flex;
    flex: 1;
    max-width: 500px;
}

.search-box input{
    flex: 1;
    padding: 10px;
    border: none;
    outline: none;
    border-radius: 4px 0 0 4px;
}

.search-box button{
    background: var(--secondary);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

.search-box button:hover{
    background: var(--accent);
}

/* =========================
   ACTIONS
========================= */
.actions{
    display: flex;
    gap: 15px;
    align-items: center;
}

.actions a{
    color: white;
    text-decoration: none;
    font-size: 14px;
}

/* CART BADGE */
#cart-count{
    background: var(--accent);
    color: white;
    padding: 2px 6px;
    border-radius: 50%;
    font-size: 12px;
}

/* =========================
   PRODUCTS GRID
========================= */
.products-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

/* =========================
   PRODUCT CARD
========================= */
.product-card{
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: 0.25s;
}

.product-card:hover{
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.img-box{
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-box img{
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.info h3{
    font-size: 15px;
    margin: 10px 0;
}

.price{
    color: var(--accent);
    font-weight: bold;
    margin-bottom: 10px;
}

/* =========================
   BUTTON GLOBAL
========================= */
button{
    width: 100%;
    background: var(--secondary);
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 6px;
    font-weight: bold;
    transition: 0.2s;
}

button:hover{
    background: var(--accent);
}

/* =========================
   TOAST
========================= */
.toast{
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 12px 18px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* =========================
   FOOTER
========================= */
.footer{
   background: linear-gradient(180deg, #0f172a, #0b1220);
    color: #e5e7eb;
    margin-top: 40px;
}


.footer-container{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 30px;
}

.footer-box a{
    color: #ddd;
    text-decoration: none;
    margin: 5px 0;
    font-size: 14px;
}

.footer-box a:hover{
    color: var(--secondary);
}

.footer-bottom{
    text-align: center;
    padding: 15px;
    border-top: 1px solid #2c2c2c;
    font-size: 13px;
    color: #aaa;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px){

    .topbar{
        flex-direction: column;
        align-items: flex-start;
    }

    .search-box{
        width: 100%;
        margin-top: 10px;
    }

    .menu{
        margin-top: 10px;
    }

    .footer-container{
        grid-template-columns: 1fr;
        text-align: center;
    }
}



/* =========================
   HERO
========================= */
.hero{
    background: linear-gradient(135deg, #1180be, #0d5f8a);
    color: white;
    padding: 60px 20px;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 30px;
}

.hero h1{
    font-size: 36px;
    margin-bottom: 10px;
}

.hero p{
    font-size: 18px;
    opacity: 0.9;
}

.btn-hero{
    display: inline-block;
    margin-top: 15px;
    padding: 12px 20px;
    background: #f8a12b;
    color: black;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
}

/* =========================
   SECTION
========================= */
.section{
    margin: 40px 0;
}

.section h2{
    margin-bottom: 15px;
}

/* =========================
   CATEGORIES
========================= */
.cat-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.cat-box{
    background: white;
    padding: 15px;
    text-align: center;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: 0.2s;
}

.cat-box:hover{
    background: #f8a12b;
    color: black;
    transform: translateY(-3px);
}



/* =========================
   HERO MODERNE
========================= */
.hero-modern{
    background: linear-gradient(135deg, #1180be, #0e5f8a);
    padding: 70px 20px;
    border-radius: 16px;
    color: white;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.hero-modern h1{
    font-size: 42px;
    margin-bottom: 10px;
}

.hero-modern p{
    font-size: 18px;
    opacity: 0.9;
}

.btn-primary{
    display: inline-block;
    margin-top: 15px;
    background: #f8a12b;
    color: #000;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-primary:hover{
    background: #ed5531;
    color: white;
}

/* =========================
   TITRES SECTION
========================= */
.section-title{
    margin: 20px 0;
}

.section-title h2{
    font-size: 22px;
}

/* =========================
   CATEGORIES MODERN
========================= */
.cat-grid-modern{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
}

.cat-card{
    background: white;
    padding: 18px;
    border-radius: 14px;
    text-align: center;
    text-decoration: none;
    color: #111;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.cat-card:hover{
    transform: translateY(-5px);
    background: #f8a12b;
    color: #000;
}

/* =========================
   PRODUITS MODERN
========================= */
.product-grid-modern{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
}

.product-card-modern{
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.product-card-modern:hover{
    transform: translateY(-6px);
}

.product-img{
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
}

.product-img img{
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.product-body{
    padding: 12px;
}

.product-body h3{
    font-size: 15px;
    margin-bottom: 8px;
}

.price{
    color: #ed5531;
    font-weight: bold;
    margin-bottom: 8px;
}

.badge-warning{
    display: inline-block;
    background: #ed5531;
    color: white;
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.btn-cart{
    display: block;
    background: #f8a12b;
    text-align: center;
    padding: 8px;
    border-radius: 8px;
    text-decoration: none;
    color: #000;
    font-weight: bold;
    margin-top: 10px;
    transition: 0.3s;
}

.btn-cart:hover{
    background: #ed5531;
    color: white;
}

.product-page {
    display:flex;
    gap:30px;
    background:white;
    padding:20px;
    border-radius:12px;
}

.product-left img {
    width:100%;
    max-width:400px;
}

.product-right {
    flex:1;
}

.product-right h1 {
    font-size:24px;
}

.price {
    font-size:22px;
    color:#ed5531;
    font-weight:bold;
    margin:10px 0;
}

.stock-warning {
    color:red;
    margin-bottom:10px;
}

.desc {
    margin:15px 0;
}

.qty-box {
    display:flex;
    gap:10px;
    margin-bottom:15px;
}

.qty-box input {
    width:60px;
    text-align:center;
}

.btn-whatsapp {
    display:block;
    background:#25D366;
    color:white;
    padding:12px;
    text-align:center;
    margin-top:10px;
    border-radius:6px;
    text-decoration:none;
}