/* Card typography follows the reference proportions at the actual card width. */
.product-card,
.product-card.product-card__hover {
    border-radius: 20px;
}
.product-card .caption h4,
.product-card .caption-list h4 {
    display: block;
    height: 2.6em;
    min-height: 2.6em;
    max-height: 2.6em;
    margin-bottom: 8px;
    font-size: 18px;
    line-height: 1.3;
    overflow: hidden;
}
.product-card .caption h4 a,
.product-card .caption-list h4 a {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    height: 2.6em;
    min-height: 2.6em !important;
    max-height: 2.6em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: inherit !important;
    line-height: 1.3 !important;
}
.product-card .caption h4 a::after,
.product-card .caption-list h4 a::after { content: none; }
.product-card .wrap_proba_rating {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    min-height: 32px;
    padding-bottom: 6px;    
}
.product-card .wrap_proba_rating .rating{
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin: 0 !important;
    color: #000;
    font-size: 14px !important;
    font-weight: 400;
    line-height: 1.3;    
}
.product-card .wrap_proba_rating .proba{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 !important;
    color: #000;
    font-size: 14px !important;
    font-weight: 400;
    line-height: 1.3;
}
.card-proba-icon {
    display: inline-block;
    width: 23px;
    height: 30px;
    object-fit: contain;
    flex-shrink: 0;
}
.card-rating-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}
.product-card .card-proba-value,
.product-card .rating__number { color: #000; }
.product-card .wrap_price p.price {
    font-weight: 700;
    line-height: 1;
    font-size: 22px;
    margin-bottom: 0;
    font-family: 'InterSemiBold';
}
/* Keep the existing two-panel hover animation and its 100px viewport. */
@media (min-width: 976px) {
    .product-card .wrap_hover,
    .product-card .wrap_hover > div { min-height: 100px; }
    /* Live-stream cards use auto-height panels, unlike the regular hover cards. */
    #translationRelated .products__translation .product-card .wrap_hover,
    #translationRelated .products__translation .product-card .wrap_hover > div { min-height: 0; }
}
@media (max-width: 575px) {
    .product-card .caption h4,
    .product-card .caption-list h4 { font-size: 14px; }
    .product-card .wrap_proba_rating .proba,
    .product-card .wrap_proba_rating .rating { font-size: 12px !important; }
}

/* Cart control belongs to the image area; purchase and stock-notification buttons stay distinct. */
.product-card .caption,
.product-card .caption-list { overflow: visible; }
.product-card .card-cart-button.product__addcart {
    position: absolute;
    right: 12px;
    bottom: calc(100% + 12px);
    top: auto;
    width: 40px;
    height: 40px;
    min-width: 40px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    border-radius: 11px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s, visibility .18s;
}
.product-card:hover .card-cart-button,
.product-card:focus-within .card-cart-button {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.card-cart-button .card-cart-icon { display: block; width: 100%; height: 100%; }
.card-cart-button .card-cart-frame { fill: #fff5e3 !important; stroke: #c3a477 !important; transition: fill .18s, stroke .18s; }
.card-cart-button .card-cart-drawing path { fill: none !important; stroke: #141210 !important; transition: stroke .18s; }
.card-cart-button:hover .card-cart-frame,
.card-cart-button:focus-visible .card-cart-frame { fill: #141210 !important; stroke: #141210 !important; }
.card-cart-button:hover .card-cart-drawing path,
.card-cart-button:focus-visible .card-cart-drawing path { stroke: #fff !important; }
.card-cart-button:focus-visible { outline: 2px solid #c3a477; outline-offset: 3px; }
.card-cart-button:disabled { cursor: wait; }
@media (hover: hover) and (min-width: 976px) {
    .product-card.no-:focus-within .wrap_hover > div { transform: translate3d(0, -100%, 0); }
    .product-card.no-:focus-within .wrap_hover > div:first-child { opacity: 0; }
}
@media (hover: none), (max-width: 975px) {
    .product-card .card-cart-button.product__addcart { opacity: 1; visibility: visible; pointer-events: auto; }
    .product-card:has(.card-cart-button) .product__addcart__mobile { display: none !important; }
}
.product-list .product-card .card-cart-button.product__addcart { position: relative; bottom: auto; right: auto; }

/* Hover gallery uses the same image box as the resting thumbnail. */
.product-card .product-card-image .thumbs {
    position: absolute;
    inset: 0;
}
.product-card .product-card-image .thumbs .swiper-slide > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.product-card .product-card-image .thumbs .swiper-slide img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100% !important;
    object-fit: contain;
    transform: none !important;
}
.product-card .product-card-image .thumb img {
    transform: none !important;
}
