/* ============================================
   🏮 TẾT NGUYÊN ĐÁN THEME - CGIFT HOME 🧧
   Chủ đề Tết với màu đỏ, vàng, cam - Bính Ngọ 2026
   ============================================ */

/* Music Toggle Button */
.music-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--tet-red-gradient);
    border: 3px solid var(--tet-gold);
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(220, 38, 38, 0.4);
    transition: all 0.3s ease;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.6);
}

.music-toggle:active {
    transform: scale(0.95);
}

:root {
    /* Tết Color Palette */
    --tet-red: #dc2626;
    --tet-light-red: #ef4444;
    --tet-dark-red: #991b1b;
    --tet-gold: #fbbf24;
    --tet-light-gold: #fde047;
    --tet-dark-gold: #d97706;
    --tet-orange: #f97316;
    --tet-yellow: #fef08a;
    --tet-cream: #fffbeb;
    --tet-white: #ffffff;
    --tet-pink: #fce7f3;

    /* Gradients */
    --tet-red-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --tet-gold-gradient: linear-gradient(135deg, #fde047 0%, #fbbf24 100%);
    --tet-festive-gradient: linear-gradient(135deg, #ef4444 0%, #f97316 50%, #fbbf24 100%);
    --tet-lucky-gradient: linear-gradient(135deg, #dc2626 0%, #fbbf24 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 50%, #fed7aa 100%);
    color: #292524;
    overflow-x: hidden;
}

/* ============================================
   🏮 HEADER SECTION - TẾT NGUYÊN ĐÁN
   ============================================ */

.tet-header {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(180deg, #ffffff 0%, #fef3c7 30%, #fed7aa 70%, #fdba74 100%);
    overflow: hidden;
    padding: 100px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Fireworks & Lucky Money Effects */
.tet-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

/* Fireworks Animation */
.firework {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    box-shadow:
        0 0 10px var(--tet-red),
        0 0 20px var(--tet-gold),
        0 0 30px var(--tet-orange);
}

.firework1 {
    top: 20%;
    left: 20%;
    animation: firework 3s ease-out infinite;
}

.firework2 {
    top: 30%;
    right: 25%;
    animation: firework 3.5s ease-out infinite 0.5s;
}

.firework3 {
    top: 50%;
    left: 60%;
    animation: firework 4s ease-out infinite 1s;
}

@keyframes firework {
    0% {
        transform: scale(0) translateY(0);
        opacity: 1;
    }
    50% {
        transform: scale(30) translateY(-100px);
        opacity: 0.8;
    }
    100% {
        transform: scale(50) translateY(-200px);
        opacity: 0;
    }
}

/* Lucky Money (Lì xì) Falling Animation */
.lucky-money {
    position: absolute;
    top: -50px;
    font-size: 30px;
    animation: luckyMoneyFall linear infinite;
    filter: drop-shadow(0 2px 4px rgba(220, 38, 38, 0.3));
}

@keyframes luckyMoneyFall {
    0% {
        top: -50px;
        transform: rotate(0deg) translateX(0);
    }
    25% {
        transform: rotate(90deg) translateX(20px);
    }
    50% {
        transform: rotate(180deg) translateX(0);
    }
    75% {
        transform: rotate(270deg) translateX(-20px);
    }
    100% {
        top: 110vh;
        transform: rotate(360deg) translateX(0);
    }
}

/* Floating Icons - Tết themed */
.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    font-size: 3rem;
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 2px 8px rgba(220, 38, 38, 0.3));
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(10deg);
    }
}

/* Header Content */
.header-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Title Wrapper */
.title-wrapper {
    position: relative;
    margin-bottom: 30px;
}

.main-title {
    position: relative;
    margin: 0;
    padding: 20px 0;
}

.title-text {
    font-size: 5rem;
    font-weight: 800;
    background: var(--tet-festive-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 5px 20px rgba(220, 38, 38, 0.3);
    letter-spacing: 8px;
    display: inline-block;
    animation: titlePulse 3s ease-in-out infinite;
}

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

.title-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.3) 0%, transparent 70%);
    filter: blur(30px);
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Title Decoration */
.title-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.sparkle {
    position: absolute;
    font-size: 2rem;
    animation: sparkle 2s ease-in-out infinite;
}

.sparkle1 {
    top: 0;
    left: 10%;
    animation-delay: 0s;
}

.sparkle2 {
    top: 50%;
    right: 15%;
    animation-delay: 0.5s;
}

.sparkle3 {
    bottom: 10%;
    left: 20%;
    animation-delay: 1s;
}

@keyframes sparkle {
    0%,
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.5) rotate(180deg);
        opacity: 1;
    }
}

/* Subtitle */
.main-subtitle {
    font-size: 1.8rem;
    margin-bottom: 50px;
    color: var(--tet-dark-red);
}

.subtitle-highlight {
    display: block;
    font-weight: 600;
    color: var(--tet-red);
    margin-bottom: 10px;
}

.subtitle-main {
    display: block;
    font-weight: 700;
    font-size: 2.2rem;
    background: var(--tet-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.cta-btn {
    position: relative;
    padding: 18px 45px;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.primary-cta {
    background: var(--tet-red-gradient);
    color: white;
    border: 2px solid var(--tet-gold);
}

.primary-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.4);
}

.secondary-cta {
    background: var(--tet-gold-gradient);
    color: var(--tet-dark-red);
    border: 2px solid var(--tet-red);
}

.secondary-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.4);
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-ripple {
    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;
}

.cta-btn:active .btn-ripple {
    width: 300px;
    height: 300px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--tet-red);
    font-size: 1rem;
    font-weight: 500;
    z-index: 10;
    animation: bounce 2s infinite;
}

.scroll-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

@keyframes bounce {
    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* ============================================
   🏮 PRODUCTS SECTION
   ============================================ */

.layout_padding {
    padding: 80px 0;
    background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
}

.filter-section {
    text-align: center;
    margin-bottom: 50px;
}

.filter-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--tet-festive-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
}

.filter-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    background: white;
    color: var(--tet-red);
    border: 2px solid var(--tet-gold);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--tet-red-gradient);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(220, 38, 38, 0.3);
}

/* Products Grid */
.products-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid var(--tet-gold);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(220, 38, 38, 0.2);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-badge {
    display: inline-block;
    padding: 5px 15px;
    background: var(--tet-red-gradient);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--tet-dark-red);
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--tet-red);
    margin-bottom: 15px;
}

.product-description {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px;
    background: var(--tet-gold-gradient);
    color: var(--tet-dark-red);
    border: 2px solid var(--tet-red);
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    background: var(--tet-red-gradient);
    color: white;
    transform: scale(1.05);
}

/* ============================================
   🛒 CHECKOUT SECTION
   ============================================ */

.checkout-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #fef3c7 0%, #fffbeb 100%);
}

.checkout-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 3px solid var(--tet-gold);
}

.checkout-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--tet-festive-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 40px;
}

.cart-section {
    background: var(--tet-cream);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 2px solid var(--tet-light-gold);
}

.cart-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tet-red);
    margin-bottom: 15px;
}

.cart-items-list {
    list-style: none;
    padding: 0;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--tet-gold);
}

.empty-cart {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 1.1rem;
}

/* Discount Alert */
.discount-alert {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    border: 2px solid var(--tet-gold);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    animation: alertPulse 2s ease-in-out infinite;
}

@keyframes alertPulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(251, 191, 36, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 8px 25px rgba(251, 191, 36, 0.5);
    }
}

.alert-content {
    display: flex;
    gap: 15px;
    align-items: center;
}

.alert-icon {
    font-size: 3rem;
}

.alert-text h4 {
    color: var(--tet-red);
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.alert-text p {
    color: var(--tet-dark-red);
    margin-bottom: 10px;
}

.discount-code {
    display: inline-block;
    padding: 5px 15px;
    background: var(--tet-red-gradient);
    color: white;
    border-radius: 20px;
    font-weight: 700;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--tet-dark-red);
    margin-bottom: 8px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    border: 2px solid var(--tet-gold);
    border-radius: 10px;
    background: white;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--tet-red);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Payment Summary */
.payment-summary {
    background: var(--tet-cream);
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
    border: 2px solid var(--tet-light-gold);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--tet-light-gold);
}

.summary-row:last-child {
    border-bottom: none;
}

.total-row {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--tet-red);
    padding-top: 20px;
    margin-top: 10px;
    border-top: 2px solid var(--tet-gold);
}

.discount-row {
    color: var(--tet-red);
    font-weight: 600;
}

/* VietQR Section */
.vietqr-section {
    background: var(--tet-cream);
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
    border: 2px solid var(--tet-gold);
}

.vietqr-title {
    text-align: center;
    color: var(--tet-red);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.qr-container {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 30px;
    align-items: center;
}

.qr-code {
    width: 250px;
    height: 250px;
    background: white;
    border: 3px solid var(--tet-gold);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bank-info {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid var(--tet-light-gold);
}

.bank-detail {
    padding: 10px 0;
    border-bottom: 1px solid var(--tet-light-gold);
}

.bank-detail:last-child {
    border-bottom: none;
}

.qr-instructions {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    border: 2px solid var(--tet-light-gold);
}

.qr-instructions ol {
    margin-left: 20px;
    line-height: 2;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.3rem;
    font-weight: 700;
    background: var(--tet-red-gradient);
    color: white;
    border: 2px solid var(--tet-gold);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.4);
}

/* ============================================
   📱 RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .title-text {
        font-size: 3rem;
        letter-spacing: 4px;
    }

    .main-subtitle {
        font-size: 1.3rem;
    }

    .subtitle-main {
        font-size: 1.6rem;
    }

    .cta-btn {
        padding: 15px 35px;
        font-size: 1rem;
    }

    .filter-title {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .checkout-container {
        padding: 25px;
    }

    .checkout-title {
        font-size: 2rem;
    }

    .qr-container {
        grid-template-columns: 1fr;
    }

    .qr-code {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .title-text {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .floating-icon {
        font-size: 2rem;
    }

    .lucky-money {
        font-size: 20px;
    }
}
