/**
 * Flash Deals Styles - Enhanced
 */

.lv-flash-deals {
    position: relative;
    margin: 30px 0;
}

.lv-flash-deals-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--lv-cream, #F8F5F0);
}

.lv-flash-deals-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--lv-text, #483824);
    margin: 0;
}

.lv-flash-deals-countdown {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    color: var(--lv-primary, #D4A083);
    font-weight: 600;
}

.lv-countdown-timer {
    display: flex;
    gap: 8px;
    background: var(--lv-cream, #F8F5F0);
    padding: 10px 15px;
    border-radius: 12px;
}

.lv-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
}

.lv-countdown-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--lv-primary, #D4A083);
    line-height: 1;
}

.lv-countdown-label {
    font-size: 11px;
    color: var(--lv-text, #483824);
    margin-top: 4px;
    text-transform: uppercase;
}

.lv-flash-deals-container {
    position: relative;
    overflow: hidden;
}

.lv-flash-deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 10px 0;
}

.lv-flash-deal-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(72, 56, 36, 0.08);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.lv-flash-deal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(72, 56, 36, 0.16);
}

.lv-flash-deal-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.lv-flash-deal-image {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
    background: var(--lv-cream, #F8F5F0);
}

.lv-flash-deal-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.lv-flash-deal-card:hover .lv-flash-deal-image img {
    transform: scale(1.1);
}

.lv-flash-deal-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.lv-flash-deal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--lv-text, #483824);
    margin: 0 0 10px 0;
    line-height: 1.4;
    min-height: 50px;
}

.lv-flash-deal-price {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--lv-cream, #F8F5F0);
}

.lv-price-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.lv-price-original {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
}

.lv-price-final {
    font-size: 24px;
    font-weight: 700;
    color: var(--lv-primary, #D4A083);
}

.lv-price-savings {
    font-size: 14px;
    color: #ff6b6b;
    font-weight: 600;
}

.lv-flash-deal-btn {
    width: 100%;
    padding: 14px;
    background: var(--lv-primary, #D4A083);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: block;
}

.lv-flash-deal-btn:hover {
    background: var(--lv-secondary, #C8A165);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 160, 131, 0.3);
}

.lv-flash-deal-stock {
    margin-top: 10px;
    font-size: 13px;
    color: #666;
}

.lv-stock-bar {
    width: 100%;
    height: 6px;
    background: var(--lv-cream, #F8F5F0);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 5px;
}

.lv-stock-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #ee5a52);
    transition: width 0.3s ease;
    border-radius: 3px;
}

.lv-flash-deals-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.lv-deals-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--lv-primary, #D4A083);
    background: white;
    color: var(--lv-primary, #D4A083);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.lv-deals-nav-btn:hover {
    background: var(--lv-primary, #D4A083);
    color: white;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .lv-flash-deals-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .lv-flash-deals-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .lv-countdown-timer {
        padding: 8px 12px;
    }
    
    .lv-countdown-number {
        font-size: 20px;
    }
}

/* Loading state */
.lv-flash-deals-loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

.lv-flash-deals-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--lv-cream, #F8F5F0);
    border-top-color: var(--lv-primary, #D4A083);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty state */
.lv-flash-deals-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.lv-flash-deals-empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

