/* Cartes boutique — finition bijouterie, lisible sur mobile */
:root {
    --jewel-ink: #3b2d23;
    --jewel-cocoa: #eadbc7;
    --jewel-cocoa-light: #f7efe3;
    --jewel-gold: #c9a258;
    --jewel-gold-pale: #f1dca9;
    --jewel-ivory: #fffaf2;
    --jewel-frame: #e7d4b4;
}

.collections-grid,
.products-grid {
    gap: clamp(1rem, 2vw, 1.65rem);
}

body.theme-pierre .collection-card,
body.theme-pierre .product-card {
    isolation: isolate;
    background: linear-gradient(145deg, var(--jewel-ivory), var(--jewel-cocoa));
    border: 1px solid rgba(160, 116, 55, 0.48);
    border-radius: 22px;
    box-shadow:
        0 18px 42px rgba(91, 65, 36, 0.13),
        0 2px 0 rgba(255, 255, 255, 0.78) inset;
    transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}

body.theme-pierre .collection-card::after,
body.theme-pierre .product-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: 0 0 0 1px rgba(255, 250, 240, 0.6) inset;
}

body.theme-pierre .collection-card:hover,
body.theme-pierre .product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(184, 140, 72, 0.78);
    box-shadow: 0 25px 55px rgba(62, 43, 25, 0.2);
}

body.theme-pierre .collection-image-wrapper,
body.theme-pierre .product-image-wrapper,
.similar-product-image-wrapper {
    background:
        radial-gradient(circle at 50% 20%, #fff9ec 0%, #efe2ce 58%, #ddc9aa 100%);
}

.collection-image-wrapper::after,
.product-image-wrapper::after,
.similar-product-image-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 68%, rgba(36, 27, 20, 0.18) 100%);
}

body.theme-pierre .collection-content,
body.theme-pierre .product-content {
    position: relative;
    min-height: 116px;
    padding: 1rem 1.1rem 1.15rem;
    background:
        radial-gradient(circle at 100% 0%, rgba(201, 162, 88, 0.2), transparent 50%),
        linear-gradient(145deg, var(--jewel-cocoa-light), var(--jewel-cocoa));
    border-top: 1px solid rgba(160, 116, 55, 0.3);
    text-align: center;
}

body.theme-pierre .collection-content::before,
body.theme-pierre .product-content::before {
    content: "";
    display: block;
    width: 34px;
    height: 2px;
    margin: 0 auto 0.62rem;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--jewel-gold-pale), var(--jewel-gold));
}

body.theme-pierre .collection-name,
body.theme-pierre .product-name {
    color: var(--jewel-ink);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.25rem, 1.8vw, 1.55rem);
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: 0.01em;
    margin: 0 0 0.72rem;
    text-wrap: balance;
}

body.theme-pierre .collection-name {
    -webkit-line-clamp: 2;
}

body.theme-pierre .product-name {
    min-height: 2.4em;
    -webkit-line-clamp: 2;
}

body.theme-pierre .collection-price-from,
body.theme-pierre .product-price {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0.3rem 0.66rem;
    color: #78551f;
    background: rgba(255, 250, 240, 0.55);
    border: 1px solid rgba(160, 116, 55, 0.3);
    border-radius: 999px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.91rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.02em;
    justify-content: center;
}

/* Cartes de suggestions sur la fiche produit */
.similar-product-card {
    background: linear-gradient(145deg, var(--jewel-ivory), var(--jewel-cocoa)) !important;
    border: 1px solid rgba(184, 140, 72, 0.5) !important;
    border-radius: 20px !important;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.2);
}

.similar-product-info {
    min-height: 136px;
    padding: 1rem !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(201, 162, 88, 0.2), transparent 50%),
        linear-gradient(145deg, var(--jewel-cocoa-light), var(--jewel-cocoa));
    border-top: 1px solid rgba(160, 116, 55, 0.3);
    text-align: center;
}

.similar-product-collection {
    color: #8a642f !important;
    font-size: 0.72rem !important;
    font-weight: 600;
    letter-spacing: 0.1em !important;
}

.similar-product-name {
    min-height: 2.5em;
    color: var(--jewel-ink) !important;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    line-height: 1.18;
}

.similar-product-price {
    color: #78551f !important;
    font-size: 1.05rem !important;
}

@media (max-width: 768px) {
    .collections-grid,
    .products-grid {
        gap: 0.9rem;
    }

    body.theme-pierre .collection-card,
    body.theme-pierre .product-card,
    .similar-product-card {
        border-radius: 17px !important;
    }

    body.theme-pierre .collection-content,
    body.theme-pierre .product-content {
        min-height: 118px;
        padding: 0.86rem 0.82rem 0.95rem;
    }

    body.theme-pierre .collection-content::before,
    body.theme-pierre .product-content::before {
        width: 28px;
        margin-bottom: 0.55rem;
    }

    body.theme-pierre .collection-name,
    body.theme-pierre .product-name {
        font-size: 1.16rem;
        line-height: 1.17;
        margin-bottom: 0.7rem;
    }

    body.theme-pierre .product-name {
        min-height: 3.5em;
        -webkit-line-clamp: 3;
    }

    body.theme-pierre .collection-price-from,
    body.theme-pierre .product-price {
        min-height: 29px;
        padding: 0.28rem 0.56rem;
        font-size: 0.9rem;
    }

    .similar-product-info {
        min-height: 142px;
        padding: 0.85rem !important;
    }

    .similar-product-name {
        font-size: 1.1rem !important;
        -webkit-line-clamp: 3;
    }
}

@media (max-width: 380px) {
    .collections-grid,
    .products-grid,
    .similar-products-grid {
        gap: 0.65rem;
    }

    body.theme-pierre .collection-content,
    body.theme-pierre .product-content {
        padding-inline: 0.7rem;
    }

    body.theme-pierre .collection-name,
    body.theme-pierre .product-name {
        font-size: 1.1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.theme-pierre .collection-card,
    body.theme-pierre .product-card,
    .similar-product-card {
        transition: none;
    }
}
