/* Flash Sale Modern Styles */
.flash-sale-section.fs-modern {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.625rem 3%;
    --fs-card-gap: 0.75rem;
    margin: 1.875rem 5%;
    position: relative;
    overflow: hidden;
    border: 0.0625rem solid #e2e8f0;
    box-shadow: 0 1.25rem 2.5rem rgba(15, 23, 42, 0.08);
}

/* Responsive section padding */
@media (min-width: 87.5em) {
    .flash-sale-section.fs-modern {
        margin-left: auto;
        margin-right: auto;
        max-width: 87.5rem;
    }
}

@media (max-width: 61.9988em) {
    .flash-sale-section.fs-modern {
        margin: 1.5rem 3%;
        padding: 1.25rem 2.5%;
    }
}

@media (max-width: 47.9988em) {
    .flash-sale-section.fs-modern {
        margin: 1.25rem 2%;
        padding: 1rem 2%;
    }
}

@media (max-width: 35.9988em) {
    .flash-sale-section.fs-modern {
        margin: 1rem 1.5%;
        padding: 0.75rem 1.5%;
    }
}

.flash-sale-section.fs-modern::before {
    content: none;
}

/* Flash Sale Header - จัดกลางและขนาดใหญ่ขึ้น */
.flash-sale-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    padding: 1.5rem 1.75rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: #fff;
    overflow: hidden;
    gap: 1.25rem;
}

/* Header Meta - จัดกลาง */
.fs-header-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

/* Badge และ Title */
.fs-badge-preview {
    font-size: 1.125rem !important;
    font-weight: 800;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 1.5625rem;
    backdrop-filter: blur(0.625em);
}

.section-title {
    font-size: 1.75rem !important;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.2);
}

.section-subtitle {
    font-size: 1rem !important;
    opacity: 0.9;
    margin: 0;
}

/* Time Slots in Header - จัดกลางและขนาดใหญ่ */
.time-slots-in-header {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.time-slots-label {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.5rem;
    text-shadow: 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.2);
}

.time-slots-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.time-slot-btn {
    background: rgba(255, 255, 255, 0.25);
    border: none;
    border-radius: 0.9375rem;
    padding: 0.75rem 1.25rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 5.3125rem;
    text-align: center;
    backdrop-filter: blur(0.9375em);
    font-size: var(--time-slot-font-size, 0.875em);
    box-shadow: 0 0.25rem 0.9375rem rgba(0, 0, 0, 0.1);
}

.time-slot-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-0.125em);
    box-shadow: 0 0.375rem 1.25rem rgba(0, 0, 0, 0.2);
}

.time-slot-btn.active {
    background: rgba(59, 130, 246, 0.95);
    box-shadow: 0 0.375rem 1.5625rem rgba(59, 130, 246, 0.5);
    animation: glow-header 2s ease-in-out infinite alternate;
    transform: scale(1.05);
}

.time-slot-btn.upcoming {
    background: rgba(255, 255, 255, 0.18);
    opacity: 0.85;
}

.time-slot-btn.completed {
    background: rgba(0, 0, 0, 0.25);
    opacity: 0.75;
}

.time-text {
    font-size: var(--time-text-font-size, 1em);
    font-weight: 800;
    margin-bottom: 0.125rem;
    line-height: 1;
    text-shadow: 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.3);
}

.slot-label {
    font-size: var(--slot-label-font-size, 0.6875em);
    opacity: 0.9;
    line-height: 1;
    font-weight: 600;
}

/* Enhanced Countdown - จัดกลางและขนาดใหญ่ */
.flash-sale-countdown.enhanced {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.countdown-display-enhanced {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.countdown-unit {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    min-width: 2.8125rem;
    text-align: center;
    backdrop-filter: blur(0.9375em);
    animation: pulse-header 2s ease-in-out infinite;
    box-shadow: 0 0.25rem 0.9375rem rgba(0, 0, 0, 0.2);
}

.countdown-number {
    font-size: var(--countdown-font-size, 1.25em);
    font-weight: 800;
    color: white;
    line-height: 1;
    text-shadow: 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.3);
}

.countdown-separator {
    font-size: var(--countdown-font-size, 1.25em);
    font-weight: 800;
    color: white;
    padding: 0 0.125rem;
    text-shadow: 0 0.0625rem 0.125rem rgba(0, 0, 0, 0.3);
}

.view-all-btn-header {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 1.25rem;
    padding: 0.625rem 1rem;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: var(--view-all-font-size, 0.875em);
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(0.9375em);
    box-shadow: 0 0.25rem 0.9375rem rgba(0, 0, 0, 0.1);
}

.view-all-btn-header:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-0.0625em);
    box-shadow: 0 0.375rem 1.25rem rgba(0, 0, 0, 0.15);
}

.view-all-btn-header .chevron-icon {
    transition: transform 0.3s ease;
}

.view-all-btn-header:hover .chevron-icon {
    transform: translateX(0.125em);
}

/* Font Size Control Panel */
.time-panel-controls {
    position: absolute;
    top: 0.625rem;
    right: 0.625rem;
    display: flex;
    gap: 0.25rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
    padding: 0.25rem;
    backdrop-filter: blur(0.625em);
}

.font-size-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    color: white;
    cursor: pointer;
    font-size: 0.625rem;
    font-weight: 600;
    transition: all 0.2s ease;
    min-width: 1.25rem;
}

.font-size-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.font-size-btn.active {
    background: rgba(59, 130, 246, 0.8);
}

/* CSS Variables สำหรับขนาดฟอนต์ */
.flash-sale-section.font-small .flash-sale-header-unified,
.flash-sale-header.font-small {
    --time-slot-font-size: 0.75rem;
    --time-slot-time-size: 0.875rem;
    --time-text-font-size: 0.875rem;
    --slot-label-font-size: 0.5625rem;
    --time-slot-label-size: 0.5625rem;
    --countdown-font-size: 1rem;
    --view-all-font-size: 0.75rem;
}

.flash-sale-section.font-medium .flash-sale-header-unified,
.flash-sale-header.font-medium {
    --time-slot-font-size: 0.875rem;
    --time-slot-time-size: 1rem;
    --time-text-font-size: 1rem;
    --slot-label-font-size: 0.6875rem;
    --time-slot-label-size: 0.6875rem;
    --countdown-font-size: 1.25rem;
    --view-all-font-size: 0.875rem;
}

    .flash-sale-section.font-small .flash-sale-header-unified,
    .flash-sale-header.font-small {
        --time-slot-font-size: 0.625rem;
        --time-slot-time-size: 0.75rem;
        --time-text-font-size: 0.75rem;
        --slot-label-font-size: 0.5rem;
        --time-slot-label-size: 0.5rem;
        --countdown-font-size: 0.875rem;
        --view-all-font-size: 0.625rem;
    }

    .flash-sale-section.font-medium .flash-sale-header-unified,
    .flash-sale-header.font-medium {
        --time-slot-font-size: 0.75rem;
        --time-slot-time-size: 0.875rem;
        --time-text-font-size: 0.875rem;
        --slot-label-font-size: 0.625rem;
        --time-slot-label-size: 0.625rem;
        --countdown-font-size: 1rem;
        --view-all-font-size: 0.75rem;
    }

    .flash-sale-section.font-large .flash-sale-header-unified,
    .flash-sale-header.font-large {
        --time-slot-font-size: 0.875rem;
        --time-slot-time-size: 1rem;
        --time-text-font-size: 1rem;
        --slot-label-font-size: 0.75rem;
        --time-slot-label-size: 0.75rem;
        --countdown-font-size: 1.125rem;
        --view-all-font-size: 0.875rem;
    }

    .flash-sale-section.font-extra-large .flash-sale-header-unified,
    .flash-sale-header.font-extra-large {
        --time-slot-font-size: 1rem;
        --time-slot-time-size: 1.125rem;
        --time-text-font-size: 1.125rem;
        --slot-label-font-size: 0.875rem;
        --time-slot-label-size: 0.875rem;
        --countdown-font-size: 1.25rem;
        --view-all-font-size: 1rem;
    }

@keyframes pulse-header {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
}

/* Responsive Design for Header Time Slots */
@media (max-width: 48em) {
    .flash-sale-header {
        padding: 1.25rem 1.5rem;
        gap: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem !important;
    }
    
    .section-subtitle {
        font-size: 0.875rem !important;
    }
    
    .time-slots-label {
        font-size: 0.875rem;
    }
    
    .time-slot-btn {
        min-width: 4.6875rem;
        padding: 0.625rem 1rem;
    }
    
    .countdown-unit {
        min-width: 2.5rem;
        padding: 0.375rem 0.625rem;
    }
    
    .time-panel-controls {
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .font-size-btn {
        padding: 0.1875rem 0.375rem;
        font-size: 0.5625rem;
    }
}

@media (max-width: 30em) {
    .flash-sale-header {
        padding: 1rem 1.25rem;
        gap: 0.875rem;
    }
    
    .fs-badge-preview {
        font-size: 1rem !important;
        padding: 0.375rem 1rem;
    }
    
    .section-title {
        font-size: 1.25rem !important;
    }
    
    .section-subtitle {
        font-size: 0.8125rem !important;
    }
    
    .time-slots-label {
        font-size: 0.8125rem;
    }
    
    .time-slots-buttons {
        gap: 0.5rem;
    }
    
    .time-slot-btn {
        min-width: 4.0625rem;
        padding: 0.5rem 0.875rem;
        border-radius: 0.75rem;
    }
    
    .countdown-unit {
        min-width: 2.1875rem;
        padding: 0.3125rem 0.5rem;
        border-radius: 0.375rem;
    }
    
    .view-all-btn-header {
        padding: 0.5rem 0.75rem;
        border-radius: 1rem;
    }
    
    .time-panel-controls {
        top: 0.375rem;
        right: 0.375rem;
        padding: 0.1875rem;
    }
    
    .font-size-btn {
        padding: 0.125rem 0.3125rem;
        font-size: 0.5rem;
        min-width: 1rem;
    }
    
    /* Adjust font sizes for mobile */
    .flash-sale-section.font-small .flash-sale-header-unified,
    .flash-sale-header.font-small {
        --time-slot-font-size: 0.625rem;
        --time-slot-time-size: 0.75rem;
        --time-text-font-size: 0.75rem;
        --slot-label-font-size: 0.5rem;
        --time-slot-label-size: 0.5rem;
        --countdown-font-size: 0.875rem;
        --view-all-font-size: 0.6875rem;
    }
    
    .flash-sale-section.font-medium .flash-sale-header-unified,
    .flash-sale-header.font-medium {
        --time-slot-font-size: 0.75rem;
        --time-slot-time-size: 0.875rem;
        --time-text-font-size: 0.875rem;
        --slot-label-font-size: 0.5625rem;
        --time-slot-label-size: 0.5625rem;
        --countdown-font-size: 1rem;
        --view-all-font-size: 0.75rem;
    }
    
    .flash-sale-section.font-large .flash-sale-header-unified,
    .flash-sale-header.font-large {
        --time-slot-font-size: 0.875rem;
        --time-slot-time-size: 1rem;
        --time-text-font-size: 1rem;
        --slot-label-font-size: 0.6875rem;
        --time-slot-label-size: 0.6875rem;
        --countdown-font-size: 1.25rem;
        --view-all-font-size: 0.875rem;
    }
    
    .flash-sale-section.font-extra-large .flash-sale-header-unified,
    .flash-sale-header.font-extra-large {
        --time-slot-font-size: 1rem;
        --time-slot-time-size: 1.125rem;
        --time-text-font-size: 1.125rem;
        --slot-label-font-size: 0.8125rem;
        --time-slot-label-size: 0.8125rem;
        --countdown-font-size: 1.5rem;
        --view-all-font-size: 1rem;
    }
}

.flash-sale-header > * {
    position: relative;
    z-index: 2;
}

.fs-header-image-mode {
    background: transparent;
}

.fs-header-image-mode .fs-bg-image {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fs-header-image-mode .fs-bg-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(17, 24, 39, 0.55), rgba(17, 24, 39, 0.1));
    opacity: 0.35;
}

.fs-header-image-mode .fs-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.fs-header-image-mode .fs-bg-image[data-fit="contain"] img,
.fs-header-image-mode .fs-bg-image[data-fit="fit"] img,
.fs-header-image-mode .fs-bg-image[data-fit="full"] img {
    object-fit: contain;
}

.fs-header-image-mode:hover .fs-bg-image img {
    transform: scale(1.03);
}

.flash-sale-header .section-title {
    color: inherit;
    font-size: 2.5rem;
    font-weight: 900;
    text-shadow: 0.125rem 0.125rem 0.25rem rgba(0,0,0,0.2);
    margin: 0;
    letter-spacing: 0.125rem;
}

.flash-sale-countdown {
    background: rgba(255,255,255,0.22);
    backdrop-filter: blur(0.625em);
    padding: 0.75rem 1.25rem;
    border-radius: 3.125rem;
    color: inherit;
    font-weight: 600;
    border: 0.0625rem solid rgba(255,255,255,0.32);
}

.countdown-label {
    font-size: 0.65rem;
    margin-right: 0.625rem;
}

.countdown-timer {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0.0625rem 0.0625rem 0.125rem rgba(0,0,0,0.5);
}

/* Flash Sale Carousel Layout (Auto-scroll) */
.flash-sale-section.fs-modern .flash-sale-products {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: var(--fs-card-gap, 0.75em) !important;
    width: max-content !important;
    max-width: none !important;
    position: relative;
    z-index: 2;
    margin-top: 0;
    /* DISABLED - using button navigation instead */
    animation: none !important;
    will-change: auto;
}

/* Right-to-Left scroll animation (default) */
@keyframes fs-scroll-rtl {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Left-to-Right scroll animation */
@keyframes fs-scroll-ltr {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* LTR direction override */
.flash-sale-section.fs-modern[data-autoplay-direction="ltr"] .flash-sale-products {
    animation-name: fs-scroll-ltr !important;
}

/* Pause on hover */
.flash-sale-section.fs-modern:hover .flash-sale-products {
    animation-play-state: paused !important;
}

/* Products wrapper for overflow control */
.flash-sale-section.fs-modern .flash-sale-products-wrapper {
    overflow: hidden !important;
    width: 100% !important;
    position: relative;
}

/* Card sizing for carousel */
.flash-sale-section.fs-modern .flash-sale-products .flash-sale-card {
    flex: 0 0 280px !important;
    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
}

/* Responsive Card Widths */
@media (min-width: 87.5em) {
    .flash-sale-section.fs-modern .flash-sale-products .flash-sale-card {
        flex: 0 0 280px !important;
        width: 280px !important;
        min-width: 280px !important;
    }
}

@media (min-width: 75em) and (max-width: 87.4988em) {
    .flash-sale-section.fs-modern .flash-sale-products .flash-sale-card {
        flex: 0 0 260px !important;
        width: 260px !important;
        min-width: 260px !important;
    }
}

@media (min-width: 62em) and (max-width: 74.9988em) {
    .flash-sale-section.fs-modern .flash-sale-products .flash-sale-card {
        flex: 0 0 240px !important;
        width: 240px !important;
        min-width: 240px !important;
    }
}

@media (min-width: 48em) and (max-width: 61.9988em) {
    .flash-sale-section.fs-modern .flash-sale-products .flash-sale-card {
        flex: 0 0 220px !important;
        width: 220px !important;
        min-width: 220px !important;
    }
}

@media (min-width: 36em) and (max-width: 47.9988em) {
    .flash-sale-section.fs-modern .flash-sale-products .flash-sale-card {
        flex: 0 0 200px !important;
        width: 200px !important;
        min-width: 200px !important;
    }
}

@media (max-width: 35.9988em) {
    .flash-sale-section.fs-modern .flash-sale-products .flash-sale-card {
        flex: 0 0 180px !important;
        width: 180px !important;
        min-width: 180px !important;
    }
}

.flash-sale-section.fs-modern .flash-sale-section.fs-modern .flash-sale-card {
    --fs-card-radius: 1.625rem;
    --fs-card-border: rgba(15, 23, 42, 0.08);
    --fs-card-shadow: 0 1.875rem 3.75rem rgba(15, 23, 42, 0.15);
    background: #fff;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    border-radius: var(--fs-card-radius);
    border: 0.0625rem solid var(--fs-card-border);
    padding: 1.125rem 1.125rem 1.375rem;
    min-height: 32.5rem;
    position: relative;
    display: flex !important;
    flex-direction: column;
    gap: 0.875rem;
    box-shadow: var(--fs-card-shadow);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    overflow: hidden;
    isolation: isolate;
}

.flash-sale-card::after {
    content: "";
    position: absolute;
    inset: auto 0 -40% 0;
    height: 55%;
    background: radial-gradient(circle at 50% 10%, rgba(59,130,246,0.08), transparent 70%);
    z-index: 0;
}

.flash-sale-card:hover {
    transform: translateY(-0.375em);
    box-shadow: 0 2.1875rem 4.375rem rgba(15, 23, 42, 0.18);
}

.fs-top-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    z-index: 1;
}

.flash-sale-card .fs-badge,
.fs-tag {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.375rem 0.875rem;
    border-radius: 62.4375rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    background: linear-gradient(135deg, #f97316, #fb7185);
    color: #fff;
    box-shadow: 0 0.625rem 1.125rem rgba(249, 115, 22, 0.25);
}

.fs-tag.fs-tag-perk {
    background: linear-gradient(135deg, #f472b6, #a855f7);
    box-shadow: 0 0.625rem 1.125rem rgba(168, 85, 247, 0.2);
}

.fs-tag.fs-tag-accent {
    background: linear-gradient(135deg, #22d3ee, #0ea5e9);
    box-shadow: 0 0.625rem 1.125rem rgba(14, 165, 233, 0.25);
}

.fs-tag.fs-tag-danger {
    background: linear-gradient(135deg, #fb7185, #ef4444);
    box-shadow: 0 0.625rem 1.125rem rgba(239, 68, 68, 0.25);
}

.fs-tag.fs-tag-outline {
    background: rgba(255, 255, 255, 0.2);
    border: 0.0625rem solid rgba(255, 255, 255, 0.45);
    color: #fff;
}

.flash-sale-card .fs-img-link {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 1.375rem;
    padding: 1.125rem;
    min-height: 14.375rem;
    background: radial-gradient(circle at 50% 0%, #f0f5ff 0%, #ffffff 65%);
    border: 0.0625rem solid rgba(148, 163, 184, 0.18);
    position: relative;
    z-index: 1;
    aspect-ratio: var(--fs-image-aspect, 4 / 3);
}

@media (max-width: 47.9988em) {
    .flash-sale-card .fs-img-link {
        padding: 0.75rem;
        min-height: 12.5rem;
    }
}

.flash-sale-card .fs-img-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 0, rgba(14,165,233,0.12), transparent 60%);
    pointer-events: none;
}

.fs-product-img {
    width: calc(var(--fs-image-scale, 1) * 100%);
    height: calc(var(--fs-image-scale, 1) * 100%);
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.35s ease;
    position: relative;
    z-index: 1;
}

.flash-sale-card:hover .fs-product-img {
    transform: scale(var(--fs-image-hover-scale, 1.08));
}

.fs-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.fs-brand-small {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #2563eb;
    opacity: 0.85;
}

.fs-brand-small img.fs-brand-logo-img {
    max-height: 24px;
    max-width: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.fs-title {
    font-size: 1.02rem !important;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    margin: 0.125rem 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fs-description {
    font-size: 0.85rem;
    color: #4b5563;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fs-price-panel {
    background: linear-gradient(135deg, #f1f5ff, #eef2ff);
    border-radius: 1.375rem;
    padding: 1rem;
    border: 0.0625rem solid rgba(99, 102, 241, 0.15);
    box-shadow: inset 0 0 0 0.0625rem rgba(255, 255, 255, 0.35);
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.fs-price-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    align-items: flex-end;
}

.fs-main-price {
    font-size: 1.9rem;
    font-weight: 800;
    color: #0f172a;
}

.fs-original-price {
    font-size: 0.9rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.fs-discount-pill {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%) !important;
    color: #fff !important;
    border-radius: 62.4375rem !important;
    padding: 0.375rem 1rem !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.0187rem;
    display: inline-flex !important;
    align-items: center;
    gap: 0.375rem;
    border: none !important;
    box-shadow: 0 4px 12px rgba(249,115,22,0.3) !important;
}

.fs-discount-pill::after {
    display: none;
}

.fs-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.fs-benefit {
    flex: 1 1 10rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #0f172a;
    background: #fff;
    border-radius: 0.875rem;
    border: 0.0625rem dashed rgba(148, 163, 184, 0.5);
    padding: 0.5rem 0.75rem;
}

.fs-benefit-icon {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 62.4375rem;
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fs-benefit-icon svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

.fs-footnote {
    font-size: 0.72rem;
    color: #94a3b8;
    letter-spacing: 0.02em;
}

.fs-badge.fs-badge-ai {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: linear-gradient(135deg, #06b6d4, #0ea5e9);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 900;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    z-index: 10;
    box-shadow: 0 0.5rem 1.25rem rgba(6, 182, 212, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

.fs-brand-corner {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
}

.fs-brand-corner img {
    height: 2rem;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0.125rem 0.5rem rgba(0, 0, 0, 0.15));
}

.fs-tag.fs-tag-installment {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.375rem 0.75rem;
    box-shadow: 0 0.5rem 1rem rgba(59, 130, 246, 0.3);
}

.fs-action {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #fff;
    border: none;
    padding: 0.625rem 1rem;
    border-radius: 1.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    box-shadow: 0 0.25rem 0.75rem -0.25rem rgba(14, 165, 233, 0.4);
    letter-spacing: 0.02em;
}

.fs-action:hover {
    transform: translateY(-0.125rem);
    filter: brightness(1.05);
    box-shadow: 0 0.375rem 1rem -0.25rem rgba(14, 165, 233, 0.5);
}

.fs-action-icon {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fs-action-icon svg {
    width: 1rem;
    height: 1rem;
    fill: #fff;
}

.fs-action-text {
    font-weight: 600;
    letter-spacing: 0.02em;
}

@media (min-width: 48em) and (max-width: 61.9988em) {
    .flash-sale-card {
        min-height: 25rem;
        padding: 0.875rem;
    }
    
    .fs-title {
        font-size: 0.92rem !important;
    }
    
    .fs-main-price {
        font-size: 1.6rem;
    }
}

@media (max-width: 56.25em) {
    .flash-sale-card {
        padding: 1rem;
    }
}

@media (max-width: 47.9988em) {
    .flash-sale-card {
        min-height: 23.75rem;
    }
    
    .fs-title {
        font-size: 0.88rem !important;
    }
    
    .fs-main-price {
        font-size: 1.55rem;
    }
    
    .fs-description {
        font-size: 0.8rem;
    }
}

@media (max-width: 37.5em) {
    .flash-sale-card {
        border-radius: 1.25rem;
        min-height: 22.5rem;
    }
    
    .fs-title {
        font-size: 0.9rem !important;
    }
    
    .fs-main-price {
        font-size: 1.5rem;
    }
    
    .fs-description {
        font-size: 0.78rem;
    }
}

/* Swiper Overrides */
.flash-sale-section .swiper-button-next,
.flash-sale-section .swiper-button-prev {
    color: white;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(0.625em);
    width: 3.125rem;
    height: 3.125rem;
    border-radius: 50%;
    border: 0.0625rem solid rgba(255,255,255,0.3);
}
.flash-sale-section .swiper-button-next::after,
.flash-sale-section .swiper-button-prev::after {
    font-size: 1.125rem;
    font-weight: 700;
}

.flash-sale-section .swiper-pagination-bullet {
    background: rgba(255,255,255,0.5);
    opacity: 1;
}

.flash-sale-section .swiper-pagination-bullet-active {
    background: white;
}

/* Empty State */
.flash-sale-empty,
.flash-sale-error {
    text-align: center;
    padding: 2.5rem;
    color: #4b5563;
    font-size: 1.05rem;
    background: #f8fafc;
    border-radius: 0.875rem;
    border: 0.0625rem dashed #cbd5e1;
}

/* Responsive */
@media (max-width: 48em) {
    .flash-sale-header {
        flex-direction: column;
        gap: 0.9375rem;
        text-align: center;
    }
    
    .flash-sale-header .section-title {
        font-size: 2rem;
    }
    
    .flash-sale-card.fs-modern {
        width: 16.25rem;
    }
}

.fs-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
}

.fs-header-text-mode {
    background: #111111;
    color: #ffffff;
    overflow: hidden;
}

.fs-header-text-mode .flash-sale-countdown {
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.24);
}

.fs-watermark-preview {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: 0.25rem;
    opacity: 0.07;
    pointer-events: none;
    color: #ffffff;
    text-transform: uppercase;
    z-index: 1;
    mix-blend-mode: lighten;
}

@media (max-width: 56.25em) {
    .fs-watermark-preview {
        font-size: 3.2rem;
    }
}

@media (max-width: 37.5em) {
    .fs-watermark-preview {
        font-size: 2.3rem;
    }
}