.product-info .product-description { color: #6b5844; font-size: .75rem; line-height: 1.6; margin-bottom: 8px; overflow-wrap: anywhere; white-space: pre-line; }
.product-info .product-weight { display: flex; align-items: center; gap: 5px; color: #806749; font-size: .75rem; line-height: 16px; margin-bottom: 10px; }
.product-load-error { padding: 18px; border: 1px solid #b35b4140; border-radius: 12px; background: #fbefe7; color: #85452f; }

.product-label-stack { position: absolute; top: 10px; left: 10px; max-width: calc(100% - 20px); display: flex; flex-direction: column; align-items: flex-start; gap: 3px; z-index: 2; }
.product-label-stack .product-label { position: static; max-width: 100%; border-radius: 20px; }
.product-card :is(.product-label, .product-badge, .category-badge) { display: inline-flex; align-items: center; justify-content: center; text-align: center; line-height: 1.3; }
.product-image .product-badge { top: 10px; left: 10px; right: auto; }
.product-label.label-promo, .product-badge.label-promo { background: #85452f; }
.product-prices { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.product-original-price { color: #998570; font-size: .8rem; }
.checkout-price-breakdown { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid #8b735533; margin-top: 10px; font-size: .85rem; color: #6b5844; }
.checkout-price-row { display: flex; justify-content: space-between; gap: 12px; }
.checkout-price-row span:last-child { white-space: nowrap; }
.checkout-price-row.checkout-savings { color: #85452f; }
.checkout-price-breakdown[hidden], .checkout-price-breakdown [hidden] { display: none; }
.checkout-quote-error { color: #85452f; font-size: .85rem; margin-top: 12px; }
.checkout-quote-retry { padding: 8px 12px; border: 1px solid #8b735540; border-radius: 8px; background: #f5eee2; color: #6b5844; font: inherit; cursor: pointer; }

.product-label.label-partner { background: #6b5844; }

/* Un même cadre pour tous les produits, sur ordinateur comme sur mobile. */
.product-image img {
    width: var(--product-image-size, 68%);
    height: var(--product-image-size, 68%);
    max-width: var(--product-image-size, 68%);
    max-height: var(--product-image-size, 68%);
    object-fit: contain;
    object-position: center;
}


/* Réglages optiques ciblés, y compris pour les images importées. */
.product-image img:is(
    [alt="Banane"],
    [alt="Truffe"],
    [alt="Arôme de vanille"],
    [alt="Pot résine à bois"]
) { --product-image-size: 76%; }
.product-image img[alt="Fromage"] { --product-image-size: 57%; }
.product-image img[alt="Tissu"] {
    --product-image-size: 54%;
    position: relative;
    top: 6px;
}

/* Même proportion de visuel dans le panier et le choix des quantités. */
.order-page .cart-item-info img,
.order-page .quantity-product-info img {
    box-sizing: border-box;
    object-fit: contain;
    object-position: center;
    flex-shrink: 0;
}
.order-page .cart-item-info img { padding: 9px; }
.order-page .quantity-product-info img { padding: 13px; }
@media (max-width: 768px) {
    .order-page .cart-item-info img,
    .order-page .quantity-product-info img { padding: 7px; }
}

.product-favorite { position: absolute; top: 10px; right: 10px; z-index: 3; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; line-height: 1; border: 1px solid #8b735533; border-radius: 50%; background: #fffdf9; color: #806749; cursor: pointer; }
.product-favorite svg { display: block; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.product-favorite.is-favorite { color: #a4483d; }
.product-favorite.is-favorite svg { fill: currentColor; }
.product-favorite:focus-visible { outline: 2px solid #806749; outline-offset: 3px; }
.product-favorite:disabled { opacity: .55; cursor: wait; }
.product-card:has(.product-favorite) .product-label-stack { max-width: calc(100% - 62px); }

.product-favorite.favorite-added { animation: favorite-pop 420ms ease-out; }
.product-favorite.favorite-removed { animation: favorite-release 320ms ease-out; }
.product-favorite.favorite-added::after { content: ''; position: absolute; inset: -2px; border: 2px solid #a4483d; border-radius: 50%; pointer-events: none; animation: favorite-ring 420ms ease-out forwards; }
@keyframes favorite-pop { 0%, 100% { transform: scale(1); } 35% { transform: scale(1.22) rotate(-8deg); } 65% { transform: scale(.94) rotate(5deg); } }
@keyframes favorite-release { 0%, 100% { transform: scale(1); } 45% { transform: scale(.82); } 75% { transform: scale(1.06); } }
@keyframes favorite-ring { from { transform: scale(.85); opacity: .65; } to { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
    .product-favorite.favorite-added, .product-favorite.favorite-removed { animation: none; }
    .product-favorite.favorite-added::after { display: none; }
}

.products-count #productCountLabel { font-weight: 400; color: inherit; }

.product-weight .product-weight-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 16px; height: 16px; font-size: 16px; line-height: 16px; }

/* Mobile corner ribbons keep image sizes and card heights unchanged. */
.product-label-stack .product-badge { position: static; max-width: 100%; }
@media (max-width: 768px) {
    .product-image > .product-label-stack,
    .product-card:has(.product-favorite) .product-image > .product-label-stack {
        top: 11px;
        left: -39px;
        width: 120px;
        max-width: none;
        align-items: stretch;
        gap: 3px;
        transform: rotate(-45deg);
        transform-origin: 60px 10px;
        pointer-events: none;
    }
    .product-image > .product-label-stack .product-label,
    .product-image > .product-label-stack .product-badge {
        position: static;
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 20px;
        padding: 1.5px 18px;
        border-radius: 0;
        transform: none;
        font-size: 9px;
        line-height: 1.3;
        text-align: center;
        white-space: normal;
        overflow-wrap: anywhere;
        box-shadow: 0 2px 4px #00000020;
    }
}
