/* HighVap Finitions 1.0.1 — recette visuelle du 27/11/2026.
   Tout ce fichier se désactive avec l'extension. */

:root {
    --hvf-seashell: #FFF4E6;
    --hvf-cream: #FFE6BF;
    --hvf-orange: #FFB747;
    --hvf-violet: #BA97FF;
    --hvf-green: #9CD357;
    --hvf-nero: #232323;
}

/* ---------- Fiches produits : retour dans la grille commune de 1 240 px ---------- */
@media (min-width: 881px) {
    body.hvf .hv-single-product__grid.hv-shell {
        width: min(1240px, calc(100% - 48px)) !important;
        max-width: 1240px !important;
        grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr) !important;
        gap: 48px !important;
        align-items: start;
    }
    body.hvf .hv-single-product__gallery,
    body.hvf .hv-single-product__gallery .woocommerce-product-gallery,
    body.hvf .hv-single-product__gallery .woocommerce-product-gallery__wrapper {
        height: auto !important;
        max-height: none !important;
    }
}
body.hvf .hv-single-product__gallery .woocommerce-product-gallery__image {
    aspect-ratio: 1 / 1;
    height: auto !important;
    max-height: none !important;
    overflow: hidden;
}
body.hvf .hv-single-product__gallery .woocommerce-product-gallery__image > a,
body.hvf .hv-single-product__gallery .woocommerce-product-gallery__image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
}

/* ---------- Accueil : cartes de catégories avec les illustrations v2 ---------- */
@media (min-width: 881px) {
    body.hvf .hv-category-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    }
    body.hvf .hv-category-grid > .hv-category { grid-column: span 2; }
    body.hvf .hv-category-grid > .hv-category:nth-child(4):nth-last-child(2),
    body.hvf .hv-category-grid > .hv-category:nth-child(5):last-child { grid-column: span 3; }
    body.hvf .hv-category-grid > .hv-category:nth-child(n+4) .hvf-art { aspect-ratio: 24 / 10; }
}
@media (min-width: 521px) and (max-width: 880px) {
    body.hvf .hv-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 880px) {
    body.hvf .hv-category-grid > .hv-category:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
}
body.hvf .hv-category__glyph.hvf-art {
    display: block;
    position: relative;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    aspect-ratio: 16 / 10;
    margin: 4px 0 18px;
    border-radius: 22px;
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 26%, var(--hvf-c1) 0 18%, transparent 18.5%),
        radial-gradient(circle at 16% 84%, var(--hvf-c2) 0 12%, transparent 12.5%),
        var(--hvf-seashell);
}
body.hvf .hv-category__glyph.hvf-art img {
    position: absolute;
    inset: 6% 10%;
    width: 80% !important;
    height: 88% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain;
    filter: drop-shadow(0 10px 14px rgba(35, 35, 35, .12));
    transition: transform .25s ease;
}
body.hvf a.hv-category:hover .hvf-art img,
body.hvf a.hv-category:focus-visible .hvf-art img { transform: scale(1.04); }
body.hvf .hvf-art--e-liquides { --hvf-c1: var(--hvf-orange); --hvf-c2: var(--hvf-violet); }
body.hvf .hvf-art--materiel { --hvf-c1: var(--hvf-violet); --hvf-c2: var(--hvf-orange); }
body.hvf .hvf-art--accessoires { --hvf-c1: var(--hvf-green); --hvf-c2: var(--hvf-orange); }
body.hvf .hvf-art--diy { --hvf-c1: var(--hvf-orange); --hvf-c2: var(--hvf-green); }
body.hvf .hvf-art--vaporisateurs { --hvf-c1: var(--hvf-violet); --hvf-c2: var(--hvf-green); }

/* ---------- Accueil : sélection en 3 colonnes (6 produits = 2 lignes pleines) ---------- */
@media (min-width: 881px) {
    body.hvf .hv-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

/* ---------- Accueil : plan de Sablé sur crème, sans voile lilas ---------- */
body.hvf .hv-local__map { background-color: var(--hvf-seashell) !important; }
body.hvf .hv-local__map::after { display: none !important; }

/* ---------- Catalogue : 2 produits par ligne sur mobile, cartes compactes ---------- */
@media (max-width: 520px) {
    body.hvf .hv-collection__grid,
    body.hvf.term-vaporisateurs .hv-collection__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }
    body.hvf .hv-collection-card__copy { padding: 10px 10px 12px !important; }
    body.hvf .hv-collection-card__copy h2 {
        font-size: 15px !important;
        line-height: 1.25 !important;
    }
    body.hvf .hv-collection-card__footer {
        flex-wrap: wrap;
        gap: 4px 8px !important;
    }
}
/* Étiquette de type : hauteur réservée même vide, pour aligner les titres. */
body.hvf .hv-collection-card__copy > p:first-child { min-height: 1.5em; }

/* Filtres du catalogue (ajoutés par finitions.js). */
.hvf-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 18px;
}
.hvf-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 16px;
    border: 1.5px solid var(--hvf-nero);
    border-radius: 999px;
    background: #fff;
    color: var(--hvf-nero);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.hvf-chip:hover { background: var(--hvf-cream); }
.hvf-chip[aria-pressed="true"] { background: var(--hvf-nero); color: #fff; }
.hvf-chip:focus-visible { outline: 3px solid var(--hvf-violet); outline-offset: 2px; }
.hvf-filters__label {
    font-size: 13px;
    font-weight: 700;
    margin-right: 4px;
}
.hv-collection-card.hvf-hidden { display: none !important; }

/* ---------- Tailles de texte : 12 px minimum pour les étiquettes, 14 px pour les phrases ---------- */
body.hvf .hv-notice__inner span,
body.hvf .hv-kicker,
body.hvf .hv-collection__kicker,
body.hvf .hv-category__index,
body.hvf .hv-product-card__info p,
body.hvf .hv-product-card__meta span,
body.hvf .hv-local__map span,
body.hvf .hv-collection-card__copy > p:first-child,
body.hvf .hv-collection-card__status,
body.hvf .hv-collection-card__variants,
body.hvf .hv-footer__legal p,
body.hvf dt { font-size: 12px !important; }
body.hvf a.hv-category p,
body.hvf .hv-responsible__inner p,
body.hvf dd { font-size: 14px !important; }
body.hvf .hv-cart-count { font-size: 11px !important; }

/* ---------- Cibles tactiles (44 px) sans changer l'apparence ---------- */
@media (max-width: 880px) {
    body.hvf .woocommerce-breadcrumb a,
    body.hvf .hv-text-link,
    body.hvf .hv-page__back,
    body.hvf .hv-local a,
    body.hvf .hv-responsible a {
        display: inline-block;
        padding-block: 12px;
        margin-block: -12px;
    }
}

/* ---------- Menu mobile : voile et page figée ---------- */
/* Le voile est un élément du body, sous l'en-tête (z-index 40) qui a un backdrop-filter. */
.hvf-veil {
    position: fixed;
    inset: 0;
    z-index: 39;
    background: rgba(35, 35, 35, .45);
}
.hvf-veil[hidden] { display: none; }
html.hvf-menu-open { overflow: hidden !important; }

/* ---------- Message d'ajout au panier ---------- */
body.hvf .woocommerce-message {
    border: 1px solid rgba(35, 35, 35, .12) !important;
    border-left: 4px solid var(--hvf-green) !important;
    border-radius: 14px;
    background: #fff;
    box-shadow: none !important;
}

/* ---------- Fiches mobiles : barre d'achat fixe ---------- */
.hvf-buybar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: var(--hvf-seashell);
    border-top: 1px solid rgba(35, 35, 35, .14);
    box-shadow: 0 -6px 18px rgba(35, 35, 35, .08);
    transform: translateY(110%);
    transition: transform .2s ease;
}
.hvf-buybar.is-visible { transform: none; }
.hvf-buybar__price {
    font-size: 18px;
    font-weight: 800;
    color: var(--hvf-nero);
    white-space: nowrap;
}
.hvf-buybar__price small {
    display: block;
    font-size: 12px;
    font-weight: 600;
}
.hvf-buybar__btn {
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: var(--hvf-orange);
    color: var(--hvf-nero);
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}
.hvf-buybar__btn:focus-visible { outline: 3px solid var(--hvf-nero); outline-offset: 2px; }
@media (min-width: 881px) { .hvf-buybar { display: none; } }
body.hvf-has-buybar { padding-bottom: 76px; }
@media (min-width: 881px) { body.hvf-has-buybar { padding-bottom: 0; } }
