/**
 * ALJA — Shop, Category & Single Product Styles
 *
 * Styles premium pour WooCommerce : archive boutique et fiche produit.
 * Mobile-first, BEM, cohérent avec le design system ALJA.
 * Les tokens utilisent les variables globales --wp--preset--* de theme.json.
 *
 * @package ALJA
 * @since   1.1.0
 */

/* ─────────────────────────────────────────────────
   PAGE WRAPPER
   ───────────────────────────────────────────────── */
#alja-shop-main,
#alja-product-main {
    padding-bottom: 4rem;
}

/* ─────────────────────────────────────────────────
   BREADCRUMB (shop & produit)
   ───────────────────────────────────────────────── */
.alja-wc-breadcrumb,
.woocommerce-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    color: var(--wp--preset--color--gray-600);
    padding-block: 1.25rem;
    margin: 0;
}
.alja-wc-breadcrumb a,
.woocommerce-breadcrumb a {
    color: var(--wp--preset--color--gray-600);
    text-decoration: none;
    transition: color var(--alja-trans);
}
.alja-wc-breadcrumb a:hover,
.woocommerce-breadcrumb a:hover { color: var(--alja-primary); }
.alja-breadcrumb-sep { color: var(--wp--preset--color--gray-400); font-size: 0.75rem; }

/* ─────────────────────────────────────────────────
   SHOP HERO — bande sable cohérente avec les pages
   ───────────────────────────────────────────────── */

/* Ajustement de padding pour le hero boutique (plus compact que les autres) */
.alja-shop-hero-section.alja-inner-hero--primary {
    padding-block: 3rem 2rem;
}
/* Supprime le cercle décoratif ::after sur la section boutique */
.alja-shop-hero-section.alja-inner-hero::after {
    display: none;
}


/* Category pills sous le hero — lisibles sur fond sombre (--primary) */
.alja-shop-hero-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-block-start: 1.75rem;
}
.alja-shop-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--wp--custom--border-radius--full);
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all var(--alja-trans);
    white-space: nowrap;
    backdrop-filter: blur(6px);
}
.alja-shop-cat-pill:hover,
.alja-shop-cat-pill.active {
    background: var(--wp--preset--color--white);
    border-color: var(--wp--preset--color--white);
    color: var(--wp--preset--color--primary);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}
.alja-shop-cat-pill__count {
    font-size: 0.6875rem;
    opacity: .8;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.0625rem 0.375rem;
    border-radius: var(--wp--custom--border-radius--full);
}
.alja-shop-cat-pill.active .alja-shop-cat-pill__count {
    background: rgba(58, 138, 106, 0.15);
    color: var(--wp--preset--color--primary);
}

/* ═══════════════════════════════════════════════════
   ARCHIVE LAYOUT — Sidebar + Grille
   ═══════════════════════════════════════════════════ */

/* Sidebar boutique (étend .alja-archive-sidebar de pages.css) */
.alja-shop-sidebar .alja-archive-sidebar__title {
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.alja-shop-sidebar .alja-archive-sidebar__title > span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--wp--preset--font-family--heading);
    font-weight: 700;
    color: var(--wp--preset--color--charcoal);
}

/* ── Controls bar ──────────────────────────────────── */
.alja-shop-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--wp--preset--color--white);
    border: 1px solid var(--wp--preset--color--gray-200);
    border-radius: var(--wp--custom--border-radius--lg);
    margin-bottom: 1.25rem;
    box-shadow: var(--alja-shadow-sm);
}
.alja-shop-controls__count {
    font-size: 0.875rem;
    color: var(--wp--preset--color--gray-600);
    margin: 0;
}
.alja-shop-controls__count strong { color: var(--wp--preset--color--charcoal); font-weight: 700; }
.alja-shop-controls__right {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-wrap: wrap;
}

/* View toggle grid/list */
.alja-shop-view-toggle {
    display: flex;
    gap: 0.25rem;
}
.alja-shop-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1.5px solid var(--wp--preset--color--gray-200);
    border-radius: var(--wp--custom--border-radius--sm);
    background: var(--wp--preset--color--white);
    color: var(--wp--preset--color--gray-400);
    cursor: pointer;
    transition: all var(--alja-trans);
    padding: 0;
}
.alja-shop-view-btn:hover,
.alja-shop-view-btn.active {
    background: var(--wp--preset--color--primary);
    border-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--white);
}

/* Sort select — custom select tied to sidebar filter form */
.alja-shop-sort-select {
    padding: 0.5rem 2rem 0.5rem 0.875rem;
    border: 1.5px solid var(--wp--preset--color--gray-200);
    border-radius: var(--wp--custom--border-radius--md);
    font-family: var(--wp--preset--font-family--body);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--wp--preset--color--charcoal);
    background: var(--wp--preset--color--white)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E")
        no-repeat right 0.625rem center;
    background-size: 0.75rem;
    outline: none;
    appearance: none;
    cursor: pointer;
    transition: border-color var(--alja-trans), box-shadow var(--alja-trans);
    min-width: 160px;
}
.alja-shop-sort-select:focus {
    border-color: var(--alja-primary);
    box-shadow: 0 0 0 3px rgba(58,138,106,.12);
}

/* ── Neutralise les pseudo-éléments WC qui créent un emplacement vide ── */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce .products ul::before,
.woocommerce .products ul::after,
ul.alja-wc-products-grid::before,
ul.alja-wc-products-grid::after {
    display: none !important;
    content: none !important;
}

/* ── Boutique grid — surcharge .alja-products-grid pour la page avec sidebar ── */
/* La boutique utilise maintenant div#ajlaProductsGrid.alja-products-grid         */
/* On surcharge les breakpoints pour limiter à 4 colonnes (sidebar ~260px prend de la place) */
#ajlaProductsGrid {
    display: grid !important;
    grid-template-columns: 1fr !important;        /* mobile < 480px : 1 colonne */
    gap: 1.25rem !important;
    width: 100% !important;
}

@media (min-width: 480px) {
    #ajlaProductsGrid {
        grid-template-columns: repeat(2, 1fr) !important;  /* 480px : 2 colonnes */
    }
}

@media (min-width: 768px) {
    #ajlaProductsGrid {
        grid-template-columns: repeat(3, 1fr) !important;  /* tablette : 3 colonnes */
    }
}

@media (min-width: 1280px) {
    #ajlaProductsGrid {
        grid-template-columns: repeat(4, 1fr) !important;  /* desktop (avec sidebar) : 4 colonnes */
    }
}

/* Cap à 4 colonnes même sur très grands écrans (écrase le repeat(4) de pages.css à 1440px) */
@media (min-width: 1440px) {
    #ajlaProductsGrid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* Supprimer le ul interne éventuel généré par WC */
.alja-archive-main ul.products > li.products,
.alja-archive-main ul.products ul.products {
    display: contents;
}


/* ─────────────────────────────────────────────────────────
   VUE LISTE — Vue horizontale carte produit
   Structure: .alja-product-card-wrap > .alja-product-card + .alja-product-card__wishlist
   ───────────────────────────────────────────────────────── */

/* 1. Grille 1 colonne */
#ajlaProductsGrid.view-list {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
}

/* 2. Wrap = ligne horizontale relative pour positionner wishlist */
#ajlaProductsGrid.view-list .alja-product-card-wrap {
    position: relative;
    border-radius: var(--wp--custom--border-radius--lg);
    overflow: hidden;
    box-shadow: var(--alja-shadow-sm, 0 1px 4px rgba(0,0,0,.06));
    border: 1px solid var(--wp--preset--color--gray-200);
    background: var(--wp--preset--color--white);
}

/* 3. Le lien principal = grille image + contenu, sans border-radius propre */
#ajlaProductsGrid.view-list .alja-product-card {
    display: grid !important;
    grid-template-columns: 160px 1fr !important;
    align-items: stretch !important;
    min-height: 140px;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* 4. Image : taille fixe, overflow strict */
#ajlaProductsGrid.view-list .alja-product-card__image-wrap {
    width: 160px !important;
    aspect-ratio: auto !important;
    height: 100% !important;
    min-height: 140px;
    overflow: hidden !important;
    border-radius: 0 !important;
    flex-shrink: 0;
}
#ajlaProductsGrid.view-list .alja-product-card__image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* 5. Badge reste dans le coin image */
#ajlaProductsGrid.view-list .alja-product-card__badge {
    top: 0.625rem;
    left: 0.625rem;
    z-index: 2;
}

/* 6. Body : colonne flex pour pousser prix/CTA vers le bas */
#ajlaProductsGrid.view-list .alja-product-card__body {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    gap: 0.375rem;
    padding: 1rem 3rem 1rem 1.25rem !important; /* padding-right pour le wishlist */
    min-width: 0;
}

/* 7. Titre plus grand en liste */
#ajlaProductsGrid.view-list .alja-product-card__name {
    font-size: 1rem !important;
    line-height: 1.3 !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
}

/* 8. Description visible en liste (masquée en grille sur mobile) */
#ajlaProductsGrid.view-list .alja-product-card__variants {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    overflow: hidden !important;
    font-size: 0.8125rem;
    color: var(--wp--preset--color--gray-600);
    margin-block: 0.125rem 0.25rem;
}

/* 9. Prix + bouton sur la même ligne en bas */
#ajlaProductsGrid.view-list .alja-product-card__pricing {
    margin-block: 0.25rem 0 !important;
}
#ajlaProductsGrid.view-list .alja-product-card__add-to-cart {
    display: inline-flex !important;
    margin-block-start: 0.5rem;
    width: auto !important;
    align-self: flex-start;
}

/* 10. Wishlist — absolu en haut-droite de la carte */
#ajlaProductsGrid.view-list .alja-product-card__wishlist {
    position: absolute !important;
    top: 0.75rem !important;
    right: 0.75rem !important;
    inset-inline-end: 0.75rem !important;
    z-index: 3;
}

/* Responsive < 520px : image plus petite, layout vertical */
@media (max-width: 520px) {
    #ajlaProductsGrid.view-list .alja-product-card {
        grid-template-columns: 100px 1fr !important;
        min-height: 120px;
    }
    #ajlaProductsGrid.view-list .alja-product-card__image-wrap {
        width: 100px !important;
        min-height: 120px;
    }
    #ajlaProductsGrid.view-list .alja-product-card__body {
        padding: 0.75rem 2.5rem 0.75rem 0.875rem !important;
    }
}


/* ── Carte produit : styles complémentaires ─────────── */
.alja-product-card__body-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Catégorie dans le body */
.alja-product-card__cat-wrap {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--wp--preset--color--primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-block-end: 0.25rem;
}
.alja-product-card__cat { text-decoration: none; }

/* Nom du produit */
.alja-product-card__name-link {
    text-decoration: none;
    color: inherit;
    transition: color var(--alja-trans-fast);
}
.alja-product-card__name-link:hover {
    color: var(--wp--preset--color--primary);
}

/* Rating dans la carte */
.alja-product-card__rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-block-end: 0.25rem;
}
.alja-product-card__review-count {
    font-size: 0.6875rem;
    color: var(--wp--preset--color--gray-600);
}

/* Card footer (prix + CTA) */
.alja-product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 0.875rem;
    border-top: 1px solid var(--wp--preset--color--gray-200);
    background: var(--wp--preset--color--sand-light, #FBF7F2);
    border-radius: 0 0 var(--wp--custom--border-radius--lg) var(--wp--custom--border-radius--lg);
    margin-top: auto;
}

/* Out of stock overlay */
.alja-product-card__out-of-stock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.6);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
}
.alja-product-card__out-of-stock-overlay span {
    background: var(--wp--preset--color--charcoal);
    color: var(--wp--preset--color--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: var(--wp--custom--border-radius--full);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Wishlist sur la carte produit */
.alja-product-card__wishlist {
    position: absolute;
    top: 0.75rem;
    inset-inline-end: 0.75rem;
    z-index: 3;
}

/* Stars shared */
.alja-star { fill: var(--wp--preset--color--gray-200); transition: fill var(--alja-trans); }
.alja-star.filled { fill: var(--wp--preset--color--accent); }
.alja-stars-row { display: inline-flex; align-items: center; gap: 1px; }

/* ── Pagination ────────────────────────────────────────── */
.alja-shop-pagination { margin-top: 2.5rem; text-align: center; }
.alja-shop-pagination .woocommerce-pagination ul {
    display: inline-flex;
    gap: 0.375rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.alja-shop-pagination .woocommerce-pagination li a,
.alja-shop-pagination .woocommerce-pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.375rem;
    height: 2.375rem;
    border: 1.5px solid var(--wp--preset--color--gray-200);
    border-radius: var(--wp--custom--border-radius--md);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--wp--preset--color--charcoal);
    text-decoration: none;
    transition: all var(--alja-trans);
}
.alja-shop-pagination .woocommerce-pagination li a:hover {
    border-color: var(--alja-primary);
    color: var(--alja-primary);
    background: rgba(58,138,106,.06);
}
.alja-shop-pagination .woocommerce-pagination li .current {
    background: var(--alja-primary);
    border-color: var(--alja-primary);
    color: var(--wp--preset--color--white);
}

/* ── État vide ───────────────────────────────────────── */
.alja-shop-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--wp--preset--color--sand-light, #FBF7F2);
    border-radius: var(--wp--custom--border-radius--xl);
    border: 1.5px dashed var(--wp--preset--color--gray-200);
}
.alja-shop-empty__icon { font-size: 3rem; margin-bottom: 1rem; }
.alja-shop-empty__title {
    font-family: var(--wp--preset--font-family--heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wp--preset--color--charcoal);
    margin: 0 0 0.75rem;
}
.alja-shop-empty__text {
    color: var(--wp--preset--color--gray-600);
    margin: 0 auto 1.5rem;
    max-width: 400px;
    line-height: 1.65;
}
.alja-shop-empty__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

/* ═══════════════════════════════════════════════════
   SINGLE PRODUCT — PAGE DÉTAIL
   ═══════════════════════════════════════════════════ */

/* Bande breadcrumb (remplace l'ancien naked breadcrumb) */
.alja-product-breadcrumb-band {
    background: var(--wp--preset--color--sand-light, #FBF7F2);
}
.alja-product-breadcrumb-inner {
    max-width: var(--alja-container-wide);
    margin-inline: auto;
    padding-inline: var(--alja-gutter);
}

/* ── TOP : GALERIE + INFO ──────────────────────────────── */
.alja-product-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-block: 2rem 2.5rem;
    max-width: var(--alja-container-wide);
    margin-inline: auto;
    padding-inline: var(--alja-gutter);
}
@media (min-width: 768px) {
    .alja-product-top {
        grid-template-columns: 52% 1fr;
        gap: 3rem;
        align-items: start;
    }
}
/* Entre 768 et 1023px : image plus compacte, plus d'espace pour les CTAs */
@media (min-width: 768px) and (max-width: 1023px) {
    .alja-product-top {
        grid-template-columns: minmax(0, 360px) 1fr;
        gap: 1.75rem;
    }
}

/* ── Galerie ──────────────────────────────────────────── */
.alja-product-gallery { display: flex; flex-direction: column; gap: 0.875rem; }

.alja-product-gallery__main {
    position: relative;
    border-radius: var(--wp--custom--border-radius--xl);
    overflow: hidden;
    background: var(--wp--preset--color--sand-light, #FBF7F2);
    border: 1px solid var(--wp--preset--color--gray-200);
    aspect-ratio: 1;
    cursor: zoom-in;
}
/* Zoom wrap — remplacement du lien (pas de navigation) */
.alja-product-gallery__zoom-wrap {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    cursor: zoom-in;
    overflow: hidden;
    border-radius: inherit;
}
.alja-product-gallery__main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms ease;
    display: block;
}
.alja-product-gallery__main:hover .alja-product-gallery__main-img,
.alja-product-gallery__zoom-wrap:hover .alja-product-gallery__main-img { transform: scale(1.05); }

/* ── Lightbox (plein écran sur clic, reste sur la page) ── */
.alja-img-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.88);
    backdrop-filter: blur(4px);
    animation: ajlaLightboxIn .22s ease;
}
@keyframes ajlaLightboxIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.alja-img-lightbox[hidden] { display: none; }
.alja-img-lightbox__img {
    max-width: min(92vw, 900px);
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(0,0,0,.5);
    animation: ajlaLightboxScale .22s ease;
}
@keyframes ajlaLightboxScale {
    from { transform: scale(.94); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}
.alja-img-lightbox__close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.15);
    border: 1.5px solid rgba(255,255,255,.3);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: background var(--alja-trans), transform var(--alja-trans);
    backdrop-filter: blur(6px);
}
.alja-img-lightbox__close:hover { background: rgba(255,255,255,.28); transform: scale(1.1); }
.alja-product-gallery__zoom-icon {
    position: absolute;
    bottom: 0.875rem;
    right: 0.875rem;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(6px);
    border-radius: var(--wp--custom--border-radius--md);
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wp--preset--color--charcoal);
    box-shadow: var(--alja-shadow-sm);
    opacity: 0;
    transition: opacity var(--alja-trans);
}
.alja-product-gallery__main:hover .alja-product-gallery__zoom-icon { opacity: 1; }
.alja-product-gallery__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
}
.alja-product-gallery__sale-badge {
    position: absolute;
    top: 0.875rem;
    left: 0.875rem;
    background: var(--wp--preset--color--error, #DC2626);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 0.375rem 0.75rem;
    border-radius: var(--wp--custom--border-radius--full);
    box-shadow: 0 4px 12px rgba(220,38,38,.3);
    z-index: 2;
}
/* Wishlist sur la galerie */
.alja-product-gallery__wishlist {
    position: absolute;
    top: 0.875rem;
    inset-inline-end: 0.875rem;
    z-index: 3;
    width: 2.5rem;
    height: 2.5rem;
}

/* Miniatures */
.alja-product-gallery__thumbs {
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
}
.alja-product-gallery__thumb {
    width: 72px; height: 72px;
    border-radius: var(--wp--custom--border-radius--md);
    overflow: hidden;
    border: 2px solid var(--wp--preset--color--gray-200);
    background: var(--wp--preset--color--sand-light, #FBF7F2);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: border-color var(--alja-trans), box-shadow var(--alja-trans);
}
.alja-product-gallery__thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--alja-trans);
}
.alja-product-gallery__thumb:hover img { transform: scale(1.08); }
.alja-product-gallery__thumb.active {
    border-color: var(--alja-primary);
    box-shadow: 0 0 0 2px rgba(58,138,106,.2);
}

/* ── Panneau info produit ───────────────────────────────── */
.alja-product-info { display: flex; flex-direction: column; gap: 0; }

.alja-product-info__category {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--alja-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 0.5rem;
}
.alja-product-info__category a { color: inherit; text-decoration: none; }

.alja-product-info__title {
    font-family: var(--wp--preset--font-family--heading);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--wp--preset--color--charcoal);
    line-height: 1.15;
    margin: 0 0 0.75rem;
}

.alja-product-info__rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.875rem;
}
.alja-product-info__rating-num {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--wp--preset--color--charcoal);
}
.alja-product-info__review-link {
    font-size: 0.8125rem;
    color: var(--wp--preset--color--gray-600);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--alja-trans);
}
.alja-product-info__review-link:hover { color: var(--alja-primary); }

/* Pas de ligne dans la colonne d'achat — juste de l'espace */
.alja-product-info__divider {
    border: none;
    height: 0;
    margin-block: 0.5rem;
}

/* Prix */
.alja-product-info__price-wrap {
    display: flex;
    align-items: baseline;
    gap: 0.625rem;
    flex-wrap: wrap;
    margin-bottom: 0.875rem;
}
.alja-product-info__price {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--alja-primary);
}
.alja-product-info__price .amount { font-size: inherit; }
.alja-product-info__price-old {
    font-size: 1rem;
    font-weight: 500;
    color: var(--wp--preset--color--gray-400);
    text-decoration: line-through;
}
.alja-product-info__discount-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    background: rgba(220,38,38,.1);
    color: var(--wp--preset--color--error, #DC2626);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--wp--custom--border-radius--full);
}

/* Description courte */
.alja-product-info__short-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--wp--preset--color--gray-600);
    margin-bottom: 0.875rem;
}
.alja-product-info__short-desc p { margin: 0 0 0.5rem; }
.alja-product-info__short-desc ul { padding-left: 1.25rem; }

/* Stock */
.alja-product-info__stock {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    padding: 0.375rem 0.875rem;
    border-radius: var(--wp--custom--border-radius--full);
    width: fit-content;
}
.alja-product-info__stock.in-stock {
    background: rgba(58,138,106,.1);
    color: #059669;
}
.alja-product-info__stock.out-of-stock {
    background: rgba(239,68,68,.08);
    color: var(--wp--preset--color--error, #DC2626);
}
.alja-product-info__stock-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: ajlaPulse 2s ease-in-out infinite;
}
.out-of-stock .alja-product-info__stock-dot { animation: none; }
@keyframes ajlaPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .5; transform: scale(.8); }
}

/* Add to cart */
.alja-product-info__atc { margin-bottom: 1.25rem; }
/* Flex layout only on simple product forms — NOT on .variations_form (variable products) */
.alja-product-info__atc form:not(.variations_form) { display: flex; flex-direction: column; gap: 0.75rem; }

/* Variables product form — keep WooCommerce native block layout */
.alja-product-info__atc .variations_form { display: block; }
.alja-product-info__atc .variations_form .variations {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}
.alja-product-info__atc .variations_form .variations td,
.alja-product-info__atc .variations_form .variations th {
    padding: 0.375rem 0;
    vertical-align: middle;
    border: none;
}
.alja-product-info__atc .variations_form .variations .label {
    width: 35%;
    font-weight: 700;
    color: var(--wp--preset--color--charcoal);
    font-size: 0.9rem;
    padding-right: 0.75rem;
}
.alja-product-info__atc .variations_form .variations select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1.5px solid var(--wp--preset--color--gray-200);
    border-radius: var(--wp--custom--border-radius--md);
    font-family: var(--wp--preset--font-family--body);
    font-size: 0.9375rem;
    color: var(--wp--preset--color--charcoal);
    background: var(--wp--preset--color--white);
    outline: none;
    cursor: pointer;
    transition: border-color var(--alja-trans);
}
.alja-product-info__atc .variations_form .variations select:focus {
    border-color: var(--alja-primary);
}
.alja-product-info__atc .variations_form .single_variation_wrap {
    margin-top: 0.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.alja-product-info__atc .variations_form .woocommerce-variation-price { margin: 0; }
.alja-product-info__atc .variations_form .woocommerce-variation-availability { margin: 0; }
.alja-product-info__atc .quantity { display: flex; align-items: center; }
.alja-product-info__atc .qty {
    width: 80px; height: 48px;
    text-align: center;
    border: 1.5px solid var(--wp--preset--color--gray-200);
    border-radius: var(--wp--custom--border-radius--md);
    font-family: var(--wp--preset--font-family--body);
    font-size: 1rem; font-weight: 700;
    color: var(--wp--preset--color--charcoal);
    outline: none;
    transition: border-color var(--alja-trans);
}
.alja-product-info__atc .qty:focus { border-color: var(--alja-primary); }
/* ATC button — exclude swatch elements from the WC .button override */
.alja-product-info__atc .single_add_to_cart_button,
.alja-product-info__atc .button:not([aria-label*="swatch"]):not(.wvs-not-found):not([data-value]) {
    flex: 1;
    padding: 0.875rem 1.5rem !important;
    background: linear-gradient(135deg, var(--alja-primary) 0%, #2A6B7C 100%) !important;
    color: var(--wp--preset--color--white) !important;
    font-family: var(--wp--preset--font-family--body) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: var(--wp--custom--border-radius--lg) !important;
    cursor: pointer !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: all 250ms ease !important;
    box-shadow: 0 4px 16px rgba(58,138,106,.3) !important;
    display: block !important;
    width: 100% !important;
}
.alja-product-info__atc .single_add_to_cart_button:hover,
.alja-product-info__atc .button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 24px rgba(58,138,106,.4) !important;
    background: linear-gradient(135deg, var(--alja-primary-dk) 0%, #1E5264 100%) !important;
}

/* Réassurance — 4 colonnes, fond transparent,
   icônes blanches dans des tuiles pleines */
.alja-product-info__trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.alja-trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 0.5rem 0.25rem;
    background: transparent;
    border: none;
}
.alja-trust-badge__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    border-radius: 0.875rem;
    background: var(--alja-primary);
    color: #fff;
}
.alja-trust-badge__text {
    display: grid;
    gap: 0.125rem;
    min-width: 0;
}
.alja-trust-badge__text strong {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--wp--preset--color--charcoal);
    line-height: 1.25;
}
.alja-trust-badge__text small {
    font-size: 0.6875rem;
    color: var(--wp--preset--color--gray-600);
    line-height: 1.35;
}

/* Meta info (SKU, catégorie) — sans ligne */
.alja-product-info__meta {
    padding-top: 0.875rem;
}
.alja-product-info__meta-item {
    display: flex;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--wp--preset--color--gray-600);
    margin: 0 0 0.375rem;
}
.alja-product-info__meta-label { font-weight: 700; color: var(--wp--preset--color--charcoal); }

/* ═══════════════════════════════════════════════════
   ONGLETS PRODUIT
   ═══════════════════════════════════════════════════ */
.alja-product-tabs {
    margin-block: 0 3rem;
    max-width: var(--alja-container-wide);
    margin-inline: auto;
    padding-inline: var(--alja-gutter);
}
.alja-product-tabs__nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--wp--preset--color--gray-200);
    margin-bottom: 2rem;
    overflow-x: auto;
    scrollbar-width: none;
}
.alja-product-tabs__nav::-webkit-scrollbar { display: none; }
.alja-product-tabs__tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.875rem 1.25rem;
    font-family: var(--wp--preset--font-family--body);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--wp--preset--color--gray-600);
    background: none;
    border: none;
    cursor: pointer;
    transition: color var(--alja-trans);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    flex-shrink: 0;
}
.alja-product-tabs__tab.active,
.alja-product-tabs__tab:hover { color: var(--alja-primary); }
.alja-product-tabs__tab.active {
    border-bottom-color: var(--alja-primary);
    font-weight: 700;
}
.alja-product-tabs__badge {
    background: var(--alja-primary);
    color: var(--wp--preset--color--white);
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.125rem 0.4375rem;
    border-radius: var(--wp--custom--border-radius--full);
    line-height: 1.4;
}
.alja-product-tabs__panel { display: none; }
.alja-product-tabs__panel.active { display: block; }

/* Description */
.alja-product-desc {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--wp--preset--color--gray-600);
}
.alja-product-desc h2, .alja-product-desc h3 {
    font-family: var(--wp--preset--font-family--heading);
    color: var(--wp--preset--color--charcoal);
    margin-top: 1.5rem;
}
.alja-product-desc ul, .alja-product-desc ol { padding-left: 1.5rem; margin-top: 0.75rem; }
.alja-product-desc li { margin-bottom: 0.375rem; }
.alja-product-desc__empty { color: var(--wp--preset--color--gray-400); font-style: italic; }

/* Tableau Caractéristiques */
.alja-product-attrs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}
.alja-product-attrs-table tr {
    border-bottom: 1px solid var(--wp--preset--color--gray-200);
}
.alja-product-attrs-table tr:last-child { border-bottom: none; }
.alja-product-attrs-table th {
    text-align: left;
    padding: 0.875rem 1rem 0.875rem 0;
    font-weight: 700;
    color: var(--wp--preset--color--charcoal);
    width: 40%;
    vertical-align: top;
}
.alja-product-attrs-table td {
    padding: 0.875rem 0;
    color: var(--wp--preset--color--gray-600);
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════
   AVIS — SECTION
   ═══════════════════════════════════════════════════ */
.alja-reviews__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.alja-reviews__summary {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}
.alja-reviews__score-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    min-width: 80px;
}
.alja-reviews__score {
    display: flex;
    align-items: baseline;
    gap: 0.125rem;
}
.alja-reviews__score-num {
    font-family: var(--wp--preset--font-family--heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--wp--preset--color--charcoal);
    line-height: 1;
}
.alja-reviews__score-max {
    font-size: 1.25rem;
    color: var(--wp--preset--color--gray-400);
    font-weight: 500;
}
.alja-reviews__summary-stars { display: flex; gap: 2px; }
.alja-reviews__summary-count {
    font-size: 0.8125rem;
    color: var(--wp--preset--color--gray-600);
    margin: 0;
    text-align: center;
}

/* Histogramme distribution des notes */
.alja-reviews__histogram {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    min-width: 180px;
}
.alja-reviews__histogram-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
}
.alja-reviews__histogram-label {
    color: var(--wp--preset--color--charcoal);
    font-weight: 600;
    width: 2.5rem;
    flex-shrink: 0;
    white-space: nowrap;
}
.alja-reviews__histogram-bar {
    flex: 1;
    height: 8px;
    background: var(--wp--preset--color--gray-200);
    border-radius: var(--wp--custom--border-radius--full);
    overflow: hidden;
}
.alja-reviews__histogram-fill {
    height: 100%;
    background: var(--wp--preset--color--accent, #D4A43A);
    border-radius: inherit;
    transition: width 500ms ease;
}
.alja-reviews__histogram-count {
    color: var(--wp--preset--color--gray-600);
    width: 1.5rem;
    text-align: right;
    flex-shrink: 0;
}

/* Bouton ouvrir popup */
.alja-reviews__open-popup {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
}

/* Liste */
.alja-reviews__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.alja-review-card {
    background: var(--wp--preset--color--white);
    border: 1px solid var(--wp--preset--color--gray-200);
    border-radius: var(--wp--custom--border-radius--xl);
    padding: 1.25rem 1.5rem;
    transition: box-shadow var(--alja-trans);
}
.alja-review-card:hover { box-shadow: var(--alja-shadow-md); }
.alja-review-card__head {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}
.alja-review-card__avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid var(--wp--preset--color--gray-200);
    object-fit: cover;
}
.alja-review-card__author-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    flex: 1;
}
.alja-review-card__author {
    font-size: 0.9375rem;
    color: var(--wp--preset--color--charcoal);
}
.alja-review-card__verified {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--alja-primary);
}
.alja-review-card__date {
    font-size: 0.75rem;
    color: var(--wp--preset--color--gray-400);
}
.alja-review-card__rating { margin-left: auto; }
.alja-review-card__body {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--wp--preset--color--gray-600);
}
.alja-review-card__body p { margin: 0; }

/* Empty reviews */
.alja-reviews__empty {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--wp--preset--color--sand-light, #FBF7F2);
    border-radius: var(--wp--custom--border-radius--xl);
    border: 1.5px dashed var(--wp--preset--color--gray-200);
}
.alja-reviews__empty-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.alja-reviews__empty p { color: var(--wp--preset--color--gray-600); margin: 0; }

/* ═══════════════════════════════════════════════════
   POPUP AVIS / MODAL
   ═══════════════════════════════════════════════════ */
.alja-review-popup {
    position: fixed; inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.alja-review-popup[hidden] { display: none; }
.alja-review-popup[aria-hidden="false"] { display: flex; }

.alja-review-popup__overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(4px);
    cursor: pointer;
}
.alja-review-popup__card {
    position: relative;
    background: var(--wp--preset--color--white);
    border-radius: var(--wp--custom--border-radius--xl);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0,0,0,.2);
    animation: ajlaPopupIn 280ms cubic-bezier(.34,1.56,.64,1) both;
    z-index: 1;
}
@keyframes ajlaPopupIn {
    from { opacity: 0; transform: scale(.9) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.alja-review-popup__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--wp--preset--color--gray-200);
    position: sticky; top: 0;
    background: var(--wp--preset--color--white);
    z-index: 2;
    border-radius: var(--wp--custom--border-radius--xl) var(--wp--custom--border-radius--xl) 0 0;
}
.alja-review-popup__title {
    font-family: var(--wp--preset--font-family--heading);
    font-size: 1.25rem; font-weight: 700;
    color: var(--wp--preset--color--charcoal); margin: 0;
}
.alja-review-popup__close {
    width: 2rem; height: 2rem;
    display: flex; align-items: center; justify-content: center;
    border: none;
    background: var(--wp--preset--color--gray-100);
    border-radius: 50%;
    cursor: pointer;
    color: var(--wp--preset--color--gray-600);
    transition: all var(--alja-trans);
    flex-shrink: 0;
}
.alja-review-popup__close:hover {
    background: var(--wp--preset--color--gray-200);
    color: var(--wp--preset--color--charcoal);
}
.alja-review-popup__product-info {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.5rem;
    background: var(--wp--preset--color--sand-light, #FBF7F2);
    border-bottom: 1px solid var(--wp--preset--color--gray-200);
}
.alja-review-popup__product-img {
    width: 56px; height: 56px;
    object-fit: cover;
    border-radius: var(--wp--custom--border-radius--md);
    border: 1px solid var(--wp--preset--color--gray-200);
    flex-shrink: 0;
}
.alja-review-popup__product-name {
    font-size: 0.875rem; font-weight: 700;
    color: var(--wp--preset--color--charcoal); line-height: 1.4;
}
.alja-review-popup__rating-section {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--wp--preset--color--gray-200);
    text-align: center;
}
.alja-review-popup__rating-label {
    font-size: 0.8125rem; font-weight: 700;
    color: var(--wp--preset--color--charcoal);
    margin: 0 0 0.875rem;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.alja-popup-stars {
    display: flex; align-items: center; justify-content: center;
    gap: 0.5rem; margin-bottom: 0.5rem;
}
.alja-popup-stars__star {
    padding: 0; border: none; background: none;
    cursor: pointer;
    color: var(--wp--preset--color--gray-200);
    transition: color var(--alja-trans), transform var(--alja-trans);
    transform-origin: center;
}
.alja-popup-stars__star svg { fill: currentColor; display: block; }
.alja-popup-stars__star:hover,
.alja-popup-stars__star.hovered,
.alja-popup-stars__star.selected {
    color: var(--wp--preset--color--accent);
    transform: scale(1.2);
}
.alja-popup-stars__label-text {
    font-size: 0.8125rem; font-weight: 600;
    color: var(--alja-primary); min-height: 1.25rem;
    transition: opacity var(--alja-trans);
}
.alja-review-popup__form { padding: 1.25rem 1.5rem 1.5rem; }
.alja-review-popup__field-group {
    margin: 0 0 1rem;
    display: flex; flex-direction: column; gap: 0.375rem;
}
.alja-review-popup__field-group label {
    font-size: 0.8125rem; font-weight: 700;
    color: var(--wp--preset--color--charcoal);
}
.alja-review-popup__input,
.alja-review-popup__textarea,
.alja-review-popup__form input[type="text"],
.alja-review-popup__form input[type="email"],
.alja-review-popup__form textarea,
.alja-review-popup__form #comment {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    border: 1.5px solid var(--wp--preset--color--gray-200) !important;
    border-radius: var(--wp--custom--border-radius--md) !important;
    font-family: var(--wp--preset--font-family--body) !important;
    font-size: 0.9375rem !important;
    color: var(--wp--preset--color--charcoal) !important;
    background: var(--wp--preset--color--white) !important;
    outline: none !important;
    transition: border-color var(--alja-trans), box-shadow var(--alja-trans) !important;
    box-sizing: border-box !important;
    resize: vertical;
}
.alja-review-popup__form input:focus,
.alja-review-popup__form textarea:focus {
    border-color: var(--alja-primary) !important;
    box-shadow: 0 0 0 3px rgba(58,138,106,.12) !important;
}
.alja-review-popup__form #comment { min-height: 120px !important; }
.alja-review-popup__form p { margin: 0 0 1rem; }
.alja-review-popup__form p.comment-form-cookies-consent { display: none; }
/* Image upload field in popup */
.alja-review-popup__file-input {
    display: block;
    width: 100%;
    padding: 0.5rem;
    border: 1.5px dashed var(--wp--preset--color--gray-200);
    border-radius: var(--wp--custom--border-radius--md);
    background: var(--wp--preset--color--sand-50, #faf8f5);
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color var(--alja-trans);
}
.alja-review-popup__file-input:hover { border-color: var(--alja-primary); }
.alja-review-popup__img-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.alja-review-popup__submit,
.alja-review-popup__form #submit {
    width: 100% !important;
    padding: 0.875rem 1.5rem !important;
    background: linear-gradient(135deg, var(--alja-primary), #2A6B7C) !important;
    color: var(--wp--preset--color--white) !important;
    font-family: var(--wp--preset--font-family--body) !important;
    font-size: 1rem !important; font-weight: 700 !important;
    border: none !important;
    border-radius: var(--wp--custom--border-radius--lg) !important;
    cursor: pointer !important;
    transition: all var(--alja-trans) !important;
    box-shadow: 0 4px 16px rgba(58,138,106,.3) !important;
    margin-top: 0.25rem !important;
}
.alja-review-popup__form #submit:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 22px rgba(58,138,106,.4) !important;
}

/* ═══════════════════════════════════════════════════
   PRODUITS SIMILAIRES
   ═══════════════════════════════════════════════════ */
.alja-related-products {
    padding-block: 0 2.5rem;
    max-width: var(--alja-container-wide);
    margin-inline: auto;
    padding-inline: var(--alja-gutter);
}
.alja-related-products__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.alja-related-products__title {
    font-family: var(--wp--preset--font-family--heading);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 800;
    color: var(--wp--preset--color--charcoal);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.alja-related-products__title-icon { font-size: 1.25em; }
.alja-related-products__see-all {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem; font-weight: 700;
    color: var(--alja-primary);
    text-decoration: none;
    transition: gap var(--alja-trans);
}
.alja-related-products__see-all:hover { gap: 0.625rem; }

.alja-related-products__grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
}
@media (min-width: 640px) {
    .alja-related-products__grid { grid-template-columns: repeat(4, 1fr) !important; }
}

/* ═══════════════════════════════════════════════════
   RESET WC DEFAULTS (évite conflit avec notre UI)
   ═══════════════════════════════════════════════════ */
.alja-product-page .woocommerce-product-gallery,
.alja-product-page .woocommerce-tabs,
.alja-product-page .related.products,
.alja-product-page #reviews .woocommerce-Reviews-title,
.alja-product-page .commentlist + .comment-reply-title,
.alja-product-page #review_form_wrapper { display: none !important; }



/* Prix WooCommerce : supprimer la couleur rouge par défaut sur del */
.alja-product-info__price del,
.alja-product-info__price del .woocommerce-Price-amount { color: var(--wp--preset--color--gray-400) !important; }
.alja-product-info__price ins,
.alja-product-info__price ins .woocommerce-Price-amount { text-decoration: none !important; color: var(--alja-primary) !important; }

/* ═══════════════════════════════════════════════════
   SECTIONS PAGE PRODUIT (description, attrs, avis)
   Directement sur la page — sans onglets
   ═══════════════════════════════════════════════════ */
.alja-product-section {
    padding-block: 0 2.5rem;
    max-width: var(--alja-container-wide);
    margin-inline: auto;
    padding-inline: var(--alja-gutter);
}
.alja-product-section__inner { max-width: none; }

/* Séparateur entre grands blocs : une seule ligne fine, extrémités
   fondues. Portée par chaque section rendue — un bloc vide n'émet
   pas de markup, donc jamais de ligne double. */
.alja-product-section::before,
.alja-related-products::before {
    content: '';
    display: block;
    height: 1px;
    margin-block-end: 2.5rem;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--wp--preset--color--gray-200) 18%,
        var(--wp--preset--color--gray-200) 82%,
        transparent 100%);
}

.alja-product-section__title {
    font-family: var(--wp--preset--font-family--heading);
    font-size: clamp(1.25rem, 2vw, 1.625rem);
    font-weight: 800;
    color: var(--wp--preset--color--charcoal);
    margin: 0 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

/* Badge nb avis dans le titre */
.alja-reviews-title-badge {
    font-size: 0.75rem; font-weight: 700;
    background: var(--alja-primary); color: var(--wp--preset--color--white);
    padding: 0.125rem 0.5rem;
    border-radius: var(--wp--custom--border-radius--full);
    margin-left: 0.25rem;
}

/* Ligne titre + bouton avis */
.alja-reviews-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.875rem;
    margin-bottom: 1.75rem;
}
.alja-reviews-title-row .alja-product-section__title { margin: 0; }

/* Score + histogramme côte à côte */
.alja-reviews__summary-wrap {
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
    flex-wrap: wrap;
    padding: 1.5rem;
    background: var(--wp--preset--color--sand-light, #FBF7F2);
    border-radius: var(--wp--custom--border-radius--xl);
    border: 1px solid var(--wp--preset--color--gray-200);
    margin-bottom: 2rem;
}
.alja-reviews__score-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    min-width: 80px;
}
.alja-reviews__score-num {
    font-family: var(--wp--preset--font-family--heading);
    font-size: 3.5rem; font-weight: 900;
    color: var(--wp--preset--color--charcoal); line-height: 1;
}
.alja-reviews__score-label {
    font-size: 0.8125rem; color: var(--wp--preset--color--gray-600);
    margin: 0; text-align: center;
}

/* ── Carousel scroll-snap horizontal ── */
/* NOTE: Les styles du scroll (flex, snap, largeurs) sont dans product-card.css
         via la classe .alja-cards--carousel. On garde ici uniquement les styles
         propres au wrapper .alja-related-carousel (flèches en overlay). */

/* Le wrapper — pas de padding latéral, les flèches sont en overlay */
.alja-related-carousel {
    position: relative;
    overflow: visible;
    padding: 0;
}


/* Boutons prev/next — overlay sur la grille, visibles au hover */
.alja-related-carousel__btn {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    z-index: 5;
    width: 2.4rem;
    height: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.95);
    border: 1.5px solid var(--wp--preset--color--gray-200);
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0,0,0,.14);
    cursor: pointer;
    color: var(--wp--preset--color--charcoal);
    /* Transition + hidden par défaut sur desktop */
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, background var(--alja-trans), color var(--alja-trans), box-shadow var(--alja-trans);
}
/* Apparaissent au hover du carousel (desktop) ou toujours sur mobile */
.alja-related-carousel:hover .alja-related-carousel__btn:not([hidden]),
.alja-related-carousel:focus-within .alja-related-carousel__btn:not([hidden]) {
    opacity: 1;
    pointer-events: auto;
}
@media (max-width: 767px) {
    .alja-related-carousel__btn:not([hidden]) {
        opacity: 1;
        pointer-events: auto;
    }
}
.alja-related-carousel__btn:hover {
    background: var(--alja-primary);
    border-color: var(--alja-primary);
    color: #fff;
    box-shadow: 0 6px 20px rgba(58,138,106,.30);
}
.alja-related-carousel__btn[hidden] { display: none; }

.alja-related-carousel__btn--prev { left: 0.4rem; }
.alja-related-carousel__btn--next { right: 0.4rem; }

/* Dots */
.alja-related-carousel__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
}
.alja-related-carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--wp--preset--color--gray-200);
    cursor: pointer;
    transition: all var(--alja-trans);
    border: none;
    padding: 0;
    flex-shrink: 0;
}
.alja-related-carousel__dot.active {
    background: var(--alja-primary);
    transform: scale(1.35);
}


/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 767px) {
    .alja-shop-hero-section { padding-block: 2rem 1.5rem; }
    .alja-shop-controls { flex-direction: column; align-items: flex-start; gap: 0.625rem; }
    .alja-product-info__atc .cart { flex-direction: column; }
    .alja-product-info__atc .qty { width: 100%; }
    .alja-product-info__atc .single_add_to_cart_button,
    .alja-product-info__atc .button { width: 100% !important; }
    .alja-reviews__summary-wrap { flex-direction: column; gap: 1.5rem; }
    .alja-reviews-title-row { flex-direction: column; align-items: flex-start; }
    .alja-review-popup__card { max-height: 95vh; }
    .alja-product-info__trust { grid-template-columns: repeat(2, 1fr); }
    .alja-product-section { padding-block: 0 1.75rem; }
    .alja-product-section::before,
    .alja-related-products::before { margin-block-end: 1.75rem; }
}

@media (max-width: 479px) {
    .alja-wc-products-grid { grid-template-columns: 1fr !important; }
}

/* ═══════════════════════════════════════════════════════════════
   PREMIUM V3 — Galerie sticky + Info panel redesign
   ═══════════════════════════════════════════════════════════════ */

/* Entrance animation */
@keyframes ajlaSlideUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.alja-product-top--animate { animation: ajlaSlideUp 0.55s cubic-bezier(.16,1,.3,1) both; }

/* ── Galerie sticky (desktop) ──────────────────────────────── */
@media (min-width: 768px) {
    .alja-product-gallery {
        position: sticky;
        top: 90px;        /* sous le header */
        align-self: start;
    }
}

/* Gallery arrows */
.alja-product-gallery__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(6px);
    border: 1.5px solid var(--wp--preset--color--gray-200);
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0,0,0,.10);
    cursor: pointer;
    color: var(--wp--preset--color--charcoal);
    transition: all var(--alja-trans);
}
.alja-product-gallery__arrow:hover {
    background: var(--alja-primary);
    border-color: var(--alja-primary);
    color: #fff;
    box-shadow: 0 6px 20px rgba(58,138,106,.30);
}
.alja-product-gallery__arrow--prev { left: 0.75rem; }
.alja-product-gallery__arrow--next { right: 0.75rem; }

/* ── Title row + stock pill ────────────────────────────────── */
.alja-product-info__title-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}
.alja-product-info__title-row .alja-product-info__title {
    margin-bottom: 0;
    flex: 1 1 auto;
}
.alja-product-info__stock-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: .03em;
    padding: 0.3rem 0.65rem;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 0.35rem;
}
.alja-product-info__stock-pill.in-stock {
    background: #d1fae5;
    color: #065f46;
}
.alja-product-info__stock-pill.out-of-stock {
    background: #fee2e2;
    color: #991b1b;
}
.alja-product-info__stock-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.in-stock  .alja-product-info__stock-dot { background: #10b981; }
.out-of-stock .alja-product-info__stock-dot { background: #ef4444; }

/* ── Attribute pills ───────────────────────────────────────── */
.alja-product-info__attrs {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.25rem;
}
.alja-product-info__attr-group { display: flex; flex-direction: column; gap: 0.4rem; }
.alja-product-info__attr-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--wp--preset--color--charcoal);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 0;
}
.alja-attr-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.alja-attr-pill {
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    border: 1.5px solid var(--wp--preset--color--gray-200);
    background: var(--wp--preset--color--white);
    color: var(--wp--preset--color--charcoal);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--alja-trans);
}
.alja-attr-pill:hover { border-color: var(--alja-primary); color: var(--alja-primary); }
.alja-attr-pill.is-active {
    background: var(--alja-primary);
    border-color: var(--alja-primary);
    color: #fff;
    font-weight: 600;
}

/* ── Qty stepper (injecté par JS dans .quantity) ───────────── */
.alja-product-info__atc .quantity {
    display: flex !important;
    align-items: center;
    border: 1.5px solid var(--wp--preset--color--gray-200);
    border-radius: 28px;
    overflow: hidden;
    background: var(--wp--preset--color--white);
}
.alja-qty-btn {
    width: 2.4rem;
    height: 2.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--wp--preset--color--charcoal);
    font-size: 1.2rem;
    line-height: 1;
    transition: color var(--alja-trans);
    flex-shrink: 0;
}
.alja-qty-btn:hover { color: var(--alja-primary); }
.alja-product-info__atc .qty {
    width: 3rem !important;
    min-width: 2.5rem !important;
    text-align: center;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    font-weight: 700;
    font-size: 1rem;
    -moz-appearance: textfield;
    appearance: textfield;
    padding: 0 !important;
}
.alja-product-info__atc .qty::-webkit-inner-spin-button,
.alja-product-info__atc .qty::-webkit-outer-spin-button { -webkit-appearance: none; }



/* ── WhatsApp button ───────────────────────────────────────── */
.alja-btn--whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.85rem 1.5rem;
    border-radius: 28px;
    background: #25d366;
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: .02em;
    text-decoration: none;
    transition: all var(--alja-trans);
    border: none;
    cursor: pointer;
    margin-top: 0.5rem;
}
.alja-btn--whatsapp:hover {
    background: #128c7e;
    box-shadow: 0 6px 20px rgba(37,211,102,.30);
    transform: translateY(-1px);
    color: #fff;
}

/* ── Buy Now button ────────────────────────────────────────── */
.alja-btn--buy-now {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1.5rem;
    border-radius: 28px;
    background: transparent;
    border: 1.5px solid var(--wp--preset--color--gray-200);
    color: var(--wp--preset--color--charcoal);
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all var(--alja-trans);
    margin-top: 0.5rem;
}
.alja-btn--buy-now:hover {
    border-color: var(--alja-primary);
    color: var(--alja-primary);
    background: rgba(58,138,106,.06);
}

/* ── Tags ──────────────────────────────────────────────────── */
.alja-product-info__tags { display: inline-flex; flex-wrap: wrap; gap: 0.4rem; }
.alja-product-info__tag {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 12px;
    background: var(--wp--preset--color--gray-100, #f6f6f6);
    color: var(--wp--preset--color--charcoal);
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--alja-trans);
}
.alja-product-info__tag:hover {
    background: var(--alja-primary);
    color: #fff;
}

/* ── Share ─────────────────────────────────────────────────── */
.alja-product-info__share {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    flex-wrap: wrap;
}
.alja-product-info__share-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--wp--preset--color--gray-500, #888);
    white-space: nowrap;
}
.alja-share-buttons { display: flex; align-items: center; gap: 0.5rem; }
.alja-share-btn {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--wp--preset--color--gray-100, #f6f6f6);
    color: var(--wp--preset--color--charcoal);
    text-decoration: none;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--alja-trans);
}
.alja-share-btn:hover              { transform: translateY(-2px); }
.alja-share-btn--fb:hover          { background: #1877f2; color: #fff; border-color: #1877f2; }
.alja-share-btn--x:hover           { background: #000; color: #fff; border-color: #000; }
.alja-share-btn--pin:hover         { background: #e60023; color: #fff; border-color: #e60023; }
.alja-share-btn--email:hover       { background: var(--alja-primary); color: #fff; border-color: var(--alja-primary); }
.alja-share-btn--native:hover      { background: var(--alja-primary); color: #fff; border-color: var(--alja-primary); }



/* ═══════════════════════════════════════════════════════════════
   ATC LAYOUT v2 — Qty+ATC same line, WA+BuyNow side-by-side
   ═══════════════════════════════════════════════════════════════ */

/* ── Produit SIMPLE — qty stepper + ATC button sur la même ligne ── */
/* On exclut .variations_form pour ne pas écraser le layout des produits variables */
.woocommerce .alja-product-info__atc form.cart:not(.variations_form),
.alja-product-info__atc .cart:not(.variations_form) {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 0.75rem !important;
    align-items: center !important;
    margin: 0 !important;
}
/* ── Produit VARIABLE — form en colonne (swatches pleine largeur) ── */
.woocommerce .alja-product-info__atc form.cart.variations_form,
.alja-product-info__atc form.cart.variations_form {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    margin: 0 !important;
    width: 100% !important;
}
/* Swatches + table variations prennent toute la largeur */
.alja-product-info__atc .variations_form .variations {
    width: 100% !important;
}
/* Qty container: compact, auto width */
.woocommerce .alja-product-info__atc .quantity,
.alja-product-info__atc .quantity {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
}
/* ATC button fills the rest of the row */
.woocommerce .alja-product-info__atc .single_add_to_cart_button,
.alja-product-info__atc .single_add_to_cart_button {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    text-align: center !important;
    justify-content: center !important;
    display: flex !important;
    align-items: center !important;
}

/* ── Variable — zone qty+bouton : flex row ─────────────────── */
.alja-product-info__atc .woocommerce-variation-add-to-cart {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 0.75rem !important;
    align-items: center !important;
    margin-top: 0.25rem !important;
    width: 100% !important;
}
/* Qty dans le contexte variable */
.alja-product-info__atc .woocommerce-variation-add-to-cart .quantity {
    flex: 0 0 auto !important;
    width: auto !important;
}
/* Bouton ATC dans le contexte variable — remplit toute la largeur restante */
.alja-product-info__atc .woocommerce-variation-add-to-cart .single_add_to_cart_button {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: 100% !important;
}

/* Bouton ATC désactivé (avant sélection variation) */
.alja-product-info__atc .single_add_to_cart_button.disabled,
.alja-product-info__atc .single_add_to_cart_button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Zone variation: masquer entièrement le bloc WC natif (stock avec quantité) */
.alja-product-info__atc .woocommerce-variation {
    display: none !important;
}
.alja-product-info__atc .woocommerce-variation-availability {
    display: none !important;
}

/* "Effacer" link */
.alja-product-info__atc .reset_variations {
    display: inline-block;
    font-size: 0.78rem; font-weight: 500;
    color: var(--wp--preset--color--gray-500, #888);
    text-decoration: underline;
    cursor: pointer;
    margin-top: 0.25rem;
    transition: color var(--alja-trans);
}
.alja-product-info__atc .reset_variations:hover { color: var(--alja-primary); }

/* Mobile variable ATC */
@media (max-width: 479px) {
    .alja-product-info__atc .woocommerce-variation-add-to-cart {
        flex-wrap: wrap !important;
    }
    .alja-product-info__atc .woocommerce-variation-add-to-cart .quantity { width: 100%; justify-content: center; }
    .alja-product-info__atc .woocommerce-variation-add-to-cart .single_add_to_cart_button { width: 100% !important; flex: none !important; }
}

/* ── Premium Qty Stepper ── */
.alja-product-info__atc .quantity .alja-qty-stepper {
    display: flex;
    align-items: center;
    background: #fff;
    overflow: hidden;
    height: 2.7rem;
}
.alja-product-info__atc .quantity .alja-qty-btn {
    width: 2.75rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--wp--preset--color--charcoal);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background var(--alja-trans), color var(--alja-trans);
    flex-shrink: 0;
    line-height: 1;
}
.alja-product-info__atc .quantity .alja-qty-btn:first-child:hover {
    background: var(--alja-primary);
    color: #fff;
}
.alja-product-info__atc .quantity .alja-qty-btn:last-child:hover {
    background: var(--alja-primary);
    color: #fff;
}
.alja-product-info__atc .quantity input.qty {
    width: 3rem !important;
    text-align: center;
    border: none !important;
    border-left: 1.5px solid var(--wp--preset--color--gray-200) !important;
    border-right: 1.5px solid var(--wp--preset--color--gray-200) !important;
    border-radius: 0 !important;
    font-size: 1rem;
    font-weight: 600;
    background: transparent;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 !important;
    height: 100%;
}

/* Secondary row: WA + Buy Now side by side */
.alja-atc-secondary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 0.5rem;
}
.alja-atc-secondary .alja-btn--whatsapp,
.alja-atc-secondary .alja-btn--buy-now {
    margin-top: 0;
    width: 100%;
    justify-content: center;
}
.alja-atc-secondary:has(.alja-btn--whatsapp:only-child) {
    grid-template-columns: 1fr;
}

/* Mobile (< 480px): secondary row stacks, ATC button below qty */
@media (max-width: 479px) {
    .woocommerce .alja-product-info__atc form.cart,
    .alja-product-info__atc .cart {
        flex-wrap: wrap !important;
    }
    .woocommerce .alja-product-info__atc .quantity,
    .alja-product-info__atc .quantity {
        justify-content: center;
    }
    .woocommerce .alja-product-info__atc .single_add_to_cart_button,
    .alja-product-info__atc .single_add_to_cart_button {
        width: 100% !important;
    }
    .alja-atc-secondary { grid-template-columns: 1fr; }
}


/* Trust badges : design unique défini plus haut (« Réassurance —
   4 cartes ») — l'ancienne variante flat a été retirée. */

/* ═══════════════════════════════════════════════════════════════
   WISHLIST — forcer le style carte Atelier sur la galerie produit
   ═══════════════════════════════════════════════════════════════ */
.alja-product-gallery__wishlist {
    position: absolute;
    top: 0.875rem;
    right: 0.875rem;
    width: 2.4rem;
    height: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--alja-trans);
    z-index: 5;
    backdrop-filter: blur(8px);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}
.alja-product-gallery__wishlist:hover {
    background: #fff;
    transform: scale(1.12);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.20);
}
.alja-product-gallery__wishlist svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: none;
    stroke: var(--wp--preset--color--charcoal);
    stroke-width: 2;
    transition: all var(--alja-trans);
}
.alja-product-gallery__wishlist.is-active svg {
    fill: var(--wp--preset--color--error, #ef4444);
    stroke: var(--wp--preset--color--error, #ef4444);
}
.alja-product-gallery__wishlist.is-active {
    background: #fff0f0;
}

/* ═══════════════════════════════════════════════════════════════
   REVIEWS — Two-zone layout
   List (gauche) | Note+Filtres (droite)
   ═══════════════════════════════════════════════════════════════ */
.alja-reviews--two-zones {
    display: grid;
    grid-template-columns: 1fr 350px;  /* liste à gauche, résumé à droite */
    gap: 2.5rem;
    align-items: start;
}
.alja-reviews__list-zone  { order: 1; }
.alja-reviews__summary-zone { order: 2; }
@media (max-width: 767px) {
    .alja-reviews--two-zones { grid-template-columns: 1fr; gap: 1.5rem; }
    .alja-reviews__summary-zone { order: -1; } /* note en premier sur mobile */
}

/* Summary zone */
.alja-reviews__summary-zone {
    position: sticky;
    top: 90px;   /* under sticky header */
    background: var(--wp--preset--color--sand-50, #faf8f5);
    border: 1.5px solid var(--wp--preset--color--gray-200);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
@media (max-width: 767px) {
    .alja-reviews__summary-zone { position: static; }
}

/* Filter buttons */
.alja-reviews__filters {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.alja-reviews__filter-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.9rem;
    border-radius: 20px;
    border: 1.5px solid var(--wp--preset--color--gray-200);
    background: transparent;
    color: var(--wp--preset--color--charcoal);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--alja-trans);
    text-align: left;
}
.alja-reviews__filter-btn:hover { border-color: var(--alja-primary); color: var(--alja-primary); }
.alja-reviews__filter-btn.is-active {
    background: var(--alja-primary);
    border-color: var(--alja-primary);
    color: #fff;
    font-weight: 600;
}

/* List zone */
.alja-reviews__list-zone { min-width: 0; }

/* Review images */
.alja-review-card__images {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}
.alja-review-card__img-link img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1.5px solid var(--wp--preset--color--gray-200);
    transition: transform var(--alja-trans);
}
.alja-review-card__img-link:hover img { transform: scale(1.05); }

/* Load more button */
.alja-reviews__pagination { margin-top: 1.5rem; text-align: center; }
.alja-reviews__load-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: 28px;
    border: 1.5px solid var(--wp--preset--color--gray-200);
    background: transparent;
    color: var(--wp--preset--color--charcoal);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--alja-trans);
}
.alja-reviews__load-more:hover {
    border-color: var(--alja-primary);
    color: var(--alja-primary);
    background: rgba(58, 138, 106, 0.05);
}
.alja-reviews__load-more[disabled] { opacity: 0.4; cursor: not-allowed; }

/* Hidden reviews (shown by JS) */
.alja-review-card[hidden] { display: none; }

/* Cart bounce animation — for AJAX added_to_cart */
.alja-cart-bounce {
    animation: ajlaCartBounce 650ms cubic-bezier(.36,.07,.19,.97) both;
}
@keyframes ajlaCartBounce {
    0%,100% { transform: scale(1); }
    30%      { transform: scale(1.25) rotate(-6deg); }
    60%      { transform: scale(1.15) rotate(4deg); }
    80%      { transform: scale(1.08); }
}

/* ═══════════════════════════════════════════════════════════════
   TOAST — Notification panier (slide-in from bottom-right)
   ═══════════════════════════════════════════════════════════════ */
.alja-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: var(--wp--preset--color--charcoal, #1a2e2a);
    color: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,.22);
    min-width: 240px;
    max-width: 380px;
    font-size: 0.875rem;
    font-family: var(--wp--preset--font-family--body);
    transform: translateY(calc(100% + 2.5rem));
    opacity: 0;
    transition: transform 0.35s cubic-bezier(.22,1,.36,1), opacity 0.35s ease;
}
.alja-toast--visible {
    transform: translateY(0);
    opacity: 1;
}
.alja-toast__icon {
    width: 1.75rem;
    height: 1.75rem;
    background: var(--alja-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}
.alja-toast__msg {
    flex: 1;
    line-height: 1.4;
}
.alja-toast__cart {
    color: var(--alja-primary, #3a8a6a);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    font-size: 0.8rem;
    padding: 0.25rem 0.625rem;
    border: 1px solid rgba(58,138,106,.4);
    border-radius: 8px;
    transition: background var(--alja-trans);
}
.alja-toast__cart:hover { background: rgba(58,138,106,.12); }

/* Masquer la notice WooCommerce native */
.woocommerce-notices-wrapper:not(:empty) {
    display: none !important;
}

/* ── Anti-flash image — produits variables ─────────────────────
   .product-type-variable est ajouté par WooCommerce sur le body.
   On masque l'image dès le parsing CSS (avant le premier rendu
   browser) pour éviter le flash au chargement initial.
   Le JS (shop-product.js) se charge du reveal via opacity:1.
   ─────────────────────────────────────────────────────────────── */
.product-type-variable #ajlaMainImg:not(.alja-img-revealed) {
    opacity: 0;
    transition: none;
}

/* ── WVS Swatches — chip-style premium ─────────────────────── */
/* Conteneur des swatches */
.alja-product-info__atc .wvs-variation-items-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Swatch item générique */
.alja-product-info__atc .wvs-variation-items-wrapper li,
.alja-product-info__atc .wvs-variation-items-wrapper > span {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Bouton de swatch — style chip/pill */
.alja-product-info__atc .wvs-variation-items-wrapper .wvs-variation-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 220ms ease !important;
    border: 2px solid var(--wp--preset--color--gray-200) !important;
    border-radius: 50px !important;
    outline: none;
    overflow: visible !important;
    background: var(--wp--preset--color--white) !important;
}

/* Swatch image/couleur : grand et carré */
.alja-product-info__atc .wvs-variation-items-wrapper .wvs-variation-item.wvs-variation-item-image,
.alja-product-info__atc .wvs-variation-items-wrapper .wvs-variation-item.wvs-variation-item-button-image {
    width: 52px !important;
    height: 52px !important;
    border-radius: 12px !important;
    padding: 2px !important;
    background: #fff !important;
}
.alja-product-info__atc .wvs-variation-items-wrapper .wvs-variation-item.wvs-variation-item-image img,
.alja-product-info__atc .wvs-variation-items-wrapper .wvs-variation-item.wvs-variation-item-button-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 9px !important;
    display: block !important;
}

/* Swatch bouton texte (label) */
.alja-product-info__atc .wvs-variation-items-wrapper .wvs-variation-item.wvs-variation-item-button,
.alja-product-info__atc .wvs-variation-items-wrapper .wvs-variation-item.wvs-variation-item-label {
    min-width: 44px;
    height: 40px !important;
    padding: 0 1rem !important;
    font-size: 0.83rem !important;
    font-weight: 600 !important;
    color: var(--wp--preset--color--charcoal) !important;
    border-radius: 50px !important;
    background: var(--wp--preset--color--white) !important;
}

/* Swatch couleur ronde */
.alja-product-info__atc .wvs-variation-items-wrapper .wvs-variation-item.wvs-variation-item-color {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    padding: 0 !important;
}

/* Hover state */
.alja-product-info__atc .wvs-variation-items-wrapper .wvs-variation-item:hover:not(.selected) {
    border-color: var(--alja-primary) !important;
    transform: scale(1.06);
    box-shadow: 0 4px 12px rgba(58,138,106,.18) !important;
}

/* Selected state — ring vert premium */
.alja-product-info__atc .wvs-variation-items-wrapper .wvs-variation-item.selected {
    border-color: var(--alja-primary) !important;
    box-shadow: 0 0 0 3px rgba(58,138,106,.2), 0 4px 14px rgba(58,138,106,.22) !important;
    transform: scale(1.04);
}
.alja-product-info__atc .wvs-variation-items-wrapper .wvs-variation-item.selected.wvs-variation-item-button,
.alja-product-info__atc .wvs-variation-items-wrapper .wvs-variation-item.selected.wvs-variation-item-label {
    background: var(--alja-primary) !important;
    color: #fff !important;
}
.alja-product-info__atc .wvs-variation-items-wrapper .wvs-variation-item.selected.wvs-variation-item-color {
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--alja-primary) !important;
}

/* Variation désactivée / unavailable */
.alja-product-info__atc .wvs-variation-items-wrapper .wvs-variation-item.wvs-not-found,
.alja-product-info__atc .wvs-variation-items-wrapper .wvs-variation-item.disabled {
    opacity: 0.35 !important;
    cursor: not-allowed !important;
    transform: none !important;
    pointer-events: none !important;
}

/* Label "Effacer" */
.alja-product-info__atc .reset_variations {
    font-size: 0.75rem;
    color: var(--wp--preset--color--gray-500, #888);
    text-decoration: underline;
    cursor: pointer;
    display: inline-block;
    margin-top: 0.3rem;
    transition: color var(--alja-trans);
}
.alja-product-info__atc .reset_variations:hover { color: var(--alja-primary); }

/* ── Masquer tout texte de stock redondant WC ──────────────── */
/* (on garde uniquement le pill dans le titre du produit) */
.alja-product-info__atc .woocommerce-variation-price,
.alja-product-info__atc p.stock,
.alja-product-info__atc .woocommerce-variation .availability {
    display: none !important;
}

/* ── Stock pill mise à jour dynamique (JS) ─────────────────── */
/* Le pill dans le titre est mis à jour via JS (show_variation / hide_variation) */
.alja-product-info__stock-pill.alja-updating {
    opacity: 0.5;
    transition: opacity 150ms ease;
}

/* ── Section ATC variable: même apparence que simple product ── */
/* Buy Now injecté par JS pour produit variable */
.alja-atc-secondary .alja-btn--buy-now-var {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1.5rem;
    border-radius: 28px;
    background: transparent;
    border: 1.5px solid var(--wp--preset--color--gray-200);
    color: var(--wp--preset--color--charcoal);
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all var(--alja-trans);
    margin-top: 0;
    font-family: var(--wp--preset--font-family--body);
}
.alja-atc-secondary .alja-btn--buy-now-var:hover {
    border-color: var(--alja-primary);
    color: var(--alja-primary);
    background: rgba(58,138,106,.06);
}
.alja-atc-secondary .alja-btn--buy-now-var[hidden] { display: none !important; }

/* ── Trust badges sur produit variable: forcer la même grid ── */
.alja-product-info__trust {
    margin-top: 1.25rem;
}

/* ═══════════════════════════════════════
   BON CADEAU — champs destinataire
   (fiche produit, inc/gift-cards.php)
   ═══════════════════════════════════════ */

.alja-gift-fields {
    background: var(--wp--preset--color--sand-light, #FBF7F2);
    border: 1px solid #EDE9E0;
    border-radius: 0.875rem;
    padding: 1.25rem 1.25rem 0.5rem;
    margin-block-end: 1.25rem;
}

.alja-gift-fields__title {
    font-family: var(--wp--preset--font-family--heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--wp--preset--color--charcoal, #2D2D2D);
    margin: 0 0 1rem;
}

.alja-gift-fields__row {
    margin: 0 0 0.875rem;
}

.alja-gift-fields__row label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--wp--preset--color--charcoal, #2D2D2D);
    margin-block-end: 0.25rem;
}

.alja-gift-fields__row .required { color: #C0392B; }

.alja-gift-fields__row input,
.alja-gift-fields__row textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.625rem 0.875rem;
    border: 1px solid #DDD6C9;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    background: #fff;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.alja-gift-fields__row input:focus,
.alja-gift-fields__row textarea:focus {
    outline: none;
    border-color: var(--wp--preset--color--primary, #3A8A6A);
    box-shadow: 0 0 0 3px rgba(58, 138, 106, 0.12);
}

/* Le form garde sa ligne qty+bouton mais laisse les champs
   destinataire prendre toute la largeur au-dessus */
.woocommerce .alja-product-info__atc form.cart:has(.alja-gift-fields),
.alja-product-info__atc .cart:has(.alja-gift-fields) {
    flex-wrap: wrap !important;
}
.alja-product-info__atc .alja-gift-fields {
    flex: 1 1 100%;
    width: 100%;
}

/* ═══════════════════════════════════════
   BON CADEAU — visuel de carte généré
   (fiche produit sans photo)
   ═══════════════════════════════════════ */

.alja-giftcard-visual {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--wp--preset--color--sand-light, #FBF7F2);
    padding: clamp(1.5rem, 5vw, 3rem);
    box-sizing: border-box;
}

.alja-giftcard-visual__card {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 8 / 5;
    border-radius: 1.25rem;
    padding: clamp(1.25rem, 4vw, 2rem);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
    transform: rotate(-3deg);
    transition: transform 300ms ease, box-shadow 300ms ease;
}
.alja-giftcard-visual:hover .alja-giftcard-visual__card {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

.alja-giftcard-visual--100 .alja-giftcard-visual__card {
    background: linear-gradient(145deg, #FEF3C7 0%, #FDE68A 100%);
    color: #78501C;
}
.alja-giftcard-visual--300 .alja-giftcard-visual__card {
    background: linear-gradient(145deg, var(--wp--preset--color--primary, #3A8A6A) 0%, var(--wp--preset--color--secondary, #2A6B7C) 100%);
    color: #fff;
}
.alja-giftcard-visual--500 .alja-giftcard-visual__card {
    background: linear-gradient(145deg, var(--wp--preset--color--rose, #C0786A) 0%, var(--wp--preset--color--accent, #D4A43A) 100%);
    color: #fff;
}

.alja-giftcard-visual__brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-block-end: auto;
}
.alja-giftcard-visual__brand img,
.alja-giftcard-visual__brand svg {
    background: #fff;
    border-radius: 50%;
    padding: 3px;
    width: 36px;
    height: 36px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.alja-giftcard-visual__type {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.75;
}

.alja-giftcard-visual__amount {
    font-family: var(--wp--preset--font-family--heading, sans-serif);
    font-size: clamp(2.25rem, 7vw, 3.25rem);
    font-weight: 700;
    line-height: 1.1;
}
.alja-giftcard-visual__amount span {
    font-size: 0.45em;
    font-weight: 600;
    opacity: 0.85;
}

.alja-giftcard-visual__tagline {
    font-size: 0.8125rem;
    opacity: 0.8;
    margin-block-start: 0.375rem;
}
