/* Sale Page Styles */
:root {
    --brand: #111;
    --sale-accent: #dc3545;
    --pill-radius: 40px;
}

.sale-hero {
    background: linear-gradient(135deg, #fff 0%, #f8f8f8 50%, #f2f2f2 100%);
}

.sale-hero h1 {
    letter-spacing: .5px;
}

.discount-pill {
    padding: .4rem .9rem;
    border-radius: var(--pill-radius);
    font-size: .75rem;
    letter-spacing: .5px;
}

.sale-categories .filter-bar {
    background: #E7F1F1;
    border: 0;
    padding: .8rem 1.25rem;
    border-radius: 14px;
    justify-content: center;
}

.filter-btn {
    border-radius: 999px !important;
    background: transparent;
    border: 0;
    font-weight: 500;
    color: #111;
    border-radius: 999px;
    padding: .5rem 1rem;
}

.filter-btn.active {
    border-radius: 999px !important;
    background: #111;
    color: #fff;
    border: 0;
    box-shadow: 0 2px 0 rgba(0, 0, 0, .15);
}

.filter-btn:not(.active):hover {
    background: rgba(0, 0, 0, .05);
}

.sale-card {
    background: #fff;
    overflow: hidden;
    transition: box-shadow .25s ease, border-color .25s ease;
}

.sale-card:hover {
    box-shadow: 0 4px 18px rgba(0, 0, 0, .06);
    border-color: #d8d8d8;
}

.media-wrapper {
    position: relative;
}

.sale-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discount-badge {
    position: absolute;
    bottom: .8rem;
    right: .8rem;
    background: #FFAD33;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    padding: 1.6rem 0.8rem;
    line-height: 1;
    border-radius: 50% !important;
    letter-spacing: .5px;
    min-width: 56px;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* .wish-btn { position:absolute; top:.6rem; right:.6rem; background:#fff; border:1px solid #e0e0e0; width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#555; transition:background .2s; }
.wish-btn.active { color:#dc3545; }
.wish-btn:hover { background:#f2f2f2; } */
.sale-item img {
    height: 400px;
    object-fit: cover;
}

.bg-white1 {
    background-color: #EDF5E9 !important;
}

.price-wrap {
    display: flex;
    align-items: center;
    gap: .5rem;
    justify-content: center;
}

.old-price {
    text-decoration: line-through;
    color: #888;
    font-size: .8rem;
}

/* .new-price { color:var(--sale-accent); } */

#showMoreBtn {
    font-weight: 500;
    letter-spacing: .5px;
}

/* Compact view */
.compact #saleGrid .sale-card {
    padding: .25rem;
}

.compact #saleGrid h3 {
    font-size: .7rem;
}

.compact #saleGrid .price-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

/* Benefits band reuse */
.benefits-band .benefit-item {
    transition: background-color .25s ease, box-shadow .25s ease;
}

.benefits-band .benefit-item:hover {
    background: #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .05);
}

.info-banner {
    background-color: #E7F1F1 !important;
    margin-bottom: 2rem;
}

@media (max-width: 991.98px) {
    .filter-bar {
        border-radius: 10px;
    }
}

@media (hover: none) {
    .sale-card:hover {
        box-shadow: none;
    }
}

/* Filtering state */
.sale-item.filtered-out {
    display: none !important;
}

/* Two-column Offer Section */
.sale-offer-section .offer-left {
    background-color: #E7F1F1;
    min-height: 480px;
    position: relative;
    overflow: hidden;
}

.sale-offer-section .offer-left::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('../img/sale/left.png') center/cover no-repeat;
    opacity: .23;
    /* image opacity only */
    pointer-events: none;
}

.sale-offer-section .offer-right {
    background: #fff;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sale-offer-section .offer-right-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sale-offer-section .offer-title {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.25;
    color: #111;
}

.sale-offer-section .offer-content {
    position: relative;
    z-index: 1;
}

.sale-offer-section .offer-text {
    font-size: .9rem;
    line-height: 1.55;
    color: #222;
    font-weight: 400;
}

.sale-offer-section .offer-btn {
    font-size: .75rem;
    letter-spacing: .5px;
}

@media (max-width:991.98px) {

    .sale-offer-section .offer-left,
    .sale-offer-section .offer-right {
        min-height: 380px;
    }

    .sale-offer-section .offer-title {
        font-size: 1.7rem;
    }
}

/* Promo Boxes Section */
.sale-stats .stat-card {
    background: #FFE0B9;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    height: 235px !important;
}

.sale-stats .stat-card::after {
    content: "";
    position: absolute;
    inset: -1px;
    background: linear-gradient(15deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.10) 38%, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.sale-stats .stat-icon svg {
    display: block;
}

.sale-stats .stat-value {
    font-size: 30px;
    line-height: 50px;
    font-weight: 400;
    color: #111;
}

.sale-stats .stat-label {
    font-size: 16px;
    line-height: 100%;
    color: #333;
    font-weight: 300;
    margin-top: .25rem;
}

.sale-stats .stat-card:hover {
    box-shadow: 0 6px 22px rgba(0, 0, 0, .08);
}

/* Sales Promo Band */
.sale-promo .promo-band {
    background: #FAD9B0;
    border-radius: 14px;
    position: relative;
    /* subtle geometric pattern */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64' fill='none'><g opacity='0.18'><path d='M32 10l6 6-6 6-6-6 6-6z' stroke='%23E9B980' stroke-width='1'/><path d='M0 32l6 6-6 6-6-6 6-6z' stroke='none' /></g><g opacity='0.18'><rect x='8' y='8' width='16' height='16' rx='2' stroke='%23E9B980' stroke-width='1'/><rect x='40' y='40' width='16' height='16' rx='2' stroke='%23E9B980' stroke-width='1'/></g></svg>");
    background-size: 64px 64px;
}

.sale-promo .promo-text {
    color: #2f2f2f;
    font-weight: 300;
}

.sale-promo .promo-code {
    position: relative;
    background: #fff;
    padding: .2rem 2.2rem;
    border-radius: 999px !important;
    font-weight: 600;
    color: #213360;
    border: 1px dashed #CB7000;
}

@media (max-width: 575.98px) {
    .sale-promo .promo-band {
        padding: 1rem 1.25rem !important;
    }

    .sale-promo .promo-code {
        margin-top: .75rem;
    }

    .sale-promo .promo-band {
        flex-direction: column;
        align-items: flex-start !important;
        gap: .5rem;
    }
}