/* ============================================================
   TIỆM NHÀ GỐM - CHRISTMAS / NOEL THEME STYLES
   Hiệu ứng lễ hội Giáng sinh: Tuyết rơi, Mũ Noel, Dây đèn trang trí
   ============================================================ */

/* 1. Snow Canvas Overlay */
#noel-snow-canvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    pointer-events: none !important;
    z-index: 99998 !important;
    opacity: 0;
    transition: opacity 0.6s ease;
    display: block;
}

body.noel-active #noel-snow-canvas {
    opacity: 1;
}

/* 2. Santa Hat on Logo */
.logo {
    position: relative !important;
}

.noel-santa-hat {
    position: absolute;
    top: -14px;
    left: 4px; /* Dời mũ sang phải để đội vừa vặn trên vòm lò gốm */
    width: 32px;
    height: 32px;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transform: scale(0.6) rotate(-10deg);
    transform-origin: bottom right;
    transition: opacity 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3ClinearGradient id='hatRed' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23ff416c'/%3E%3Cstop offset='100%25' stop-color='%23c0392b'/%3E%3C/linearGradient%3E%3Cfilter id='hatShadow' x='-20%25' y='-20%25' width='140%25' height='140%25'%3E%3CfeDropShadow dx='0' dy='3' stdDeviation='2' flood-opacity='0.25'/%3E%3C/filter%3E%3C/defs%3E%3Cg filter='url(%23hatShadow)'%3E%3Cpath d='M25 72 C 30 35, 68 18, 85 24 C 82 42, 70 65, 78 72 Z' fill='url(%23hatRed)'/%3E%3Cpath d='M85 24 Q 92 28, 92 38' stroke='%23c0392b' stroke-width='6' stroke-linecap='round' fill='none'/%3E%3Ccircle cx='92' cy='40' r='10' fill='%23ffffff' filter='drop-shadow(0 2px 2px rgba(0,0,0,0.15))'/%3E%3Crect x='18' y='68' width='66' height='16' rx='8' fill='%23ffffff' filter='drop-shadow(0 2px 3px rgba(0,0,0,0.12))'/%3E%3C/g%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

body.noel-active .noel-santa-hat {
    opacity: 1;
    transform: scale(1) rotate(-14deg);
    animation: hatSway 3.6s ease-in-out infinite alternate;
}

@keyframes hatSway {
    0% {
        transform: scale(1) rotate(-14deg);
    }
    50% {
        transform: scale(1.03) rotate(-9deg) translateY(-1px);
    }
    100% {
        transform: scale(1) rotate(-17deg);
    }
}

/* 3. Noel Fairy Lights along Header Navbar (Giữ nguyên position của navbar trong style.css) */
.noel-fairy-lights {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 16px;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    pointer-events: none;
    z-index: 99;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    overflow: hidden;
    padding: 0 10px;
    box-sizing: border-box;
}

body.noel-active .noel-fairy-lights {
    opacity: 1;
    transform: translateY(0);
}

/* Connecting green string wire */
.noel-fairy-lights::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 0;
    width: 100%;
    height: 6px;
    background: radial-gradient(ellipse at 50% -20%, transparent 68%, #2d5a27 70%, #2d5a27 74%, transparent 76%);
    background-size: 40px 10px;
    opacity: 0.85;
}

.noel-light-bulb {
    position: relative;
    width: 8px;
    height: 12px;
    border-radius: 50% 50% 45% 45%;
    margin-top: 4px;
    transition: all 0.3s ease;
}

/* Bulb base socket */
.noel-light-bulb::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 2px;
    width: 4px;
    height: 3px;
    background: #1e391b;
    border-radius: 1px;
}

/* 5 Holiday Colors */
.noel-light-bulb.b-red {
    background: #ff3344;
    box-shadow: 0 1px 8px #ff3344, 0 0 14px rgba(255, 51, 68, 0.6);
    animation: twinkleRed 1.8s infinite alternate ease-in-out;
}

.noel-light-bulb.b-gold {
    background: #ffbb00;
    box-shadow: 0 1px 8px #ffbb00, 0 0 14px rgba(255, 187, 0, 0.6);
    animation: twinkleGold 1.5s infinite alternate ease-in-out 0.3s;
}

.noel-light-bulb.b-green {
    background: #2ecc71;
    box-shadow: 0 1px 8px #2ecc71, 0 0 14px rgba(46, 204, 113, 0.6);
    animation: twinkleGreen 2s infinite alternate ease-in-out 0.6s;
}

.noel-light-bulb.b-blue {
    background: #38bdf8;
    box-shadow: 0 1px 8px #38bdf8, 0 0 14px rgba(56, 189, 248, 0.6);
    animation: twinkleBlue 1.6s infinite alternate ease-in-out 0.9s;
}

.noel-light-bulb.b-warm {
    background: #fff3c4;
    box-shadow: 0 1px 8px #fff3c4, 0 0 14px rgba(255, 243, 196, 0.6);
    animation: twinkleWarm 2.2s infinite alternate ease-in-out 1.2s;
}

@keyframes twinkleRed {
    0%, 100% { opacity: 0.95; filter: drop-shadow(0 0 6px #ff3344); }
    50% { opacity: 0.45; filter: none; }
}

@keyframes twinkleGold {
    0%, 100% { opacity: 0.95; filter: drop-shadow(0 0 6px #ffbb00); }
    50% { opacity: 0.35; filter: none; }
}

@keyframes twinkleGreen {
    0%, 100% { opacity: 0.95; filter: drop-shadow(0 0 6px #2ecc71); }
    50% { opacity: 0.4; filter: none; }
}

@keyframes twinkleBlue {
    0%, 100% { opacity: 0.95; filter: drop-shadow(0 0 6px #38bdf8); }
    50% { opacity: 0.35; filter: none; }
}

@keyframes twinkleWarm {
    0%, 100% { opacity: 0.95; filter: drop-shadow(0 0 6px #fff3c4); }
    50% { opacity: 0.5; filter: none; }
}

/* 4. Holiday Festive Message Banner */
.noel-message-banner {
    position: fixed;
    top: 92px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    z-index: 2500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 18px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(192, 57, 43, 0.28);
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(192, 57, 43, 0.12);
    color: #2c3e50;
    font-family: var(--font-sans, sans-serif);
    font-size: 0.88rem;
    font-weight: 500;
    max-width: 90vw;
    opacity: 0;
    pointer-events: auto;
    transition: opacity 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.noel-message-banner.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.noel-message-banner .noel-banner-icon {
    font-size: 1.15rem;
    line-height: 1;
    display: inline-block;
    animation: gentleWobble 3s infinite ease-in-out;
}

@keyframes gentleWobble {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-8deg); }
    75% { transform: rotate(8deg); }
}

.noel-message-banner .noel-banner-text {
    color: #1e293b;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.noel-message-banner .noel-banner-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    color: #94a3b8;
    padding: 0 4px;
    margin-left: 4px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.noel-message-banner .noel-banner-close:hover {
    color: #e74c3c;
}

/* 5. Mobile Responsiveness */
@media (max-width: 992px) {
    .noel-santa-hat {
        top: -12px;
        left: 2px;
        width: 28px;
        height: 28px;
    }

    .noel-fairy-lights {
        height: 12px;
        bottom: -7px;
    }

    .noel-light-bulb {
        width: 6px;
        height: 9px;
    }

    .noel-message-banner {
        top: 76px;
        padding: 6px 12px 6px 14px;
        font-size: 0.78rem;
        max-width: 92vw;
    }

    .noel-landing-hero {
        margin-top: -70px;
        padding-top: 110px;
    }
}

/* Accessibility: Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .noel-santa-hat,
    .noel-light-bulb {
        animation: none !important;
    }
    
    #noel-snow-canvas {
        display: none !important;
    }
}

/* ============================================================
   6. NAVBAR NOEL LINK & PRODUCT CARD NOEL BADGE
   ============================================================ */
.nav-links .noel-nav-link {
    color: #b91c1c !important;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    transition: opacity 0.3s ease, color 0.3s ease !important;
}

@media (min-width: 993px) {
    .nav-links .noel-nav-link {
        padding: 0 !important;
    }
}

.nav-links .noel-nav-link:hover,
.nav-links .noel-nav-link.active {
    background: transparent !important;
    color: #991b1b !important;
    border: none !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.7;
}

.navbar.transparent .nav-links .noel-nav-link {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
    mix-blend-mode: normal !important;
}
.navbar.transparent .nav-links .noel-nav-link svg {
    color: #ffffff !important;
    fill: #ffffff !important;
}

.product-badge-circle.badge-noel {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #991B1B 0%, #7F1D1D 100%);
    color: #FEF3C7;
    border: 1.5px solid #FCD34D;
    box-shadow: 0 3px 10px rgba(127, 29, 29, 0.28);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transform: rotate(8deg);
}

/* ============================================================
   7. HOMEPAGE NOEL SHOWCASE SECTION (Gợi ý 1: Góc Giáng Sinh Ấm Áp)
   ============================================================ */
.noel-showcase-section {
    position: relative;
    margin: 3rem auto;
    padding: 3.5rem 5%;
    background: radial-gradient(circle at 15% 20%, rgba(153, 27, 27, 0.06) 0%, transparent 55%),
                radial-gradient(circle at 85% 80%, rgba(217, 119, 6, 0.08) 0%, transparent 55%),
                linear-gradient(180deg, #FDF8F3 0%, #FAF2EA 100%);
    border-top: 1px solid #EBD9C8;
    border-bottom: 1px solid #EBD9C8;
    overflow: hidden;
}

.noel-showcase-inner,
.noel-showcase-container {
    max-width: 1400px;
    margin: 0 auto;
}

.noel-showcase-banner-top,
.noel-showcase-banner {
    background: linear-gradient(135deg, #4A151B 0%, #6E1D24 52%, #542318 100%);
    border-radius: 16px;
    padding: 28px 32px;
    color: #FFFBEB;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    box-shadow: 0 14px 34px rgba(74, 21, 27, 0.18);
    border: 1px solid rgba(252, 211, 77, 0.28);
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.noel-showcase-banner-top::after,
.noel-showcase-banner::after {
    content: '✦ ❄ ✦';
    position: absolute;
    right: 28px;
    top: 12px;
    font-size: 0.9rem;
    letter-spacing: 8px;
    color: rgba(253, 230, 138, 0.25);
    pointer-events: none;
}

.noel-showcase-header-left,
.noel-banner-left {
    flex: 1;
    min-width: 280px;
}

.noel-eyebrow-pill,
.noel-season-badge,
.noel-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(254, 243, 199, 0.14);
    border: 1px solid rgba(252, 211, 77, 0.4);
    color: #FDE68A;
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.noel-showcase-title,
.noel-banner-left h2 {
    font-family: var(--font-serif, 'Playfair Display', serif);
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    color: #FFFBEB;
    margin: 0 0 8px 0;
    line-height: 1.25;
}

.noel-showcase-subtitle,
.noel-banner-left p {
    color: #F3E5D8;
    font-size: 0.95rem;
    margin: 0;
    max-width: 620px;
    line-height: 1.55;
    opacity: 0.92;
}

.noel-showcase-countdown-box,
.noel-countdown-box {
    background: rgba(28, 10, 12, 0.42);
    border: 1px solid rgba(252, 211, 77, 0.35);
    border-radius: 12px;
    padding: 14px 22px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(8px);
}

.noel-countdown-label-top,
.noel-countdown-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #FDE68A;
    font-weight: 700;
}

.noel-countdown-digits,
.noel-countdown-timer {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 12px;
}

.noel-cd-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    background: rgba(255, 251, 235, 0.12);
    border: 1px solid rgba(254, 243, 199, 0.28);
    border-radius: 8px;
    padding: 8px 12px;
}

.noel-cd-num {
    font-family: var(--font-serif, 'Playfair Display', serif);
    font-size: 1.45rem;
    font-weight: 700;
    color: #FEF3C7;
    line-height: 1.1;
}

.noel-cd-txt {
    font-size: 0.68rem;
    color: #E7D5C5;
    text-transform: uppercase;
    margin-top: 3px;
    font-weight: 600;
}

/* Noel Category Tabs */
.noel-tabs-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.noel-tabs-scroll,
.noel-tabs-list {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    flex-wrap: wrap;
}

.noel-tabs-scroll::-webkit-scrollbar,
.noel-tabs-list::-webkit-scrollbar {
    display: none;
}

.noel-tab-btn {
    border: 1px solid #DFC8B4;
    background: #FFFFFF;
    color: #4A3525;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.22s ease;
    font-family: inherit;
}

.noel-tab-btn:hover {
    border-color: #991B1B;
    color: #991B1B;
    transform: translateY(-1px);
}

.noel-tab-btn.active {
    background: linear-gradient(135deg, #7F1D1D, #991B1B);
    color: #FEF3C7;
    border-color: #7F1D1D;
    box-shadow: 0 4px 12px rgba(127, 29, 29, 0.22);
}

.noel-gift-perk-pill,
.noel-perk-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #7C2D12;
    background: #FEF3C7;
    border: 1px solid #FDE68A;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.noel-perk-pill:hover {
    background: #FDE68A;
    color: #4A151B;
}

.noel-showcase-footer {
    margin-top: 2.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-noel-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #7F1D1D 0%, #991B1B 100%);
    color: #FEF3C7 !important;
    border: 1px solid #F59E0B;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    letter-spacing: 0.4px;
    box-shadow: 0 6px 18px rgba(127, 29, 29, 0.22);
    transition: all 0.25s ease;
}

.btn-noel-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(127, 29, 29, 0.32);
    background: linear-gradient(135deg, #651515 0%, #881337 100%);
}

/* ============================================================
   8. LANDING PAGE /noel/ (Gợi ý 2: Không Gian Giáng Sinh Riêng)
   ============================================================ */
.noel-landing-hero {
    margin-top: -80px;
    padding: 135px 5% 65px 5%;
    background: radial-gradient(circle at 50% 25%, rgba(217, 119, 6, 0.22), transparent 60%),
                linear-gradient(160deg, #3B0D11 0%, #5B161C 50%, #3E1D14 100%);
    color: #FFFBEB;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.noel-landing-hero-inner,
.noel-hero-inner {
    max-width: 880px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.noel-landing-hero h1 {
    font-family: var(--font-serif, 'Playfair Display', serif);
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    color: #FFFBEB;
    margin: 10px 0 14px 0;
    line-height: 1.2;
}

.noel-landing-hero p {
    font-size: 1.02rem;
    color: #F3E5D8;
    line-height: 1.65;
    max-width: 680px;
    margin: 0 auto 24px auto;
}

.noel-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.btn-noel-gold {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #2B090C !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.3);
    transition: all 0.2s ease;
}

.btn-noel-gold:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
}

.btn-noel-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 251, 235, 0.12);
    border: 1px solid rgba(254, 243, 199, 0.45);
    color: #FEF3C7 !important;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-noel-ghost:hover {
    background: rgba(255, 251, 235, 0.22);
    transform: translateY(-2px);
}

.noel-page-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 5% 4rem 5%;
}

.noel-perks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    max-width: 1280px;
    margin: -34px auto 32px auto;
    position: relative;
    z-index: 10;
}

.noel-perk-card {
    background: #FFFFFF;
    border: 1px solid #EBD9C8;
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    box-shadow: 0 8px 24px rgba(74, 21, 27, 0.07);
}

.noel-perk-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #FEF3C7;
    color: #991B1B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.noel-perk-card h4 {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    color: #2B2928;
    font-weight: 700;
}

.noel-perk-card p {
    margin: 0;
    font-size: 0.82rem;
    color: #6E665D;
    line-height: 1.45;
}

.noel-filter-toolbar {
    background: #FAF6F0;
    border: 1px solid #E8CCB2;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 26px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.noel-price-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.noel-price-pill {
    border: 1px solid #D6C3B0;
    background: #FFFFFF;
    color: #4A3525;
    padding: 6px 13px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.noel-price-pill.active,
.noel-price-pill:hover {
    background: #9C7156;
    color: #FFFFFF;
    border-color: #9C7156;
}

/* Gift Card Writer Section on /noel/ */
.noel-gift-writer-box {
    max-width: 1280px;
    margin: 3.5rem auto 1rem auto;
    background: linear-gradient(135deg, #FFFBF5 0%, #FDF2E9 100%);
    border: 1.5px dashed #D97706;
    border-radius: 14px;
    padding: 28px 32px;
    display: block;
}

.noel-gift-writer-box h3 {
    font-family: var(--font-serif, 'Playfair Display', serif);
    font-size: 1.5rem;
    color: #4A151B;
    margin: 0 0 8px 0;
}

.noel-gift-writer-box > p {
    color: #57534E;
    font-size: 0.92rem;
    margin: 0 0 18px 0;
    line-height: 1.55;
}

.noel-gift-form-row {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 14px;
    align-items: stretch;
}

.noel-gift-form-row textarea {
    width: 100%;
    min-height: 92px;
    padding: 12px 14px;
    border: 1px solid #D6D3D1;
    border-radius: 8px;
    font-size: 0.92rem;
    font-family: inherit;
    background: #FFFFFF;
    box-sizing: border-box;
    resize: vertical;
}

@media (max-width: 768px) {
    .noel-showcase-banner-top,
    .noel-showcase-banner {
        padding: 20px 18px;
    }
    .noel-showcase-countdown-box,
    .noel-countdown-box {
        width: 100%;
        box-sizing: border-box;
    }
    .noel-cd-unit {
        min-width: 54px;
        padding: 6px 8px;
    }
    .noel-gift-writer-box {
        padding: 20px 18px;
    }
    .noel-gift-form-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   8. VISUAL & AESTHETICS ENHANCEMENTS (Gợi ý 1)
   - Mũ Noel lắc lư nhịp nhàng khi hover
   - Mũ tuyết phủ mép thẻ sản phẩm (Snow Cap)
   - Ruy băng góc 'Quà Noel' trên sản phẩm lễ hội
   - Sao lấp lánh trên tiêu đề banner/kệ
   - Nút ❄️ nổi cho khách tự bật/tắt tuyết
   ============================================================ */

/* 8.1. Mũ Noel rung rinh (Jingle Wiggle) */
body.noel-active.noel-hat-wiggle .logo:hover .noel-santa-hat,
body.noel-active .logo .noel-santa-hat:hover {
    animation: jingleWiggle 0.85s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite !important;
}

@keyframes jingleWiggle {
    0% { transform: scale(1) rotate(-14deg); }
    15% { transform: scale(1.18) rotate(-28deg); }
    30% { transform: scale(1.18) rotate(4deg); }
    45% { transform: scale(1.12) rotate(-22deg); }
    60% { transform: scale(1.06) rotate(1deg); }
    75% { transform: scale(1.02) rotate(-17deg); }
    100% { transform: scale(1) rotate(-14deg); }
}

/* 8.2. Mũ tuyết phủ mép thẻ sản phẩm (Snow Cap) */
body.noel-active.noel-snow-cap-on .product-card,
body.noel-active.noel-snow-cap-on .noel-shelf-card,
body.noel-active.noel-snow-cap-on .noel-card {
    position: relative;
    overflow: visible !important;
}

body.noel-active.noel-snow-cap-on .product-card::before,
body.noel-active.noel-snow-cap-on .noel-shelf-card::before,
body.noel-active.noel-snow-cap-on .noel-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L120,0 L120,4 Q114,10 108,5 Q102,11 95,6 Q88,13 80,6 Q72,12 63,5 Q54,13 46,5 Q38,12 30,6 Q23,11 16,5 Q8,12 0,4 Z' fill='%23ffffff' opacity='0.98'/%3E%3Cpath d='M0,0 L120,0 L120,2 Q112,8 106,3 Q98,9 90,4 Q78,10 68,4 Q58,10 48,4 Q36,10 26,3 Q14,9 0,2 Z' fill='%23e0f2fe' opacity='0.6'/%3E%3C/svg%3E");
    background-size: 100% 12px;
    background-repeat: no-repeat;
    z-index: 5;
    pointer-events: none;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    filter: drop-shadow(0 2px 2px rgba(15, 23, 42, 0.08));
}

/* 8.3. Ruy băng góc 'Quà Noel' / Corner Ribbon */
.noel-corner-ribbon-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 85px;
    height: 85px;
    overflow: hidden;
    z-index: 8;
    pointer-events: none;
    border-top-left-radius: inherit;
}

.noel-corner-ribbon {
    position: absolute;
    top: 14px;
    left: -28px;
    transform: rotate(-45deg);
    background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%);
    color: #fffbeb;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 3px 28px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
    border-top: 1px solid rgba(254, 243, 199, 0.5);
    border-bottom: 1px solid rgba(254, 243, 199, 0.3);
    text-align: center;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

/* 8.4. Sparkle Star Twinkle trên tiêu đề */
.noel-sparkle-star {
    display: inline-block;
    color: #fde047;
    margin: 0 4px;
    animation: sparkleTwinkle 2.2s infinite ease-in-out;
    transform-origin: center;
    vertical-align: middle;
}
.noel-sparkle-star:nth-child(2) {
    animation-delay: 0.7s;
}
.noel-sparkle-star:nth-child(3) {
    animation-delay: 1.4s;
}

@keyframes sparkleTwinkle {
    0%, 100% {
        opacity: 0.35;
        transform: scale(0.8) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.3) rotate(45deg);
        filter: drop-shadow(0 0 6px #fde047);
    }
}

/* 8.5. Nút ❄️ nổi cho khách tự bật/tắt tuyết */
.noel-floating-snow-btn {
    position: fixed;
    bottom: 24px;
    left: 20px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(185, 28, 28, 0.25);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 0 0 2px rgba(255, 255, 255, 0.8);
    color: #0284c7;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9998;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none;
    outline: none;
}

.noel-floating-snow-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.3);
    color: #0369a1;
}

.noel-floating-snow-btn.disabled {
    color: #94a3b8;
    border-color: #cbd5e1;
    background: rgba(241, 245, 249, 0.92);
}

.noel-floating-snow-btn.disabled::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: #ef4444;
    transform: rotate(45deg);
    border-radius: 2px;
}

/* ============================================================
   9. CONVERSION & E-COMMERCE ENHANCEMENTS (Gợi ý 2)
   - Tùy chọn miễn phí gói quà & viết thiệp trong giỏ hàng
   - Chiếc vớ Giáng Sinh may mắn (Secret Santa Sock Widget & Popup)
   ============================================================ */

/* 9.1. Checkbox Gói Quà Noel trong Drawer Cart & Giỏ Hàng */
.noel-giftwrap-box {
    background: #fef2f2;
    border: 1px dashed #f87171;
    border-radius: 8px;
    padding: 10px 12px;
    margin: 10px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    text-align: left;
}

.noel-giftwrap-box:hover {
    background: #fee2e2;
    border-color: #ef4444;
}

.noel-giftwrap-box input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #991b1b;
}

.noel-giftwrap-info {
    flex: 1;
}

.noel-giftwrap-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #991b1b;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.noel-giftwrap-desc {
    font-size: 0.74rem;
    color: #7f1d1d;
    line-height: 1.35;
    opacity: 0.9;
}

/* 9.2. Chiếc vớ Giáng Sinh may mắn (Lucky Sock Widget) */
.noel-lucky-sock-widget {
    position: fixed;
    bottom: 76px;
    left: 20px;
    z-index: 9998;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: sockSwing 3.6s infinite ease-in-out;
    transform-origin: top center;
    user-select: none;
    transition: transform 0.3s ease;
}

.noel-lucky-sock-widget:hover {
    animation-play-state: paused;
    transform: scale(1.1);
}

@keyframes sockSwing {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(9deg); }
    75% { transform: rotate(-9deg); }
}

.noel-sock-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%);
    box-shadow: 0 6px 18px rgba(153, 27, 27, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fef08a;
    font-size: 1.5rem;
    border: 2px solid #fde047;
    position: relative;
}

.noel-sock-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e11d48;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 8px;
    border: 1px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: pulse 1.8s infinite;
}

.noel-sock-tag {
    margin-top: 4px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(185, 28, 28, 0.2);
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #991b1b;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

/* 9.3. Popup Secret Santa Voucher Modal */
.noel-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.noel-modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.noel-sock-popup {
    background: #fffdfa;
    border: 2px solid #fcd34d;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25), 0 0 0 4px rgba(254, 243, 199, 0.5);
    max-width: 420px;
    width: 100%;
    padding: 24px 22px;
    text-align: center;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-image: radial-gradient(circle at 10% 10%, rgba(185, 28, 28, 0.04) 0%, transparent 40%),
                      radial-gradient(circle at 90% 90%, rgba(22, 101, 52, 0.05) 0%, transparent 40%);
}

.noel-modal-backdrop.active .noel-sock-popup {
    transform: scale(1) translateY(0);
}

.noel-sock-popup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.noel-sock-popup-close:hover {
    color: #e11d48;
}

.noel-coupon-box {
    background: #fef2f2;
    border: 1.5px dashed #f87171;
    border-radius: 10px;
    padding: 14px 16px;
    margin: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.noel-coupon-code {
    font-family: monospace;
    font-size: 1.25rem;
    font-weight: 800;
    color: #991b1b;
    letter-spacing: 2px;
}

.noel-coupon-copy-btn {
    background: #991b1b;
    color: #fff;
    border: none;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.noel-coupon-copy-btn:hover {
    background: #7f1d1d;
    transform: translateY(-1px);
}

/* ============================================================
   10. INTERACTIVE & AMBIENT MUSIC (Gợi ý 3)
   - Widget nghe nhạc Giáng sinh êm dịu góc màn hình
   ============================================================ */
.noel-music-widget {
    position: fixed;
    bottom: 24px;
    left: 70px;
    height: 42px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(22, 101, 52, 0.28);
    border-radius: 30px;
    padding: 0 14px 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), 0 0 0 2px rgba(255, 255, 255, 0.8);
    cursor: pointer;
    z-index: 9998;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none;
    font-size: 0.8rem;
    color: #166534;
    font-weight: 600;
    outline: none;
}

.noel-music-widget:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 20px rgba(22, 101, 52, 0.22);
}

.noel-music-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #dcfce7;
    color: #166534;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.noel-music-widget.playing {
    background: #14532d;
    color: #f0fdf4;
    border-color: #22c55e;
}

.noel-music-widget.playing .noel-music-icon {
    background: #22c55e;
    color: #fff;
    animation: spinSlow 6s linear infinite;
}

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.noel-audio-waves {
    display: none;
    align-items: flex-end;
    gap: 2.5px;
    height: 12px;
}

.noel-music-widget.playing .noel-audio-waves {
    display: flex;
}

.noel-audio-waves span {
    width: 2px;
    height: 100%;
    background: #4ade80;
    border-radius: 1px;
    animation: soundWave 1.2s infinite ease-in-out alternate;
}

.noel-audio-waves span:nth-child(2) { animation-delay: 0.25s; height: 50%; }
.noel-audio-waves span:nth-child(3) { animation-delay: 0.5s; height: 80%; }
.noel-audio-waves span:nth-child(4) { animation-delay: 0.15s; height: 60%; }

@keyframes soundWave {
    0% { height: 20%; }
    100% { height: 100%; }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .noel-floating-snow-btn {
        bottom: 16px;
        left: 14px;
        width: 38px;
        height: 38px;
        font-size: 1.05rem;
    }
    .noel-music-widget {
        bottom: 16px;
        left: 58px;
        height: 38px;
        padding: 0 10px 0 6px;
        font-size: 0.74rem;
    }
    .noel-lucky-sock-widget {
        bottom: 64px;
        left: 14px;
    }
    .noel-sock-icon-wrap {
        width: 42px;
        height: 42px;
        font-size: 1.3rem;
    }
    .noel-sock-tag {
        font-size: 0.62rem;
        padding: 1px 5px;
    }
}
