/* =====================================================================
 * Fichier : assets/css/main.css
 * Projet  : Brennholz Shop24
 * Thème   : « Fresh Green Store » — blanc lumineux, vert vif, jaune promo,
 *           cartes arrondies, boutons pilule, typographie Roboto.
 * Rôle    : Charte graphique globale : variables, typographie, boutons,
 *           formulaires, sections, cartes produits, badges, placeholders,
 *           toasts, animations, utilitaires.
 *           Chargé sur toutes les pages (avant le CSS propre à la page).
 *
 * Remarque : les noms historiques des variables (--hfk-flame, --hfk-amber,
 * --hfk-charcoal …) sont conservés pour que tous les fichiers CSS des pages
 * et de l'administration héritent automatiquement de la nouvelle palette :
 *   flame  = vert principal   amber = jaune promo   ember = rouge (erreurs)
 *   cream/sand/ash = gris clairs   charcoal = texte foncé neutre
 * ===================================================================== */

/* ---------------------------------------------------------------------
 * 1. VARIABLES
 * ------------------------------------------------------------------- */
:root {
    /* Couleurs principales (palette de la maquette) */
    --hfk-green: #22A64B;
    --hfk-green-dark: #178A3B;
    --hfk-green-deep: #0F6B2D;
    --hfk-green-light: #E8F6EC;
    --hfk-green-soft: #F2FAF4;
    --hfk-yellow: #FFE32B;
    --hfk-yellow-dark: #F2C900;
    --hfk-yellow-light: #FFF9D1;

    /* Alias historiques (utilisés par tous les fichiers CSS) */
    --hfk-flame: var(--hfk-green);
    --hfk-flame-dark: var(--hfk-green-dark);
    --hfk-flame-light: var(--hfk-green-light);
    --hfk-ember: #E5383B;
    --hfk-ember-dark: #C1121F;
    --hfk-amber: var(--hfk-yellow);
    --hfk-amber-light: var(--hfk-yellow-light);
    --hfk-forest: var(--hfk-green);
    --hfk-forest-dark: var(--hfk-green-dark);
    --hfk-sky: #1E88E5;
    --hfk-plum: #7E57C2;

    /* Neutres */
    --hfk-charcoal: #1E2124;
    --hfk-charcoal-2: #2A2E33;
    --hfk-charcoal-3: #3A3F45;
    --hfk-cream: #F6F7F8;
    --hfk-sand: #EFF1F3;
    --hfk-ash: #E7EAED;
    --hfk-text: #2B2F33;
    --hfk-muted: #6B7178;
    --hfk-border: #E4E7EA;
    --hfk-placeholder: #EEF0F2;
    --hfk-white: #FFFFFF;
    --hfk-page-bg: #FFFFFF;

    /* Dégradés (sobres, dans les verts) */
    --hfk-grad-fire: linear-gradient(135deg, #2BB656 0%, #22A64B 55%, #178A3B 100%);
    --hfk-grad-fire-h: linear-gradient(90deg, #22A64B, #2BB656);
    --hfk-grad-ember: linear-gradient(135deg, #22A64B 0%, #178A3B 100%);
    --hfk-grad-night: linear-gradient(160deg, #1E2124 0%, #121416 100%);
    --hfk-grad-forest: linear-gradient(135deg, #22A64B 0%, #0F6B2D 100%);
    --hfk-grad-soft: linear-gradient(180deg, #F6F7F8 0%, #FFFFFF 100%);

    /* Typographie */
    --hfk-font-body: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    --hfk-font-head: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

    /* Formes & effets */
    --hfk-radius-sm: 8px;
    --hfk-radius: 14px;
    --hfk-radius-lg: 22px;
    --hfk-radius-pill: 999px;
    --hfk-shadow-xs: 0 1px 3px rgba(20, 30, 40, .06);
    --hfk-shadow-sm: 0 4px 14px rgba(20, 30, 40, .06);
    --hfk-shadow: 0 10px 30px rgba(20, 30, 40, .08);
    --hfk-shadow-lg: 0 20px 50px rgba(20, 30, 40, .12);
    --hfk-shadow-fire: 0 10px 24px rgba(34, 166, 75, .28);
    --hfk-shadow-card: 0 2px 10px rgba(20, 30, 40, .06);
    --hfk-ease: cubic-bezier(.22, 1, .36, 1);
    --hfk-ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
    --hfk-speed: .3s;

    /* Mise en page */
    --hfk-header-h: 76px;
    --hfk-section-y: clamp(3.25rem, 6.5vw, 6rem);

    /* Bootstrap */
    --bs-body-font-family: var(--hfk-font-body);
    --bs-body-color: var(--hfk-text);
    --bs-body-bg: var(--hfk-white);
    --bs-link-color: var(--hfk-green-dark);
    --bs-link-color-rgb: 23, 138, 59;
    --bs-link-hover-color: var(--hfk-green);
    --bs-border-radius: 10px;
    --bs-border-radius-sm: 8px;
    --bs-border-radius-lg: 14px;
    --bs-border-color: var(--hfk-border);
    --bs-primary: #22A64B;
    --bs-primary-rgb: 34, 166, 75;
    --bs-success: #22A64B;
    --bs-success-rgb: 34, 166, 75;
}

/* ---------------------------------------------------------------------
 * 2. BASE
 * ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--hfk-font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--hfk-text);
    background: var(--hfk-page-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--hfk-font-head);
    font-weight: 700;
    line-height: 1.22;
    color: var(--hfk-charcoal);
    letter-spacing: -.005em;
}
h1, .h1 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); font-weight: 800; }
h2, .h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); }
h3, .h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }

p { margin-bottom: 1rem; }
a { color: var(--hfk-green-dark); text-decoration: none; transition: color var(--hfk-speed) var(--hfk-ease); }
a:hover { color: var(--hfk-green); }
img { max-width: 100%; height: auto; }
strong, b { font-weight: 700; }
::selection { background: var(--hfk-green); color: #fff; }

:focus-visible { outline: 3px solid rgba(34, 166, 75, .45); outline-offset: 2px; }

.skip-link {
    position: absolute; left: 1rem; top: -60px; z-index: 3000; border-radius: var(--hfk-radius-pill);
    background: var(--hfk-green); color: #fff; padding: .6rem 1.1rem; font-weight: 600;
    transition: top .2s;
}
.skip-link:focus { top: 1rem; color: #fff; }

.site-main { display: block; min-height: 50vh; outline: none; }

.container-xxl { padding-left: clamp(1rem, 3vw, 1.75rem); padding-right: clamp(1rem, 3vw, 1.75rem); }

/* Barre de progression de lecture */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 2000; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 0; background: var(--hfk-green); border-radius: 0 3px 3px 0; }

/* ---------------------------------------------------------------------
 * 3. BOUTONS (pilule)
 * ------------------------------------------------------------------- */
.btn {
    --bs-btn-border-radius: var(--hfk-radius-pill);
    border-radius: var(--hfk-radius-pill);
    font-family: var(--hfk-font-head);
    font-weight: 500;
    letter-spacing: .01em;
    padding: .75rem 1.6rem;
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    position: relative; overflow: hidden; isolation: isolate;
    transition: transform var(--hfk-speed) var(--hfk-ease), box-shadow var(--hfk-speed) var(--hfk-ease),
                background-color var(--hfk-speed), color var(--hfk-speed), border-color var(--hfk-speed);
}
.btn-sm { padding: .5rem 1.05rem; font-size: .88rem; }
.btn-lg { padding: .95rem 2.1rem; font-size: 1.05rem; }
.btn:active { transform: translateY(1px) scale(.99); }

.btn-hfk {
    color: #fff; border: 2px solid var(--hfk-green); background: var(--hfk-green);
    box-shadow: 0 4px 14px rgba(34, 166, 75, .25);
}
.btn-hfk:hover, .btn-hfk:focus-visible {
    color: #fff; background: var(--hfk-green-dark); border-color: var(--hfk-green-dark);
    transform: translateY(-2px); box-shadow: var(--hfk-shadow-fire);
}
.btn-hfk:disabled, .btn-hfk.disabled { color: #fff; opacity: .6; }

.btn-hfk-outline { color: var(--hfk-green-dark); background: #fff; border: 2px solid var(--hfk-green); }
.btn-hfk-outline:hover, .btn-hfk-outline:focus-visible { color: #fff; background: var(--hfk-green); border-color: var(--hfk-green); transform: translateY(-2px); }

.btn-hfk-dark { color: #fff; background: var(--hfk-charcoal); border: 2px solid var(--hfk-charcoal); }
.btn-hfk-dark:hover, .btn-hfk-dark:focus-visible { color: #fff; background: var(--hfk-charcoal-3); border-color: var(--hfk-charcoal-3); transform: translateY(-2px); }

.btn-hfk-light { color: var(--hfk-charcoal); background: #fff; border: 2px solid #fff; box-shadow: var(--hfk-shadow-sm); }
.btn-hfk-light:hover, .btn-hfk-light:focus-visible { color: var(--hfk-green-dark); background: #fff; border-color: #fff; transform: translateY(-2px); box-shadow: var(--hfk-shadow); }

.btn-hfk-green { color: #fff; background: var(--hfk-green); border: 2px solid var(--hfk-green); }
.btn-hfk-green:hover, .btn-hfk-green:focus-visible { color: #fff; background: var(--hfk-green-dark); border-color: var(--hfk-green-dark); transform: translateY(-2px); }

.btn-hfk-yellow { color: var(--hfk-charcoal); background: var(--hfk-yellow); border: 2px solid var(--hfk-yellow); }
.btn-hfk-yellow:hover, .btn-hfk-yellow:focus-visible { color: var(--hfk-charcoal); background: var(--hfk-yellow-dark); border-color: var(--hfk-yellow-dark); transform: translateY(-2px); }

.btn-hfk-ghost { color: var(--hfk-text); background: var(--hfk-cream); border: 2px solid var(--hfk-cream); }
.btn-hfk-ghost:hover, .btn-hfk-ghost:focus-visible { color: var(--hfk-green-dark); background: var(--hfk-green-light); border-color: var(--hfk-green-light); }

/* Bouton rond (icône seule) — ex. panier des cartes produit */
.btn-round {
    width: 44px; height: 44px; padding: 0; border-radius: 50%; flex: 0 0 auto;
    display: inline-grid; place-items: center; font-size: 1rem;
}

.btn.is-loading { pointer-events: none; color: transparent !important; }
.btn.is-loading::before {
    content: ''; position: absolute; width: 1.15rem; height: 1.15rem; left: calc(50% - .575rem); top: calc(50% - .575rem);
    border: 2px solid rgba(255, 255, 255, .55); border-top-color: #fff; border-radius: 50%;
    animation: hfk-spin .7s linear infinite;
}
.btn-hfk-outline.is-loading::before, .btn-hfk-light.is-loading::before { border-color: rgba(34, 166, 75, .3); border-top-color: var(--hfk-green); }
.btn.is-success { background: var(--hfk-green-dark) !important; border-color: var(--hfk-green-dark) !important; color: #fff !important; }

/* Lien fléché */
.link-arrow { font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; color: var(--hfk-green-dark); }
.link-arrow i { transition: transform var(--hfk-speed) var(--hfk-ease); }
.link-arrow:hover i { transform: translateX(5px); }

/* ---------------------------------------------------------------------
 * 4. FORMULAIRES
 * ------------------------------------------------------------------- */
.form-control, .form-select {
    border-radius: 10px; border: 1.5px solid var(--hfk-border); padding: .72rem 1rem;
    font-size: .97rem; color: var(--hfk-text); background-color: #fff;
    transition: border-color var(--hfk-speed), box-shadow var(--hfk-speed);
}
.form-control:focus, .form-select:focus {
    border-color: var(--hfk-green);
    box-shadow: 0 0 0 4px rgba(34, 166, 75, .14);
}
.form-control::placeholder { color: #A3A9AF; }
.form-label { font-weight: 500; font-size: .92rem; color: var(--hfk-charcoal); margin-bottom: .4rem; }
.form-text { color: var(--hfk-muted); }
.form-check-input { border-radius: 5px; border: 1.5px solid #BFC5CB; }
.form-check-input:checked { background-color: var(--hfk-green); border-color: var(--hfk-green); }
.form-check-input:focus { box-shadow: 0 0 0 4px rgba(34, 166, 75, .14); border-color: var(--hfk-green); }
.form-check-input[type="radio"] { border-radius: 50%; }
.form-switch .form-check-input { border-radius: 2em; }
.is-invalid, .form-control.is-invalid { border-color: var(--hfk-ember) !important; }
.invalid-feedback { color: var(--hfk-ember); font-weight: 500; }

.form-feedback:empty { display: none; }
.form-feedback { margin-top: .75rem; padding: .75rem 1rem; font-size: .92rem; font-weight: 500; border-radius: 10px; border-left: 4px solid; }
.form-feedback.is-success { background: var(--hfk-green-light); border-color: var(--hfk-green); color: var(--hfk-green-deep); }
.form-feedback.is-error { background: #FDECEC; border-color: var(--hfk-ember); color: var(--hfk-ember-dark); }

/* Sélecteur de quantité */
.qty-stepper { display: inline-flex; align-items: stretch; border: 1.5px solid var(--hfk-border); background: #fff; border-radius: var(--hfk-radius-pill); overflow: hidden; }
.qty-stepper button {
    width: 42px; border: 0; background: #fff; color: var(--hfk-charcoal); font-size: .95rem;
    transition: background var(--hfk-speed), color var(--hfk-speed);
}
.qty-stepper button:hover { background: var(--hfk-green); color: #fff; }
.qty-stepper input {
    width: 58px; border: 0; text-align: center; font-weight: 700; font-family: var(--hfk-font-head);
    -moz-appearance: textfield; appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-stepper input:focus { outline: none; }

/* ---------------------------------------------------------------------
 * 5. SECTIONS & TITRES
 * ------------------------------------------------------------------- */
.section { padding: var(--hfk-section-y) 0; position: relative; }
.section-sm { padding: calc(var(--hfk-section-y) * .6) 0; }
.section-cream { background: var(--hfk-cream); }
.section-sand { background: var(--hfk-sand); }
.section-green { background: var(--hfk-green-soft); }
.section-dark { background: var(--hfk-grad-night); color: #D9DDE1; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-fire { background: var(--hfk-grad-fire); color: #fff; }
.section-fire h2, .section-fire h3 { color: #fff; }

.section-head { max-width: 760px; margin: 0 auto 2.75rem; text-align: center; }
.section-head.text-start { margin-left: 0; }
.section-head p { color: var(--hfk-muted); font-size: 1.04rem; }
.section-dark .section-head p { color: #B9C0C7; }

.eyebrow {
    display: inline-flex; align-items: center; gap: .45rem;
    font-family: var(--hfk-font-head); font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--hfk-green-dark); background: var(--hfk-green-light); padding: .38rem .9rem; margin-bottom: 1rem;
    border-radius: var(--hfk-radius-pill);
}
.eyebrow-light { color: #fff; background: rgba(255, 255, 255, .16); }

/* Titre de section façon maquette : centré + petit trait vert */
.section-title { position: relative; padding-bottom: .95rem; margin-bottom: 1rem; }
.section-title::after {
    content: ''; position: absolute; left: 50%; bottom: 0; width: 46px; height: 3px; transform: translateX(-50%);
    background: var(--hfk-green); border-radius: 3px;
}
.text-start .section-title::after, .section-title.text-start::after { left: 0; transform: none; }
.section-dark .section-title::after, .section-fire .section-title::after { background: var(--hfk-yellow); }

.text-gradient { color: var(--hfk-green); background: none; -webkit-text-fill-color: currentColor; }
.lead-lg { font-size: clamp(1.04rem, 1.5vw, 1.15rem); color: var(--hfk-muted); }

/* Cartes génériques */
.hfk-card {
    background: #fff; border: 1px solid var(--hfk-border); padding: clamp(1.25rem, 2.5vw, 2rem);
    border-radius: var(--hfk-radius); box-shadow: var(--hfk-shadow-card);
    transition: transform var(--hfk-speed) var(--hfk-ease), box-shadow var(--hfk-speed) var(--hfk-ease), border-color var(--hfk-speed);
}
.hfk-card:hover { transform: translateY(-4px); box-shadow: var(--hfk-shadow); border-color: transparent; }

.icon-bubble {
    width: 58px; height: 58px; display: inline-grid; place-items: center; font-size: 1.35rem; color: var(--hfk-green);
    background: var(--hfk-green-light); border-radius: 50%;
}

/* ---------------------------------------------------------------------
 * 6. PLACEHOLDER IMAGE
 * ------------------------------------------------------------------- */
.img-ph {
    position: relative; width: 100%; height: 100%; min-height: 120px;
    display: grid; place-items: center; overflow: hidden;
    background: var(--hfk-placeholder); color: rgba(30, 33, 36, .22);
}
.img-ph i { font-size: clamp(1.8rem, 4vw, 3rem); position: relative; z-index: 1; }
.img-ph::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%);
    background-size: 220% 100%; animation: hfk-shimmer 2.6s ease-in-out infinite;
}

/* ---------------------------------------------------------------------
 * 7. BADGES
 * ------------------------------------------------------------------- */
.badge-hfk {
    display: inline-flex; align-items: center; gap: .35rem; font-family: var(--hfk-font-head);
    font-size: .74rem; font-weight: 700; letter-spacing: .02em;
    padding: .3rem .65rem; color: #fff; background: var(--hfk-charcoal); border-radius: var(--hfk-radius-pill);
}
.badge-flame { background: var(--hfk-green); }
.badge-ember { background: var(--hfk-ember); }
.badge-amber { background: var(--hfk-yellow); color: var(--hfk-charcoal); }
.badge-forest { background: var(--hfk-green-dark); }
.badge-sky { background: var(--hfk-sky); }
.badge-plum { background: var(--hfk-plum); }
.badge-muted { background: #8C9399; }

/* Statuts (commandes, paiements, colis) */
.status-pill {
    display: inline-flex; align-items: center; gap: .4rem; padding: .32rem .8rem;
    font-size: .8rem; font-weight: 600; border-radius: var(--hfk-radius-pill);
}
.status-amber { color: #7A6200; background: var(--hfk-yellow-light); }
.status-sky { color: #1565C0; background: #E3F0FC; }
.status-plum { color: #5E35B1; background: #EFE9F8; }
.status-forest { color: var(--hfk-green-deep); background: var(--hfk-green-light); }
.status-flame { color: var(--hfk-green-dark); background: var(--hfk-green-light); }
.status-ember { color: var(--hfk-ember-dark); background: #FDE8E8; }
.status-muted { color: var(--hfk-muted); background: var(--hfk-ash); }

/* Étoiles */
.hfk-stars { display: inline-flex; align-items: center; gap: 2px; color: #FFB400; font-size: .85rem; }
.hfk-stars-count { color: var(--hfk-muted); margin-left: .35rem; font-size: .82rem; }

/* ---------------------------------------------------------------------
 * 8. CARTE PRODUIT (façon maquette : centrée, image claire, bouton rond)
 * ------------------------------------------------------------------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: clamp(.9rem, 1.8vw, 1.5rem); }

.product-card {
    position: relative; display: flex; flex-direction: column; height: 100%;
    background: #fff; border: 1px solid transparent; border-radius: var(--hfk-radius);
    box-shadow: var(--hfk-shadow-card); overflow: hidden;
    transition: transform .4s var(--hfk-ease), box-shadow .4s var(--hfk-ease), border-color .4s;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--hfk-shadow-lg); }

.pc-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #F3F4F6; }
.pc-media-link, .pc-media-link .img-ph { display: block; width: 100%; height: 100%; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--hfk-ease); mix-blend-mode: multiply; }
.product-card:hover .pc-media img { transform: scale(1.06); }
.product-card:hover .img-ph i { color: rgba(34, 166, 75, .45); }

.pc-badges { position: absolute; top: .7rem; left: .7rem; display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; z-index: 2; }
.pc-badge {
    font-family: var(--hfk-font-head); font-size: .74rem; font-weight: 700; letter-spacing: .01em;
    padding: .26rem .55rem; color: #fff; background: var(--hfk-charcoal); border-radius: 6px; line-height: 1.3;
}
/* Remise : pastille jaune comme sur la maquette (« -50% ») */
.pc-badge-sale { background: var(--hfk-yellow) !important; color: var(--hfk-charcoal); }
.pc-badge-new { background: var(--hfk-green); }
.pc-badge-best { background: #fff; color: var(--hfk-charcoal); box-shadow: var(--hfk-shadow-xs); }
.pc-badge-best i { color: #FFB400; }
.pc-badge-pack { background: var(--hfk-green-dark); }

/* Bouton liste d'envies : petit carré clair en haut à droite (comme l'icône « agrandir ») */
.pc-wish {
    position: absolute; top: .65rem; right: .65rem; z-index: 2; width: 34px; height: 34px;
    display: grid; place-items: center; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .92); color: #9AA1A8;
    box-shadow: var(--hfk-shadow-xs); transition: transform var(--hfk-speed) var(--hfk-ease-bounce), color var(--hfk-speed);
}
.pc-wish:hover { transform: scale(1.1); color: var(--hfk-ember); }
.pc-wish .fa-solid, .pc-wish.is-active .fa-regular { display: none; }
.pc-wish.is-active .fa-solid { display: inline-block; color: var(--hfk-ember); animation: hfk-heart .45s var(--hfk-ease-bounce); }

.pc-quick {
    position: absolute; left: 50%; bottom: .75rem; z-index: 2;
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .45rem 1rem;
    font-weight: 500; font-size: .84rem; color: var(--hfk-charcoal); background: rgba(255, 255, 255, .95);
    border-radius: var(--hfk-radius-pill); box-shadow: var(--hfk-shadow-sm); white-space: nowrap;
    transform: translate(-50%, 140%); opacity: 0; transition: transform .4s var(--hfk-ease), opacity .4s, color .3s;
}
.pc-quick:hover { color: var(--hfk-green-dark); }
.product-card:hover .pc-quick, .pc-quick:focus-visible { transform: translate(-50%, 0); opacity: 1; }

.pc-body { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem; padding: 1rem 1rem 1.15rem; flex: 1; }
.pc-category { font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--hfk-green-dark); }
.pc-title { font-size: .95rem; font-weight: 500; line-height: 1.35; margin: 0; }
.pc-title a { color: var(--hfk-text); }
.pc-title a:hover { color: var(--hfk-green-dark); }
.pc-package { font-size: .8rem; color: var(--hfk-muted); }
.pc-package i { color: var(--hfk-green); margin-right: .2rem; }
.pc-stock { font-size: .78rem; font-weight: 500; }
.stock-in { color: var(--hfk-green-dark); }
.stock-low { color: #C77700; }
.stock-out { color: var(--hfk-ember-dark); }
.stock-backorder, .stock-preorder { color: var(--hfk-sky); }

.pc-price { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .15rem .5rem; margin-top: auto; padding-top: .35rem; }
.pc-price-old { font-size: .86rem; color: var(--hfk-muted); text-decoration: line-through; }
.pc-price-now { font-family: var(--hfk-font-head); font-size: 1.2rem; font-weight: 700; color: var(--hfk-charcoal); }
/* Prix soldé : surligné en jaune comme sur la maquette */
.pc-price-now.is-sale { background: var(--hfk-yellow); padding: .05rem .45rem; border-radius: 5px; color: var(--hfk-charcoal); }
.pc-price-unit { font-size: .78rem; color: var(--hfk-muted); }
.pc-base-price { font-size: .75rem; color: var(--hfk-muted); }
.pc-tax { font-size: .7rem; color: #9AA1A8; }
.pc-tax a { color: inherit; text-decoration: underline; }
.pc-actions { margin-top: .65rem; display: flex; justify-content: center; }

/* Bouton panier rond (grille) — le libellé reste lu par les lecteurs d'écran */
:where(.product-grid:not(.is-list), .hfk-slider-track, .product-row) .btn.pc-cart-btn {
    width: 44px; height: 44px; padding: 0; border-radius: 50%; font-size: 1rem; gap: 0;
}
:where(.product-grid:not(.is-list), .hfk-slider-track, .product-row) .btn.pc-cart-btn span {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.pc-cart-btn { min-width: 44px; }

/* Carte compacte (téléphones) : deux cartes par ligne, comme sur la maquette mobile */
@media (max-width: 575.98px) {
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.5rem, 2.6vw, .8rem); }

    :where(.product-grid:not(.is-list)) .pc-badges { top: .45rem; left: .45rem; right: 2.6rem; gap: .25rem; }
    :where(.product-grid:not(.is-list)) .pc-badge { max-width: 100%; font-size: clamp(.58rem, .5rem + .4vw, .68rem); line-height: 1.25; padding: .18rem .4rem; }
    :where(.product-grid:not(.is-list)) .pc-wish { top: .4rem; right: .4rem; width: 28px; height: 28px; font-size: .78rem; }
    :where(.product-grid:not(.is-list)) .pc-quick { display: none; }
    :where(.product-grid:not(.is-list)) .img-ph i { font-size: 1.6rem; }

    :where(.product-grid:not(.is-list)) .pc-body { gap: .25rem; padding: .65rem .55rem .8rem; }
    :where(.product-grid:not(.is-list)) .pc-category { display: none; }
    :where(.product-grid:not(.is-list)) .pc-title { font-size: clamp(.74rem, .6rem + .9vw, .86rem); line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; hyphens: auto; }
    :where(.product-grid:not(.is-list)) .hfk-stars { font-size: .66rem; gap: 1px; }
    :where(.product-grid:not(.is-list)) .hfk-stars-count { font-size: .64rem; margin-left: .2rem; }
    :where(.product-grid:not(.is-list)) .pc-package { display: none; }
    :where(.product-grid:not(.is-list)) .pc-stock { font-size: clamp(.64rem, .56rem + .4vw, .72rem); line-height: 1.35; }

    :where(.product-grid:not(.is-list)) .pc-price { gap: 0 .3rem; padding-top: .15rem; }
    :where(.product-grid:not(.is-list)) .pc-price-old { font-size: clamp(.66rem, .6rem + .4vw, .76rem); }
    :where(.product-grid:not(.is-list)) .pc-price-now { font-size: clamp(.92rem, .75rem + 1vw, 1.08rem); line-height: 1.25; }
    :where(.product-grid:not(.is-list)) .pc-price-unit { font-size: clamp(.62rem, .55rem + .4vw, .7rem); }
    :where(.product-grid:not(.is-list)) .pc-base-price { font-size: clamp(.6rem, .54rem + .35vw, .68rem); }
    :where(.product-grid:not(.is-list)) .pc-tax { font-size: clamp(.58rem, .53rem + .3vw, .66rem); line-height: 1.35; }

    :where(.product-grid:not(.is-list)) .pc-actions { margin-top: .4rem; }
    :where(.product-grid:not(.is-list)) .btn.pc-cart-btn { width: 38px; height: 38px; min-width: 38px; font-size: .9rem; }
}

/* ---------------------------------------------------------------------
 * 9. FIL D'ARIANE (vert, comme la maquette « Головна > … »)
 * ------------------------------------------------------------------- */
.hfk-breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 0; gap: .35rem; font-size: .86rem; }
.hfk-breadcrumb li { display: inline-flex; align-items: center; gap: .35rem; color: var(--hfk-muted); }
.hfk-breadcrumb li + li::before { content: '\f105'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: .68rem; color: var(--hfk-muted); }
.hfk-breadcrumb a { color: var(--hfk-green-dark); }
.hfk-breadcrumb a:hover { color: var(--hfk-green); text-decoration: underline; }
.hfk-breadcrumb [aria-current] { color: var(--hfk-charcoal); font-weight: 500; }

/* En-tête de page intérieure : bannière photo arrondie, titre blanc centré
   (même rendu que le diaporama de la maquette). L'image est fournie par
   includes/header.php via la variable --page-hero-img (Unsplash). */
.page-hero {
    position: relative; overflow: hidden; isolation: isolate;
    margin: 1rem clamp(.75rem, 2.4vw, 1.75rem) 0; border-radius: var(--hfk-radius-lg);
    padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.75rem, 7vw, 5rem);
    background: linear-gradient(180deg, rgba(10, 14, 18, .38) 0%, rgba(10, 14, 18, .6) 100%), var(--page-hero-img, none) center / cover no-repeat, #2A2E33;
    color: #fff; text-align: center;
}
.page-hero::before { display: none !important; }
.page-hero::after {
    content: ''; position: absolute; left: 50%; bottom: 1.2rem; width: 46px; height: 3px; margin-left: -23px;
    background: var(--hfk-green); border-radius: 3px;
}
.page-hero .container-xxl, .page-hero .container { position: relative; }
.page-hero h1 { color: #fff; margin: .7rem auto .8rem; text-shadow: 0 2px 18px rgba(0, 0, 0, .25); max-width: 900px; }
.page-hero p { color: rgba(255, 255, 255, .9); max-width: 700px; margin-left: auto; margin-right: auto; }
.page-hero .hfk-breadcrumb ol { justify-content: center; }
.page-hero .hfk-breadcrumb li, .page-hero .hfk-breadcrumb a { color: rgba(255, 255, 255, .85); }
.page-hero .hfk-breadcrumb li + li::before { color: rgba(255, 255, 255, .6); }
.page-hero .hfk-breadcrumb [aria-current] { color: #fff; }
.page-hero .eyebrow { color: #fff; background: rgba(255, 255, 255, .18); backdrop-filter: blur(6px); }
.page-hero .row, .page-hero [class*="hero-grid"], .page-hero [class*="-layout"] { text-align: left; }

/* ---------------------------------------------------------------------
 * 10. TOASTS (notifications)
 * ------------------------------------------------------------------- */
.hfk-toasts { position: fixed; right: 1rem; bottom: 1rem; z-index: 2600; display: flex; flex-direction: column; gap: .6rem; width: min(380px, calc(100vw - 2rem)); pointer-events: none; }
.hfk-toast {
    pointer-events: auto; display: flex; align-items: flex-start; gap: .75rem; padding: .9rem 1rem;
    background: #fff; box-shadow: var(--hfk-shadow-lg); border-radius: 12px; border-left: 4px solid var(--hfk-green);
    animation: hfk-toast-in .45s var(--hfk-ease) both;
}
.hfk-toast.is-leaving { animation: hfk-toast-out .35s var(--hfk-ease) both; }
.hfk-toast-icon { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; color: #fff; background: var(--hfk-green); border-radius: 50%; }
.hfk-toast-msg { flex: 1; font-size: .92rem; line-height: 1.45; color: var(--hfk-text); padding-top: .25rem; }
.hfk-toast-close { border: 0; background: none; color: var(--hfk-muted); padding: .2rem; }
.hfk-toast-error { border-color: var(--hfk-ember); }
.hfk-toast-error .hfk-toast-icon { background: var(--hfk-ember); }
.hfk-toast-info { border-color: var(--hfk-sky); }
.hfk-toast-info .hfk-toast-icon { background: var(--hfk-sky); }
.hfk-toast-warning { border-color: var(--hfk-yellow-dark); }
.hfk-toast-warning .hfk-toast-icon { background: var(--hfk-yellow); color: var(--hfk-charcoal); }

/* ---------------------------------------------------------------------
 * 11. RETOUR EN HAUT
 * ------------------------------------------------------------------- */
.back-to-top {
    position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 1500; width: 50px; height: 50px;
    display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--hfk-green); color: #fff;
    box-shadow: var(--hfk-shadow-fire); opacity: 0; visibility: hidden; transform: translateY(20px);
    transition: opacity var(--hfk-speed), transform var(--hfk-speed) var(--hfk-ease), visibility var(--hfk-speed), background var(--hfk-speed);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--hfk-green-dark); }
.back-to-top svg { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); transform: rotate(-90deg); }
.back-to-top circle { fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: 2.5; stroke-dasharray: 126; stroke-dashoffset: 126; }
.back-to-top i { position: relative; }
body.has-toasts .back-to-top { opacity: 0; pointer-events: none; }
@media (min-width: 992px) { body.is-locked .hfk-toasts { right: auto; left: 1rem; } }

/* ---------------------------------------------------------------------
 * 12. FLOCONS / PARTICULES (data-embers="n") — neige douce, comme la photo
 * ------------------------------------------------------------------- */
[data-embers] { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ember {
    position: absolute; bottom: -12px; width: 6px; height: 6px; border-radius: 50%;
    background: rgba(255, 255, 255, .85); box-shadow: 0 0 6px rgba(255, 255, 255, .6);
    animation: hfk-ember-rise linear infinite; opacity: 0;
}

/* ---------------------------------------------------------------------
 * 13. UTILITAIRES
 * ------------------------------------------------------------------- */
.text-flame, .text-green { color: var(--hfk-green) !important; }
.text-ember { color: var(--hfk-ember) !important; }
.text-amber { color: #C9A100 !important; }
.text-forest { color: var(--hfk-green-dark) !important; }
.text-muted-hfk { color: var(--hfk-muted) !important; }
.bg-cream { background: var(--hfk-cream) !important; }
.bg-sand { background: var(--hfk-sand) !important; }
.bg-green-soft { background: var(--hfk-green-soft) !important; }
.bg-charcoal { background: var(--hfk-charcoal) !important; }
.fw-800 { font-weight: 800 !important; }
.font-head { font-family: var(--hfk-font-head) !important; }
.rounded-hfk { border-radius: var(--hfk-radius) !important; }
.hover-lift { transition: transform var(--hfk-speed) var(--hfk-ease), box-shadow var(--hfk-speed); }
.hover-lift:hover { transform: translateY(-5px); box-shadow: var(--hfk-shadow); }
.divider-fire { height: 3px; border: 0; opacity: 1; background: var(--hfk-green); margin: 2rem 0; border-radius: 3px; }
.mark-yellow { background: var(--hfk-yellow); padding: 0 .3em; border-radius: 4px; color: var(--hfk-charcoal); }

.empty-state { text-align: center; padding: 3rem 1rem; }
.empty-state-icon {
    width: 96px; height: 96px; margin: 0 auto 1.2rem; display: grid; place-items: center; font-size: 2.2rem;
    color: var(--hfk-green); background: var(--hfk-green-light); border-radius: 50%; animation: hfk-float 3.5s ease-in-out infinite;
}

/* Contenu rédactionnel (CMS, descriptions) */
.rich-text h2 { font-size: clamp(1.3rem, 2.3vw, 1.7rem); margin: 2rem 0 .9rem; }
.rich-text h3 { font-size: 1.18rem; margin: 1.6rem 0 .7rem; }
.rich-text ul { padding-left: 0; list-style: none; }
.rich-text ul li { position: relative; padding-left: 1.7rem; margin-bottom: .45rem; }
.rich-text ul li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; top: .15rem; width: 1.15rem; height: 1.15rem; display: grid; place-items: center; border-radius: 50%; background: var(--hfk-green-light); color: var(--hfk-green); font-size: .62rem; }
.rich-text table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1rem 0; border: 1px solid var(--hfk-border); border-radius: 12px; overflow: hidden; }
.rich-text th, .rich-text td { border-bottom: 1px solid var(--hfk-border); padding: .65rem .85rem; }
.rich-text tr:last-child td { border-bottom: 0; }
.rich-text th { background: var(--hfk-cream); font-weight: 600; }
.rich-text img { border-radius: var(--hfk-radius); }
.rich-text blockquote { border-left: 4px solid var(--hfk-green); background: var(--hfk-green-soft); padding: 1rem 1.25rem; border-radius: 0 12px 12px 0; }

/* Bootstrap : ajustements */
.alert { border-radius: 12px; border-left-width: 4px; }
.alert-success { background: var(--hfk-green-light); border-color: var(--hfk-green); color: var(--hfk-green-deep); }
.modal-content { border-radius: var(--hfk-radius-lg) !important; border: 0; box-shadow: var(--hfk-shadow-lg); }
.dropdown-menu { border-radius: 12px !important; border-color: var(--hfk-border); box-shadow: var(--hfk-shadow); }
.dropdown-item:active { background: var(--hfk-green); }
.card { border-radius: var(--hfk-radius) !important; border-color: var(--hfk-border); }
.accordion-item { border-radius: 12px !important; overflow: hidden; border-color: var(--hfk-border); margin-bottom: .6rem; }
.accordion-item:not(:first-of-type) { border-top: 1px solid var(--hfk-border); }
.accordion-button { border-radius: 12px !important; font-weight: 500; }
.nav-pills .nav-link { border-radius: var(--hfk-radius-pill) !important; color: var(--hfk-text); }
.nav-pills .nav-link.active { background: var(--hfk-green); color: #fff; }
.pagination { gap: .35rem; }
.pagination .page-link { color: var(--hfk-charcoal); border-color: var(--hfk-border); min-width: 42px; height: 42px; display: grid; place-items: center; text-align: center; border-radius: 50% !important; }
.pagination .page-item.active .page-link { background: var(--hfk-green); border-color: var(--hfk-green); color: #fff; }
.pagination .page-link:hover { color: var(--hfk-green-dark); background: var(--hfk-green-light); }
.toast, .tooltip-inner { border-radius: 10px !important; }
.accordion-button:not(.collapsed) { color: var(--hfk-green-dark); background: var(--hfk-green-soft); box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 4px rgba(34, 166, 75, .14); border-color: var(--hfk-green); }
.table { --bs-table-hover-bg: var(--hfk-green-soft); }
.progress { border-radius: var(--hfk-radius-pill); background: var(--hfk-ash); }
.progress-bar { background: var(--hfk-green); }

/* ---------------------------------------------------------------------
 * 14. ANIMATIONS
 * ------------------------------------------------------------------- */
@keyframes hfk-shine { from { left: -120%; } to { left: 140%; } }
@keyframes hfk-spin { to { transform: rotate(360deg); } }
@keyframes hfk-shimmer { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
@keyframes hfk-gradient-pan { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
@keyframes hfk-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes hfk-flicker { 0%, 100% { transform: scale(1) rotate(0); } 30% { transform: scale(1.08) rotate(-3deg); } 60% { transform: scale(.96) rotate(2deg); } }
@keyframes hfk-pulse-soft { 0%, 100% { box-shadow: 0 0 0 0 rgba(34, 166, 75, .4); } 50% { box-shadow: 0 0 0 7px rgba(34, 166, 75, 0); } }
@keyframes hfk-pulse-ring { 0% { transform: scale(.8); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes hfk-glow { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.12); } }
@keyframes hfk-heart { 0% { transform: scale(.4); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes hfk-bounce-in { 0% { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.2); opacity: 1; } 100% { transform: scale(1); } }
@keyframes hfk-toast-in { from { opacity: 0; transform: translateX(40px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes hfk-toast-out { to { opacity: 0; transform: translateX(40px) scale(.96); } }
/* Particules : chute lente façon neige */
@keyframes hfk-ember-rise {
    0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0; }
    10% { opacity: .9; }
    100% { transform: translate3d(var(--ember-drift, 30px), -420px, 0) scale(.4); opacity: 0; }
}
@keyframes hfk-fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes hfk-kenburns { from { transform: scale(1.02); } to { transform: scale(1.1); } }
@keyframes hfk-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Accessibilité : mouvement réduit */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .ember { display: none; }
}

/* ---------------------------------------------------------------------
 * 15. RESPONSIVE
 * ------------------------------------------------------------------- */
@media (max-width: 991.98px) {
    :root { --hfk-header-h: 64px; }
    .section-head { margin-bottom: 2.1rem; }
}
@media (max-width: 575.98px) {
    .btn { padding: .72rem 1.25rem; }
    .hfk-toasts { right: .5rem; left: .5rem; width: auto; bottom: .5rem; }
    .page-hero { margin: .6rem .6rem 0; border-radius: 16px; }
}

/* Impression */
@media print {
    .topbar, .site-header, .footer-newsletter, .footer-benefits, .site-footer, .back-to-top, .cookie-banner, .hfk-toasts, .scroll-progress, .hfk-extra { display: none !important; }
    body { color: #000; }
    .page-hero { background: none !important; color: #000; }
    .page-hero h1 { color: #000; }
}
/* Les animations latérales d'AOS deviennent verticales sous 992 px
   (évite le défilement horizontal sur téléphone). */
@media (max-width: 991.98px) {
    html [data-aos="fade-left"]:not(.aos-animate),
    html [data-aos="fade-right"]:not(.aos-animate) { transform: translate3d(0, 24px, 0); }
}
html { overflow-x: clip; }

/* Bannières à deux colonnes (texte + encadré) : alignement à gauche */
.page-hero:has([class*="-inner"], [class*="-grid"], [class*="-layout"], .row) { text-align: left; }
.page-hero:has([class*="-inner"], [class*="-grid"], [class*="-layout"], .row)::after { display: none; }
.page-hero:has([class*="-inner"], [class*="-grid"], [class*="-layout"], .row) h1,
.page-hero:has([class*="-inner"], [class*="-grid"], [class*="-layout"], .row) p { margin-left: 0; }
.page-hero:has([class*="-inner"], [class*="-grid"], [class*="-layout"], .row) .hfk-breadcrumb ol { justify-content: flex-start; }

/* Couleurs de catégories (administrables) ramenées à la palette verte du thème */
[style*="--cat-color"] { --cat-color: var(--hfk-green) !important; }
[style*="--b-color"] { --b-color: var(--hfk-green) !important; }
[style*="--fuel-color"] { --fuel-color: var(--hfk-green) !important; }
[style*="--w:"] { --w: var(--hfk-green) !important; }

/* Accents de titres en dégradé « texte détouré » : jaune vif sur les bannières photo */
.page-hero h1 span, .page-hero .ab-hero-accent {
    background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important;
    color: var(--hfk-yellow) !important; -webkit-text-fill-color: var(--hfk-yellow) !important; animation: none !important;
}
.page-hero h1 span[data-result-count] { color: #fff !important; -webkit-text-fill-color: #fff !important; }
