/* ===== CSS COMMUN POUR TOUTES LES PAGES DE CATÉGORIES ===== */
/* Ce fichier utilise le même style de navbar et footer que index.html */

:root {
    --primary: #1a365d;
    --accent: #f6931e;
    --bg-light: #f9f9f9;
    --text-dark: #333;
    --success: #25d366;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-light: #111;
        --text-dark: #eee;
        --primary: #1a365d;
    }
    body { background: #111; color: #eee; }
}

html, body { 
    height: 100%; 
    margin: 0; 
    padding: 0; 
    overflow-x: hidden; 
    scroll-behavior: smooth; 
}

body { 
    background: var(--bg-light); 
    color: var(--text-dark); 
    font-family: 'Cairo', sans-serif; 
    line-height: 1.6; 
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* ===== NAVBAR (identique à index.html) ===== */
.navbar {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 15px 8%; 
    background: white; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 1000;
}

.logo { 
    font-size: 1.8rem; 
    font-weight: 900; 
    color: var(--primary); 
    text-decoration: none; 
}

.logo span { color: var(--accent); }

.nav-links { 
    display: flex; 
    list-style: none; 
    margin: 0; 
    padding: 0; 
}

.nav-links li { margin: 0 15px; }

.nav-links a { 
    color: var(--primary); 
    font-weight: 700; 
    text-decoration: none; 
    transition: 0.3s; 
}

.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); }

.btn-cta { 
    background: var(--success); 
    color: white; 
    padding: 10px 22px; 
    border-radius: 50px; 
    font-weight: bold; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    text-decoration: none; 
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--primary);
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        right: 0;
        width: 220px;
        height: calc(100vh - 70px);
        background: #fff;
        flex-direction: column;
        align-items: center;
        justify-content: start;
        padding-top: 30px;
        gap: 20px;
        transform: translateX(100%);
        transition: .3s;
    }
    .nav-links.open { transform: translateX(0); }
    .nav-toggle { display: block; }
}

/* ===== CATEGORY HERO ===== */
.category-hero {
    height: 50vh;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    color: white;
    margin-top: 70px;
}

.category-hero h1 { 
    font-size: clamp(2rem, 5vw, 3.5rem); 
    margin: 0;
    font-weight: 900;
}

.category-hero p { 
    font-size: 1.2rem; 
    opacity: 0.9; 
    margin-top: 10px;
}

/* ===== PRODUCTS SECTION ===== */
.products-section { 
    padding: 60px 8%; 
    max-width: 1400px;
    margin: 0 auto;
}

.section-title { 
    text-align: center; 
    color: var(--primary); 
    font-size: 2.2rem; 
    margin-bottom: 50px;
    font-weight: 800;
}

.products-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
}

.product-card { 
    background: white; 
    border-radius: 15px; 
    overflow: hidden; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.08); 
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.product-img { 
    height: 220px; 
    overflow: hidden;
    position: relative;
}

.product-img img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
}

.product-info { 
    padding: 25px; 
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-brand { 
    display: inline-block;
    background: var(--primary); 
    color: white; 
    padding: 4px 12px; 
    border-radius: 20px; 
    font-size: 0.75rem; 
    font-weight: 700;
    margin-bottom: 10px;
    width: fit-content;
}

.product-info h3 { 
    color: var(--primary); 
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    font-weight: 800;
}

.product-description {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    font-size: 0.85rem;
    color: #666;
}

.product-features li {
    margin-bottom: 5px;
    padding-right: 20px;
    position: relative;
}

.product-features li:before {
    content: "✓";
    position: absolute;
    right: 0;
    color: var(--success);
    font-weight: bold;
}

.product-price-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.product-price { 
    color: var(--accent); 
    font-size: 1.5rem; 
    font-weight: 900;
}

.product-unit {
    color: #999;
    font-size: 0.8rem;
}

.btn-whatsapp { 
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%; 
    padding: 12px; 
    background: var(--success); 
    color: white; 
    text-decoration: none; 
    border-radius: 8px; 
    font-weight: 800; 
    font-size: 1rem;
    margin-top: auto;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    gap: 8px;
}

.btn-whatsapp:hover { 
    background: #128c7e;
    transform: translateY(-2px);
}

/* ===== ALERT BOX ===== */
.alert-box {
    background: #fff3cd; 
    border-right: 4px solid var(--accent); 
    padding: 20px; 
    margin: 0 0 40px 0; 
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1rem;
    color: #856404;
}

.alert-box i {
    font-size: 1.3rem;
    color: var(--accent);
}

/* ===== BULK NOTICE ===== */
.bulk-notice {
    background: linear-gradient(135deg, var(--accent), #e07e0a);
    color: white;
    padding: 15px 20px;
    text-align: center;
    margin: 0 0 40px 0;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
}

/* ===== FOOTER (identique à index.html) ===== */
footer { 
    background: #111; 
    color: white; 
    padding: 70px 10% 30px; 
}

.footer-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 40px; 
}

.footer-about h2 { 
    color: var(--accent); 
    margin-bottom: 15px; 
}

.footer-about p { 
    color: #eee; 
    font-size: 1.1rem; 
    line-height: 1.6; 
    margin: 5px 0; 
}

.footer-links h4 { 
    color: var(--accent); 
    margin-bottom: 15px; 
}

.footer-links a, .footer-links span { 
    color: #ccc; 
    text-decoration: none; 
    display: block; 
    margin: 10px 0; 
    transition: 0.3s; 
}

.footer-links a:hover {
    color: var(--accent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .category-hero h1 { font-size: 1.8rem; }
    .products-section { padding: 40px 5%; }
    .products-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 1.8rem; }
    .alert-box { flex-direction: column; text-align: center; }
}
