/* ====================================================================
   MODERN FLASH DEALS SECTION
   ==================================================================== */

.flash-deals-modern {
    background: linear-gradient(135deg, #fff5f5 0%, #fff9e6 100%);
    position: relative;
    overflow: hidden;
}

.flash-deals-modern::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(
        circle,
        rgba(254, 238, 0, 0.1) 0%,
        transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
}

.flash-deals-modern::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(
        circle,
        rgba(255, 107, 107, 0.08) 0%,
        transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
}

/* ====================================================================
   HEADER SECTION
   ==================================================================== */

.flash-deals-modern__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
    padding: 25px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.flash-deals-modern__title-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 250px;
}

.flash-deals-modern__icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-glow 2s infinite;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
}

.flash-deals-modern__icon-wrapper i {
    font-size: 32px;
    color: #ffffff;
    animation: bolt-shake 1.5s infinite;
}

@keyframes bolt-shake {
    0%,
    100% {
        transform: rotate(0deg);
    }
    10%,
    30%,
    50%,
    70%,
    90% {
        transform: rotate(-10deg);
    }
    20%,
    40%,
    60%,
    80% {
        transform: rotate(10deg);
    }
}

@keyframes pulse-glow {
    0%,
    100% {
        box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 8px 30px rgba(255, 107, 107, 0.6);
        transform: scale(1.05);
    }
}

.flash-deals-modern__title {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 12px;
}

.flash-deals-modern__title i {
    color: #ff6b6b;
    animation: fire-flicker 1.5s infinite;
}

@keyframes fire-flicker {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.flash-deals-modern__subtitle {
    font-size: 14px;
    color: #636e72;
    margin: 5px 0 0;
    font-weight: 500;
}

/* ====================================================================
   COUNTDOWN TIMER
   ==================================================================== */

.flash-deals-modern__countdown-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.flash-deals-modern__countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.flash-deals-modern__countdown-item {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d3436 100%);
    padding: 12px 16px;
    border-radius: 12px;
    min-width: 70px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: auto;
}

.flash-deals-modern__countdown-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(254, 238, 0, 0.2),
        transparent
    );
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.flash-deals-modern__countdown-value {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: #feee00;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.flash-deals-modern__countdown-label {
    display: block;
    font-size: 11px;
    color: #dfe6e9;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.flash-deals-modern__countdown-separator {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* ====================================================================
   PROGRESS BAR
   ==================================================================== */

.flash-deals-modern__progress-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
}

.flash-deals-modern__progress {
    height: 12px;
    background: #e9ecef;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.flash-deals-modern__progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b 0%, #feee00 50%, #4cd964 100%);
    border-radius: 20px;
    transition: width 1s ease;
    position: relative;
    animation: progress-pulse 2s infinite;
}

.flash-deals-modern__progress-bar::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: progress-shimmer 2s infinite;
}

@keyframes progress-pulse {
    0%,
    100% {
        box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 107, 107, 0.8);
    }
}

@keyframes progress-shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.flash-deals-modern__progress-text {
    font-size: 12px;
    font-weight: 600;
    color: #636e72;
    text-align: center;
}

/* ====================================================================
   VIEW ALL BUTTON
   ==================================================================== */

.flash-deals-modern__view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #feee00 0%, #ffd700 100%);
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(254, 238, 0, 0.3);
    white-space: nowrap;
}

.flash-deals-modern__view-all:hover {
    background: linear-gradient(135deg, #ffd700 0%, #feee00 100%);
    color: #1a1a1a;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(254, 238, 0, 0.4);
}

.flash-deals-modern__view-all i {
    transition: transform 0.3s ease;
}

.flash-deals-modern__view-all:hover i {
    transform: translateX(5px);
}

.flash-deals-modern__view-all-mobile {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #feee00 0%, #ffd700 100%);
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(254, 238, 0, 0.3);
}

.flash-deals-modern__view-all-mobile:hover {
    text-decoration: none;
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(254, 238, 0, 0.4);
}

/* ====================================================================
   PRODUCTS SECTION
   ==================================================================== */

.flash-deals-modern__products {
    position: relative;
    z-index: 1;
}

/* Flash Deal Badge for Products */
.flash-deals-modern .product-card-modern::before {
    content: "FLASH DEAL";
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(255, 107, 107, 0.6);
    }
}

/* ====================================================================
   RESPONSIVE DESIGN
   ==================================================================== */

@media (max-width: 992px) {
    .flash-deals-modern__header {
        gap: 20px;
    }

    .flash-deals-modern__title {
        font-size: 26px;
    }

    .flash-deals-modern__countdown-item {
        min-width: 60px;
        padding: 10px 12px;
    }

    .flash-deals-modern__countdown-value {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .flash-deals-modern__header {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .flash-deals-modern__title-section {
        width: 100%;
    }

    .flash-deals-modern__title {
        font-size: 22px;
    }

    .flash-deals-modern__icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .flash-deals-modern__icon-wrapper i {
        font-size: 26px;
    }

    .flash-deals-modern__countdown-wrapper {
        width: 100%;
    }

    .flash-deals-modern__countdown {
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }

    .flash-deals-modern__countdown-item {
        min-width: 55px;
        padding: 8px 10px;
    }

    .flash-deals-modern__countdown-value {
        font-size: 20px;
    }

    .flash-deals-modern__countdown-separator {
        font-size: 20px;
    }

    .flash-deals-modern__progress-wrapper {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .flash-deals-modern__title {
        font-size: 18px;
        gap: 8px;
    }

    .flash-deals-modern__subtitle {
        font-size: 12px;
    }

    .flash-deals-modern__countdown-item {
        min-width: 50px;
        padding: 6px 8px;
    }

    .flash-deals-modern__countdown-value {
        font-size: 18px;
    }

    .flash-deals-modern__countdown-label {
        font-size: 9px;
    }

    .flash-deals-modern__countdown-separator {
        font-size: 18px;
        margin: 0 2px;
    }
}

/* ====================================================================
   ANIMATIONS & EFFECTS
   ==================================================================== */

.flash-deals-modern__products {
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effect for flash deal products */
.flash-deals-modern .product-card-modern:hover::before {
    animation: badge-pulse 0.5s ease;
}
