.flash-sale-section {
    padding: 24px 0 20px;
}

.flash-sale-shell {
    display: grid;
    grid-template-columns: minmax(190px, .72fr) minmax(0, 2.28fr);
    gap: 24px;
    padding: 24px;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, #111622 0%, #1a2232 100%);
    box-shadow: 0 18px 42px rgba(134, 18, 56, .24);
    color: #fff;
}

.flash-sale-head {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    min-width: 0;
}

.flash-sale-eyebrow {
    color: #ffd8de;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
}

.flash-sale-head h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(24px, 3vw, 34px);
}

.flash-sale-head p {
    max-width: 240px;
    margin: 0;
    color: rgba(255, 255, 255, .86);
    font-size: 13px;
    line-height: 1.9;
}

.flash-sale-countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    max-width: 250px;
    margin-top: 4px;
}

.flash-sale-countdown-item {
    display: grid;
    gap: 2px;
    padding: 8px 4px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 10px;
    background: rgba(69, 7, 27, .18);
    text-align: center;
}

.flash-sale-countdown-value {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.1;
}

.flash-sale-countdown-item span:last-child {
    color: rgba(255, 255, 255, .74);
    font-size: 10px;
}

.flash-sale-carousel {
    position: relative;
    min-width: 0;
    padding: 0 10px;
}

.flash-sale-products {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    direction: ltr;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
}

.flash-sale-products.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    scroll-snap-type: none;
    user-select: none;
}

.flash-sale-products::-webkit-scrollbar {
    display: none;
}

.flash-sale-carousel-control {
    position: absolute;
    z-index: 3;
    top: 50%;
    display: grid;
    width: 34px;
    height: 34px;
    padding: 0;
    place-items: center;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 8px 18px rgba(74, 7, 28, .2);
    color: #9f1c3d;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    transition: transform .2s ease, background-color .2s ease;
}

.flash-sale-carousel-control:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.06);
}

.flash-sale-carousel-control:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .72);
    outline-offset: 2px;
}

.flash-sale-carousel-control--prev {
    left: -2px;
}

.flash-sale-carousel-control--next {
    right: -2px;
}

.flash-sale-product {
    flex: 0 0 calc((100% - 36px) / 4);
    direction: rtl;
    scroll-snap-align: start;
    min-width: 0;
}

.flash-sale-product {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border-radius: 13px;
    background: #fff;
    color: var(--ink, #20252c);
}

.flash-sale-product__media {
    position: relative;
    display: grid;
    aspect-ratio: 1 / .82;
    place-items: center;
    overflow: hidden;
    background: #fff5f6;
}

.flash-sale-product__media img {
    width: 100%;
    height: 100%;
    padding: 12px;
    object-fit: contain;
}

.flash-sale-product__placeholder {
    width: 70%;
    color: #9d6470;
}

.flash-sale-product__sale-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 7px;
    border-radius: 999px;
    background: #c7284b;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

.flash-sale-product__body {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 5px;
    padding: 12px;
}

.flash-sale-product__brand {
    overflow: hidden;
    color: #a06d77;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flash-sale-product__title {
    display: -webkit-box;
    min-height: 38px;
    overflow: hidden;
    color: var(--ink, #20252c);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.flash-sale-product__category {
    overflow: hidden;
    color: #7b838d;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flash-sale-product__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    margin-top: auto;
    padding-top: 6px;
}

.flash-sale-product__price-current {
    color: #a91d40;
    font-size: 13px;
    font-weight: 800;
}

.flash-sale-product__price-old {
    color: #a1a7ae;
    font-size: 10px;
    text-decoration: line-through;
}

.flash-sale-product__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 6px;
}

.flash-sale-product__actions .btn {
    min-width: 0;
    padding: 8px 5px;
    font-size: 10px;
    text-align: center;
}

.flash-sale-product__actions .btn-outline {
    border-color: #e3bac3;
    color: #9f1c3d;
}

.flash-sale-product__actions .btn-outline:hover {
    background: #fff0f3;
}

@media (max-width: 1100px) {
    .flash-sale-shell {
        grid-template-columns: minmax(180px, .62fr) minmax(0, 1.8fr);
    }

    .flash-sale-product {
        flex-basis: calc((100% - 12px) / 2);
    }
}

@media (max-width: 760px) {
    .flash-sale-section {
        padding: 20px 0 16px;
    }

    .flash-sale-shell {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .flash-sale-head p {
        max-width: none;
    }

    .flash-sale-countdown {
        max-width: 300px;
    }
}

@media (max-width: 450px) {
    .flash-sale-product {
        flex-basis: 100%;
    }
}
