/* Flash Sale Section */
.flash-sale-section {
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
    position: relative;
    overflow: hidden;
}

.flash-sale-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    pointer-events: none;
}

/* Flash Sale Header */
.flash-sale-header {
    position: relative;
    z-index: 2;
}

.flash-sale-badge {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.flash-sale-description {
    font-size: 16px;
    color: #2d3436;
    font-weight: 500;
}

/* Countdown Timer */
.flash-sale-timer {
    margin-top: 20px;
}

.timer-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.timer-item {
    text-align: center;
    min-width: 70px;
}

.timer-value {
    font-size: 32px;
    font-weight: 700;
    color: #d63031;
    font-family: 'Courier New', monospace;
    line-height: 1;
    margin-bottom: 5px;
}

.timer-label {
    font-size: 12px;
    color: #636e72;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timer-separator {
    font-size: 28px;
    font-weight: 700;
    color: #d63031;
    font-family: 'Courier New', monospace;
}

.timer-expired {
    font-size: 24px;
    font-weight: 700;
    color: #d63031;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: blink 1s infinite;
}

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

/* Flash Sale Cards */
.flash-sale-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: white;
    position: relative;
}

.flash-sale-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.flash-discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(45deg, #e17055, #d63031);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(214, 48, 49, 0.3);
    z-index: 3;
}

.flash-stock-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    z-index: 3;
}

.flash-sale-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.flash-sale-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Price Section */
.price-section {
    margin-bottom: 15px;
}

.original-price {
    margin-bottom: 5px;
}

.flash-price {
    font-size: 1.25rem;
}

/* Flash Add to Cart Button */
.flash-add-to-cart {
    background: linear-gradient(45deg, #e17055, #d63031);
    border: none;
    padding: 12px 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.flash-add-to-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.flash-add-to-cart:hover::before {
    left: 100%;
}

.flash-add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(214, 48, 49, 0.4);
}

.flash-add-to-cart:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .flash-sale-badge {
        font-size: 16px;
        padding: 10px 20px;
    }

    .timer-container {
        padding: 15px 20px;
        gap: 10px;
    }

    .timer-value {
        font-size: 24px;
    }

    .timer-label {
        font-size: 10px;
    }

    .timer-separator {
        font-size: 20px;
    }

    .flash-sale-card .card-img-top {
        height: 150px;
    }

    .flash-discount-badge {
        font-size: 12px;
        padding: 4px 8px;
    }

    .flash-stock-indicator {
        font-size: 10px;
        padding: 3px 6px;
    }
}

@media (max-width: 576px) {
    .timer-container {
        flex-direction: column;
        gap: 10px;
    }

    .timer-separator {
        display: none;
    }

    .timer-item {
        min-width: auto;
        width: 100%;
    }

    .timer-value {
        font-size: 20px;
    }
}
