.flash-sale-section {
    padding: 24px 0;
    background: #edf8fc;
}

.flash-sale-layout {
    display: grid;
    grid-template-columns: minmax(220px, 250px) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}

.flash-sale-intro {
    overflow: hidden;
    min-width: 0;
    border-radius: 12px;
    background: #d9f0f8;
    color: #163b4d;
    position: relative;
}

.flash-sale-banner-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    z-index: 1;
}

.flash-sale-intro-content {
    padding: 14px 16px 16px;
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 2;
}

.flash-sale-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #087ca8;
    font-size: 11px;
    font-weight: 800;
}

.flash-sale-intro h2 {
    overflow: hidden;
    margin: 0;
    color: #163b4d;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flash-sale-intro-content>p {
    margin: 4px 0 10px;
    color: #496775;
    font-size: 13px;
}

.flash-sale-countdown {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 12px;
}

.flash-sale-time-unit {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    min-height: 49px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #173b4c;
    color: #fff;
}

.flash-sale-time-unit strong {
    font-size: 18px;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.flash-sale-time-unit small {
    margin-top: 3px;
    color: #c3e1ed;
    font-size: 9px;
    line-height: 1;
}

.flash-sale-time-separator {
    color: #173b4c;
    font-weight: 800;
}

.flash-sale-view-all {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    border-radius: 6px;
    background: #0789c2;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.flash-sale-view-all:hover,
.flash-sale-view-all:focus {
    background: #066f9d;
    color: #fff;
}

.flash-sale-products {
    min-width: 0;
    padding-top: 2px;
}

.flash-sale-product {
    position: relative;
    display: flex;
    min-height: 318px;
    flex-direction: column;
    padding: 12px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 10px rgb(25 76 96 / 7%);
}

.flash-sale-discount {
    position: absolute;
    z-index: 1;
    top: 10px;
    left: 10px;
    padding: 4px 7px;
    border-radius: 4px;
    background: #e84646;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.flash-sale-product-image {
    display: flex;
    height: 155px;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.flash-sale-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.flash-sale-product-name {
    display: block;
    overflow: hidden;
    margin-bottom: 7px;
    color: #243842;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flash-sale-product-name:hover {
    color: #0789c2;
}

.flash-sale-prices {
    display: flex;
    min-height: 25px;
    align-items: baseline;
    gap: 8px;
    white-space: nowrap;
}

.flash-sale-prices strong {
    overflow: hidden;
    color: #152f3d;
    font-size: 17px;
    font-weight: 800;
    text-overflow: ellipsis;
}

.flash-sale-prices del {
    overflow: hidden;
    color: #89969c;
    font-size: 12px;
    text-overflow: ellipsis;
}

.flash-sale-stock-track {
    overflow: hidden;
    height: 5px;
    margin: 10px 0 6px;
    border-radius: 99px;
    background: #e6eef1;
}

.flash-sale-stock-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #18a4cc;
}

.flash-sale-stock-copy {
    display: flex;
    min-height: 17px;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px;
    margin-top: auto;
    color: #687b83;
    font-size: 10px;
    line-height: 1.3;
}

.flash-sale-stock-copy span,
.flash-sale-stock-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flash-sale-stock-copy strong {
    color: #d56422;
    font-size: 10px;
}

.flash-sale-products .owl-nav {
    position: absolute;
    top: -39px;
    right: 0;
    display: flex;
    gap: 5px;
    margin: 0;
}

.flash-sale-products .owl-nav button.owl-prev,
.flash-sale-products .owl-nav button.owl-next {
    display: grid;
    width: 29px;
    height: 29px;
    place-items: center;
    border: 1px solid #c8e3ec;
    border-radius: 50%;
    background: #fff;
    color: #087ca8;
    font-size: 12px;
}

.flash-sale-products .owl-nav button.owl-prev:hover,
.flash-sale-products .owl-nav button.owl-next:hover {
    background: #0789c2;
    color: #fff;
}

@media (max-width: 991px) {
    .flash-sale-layout {
        grid-template-columns: minmax(190px, 220px) minmax(0, 1fr);
        gap: 12px;
    }

    .flash-sale-product {
        min-height: 300px;
        padding: 10px;
    }

    .flash-sale-product-image {
        height: 140px;
    }
}

@media (max-width: 767px) {
    .flash-sale-section {
        padding: 16px 0 20px;
    }

    .flash-sale-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .flash-sale-intro {
        display: grid;
        grid-template-columns: minmax(90px, 30%) minmax(0, 1fr);
        min-height: 150px;
    }

    .flash-sale-intro.no-banner {
        grid-template-columns: minmax(0, 1fr);
    }

    .flash-sale-banner-image {
        height: 100%;
        min-height: 150px;
    }

    .flash-sale-intro-content {
        align-self: center;
        padding: 12px;
    }

    .flash-sale-intro h2 {
        font-size: 18px;
    }

    .flash-sale-intro-content>p {
        margin: 2px 0 7px;
        font-size: 12px;
    }

    .flash-sale-countdown {
        gap: 3px;
        margin-bottom: 8px;
    }

    .flash-sale-time-unit {
        min-height: 42px;
    }

    .flash-sale-time-unit strong {
        font-size: 16px;
    }

    .flash-sale-time-unit small {
        font-size: 8px;
    }

    .flash-sale-view-all {
        min-height: 34px;
        padding: 0 9px;
        font-size: 12px;
    }

    .flash-sale-products {
        padding-top: 0;
    }

    .flash-sale-products .owl-nav {
        top: -36px;
    }

    .flash-sale-product {
        min-height: 290px;
    }

    .flash-sale-product-image {
        height: 135px;
    }
}

/* Refined flash deals: separated artwork, readable countdown, and balanced cards. */
.flash-sale-section {
    padding: 32px 0;
    background: radial-gradient(ellipse at 90% 100%, #d9f1ed 0, transparent 55%), linear-gradient(115deg, #f0faf9, #eaf6fb);
    border-top: 1px solid #e1f0ed;
    border-bottom: 1px solid #e1f0ed;
}

.flash-sale-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
}

.flash-sale-layout-compact {
    
}

.flash-sale-intro {
    display: flex;
    flex-direction: column;
    border: 1px solid #fff;
    border-radius: 20px;
    background: rgba(255, 255, 255, .8);
    box-shadow: 0 8px 28px #17483e08;
}

.flash-sale-banner-image {
    position: static;
    height: 170px;
    min-height: 0;
    object-fit: contain;
    padding: 12px 18px 0;
}

.flash-sale-intro-content {
    position: relative;
    bottom: auto;
    padding: 18px;
    margin-top: auto;
}

.flash-sale-eyebrow {
    color: #078475;
    font-size: 10px;
    letter-spacing: 1.8px;
    margin-bottom: 7px;
}

.flash-sale-intro h2 {
    font-size: 25px;
    color: #153f39;
    white-space: normal;
    line-height: 1.2;
}

.flash-sale-intro-content>p {
    font-size: 12px;
    margin: 8px 0 14px;
    color: #647e79;
}

.flash-sale-time-unit {
    background: #163e38;
    border: 1px solid #285349;
    border-radius: 9px;
    min-height: 53px;
}

.flash-sale-time-unit strong {
    font-size: 21px;
}

.flash-sale-time-unit small {
    font-size: 9px;
    color: #c4e8e0;
}

.flash-sale-time-separator {
    color: #c91568;
}

.flash-sale-view-all {
    min-height: 42px;
    background: #078475;
    border-radius: 10px;
    font-size: 13px;
    padding: 0 14px;
}

.flash-sale-view-all:hover {
    background: #065e53;
}

.flash-sale-products {
    padding: 0;
    align-self: center;
}

.flash-sale-product {
    padding: 12px;
    min-height: 365px;
    border: 1px solid #e2eeeb;
    border-radius: 18px;
    box-shadow: 0 4px 16px #17483e08;
}

.flash-sale-product-image {
    height: 210px;
    margin: 0 0 14px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.flash-sale-product-image img {
    transition: transform .25s ease;
}

.flash-sale-product-image:hover img {
    transform: scale(1.04);
}

.flash-sale-discount {
    top: 18px;
    left: 18px;
    border-radius: 7px;
    padding: 6px 10px;
    background: #df0968;
    font-size: 12px;
    box-shadow: 0 3px 8px #df09681c;
}

.flash-sale-product-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    min-height: 38px;
    font-size: 13px;
    font-weight: 500;
    color: #29443e;
}

.flash-sale-prices {
    gap: 8px;
    flex-wrap: wrap;
    white-space: normal;
}

.flash-sale-prices strong {
    color: #cf0860;
    font-size: 21px;
    letter-spacing: -.4px;
}

.flash-sale-prices del {
    font-size: 12px;
    color: #8a9b97;
}

.flash-sale-stock-track {
    height: 6px;
    background: #edf2f0;
    margin: 12px 0 8px;
}

.flash-sale-stock-track span {
    background: linear-gradient(90deg, #0b8979, #4abfaf);
}

.flash-sale-stock-copy {
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
    font-size: 11px;
}

.flash-sale-stock-copy strong {
    font-size: 11px;
    color: #ba591b;
}

.flash-sale-products .owl-nav {
    position: static;
    justify-content: flex-end;
    margin: 12px 0 0;
    gap: 8px;
}

.flash-sale-products .owl-nav.disabled {
    display: none;
}

.flash-sale-products .owl-nav button.owl-prev, .flash-sale-products .owl-nav button.owl-next {
    width: 36px;
    height: 36px;
    color: #087f70;
    border-color: #cfe4df;
}

.flash-sale-products .owl-nav button.disabled {
    opacity: .35;
}

.flash-sale-section a:focus-visible {
    outline: 2px solid #087f70;
    outline-offset: 3px;
}

@media(max-width:991px) {
    .flash-sale-layout {
        grid-template-columns: 210px minmax(0, 1fr);
        gap: 16px;
    }

    .flash-sale-intro h2 {
        font-size: 22px;
    }

    .flash-sale-product-image {
        height: 185px;
    }

    .flash-sale-product {
        min-height: 340px;
    }
}

@media(max-width:767px) {
    .flash-sale-section {
        padding: 20px 0;
    }

    .flash-sale-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .flash-sale-intro {
        display: grid;
        grid-template-columns: minmax(90px, 32%) minmax(0, 1fr);
        border-radius: 16px;
        min-height: 0;
        align-items: center;
    }

    .flash-sale-intro.no-banner {
        grid-template-columns: minmax(0, 1fr);
    }

    .flash-sale-banner-image {
        height: 170px;
        padding: 10px 0 10px 10px;
    }

    .flash-sale-intro-content {
        margin: 0;
        padding: 14px;
    }

    .flash-sale-intro h2 {
        font-size: 21px;
    }

    .flash-sale-eyebrow {
        margin-bottom: 4px;
    }

    .flash-sale-intro-content>p {
        margin: 5px 0 10px;
    }

    .flash-sale-time-unit {
        min-height: 43px;
    }

    .flash-sale-time-unit strong {
        font-size: 18px;
    }

    .flash-sale-view-all {
        min-height: 37px;
    }

    .flash-sale-product-image {
        height: 190px;
    }

    .flash-sale-product {
        min-height: 335px;
    }

    .flash-sale-layout-compact .flash-sale-products {
        width: 100%;
        max-width: 540px;
        justify-self: center;
    }
}

@media(prefers-reduced-motion:reduce) {
    .flash-sale-product-image img {
        transition: none;
    }
}
