/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }

/* ── Variables (fallback si base.css absent) ── */
:root {
    --teal: #0d9e93;
    --teal-dark: #0a7a72;
    --teal-light: #e0f2f1;
    --navy-1: #1a237e;
    --navy-2: #283593;
    --purple: #8e24aa;
    --orange: #f57c00;
    --green: #22c55e;
    --red: #ef4444;
    --gold: #fbbf24;
    --bg: #f8f9fa;
    --border: #e5e7eb;
    --text: #111827;
    --text-2: #4b5563;
    --muted: #9ca3af;
    --white: #ffffff;
}

/* ══════════════════════════════════════════
   NAVBAR — COMMUNE À TOUTES LES PAGES
══════════════════════════════════════════ */
.home-nav {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    height: 60px;
    background: #fff;
    display: flex; align-items: center;
    padding: 0 24px; gap: 24px;
    box-shadow: 0 1px 6px rgba(0,0,0,.08);
}
.nav-logo-img { height: 42px; width: auto; object-fit: contain; }

.nav-links {
    display: flex; align-items: center; gap: 24px;
    list-style: none; margin: 0; padding: 0;
}
.nav-links a {
    font-size: 13px; font-weight: 500;
    color: var(--text-2); text-decoration: none;
    transition: color .15s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--teal); }
.nav-links a.active { font-weight: 600; }
.has-dropdown { position: relative; }

.nav-search {
    flex: 1; max-width: 360px;
    display: flex; align-items: center;
    background: var(--bg); border: 1.5px solid var(--border);
    border-radius: 25px; padding: 0 14px; gap: 8px; height: 36px;
    margin: 0 auto;
}
.nav-search input {
    border: none; background: transparent;
    outline: none; font-size: 13px; width: 100%; color: var(--text);
}
.nav-search i { color: var(--muted); font-size: 13px; }

.nav-right { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.nav-icon-btn {
    background: none; border: none; cursor: pointer;
    font-size: 16px; color: var(--muted); display: none;
}
.nav-compte {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600; color: var(--text);
    text-decoration: none; transition: color .15s;
    position: relative;
}
.nav-compte:hover { color: var(--teal); }
.nav-compte i { font-size: 16px; }

.cart-count {
    position: absolute; top: -6px; right: -6px;
    background: var(--red); color: #fff;
    font-size: 0.65rem; font-weight: 700;
    width: 18px; height: 18px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
}

.nav-toggle {
    display: none;
    background: none; border: none; cursor: pointer;
    font-size: 20px; color: var(--text-2);
    padding: 4px; margin-right: 4px;
}

.nav-mobile-menu {
    display: none;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 12px 20px;
    flex-direction: column;
    gap: 0;
    z-index: 99;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
    font-size: 14px; font-weight: 500;
    color: var(--text-2); text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-family: 'Cairo', sans-serif;
}
.nav-mobile-menu a:last-child { border-bottom: none; }
.nav-mobile-menu a:hover,
.nav-mobile-menu a.active { color: var(--teal); }

/* ══════════════════════════════════════════
   HOME PAGE
══════════════════════════════════════════ */
body { display: block; background: #f8f9fa; }

/* Hero */
.hero {
    margin-top: 60px;
    min-height: calc(100vh - 60px);
    background: linear-gradient(135deg, #f0f9ff 0%, #e8f7f6 50%, #f0f2f5 100%);
    display: flex; align-items: center;
    padding: 48px 60px; gap: 40px;
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; right: -100px; top: -100px;
    width: 400px; height: 400px;
    background: rgba(13,158,147,.06); border-radius: 50%;
}
.hero-left { flex: 1; max-width: 520px; }
.hero-logo-text { margin-bottom: 12px; }
.hero-waqt { font-size: 52px; font-weight: 800; color: var(--navy-1); line-height: 1; }
.hero-shopping { font-size: 42px; font-weight: 700; color: var(--teal); line-height: 1; }
.hero-desc { font-family: 'Cairo', sans-serif; font-size: 15px; color: var(--muted); line-height: 1.8; margin-bottom: 20px;  }
.hero-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.hero-features li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2);  font-family: 'Cairo', sans-serif; }
.hero-features li i { color: var(--teal); font-size: 16px; width: 20px; text-align: center; }
.hero-cta-text { font-family: 'Cairo', sans-serif; font-size: 14px; font-weight: 600; color: var(--teal); margin-bottom: 20px;  }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--teal); color: #fff;
    border: none; border-radius: 10px;
    padding: 12px 24px; font-size: 14px;
    font-weight: 600; cursor: pointer;
    text-decoration: none; font-family: 'Cairo', sans-serif;
    transition: background .15s;
}
.btn-primary:hover { background: var(--teal-dark); }
.btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; color: var(--text);
    border: 2px solid var(--border); border-radius: 10px;
    padding: 12px 24px; font-size: 14px;
    font-weight: 600; cursor: pointer;
    text-decoration: none; font-family: 'Cairo', sans-serif;
    transition: border-color .15s, color .15s;
}
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); }

.hero-right { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.hero-roles { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.role-badge {
    display: flex; flex-direction: column; align-items: center;
    gap: 8px; padding: 16px 20px; border-radius: 16px;
    font-family: 'Cairo', sans-serif; font-size: 13px;
    font-weight: 700; color: #fff; cursor: pointer;
    transition: transform .15s;
}
.role-badge:hover { transform: translateY(-3px); }
.role-badge i { font-size: 28px; }
.role-tager   { background: linear-gradient(135deg, var(--teal), var(--navy-2)); }
.role-mowazaa { background: linear-gradient(135deg, var(--purple), #6c3483); }
.role-harif   { background: linear-gradient(135deg, var(--orange), #c0392b); }

.hero-illustration { display: flex; align-items: flex-end; gap: 20px; font-size: 80px; }
.illus-truck-big { color: var(--teal); font-size: 100px; }
.illus-moto { color: var(--navy-2); font-size: 70px; }
.illus-person { color: var(--orange); font-size: 60px; }

/* Variante hero avec image (au lieu des icônes ci-dessus) */
.hero-image-wrap { width: 100%; max-width: 560px; display: flex; align-items: center; justify-content: center; }
.hero-main-img {
    width: 100%; height: auto; max-height: 420px; object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(13,158,147,.15));
    transition: transform .4s ease;
}
.hero-right:hover .hero-main-img { transform: translateY(-6px) scale(1.02); }

/* Sections */
.section { padding: 48px 60px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.section-header h2 { font-family: 'Cairo', sans-serif; font-size: 22px; font-weight: 700; color: var(--text); }
.voir-tout { font-size: 13px; color: var(--teal); text-decoration: none; font-weight: 500; }
.voir-tout:hover { color: var(--teal-dark); }

/* Categories */
.categories-section { background: #fff; }
.categories-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 16px; }
.cat-item {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    cursor: pointer; text-decoration: none; color: inherit;
    transition: transform .2s, box-shadow .2s;
}
.cat-item:hover { transform: translateY(-4px); }
.cat-icon {
    width: 64px; height: 64px; border-radius: 16px;
    background: var(--bg); display: flex; align-items: center; justify-content: center;
    font-size: 26px; color: var(--teal); transition: background .15s;
}
.cat-item:hover .cat-icon { background: var(--teal-light); }
.cat-item span { font-family: 'Cairo', sans-serif; font-size: 12px; font-weight: 600; color: var(--text-2); text-align: center; }
.cat-item.empty,
.prod-card.empty { opacity: 0.6; pointer-events: none; }
.cat-item.empty .cat-icon { background: #e5e7eb; color: #9ca3af; }

/* Produits */
.products-section { background: #f8f9fa; }
.products-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.prod-card {
    background: #fff; border-radius: 14px; padding: 16px; position: relative;
    display: flex; flex-direction: column; gap: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    transition: box-shadow .15s, transform .15s;
}
.prod-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1); transform: translateY(-2px); }
.prod-img {
    width: 100%; height: 240px; position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    font-size: 56px; color: #b0bec5; background: var(--bg); border-radius: 10px;
}
.prod-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.prod-card:hover .prod-img img { transform: scale(1.05); }
.prod-name { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.3; }
.prod-price { font-size: 16px; font-weight: 700; color: var(--teal); }
.prod-old-price { font-size: 0.85rem; color: #9ca3af; text-decoration: line-through; margin-left: 6px; font-weight: 400; }
.prod-stock { font-size: 11px; }
.stock-ok  { color: var(--green); }
.stock-low { color: var(--orange); }
.stock-out { color: var(--red); }
.prod-stock i { font-size: 8px; margin-right: 3px; }
.prod-rating { font-size: 12px; color: var(--gold); }
.prod-rating i { font-size: 12px; }
.prod-rating span { color: var(--muted); font-size: 11px; }
.prod-cart-btn {
    position: absolute; top: 12px; right: 12px;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--teal-light); border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--teal); font-size: 14px;
    transition: all .2s ease;
}
.prod-cart-btn:hover { background: var(--teal); color: #fff; }
.prod-cart-btn:disabled { background: var(--bg); color: var(--muted); cursor: not-allowed; }
.prod-cart-btn:active { transform: scale(0.95); }
.prod-cart-btn.added { background: var(--green); color: #fff; }
.prod-badge {
    position: absolute; top: 8px; left: 8px;
    background: var(--red); color: #fff;
    font-size: 0.75rem; font-weight: 600;
    padding: 3px 8px; border-radius: 6px; z-index: 2;
}

/* Features bar */
.features-bar {
    background: var(--navy-1);
    display: grid; grid-template-columns: repeat(4, 1fr);
    padding: 28px 60px; gap: 16px;
}
.feat-item { display: flex; align-items: center; gap: 14px; color: #fff; }
.feat-item > i { font-size: 28px; color: var(--teal); flex-shrink: 0; }
.feat-title { font-family: 'Cairo', sans-serif; font-size: 14px; font-weight: 700; }
.feat-sub { font-size: 11px; color: rgba(255,255,255,.6); }

/* Platform */
.platform-section { background: #fff; text-align: center; }
.platform-title { font-family: 'Cairo', sans-serif; font-size: 26px; font-weight: 700; color: var(--text); margin-bottom: 32px; }
.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.platform-card {
    border-radius: 16px; padding: 32px 24px;
    display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
    transition: transform .15s;
}
.platform-card:hover { transform: translateY(-4px); }
.pc-green  { background: linear-gradient(135deg, #e8f7f6, #b2dfdb); }
.pc-blue   { background: linear-gradient(135deg, #e3f2fd, #bbdefb); }
.pc-purple { background: linear-gradient(135deg, #f3e5f5, #e1bee7); }
.pc-icon {
    width: 64px; height: 64px; border-radius: 18px;
    background: rgba(255,255,255,.7);
    display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--teal);
}
.pc-blue .pc-icon   { color: #1565c0; }
.pc-purple .pc-icon { color: var(--purple); }
.platform-card h3 { font-family: 'Cairo', sans-serif; font-size: 16px; font-weight: 700; color: var(--text); }
.platform-card p { font-family: 'Cairo', sans-serif; font-size: 13px; color: var(--muted); line-height: 1.6; }
.pc-btn {
    display: inline-block; background: var(--teal); color: #fff;
    border-radius: 8px; padding: 10px 20px; font-size: 13px; font-weight: 600;
    text-decoration: none; font-family: 'Cairo', sans-serif; transition: opacity .15s;
}
.pc-blue .pc-btn   { background: #1565c0; }
.pc-purple .pc-btn { background: var(--purple); }
.pc-btn:hover { opacity: .9; }

/* CTA */
.cta-section {
    background: linear-gradient(135deg, var(--navy-1), var(--teal));
    padding: 48px 60px; display: flex; align-items: center;
    justify-content: space-between; gap: 40px;
}
.cta-left h2 { font-family: 'Cairo', sans-serif; font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.cta-left p { font-family: 'Cairo', sans-serif; font-size: 14px; color: rgba(255,255,255,.75); margin-bottom: 24px; line-height: 1.7; }
.cta-right .cta-icon { font-size: 100px; color: rgba(255,255,255,.2); }

/* Stats */
.home-stats { background: #fff; display: grid; grid-template-columns: repeat(4, 1fr); padding: 32px 60px; }
.hstat-item { display: flex; flex-direction: column; align-items: center; gap: 4px; border-right: 1px solid var(--border); padding: 0 20px; }
.hstat-item:last-child { border-right: none; }
.hstat-num { font-size: 28px; font-weight: 800; color: var(--teal); }
.hstat-label { font-family: 'Cairo', sans-serif; font-size: 13px; color: var(--muted); }

/* ══════════════════════════════════════════
   PAGES INTERNES (ex-pages.css)
══════════════════════════════════════════ */

/* Layout page avec sidebar */
.page-wrapper {
    margin-left: var(--sidebar-w);
    min-height: calc(100vh - var(--header-h));
    padding: 0;
    overflow-x: hidden;
}
@media (max-width: 1024px) {
    .page-wrapper { margin-left: 0; }
}

/* Page hero */
.page-hero {
    background: linear-gradient(135deg, var(--navy-1), var(--teal));
    padding: 48px 60px; color: #fff; position: relative; overflow: hidden;
    margin-top: 60px;
}
.page-hero::before {
    content: ''; position: absolute; right: -60px; top: -60px;
    width: 300px; height: 300px; background: rgba(255,255,255,.05); border-radius: 50%;
}
.page-hero h1 { font-family: 'Cairo', sans-serif; font-size: 32px; font-weight: 700; margin-bottom: 8px; position: relative; }
.page-hero p { font-size: 14px; color: rgba(255,255,255,.75); max-width: 500px; position: relative; }
.page-hero .breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,.6); margin-top: 12px; position: relative; }
.page-hero .breadcrumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.page-hero .breadcrumb a:hover { color: #fff; }

/* Page sections */
.page-section { padding: 10px 60px; margin: 0 auto; }
.page-section.alt { background: #f8f9fa; }
.page-section.narrow {  }
.section-title { font-family: 'Cairo', sans-serif; font-size: 24px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.section-subtitle { font-size: 14px; color: var(--muted);  }

/* Info cards */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-card {
    background: #fff; border-radius: 16px; padding: 28px 24px; text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,.06); transition: transform .15s, box-shadow .15s; border: 1px solid var(--border);
}
.info-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.info-card i { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 14px; }
.info-card.ic-teal i { background: var(--teal-light); color: var(--teal); }
.info-card.ic-blue i { background: #e3f2fd; color: #1565c0; }
.info-card.ic-purple i { background: #f3e5f5; color: var(--purple); }
.info-card.ic-green i { background: #e8f5e9; color: var(--green); }
.info-card.ic-orange i { background: #fff3e0; color: var(--orange); }
.info-card.ic-red i { background: #ffebee; color: var(--red); }
.info-card h3 { font-family: 'Cairo', sans-serif; font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.info-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.info-card a { color: var(--teal); text-decoration: none; font-weight: 500; }
.info-card a:hover { color: var(--teal-dark); }

/* Formulaire */
.form-card { background: #fff; border-radius: 16px; padding: 32px; box-shadow: 0 2px 12px rgba(0,0,0,.06); border: 1px solid var(--border); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text); }
.form-group input, .form-group textarea, .form-group select {
    padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 10px;
    font-size: 13px; color: var(--text); background: var(--bg); outline: none;
    transition: border-color .15s, background .15s; font-family: 'Poppins', sans-serif;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--teal); background: #fff; }
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-submit {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--teal); color: #fff; border: none; border-radius: 10px;
    padding: 12px 28px; font-size: 14px; font-weight: 600; cursor: pointer;
    font-family: 'Cairo', sans-serif; transition: background .15s;
}
.btn-submit:hover { background: var(--teal-dark); }

/* Legal content */
.legal-content h2 { font-family: 'Cairo', sans-serif; font-size: 18px; font-weight: 700; color: var(--navy-1); margin: 32px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--teal-light); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { font-size: 14px; color: var(--text-2); line-height: 1.8; margin-bottom: 12px; }
.legal-content ul { margin: 0 0 16px 20px; font-size: 14px; color: var(--text-2); line-height: 1.8; }
.legal-content ul li { margin-bottom: 6px; }
.last-update { display: inline-block; background: var(--teal-light); color: var(--teal); font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 20px; margin-bottom: 24px; }

/* Service cards */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
    background: #fff; border-radius: 20px; padding: 36px 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,.06); border: 1px solid var(--border);
    display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: 14px; transition: transform .15s, box-shadow .15s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,.12); }
.service-card .sc-icon { width: 72px; height: 72px; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 30px; margin-bottom: 4px; }
.sc-green  { background: linear-gradient(135deg, #e8f7f6, #b2dfdb); }
.sc-green .sc-icon { color: var(--teal); } .sc-green .sc-btn { background: var(--teal); }
.sc-blue   { background: linear-gradient(135deg, #e3f2fd, #bbdefb); }
.sc-blue .sc-icon  { color: #1565c0; }    .sc-blue .sc-btn  { background: #1565c0; }
.sc-purple { background: linear-gradient(135deg, #f3e5f5, #e1bee7); }
.sc-purple .sc-icon{ color: var(--purple); }.sc-purple .sc-btn{ background: var(--purple); }
.service-card h3 { font-family: 'Cairo', sans-serif; font-size: 18px; font-weight: 700; color: var(--text); }
.service-card p { font-size: 13px; color: var(--muted); line-height: 1.7; }
.service-card ul { list-style: none;  width: 100%; margin: 0; }
.service-card ul li { font-size: 13px; color: var(--text-2); padding: 6px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; flex-direction: row-reverse; font-family: 'Cairo', sans-serif; }
.service-card ul li:last-child { border-bottom: none; }
.service-card ul li i { color: var(--teal); font-size: 12px; }
.sc-btn { display: inline-flex; align-items: center; gap: 6px; color: #fff; border-radius: 10px; padding: 10px 22px; font-size: 13px; font-weight: 600; text-decoration: none; font-family: 'Cairo', sans-serif; margin-top: auto; transition: opacity .15s; }
.sc-btn:hover { opacity: .9; }

/* Catégories page */
.cat-search-bar { max-width: 500px; margin: 0 auto 32px; display: flex; align-items: center; background: #fff; border: 1.5px solid var(--border); border-radius: 25px; padding: 0 16px; gap: 10px; height: 44px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.cat-search-bar input { border: none; background: transparent; outline: none; font-size: 14px; width: 100%; color: var(--text); font-family: 'Poppins', sans-serif; }
.cat-search-bar i { color: var(--muted); }
.cat-page-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-page-card {
    background: #fff; border-radius: 16px; padding: 28px 20px;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    text-decoration: none; color: inherit; border: 1.5px solid var(--border);
    transition: transform .15s, box-shadow .15s, border-color .15s; cursor: pointer;
}
.cat-page-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.1); border-color: var(--teal); }
.cat-page-card .cp-icon { width: 72px; height: 72px; border-radius: 20px; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 30px; color: var(--teal); transition: background .15s; }
.cat-page-card:hover .cp-icon { background: var(--teal-light); }
.cat-page-card h3 { font-family: 'Cairo', sans-serif; font-size: 15px; font-weight: 700; color: var(--text); }
.cat-page-card span { font-size: 12px; color: var(--muted); background: var(--bg); padding: 4px 12px; border-radius: 20px; font-weight: 500; }

/* About */
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.mission-text h2 { font-family: 'Cairo', sans-serif; font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.mission-text p { font-size: 14px; color: var(--text-2); line-height: 1.8; margin-bottom: 16px; }
.mission-visual { display: flex; align-items: center; justify-content: center; font-size: 120px; color: var(--teal); opacity: .15; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value-card { background: #fff; border-radius: 16px; padding: 28px 24px; text-align: center; border: 1px solid var(--border); transition: transform .15s; }
.value-card:hover { transform: translateY(-4px); }
.value-card i { font-size: 32px; color: var(--teal); margin-bottom: 14px; }
.value-card h3 { font-family: 'Cairo', sans-serif; font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.value-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* Contact layout */
.contact-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }

/* Alertes */
.alert { padding: 12px 16px; border-radius: 10px; font-size: 13px; font-weight: 500; margin-bottom: 16px; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* Footer (tag <footer> ou classe .home-footer selon la page) */
footer,
.home-footer {
    background: var(--white); border-top: 1px solid var(--border);
    padding: 16px 30px; display: flex; align-items: center; justify-content: center;
    gap: 20px; flex-wrap: wrap; font-size: 12px; color: var(--muted);
}
footer .logo-footer, .home-footer .logo-footer { display: flex; align-items: center; gap: 5px; font-weight: 600; color: var(--text); }
footer .ar, .home-footer .ar { font-family: 'Cairo', sans-serif; color: var(--teal); }
footer a, .home-footer a { color: var(--muted); text-decoration: none; }
footer a:hover, .home-footer a:hover { color: var(--teal); }
footer .sep, .home-footer .sep { color: var(--border); }

/* ══════════════════════════════════════════
   PAGE CATÉGORIE DÉTAIL (categorie_show)
══════════════════════════════════════════ */

.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.filter-bar label {
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
}
.filter-bar select {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: #fff;
    font-size: 13px;
    cursor: pointer;
    min-width: 200px;
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: border-color .15s;
}
.filter-bar select:focus { border-color: var(--teal); }

.cat-page-card.active {
    border-color: var(--teal);
    background: var(--teal-light);
    box-shadow: 0 4px 16px rgba(13,158,147,.12);
}

/* Sous-catégories de la page categorie_show : pastilles compactes au lieu
   des grandes cartes (réservées à la page /categories, avec moins d'items).
   Remplace l'ancien tandem <select> + grille de cartes, qui doublait
   l'espace utilisé pour la même information. */
.subcat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}
.subcat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s;
}
.subcat-pill i { font-size: 12px; color: var(--teal); }
.subcat-pill .pill-count {
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
    background: var(--bg);
    padding: 1px 8px;
    border-radius: 20px;
}
.subcat-pill:hover { border-color: var(--teal); background: var(--teal-light); }
.subcat-pill.active { background: var(--teal); border-color: var(--teal); color: #fff; }
.subcat-pill.active i { color: #fff; }
.subcat-pill.active .pill-count { background: rgba(255,255,255,.25); color: #fff; }

@media (max-width: 600px) {
    .subcat-pills { gap: 6px; }
    .subcat-pill { padding: 6px 12px; font-size: 12px; }
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1.5px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    border-color: var(--teal);
}
.product-image {
    aspect-ratio: 4/3;
    background: var(--bg);
    overflow: hidden;
    position: relative;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.product-card:hover .product-image img {
    transform: scale(1.05);
}
.product-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.product-info h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    font-family: 'Cairo', sans-serif;
    line-height: 1.3;
}
.product-price {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--teal);
}
.product-boutique {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 4px;
}
.product-boutique i { font-size: 11px; color: var(--teal); }
.btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--teal);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
    transition: background .15s;
    margin-top: auto;
    align-self: flex-start;
}
.btn-sm:hover { background: var(--teal-dark); }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
    background: #fff;
    border-radius: 16px;
    border: 1.5px dashed var(--border);
}
.empty-state i { font-size: 12px; margin-bottom: 0; display: block; color: var(--border); }
.empty-state p { font-size: 15px; margin-bottom: 12px; font-family: 'Cairo', sans-serif; }
.empty-state .btn-sm { margin: 0 auto; align-self: center; }

.section-count {
    font-size: 14px;
    font-weight: 400;
    color: var(--muted);
    margin-right: 8px;
}

/* ══════════════════════════════════════════
   PROD-CARD — compléments (lien enveloppant,
   icône de secours, badge "nouveau", etc.)
   Utilisé par la page d'accueil, /produits ET
   la page catégorie pour un design 100% identique.
══════════════════════════════════════════ */
.prod-card-link {
    display: flex; flex-direction: column; gap: 8px;
    color: inherit; text-decoration: none;
}
.prod-img.prod-icon {
    font-size: 44px; color: #b0bec5;
}
.prod-rating-new {
    font-size: 11px; color: var(--muted); font-style: italic;
}
.products-count {
    font-size: 13px; font-weight: 600; color: var(--muted);
    background: var(--bg); border-radius: 20px; padding: 6px 14px;
}
.products-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
    background: #fff;
    border-radius: 16px;
    border: 1.5px dashed var(--border);
}
.products-empty i { font-size: 56px; margin-bottom: 16px; display: block; color: var(--border); }
.products-empty p { font-size: 15px; margin-bottom: 12px; font-family: 'Cairo', sans-serif; }
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ══════════════════════════════════════════
   FILTRES CATALOGUE (page /produits & catégorie)
══════════════════════════════════════════ */
.filters-bar {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 12px; margin-bottom: 24px;
}
.filter-search {
    flex: 1; min-width: 220px;
    display: flex; align-items: center;
    background: #fff; border: 1.5px solid var(--border);
    border-radius: 25px; padding: 0 16px; gap: 10px; height: 44px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.filter-search input {
    border: none; background: transparent;
    outline: none; font-size: 14px; width: 100%;
    color: var(--text); font-family: 'Poppins', sans-serif;
}
.filter-search i { color: var(--muted); }

.filter-group {
    display: flex; gap: 10px; flex-wrap: wrap;
}
.filter-group select {
    padding: 10px 14px; border: 1.5px solid var(--border);
    border-radius: 10px; font-size: 13px; color: var(--text);
    background: #fff; outline: none; cursor: pointer;
    font-family: 'Poppins', sans-serif;
    min-width: 150px;
    transition: border-color .15s;
}
.filter-group select:focus { border-color: var(--teal); }

.filter-price {
    display: flex; align-items: center; gap: 8px;
    background: #fff; border: 1.5px solid var(--border);
    border-radius: 10px; padding: 6px 10px;
}
.filter-price input[type="number"] {
    width: 90px; border: none; outline: none;
    font-size: 13px; color: var(--text);
    font-family: 'Poppins', sans-serif;
    -moz-appearance: textfield;
}
.filter-price input[type="number"]::-webkit-outer-spin-button,
.filter-price input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none; margin: 0;
}
.filter-price-sep { color: var(--muted); font-size: 12px; }
.filter-price-apply {
    width: 28px; height: 28px; border-radius: 50%; border: none;
    background: var(--teal-light); color: var(--teal);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 12px; transition: all .15s;
    flex-shrink: 0;
}
.filter-price-apply:hover { background: var(--teal); color: #fff; }

@media (max-width: 700px) {
    .filters-bar { flex-direction: column; align-items: stretch; }
    .filter-group { flex-direction: column; }
    .filter-group select { min-width: 0; width: 100%; }
    .filter-price { justify-content: space-between; }
}

/* ══════════════════════════════════════════
   PAGINATION (page /produits & catégorie)
══════════════════════════════════════════ */
.pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 6px; margin-top: 32px; flex-wrap: wrap;
    /* Sans effet hors d'un parent grid ; permet à .pagination de s'étendre
       sur toute la largeur quand elle est placée dans une grille (ex. liste
       de produits), sans avoir besoin d'un style inline dédié. */
    grid-column: 1 / -1;
}
.page-btn {
    min-width: 38px; height: 38px; padding: 0 10px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px; border: 1.5px solid var(--border);
    background: #fff; color: var(--text-2);
    font-size: 13px; font-weight: 600; text-decoration: none;
    cursor: pointer; transition: all .15s;
    font-family: 'Poppins', sans-serif;
}
.page-btn:hover:not(.disabled):not(.active) { border-color: var(--teal); color: var(--teal); }
.page-btn.active { background: var(--teal); border-color: var(--teal); color: #fff; }
.page-btn.disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }
.page-ellipsis { color: var(--muted); font-size: 13px; padding: 0 4px; }

/* ══════════════════════════════════════════
   PAGE CATÉGORIE DÉTAIL (categorie_show)
══════════════════════════════════════════ */

/* … (conserver vos règles existantes : .filter-bar, .cat-page-card.active,
   .products-grid, .product-card, .product-image, .product-info,
   .product-price, .product-boutique, .btn-sm, .empty-state, .section-count) … */

/* ── Nouveaux styles produits (optimisés) ── */

.product-image-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg); color: #b0bec5; font-size: 48px;
}

.product-badge {
    position: absolute; top: 8px; left: 8px;
    background: var(--red); color: #fff;
    font-size: 0.75rem; font-weight: 600;
    padding: 3px 8px; border-radius: 6px; z-index: 2;
}

.product-cart-btn {
    position: absolute; top: 12px; right: 12px;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--teal-light); border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--teal); font-size: 14px;
    transition: all .2s ease; z-index: 3;
}
.product-cart-btn:hover { background: var(--teal); color: #fff; }
.product-cart-btn:disabled,
.product-cart-btn.disabled {
    background: var(--bg); color: var(--muted); cursor: not-allowed; pointer-events: none;
}
.product-cart-btn.added { background: var(--green); color: #fff; }
.product-cart-btn:active { transform: scale(0.95); }

.product-stock {
    font-size: 11px; font-weight: 500;
    display: flex; align-items: center; gap: 4px;
}
.product-stock i { font-size: 10px; }
.product-stock.stock-ok  { color: var(--green); }
.product-stock.stock-low { color: var(--orange); }
.product-stock.stock-out { color: var(--red); }

.product-rating {
    font-size: 12px; color: var(--gold);
    display: flex; align-items: center; gap: 4px;
}
.product-rating i { font-size: 11px; }
.product-rating span { color: var(--muted); font-size: 11px; }

.product-price-row {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 6px; margin-top: 2px;
}
.product-old-price {
    font-size: 13px; color: var(--muted);
    text-decoration: line-through; font-weight: 400;
}

/* ══════════════════════════════════════════
   PAGE COMMERÇANTS
══════════════════════════════════════════ */

/* ── Filtres ── */
.merchant-filters {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.mf-search {
    flex: 1; min-width: 260px;
    display: flex; align-items: center;
    background: #fff; border: 1.5px solid var(--border);
    border-radius: 25px; padding: 0 16px; gap: 10px; height: 44px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.mf-search input {
    border: none; background: transparent;
    outline: none; font-size: 14px; width: 100%;
    color: var(--text); font-family: 'Poppins', sans-serif;
}
.mf-search i { color: var(--muted); }

.mf-selects {
    display: flex; gap: 10px; flex-wrap: wrap;
}
.mf-selects select {
    padding: 10px 14px; border: 1.5px solid var(--border);
    border-radius: 10px; font-size: 13px; color: var(--text);
    background: #fff; outline: none; cursor: pointer;
    font-family: 'Poppins', sans-serif;
    min-width: 160px;
    transition: border-color .15s;
}
.mf-selects select:focus { border-color: var(--teal); }

/* ── Grille commerçants ── */
.merchant-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.merchant-card {
    background: #fff; border-radius: 16px;
    border: 1.5px solid var(--border);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.merchant-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    border-color: var(--teal);
}

/* Header avec avatar */
.mc-header {
    padding: 20px 20px 0;
    display: flex; justify-content: space-between;
    align-items: flex-start;
}
.mc-avatar {
    width: 64px; height: 64px; border-radius: 16px;
    background: linear-gradient(135deg, var(--teal-light), var(--bg));
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: var(--teal);
    flex-shrink: 0;
    overflow: hidden;
}
.mc-avatar img {
    width: 100%; height: 100%; object-fit: cover;
}
.mc-badges {
    display: flex; flex-direction: column;
    gap: 4px; align-items: flex-end;
}
.mc-badge {
    font-size: 10px; font-weight: 600;
    padding: 3px 8px; border-radius: 20px;
    display: inline-flex; align-items: center; gap: 4px;
}
.mc-verified { background: #dcfce7; color: #166534; }
.mc-delivery { background: #dbeafe; color: #1e40af; }

/* Body */
.mc-body {
    padding: 14px 20px;
    flex: 1;
    display: flex; flex-direction: column; gap: 8px;
}
.mc-body h3 {
    font-family: 'Cairo', sans-serif;
    font-size: 15px; font-weight: 700;
    color: var(--text); line-height: 1.3;
}
.mc-meta {
    display: flex; flex-wrap: wrap; gap: 10px;
    font-size: 12px; color: var(--muted);
}
.mc-meta span {
    display: flex; align-items: center; gap: 4px;
}
.mc-meta i { font-size: 11px; color: var(--teal); }

/* Rating */
.mc-rating {
    display: flex; align-items: center; gap: 6px;
    margin-top: 2px;
}
.mc-stars {
    display: flex; gap: 2px;
}
.mc-stars i {
    font-size: 12px; color: #e5e7eb;
}
.mc-stars i.filled { color: var(--gold); }
.mc-note {
    font-size: 13px; font-weight: 700; color: var(--gold);
}
.mc-avis {
    font-size: 11px; color: var(--muted);
}

/* Produits count */
.mc-products {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--text-2);
    margin-top: 2px;
}
.mc-products i { color: var(--teal); font-size: 12px; }

/* Footer / Bouton */
.mc-footer {
    padding: 0 20px 20px;
}
.mc-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    background: var(--teal); color: #fff;
    border-radius: 10px; padding: 10px 16px;
    font-size: 13px; font-weight: 600;
    text-decoration: none; font-family: 'Cairo', sans-serif;
    transition: background .15s;
}
.mc-btn:hover { background: var(--teal-dark); }


/* ── Media queries commerçants ── */
@media (max-width: 1024px) {
    .merchant-grid { grid-template-columns: repeat(3, 1fr); }
    .merchant-filters { flex-direction: column; align-items: stretch; }
    .mf-search { width: 100%; }
    .mf-selects { width: 100%; }
    .mf-selects select { flex: 1; }
    .products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .merchant-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .mc-header { padding: 16px 16px 0; }
    .mc-body { padding: 12px 16px; }
    .mc-footer { padding: 0 16px 16px; }
    .mc-avatar { width: 52px; height: 52px; font-size: 22px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .home-nav { padding: 0 18px; gap: 16px; }
    .hero { padding: 40px 32px; gap: 28px; }
    .hero-waqt { font-size: 42px; } .hero-shopping { font-size: 34px; }
    .illus-truck-big { font-size: 76px; } .illus-moto { font-size: 54px; } .illus-person { font-size: 46px; }
    .hero-image-wrap { max-width: 420px; } .hero-main-img { max-height: 340px; }
    .categories-grid { grid-template-columns: repeat(4, 1fr); }
    .products-row { grid-template-columns: repeat(2, 1fr); }
    .section, .features-bar, .cta-section, .home-stats { padding: 40px 32px; }
    .page-hero, .page-section { padding: 10px 32px; }
    .info-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .cat-page-grid { grid-template-columns: repeat(3, 1fr); }
    .mission-grid { gap: 28px; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .merchant-grid { grid-template-columns: 1fr; }
    .mf-selects { flex-direction: column; }
    .mf-selects select { width: 100%; }
    .mc-badges { flex-direction: row; gap: 4px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .prod-card { padding: 10px; gap: 6px; }
    .prod-img { height: 100px; }
    .prod-name { font-size: 12px; }
    .filter-bar { flex-direction: column; align-items: stretch; }
    .filter-bar select { width: 100%; }
    .empty-state { padding: 40px 16px; }
    .nav-links, .nav-search { display: none; }
    .nav-icon-btn { display: flex; }
    .nav-toggle { display: flex; align-items: center; justify-content: center; }
    .home-nav { gap: 10px; padding: 0 16px; }

    .hero { flex-direction: column; padding: 32px 20px; min-height: auto;  align-items: flex-start; }
    .hero-left { max-width: 100%; } .hero-right { width: 100%; }
    .hero-illustration { justify-content: center; }
    .illus-truck-big { font-size: 64px; } .illus-moto { font-size: 48px; } .illus-person { font-size: 40px; }
    .hero-image-wrap { max-width: 100%; } .hero-main-img { max-height: 320px; }

    .section, .page-section { padding: 10px 20px; }
    .features-bar { grid-template-columns: repeat(2, 1fr); padding: 24px 20px; gap: 14px; }
    .platform-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .cta-section { flex-direction: column; padding: 36px 20px;  }
    .cta-right { display: none; }
    .home-stats { grid-template-columns: repeat(2, 1fr); padding: 24px 20px; gap: 16px; }
    .hstat-item { border-right: none; border-bottom: 1px solid var(--border); padding: 12px 0; }
    .hstat-item:nth-child(odd) { border-right: 1px solid var(--border); }
    .hstat-item:nth-child(3), .hstat-item:nth-child(4) { border-bottom: none; }

    .page-hero { padding: 28px 20px; margin-top: 54px; }
    .page-hero h1 { font-size: 22px; }
    .info-grid, .services-grid { grid-template-columns: 1fr; }
    .services-grid { max-width: 420px; margin: 0 auto; }
    .cat-page-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .mission-grid { grid-template-columns: 1fr; }
    .mission-visual { display: none; }
    .values-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    footer, .home-footer { gap: 10px; font-size: 11px; padding: 12px 16px; }
}

@media (max-width: 360px) {
    .home-nav { height: 54px; padding: 0 12px; gap: 8px; }
    .nav-logo-img { height: 34px; }
    .nav-compte span { display: none; }

    .hero { padding: 24px 14px; gap: 20px; margin-top: 54px; }
    .hero-waqt { font-size: 34px; } .hero-shopping { font-size: 28px; }
    .hero-desc { font-size: 13px; }
    .hero-btns { flex-direction: column; gap: 10px; }
    .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
    .hero-roles { gap: 10px; }
    .role-badge { padding: 12px 14px; font-size: 12px; }
    .role-badge i { font-size: 22px; }
    .hero-illustration { display: none; }
    .hero-main-img { max-height: 260px; }

    .categories-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
    .cat-icon { width: 50px; height: 50px; font-size: 20px; border-radius: 12px; }
    .cat-item span { font-size: 11px; }
    .products-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .prod-card { padding: 10px; gap: 6px; }
    .prod-img { height: 90px; }
    .prod-name { font-size: 12px; }
    .features-bar { grid-template-columns: 1fr; padding: 20px 14px; gap: 16px; }
    .platform-section { padding: 28px 14px; }
    .platform-grid { max-width: 100%; }
    .platform-card { padding: 24px 16px; }
    .cta-section { padding: 28px 14px; }
    .cta-left h2 { font-size: 19px; } .cta-left p { font-size: 13px; }
    .home-stats { padding: 20px 14px; gap: 10px; }
    .hstat-num { font-size: 22px; } .hstat-label { font-size: 12px; }
    .section { padding: 28px 14px; }

    .page-hero { padding: 24px 14px; }
    .page-section { padding: 10px 14px; }
    .cat-page-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .cat-page-card { padding: 20px 12px; }
    .cat-page-card .cp-icon { width: 56px; height: 56px; font-size: 24px; }
    .form-card { padding: 20px; }
    .service-card { padding: 24px 18px; }
    footer, .home-footer { flex-direction: column; gap: 6px; text-align: center; padding: 12px 10px; }
    footer .sep, .home-footer .sep { display: none; }
}

@media (max-width: 360px) {
    .home-nav { padding: 0 10px; }
    .nav-logo-img { height: 30px; }
    .hero-main-img { max-height: 220px; }
    .hero { padding: 20px 10px; }
    .hero-waqt { font-size: 28px; } .hero-shopping { font-size: 24px; }
    .categories-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .cat-icon { width: 44px; height: 44px; font-size: 18px; }
    .hstat-num { font-size: 20px; }
    .platform-card { padding: 18px 12px; }
    .cta-left h2 { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
/* ══════════════════════════════════════════
   OPTIMISATIONS PAGE CATÉGORIE
══════════════════════════════════════════ */

/* Hero compact */
.page-hero.cat-hero {
    padding: 32px 60px;
    min-height: auto;
}
.page-hero.cat-hero h1 {
    font-size: 26px;
}

/* Section sous-catégories compacte */
.subcat-section {
    padding: 20px 60px 0;
}

/* Pastilles sous-catégories */
.subcat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.subcat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s;
}
.subcat-pill i { font-size: 12px; color: var(--teal); }
.subcat-pill .pill-count {
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
    background: var(--bg);
    padding: 1px 8px;
    border-radius: 20px;
}
.subcat-pill:hover { border-color: var(--teal); background: var(--teal-light); }
.subcat-pill.active { background: var(--teal); border-color: var(--teal); color: #fff; }
.subcat-pill.active i { color: #fff; }
.subcat-pill.active .pill-count { background: rgba(255,255,255,.25); color: #fff; }

/* Section produits rapprochée
.products-section {
  padding-top: 24px;
}
*/
/* Images produits optimisées */
.product-image {
    aspect-ratio: 4 / 3;
    background: var(--bg);
    overflow: hidden;
    position: relative;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #cbd5e1;
    font-size: 48px;
}

/* Responsive pastilles */
@media (max-width: 768px) {
    .page-hero.cat-hero { padding: 24px 32px; }
    .subcat-section { padding: 16px 32px 0; }
    .products-section { padding: 20px 32px; }
}
@media (max-width: 480px) {
    .page-hero.cat-hero { padding: 20px 20px; }
    .subcat-section { padding: 12px 20px 0; }
    .products-section { padding: 16px 20px; }
    .subcat-pill { padding: 6px 12px; font-size: 12px; }
}