/* ============================================
   FLASH SALE COMPACT DESIGN - Smaller & Cleaner
   ============================================ */

/* Compact Flash Sale Hero Section */
.flash-sale-hero {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    padding: 1.5rem 0;
    margin: 1rem 0;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.3);
}

.flash-sale-hero-content {
    text-align: center;
    color: white;
}

.flash-sale-title {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.flash-sale-subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.lightning-icon {
    font-size: 2rem;
    animation: lightningFlash 1.5s ease-in-out infinite;
}

@keyframes lightningFlash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Compact Timer */
.flash-sale-timer {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.timer-segment {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    min-width: 70px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.timer-number {
    font-size: 1.5rem;
    font-weight: 900;
    display: block;
    color: #fff;
}

.timer-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-top: 0.25rem;
}

/* Compact Section Header */
.flash-sale-section-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.flash-sale-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Compact Product Card */
.flash-sale-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    border: 2px solid transparent;
}

.flash-sale-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.2);
    border-color: #ff6b6b;
}

.flash-sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.75rem;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
}

.flash-sale-product-image-wrapper {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: #f5f7fa;
}

.flash-sale-product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.flash-sale-product-card:hover .flash-sale-product-image {
    transform: scale(1.08);
}

.flash-sale-product-info {
    padding: 1rem;
}

/* Compact Product Timer */
.flash-sale-product-timer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.4rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-timer-numbers {
    font-size: 0.9rem;
    font-weight: 900;
}

/* Compact Product Title */
.flash-sale-product-title {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Compact Price Section */
.flash-sale-price-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.flash-sale-prices {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.flash-sale-normal-price {
    font-size: 0.85rem;
    color: #95a5a6;
    text-decoration: line-through;
}

.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.6rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.75rem;
    white-space: nowrap;
}

/* Compact Stock Info */
.flash-sale-stock-info {
    margin-bottom: 0.75rem;
}

.stock-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #7f8c8d;
    margin-bottom: 0.3rem;
}

.stock-progress-bar-wrapper {
    height: 6px;
    background: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
}

.stock-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #ee5a6f);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.stock-urgent {
    color: #e74c3c;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

/* Compact Button */
.flash-sale-add-to-cart-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #3B9DD5, #1976D2);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.flash-sale-add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 157, 213, 0.3);
}

.flash-sale-add-to-cart-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Compact View All Button */
.view-all-flash-sales-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.view-all-flash-sales-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    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: 12px;
}

.sold-out-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    text-transform: uppercase;
    transform: rotate(-15deg);
}

/* Responsive */
@media (max-width: 768px) {
    .flash-sale-title {
        font-size: 1.5rem;
    }
    
    .timer-segment {
        min-width: 60px;
        padding: 0.5rem 0.75rem;
    }
    
    .timer-number {
        font-size: 1.2rem;
    }
    
    .lightning-icon {
        font-size: 1.5rem;
    }
}

/* Loading State */
.flash-sale-add-to-cart-btn.loading {
    background: #7f8c8d;
    pointer-events: none;
}

.flash-sale-add-to-cart-btn.success {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}




