/* =============================================================
   Luméalle — SHWR card structure
   Outer container = transparent.
   Inside = IMAGE + WHITE BOX.
   Image's upper half floats above, lower half sits inside the box.
   ============================================================= */

:root {
    --lum-ink: #2C2420;
    --lum-muted: #A99C93;
    --lum-primary: #D7AF8E;
    --lum-accent: #C9504B;
    --lum-divider: #F2ECE7;

    --lum-img-h: 110px;      /* total image height */
    --lum-img-lift: 55px;    /* how much of the image is ABOVE the white box (50%) */
    --lum-box-radius: 16px;
    --lum-box-shadow: 0 12px 32px rgba(44, 36, 32, 0.08),
                      0 2px 6px rgba(44, 36, 32, 0.04);
    --lum-box-shadow-hover: 0 20px 46px rgba(44, 36, 32, 0.14),
                            0 4px 12px rgba(44, 36, 32, 0.06);
    --lum-heart-offset: -20px;
}

/* ============================================================
   1) OUTER CONTAINER — transparent, no shadow, no background.
      Reserves space at the top so the image can protrude.
   ============================================================ */
.product-single-hover,
.flash_deal_product {
    position: relative;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: var(--lum-img-lift) 0 var(--lum-img-lift) !important;  /* top + bottom room for floating image in multi-row grids */
    overflow: visible !important;
    transition: none;
}
.product-single-hover:hover,
.flash_deal_product:hover {
    transform: none;
    box-shadow: none !important;
}

.product-with-bg .product-single-hover {
    background: transparent !important;
}

/* ============================================================
   2) WHITE BOX — the card itself.
      In _feature-product: .overflow-hidden.position-relative.
      In compact cards: the outer .d-flex wrapping content.
   ============================================================ */
.product-single-hover > .overflow-hidden,
.flash_deal_product > .d-flex {
    background: linear-gradient(180deg, #F5EDE4 0%, #FFFFFF calc(var(--lum-img-h) - var(--lum-img-lift) + 20px)) !important;
    border-radius: var(--lum-box-radius) !important;
    box-shadow: var(--lum-box-shadow) !important;
    padding: calc(var(--lum-img-h) - var(--lum-img-lift) + 6px) 12px 12px !important;
    position: relative;
    overflow: visible !important;
    transition: box-shadow .25s ease, transform .25s ease, padding-bottom .22s ease;
}
.product-single-hover:hover > .overflow-hidden,
.flash_deal_product:hover > .d-flex {
    box-shadow: var(--lum-box-shadow-hover) !important;
    transform: translateY(-3px);
    padding-bottom: 68px !important;
}

/* ============================================================
   3) IMAGE — pulled up so upper half floats above the box.
   ============================================================ */
.product-single-hover .inline_product,
.flash_deal_product .flash-deals-background-image {
    position: absolute !important;
    top: calc(var(--lum-img-lift) * -1) !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 20px) !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    height: var(--lum-img-h) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 2;
}

.product-single-hover .inline_product a,
.flash_deal_product .flash-deals-background-image a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    height: 100%;
    background: transparent !important;
}

.product-single-hover .inline_product img,
.flash_deal_product .flash-deals-background-image img,
.flash_deal_product .__img-125px {
    border: none !important;
    background: transparent !important;
    max-height: 100% !important;
    max-width: 92% !important;
    width: auto !important;
    height: auto !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
    border-radius: 0 !important;
}

/* Soft reflection under the product (pure visual) */
.product-single-hover .inline_product::after {
    content: '';
    position: absolute;
    left: 22%;
    right: 22%;
    bottom: 2px;
    height: 8px;
    background: radial-gradient(ellipse at center,
                                rgba(44,36,32,0.14) 0%,
                                rgba(44,36,32,0) 72%);
    pointer-events: none;
    z-index: 0;
}

/* ============================================================
   4) HEART — on the left edge, half outside the white box,
      vertically aligned with the mid-height of the image.
   ============================================================ */
.product-single-hover .lum-wishlist,
.flash_deal_product .lum-wishlist {
    position: absolute;
    top: 0;                       /* box top */
    transform: translateY(-50%);  /* shift up half the image protrusion region */
    left: var(--lum-heart-offset);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #FFFFFF;
    box-shadow: 0 4px 14px rgba(44,36,32,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lum-ink);
    font-size: 18px;
    cursor: pointer;
    z-index: 6;
    border: none;
    transition: transform .2s ease, color .2s ease;
}
/* bring heart to image mid-height (not box mid-height) */
.product-single-hover > .overflow-hidden .lum-wishlist,
.flash_deal_product .lum-wishlist {
    top: calc(var(--lum-img-h) * 0.5 - var(--lum-img-lift));
}
/* Actually position heart on the outer wrapper (box element) */
.product-single-hover .lum-wishlist,
.flash_deal_product .lum-wishlist {
    top: calc(var(--lum-img-h) * -0.5 + var(--lum-img-lift) * 0.5);
}

.product-single-hover .lum-wishlist:hover,
.flash_deal_product .lum-wishlist:hover {
    color: var(--lum-accent);
    transform: translateY(-50%) scale(1.08);
}
.product-single-hover .lum-wishlist.is-active,
.flash_deal_product .lum-wishlist.is-active {
    color: var(--lum-accent);
}

[dir="rtl"] .product-single-hover .lum-wishlist,
[dir="rtl"] .flash_deal_product .lum-wishlist {
    left: auto;
    right: var(--lum-heart-offset);
}

/* ============================================================
   5) BADGE — top-right of white box (inside card bounds)
   ============================================================ */
.product-single-hover > .overflow-hidden > .for-discount-value,
.product-single-hover > .overflow-hidden > .lum-stock-out,
.flash_deal_product > .d-flex > .for-discount-value,
.flash_deal_product > .d-flex > .lum-stock-out {
    position: absolute !important;
    top: 8px !important;
    right: 0 !important;
    left: auto !important;
    display: inline-block !important;
    width: auto !important;
    max-width: max-content !important;
    background: #C9504B !important;
    color: #FFFFFF !important;
    padding: 5px 11px !important;
    border-radius: 8px 0 0 8px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 10px rgba(201, 80, 75, 0.28) !important;
    z-index: 6 !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
}

.product-single-hover .for-discount-value-null,
.flash_deal_product .for-discount-value-null {
    display: none !important;
}
.product-single-hover .quick-view,
.product-single-hover .out_fo_stock {
    display: none !important;
}

/* ============================================================
   6) TITLE + PRICE
   ============================================================ */
.product-single-hover .single-product-details,
.flash_deal_product .flash_deal_product_details {
    text-align: center;
    padding: 6px 4px 0 !important;
    margin: 0 !important;
    display: block !important;
    width: 100%;
    min-width: 0;
    position: relative;
    z-index: 3;
}

.product-single-hover .flash-product-title,
.product-single-hover .single-product-details h3 a,
.flash_deal_product .flash-product-title {
    display: block;
    text-align: center;
    color: var(--lum-ink) !important;
    font-weight: 500 !important;
    font-size: 12px !important;
    margin: 0 0 8px !important;
    text-transform: uppercase !important;
    letter-spacing: .06em !important;
    line-height: 1.35;
    min-height: 30px;
}

.product-single-hover .product-price,
.product-single-hover .single-product-details h4,
.flash_deal_product h4,
.flash_deal_product h4.d-flex {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: baseline !important;
    gap: 12px !important;
    margin: 0 !important;
    text-align: center;
    white-space: nowrap;
}
.product-single-hover h4 > *,
.flash_deal_product h4 > * {
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
}

.product-single-hover .text-accent,
.product-single-hover .flash-product-price,
.flash_deal_product .flash-product-price {
    color: var(--lum-ink) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: .2px;
}
.product-single-hover .category-single-product-price,
.flash_deal_product .category-single-product-price {
    color: var(--lum-accent) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    text-decoration: line-through;
    opacity: .9;
}

.product-single-hover .rating-show,
.flash_deal_product .flash-product-review {
    display: none !important;
}

/* ============================================================
   7) SAR SYMBOL — injected by JS
   ============================================================ */
.lum-sar-symbol {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.14em;
    margin-inline-end: 3px;
    color: inherit;
}
del .lum-sar-symbol,
.category-single-product-price .lum-sar-symbol {
    width: .9em;
    height: .9em;
}

/* ============================================================
   8) COMPACT CARDS (_product-card-1/_product-card-2)
      Same two-part structure.
   ============================================================ */
.flash_deal_product > .d-flex {
    display: block !important;
    flex-direction: unset !important;
}
.flash_deal_product > .d-flex > .d-flex {
    justify-content: center !important;
    padding: 0 !important;
    width: 100%;
    display: block !important;
}
.flash_deal_product > .d-flex > .flash_deal_product_details {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: center;
    width: 100%;
    min-width: 0;
}

/* compact card: the image div sits at the top inside .d-flex.align-items-center...
   Pull it up so half is outside. Left: 50% + translateX(-50%) guarantees centering. */
.flash_deal_product .flash-deals-background-image {
    top: calc(var(--lum-img-lift) * -1) !important;
    height: var(--lum-img-h) !important;
}

/* ============================================================
   9) HOVER OVERLAY — add-to-cart reveal on desktop
   ============================================================ */

/* Heart: hidden until card hover */
.product-single-hover .lum-wishlist,
.flash_deal_product .lum-wishlist {
    opacity: 0;
    pointer-events: none;
}
.product-single-hover:hover .lum-wishlist,
.flash_deal_product:hover .lum-wishlist {
    opacity: 1;
    pointer-events: auto;
    transition: opacity .2s ease, color .2s ease, transform .2s ease;
}
.product-single-hover .lum-wishlist:hover,
.flash_deal_product .lum-wishlist:hover {
    color: var(--lum-accent);
    transform: translateY(-50%) scale(1.08);
}

/* Overlay container — sits at bottom of white box */
.lum-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(0deg, rgba(245,237,228,0.97) 40%, rgba(245,237,228,0) 100%);
    border-radius: 0 0 var(--lum-box-radius) var(--lum-box-radius);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
    z-index: 5;
}
.product-single-hover:hover > .overflow-hidden .lum-card-overlay,
.flash_deal_product:hover > .d-flex .lum-card-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* Add-to-cart button */
.lum-overlay-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 10px 18px;
    border-radius: 50px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    cursor: pointer;
    background: var(--lum-ink);
    color: #fff;
    transition: background .18s ease, transform .15s ease;
}
.lum-overlay-btn:hover {
    background: #3e2e28;
    transform: scale(1.03);
    color: #fff;
}
.lum-overlay-btn--disabled {
    background: var(--lum-muted);
    cursor: not-allowed;
}
.lum-overlay-btn--disabled:hover {
    background: var(--lum-muted);
    transform: none;
}

/* Mobile: always show heart and overlay */
@media (hover: none), (max-width: 768px) {
    .product-single-hover .lum-wishlist,
    .flash_deal_product .lum-wishlist {
        opacity: 1;
        pointer-events: auto;
    }
    .lum-card-overlay {
        opacity: 1;
        pointer-events: auto;
    }
}

/* ============================================================
   10) RESPONSIVE
   ============================================================ */
@media (max-width: 576px) {
    :root {
        --lum-img-h: 90px;
        --lum-img-lift: 45px;
        --lum-heart-offset: -16px;
    }
    .product-single-hover > .overflow-hidden,
    .flash_deal_product > .d-flex {
        padding: calc(var(--lum-img-h) - var(--lum-img-lift) + 8px) 10px 14px !important;
        border-radius: var(--lum-box-radius) !important;
    }
    .product-single-hover .lum-wishlist,
    .flash_deal_product .lum-wishlist {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }
    .product-single-hover .flash-product-title,
    .flash_deal_product .flash-product-title {
        font-size: 14px !important;
        min-height: 36px;
    }
    .product-single-hover .flash-product-price,
    .flash_deal_product .flash-product-price {
        font-size: 17px !important;
    }
}
