﻿.wpe-shop-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.85rem;
}

.wpe-shop-filters {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(190px, 0.9fr) auto;
    gap: 0.7rem;
    align-items: end;
}

.wpe-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}

.wpe-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.28rem;
    margin-bottom: 0.28rem;
}

.wpe-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.22rem 0.45rem;
    border-radius: 999px;
    border: 1px solid rgba(207,199,189,0.7);
    background: rgba(255,255,255,0.72);
    color: var(--wpe-black-soft);
    font-size: 0.62rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.01em;
}

    .wpe-chip.is-gold {
        border-color: rgba(198,169,107,0.72);
        background: rgba(198,169,107,0.12);
        color: #8a6a36;
    }

    .wpe-chip.is-dark {
        border-color: rgba(17,17,17,0.08);
        background: rgba(17,17,17,0.82);
        color: #fff;
    }

/* ---------- Cartes catalogue ---------- */

.wpe-shop-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    padding: 12px;
    border-radius: 14px;
}

.wpe-shop-card-media {
    position: relative;
    aspect-ratio: 4 / 5.2;
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(239,231,220,0.94));
    border: 1px solid rgba(207,199,189,0.42);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
    margin-bottom: 0.5rem;
}

    .wpe-shop-card-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 200ms ease;
    }

.wpe-shop-card:hover .wpe-shop-card-media img {
    transform: scale(1.015);
}

.wpe-shop-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.32rem;
    flex: 1;
}

.wpe-shop-card-title,
.wpe-product-title {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    color: var(--wpe-black-soft);
    letter-spacing: -0.01em;
}

.wpe-shop-card-title {
    font-size: clamp(0.98rem, 0.95vw, 1.15rem);
    line-height: 0.98;
}

.wpe-shop-card-subtitle,
.wpe-product-subtitle {
    margin: 0;
    color: var(--wpe-gray-elegant);
    font-size: 0.74rem;
    line-height: 1.18;
}

.wpe-shop-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 0.45rem;
    color: var(--wpe-gray-elegant);
    font-size: 0.7rem;
    line-height: 1.2;
}

.wpe-shop-summary {
    color: var(--wpe-gray-elegant);
    margin: 0;
    flex: 1;
    font-size: 0.74rem;
    line-height: 1.28;
}

.wpe-price-block {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: baseline;
}

.wpe-price-old {
    color: var(--wpe-gray-elegant);
    text-decoration: line-through;
    font-size: 0.72rem;
    line-height: 1;
}

.wpe-price-new {
    color: var(--wpe-black);
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(0.98rem, 1vw, 1.22rem);
    line-height: 1;
    font-weight: 700;
}

.wpe-price-note {
    color: #8a6a36;
    font-size: 0.66rem;
    font-weight: 600;
    line-height: 1.1;
}

.wpe-shop-actions {
    display: flex;
    gap: 0.4rem;
    margin-top: auto;
}

    .wpe-shop-actions > * {
        flex: 1;
    }

    .wpe-shop-actions .wpe-btn-primary {
        min-height: 34px;
        padding: 0.46rem 0.55rem;
        font-size: 0.8rem;
        line-height: 1;
        text-align: center;
    }

/* ---------- Intro haut de page ---------- */

.wpe-page-header,
.wpe-section.wpe-form-panel {
    padding: 12px 14px;
    border-radius: 14px;
}

.wpe-page-header {
    margin-bottom: 12px;
}

    .wpe-page-header .wpe-kicker,
    .wpe-section.wpe-form-panel .wpe-kicker {
        margin-bottom: 4px;
        font-size: 0.78rem;
        letter-spacing: 0.1em;
        line-height: 1;
    }

    .wpe-page-header .wpe-title {
        font-size: clamp(1.45rem, 2vw, 2.15rem);
        line-height: 0.98;
    }

    .wpe-page-header .wpe-section-title,
    .wpe-section.wpe-form-panel .wpe-section-title {
        font-size: clamp(1.18rem, 1.6vw, 1.7rem);
        line-height: 1;
        margin-bottom: 0;
    }

    .wpe-page-header .wpe-lead,
    .wpe-section.wpe-form-panel .wpe-lead {
        margin-top: 5px;
        font-size: 0.82rem;
        line-height: 1.32;
        max-width: 100%;
    }

/* ---------- Blocs éditoriaux boutique ---------- */

.wpe-editorial-note {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    margin-top: 0.2rem;
}

.wpe-note-tile {
    padding: 0.58rem 0.68rem;
    border-radius: 12px;
    border: 1px solid rgba(207,199,189,0.45);
    background: rgba(255,255,255,0.56);
    font-size: 0.76rem;
    line-height: 1.24;
}

    .wpe-note-tile strong {
        display: block;
        margin-bottom: 0.08rem;
        color: var(--wpe-black-soft);
        font-size: 0.77rem;
        line-height: 1.1;
    }

/* ---------- Filtres ---------- */

.wpe-shop-filters .form-label {
    margin-bottom: 0.25rem;
    font-size: 0.78rem;
    line-height: 1.1;
}

.wpe-shop-filters .form-control,
.wpe-shop-filters .form-select {
    min-height: 40px;
    padding: 0.58rem 0.75rem !important;
    font-size: 0.84rem;
}

.wpe-shop-filters .wpe-btn-primary {
    min-height: 40px;
    padding: 0.58rem 0.85rem;
    font-size: 0.86rem;
}

/* ---------- Promo ---------- */

.wpe-promo-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.75fr);
    gap: 0.85rem;
    align-items: stretch;
}

.wpe-promo-panel,
.wpe-promo-side {
    border-radius: 14px;
    border: 1px solid rgba(207,199,189,0.38);
    background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(239,231,220,0.7));
    padding: 0.95rem;
}

.wpe-promo-stat {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.55rem, 2vw, 2.2rem);
    line-height: 0.95;
    color: var(--wpe-black-soft);
    margin-bottom: 0.18rem;
}

/* ---------- Fiche produit ---------- */

.wpe-product-layout {
    display: grid;
    grid-template-columns: minmax(300px, 0.88fr) minmax(0, 1.12fr);
    gap: 1.2rem;
    align-items: start;
}

.wpe-product-gallery,
.wpe-product-panel,
.wpe-product-summary,
.wpe-product-purchase {
    position: relative;
}

.wpe-product-cover {
    width: 100%;
    aspect-ratio: 4 / 5.1;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(207,199,189,0.38);
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(239,231,220,0.96));
    box-shadow: var(--wpe-shadow-medium);
}

.wpe-product-stack {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.wpe-product-title {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 0.95;
}

.wpe-product-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.wpe-fact {
    padding: 0.72rem 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(207,199,189,0.45);
    background: rgba(255,255,255,0.58);
}

.wpe-fact-label {
    display: block;
    margin-bottom: 0.14rem;
    color: var(--wpe-gray-elegant);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    line-height: 1.1;
}

.wpe-fact-value {
    color: var(--wpe-black-soft);
    font-weight: 600;
    font-size: 0.84rem;
    line-height: 1.2;
}

.wpe-product-summary p,
.wpe-product-panel p {
    margin-bottom: 0;
}

.wpe-purchase-grid {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 0.65rem;
    align-items: end;
}

.wpe-quantity-input {
    text-align: center;
    font-weight: 600;
}

.wpe-sticky-panel {
    position: sticky;
    top: 100px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1399.98px) {
    .wpe-shop-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1199.98px) {
    .wpe-shop-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .wpe-product-layout {
        grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1fr);
    }
}

@media (max-width: 991.98px) {
    .wpe-shop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wpe-shop-filters,
    .wpe-promo-hero,
    .wpe-product-layout,
    .wpe-editorial-note {
        grid-template-columns: 1fr;
    }

    .wpe-sticky-panel {
        position: static;
    }

    .wpe-product-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wpe-page-header,
    .wpe-section.wpe-form-panel {
        padding: 12px;
    }
}

@media (max-width: 767.98px) {
    .wpe-shop-grid,
    .wpe-product-facts,
    .wpe-purchase-grid {
        grid-template-columns: 1fr;
    }

    .wpe-shop-card {
        padding: 11px;
    }

    .wpe-shop-card-media {
        aspect-ratio: 4 / 4.8;
    }

    .wpe-shop-actions {
        flex-direction: column;
    }

    .wpe-shop-card-title {
        font-size: 1.18rem;
    }

    .wpe-product-title {
        font-size: 2.1rem;
    }

    .wpe-promo-panel,
    .wpe-promo-side {
        padding: 0.85rem;
    }
}

@media (max-width: 575.98px) {
    .wpe-chip {
        width: 100%;
        justify-content: center;
    }

    .wpe-inline-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .wpe-page-header .wpe-title {
        font-size: 1.4rem;
    }

    .wpe-page-header .wpe-lead,
    .wpe-section.wpe-form-panel .wpe-lead {
        font-size: 0.8rem;
    }
}
