/* Shared storefront product card: calm retail surface with navy and gold details. */
.home-product-card,
.related-product-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dedfe4;
    border-radius: 19px;
    background: #11162f;
    box-shadow: 0 11px 30px rgba(17, 22, 47, .07);
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.home-product-card:hover,
.home-product-card:focus-within,
.related-product-card:hover,
.related-product-card:focus-within {
    border-color: rgba(17, 22, 47, .22);
    box-shadow: 0 20px 44px rgba(17, 22, 47, .12);
    transform: translateY(-3px);
}

.home-product-media,
.related-product-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 4.65;
    border: 0;
    background: linear-gradient(145deg, #f8f8f6 0%, #efefeb 100%);
}

.home-product-media::after,
.related-product-media::after {
    position: absolute;
    inset: auto 0 0;
    z-index: 2;
    height: 34%;
    content: "";
    opacity: .36;
    background: linear-gradient(180deg, transparent, rgba(17, 22, 47, .34));
    pointer-events: none;
    transition: opacity .25s ease;
}

.home-product-media > a:first-child,
.related-product-media > a:first-child,
.home-product-media img,
.related-product-media img {
    display: block;
    width: 100%;
    height: 100%;
}

.home-product-media img,
.related-product-media img {
    object-fit: cover;
    object-position: center;
    transition: filter .4s ease, transform .55s cubic-bezier(.2, .7, .2, 1);
}

.home-product-card:hover .home-product-media img,
.home-product-card:focus-within .home-product-media img,
.related-product-card:hover .related-product-media img,
.related-product-card:focus-within .related-product-media img {
    filter: saturate(1.04);
    transform: scale(1.045);
}

.home-product-card:hover .home-product-media::after,
.home-product-card:focus-within .home-product-media::after,
.related-product-card:hover .related-product-media::after,
.related-product-card:focus-within .related-product-media::after {
    opacity: .56;
}

.home-product-badge,
.related-product-badge {
    position: absolute;
    z-index: 5;
    top: 13px;
    left: 13px;
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    padding-inline: 10px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 8px;
    color: #11162f;
    background: #eab516;
    box-shadow: 0 8px 20px rgba(17, 22, 47, .16);
    font-size: 9px;
    font-weight: 850;
    line-height: 1;
    letter-spacing: .035em;
}

.home-product-badge.badge-new {
    color: #fff;
    background: #11162f;
}

.home-product-badge.badge-stock,
.related-product-badge.is-stock {
    top: 48px;
    color: #fff;
    background: #a83944;
}

.product-wishlist-button,
.related-wishlist-button,
.home-product-card .product-whatsapp-button,
.related-product-card .product-whatsapp-button {
    position: absolute;
    z-index: 6;
    right: 13px;
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(17, 22, 47, .1);
    border-radius: 10px;
    place-items: center;
    color: #11162f;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 7px 20px rgba(17, 22, 47, .11);
    font-size: 14px;
    backdrop-filter: blur(9px);
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.product-wishlist-button,
.related-wishlist-button {
    top: 13px;
}

.home-product-card .product-whatsapp-button,
.related-product-card .product-whatsapp-button {
    top: 58px;
    color: #168f59;
}

.product-wishlist-button:hover,
.related-wishlist-button:hover {
    color: #eab516;
    background: #11162f;
    transform: translateY(-2px);
}

.home-product-card .product-whatsapp-button:hover,
.related-product-card .product-whatsapp-button:hover {
    color: #fff;
    background: #168f59;
    transform: translateY(-2px);
}

.home-product-media > .quick-add-button,
.related-product-media > .related-add-button {
    position: absolute;
    z-index: 6;
    right: 12px;
    bottom: 12px;
    left: 12px;
    display: flex;
    width: auto;
    min-width: 0;
    min-height: 44px;
    height: 44px;
    gap: 9px;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 11px;
    opacity: 0;
    color: #fff;
    background: rgba(17, 22, 47, .96);
    box-shadow: 0 10px 24px rgba(17, 22, 47, .2);
    font-size: 11px;
    font-weight: 800;
    transform: translateY(8px);
    backdrop-filter: blur(8px);
    transition: color .2s ease, background .2s ease, opacity .2s ease, transform .2s ease;
}

.home-product-media > .quick-add-button i,
.related-product-media > .related-add-button i {
    color: #eab516;
    font-size: 11px;
}

.home-product-card:hover .quick-add-button,
.home-product-card:focus-within .quick-add-button,
.related-product-card:hover .related-add-button,
.related-product-card:focus-within .related-add-button {
    opacity: 1;
    transform: translateY(0);
}

.home-product-media > .quick-add-button:hover,
.related-product-media > .related-add-button:hover {
    color: #11162f;
    border-color: #eab516;
    background: #eab516;
}

.home-product-media > .quick-add-button:hover i,
.related-product-media > .related-add-button:hover i {
    color: #11162f;
}

.home-product-media > .quick-add-button.is-disabled,
.related-product-media > .related-add-button.is-disabled {
    opacity: .9;
    color: rgba(255, 255, 255, .72);
    background: rgba(77, 80, 91, .94);
    cursor: not-allowed;
    transform: none;
}

.home-product-info,
.related-product-info,
.catalog-page .product-result-item .home-product-info {
    position: relative;
    display: grid;
    min-height: 98px;
    flex: 0 0 98px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-rows: 22px minmax(40px, auto);
    gap: 7px 12px;
    align-items: center;
    padding: 14px 16px 15px;
    color: #fff;
    border-top: 1px solid rgba(234, 181, 22, .38);
    background: linear-gradient(145deg, #1d264e 0%, #11162f 52%, #090d23 100%);
}

.home-product-info::before,
.related-product-info::before {
    display: none;
}

.home-product-meta,
.related-product-meta {
    display: contents;
    margin: 0;
    color: rgba(255, 255, 255, .66);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .055em;
    line-height: 1.2;
    text-transform: uppercase;
}

.home-product-meta > span:first-child,
.related-product-meta > span:first-child {
    min-width: 0;
    grid-row: 1;
    grid-column: 1;
    overflow: hidden;
    color: #eab516;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-product-rating,
.related-product-meta > span:last-child {
    display: inline-flex;
    min-height: 22px;
    grid-row: 1;
    grid-column: 2;
    gap: 4px;
    align-items: center;
    color: rgba(255, 255, 255, .68);
    letter-spacing: 0;
    white-space: nowrap;
    text-transform: none;
}

.home-product-rating i,
.related-product-meta > span:last-child i {
    color: #eab516;
    font-size: 9px;
}

.home-product-rating small {
    color: rgba(255, 255, 255, .48);
    font-size: 8px;
}

.product-card-title {
    width: 100%;
    min-width: 0;
    grid-row: 2;
    grid-column: 1 / -1;
    align-self: center;
    margin: 0;
    font: inherit;
}

.product-card-title > a,
.related-product-title,
.product-card-title > a:hover,
.related-product-title:hover {
    display: -webkit-box;
    min-width: 0;
    min-height: 40px;
    margin: 0;
    overflow: hidden;
    color: #fff;
    font-family: "Manrope", sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -.012em;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-card-title > a:hover,
.related-product-title:hover {
    color: #f6d36a;
}

.home-product-price,
.related-product-price {
    display: flex;
    width: auto;
    min-width: 0;
    min-height: 22px;
    grid-row: 1;
    grid-column: 3;
    gap: 6px;
    align-items: baseline;
    justify-self: end;
    margin: 0;
    padding: 0;
    border: 0;
    white-space: nowrap;
}

.home-product-price strong,
.related-product-price strong {
    color: #fff;
    font-family: "Manrope", sans-serif;
    font-size: 15px;
    font-weight: 850;
    line-height: 1;
}

.home-product-price del,
.related-product-price del {
    color: rgba(255, 255, 255, .43);
    font-size: 8px;
    font-weight: 600;
    line-height: 1;
    text-decoration-color: rgba(255, 255, 255, .56);
    text-decoration-thickness: 1px;
}

.home-product-card:focus-visible,
.related-product-card:focus-visible,
.product-wishlist-button:focus-visible,
.related-wishlist-button:focus-visible,
.home-product-card .product-whatsapp-button:focus-visible,
.related-product-card .product-whatsapp-button:focus-visible,
.home-product-media > .quick-add-button:focus-visible,
.related-product-media > .related-add-button:focus-visible {
    outline: 3px solid #eab516;
    outline-offset: 3px;
}

html[dir="rtl"] .home-product-badge,
html[dir="rtl"] .related-product-badge {
    right: 13px;
    left: auto;
}

html[dir="rtl"] .product-wishlist-button,
html[dir="rtl"] .related-wishlist-button,
html[dir="rtl"] .home-product-card .product-whatsapp-button,
html[dir="rtl"] .related-product-card .product-whatsapp-button {
    right: auto;
    left: 13px;
}

html[dir="rtl"] .home-product-info::before,
html[dir="rtl"] .related-product-info::before {
    right: 17px;
    left: auto;
}

@media (max-width: 991px), (hover: none) {
    .home-product-media > .quick-add-button,
    .related-product-media > .related-add-button {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 767px) {
    .home-product-card,
    .related-product-card {
        border-radius: 16px;
        box-shadow: 0 9px 24px rgba(17, 22, 47, .075);
    }

    .home-product-card:hover,
    .home-product-card:focus-within,
    .related-product-card:hover,
    .related-product-card:focus-within {
        transform: none;
    }

    .home-product-badge,
    .related-product-badge {
        top: 9px;
        left: 9px;
        min-height: 24px;
        padding-inline: 8px;
        border-radius: 7px;
        font-size: 7px;
    }

    .home-product-badge.badge-stock,
    .related-product-badge.is-stock {
        top: 40px;
    }

    .product-wishlist-button,
    .related-wishlist-button,
    .home-product-card .product-whatsapp-button,
    .related-product-card .product-whatsapp-button {
        right: 9px;
        width: 34px;
        height: 34px;
        border-radius: 9px;
        font-size: 12px;
    }

    .product-wishlist-button,
    .related-wishlist-button {
        top: 9px;
    }

    .home-product-card .product-whatsapp-button,
    .related-product-card .product-whatsapp-button {
        top: 50px;
    }

    .home-product-media > .quick-add-button,
    .related-product-media > .related-add-button {
        right: 8px;
        bottom: 8px;
        left: 8px;
        min-height: 38px;
        height: 38px;
        padding-inline: 8px;
        border-radius: 9px;
        font-size: 9px;
    }

    .home-product-info,
    .related-product-info,
    .catalog-page .product-result-item .home-product-info {
        min-height: 84px;
        flex-basis: 84px;
        grid-template-columns: minmax(0, 1fr) auto auto;
        grid-template-rows: 18px minmax(32px, auto);
        gap: 5px 6px;
        padding: 9px 9px 10px;
    }

    .home-product-info::before,
    .related-product-info::before {
        left: 12px;
        width: 30px;
    }

    .home-product-meta,
    .related-product-meta {
        margin: 0;
        font-size: 7.5px;
    }

    .product-card-title > a,
    .related-product-title {
        min-height: 32px;
        font-size: 11.5px;
        line-height: 1.4;
    }

    .home-product-price,
    .related-product-price {
        min-width: 0;
        min-height: 18px;
        gap: 3px;
        padding: 0;
    }

    .home-product-price strong,
    .related-product-price strong {
        font-size: 12px;
    }

    .home-product-price del,
    .related-product-price del {
        display: inline;
        font-size: 7px;
    }

    html[dir="rtl"] .home-product-badge,
    html[dir="rtl"] .related-product-badge {
        right: 9px;
    }

    html[dir="rtl"] .product-wishlist-button,
    html[dir="rtl"] .related-wishlist-button,
    html[dir="rtl"] .home-product-card .product-whatsapp-button,
    html[dir="rtl"] .related-product-card .product-whatsapp-button {
        left: 9px;
    }

    html[dir="rtl"] .home-product-info::before,
    html[dir="rtl"] .related-product-info::before {
        right: 12px;
    }
}

@media (max-width: 360px) {
    .home-product-info,
    .related-product-info,
    .catalog-page .product-result-item .home-product-info {
        min-height: 86px;
        flex-basis: 86px;
        padding-inline: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-product-card,
    .related-product-card,
    .home-product-media img,
    .related-product-media img,
    .home-product-media > .quick-add-button,
    .related-product-media > .related-add-button {
        transition: none;
    }
}
