/* Shared product card design for homepage widgets and shop archives. */
.safir-products { --safir-wine: #830d20; padding: 14px; border-radius: 14px; direction: rtl; background: #f1dfe0; color: var(--safir-wine); }
.safir-products--latest { background: #f4eade; }
.safir-products--amazing { display: flex; align-items: stretch; gap: 22px; padding: 20px; background: linear-gradient(115deg, #781020, #8c1428 65%, #74101e); color: #fff; }
.safir-products .safir-products-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; max-width: none; padding: 0 4px 10px; text-align: right; }
.safir-products .safir-products-title { position: relative; margin: 0; padding: 0 12px 0 0; border-right: 4px solid currentColor; color: inherit; font-family: inherit; font-size: clamp(20px, 2.2vw, 29px); line-height: 1.6; font-weight: 900; }
.safir-products .safir-products-title::after { content: none; }
.safir-products .safir-products-view-all { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0; color: inherit; font-size: 13px; font-weight: 700; text-decoration: none; }
.safir-products .safir-products-view-all span { font-size: 25px; line-height: 1; }
.safir-products--amazing .safir-products-heading { flex: 0 0 18%; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: 18%; padding: 0 0 0 22px; border-left: 1px solid #ffffff90; text-align: center; }
.safir-products--amazing .safir-products-title { padding: 0; border: 0; font-size: clamp(24px, 2.3vw, 34px); line-height: 1.4; }
.safir-products .safir-offer-clock { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.safir-products .safir-products-description { margin: 0; font-size: 14px; line-height: 1.8; color: #fff; }
.safir-products--amazing .safir-products-view-all { min-height: 38px; margin-top: 8px; padding: 5px 20px; border-radius: 8px; background: #fff; color: #35151a; font-size: 15px; }
.safir-products .safir-products-track { flex: 1; min-width: 0; }
.safir-products .safir-products-carousel:not(.owl-loaded) { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.safir-products--amazing .safir-products-carousel:not(.owl-loaded) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.safir-products .safir-products-carousel .owl-stage { display: flex; }
.safir-products .owl-item, .safir-products .safir-products-item { display: flex; min-width: 0; }
.safir-products .safir-products-item { width: 100%; padding-bottom: 2px; }
:is(.safir-products, .safir-shop-cards) .custom_product_card { width: 100%; height: 100%; border: 1px solid #decaca; border-radius: 9px; background: #fff; box-shadow: none; }
:is(.safir-products, .safir-shop-cards) .custom_product_card:hover { transform: none; box-shadow: inset 0 0 0 1px #830d2030; }
:is(.safir-products, .safir-shop-cards) .custom_product_card .product_img_wrap { padding: 8px; background: #fff; }
:is(.safir-products, .safir-shop-cards) .custom_product_card .product_thumb_img { width: 100%; height: clamp(115px, 11vw, 170px); border-radius: 5px; object-fit: contain; background: #fff; }
:is(.safir-products, .safir-shop-cards) .custom_product_card .product_details { flex: 1; padding: 2px 10px 7px; text-align: center; }
:is(.safir-products, .safir-shop-cards) .custom_product_card .product_title { margin: 3px 0 7px; font-size: 13px; line-height: 1.7; font-weight: 700; }
:is(.safir-products, .safir-shop-cards) .custom_product_card .product_title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 44px; overflow: hidden; color: #211d1d; }
:is(.safir-products, .safir-shop-cards) .custom_product_card .product_price_box { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 6px; color: var(--safir-wine); font-size: 15px; font-weight: 800; line-height: 1.8; }
:is(.safir-products, .safir-shop-cards) .product_price_box del { color: #8b8585; font-size: 11px; font-weight: 400; }
:is(.safir-products, .safir-shop-cards) .product_price_box ins { background: transparent; color: var(--safir-wine); text-decoration: none; }
:is(.safir-products, .safir-shop-cards) .custom_product_card .sale_badge { top: 8px; right: auto; left: 8px; min-height: 24px; padding: 3px 8px; border-radius: 7px; background: var(--safir-wine); font-size: 11px; }
:is(.safir-products, .safir-shop-cards) .custom_product_card .card_cart_btn { display: flex; flex-direction: row-reverse; align-items: center; justify-content: center; gap: 8px; width: auto; min-height: 36px; margin: 0 10px 8px; padding: 5px 8px; border: 0; border-radius: 7px; background: var(--safir-wine); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.6; text-decoration: none; }
:is(.safir-products, .safir-shop-cards) .custom_product_card .card_cart_btn:hover { background: #650918; }
:is(.safir-products, .safir-shop-cards) .custom_product_card .card_cart_btn.is_out_of_stock { background: #8c8585; }
.safir-products .owl-nav { display: flex; justify-content: center; gap: 8px; margin: 8px 0 0; }
.safir-products .owl-nav button.owl-prev, .safir-products .owl-nav button.owl-next { position: static; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin: 0; padding: 0 !important; border-radius: 50%; background: #fff; color: var(--safir-wine); font-size: 24px; line-height: 1; }
.safir-products .owl-nav button.disabled { opacity: .35; }
.safir-products .owl-nav.disabled { display: none; }
.safir-products .safir-products-empty { margin: 0; padding: 30px 15px; text-align: center; color: inherit; }
.safir-products a:focus-visible, .safir-products button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.safir-products--no-title { display: block; }
@media (max-width: 767.98px) {
    .safir-products { padding: 10px; border-radius: 12px; }
    .safir-products--amazing { flex-direction: column; gap: 12px; }
    .safir-products--amazing .safir-products-heading { flex: auto; width: 100%; flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-left: 0; border-bottom: 1px solid #ffffff60; padding: 0 0 12px; text-align: right; }
    .safir-products--amazing .safir-products-title { flex: 1; font-size: 23px; }
    .safir-products--amazing .safir-offer-clock { width: 29px; height: 29px; }
    .safir-products--amazing .safir-products-description { display: none; }
    .safir-products--amazing .safir-products-view-all { min-height: 34px; margin: 0; padding: 4px 10px; font-size: 12px; }
    .safir-products .safir-products-title { font-size: 19px; }
    .safir-products .safir-products-view-all { font-size: 11px; }
    :is(.safir-products, .safir-shop-cards) .custom_product_card .product_thumb_img { height: 125px; }
    :is(.safir-products, .safir-shop-cards) .custom_product_card .product_details { padding-inline: 7px; }
    :is(.safir-products, .safir-shop-cards) .custom_product_card .product_title { font-size: 12px; }
    :is(.safir-products, .safir-shop-cards) .custom_product_card .product_price_box { font-size: 13px; }
    :is(.safir-products, .safir-shop-cards) .custom_product_card .card_cart_btn { margin-inline: 7px; font-size: 11px; }
    .safir-products .safir-products-carousel:not(.owl-loaded) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .safir-products * { transition: none !important; } }
/* Larger photographs and a compact information row, following the approved card reference. */
:is(.safir-products, .safir-shop-cards) .custom_product_card {
    box-sizing: border-box;
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 14px;
    border: 0;
    border-radius: 11px;
    overflow: hidden;
}
:is(.safir-products, .safir-shop-cards) .custom_product_card .product_img_wrap {
    flex: 0 0 auto;
    width: 100%;
    padding: 0;
    border-radius: 7px;
    overflow: hidden;
    background: #f5f3f1;
}
:is(.safir-products, .safir-shop-cards) .custom_product_card .main_img_link {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 7px;
}
:is(.safir-products, .safir-shop-cards) .custom_product_card .product_thumb_img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border-radius: 7px;
    background: #f5f3f1;
}
:is(.safir-products, .safir-shop-cards) .custom_product_card .product_details {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
    align-items: start;
    gap: 10px;
    flex: 1 0 auto;
    width: 100%;
    min-height: 66px;
    padding: 14px 0 0;
    text-align: right;
}
:is(.safir-products, .safir-shop-cards) .custom_product_card .product_title {
    display: block;
    min-width: 0;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.8;
    text-align: right;
}
:is(.safir-products, .safir-shop-cards) .custom_product_card .product_title a {
    min-height: 0;
    overflow-wrap: anywhere;
    color: #252222;
}
:is(.safir-products, .safir-shop-cards) .custom_product_card .product_price_box {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    align-content: start;
    justify-content: flex-start;
    width: auto;
    min-width: 0;
    margin: 0;
    gap: 0 4px;
    color: var(--safir-wine);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.8;
    text-align: left;
}
:is(.safir-products, .safir-shop-cards) .custom_product_card .product_price_box .price {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
}
:is(.safir-products, .safir-shop-cards) .custom_product_card .product_price_box ins,
:is(.safir-products, .safir-shop-cards) .custom_product_card .product_price_box ins .amount,
:is(.safir-products, .safir-shop-cards) .custom_product_card .product_price_box > .amount {
    color: var(--safir-wine);
    font-size: 14px;
    font-weight: 600;
    background: transparent;
}
:is(.safir-products, .safir-shop-cards) .custom_product_card .product_price_box del,
:is(.safir-products, .safir-shop-cards) .custom_product_card .product_price_box del .amount {
    color: #969090;
    font-size: 11px;
    font-weight: 400;
}
:is(.safir-products, .safir-shop-cards) .custom_product_card .card_cart_btn {
    box-sizing: border-box;
    flex: 0 0 auto;
    align-self: stretch;
    width: 100%;
    min-height: 44px;
    margin: 12px 0 0;
    padding: 9px 8px;
    border-radius: 7px;
    font-size: 13px;
    line-height: 1.7;
}
:is(.safir-products, .safir-shop-cards) .custom_product_card .card_cart_btn:hover { transform: none; }
:is(.safir-products, .safir-shop-cards) .custom_product_card .gallery_thumb.active {
    border-color: var(--safir-wine);
    box-shadow: 0 0 0 1px var(--safir-wine);
}
:is(.safir-products, .safir-shop-cards) .custom_product_card .gallery_thumb:hover { border-color: var(--safir-wine); }
.safir-products .safir-products-carousel .owl-nav button::before,
.safir-products .safir-products-carousel .owl-nav button::after { content: none !important; }
.safir-products .safir-products-carousel .owl-nav button > span {
    display: inline !important;
    font-family: Arial, sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
}
@container (max-width: 260px) {
    :is(.safir-products, .safir-shop-cards) .custom_product_card .product_details { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    :is(.safir-products, .safir-shop-cards) .custom_product_card .product_price_box { justify-content: flex-start; text-align: right; }
}
@media (max-width: 767.98px) {
    :is(.safir-products, .safir-shop-cards) .custom_product_card { padding: 9px; border-radius: 9px; }
    :is(.safir-products, .safir-shop-cards) .custom_product_card .product_title { font-size: 12px; }
    :is(.safir-products, .safir-shop-cards) .custom_product_card .product_details { min-height: 96px; padding: 10px 0 0; }
    :is(.safir-products, .safir-shop-cards) .custom_product_card .card_cart_btn { width: 100%; margin: 10px 0 0; font-size: 11px; }
}
/* Popular and latest sections use the same title-column layout as offers. */
.safir-products--popular:not(.safir-products--no-title),
.safir-products--latest:not(.safir-products--no-title) {
    display: flex;
    align-items: stretch;
    gap: 22px;
    padding: 20px;
}
.safir-products--popular .safir-products-heading,
.safir-products--latest .safir-products-heading {
    flex: 0 0 18%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 18%;
    gap: 22px;
    padding: 20px 0 20px 22px;
    border-left: 1px solid #830d2040;
    text-align: center;
}
.safir-products--popular .safir-products-title,
.safir-products--latest .safir-products-title {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: clamp(24px, 2.3vw, 34px);
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.safir-products--popular .safir-products-view-all,
.safir-products--latest .safir-products-view-all {
    min-height: 40px;
    max-width: 100%;
    padding: 6px 18px;
    border-radius: 8px;
    background: #830d20;
    color: #fff;
    font-size: 14px;
}
.safir-products--popular .safir-products-view-all:hover,
.safir-products--latest .safir-products-view-all:hover { background: #650918; }
@media (max-width: 767.98px) {
    .safir-products--popular:not(.safir-products--no-title),
    .safir-products--latest:not(.safir-products--no-title) {
        flex-direction: column;
        gap: 12px;
        padding: 10px;
    }
    .safir-products--popular .safir-products-heading,
    .safir-products--latest .safir-products-heading {
        flex: auto;
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
        width: 100%;
        gap: 10px;
        padding: 0 0 12px;
        border-left: 0;
        border-bottom: 1px solid #830d2030;
        text-align: right;
    }
    .safir-products--popular .safir-products-title,
    .safir-products--latest .safir-products-title { font-size: 21px; }
    .safir-products--popular .safir-products-view-all,
    .safir-products--latest .safir-products-view-all { min-height: 38px; padding: 5px 12px; font-size: 12px; }
}
/* Warm campaign backgrounds, coordinated with the burgundy brand palette. */
.safir-products--popular {
    background-color: #edbdc5;
    background-image:
        radial-gradient(ellipse at 100% 10%, #fff1e6b3 0%, transparent 52%),
        radial-gradient(ellipse at 0% 100%, #bd647c4d 0%, transparent 58%),
        linear-gradient(120deg, #e9b2c1 0%, #f7d9d5 52%, #dc8e9e 100%);
    box-shadow: inset 0 0 0 1px #a7355026, 0 5px 20px #830d200a;
}
.safir-products--latest {
    background-color: #efd0a0;
    background-image:
        radial-gradient(ellipse at 100% 0%, #fff9e6cc 0%, transparent 52%),
        radial-gradient(ellipse at 0% 100%, #cf976140 0%, transparent 58%),
        linear-gradient(120deg, #e9bf96 0%, #f8e3be 52%, #e4b879 100%);
    box-shadow: inset 0 0 0 1px #a9723026, 0 5px 20px #79501f0a;
}
.safir-products .safir-view-all-arrow {
    display: block;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: none;
}