/* ============================================
   FLASH SALE CUSTOMER STYLES - MEGA COOL! 
   ============================================ */

/* Flash Sale Hero Section */
.flash-sale-hero {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 25%, #c44569 50%, #a8394e 75%, #8b2e3e 100%);
    padding: 1.5rem 0;
    margin: 1rem 0;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.flash-sale-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.05) 10px,
        rgba(255, 255, 255, 0.05) 20px
    );
    animation: flashSaleStripes 20s linear infinite;
}

@keyframes flashSaleStripes {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.flash-sale-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.flash-sale-title {
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: flashSalePulse 2s ease-in-out infinite;
}

@keyframes flashSalePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.flash-sale-subtitle {
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.lightning-icon {
    font-size: 2rem;
    animation: lightningFlash 1.5s ease-in-out infinite;
    display: inline-block;
    margin: 0 0.5rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

@keyframes lightningFlash {
    0%, 100% { 
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
    50% { 
        opacity: 0.7;
        transform: rotate(-10deg) scale(1.1);
    }
}

/* Flash Sale Countdown Timer */
.flash-sale-timer {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0;
}

.timer-segment {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
    min-width: 70px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.timer-segment:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.timer-number {
    font-size: 1.5rem;
    font-weight: 900;
    display: block;
    line-height: 1;
    color: #fff;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.timer-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-top: 0.3rem;
    display: block;
}

/* Flash Sale Products Grid */
.flash-sale-products {
    margin: 1.5rem 0;
}

.flash-sale-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.flash-sale-section-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.flash-sale-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 1rem;
    border: 2px solid transparent;
}

.flash-sale-product-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.25);
    border-color: #ff6b6b;
}

.flash-sale-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(255, 107, 107, 0.5);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 6px 25px rgba(255, 107, 107, 0.7);
    }
}

.flash-sale-product-image-wrapper {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.flash-sale-product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.flash-sale-product-card:hover .flash-sale-product-image {
    transform: scale(1.15) rotate(3deg);
}

.flash-sale-product-info {
    padding: 1rem;
}

.flash-sale-product-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.6rem;
    min-height: 45px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

/* Price Section */
.flash-sale-price-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.flash-sale-prices {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.flash-sale-normal-price {
    font-size: 0.8rem;
    color: #95a5a6;
    text-decoration: line-through;
    font-weight: 500;
}

.flash-sale-current-price {
    font-size: 1.3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.flash-sale-discount-badge {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.3);
    white-space: nowrap;
}

/* Stock Progress Bar */
.flash-sale-stock-info {
    margin-bottom: 0.6rem;
}

.stock-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #7f8c8d;
    margin-bottom: 0.4rem;
}

.stock-progress-bar-wrapper {
    height: 6px;
    background: #ecf0f1;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.stock-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #ee5a6f);
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.stock-progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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-urgent {
    color: #e74c3c;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
    animation: urgentBlink 1.5s ease-in-out infinite;
}

@keyframes urgentBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Timer per product */
.flash-sale-product-timer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-timer-numbers {
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 1px;
}

/* Add to Cart Button */
.flash-sale-add-to-cart-btn {
    width: 100%;
    padding: 0.6rem;
    background: linear-gradient(135deg, #3B9DD5, #1976D2);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.flash-sale-add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.flash-sale-add-to-cart-btn:hover::before {
    width: 300px;
    height: 300px;
}

.flash-sale-add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 157, 213, 0.4);
}

.flash-sale-add-to-cart-btn:active {
    transform: translateY(0);
}

.flash-sale-add-to-cart-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    opacity: 0.6;
}

/* View All Button */
.view-all-flash-sales-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    text-decoration: none;
}

.view-all-flash-sales-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.6);
    color: white;
}

/* Sold Out Overlay */
.sold-out-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    border-radius: 20px;
}

.sold-out-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    transform: rotate(-15deg);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Fire/Lightning Effects */
.fire-effect {
    position: absolute;
    bottom: 6px;
    right: 6px;
    font-size: 1.2rem;
    animation: fireFlicker 1s ease-in-out infinite;
    z-index: 5;
}

@keyframes fireFlicker {
    0%, 100% { 
        opacity: 1;
        filter: hue-rotate(0deg);
    }
    25% { 
        opacity: 0.8;
        filter: hue-rotate(10deg);
    }
    50% { 
        opacity: 1;
        filter: hue-rotate(-10deg);
    }
    75% { 
        opacity: 0.9;
        filter: hue-rotate(5deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .flash-sale-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .flash-sale-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .flash-sale-hero {
        padding: 2rem 0;
        margin: 1rem 0;
        border-radius: 16px;
    }
    
    .flash-sale-timer {
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .timer-segment {
        min-width: 70px;
        padding: 0.8rem 1rem;
        font-size: 0.8rem;
    }
    
    .timer-number {
        font-size: 1.5rem;
    }
    
    .timer-label {
        font-size: 0.7rem;
    }
    
    .lightning-icon {
        font-size: 2rem;
        margin: 0 0.5rem;
    }
    
    .flash-sale-product-card {
        margin-bottom: 1.5rem;
    }
    
    .flash-sale-product-info {
        padding: 1rem;
    }
    
    .flash-sale-product-title {
        font-size: 1rem;
        min-height: 50px;
    }
    
    .flash-sale-current-price {
        font-size: 1.4rem;
    }
    
    .flash-sale-add-to-cart-btn {
        padding: 0.8rem;
        font-size: 0.95rem;
    }
    
    .flash-sale-section-title {
        font-size: 1.8rem;
    }
    
    .view-all-flash-sales-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .flash-sale-title {
        font-size: 1.5rem;
    }
    
    .flash-sale-subtitle {
        font-size: 1rem;
    }
    
    .timer-segment {
        min-width: 60px;
        padding: 0.6rem 0.8rem;
    }
    
    .timer-number {
        font-size: 1.2rem;
    }
    
    .lightning-icon {
        font-size: 1.5rem;
    }
    
    .flash-sale-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .flash-sale-product-timer {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    
    .product-timer-numbers {
        font-size: 1rem;
    }
}

/* Empty State */
.flash-sale-empty-state {
    text-align: center;
    padding: 3rem 2rem;
}

.empty-state-icon {
    font-size: 4rem;
    color: #bdc3c7;
    margin-bottom: 1rem;
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.6rem;
}

.empty-state-text {
    font-size: 0.95rem;
    color: #7f8c8d;
}




