/* Compact cart action in desktop product lists. */
.product .catalog-purchase-row {
    box-sizing: border-box;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 8px;
}
.product .catalog-purchase-row .catalog-price .currency {
    display: inline-block;
    margin-left: 2px;
}
.product .catalog-purchase-row .QuantityBlock {
    box-sizing: border-box;
    flex: 0 0 100px;
    width: 100px;
    height: 34px;
    margin: 13px 0 0;
    padding: 4px 8px;
    scale: 1 !important;
}
.product .catalog-purchase-row .QuantityBlock > div {
    flex: 0 0 32px;
    min-width: 0;
}
.product .catalog-purchase-row .QuantityBlock .amount {
    box-sizing: border-box;
    width: 32px;
    min-width: 0;
    height: 26px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    outline: none;
    text-align: center;
    font-size: 20px;
}
.product .catalog-purchase-row .QuantityBlock .amount:focus {
    background: transparent;
    box-shadow: none;
    outline: none;
}
.product .catalog-purchase-row .QuantityBlock:has(:focus-visible) {
    outline: 2px solid #458500;
    outline-offset: 2px;
}
.product .catalog-purchase-row .catalog-cart {
    box-sizing: border-box;
    width: 34px;
    min-width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 2px solid #f38a00;
    border-radius: 50%;
    color: #458500;
    font: bold 22px Arial, sans-serif;
    box-shadow: none;
    background: #fff url("cart-add.svg") center / 24px 24px no-repeat;
    cursor: pointer;
}
.product .catalog-purchase-row .catalog-cart:hover { background-color: #fff5e8; }
.product .catalog-purchase-row .catalog-cart[value="✓"] { background-image: none; }
.product .catalog-purchase-row .catalog-cart:focus-visible { outline: 2px solid #458500; outline-offset: 3px; }
.product .catalog-purchase-row .catalog-cart:disabled { opacity: .6; cursor: wait; }

/* Shelf life below the name; no empty row for products without a valid date. */
.product .catalog-expiry {
    padding: 3px 10px 0;
    text-align: center;
    color: #777;
    font-size: 12px;
    line-height: 18px;
}
.product .catalog-expiry time {
    color: #458500;
    font-weight: 600;
    white-space: nowrap;
}

/* Let each row contain its complete cards, including shelf life and variants. */
.tiny_products.hoverable {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}
.tiny_products.hoverable > div.product_wrap {
    display: flex;
    height: auto;
    min-height: 0;
}
.tiny_products.hoverable .product_wrap > .product {
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
    height: auto;
    min-width: 0;
    padding-bottom: 12px;
}
.tiny_products.hoverable .product > .catalog-gallery { flex-shrink: 0; }
.tiny_products.hoverable .product > .product_info {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.tiny_products.hoverable .product_info > div:last-child { margin-top: 8px; }
.tiny_products.hoverable .product_info > .product_title {
    box-sizing: border-box;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    flex-shrink: 0;
    height: 34px;
    max-height: 34px;
    overflow: hidden;
    padding: 0;
    line-height: 17px;
}
.tiny_products.hoverable .product_title > a { display: inline; }
.product .catalog-rating {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    max-width: none;
    min-height: 20px;
    margin: 0 0 4px;
    padding: 0;
    background: transparent;
    font-size: 12px;
    line-height: 20px;
}
.product .catalog-rating > .rater-starsOff_sm {
    flex: 0 0 60px;
    width: 60px;
}
.product .catalog-rating-value { white-space: nowrap; }
.product .catalog-rating-count { color: #747474; }
.tiny_products.hoverable .variants .price_wrap {
    box-sizing: border-box;
    width: 100%;
    height: auto;
    white-space: normal;
}
.tiny_products.hoverable .variants .price_wrap .button {
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: auto;
    margin-top: 6px;
    white-space: normal;
}
.tiny_products.hoverable .variants > .price {
    height: auto;
    min-height: 26px;
}

.tiny_products.hoverable .product > .wishcomp {
    position: absolute;
    top: 8px;
    right: 10px;
    margin: 0;
    z-index: 3;
}
