/* Flash Sale Banner */
.flash-sale-banner {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 50%, #FFD93D 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.flash-sale-banner::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.flash-sale-banner::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.flash-title {
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

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

.flash-subtitle {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.discount-badge {
    display: inline-block;
    background: white;
    color: #FF6B6B;
    padding: 1rem 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.discount-number {
    font-size: 3rem;
    font-weight: 800;
    display: block;
}

.discount-text {
    font-size: 1rem;
    font-weight: 600;
}

/* Countdown Timer */
.countdown-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.countdown-item {
    background: white;
    color: #FF6B6B;
    padding: 1.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    min-width: 100px;
}

.countdown-value {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.countdown-label {
    display: block;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-weight: 600;
}

.countdown-separator {
    font-size: 2.5rem;
    color: white;
    font-weight: 700;
}

/* Filter Tabs */
.promo-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: white;
    border: 2px solid #8B4513;
    color: #8B4513;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tab-btn:hover {
    background: #8B4513;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

.tab-btn.active {
    background: linear-gradient(135deg, #8B4513, #D2691E);
    color: white;
    border-color: #8B4513;
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.4);
}

/* Promo Cards with Hover Effect */
.flip-card {
    background-color: transparent;
    height: 450px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.flip-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
}

.flip-card:hover .flip-card-inner {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.flip-card-front {
    position: relative;
    width: 100%;
    height: 100%;
}

.flip-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.flip-card:hover .flip-card-front img {
    transform: scale(1.05);
}

.flip-card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.flip-card-badge.hot {
    background: linear-gradient(135deg, #FF6B6B, #FF4757);
    color: white;
}

.flip-card-badge.new {
    background: linear-gradient(135deg, #5F27CD, #341F97);
    color: white;
}

.flip-card-badge.vip {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
}

.flip-card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.5));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    z-index: 1;
    transition: all 0.4s ease;
}

.flip-card:hover .flip-card-title {
    padding-bottom: 2.5rem;
}

.flip-card-back {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #8B4513, #D2691E);
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    z-index: 3;
}

.flip-card:hover .flip-card-back {
    transform: translateY(0);
}

.flip-card-back h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.flip-card-back p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.promo-details {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
    text-align: left;
}

.promo-details li {
    padding: 0.4rem 0;
    font-size: 0.85rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

.promo-details li:last-child {
    border-bottom: none;
}

.promo-details i {
    margin-right: 0.4rem;
    color: #FFD700;
    font-size: 0.75rem;
}

.promo-code {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.75rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.promo-code strong {
    font-size: 1rem;
    letter-spacing: 1px;
}

.copy-btn {
    background: white;
    color: #8B4513;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    background: #FFD700;
    transform: scale(1.05);
}

.copy-btn.copied {
    background: #28a745;
    color: white;
}

/* Accordion */
.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.accordion-button {
    background: white;
    color: #8B4513;
    font-weight: 600;
    padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #8B4513, #D2691E);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-body {
    padding: 1.5rem;
    line-height: 1.8;
}

/* Responsive */
@media (max-width: 768px) {
    .flash-title {
        font-size: 2.5rem;
    }
    
    .countdown-item {
        padding: 1rem 1.5rem;
        min-width: 80px;
    }
    
    .countdown-value {
        font-size: 2rem;
    }
    
    .countdown-label {
        font-size: 0.75rem;
    }
    
    .flip-card {
        height: 400px;
    }
    
    /* Mobile: Show overlay on tap */
    .flip-card-back {
        transform: translateY(0);
        position: static;
        margin-top: -80px;
        border-radius: 15px 15px 0 0;
    }
    
    .flip-card-inner {
        height: auto;
    }
    
    .promo-code {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tab-btn {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }
}
