/* ========================================
   CARTE PRODUIT — référence unique boutique
   Modifier le design des cartes uniquement ici.
   ======================================== */

.shop-product-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.35s ease;
}

.shop-product-card__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 18px;
    border: 1px solid rgba(44, 18, 59, 0.1);
    background: #ffffff;
    box-shadow: 0 12px 36px rgba(44, 18, 59, 0.08);
    overflow: hidden;
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.shop-product-card:hover .shop-product-card__inner {
    box-shadow: 0 18px 44px rgba(44, 18, 59, 0.12);
    border-color: rgba(255, 49, 210, 0.15);
}

.shop-product-card__visual {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 1;
    padding: 0;
    margin: 0;
    background: #ffffff;
    overflow: hidden;
    line-height: 0;
}

.shop-product-card__visual picture {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    line-height: 0;
}

.shop-product-card__visual img,
.shop-product-card__img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: top;
    object-fit: cover;
    object-position: center center;
}

.shop-product-card__meta {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 8px;
    align-items: start;
    padding: 16px 18px 18px;
    text-align: left;
    border-top: 1px solid rgba(44, 18, 59, 0.06);
    background: #fafafa;
}

.shop-product-card__name {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    min-width: 0;
    font-weight: 700;
    font-size: 1rem;
    color: #2C123B;
    line-height: 1.25;
}

.shop-product-card__subtitle {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
    min-width: 0;
    font-weight: 400;
    font-size: 0.8rem;
    color: #666a81;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-product-card__price {
    grid-column: 2;
    grid-row: 1;
    position: static;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 8px;
    background: #2D273B;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Sans sous-titre : le prix reste aligné à droite sur la première ligne */
.shop-product-card__meta:not(:has(.shop-product-card__subtitle)) {
    grid-template-rows: auto;
}

/* ========================================
   Carrousels & grilles (layout, pas le design carte)
   ======================================== */

.carousel-inner > .shop-product-card.carousel-item {
    flex: 0 0 24%;
    max-width: 24%;
    transform: none;
}

.carousel-inner > .shop-product-card.carousel-item:hover {
    transform: translateY(-4px);
    z-index: 10;
}

.all-products-section .carousel-inner > .shop-product-card.carousel-item {
    flex: none;
    max-width: none;
}

@media (max-width: 1024px) {
    .carousel-inner > .shop-product-card.carousel-item {
        flex: 0 0 32%;
        max-width: 32%;
    }
}

@media (max-width: 768px) {
    .carousel {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .carousel::-webkit-scrollbar {
        display: none;
    }

    .carousel-inner > .shop-product-card.carousel-item {
        flex: 0 0 70%;
        max-width: 70%;
    }
}

@media (max-width: 480px) {
    .carousel-inner > .shop-product-card.carousel-item {
        flex: 0 0 78%;
        max-width: 78%;
    }

    .shop-product-card__meta {
        padding: 12px 14px 14px;
        column-gap: 10px;
    }

    .shop-product-card__name {
        font-size: 0.9rem;
    }
}
