/* =====================================================================
   AKRAM NUTRITION — Overrides sur base Adem
   Harmonise les couleurs/branding + styles complémentaires
   ===================================================================== */

/* Palette Akram — BLANC & NOIR + ORANGE (exact du logo AKRAM NUTRITION) */
:root {
    --akram-primary: #FF8A00;          /* ORANGE Akram néon (identique au logo) */
    --akram-primary-dark: #E57300;     /* orange foncé pour hover */
    --akram-primary-light: #FFA940;    /* orange clair */
    --akram-black: #0A0A0A;
    --akram-paper: #FFFFFF;
    --akram-paper-alt: #F7F5F2;
    --akram-ivory: #F5F2EE;
    --akram-elevated: #FAFAFA;
    --akram-text: #0A0A0A;
    --akram-text-muted: rgba(10,10,10,0.68);
    --akram-text-dim: rgba(10,10,10,0.45);
    --akram-rule: rgba(10,10,10,0.08);
    --akram-display-font: 'Bungee', 'Russo One', 'Bebas Neue', 'Impact', sans-serif;
}

/* Base */
html, body {
    background: var(--akram-paper) !important;
    color: var(--akram-text);
}

/* Logo header — texte : AKRAM (grand) + Nutrition (petit avec lignes) */
.header .logo { z-index: 500; }

.header .logo a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

/* Masquer toute image héritée */
.header .logo img,
#headerLogo[src] { display: none !important; }

/* Masquer l'image dans menu mobile aussi */
.mobile-menu-header .logo img { display: none !important; }

/* Le brand text */
.an-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    user-select: none;
    line-height: 1;
}

/* AKRAM — gros à gauche (police Bungee comme le logo) */
.an-brand__big {
    font-family: 'Bungee', 'Russo One', 'Bebas Neue', 'Impact', sans-serif;
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--akram-black);
    text-transform: uppercase;
    line-height: 1;
}

/* NUTRITION — plus petit à droite, avec un trait au-dessus ET au-dessous */
.an-brand__small {
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.38em;
    color: var(--akram-primary);
    text-transform: uppercase;
    padding: 6px 0;
    border-top: 1.5px solid var(--akram-primary);
    border-bottom: 1.5px solid var(--akram-primary);
    display: inline-block;
    line-height: 1;
}

/* Dans le menu mobile */
.mobile-menu-header .an-brand__big { font-size: 2.25rem; }
.mobile-menu-header .an-brand__small { font-size: 0.68rem; letter-spacing: 0.32em; padding: 5px 0; }

/* Dans le footer : AKRAM + Nutrition, plus imposant, texte blanc sur fond noir */
.footer-brand .an-brand { margin-bottom: 1rem; }
.footer-brand .an-brand__big { font-size: 2.5rem; color: #FFFFFF !important; }
.footer-brand .an-brand__small {
    font-size: 0.78rem;
    letter-spacing: 0.4em;
    padding: 6px 0;
    color: var(--akram-primary) !important;
    border-top: 1.5px solid var(--akram-primary);
    border-bottom: 1.5px solid var(--akram-primary);
}

.footer-brand .footer-logo-img { display: none !important; }

@media (max-width: 768px) {
    .an-brand__big { font-size: 2.1rem; }
    .an-brand__small { font-size: 0.68rem; letter-spacing: 0.3em; }
}

@media (max-width: 600px) {
    .an-brand { gap: 0.5rem; }
    .an-brand__big { font-size: 1.75rem; }
    .an-brand__small { font-size: 0.6rem; letter-spacing: 0.26em; padding: 4px 0; }
}

/* Barre d'annonce — comme Adem (fond noir, texte blanc, orange = accent) */
.announcement-bar {
    background: var(--akram-black) !important;
    color: #FFFFFF !important;
}

.announcement-bar .ticker-track,
.announcement-bar .ticker-item,
.announcement-bar .ticker-item span {
    color: #FFFFFF !important;
}

.announcement-bar .ticker-sep {
    color: var(--akram-primary) !important;
}

.bar-track-btn {
    background: var(--akram-primary);
    color: #fff;
}

.bar-lang-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #FFFFFF;
    padding: 3px 10px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bar-lang-btn:hover {
    background: var(--akram-primary);
    border-color: var(--akram-primary);
}

/* Menu mobile */
.mobile-nav-list {
    list-style: none;
    padding: 1.5rem 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-nav-list li a {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.5rem;
    color: var(--akram-black);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.mobile-nav-list li a i {
    color: var(--akram-primary);
    width: 20px;
    text-align: center;
}

.mobile-nav-list li a:hover {
    background: var(--akram-ivory);
    color: var(--akram-primary);
}

.mobile-nav-footer {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.mobile-nav-footer a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    color: var(--akram-black);
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-nav-footer a:hover {
    background: var(--akram-primary);
    color: #fff;
    border-color: var(--akram-primary);
}

/* Hero : si image seule, pas de scrim lourd */
.hero-slider {
    background: var(--akram-black);
}

.hero-slide img {
    object-fit: contain;
    background: var(--akram-black);
}

/* Catégories : accent orange sur boutons filtres actifs */
.cs-filters .fb.on {
    background: var(--akram-primary);
    color: #fff;
    border-color: var(--akram-primary);
}

.cs-filters .fb:hover {
    border-color: var(--akram-primary);
    color: var(--akram-primary);
}

/* Catégorie card : flèche orange */
.cc-cta {
    color: var(--akram-primary);
}

.cc-tag {
    background: var(--akram-primary);
    color: #fff;
}

/* Brands section */
.brands-section {
    padding: 4rem 1.5rem;
    background: var(--akram-ivory);
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.brands-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.brands-title {
    font-family: 'Bebas Neue', 'Impact', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    letter-spacing: 0.08em;
    color: var(--akram-black);
    text-align: center;
    margin: 0 0 2.5rem;
    text-transform: uppercase;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

.brands-grid img {
    max-width: 120px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.6);
    transition: filter 0.3s ease;
}

.brands-grid img:hover {
    filter: grayscale(0%) opacity(1);
}

/* Featured products section */
.featured-section {
    padding: 4rem 1.5rem;
    background: var(--akram-paper);
}

.featured-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

/* Footer */
.site-footer {
    background: var(--akram-black);
    color: rgba(255,255,255,0.75);
    padding: 4rem 1.5rem 2rem;
    font-family: 'DM Sans', sans-serif;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .footer-logo-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    display: block;
}

.footer-brand p {
    font-style: italic;
    color: rgba(255,255,255,0.65);
    margin: 0 0 1.5rem;
    max-width: 280px;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-social a:hover {
    background: var(--akram-primary);
    border-color: var(--akram-primary);
}

.site-footer .footer-col h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    color: #fff;
    margin: 0 0 1.25rem;
    text-transform: uppercase;
    font-weight: 400;
}

.site-footer .footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.site-footer .footer-col ul li a,
.site-footer .footer-col ul li {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-footer .footer-col ul li a:hover {
    color: var(--akram-primary);
}

.site-footer .footer-contact i {
    color: var(--akram-primary);
    width: 18px;
}

.footer-bottom {
    max-width: 1280px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
}

.footer-bottom p { margin: 0; }

/* Responsive */
@media (max-width: 900px) {
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 600px) {
    .footer-inner { grid-template-columns: 1fr; }
    .brands-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .brands-grid img { max-width: 90px; max-height: 50px; }
}

/* Produits générés (compatibilité avec app.js) */
.product-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 0;
    overflow: hidden;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.product-card:hover {
    border-color: var(--akram-black);
}

.product-image-wrapper,
.product-card .product-image-wrapper {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--akram-ivory);
}

.product-image-wrapper img,
.product-card .product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image { transform: scale(1.04); }

.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
}

.product-badges .badge {
    display: inline-block;
    padding: 4px 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1;
}

.badge-new { background: var(--akram-primary); color: #fff; }
.badge-sale { background: var(--akram-black); color: #fff; }
.badge-out { background: #999; color: #fff; }

.product-quick-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 2;
}

.product-card:hover .product-quick-actions { opacity: 1; }

.quick-action-btn {
    width: 34px;
    height: 34px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    color: var(--akram-black);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.quick-action-btn:hover {
    background: var(--akram-primary);
    color: #fff;
    border-color: var(--akram-primary);
}

.product-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.product-category-tag {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--akram-primary);
}

.product-name {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--akram-black);
    margin: 0;
    line-height: 1.35;
}

.product-name a {
    color: var(--akram-black);
    text-decoration: none;
}

.product-name a:hover { color: var(--akram-primary); }

.product-rating .stars {
    color: var(--akram-primary);
    font-size: 0.78rem;
}

.product-rating .rating-text {
    color: rgba(0,0,0,0.5);
    font-size: 0.75rem;
    margin-left: 0.3rem;
}

.product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.product-price .current-price {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--akram-black);
    letter-spacing: 0.04em;
}

.product-price .old-price {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    color: rgba(0,0,0,0.4);
    text-decoration: line-through;
    margin-left: 0.4rem;
}

.product-price-row .discount-badge {
    background: var(--akram-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 3px 7px;
    text-transform: uppercase;
}

.btn-add-cart {
    margin-top: 0.5rem;
    width: 100%;
    padding: 0.8rem;
    background: var(--akram-black);
    color: #fff;
    border: none;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-add-cart:hover { background: var(--akram-primary); }

.btn-add-cart[disabled] { opacity: 0.5; cursor: not-allowed; }

/* =====================================================================
   OVERRIDE GLOBAL — tout ce qui était blanc devient noir Akram
   ===================================================================== */

/* Toutes les sections principales */
section, main, article, aside {
    background-color: transparent;
}

/* Cartes et conteneurs — fond blanc, bord rouge/noir */
.product-card,
.coach-block,
.coach-card,
.order-info-card,
.no-products,
.cart-item,
.detail-item,
.delivery-option .option-content,
.size-options .size-option,
.product-images .main-image,
.product-info-details,
.price-inputs input,
.form-control,
.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group select,
.form-group textarea,
.sort-select,
.coach-choice span,
.quick-action-btn,
.image-zoom,
.thumbnail-images img,
.quantity-selector input,
.quantity-selector {
    background-color: var(--akram-paper) !important;
    color: var(--akram-text);
    border-color: var(--akram-rule);
}

/* Order summary — fond crème */
.order-summary-card {
    background: var(--akram-ivory) !important;
    color: var(--akram-text);
}

/* Textes */
h1, h2, h3, h4, h5, h6,
.page-title, .section-title, .success-title,
.cart-item-name, .cart-item-price,
.product-title, .summary-title,
.filter-title, .option-label,
.cc-name, .cs-brand, .brands-title,
.option-title, .option-price,
.coach-block legend,
.detail-item .detail-value,
.product-price-large .current-price,
.product-price .current-price,
.product-name, .product-name a {
    color: var(--akram-text) !important;
}

/* Textes secondaires */
.summary-row, .cart-item-variant,
.breadcrumb, .an-breadcrumb,
.product-description-text,
.no-products p,
.coach-note,
.section-subtitle,
.filter-option,
.product-rating .rating-text,
.detail-item .detail-label,
.an-page-hero__count,
.footer-contact,
.hmb-stat-label {
    color: var(--akram-text-muted) !important;
}

/* Vieillis / dim */
.product-price-large .old-price,
.product-price .old-price,
.cs-count,
.ticker-item {
    color: var(--akram-text-dim) !important;
}

/* Backgrounds hérités — forcer tout en blanc/clair */
.bg-white, .bg-light, .bg-surface,
[style*="background:var(--bg-white)"],
[style*="background:var(--bg-light)"],
[style*="background: var(--bg-light)"],
[style*="background:var(--bg-surface)"] {
    background: var(--akram-paper) !important;
    color: var(--akram-text) !important;
}

[style*="background:white"],
[style*="background: white"],
[style*="background:#fff"],
[style*="background: #fff"],
[style*="background:#FFF"],
[style*="background: #FFF"],
[style*="background:#FFFFFF"],
[style*="background: #FFFFFF"] {
    background: var(--akram-paper) !important;
    color: var(--akram-text) !important;
}

/* Bordures light */
[style*="border-light"] { border-color: var(--akram-rule) !important; }

/* Breadcrumb section et page hero */
.breadcrumb-section,
.an-page-hero {
    background: var(--akram-ivory) !important;
    border-bottom-color: var(--akram-rule);
}

/* Mobile menu (fond noir premium — comme Adem) */
.navbar-mobile {
    position: fixed !important;
    top: 0 !important;
    left: -100% !important;
    width: 78% !important;
    max-width: 400px !important;
    height: 100dvh !important;
    background: #0A0A0A !important;
    color: #FFFFFF !important;
    display: flex !important;
    flex-direction: column !important;
    transition: left .35s cubic-bezier(.4,0,.2,1) !important;
    z-index: 999999 !important;
    overflow-y: auto !important;
    box-shadow: 10px 0 60px rgba(0,0,0,0.55) !important;
    padding: 0 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.navbar-mobile.active { left: 0 !important; }

/* Supprimer les décorations ::before/::after de Adem qui peuvent masquer les clics */
.navbar-mobile::before,
.navbar-mobile::after {
    display: none !important;
    content: none !important;
}

/* Tout le contenu interne doit rester cliquable */
.navbar-mobile *,
.mobile-menu-header *,
.mobile-nav-list,
.mobile-nav-list *,
.mobile-nav-footer,
.mobile-nav-footer * {
    position: relative;
    z-index: 2;
    pointer-events: auto !important;
}

/* Overlay sombre derrière le menu (NON cliquable, juste visuel) */
body.menu-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999998;
    pointer-events: auto;
    cursor: pointer;
}

/* Header du menu mobile */
.mobile-menu-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 1.5rem 1.25rem !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    flex-shrink: 0;
}

.mobile-menu-header .logo .an-brand__big { color: #FFFFFF !important; font-size: 1.75rem; }
.mobile-menu-header .logo .an-brand__small { color: var(--akram-primary) !important; }

.mobile-close-btn {
    width: 36px;
    height: 36px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #FFFFFF !important;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-close-btn:hover {
    background: var(--akram-primary);
    border-color: var(--akram-primary);
}

.mobile-close-btn svg { width: 18px; height: 18px; }

/* Liste des liens */
.mobile-nav-list {
    list-style: none !important;
    padding: 1.25rem 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    flex: 1;
}

.mobile-nav-list li { padding: 0 !important; margin: 0 !important; }

.mobile-nav-list li a {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    padding: 1rem 1.5rem !important;
    color: #FFFFFF !important;
    font-family: 'Bebas Neue', 'Impact', sans-serif !important;
    font-size: 1.05rem !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
    transition: all 0.2s ease !important;
}

.mobile-nav-list li a i {
    color: var(--akram-primary) !important;
    width: 22px;
    text-align: center;
    font-size: 1rem;
}

.mobile-nav-list li a:hover,
.mobile-nav-list li a:focus {
    background: rgba(255, 138, 0,0.1) !important;
    color: var(--akram-primary) !important;
    padding-left: 1.75rem !important;
}

/* Footer du menu mobile — social */
.mobile-nav-footer {
    position: static !important;
    display: flex !important;
    justify-content: center !important;
    gap: 1rem !important;
    padding: 1.5rem 1rem !important;
    border-top: 1px solid rgba(255,255,255,0.1) !important;
    background: transparent !important;
    flex-shrink: 0;
}

.mobile-nav-footer a {
    width: 42px !important;
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 50% !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.mobile-nav-footer a:hover {
    background: var(--akram-primary) !important;
    border-color: var(--akram-primary) !important;
    color: #FFFFFF !important;
}

/* Header (blanc) */
.header {
    background: var(--akram-paper) !important;
    border-bottom: 1px solid var(--akram-rule);
}

.header.scrolled {
    background: var(--akram-paper) !important;
}

.header a, .header .nav-item a {
    color: var(--akram-text) !important;
}

.header .nav-item a:hover {
    color: var(--akram-primary) !important;
}

.header .icons a,
.header .icons button {
    color: var(--akram-text) !important;
}

.icon-shopping-bag {
    stroke: var(--akram-text) !important;
}

/* Hero slider */
.hero-slider {
    background: var(--akram-paper) !important;
}

/* Nouveau Hero éditorial (home) */
.an-home-hero {
    background: var(--akram-paper);
    padding: 5rem 1.5rem 6rem;
    border-bottom: 1px solid var(--akram-rule);
    position: relative;
    overflow: hidden;
}

/* Si l'admin a défini une image de fond — hero plein cadre avec texte centré */
.an-home-hero.has-image {
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #0A0A0A;
    padding: 0 !important;
    color: #FFFFFF;
    min-height: 520px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Overlay sombre pour la lisibilité du texte */
.an-home-hero.has-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(0,0,0,calc(var(--hero-overlay, 0.4) * 0.6)) 0%,
        rgba(0,0,0,var(--hero-overlay, 0.4)) 100%);
    z-index: 1;
    pointer-events: none;
    display: block;
    width: 100%;
    aspect-ratio: auto;
}

.an-home-hero.has-image::after { display: none !important; }

/* Le texte au-dessus de l'image, centré */
.an-home-hero.has-image .an-home-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 3rem 1.5rem;
    max-width: 900px;
    margin: 0 auto;
    min-height: auto;
    gap: 1.25rem;
    background: transparent;
    width: 100%;
    align-items: center;
}

.an-home-hero.has-image .an-home-hero__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
}

.an-home-hero.has-image .an-home-hero__kicker {
    margin: 0 auto;
    color: #FFFFFF !important;
    border-color: #FFFFFF !important;
}

.an-home-hero.has-image .an-home-hero__title {
    color: #FFFFFF !important;
    text-shadow: 0 2px 20px rgba(0,0,0,0.7);
    margin: 0;
    line-height: 1;
}

.an-home-hero.has-image .an-home-hero__title em,
.an-home-hero.has-image .an-home-hero__title span { color: #FFFFFF !important; }

.an-home-hero.has-image .an-home-hero__title .orange {
    color: var(--akram-primary) !important;
    text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}

.an-home-hero.has-image .an-home-hero__lead {
    color: rgba(255,255,255,0.92) !important;
    margin: 0 auto;
    max-width: 600px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}

.an-home-hero.has-image .an-home-hero__cta {
    justify-content: center;
    margin-top: 0.5rem;
}

.an-home-hero.has-image .an-btn--link {
    color: #FFFFFF !important;
    border-color: #FFFFFF !important;
}

.an-home-hero.has-image .an-btn--link:hover {
    color: var(--akram-primary) !important;
    border-color: var(--akram-primary) !important;
}

.an-home-hero.has-image .an-home-hero__visual { display: none !important; }

@media (max-width: 768px) {
    .an-home-hero.has-image { min-height: 400px; }
    .an-home-hero.has-image .an-home-hero__inner { padding: 2rem 1rem; gap: 0.9rem; }
}

@media (max-width: 480px) {
    .an-home-hero.has-image { min-height: 320px; }
}

.an-home-hero::before {
    content: 'AN';
    position: absolute;
    top: 50%;
    right: 3%;
    transform: translateY(-50%);
    font-family: 'Bebas Neue', 'Impact', sans-serif;
    font-size: clamp(10rem, 25vw, 22rem);
    color: var(--akram-primary);
    opacity: 0.07;
    line-height: 1;
    letter-spacing: -0.03em;
    pointer-events: none;
    font-weight: 400;
}

.an-home-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
    min-height: 400px;
}

.an-home-hero__text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.an-home-hero__kicker {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--akram-primary);
    display: inline-block;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--akram-primary);
    width: fit-content;
}

.an-home-hero__title {
    font-family: 'Bebas Neue', 'Impact', sans-serif;
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 0.95;
    letter-spacing: 0.02em;
    color: var(--akram-black);
    margin: 0;
    text-transform: uppercase;
    font-weight: 400;
}

.an-home-hero__title .orange {
    color: var(--akram-primary);
}

.an-home-hero__title em {
    display: block;
    font-style: italic;
    font-family: 'Dancing Script', 'Caveat', cursive;
    font-weight: 500;
    font-size: clamp(1.75rem, 3.8vw, 2.75rem);
    letter-spacing: 0;
    text-transform: none;
    color: var(--akram-black);
    margin-top: 0.4em;
    line-height: 1.1;
}

.an-home-hero__lead {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--akram-text-muted);
    max-width: 480px;
    margin: 0;
}

.an-home-hero__cta {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    flex-wrap: wrap;
}

.an-home-hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.an-home-hero__logo {
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: 50%;
    filter: drop-shadow(0 0 40px rgba(255, 138, 0,0.25));
}

@media (max-width: 900px) {
    .an-home-hero { padding: 3rem 1rem 4rem; }
    .an-home-hero__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: left;
        min-height: auto;
    }
    .an-home-hero__visual { order: -1; max-width: 280px; margin: 0 auto; }
    .an-home-hero__logo { max-width: 100%; }
    .an-home-hero__title { font-size: clamp(2.5rem, 10vw, 3.5rem); }
}

@media (max-width: 480px) {
    .an-home-hero { padding: 2rem 1rem 3rem; }
    .an-home-hero__title { font-size: 2.25rem; }
    .an-home-hero__title em { font-size: 1.5rem; }
    .an-home-hero__cta { flex-direction: column; align-items: stretch; }
    .an-home-hero__cta .an-btn { justify-content: center; }
}

/* Categories section */
.cs {
    background: var(--akram-paper) !important;
    color: var(--akram-text);
}

.cs-brand, .cs-voir {
    color: var(--akram-text) !important;
}

.cs-voir:hover {
    color: var(--akram-primary) !important;
}

.cs-filters .fb {
    background: var(--akram-paper) !important;
    color: var(--akram-text) !important;
    border: 1px solid var(--akram-rule) !important;
}

.cs-filters .fb:hover {
    border-color: var(--akram-primary) !important;
    color: var(--akram-primary) !important;
}

.cs-filters .fb.on {
    background: var(--akram-primary) !important;
    color: #fff !important;
    border-color: var(--akram-primary) !important;
}

/* Category cards (home) — image pleine + overlay transparent avec texte blanc */
.cc {
    background: #111 !important;
    border: none !important;
    color: #FFFFFF !important;
    overflow: hidden !important;
    position: relative !important;
    aspect-ratio: 1 / 1 !important;
    display: block !important;
    text-decoration: none !important;
    cursor: pointer;
    border-radius: 0;
}

.cc-img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;      /* IMAGE ENTIÈRE visible — pas coupée */
    object-position: center !important;
    display: block !important;
    background: #111 !important;
    filter: brightness(0.95) !important;
    transition: transform 0.4s ease, filter 0.3s ease !important;
}

.cc:hover .cc-img {
    transform: scale(1.05) !important;
    filter: brightness(0.75) !important;
}

/* Dégradé sombre en bas pour lisibilité du texte */
.cc::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 35%, transparent 60%) !important;
    z-index: 1 !important;
    pointer-events: none;
}

.cc-info {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 2 !important;
    background: transparent !important;      /* TRANSPARENT comme demandé */
    color: #FFFFFF !important;
    padding: 1rem 1rem 1.1rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.25rem !important;
    border-top: none !important;
}

.cc-name {
    color: #FFFFFF !important;
    font-family: 'Bebas Neue', 'Impact', sans-serif !important;
    font-size: 1.1rem !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.cc-n {
    color: var(--akram-primary) !important;
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.cc-cta {
    color: var(--akram-primary) !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
    margin-top: 0.3rem !important;
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.25s ease;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.cc:hover .cc-cta {
    opacity: 1;
    transform: translateY(0);
}

/* Badge "Bundle" / tag */
.cc-tag {
    position: absolute !important;
    top: 0.6rem !important;
    right: 0.6rem !important;
    z-index: 3 !important;
    background: var(--akram-primary) !important;
    color: #FFFFFF !important;
    padding: 4px 10px !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    border-radius: 0 !important;
}

/* Brand section (home) */
.brands-section {
    background: var(--akram-ivory) !important;
    border-top: 1px solid var(--akram-rule);
    border-bottom: 1px solid var(--akram-rule);
}

.brands-title {
    color: var(--akram-text) !important;
}

.brands-grid img {
    filter: grayscale(100%) opacity(0.65) !important;
    transition: filter 0.25s ease;
}

.brands-grid img:hover {
    filter: grayscale(0%) opacity(1) !important;
}

/* Featured section */
.featured-section {
    background: var(--akram-paper) !important;
}

/* Logo centered properly in dark bg */
.footer-brand .footer-logo-img {
    background: var(--akram-paper);
}

/* Links universal */
a:not(.an-btn):not(.btn):not(.btn-primary):not(.btn-secondary):not(.btn-outline):not(.cs-filters .fb):not(.hero-shop-btn) {
    color: inherit;
}

/* Hamburger bars (noir sur fond blanc en Adem) */
.menu-toggle .burger-line {
    background: var(--akram-text) !important;
    height: 2px !important;
    border-radius: 2px;
}

.menu-toggle {
    background: transparent !important;
    border: 1px solid var(--akram-rule) !important;
    border-radius: 6px !important;
    display: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    position: relative;
    z-index: 10001;
}

.menu-toggle:hover { background: var(--akram-ivory) !important; }

/* Burger croisé quand actif */
.menu-toggle.active .burger-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

.menu-toggle.active .burger-line:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 1024px) {
    .menu-toggle { display: flex !important; }
}

/* =====================================================================
   PAGES INTERNES — shop, cart, product, checkout, coach
   ===================================================================== */

body { background: var(--akram-paper) !important; color: var(--akram-text); }

/* Container générique */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Breadcrumb */
.breadcrumb-section,
.an-page-hero {
    padding: 2rem 0 1.5rem;
    background: var(--akram-ivory);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.breadcrumb-section > .container,
.an-page-hero > .container { padding: 0 1.5rem; }

.breadcrumb,
.an-breadcrumb {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.breadcrumb a,
.an-breadcrumb a {
    color: rgba(0,0,0,0.5);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover,
.an-breadcrumb a:hover { color: var(--akram-primary); }

.breadcrumb .active,
.an-breadcrumb .active { color: var(--akram-black); }

/* Page hero title + meta */
.an-page-hero__grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: end;
}

.an-page-hero__title,
.page-title {
    font-family: 'Bebas Neue', 'Impact', sans-serif;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    letter-spacing: 0.05em;
    color: var(--akram-black);
    text-transform: uppercase;
    font-weight: 400;
    line-height: 1;
    margin: 0.25rem 0 0;
}

.an-page-hero__meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
    text-align: right;
}

.an-page-hero__count {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(0,0,0,0.6);
    margin: 0;
    font-weight: 600;
}

.an-page-hero__sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.an-page-hero__sort label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(0,0,0,0.5);
    font-weight: 600;
}

.sort-select {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    padding: 0.5rem 1.75rem 0.5rem 0.75rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    color: var(--akram-black);
    cursor: pointer;
    border-radius: 0;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A0A0A' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
}

/* Buttons génériques */
.an-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.9rem 1.75rem;
    border-radius: 0;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.an-btn--solid,
.btn-primary {
    background: var(--akram-primary);
    color: #fff;
    border-color: var(--akram-primary);
}

.an-btn--solid:hover,
.btn-primary:hover {
    background: var(--akram-primary-dark);
    border-color: var(--akram-primary-dark);
    color: #fff;
}

.an-btn--link {
    background: transparent;
    color: var(--akram-black);
    border: none;
    border-bottom: 1px solid var(--akram-black);
    padding: 0.25rem 0;
    border-radius: 0;
}

.an-btn--link:hover {
    color: var(--akram-primary);
    border-color: var(--akram-primary);
}

.btn-secondary,
.btn-outline {
    background: transparent;
    color: var(--akram-black);
    border: 1px solid var(--akram-black);
    padding: 0.9rem 1.75rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-secondary:hover,
.btn-outline:hover {
    background: var(--akram-black);
    color: #fff;
}

.btn-lg { padding: 1.05rem 2rem; font-size: 0.88rem; }
.btn-block { width: 100%; }

/* ========== SHOP ========== */
.an-shop,
.shop-section { padding: 2.5rem 0 4rem; background: var(--akram-paper); }

.shop-layout,
.an-shop__layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.shop-sidebar,
.an-shop__sidebar {
    position: sticky;
    top: 1rem;
    padding: 1.5rem;
    background: var(--akram-ivory) !important;
    border: 1px solid var(--akram-rule) !important;
    border-radius: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: fit-content;
    color: var(--akram-text);
}

.shop-sidebar .filter-section,
.an-shop__sidebar .filter-section,
.filter-section,
.an-filter {
    padding-bottom: 1.25rem !important;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--akram-rule) !important;
    background: transparent !important;
}

.filter-section:last-of-type,
.an-filter:last-of-type {
    border-bottom: none !important;
    margin-bottom: 0;
}

.shop-sidebar .filter-title,
.an-shop__sidebar .filter-title,
.filter-title {
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.2em !important;
    text-transform: uppercase !important;
    color: var(--akram-text) !important;
    margin: 0 0 1rem !important;
    font-weight: 400 !important;
    padding-bottom: 0.4rem !important;
    border-bottom: 2px solid var(--akram-primary) !important;
    display: inline-block !important;
    background: transparent !important;
}

.shop-sidebar .filter-options,
.an-shop__sidebar .filter-options,
.filter-options {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.15rem !important;
    background: transparent !important;
}

.shop-sidebar .filter-option,
.an-shop__sidebar .filter-option,
.filter-option {
    display: flex !important;
    align-items: center !important;
    gap: 0.6rem !important;
    padding: 0.4rem 0.5rem !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 0.85rem !important;
    color: var(--akram-text-muted) !important;
    cursor: pointer !important;
    border-radius: 3px !important;
    background: transparent !important;
    transition: all 0.15s ease !important;
    margin: 0 !important;
}

.shop-sidebar .filter-option:hover,
.an-shop__sidebar .filter-option:hover,
.filter-option:hover {
    color: var(--akram-text) !important;
    background: var(--akram-paper) !important;
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
    accent-color: var(--akram-primary);
    width: 14px;
    height: 14px;
}

.filter-option span {
    color: inherit !important;
}

.filter-option .sub-option,
.sub-option {
    padding-left: 1rem !important;
    margin-left: 0 !important;
    position: relative;
    font-size: 0.8rem !important;
    color: var(--akram-text-dim) !important;
}

.filter-option .sub-option::before,
.sub-option::before {
    content: '└';
    position: absolute;
    left: 0;
    color: var(--akram-primary);
    opacity: 0.6;
}

.filter-option:has(input:checked) {
    color: var(--akram-primary) !important;
    background: rgba(255, 138, 0,0.1) !important;
    font-weight: 600;
}

.filter-option:has(input:checked) .sub-option {
    color: var(--akram-primary) !important;
}

/* Price inputs force dark */
.price-filter,
.an-price-filter {
    background: transparent !important;
}

.price-inputs span {
    color: var(--akram-text-muted);
}

.price-inputs input {
    background: var(--akram-paper) !important;
    color: var(--akram-text) !important;
    border: 1px solid var(--akram-rule) !important;
}

.price-inputs input::placeholder {
    color: var(--akram-text-dim);
}

.price-filter {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.price-inputs {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.price-inputs input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 0;
    font-size: 0.85rem;
    outline: none;
    font-family: 'DM Sans', sans-serif;
}

.price-inputs input:focus { border-color: var(--akram-primary); }

.filter-toggle { display: none; }

@media (max-width: 900px) {
    .shop-layout,
    .an-shop__layout { grid-template-columns: 1fr; }
    .shop-sidebar,
    .an-shop__sidebar {
        position: static;
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid rgba(0,0,0,0.08);
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }
    .filter-toggle { display: inline-flex !important; }
    .shop-sidebar .filter-section,
    .an-shop__sidebar .an-filter {
        display: none;
    }
    .shop-sidebar.is-open .filter-section,
    .an-shop__sidebar.is-open .an-filter,
    .shop-sidebar.is-open #resetFilters,
    .an-shop__sidebar.is-open #resetFilters { display: flex; flex-direction: column; }
}

/* ========== CART ========== */
.cart-section { padding: 2.5rem 0 4rem; background: var(--akram-paper); }

.page-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--akram-black);
    margin: 0 0 2rem;
    font-weight: 400;
    line-height: 1;
}

.checkout-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 2.5rem;
    padding: 1.25rem 0;
    border-top: 1px solid rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.checkout-steps .step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0.4;
    transition: opacity 0.2s;
}

.checkout-steps .step.active { opacity: 1; }

.checkout-steps .step-number {
    width: 30px;
    height: 30px;
    background: transparent;
    color: var(--akram-black);
    border: 1.5px solid var(--akram-black);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
}

.checkout-steps .step.active .step-number {
    background: var(--akram-primary);
    color: #fff;
    border-color: var(--akram-primary);
}

.checkout-steps .step-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.checkout-steps .step-line {
    flex: 1;
    height: 1px;
    background: rgba(0,0,0,0.1);
    margin: 0 1rem;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.cart-items-section { background: var(--akram-paper); }

.cart-items {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.cart-item {
    display: grid;
    grid-template-columns: 90px 1fr auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.cart-item img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    background: var(--akram-ivory);
    border: 1px solid rgba(0,0,0,0.06);
}

.cart-item-name {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    color: var(--akram-black);
    font-size: 0.95rem;
}

.cart-item-variant {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(0,0,0,0.5);
    margin-top: 0.2rem;
}

.cart-item-price {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    color: var(--akram-black);
}

.order-summary-section { position: sticky; top: 1rem; }

.order-summary-card {
    background: var(--akram-ivory);
    border: 1px solid rgba(0,0,0,0.08);
    padding: 1.75rem;
}

.summary-title,
.order-summary-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--akram-black);
    margin: 0 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--akram-primary);
    font-weight: 400;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: rgba(0,0,0,0.7);
}

.summary-row.total-row {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    color: var(--akram-black);
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    letter-spacing: 0.04em;
    font-weight: 400;
}

.summary-row.total-row .total-amount { color: var(--akram-primary); }

.no-products {
    text-align: center;
    padding: 4rem 2rem;
    border: 1px solid rgba(0,0,0,0.08);
    background: var(--akram-ivory);
}

.no-products h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.75rem;
    color: var(--akram-black);
    margin: 1rem 0 0.5rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.no-products p { color: rgba(0,0,0,0.6); margin-bottom: 1.5rem; }

/* Delivery options */
.delivery-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.delivery-option { cursor: pointer; position: relative; }

.delivery-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.delivery-option .option-content {
    padding: 0.85rem;
    border: 1.5px solid rgba(0,0,0,0.1);
    background: #fff;
    text-align: center;
    transition: all 0.2s ease;
}

.delivery-option input:checked + .option-content {
    border-color: var(--akram-primary);
    background: rgba(255, 138, 0,0.08);
}

.delivery-option .option-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.delivery-option .option-title i { color: var(--akram-primary); margin-right: 0.3rem; }

.delivery-option .option-price {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
}

/* Form groups */
.form-group {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--akram-black);
    font-weight: 600;
}

.form-control,
.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group select,
.form-group textarea {
    padding: 0.8rem 1rem;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--akram-black);
    outline: none;
    width: 100%;
    transition: border-color 0.2s ease;
}

.form-control:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--akram-primary); }

/* ========== PRODUCT DETAIL ========== */
.product-section { padding: 2.5rem 0 4rem; background: var(--akram-paper); }

.product-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.product-images .main-image {
    position: relative;
    overflow: hidden;
    background: var(--akram-ivory);
    border: 1px solid rgba(0,0,0,0.06);
}

.product-images .main-image img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.image-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    z-index: 2;
}

.image-badges .badge {
    padding: 0.3rem 0.65rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    line-height: 1;
}

.image-zoom {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: #fff;
    color: var(--akram-black);
    border: 1px solid rgba(0,0,0,0.1);
    display: grid;
    place-items: center;
    cursor: pointer;
}

.thumbnail-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.thumbnail-images img {
    aspect-ratio: 1/1;
    object-fit: cover;
    background: var(--akram-ivory);
    border: 1px solid rgba(0,0,0,0.1);
    cursor: pointer;
}

.thumbnail-images img:hover,
.thumbnail-images img.active { border-color: var(--akram-primary); }

.product-info-details { display: flex; flex-direction: column; gap: 1rem; }

.product-category-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--akram-primary);
    font-weight: 700;
}

.product-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    letter-spacing: 0.04em;
    color: var(--akram-black);
    margin: 0.25rem 0;
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
}

.product-rating {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.product-price-large {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 0.5rem 0;
}

.product-price-large .current-price {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: var(--akram-black);
    font-weight: 400;
    line-height: 1;
}

.product-price-large .old-price {
    font-size: 1.1rem;
    color: rgba(0,0,0,0.4);
    text-decoration: line-through;
}

.product-price-large .discount-badge {
    background: var(--akram-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    padding: 0.3rem 0.6rem;
    text-transform: uppercase;
}

.product-description-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(0,0,0,0.7);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.product-option {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.5rem;
}

.option-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--akram-black);
    font-weight: 600;
}

.color-options,
.size-options { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.size-options .size-option {
    min-width: 44px;
    padding: 0.6rem 0.9rem;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.15);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--akram-black);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.size-options .size-option:hover { border-color: var(--akram-primary); }

.size-options .size-option.active {
    background: var(--akram-black);
    color: #fff;
    border-color: var(--akram-black);
}

.quantity-selector {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--akram-black);
}

.quantity-selector .qty-btn {
    width: 40px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--akram-black);
}

.quantity-selector .qty-btn:hover { background: var(--akram-black); color: #fff; }

.quantity-selector input {
    width: 50px;
    height: 44px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--akram-black);
    border-right: 1px solid var(--akram-black);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    outline: none;
    background: transparent;
}

.product-actions {
    display: flex;
    gap: 0.75rem;
    padding-top: 1rem;
}

.product-actions .btn { flex: 1; }

/* ========== CHECKOUT SUCCESS ========== */
.checkout-success-section {
    padding: 3rem 0 4rem;
    background: var(--akram-paper);
}

.success-container { max-width: 900px; margin: 0 auto; text-align: center; }

.success-icon-badge {
    width: 80px;
    height: 80px;
    background: var(--akram-primary);
    color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    position: relative;
}

.success-icon-badge::before,
.success-icon-badge::after {
    content: '';
    position: absolute;
    inset: -8px;
    border: 1px solid var(--akram-primary);
    border-radius: 50%;
    opacity: 0.3;
}

.success-icon-badge::after { inset: -16px; opacity: 0.15; }

.success-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--akram-black);
    font-weight: 400;
    margin: 0 0 1rem;
    line-height: 1;
}

.order-info-card {
    background: var(--akram-ivory);
    border: 1px solid rgba(0,0,0,0.08);
    padding: 2rem;
    margin: 2rem 0;
    text-align: left;
}

.order-number-header {
    text-align: center;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid var(--akram-primary);
    margin-bottom: 1.5rem;
}

.order-number-header span {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(0,0,0,0.5);
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.order-number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: var(--akram-primary);
    letter-spacing: 0.12em;
    font-weight: 400;
}

.order-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.detail-item {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    align-items: flex-start;
}

.detail-item i { color: var(--akram-primary); margin-top: 2px; }

.detail-item .detail-label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(0,0,0,0.5);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.detail-item .detail-value {
    display: block;
    font-size: 0.95rem;
    color: var(--akram-black);
    font-weight: 500;
}

/* ========== COACH ========== */
.coach-section,
.section-header { padding: 2.5rem 0; background: var(--akram-paper); }

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: 0.05em;
    color: var(--akram-black);
    font-weight: 400;
    text-transform: uppercase;
    text-align: center;
    line-height: 1;
    margin: 0 0 1rem;
}

.section-subtitle {
    text-align: center;
    color: rgba(0,0,0,0.6);
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto;
}

.coach-form { max-width: 860px; margin: 2rem auto; padding: 0 1rem; }

.coach-block {
    border: 1px solid rgba(0,0,0,0.1);
    background: #fff;
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    border-radius: 0;
}

.coach-block legend {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--akram-black);
    background: #fff;
}

.coach-step {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    background: var(--akram-primary);
    color: #fff;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.9rem;
    border-radius: 0;
}

.coach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.1rem;
    margin-top: 0.5rem;
}

.coach-choices { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.coach-choice { flex: 1; min-width: 140px; cursor: pointer; }

.coach-choice input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.coach-choice span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.85rem 1rem;
    min-height: 48px;
    border: 1.5px solid rgba(0,0,0,0.1);
    background: #fff;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    color: var(--akram-black);
    transition: all 0.2s ease;
}

.coach-choice input:checked + span {
    border-color: var(--akram-primary);
    background: rgba(255, 138, 0,0.08);
    color: var(--akram-primary);
}

.coach-choice--card span { flex-direction: column; gap: 0.3rem; padding: 1rem 0.75rem; }
.coach-choice--card i { font-size: 1.3rem; color: var(--akram-primary); }

#coachSubmit,
.coach-form button[type="submit"] {
    width: 100%;
    padding: 1.1rem 2rem;
    background: var(--akram-primary);
    border: none;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    cursor: pointer;
    margin-top: 1rem;
    border-radius: 0;
}

#coachSubmit:hover { background: var(--akram-primary-dark); }

.coach-note {
    text-align: center;
    color: rgba(0,0,0,0.5);
    font-size: 0.82rem;
    margin-top: 1rem;
}

.coach-note i { color: var(--akram-primary); margin-right: 0.3rem; }

.coach-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    max-width: 860px;
    margin-inline: auto;
}

.coach-form input[type="range"] { accent-color: var(--akram-primary); }

.required { color: var(--akram-primary); }

/* =====================================================================
   RESPONSIVE — adapté à toutes les tailles d'écran
   ===================================================================== */

/* === Tablette (<1024px) : hamburger apparaît === */
@media (max-width: 1024px) {
    .navbar-desktop { display: none !important; }
    .menu-toggle { display: flex !important; }

    .header {
        padding: 0.75rem 1rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .header .logo { margin: 0 auto; }

    .cs-grid.g4 { grid-template-columns: 1fr 1fr 1fr !important; }
}

/* === Grand mobile (<768px) === */
@media (max-width: 768px) {
    .announcement-bar {
        padding: 0.4rem 0.5rem !important;
        font-size: 0.68rem !important;
    }
    .ticker-item { font-size: 0.68rem !important; }

    .header {
        padding: 0.5rem 0.75rem !important;
    }

    .cs { padding: 2.5rem 1rem !important; }
    .cs-grid { gap: 0.75rem !important; }
    .cs-grid.g4 { grid-template-columns: 1fr 1fr !important; }

    .brands-section { padding: 2.5rem 1rem !important; }
    .brands-grid { gap: 1.5rem !important; }

    .featured-section { padding: 2.5rem 1rem !important; }

    .cart-layout,
    .product-layout,
    .shop-layout,
    .an-shop__layout { grid-template-columns: 1fr !important; gap: 1.5rem !important; }

    .shop-sidebar,
    .an-shop__sidebar {
        position: static !important;
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .order-summary-section { position: static !important; }
    .cart-item { grid-template-columns: 70px 1fr !important; gap: 0.75rem !important; }
    .cart-item img { width: 70px !important; height: 70px !important; }
    .product-actions { flex-direction: column !important; }
    .thumbnail-images { grid-template-columns: repeat(4, 1fr) !important; }

    .checkout-steps { padding: 0.75rem 0 !important; margin-bottom: 1.5rem !important; }
    .checkout-steps .step { gap: 0.4rem !important; }
    .checkout-steps .step-label { font-size: 0.68rem !important; }
    .checkout-steps .step-line { margin: 0 0.4rem !important; }
    .checkout-steps .step-number { width: 26px !important; height: 26px !important; font-size: 0.8rem !important; }

    .delivery-options { grid-template-columns: 1fr !important; }

    .an-page-hero,
    .breadcrumb-section { padding: 1.5rem 1rem !important; }
    .an-page-hero > .container,
    .breadcrumb-section > .container { padding: 0 !important; }
    .an-page-hero__grid { grid-template-columns: 1fr !important; gap: 1rem !important; }
    .an-page-hero__meta { align-items: flex-start !important; text-align: left !important; }

    .page-title,
    .an-page-hero__title { font-size: 1.8rem !important; }

    .coach-form { padding: 0 0.75rem !important; }
    .coach-block { padding: 1.25rem !important; }
    .coach-grid { grid-template-columns: 1fr !important; gap: 0.75rem !important; }

    .product-title { font-size: 1.5rem !important; }
    .product-price-large .current-price { font-size: 1.75rem !important; }

    .footer-inner { grid-template-columns: 1fr !important; gap: 1.5rem !important; padding: 0 1rem 2rem !important; }
    .site-footer { padding: 2.5rem 0 1.5rem !important; }
    .footer-bottom { flex-direction: column !important; gap: 0.5rem !important; text-align: center !important; padding: 0 1rem !important; }

    .product-section,
    .cart-section,
    .checkout-success-section,
    .an-shop,
    .shop-section { padding: 1.5rem 0 3rem !important; }

    .product-section > .container,
    .cart-section > .container,
    .checkout-success-section > .container,
    .shop-section > .container,
    .an-shop > .container { padding: 0 1rem !important; }

    .success-container { padding: 0 !important; }
    .order-info-card { padding: 1.25rem !important; }
    .order-details-grid { grid-template-columns: 1fr !important; gap: 0.75rem !important; }
}

/* === Petit mobile (<480px) === */
@media (max-width: 480px) {
    .cs-grid.g4 { grid-template-columns: 1fr !important; }
    .cs-filters { gap: 0.4rem !important; }
    .cs-filters .fb { padding: 0.4rem 0.75rem !important; font-size: 0.72rem !important; }
    .brands-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 1.25rem !important; }
    .brands-grid img { max-width: 80px !important; max-height: 45px !important; }
    .announcement-bar { padding: 0.3rem 0.4rem !important; }
    .bar-track-btn { width: 32px; height: 32px; font-size: 0.9rem; }
    .cart-item { grid-template-columns: 60px 1fr !important; }
    .cart-item img { width: 60px !important; height: 60px !important; }

    .an-brand__big { font-size: 1.5rem !important; }
    .an-brand__small { font-size: 0.55rem !important; letter-spacing: 0.25em !important; }

    .page-title,
    .an-page-hero__title { font-size: 1.6rem !important; }

    .section-title { font-size: 1.5rem !important; }
}

/* RTL support */
html[dir="rtl"] body {
    font-family: 'Cairo', 'DM Sans', sans-serif;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4 {
    font-family: 'Cairo', 'Bebas Neue', sans-serif;
}
