/* ============================================
 * FLASH SALE PREMIUM UI - Enhanced CSS
 * Glassmorphism, Neon Glow, Modern Animations
 * ============================================ */

/* Flash Sale Section - Dark theme with neon accents */
.flash-sale-section {
    padding: 40px 0;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    position: relative;
    overflow: hidden;
}

/* Animated background particles */
.flash-sale-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255, 71, 87, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 107, 157, 0.3), transparent),
        radial-gradient(2px 2px at 80px 40px, rgba(255, 140, 66, 0.3), transparent),
        radial-gradient(2px 2px at 120px 80px, rgba(255, 217, 61, 0.3), transparent);
    background-size: 200px 200px;
    animation: particleFloat 20s linear infinite;
    pointer-events: none;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-200px);
    }
}

/* ========== PREMIUM BANNER ========== */
.flash-sale-banner {
    background: linear-gradient(135deg, #ff6b9d 0%, #ff4757 30%, #ff8c42 70%, #ffd93d 100%);
    border-radius: 24px;
    padding: 30px 40px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(255, 71, 87, 0.4),
        0 0 100px rgba(255, 71, 87, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
}

/* Animated shimmer overlay */
.flash-sale-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.banner-glow {
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    animation: bannerRotate 15s linear infinite;
}

@keyframes bannerRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.flash-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: iconPulse 2s ease-in-out infinite;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.flash-icon i {
    font-size: 32px;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 12px 48px rgba(255, 255, 255, 0.3);
    }
}

.flash-title h2 {
    color: #fff;
    font-size: 28px;
    font-weight: 900;
    margin: 0 0 8px 0;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

.flash-title p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    margin: 0;
    font-weight: 500;
}

/* ========== PREMIUM COUNTDOWN ========== */
.countdown-box {
    margin-left: auto;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    padding: 16px 24px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.countdown-label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.countdown-timer {
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-unit {
    text-align: center;
}

.time-value {
    display: block;
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.8), rgba(255, 140, 66, 0.8));
    padding: 8px 14px;
    border-radius: 12px;
    min-width: 50px;
    box-shadow:
        0 4px 15px rgba(255, 71, 87, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.time-label {
    display: block;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 6px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.time-sep {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 700;
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0.3;
    }
}

/* ========== PRODUCT CARDS - GLASSMORPHISM ========== */
.flash-sale-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.flash-item-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.flash-item-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 24px 64px rgba(255, 71, 87, 0.3),
        0 0 40px rgba(255, 71, 87, 0.15);
    border-color: rgba(255, 71, 87, 0.4);
}

/* Featured Badge with Neon Effect */
.featured-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    color: #fff;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow:
        0 4px 15px rgba(255, 71, 87, 0.5),
        0 0 20px rgba(255, 71, 87, 0.3);
    animation: featuredGlow 2s ease-in-out infinite;
}

@keyframes featuredGlow {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(255, 71, 87, 0.5), 0 0 20px rgba(255, 71, 87, 0.3);
    }

    50% {
        box-shadow: 0 4px 25px rgba(255, 71, 87, 0.7), 0 0 40px rgba(255, 71, 87, 0.5);
    }
}

/* Discount Badge with Pulse */
.discount-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #00d2d3, #0abde3);
    color: #fff;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 900;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 210, 211, 0.4);
    animation: discountPop 0.6s ease-out;
}

@keyframes discountPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Product Image with Zoom Effect */
.item-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.flash-item-card:hover .item-image img {
    transform: scale(1.15);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(15, 12, 41, 0.9) 0%,
            rgba(15, 12, 41, 0.4) 50%,
            transparent 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.flash-item-card:hover .image-overlay {
    opacity: 1;
}

.quick-view {
    color: #fff;
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(255, 71, 87, 0.5);
    transform: translateY(20px);
}

.flash-item-card:hover .quick-view {
    transform: translateY(0);
}

.quick-view:hover {
    background: linear-gradient(135deg, #ff6b81, #ff8c94);
    box-shadow: 0 12px 40px rgba(255, 71, 87, 0.6);
    transform: translateY(-2px);
    color: #fff;
}

/* ========== PRODUCT INFO ========== */
.item-info {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
}

.item-category {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.2), rgba(255, 140, 66, 0.2));
    color: #ff8c42;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 140, 66, 0.3);
}

.item-name {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 14px 0;
    line-height: 1.4;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== PRICES - STRIKING DESIGN ========== */
.item-prices {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.original-price {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
    font-size: 14px;
    font-weight: 500;
}

.sale-price {
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(135deg, #ff4757, #ffd93d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.item-savings {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.15), rgba(255, 217, 61, 0.15));
    color: #ffd93d;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 217, 61, 0.2);
}

.item-savings i {
    color: #ff4757;
}

/* ========== STOCK BAR - ANIMATED ========== */
.stock-bar {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    height: 24px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stock-progress {
    position: absolute;
    top: 2px;
    left: 2px;
    height: calc(100% - 4px);
    background: linear-gradient(90deg, #ff4757, #ff6b81, #ff8c42);
    border-radius: 16px;
    transition: width 1s ease-out;
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.5);
}

/* Animated shimmer on stock bar */
.stock-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    animation: stockShimmer 2s infinite;
}

@keyframes stockShimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.stock-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* ========== BUY BUTTON ========== */
.item-actions {
    padding: 0 20px 20px;
}

.btn-buy-flash {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #ff4757 0%, #ff6b81 50%, #ff8c42 100%);
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 30px rgba(255, 71, 87, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-buy-flash::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: left 0.5s ease;
}

.btn-buy-flash:hover::before {
    left: 100%;
}

.btn-buy-flash:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(255, 71, 87, 0.5);
    color: #fff;
}

.btn-buy-flash i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.btn-buy-flash:hover i {
    transform: translateX(4px);
    animation: cartBounce 0.6s ease;
}

@keyframes cartBounce {

    0%,
    100% {
        transform: translateX(4px);
    }

    50% {
        transform: translateX(8px);
    }
}

/* ========== VIEW ALL BUTTON ========== */
.flash-sale-footer {
    margin-top: 40px;
    text-align: center;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 71, 87, 0.6);
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.btn-view-all::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #ff4757, #ff8c42);
    transition: width 0.4s ease;
    z-index: -1;
}

.btn-view-all:hover::before {
    width: 100%;
}

.btn-view-all:hover {
    border-color: transparent;
    color: #fff;
    box-shadow: 0 12px 40px rgba(255, 71, 87, 0.4);
    transform: translateY(-4px);
}

.btn-view-all i {
    transition: transform 0.3s ease;
}

.btn-view-all:hover i {
    transform: translateX(6px);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
    .flash-sale-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .flash-sale-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .banner-content {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .countdown-box {
        margin-left: 0;
        margin-top: 16px;
        width: 100%;
    }

    .flash-title {
        flex: 1;
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .flash-sale-section {
        padding: 30px 0;
    }

    .flash-sale-banner {
        padding: 20px;
        border-radius: 16px;
    }

    .flash-icon {
        width: 50px;
        height: 50px;
    }

    .flash-icon i {
        font-size: 24px;
    }

    .flash-title h2 {
        font-size: 20px;
    }

    .flash-sale-grid {
        gap: 16px;
    }

    .flash-item-card {
        border-radius: 16px;
    }

    .item-info {
        padding: 14px;
    }

    .item-actions {
        padding: 0 14px 14px;
    }

    .sale-price {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .flash-sale-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .time-value {
        font-size: 22px;
        padding: 6px 10px;
        min-width: 42px;
    }

    .btn-view-all {
        width: 100%;
        justify-content: center;
        padding: 16px 32px;
    }
}

/* ========== EXPIRED STATE ========== */
.flash-item-expired {
    position: relative;
}

.flash-item-expired .item-image,
.flash-item-expired .item-info,
.flash-item-expired .item-actions {
    filter: blur(3px) grayscale(70%);
    opacity: 0.5;
}

.flash-item-expired::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 12, 41, 0.7);
    border-radius: 24px;
    pointer-events: none;
}

.expired-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
}

.expired-badge {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: white;
    padding: 16px 28px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(192, 57, 43, 0.5);
    animation: expiredPulse 2s ease-in-out infinite;
}

@keyframes expiredPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* ============================================
   OPTION B - ENHANCED UX FEATURES
   ============================================ */

/* ========== SKELETON LOADING ========== */
.flash-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.flash-skeleton-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skeleton-image {
    aspect-ratio: 4/3;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.05) 25%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
}

.skeleton-content {
    padding: 20px;
}

.skeleton-line {
    height: 14px;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.05) 25%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.05) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    border-radius: 7px;
    margin-bottom: 12px;
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-line.medium {
    width: 80%;
}

.skeleton-price {
    height: 28px;
    width: 50%;
    background: linear-gradient(90deg,
            rgba(255, 71, 87, 0.1) 25%,
            rgba(255, 71, 87, 0.2) 50%,
            rgba(255, 71, 87, 0.1) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
    margin-bottom: 16px;
}

.skeleton-button {
    height: 52px;
    background: linear-gradient(90deg,
            rgba(255, 71, 87, 0.15) 25%,
            rgba(255, 71, 87, 0.25) 50%,
            rgba(255, 71, 87, 0.15) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    border-radius: 16px;
}

@keyframes skeletonShimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ========== STAGGER ANIMATION ========== */
.flash-item-card {
    opacity: 0;
    animation: cardFadeIn 0.5s ease-out forwards;
}

.flash-item-card:nth-child(1) {
    animation-delay: 0.05s;
}

.flash-item-card:nth-child(2) {
    animation-delay: 0.1s;
}

.flash-item-card:nth-child(3) {
    animation-delay: 0.15s;
}

.flash-item-card:nth-child(4) {
    animation-delay: 0.2s;
}

.flash-item-card:nth-child(5) {
    animation-delay: 0.25s;
}

.flash-item-card:nth-child(6) {
    animation-delay: 0.3s;
}

.flash-item-card:nth-child(7) {
    animation-delay: 0.35s;
}

.flash-item-card:nth-child(8) {
    animation-delay: 0.4s;
}

.flash-item-card:nth-child(9) {
    animation-delay: 0.45s;
}

.flash-item-card:nth-child(10) {
    animation-delay: 0.5s;
}

.flash-item-card:nth-child(11) {
    animation-delay: 0.55s;
}

.flash-item-card:nth-child(12) {
    animation-delay: 0.6s;
}

@keyframes cardFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== IMPROVED HOVER (No Scale Shift) ========== */
.flash-item-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 24px 64px rgba(255, 71, 87, 0.25),
        0 0 40px rgba(255, 71, 87, 0.1);
    border-color: rgba(255, 71, 87, 0.4);
}

/* ========== URGENCY EFFECTS ========== */
.stock-bar.low-stock .stock-progress {
    animation: urgencyPulse 1s ease-in-out infinite;
}

@keyframes urgencyPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 71, 87, 0.5);
    }

    50% {
        box-shadow: 0 0 35px rgba(255, 71, 87, 0.8), 0 0 50px rgba(255, 71, 87, 0.4);
    }
}

.stock-bar.low-stock .stock-text {
    animation: textUrgency 0.8s ease-in-out infinite;
}

@keyframes textUrgency {

    0%,
    100% {
        color: #fff;
    }

    50% {
        color: #ffd93d;
    }
}

/* ========== LAZY LOAD BLUR EFFECT ========== */
.item-image img {
    transition: filter 0.4s ease-out, transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.item-image img.loading {
    filter: blur(10px);
}

.item-image img.loaded {
    filter: blur(0);
}

/* ========== IMPROVED MOBILE GRID (2 columns) ========== */
@media (max-width: 480px) {
    .flash-sale-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .flash-skeleton-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .flash-item-card {
        border-radius: 16px;
    }

    .item-info {
        padding: 12px;
    }

    .item-actions {
        padding: 0 12px 12px;
    }

    .item-name {
        font-size: 13px;
        min-height: 36px;
    }

    .sale-price {
        font-size: 16px;
    }

    .original-price {
        font-size: 11px;
    }

    .item-savings {
        font-size: 10px;
        padding: 6px 10px;
    }

    /* Touch-friendly button size */
    .btn-buy-flash {
        padding: 14px 16px;
        min-height: 48px;
        font-size: 12px;
    }

    .discount-badge {
        padding: 6px 10px;
        font-size: 12px;
        top: 10px;
        right: 10px;
    }

    .featured-badge {
        padding: 5px 10px;
        font-size: 9px;
        top: 10px;
        left: 10px;
    }
}

/* ========== EMPTY STATE ========== */
.flash-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    margin: 32px 0;
}

.flash-empty-state i {
    font-size: 4rem;
    color: rgba(255, 71, 87, 0.4);
    margin-bottom: 20px;
    display: block;
}

.flash-empty-state h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.flash-empty-state p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
}

/* ========== COUNTDOWN EXPIRED STATE ========== */
.countdown-box.expired {
    background: rgba(192, 57, 43, 0.4);
    border-color: rgba(231, 76, 60, 0.5);
}

.countdown-box.expired .time-value {
    background: linear-gradient(135deg, rgba(192, 57, 43, 0.8), rgba(231, 76, 60, 0.8));
    animation: expiredBlink 1s ease-in-out infinite;
}

@keyframes expiredBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* ========== SECTION ICON STYLING ========== */
.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(245, 158, 11, 0.3));
    border-radius: 10px;
    margin-right: 10px;
}

.section-icon i {
    font-size: 18px;
    color: #f59e0b;
}

/* ========== ACCESSIBILITY FOCUS STATES ========== */
.flash-item-card:focus-visible,
.case-card-homepage:focus-visible,
.btn-buy-flash:focus-visible,
.btn-view-all:focus-visible {
    outline: 3px solid #f59e0b;
    outline-offset: 3px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

    .flash-item-card,
    .stock-progress,
    .stock-progress::after,
    .flash-sale-banner::before,
    .banner-glow,
    .flash-icon,
    .time-sep {
        animation: none !important;
    }

    .flash-item-card {
        opacity: 1;
    }
}