/* ============================================================
   AFRIK DIGITAL SOLUTION — Feuille de styles partagée v2
   ============================================================ */

/* --- VARIABLES --- */
:root {
    --primary:    #0f172a;
    --secondary:  #0ea5e9;
    --accent:     #f59e0b;
    --accent-dark:#d97706;
    --success:    #10b981;
    --danger:     #ef4444;
    --text:       #334155;
    --text-light: #64748b;
    --light:      #f8fafc;
    --border:     #e2e8f0;
    --white:      #ffffff;
    --feda:       #00A65A;

    --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
    --shadow-md:  0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg:  0 10px 40px rgba(0,0,0,0.14);

    --radius-sm:  6px;
    --radius-md:  10px;
    --radius-lg:  16px;
    --radius-xl:  24px;

    --transition: 0.28s cubic-bezier(.4,0,.2,1);
    --font-body:  'Inter', sans-serif;
    --font-head:  'Poppins', sans-serif;
}

/* --- RESET --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--primary); line-height: 1.25; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font-body); }
input, textarea, select { font-family: var(--font-body); }

/* --- LAYOUT --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- BUTTONS --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 28px; border-radius: var(--radius-sm); font-weight: 600;
    font-family: var(--font-head); font-size: 0.95rem; border: 2px solid transparent;
    transition: var(--transition); cursor: pointer; white-space: nowrap;
}
.btn-primary  { background: var(--accent);     color: var(--primary); }
.btn-primary:hover  { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(245,158,11,0.35); }
.btn-secondary{ background: var(--secondary);  color: white; }
.btn-secondary:hover{ background: #0284c7; transform: translateY(-2px); }
.btn-outline  { border-color: var(--primary);  color: var(--primary); background: transparent; }
.btn-outline:hover  { background: var(--primary); color: white; }
.btn-ghost    { background: rgba(255,255,255,0.12); color: white; border-color: rgba(255,255,255,0.3); }
.btn-ghost:hover    { background: rgba(255,255,255,0.22); }
.btn-feda     { background: var(--feda);        color: white; }
.btn-feda:hover     { background: #008a4c; transform: translateY(-2px); }
.btn-feda:disabled  { background: #94a3b8; cursor: not-allowed; transform: none; }
.btn-lg       { padding: 15px 40px; font-size: 1.05rem; }
.btn-sm       { padding: 7px 18px; font-size: 0.85rem; }
.btn-full     { width: 100%; }

/* --- HEADER --- */
#site-header {
    background: var(--primary);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow var(--transition), background var(--transition);
}
#site-header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.25); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 20px;
}

/* Logo */
.site-logo { display: flex; align-items: center; flex-shrink: 0; height: 72px; }
.site-logo img { height: 48px; width: auto; transition: var(--transition); }
.site-logo:hover img { opacity: 0.85; }

/* Nav Links */
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    transition: var(--transition);
    position: relative;
}
.nav-links a:hover,
.nav-links a.active { color: white; background: rgba(255,255,255,0.1); }
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 50%; transform: translateX(-50%);
    width: 20px; height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

/* Right nav group */
.right-nav { display: flex; align-items: center; gap: 16px; }

/* Search */
.search-wrap {
    display: flex; align-items: center;
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 5px 14px;
    width: 140px;
    transition: width var(--transition), border-color var(--transition), background var(--transition);
}
.search-wrap:focus-within {
    width: 200px;
    border-color: var(--accent);
    background: rgba(0,0,0,0.25);
}
.search-wrap input {
    background: transparent; border: none; outline: none;
    color: white; font-size: 0.85rem; width: 100%;
}
.search-wrap input::placeholder { color: rgba(255,255,255,0.5); }
.search-wrap button { background: none; border: none; color: rgba(255,255,255,0.6); font-size: 0.9rem; transition: var(--transition); }
.search-wrap button:hover { color: var(--accent); }

/* Cart icon */
.cart-btn {
    position: relative;
    background: none; border: none;
    color: white; font-size: 1.25rem;
    padding: 6px; border-radius: 50%;
    transition: var(--transition);
}
.cart-btn:hover { color: var(--accent); background: rgba(255,255,255,0.1); }
.cart-badge {
    position: absolute; top: -2px; right: -2px;
    background: var(--accent); color: var(--primary);
    font-size: 0.65rem; font-weight: 700;
    padding: 2px 5px; border-radius: 10px;
    display: none; min-width: 18px; text-align: center;
}

/* Mobile menu button */
.menu-toggle { display: none; background: none; border: none; color: white; font-size: 1.4rem; padding: 4px; }

/* Mobile Nav Overlay */
.mobile-nav {
    display: none;
    position: fixed; top: 72px; left: 0; width: 100%; height: calc(100vh - 72px);
    background: rgba(15,23,42,0.97);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
    color: white; font-size: 1.2rem; font-weight: 600;
    padding: 14px 40px; border-radius: var(--radius-sm);
    width: 80%; text-align: center;
    transition: var(--transition);
}
.mobile-nav a:hover { background: rgba(255,255,255,0.1); color: var(--accent); }

/* --- SECTION UTILITIES --- */
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.section-alt { background: var(--light); }

.section-header { text-align: center; margin-bottom: 55px; }
.section-header h2 { font-size: 2.2rem; margin-bottom: 12px; }
.section-header p { color: var(--text-light); font-size: 1.05rem; max-width: 580px; margin: 0 auto; }
.section-line { width: 56px; height: 4px; background: var(--accent); border-radius: 2px; margin: 14px auto 0; }

/* --- BADGE & TAG --- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.badge-success { background: #ecfdf5; color: var(--success); }
.badge-info    { background: #eff6ff; color: #3b82f6; }
.badge-warning { background: #fffbeb; color: #d97706; }
.badge-new     { background: var(--accent); color: var(--primary); }

/* --- CARDS (générique) --- */
.card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    overflow: hidden;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

/* --- PRODUCT CARDS --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    overflow: hidden;
    display: flex; flex-direction: column;
    position: relative;
}
.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: var(--accent);
}

.product-card .promo-ribbon {
    position: absolute; top: 14px; left: -6px;
    background: var(--accent); color: var(--primary);
    padding: 3px 14px 3px 10px; font-size: 0.72rem; font-weight: 700;
    clip-path: polygon(0 0, 100% 0, 92% 50%, 100% 100%, 0 100%);
    z-index: 2;
}

.product-img-wrap {
    height: 200px; overflow: hidden; cursor: pointer;
    background: var(--light); display: flex; align-items: center; justify-content: center;
    position: relative;
}
.product-img-wrap img { max-height: 160px; max-width: 80%; object-fit: contain; transition: transform 0.4s; }
.product-card:hover .product-img-wrap img { transform: scale(1.08); }

.product-body { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; gap: 10px; }
.product-name { font-size: 1rem; font-weight: 600; color: var(--primary); }
.product-price-row { display: flex; align-items: center; gap: 10px; }
.product-old-price { text-decoration: line-through; color: var(--text-light); font-size: 0.9rem; }
.product-price { color: var(--accent); font-weight: 700; font-size: 1.35rem; }
.product-footer { padding: 0 20px 20px; display: flex; gap: 10px; }

/* Filter Bar */
.filter-bar {
    display: flex; flex-wrap: wrap; gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}
.filter-btn {
    padding: 8px 20px;
    border: 1.5px solid var(--border);
    background: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* --- SERVICE CARDS --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 28px; }

.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 36px 30px;
    border: 1px solid var(--border);
    border-bottom: 4px solid transparent;
    transition: var(--transition);
    display: flex; flex-direction: column; gap: 16px;
}
.service-card:hover {
    border-bottom-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}
.service-icon-wrap {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: var(--secondary);
}
.service-card h3 { font-size: 1.15rem; }
.service-card p { color: var(--text-light); font-size: 0.95rem; }
.service-link { color: var(--accent); font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; }
.service-link:hover { gap: 10px; }

/* --- STAT COUNTERS --- */
.stats-bar { background: var(--primary); padding: 50px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 30px; text-align: center; }
.stat-item { color: white; }
.stat-number { font-size: 2.6rem; font-weight: 700; color: var(--accent); font-family: var(--font-head); }
.stat-label { font-size: 0.9rem; color: rgba(255,255,255,0.7); margin-top: 5px; }

/* --- TESTIMONIALS --- */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.testimonial-card {
    background: var(--white); border-radius: var(--radius-md);
    padding: 30px; border: 1px solid var(--border);
    box-shadow: var(--shadow-sm); transition: var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.testimonial-stars { color: var(--accent); margin-bottom: 14px; }
.testimonial-text { color: var(--text); font-size: 0.95rem; line-height: 1.7; font-style: italic; margin-bottom: 18px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 700; font-size: 1rem;
}
.testimonial-name { font-weight: 600; font-size: 0.9rem; color: var(--primary); }
.testimonial-role { font-size: 0.8rem; color: var(--text-light); }

/* --- CONTACT --- */
.contact-wrapper {
    display: grid; grid-template-columns: 1fr 1.4fr;
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.contact-info-panel { background: linear-gradient(160deg, var(--secondary), #0369a1); padding: 50px 40px; color: white; }
.contact-info-panel h3 { color: white; font-size: 1.5rem; margin-bottom: 30px; }
.info-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 26px; }
.info-icon { width: 40px; height: 40px; background: rgba(255,255,255,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.info-item strong { display: block; font-size: 0.85rem; opacity: 0.8; margin-bottom: 2px; }
.info-item span { font-size: 0.95rem; }

.contact-form-panel { background: #1e293b; padding: 50px 40px; color: white; }
.contact-form-panel h3 { color: white; font-size: 1.5rem; margin-bottom: 30px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 7px; font-size: 0.87rem; color: #94a3b8; font-weight: 500; }
.form-control {
    width: 100%; padding: 11px 14px;
    background: #0f172a; border: 1px solid #334155;
    border-radius: var(--radius-sm); color: white;
    font-size: 0.95rem; transition: border-color var(--transition);
}
.form-control:focus { outline: none; border-color: var(--accent); }
.form-control::placeholder { color: #475569; }

/* --- HERO (service pages) --- */
.page-hero {
    padding: 90px 0 70px;
    background: linear-gradient(135deg, var(--primary) 60%, #1e3a5f 100%);
    color: white; text-align: center;
    position: relative; overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url('https://images.pexels.com/photos/3184465/pexels-photo-3184465.jpeg?auto=compress&cs=tinysrgb&w=1920') center/cover;
    opacity: 0.08;
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: 2.8rem; color: white; margin-bottom: 16px; }
.page-hero p { font-size: 1.1rem; opacity: 0.85; max-width: 600px; margin: 0 auto 28px; }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.88rem; opacity: 0.7; margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--accent); opacity: 1; }

/* --- DETAIL GRID (service pages) --- */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.detail-grid.reverse { direction: rtl; }
.detail-grid.reverse > * { direction: ltr; }
.detail-text h2 { font-size: 2rem; margin-bottom: 16px; }
.detail-text p { color: var(--text-light); margin-bottom: 20px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; font-size: 0.95rem; }
.check-list li i { color: var(--secondary); margin-top: 3px; flex-shrink: 0; }
.detail-img img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; height: 360px; object-fit: cover; }

/* --- CTA BAND --- */
.cta-band {
    background: linear-gradient(135deg, var(--primary), #1e3a5f);
    padding: 70px 0; text-align: center; color: white;
}
.cta-band h2 { font-size: 2.2rem; color: white; margin-bottom: 14px; }
.cta-band p  { font-size: 1.05rem; opacity: 0.8; margin-bottom: 28px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* --- FAQ --- */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: white; border: 1px solid var(--border);
    border-radius: var(--radius-md); overflow: hidden;
}
.faq-question {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 24px; cursor: pointer;
    font-weight: 600; font-size: 0.97rem; color: var(--primary);
    transition: background var(--transition);
}
.faq-question:hover { background: var(--light); }
.faq-question i { color: var(--secondary); transition: transform var(--transition); font-size: 0.85rem; }
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease, padding var(--transition);
    padding: 0 24px; color: var(--text-light); font-size: 0.93rem; line-height: 1.75;
}
.faq-item.open .faq-answer { max-height: 400px; padding: 0 24px 20px; }

/* --- ABOUT --- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.team-card {
    background: white; border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm); border: 1px solid var(--border);
    text-align: center; padding: 32px 20px; transition: var(--transition);
}
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-5px); }
.team-avatar {
    width: 80px; height: 80px; border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: white; margin: 0 auto 16px;
}
.team-name  { font-weight: 700; font-size: 1rem; color: var(--primary); }
.team-role  { font-size: 0.85rem; color: var(--text-light); margin-top: 4px; }
.team-socials { margin-top: 14px; display: flex; justify-content: center; gap: 10px; }
.team-socials a { color: var(--text-light); font-size: 0.9rem; transition: var(--transition); }
.team-socials a:hover { color: var(--secondary); }

/* --- CHECKOUT --- */
.checkout-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 36px; }
.cart-table-wrap { background: white; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.cart-table-head { background: var(--primary); color: white; padding: 14px 22px; display: flex; justify-content: space-between; font-size: 0.9rem; font-weight: 600; }
.cart-row { display: flex; align-items: center; justify-content: space-between; padding: 15px 22px; border-bottom: 1px solid var(--border); gap: 12px; }
.cart-row:last-child { border-bottom: none; }
.cart-item-img { width: 56px; height: 56px; object-fit: contain; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.cart-item-name  { font-weight: 600; font-size: 0.9rem; color: var(--primary); }
.cart-item-unit  { font-size: 0.82rem; color: var(--text-light); }
.cart-item-price { font-weight: 700; color: var(--accent); white-space: nowrap; }
.cart-remove { color: var(--danger); background: none; border: none; font-size: 0.95rem; transition: var(--transition); }
.cart-remove:hover { transform: scale(1.2); }
.cart-total-row { padding: 18px 22px; display: flex; justify-content: space-between; font-size: 1.1rem; font-weight: 700; color: var(--primary); border-top: 2px dashed var(--border); }

.checkout-panel { background: white; border-radius: var(--radius-md); padding: 30px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.checkout-panel h3 { font-size: 1.2rem; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }

.payment-option {
    border: 2px solid var(--border); border-radius: var(--radius-md);
    padding: 16px; text-align: center; cursor: pointer; transition: var(--transition);
    display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.payment-option.selected { border-color: var(--feda); background: #f0fdf4; }
.payment-amount { font-size: 1.6rem; font-weight: 700; color: var(--primary); }

/* --- TOAST NOTIFICATIONS --- */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
    display: flex; align-items: center; gap: 12px;
    background: var(--primary); color: white;
    padding: 14px 20px; border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg); min-width: 280px; max-width: 380px;
    animation: toastIn 0.35s ease;
    font-size: 0.9rem;
}
.toast.success { border-left: 4px solid var(--success); }
.toast.error   { border-left: 4px solid var(--danger); }
.toast.info    { border-left: 4px solid var(--secondary); }
.toast i { font-size: 1.1rem; }
.toast.success i { color: var(--success); }
.toast.error   i { color: var(--danger); }
.toast.info    i { color: var(--secondary); }
@keyframes toastIn {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* --- PRODUCT MODAL --- */
.modal-backdrop {
    display: none; position: fixed; inset: 0;
    background: rgba(15,23,42,0.65); z-index: 2000;
    align-items: center; justify-content: center;
    backdrop-filter: blur(6px);
}
.modal-backdrop.open { display: flex; }
.modal-box {
    background: white; border-radius: var(--radius-lg);
    width: 90%; max-width: 820px; max-height: 90vh;
    overflow-y: auto; position: relative;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.3s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.93) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
    position: absolute; top: 14px; right: 16px;
    background: none; border: none; font-size: 1.6rem;
    cursor: pointer; color: var(--text-light); z-index: 10;
    transition: var(--transition);
}
.modal-close:hover { color: var(--primary); transform: rotate(90deg); }
.modal-body { display: grid; grid-template-columns: 1fr 1fr; }
.modal-img-side { background: var(--light); display: flex; align-items: center; justify-content: center; padding: 40px; }
.modal-img-side img { max-height: 280px; object-fit: contain; }
.modal-info-side { padding: 36px 30px; }
.modal-title { font-size: 1.6rem; margin-bottom: 6px; }
.modal-price { font-size: 2rem; color: var(--accent); font-weight: 700; margin-bottom: 18px; }
.modal-features { background: var(--light); border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 18px; }
.modal-features li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; font-size: 0.9rem; }
.modal-features li i { color: var(--secondary); margin-top: 2px; }
.modal-desc { color: var(--text-light); font-size: 0.93rem; line-height: 1.7; margin-bottom: 22px; }

/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: var(--primary); color: white;
    padding: 20px 30px; z-index: 9998;
    display: none; align-items: center; justify-content: center;
    gap: 24px; flex-wrap: wrap; text-align: center;
    border-top: 3px solid var(--accent);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}
.cookie-banner p { font-size: 0.9rem; max-width: 600px; opacity: 0.9; }
.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }
.btn-cookie-accept { background: var(--accent); color: var(--primary); padding: 9px 22px; border-radius: var(--radius-sm); border: none; font-weight: 700; cursor: pointer; transition: var(--transition); }
.btn-cookie-accept:hover { background: var(--accent-dark); }
.btn-cookie-refuse { background: transparent; border: 1px solid rgba(255,255,255,0.4); color: white; padding: 9px 22px; border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition); }
.btn-cookie-refuse:hover { border-color: white; }

/* --- FOOTER --- */
.site-footer { background: #020617; color: #64748b; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; margin-top: 14px; max-width: 260px; }
.footer-brand .logo-img { height: 42px; }
.footer-col h4 { color: white; font-size: 0.95rem; margin-bottom: 18px; font-family: var(--font-head); }
.footer-col ul li + li { margin-top: 10px; }
.footer-col a { font-size: 0.88rem; transition: var(--transition); }
.footer-col a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.07); display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; transition: var(--transition);
}
.footer-social a:hover { background: var(--accent); color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; font-size: 0.85rem; flex-wrap: wrap; gap: 10px; }
.footer-bottom a:hover { color: var(--accent); }

/* --- SCROLL TO TOP --- */
.scroll-top {
    position: fixed; bottom: 80px; right: 24px; z-index: 500;
    width: 44px; height: 44px;
    background: var(--primary); color: white;
    border: none; border-radius: 50%; font-size: 1rem;
    display: none; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md); transition: var(--transition);
    cursor: pointer;
}
.scroll-top.visible { display: flex; }
.scroll-top:hover { background: var(--accent); color: var(--primary); transform: translateY(-3px); }

/* --- ANIMATIONS --- */
.reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* --- LOADER --- */
.spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════
   QUANTITY SELECTOR
   ═══════════════════════════════════════════ */
.qty-selector {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 20px;
    border: 1px solid var(--border);
    width: fit-content;
    margin-top: 10px;
    overflow: hidden;
}
.qty-btn {
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    transition: 0.2s;
    line-height: 1;
    flex-shrink: 0;
}
.qty-btn:hover { background: var(--secondary); color: white; }
.qty-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.qty-btn:disabled:hover { background: none; color: var(--primary); }
.qty-value {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    pointer-events: none;
    user-select: none;
}

/* ═══════════════════════════════════════════
   WISHLIST BUTTON (on product card)
   ═══════════════════════════════════════════ */
.product-card { position: relative; }
.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.14);
    color: #94a3b8;
    font-size: 0.92rem;
    transition: all 0.25s;
    z-index: 3;
}
.wishlist-btn:hover { color: #ef4444; transform: scale(1.15); }
.wishlist-btn.active { color: #ef4444; background: #fee2e2; }

/* ═══════════════════════════════════════════
   WISHLIST HEADER BUTTON
   ═══════════════════════════════════════════ */
.wishlist-header-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
}
.wishlist-header-btn:hover { color: #ef4444; }
.wishlist-badge {
    position: absolute;
    top: 3px;
    right: 3px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 17px;
    height: 17px;
    font-size: 0.62rem;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    line-height: 1;
}

/* ═══════════════════════════════════════════
   WISHLIST DRAWER
   ═══════════════════════════════════════════ */
.wishlist-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.5);
    z-index: 1050;
    display: none;
    backdrop-filter: blur(3px);
}
.wishlist-overlay.open { display: block; }

.wishlist-drawer {
    position: fixed;
    top: 0;
    right: -430px;
    width: 400px;
    max-width: 95vw;
    height: 100vh;
    background: white;
    z-index: 1100;
    box-shadow: -4px 0 30px rgba(0,0,0,0.2);
    transition: right 0.35s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
}
.wishlist-drawer.open { right: 0; }

.wishlist-drawer-header {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: var(--primary);
    color: white;
    flex-shrink: 0;
}
.wishlist-drawer-header h3 {
    font-size: 1rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.wishlist-drawer-header h3 i { color: #f87171; }
.wishlist-close-btn {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: 0.2s;
    flex-shrink: 0;
}
.wishlist-close-btn:hover { background: rgba(255,255,255,0.3); }

.wishlist-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
}

.wishlist-item {
    display: flex;
    gap: 11px;
    align-items: center;
    padding: 11px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin-bottom: 10px;
    background: #fafafa;
    transition: var(--transition);
}
.wishlist-item:hover { border-color: var(--secondary); background: white; box-shadow: var(--shadow-sm); }
.wishlist-item img { width: 52px; height: 52px; object-fit: contain; border-radius: 8px; background: white; padding: 4px; border: 1px solid var(--border); flex-shrink: 0; }
.wishlist-item-info { flex: 1; min-width: 0; }
.wishlist-item-info .wname { font-size: 0.84rem; font-weight: 600; color: var(--primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wishlist-item-info .wprice { font-size: 0.88rem; color: var(--accent); font-weight: 700; margin-top: 3px; }
.wishlist-item-actions { display: flex; flex-direction: column; gap: 5px; flex-shrink: 0; }
.wishlist-item-actions .btn { padding: 6px 10px; font-size: 0.78rem; }

.wishlist-empty { text-align: center; padding: 60px 20px; color: var(--text-light); }
.wishlist-empty i { font-size: 3.5rem; margin-bottom: 16px; color: #e2e8f0; display: block; }
.wishlist-empty p { font-size: 0.92rem; line-height: 1.7; }

.wishlist-drawer-footer {
    padding: 14px;
    border-top: 1px solid var(--border);
    background: var(--light);
    flex-shrink: 0;
}

/* --- BACK LINK --- */
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--secondary); font-weight: 600; margin-bottom: 22px; font-size: 0.9rem; transition: var(--transition); }
.back-link:hover { gap: 12px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .detail-grid  { grid-template-columns: 1fr; gap: 40px; }
    .detail-img img { height: 280px; }
    .modal-body { grid-template-columns: 1fr; }
    .modal-img-side { padding: 28px; }
    .modal-img-side img { max-height: 220px; }
}

@media (max-width: 768px) {
    .header-inner { height: 64px; }
    .mobile-nav { top: 64px; height: calc(100vh - 64px); }
    .nav-links, .search-wrap { display: none; }
    .menu-toggle { display: block; }

    .section { padding: 55px 0; }
    .section-header h2 { font-size: 1.8rem; }
    .page-hero h1 { font-size: 2rem; }

    .contact-wrapper { grid-template-columns: 1fr; }
    .contact-info-panel, .contact-form-panel { padding: 36px 28px; }

    .checkout-grid { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .cta-buttons { flex-direction: column; align-items: center; }

    .cookie-banner { flex-direction: column; padding: 20px; }
    .cookie-buttons { flex-direction: column; width: 100%; }
    .btn-cookie-accept, .btn-cookie-refuse { width: 100%; }

    .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-content h1 { font-size: 2rem; }
    .product-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
}

/* ── CART DRAWER ──────────────────────────────────────────── */
.cart-qty-ctrl {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}
.cart-qty-ctrl .qty-btn {
    width: 24px;
    height: 24px;
    border: 1px solid var(--border);
    background: var(--bg-white);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}
.cart-qty-ctrl .qty-btn:hover:not(:disabled) {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.cart-qty-ctrl .qty-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.cart-qty-ctrl .qty-value { font-weight: 600; min-width: 20px; text-align: center; }

.cart-drawer-total {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    background: var(--bg-light);
}
.cart-total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
}
.cart-total-line strong {
    font-size: 1.2rem;
    color: var(--accent);
}
