/* Shop cards also appear in shortcodes, favourites and the recently viewed carousel. */
.products_row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
    margin: 0 0 40px;
    padding: 32px 0;
    border-bottom: 0;
}

.product_item.oris-product-card {
    --card-ink: #2c1c13;
    --card-line: #e7e1d6;
    display: flex;
    flex-direction: column;
    position: relative;
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 1px solid var(--card-line);
    border-radius: 14px;
    background: #fffdfa;
    color: var(--card-ink);
    box-shadow: 0 3px 14px #2c1c1305;
    font-family: Montserrat, Arial, sans-serif;
}
.oris-product-card .product_item_top { min-width: 0; }
.oris-product-card .woocommerce-loop-product__link {
    display: block;
    height: 100%;
    border-radius: 13px 13px 0 0;
    color: inherit;
    text-decoration: none;
}
.oris-product-card .product_item_img {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1.1;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 13px 13px 0 0;
    background: #f5f3ee;
}
.oris-product-card .product_item_img img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    object-fit: contain;
    object-position: center;
    mix-blend-mode: multiply;
}
.oris-product-card .product_item_title {
    box-sizing: border-box;
    min-height: 2.9em;
    margin: 18px 20px 0;
    padding: 0;
    color: var(--card-ink);
    font: 500 16px/1.45 Montserrat, Arial, sans-serif;
    letter-spacing: 0;
    text-align: left;
    text-transform: none;
    overflow-wrap: anywhere;
}
.oris-product-card .woocommerce-loop-product__link:hover .product_item_title { color: #89672b; }
.oris-product-card .oris-product-card__activity { margin-top: auto; padding: 14px 20px 16px; }
.oris-product-card .oris-product-card__activity .oris-material-actions { margin: 0; }
.oris-product-card .product_item_bottom {
    display: flex;
    position: static;
    flex-direction: column;
    gap: 12px;
    margin: 0 20px;
    padding: 16px 0 20px;
    border-top: 1px solid var(--card-line);
}
.oris-product-card .product_item_bottom .price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    margin: 0;
    color: var(--card-ink);
    font: 700 24px/1.2 Philosopher, Georgia, serif;
    letter-spacing: 0;
}
.oris-product-card .price del { color: #81766b; font-size: 16px; font-weight: 400; }
.oris-product-card .price ins { background: none; color: inherit; text-decoration: none; }
.oris-product-card .product_item_bottom .button,
.oris-product-card .product_item_bottom .added_to_cart {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    height: auto;
    margin: 0;
    padding: 12px 16px;
    border: 1px solid #ceb16b;
    border-radius: 8px;
    background: #e4cd91;
    color: var(--card-ink);
    box-shadow: none;
    font: 600 14px/1.4 Montserrat, Arial, sans-serif;
    letter-spacing: 0;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    transform: none;
    transition: background-color .15s ease;
}
.oris-product-card .product_item_bottom .button:hover,
.oris-product-card .product_item_bottom .added_to_cart:hover { background: #d7bb72; border-color: #bea05a; }
.oris-product-card .product_item_bottom .button.loading { opacity: .6; cursor: wait; }
.oris-product-card .product_item_bottom .button.added { display: none; }
.oris-product-card .product_item_bottom .added_to_cart { background: #f1ead8; }
.oris-product-card .product_item_bottom .button:focus-visible,
.oris-product-card .product_item_bottom .added_to_cart:focus-visible,
.oris-product-card .woocommerce-loop-product__link:focus-visible { outline: 2px solid #89672b; outline-offset: 3px; }
.oris-product-card .product_item_img .onsale {
    position: absolute;
    z-index: 1;
    top: 12px;
    left: 12px;
    right: auto;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 6px 10px;
    border-radius: 5px;
    background: #fffdfa;
    color: #89672b;
    font: 500 11px/1.4 Montserrat, Arial, sans-serif;
}
.block_recently_viewed .oris-product-card .product_item_bottom { display: flex; }
.block_recently_viewed .owl-stage { display: flex; }
.block_recently_viewed .owl-item { display: flex; flex-shrink: 0; padding-bottom: 4px; }

@media (max-width: 1100px) { .products_row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (max-width: 800px) { .products_row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) {
    .products_row { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 20px 0; }
    .product_item.oris-product-card { max-width: 400px; justify-self: center; }
    .oris-product-card .product_item_img { aspect-ratio: auto; height: 248px; }
    .oris-product-card .product_item_title { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .oris-product-card .product_item_bottom .button,
    .oris-product-card .product_item_bottom .added_to_cart { transition: none; }
}
