.boutique {
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.boutique__title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 400;
    margin-bottom: 32px;
}

.boutique__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 32px;
}

.boutique__empty {
    padding: 80px 0;
    text-align: center;
    color: #999;
}

.boutique__pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 48px;
    font-size: 0.85rem;
}

.boutique__pagination a {
    color: var(--primary-bg);
    text-decoration: underline;
}

/* ─── PRODUCT CARD ───
   Copie volontaire de .product-card (bestsellers, home.css) — même raison que
   layout.css : zéro risque de régression sur la page d'accueil déjà testée. */
.product-card {
    display: flex;
    flex-direction: column;
    height: fit-content;
    width: 100%;
    flex-shrink: 0;
    background-color: #faf8f4;
}

.product-card__image-wrap {
    width: 100%;
    aspect-ratio: 2/2.3;
    flex-shrink: 0;
    padding: 5px;
    position: relative;
    overflow: hidden;
}

.product-card__image-wrap > a {
    position: absolute;
    inset: 0;
    display: block;
}

.product-card__image-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background-color: var(--primary-light);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.product-card__image-wrap img.is-active {
    opacity: 1;
}

.product-card__actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-card__action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 15%;
    border: none;
    background-color: var(--primary-bg);
    color: var(--color-accent);
    cursor: pointer;
    opacity: 0;
    transform: translateX(6px);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease;
}

.product-card__action:nth-child(2) {
    transition-delay: 0.05s;
}

.product-card__colors {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 1;
    display: flex;
    gap: 7px;
    align-items: center;
}

.product-card__color {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 0 0 1.5px transparent, 0 0 0 0 transparent;
    transition: box-shadow 0.2s ease;
}

.product-card__color:hover,
.product-card__color.is-active {
    box-shadow: 0 0 0 1.5px #faf8f4, 0 0 0 3px var(--color-text);
}

.product-card:hover .product-card__action {
    opacity: 1;
    transform: translateX(0);
}

.product-card__action:hover {
    background-color: var(--color-accent);
    color: var(--primary-bg);
}

@media (hover: none) {
    .product-card__action {
        opacity: 1;
        transform: none;
    }
}

.product-card__info {
    display: flex;
    flex-direction: column;
    padding: 10px 15px;
}

.product-card__collection, .product-card__name, .product-card__price {
    align-self: center;
}

.product-card__collection {
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 5px;
}

.product-card__name {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.15;
    margin-bottom: 5px;
}

.product-card__name a {
    color: inherit;
    text-decoration: none;
}

.product-card__price {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0.03em;
}

.product-card__price--strike {
    text-decoration: line-through;
    color: #aaa;
    font-weight: 400;
    margin-right: 8px;
}

.product-card__sizes-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    margin-top: 8px;
}

/* `display:flex` ci-dessus prime sinon sur le `display:none` natif de [hidden]
   (même piège déjà rencontré avec .cms-modal/.cms-colors-panel). */
.product-card__sizes-wrap[hidden],
.color-panel[hidden] {
    display: none;
}

.product-card__sizes {
    flex: 1;
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    min-width: 0;
}

.product-card__sizes::-webkit-scrollbar {
    display: none;
}

.sizes-scroll-btn {
    flex-shrink: 0;
    display: none;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #ddd5cc;
    background-color: #faf8f4;
    cursor: pointer;
    color: var(--color-text);
    padding: 0;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.sizes-scroll-btn:hover {
    background-color: var(--color-text);
    border-color: var(--color-text);
    color: #fff;
}

@media (hover: hover) {
    .sizes-scroll-btn.is-visible {
        display: flex;
    }
}

.product-card__size {
    flex-shrink: 0;
    padding: 5px 10px;
    border: 1px solid #ddd5cc;
    font-size: 0.62rem;
    letter-spacing: 0.03em;
    color: var(--color-text);
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.product-card__size:hover:not(.product-card__size--unavailable),
.product-card__size.is-selected {
    border-color: var(--color-text);
    background-color: var(--color-text);
    color: #fff;
}

.product-card__size--unavailable {
    color: #d0d0d0;
    border-color: #eee;
    text-decoration: line-through;
    pointer-events: none;
}

@media screen and (max-width: 768px) {
    .product-card__image-wrap {
        min-height: 355px;
    }
    .product-card__info {
        padding: 20px 20px 18px;
    }
}
