        :root {
            --boo-pink: #FF9EBB;
            --boo-cloud: #A2D2FF;
            --boo-bg: #F8FAFC;
            --boo-header: #FFFFFF;
            --boo-card-bg: #FFFFFF;
            --boo-card-border: #E2E8F0;
            --boo-banner-bg: #FFF5F8;
        }
        * { box-sizing: border-box; }
        body {
            margin: 0;
            font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
            background-color: var(--boo-bg);
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            color: #0F172A;
            overflow-x: hidden;
        }
        .font-brand { font-family: 'Quicksand', sans-serif; }
        /* High-Contrast Search Input Rule (#F1F5F9 bg, #CBD5E1 border, #0F172A dark black text) */
        .cloudboo-search {
            background-color: #F1F5F9 !important;
            border: 2px solid #CBD5E1 !important;
            color: #0F172A !important;
            font-weight: 600 !important;
        }
        .cloudboo-search::placeholder { color: #64748B !important; font-weight: 500 !important; }
        .cloudboo-search:focus {
            background-color: #FFFFFF !important;
            border-color: #0F172A !important;
            outline: none !important;
            box-shadow: 0 0 0 3px rgba(162, 210, 255, 0.45) !important;
        }
        @keyframes floatBoo {
            0%, 100% { transform: translateY(0px) rotate(0deg); }
            50% { transform: translateY(-6px) rotate(1.5deg); }
        }
        @keyframes hatWiggle {
            0%, 100% { transform: rotate(0deg) translateY(0px); }
            50% { transform: rotate(-3deg) translateY(-1.5px); }
        }
        .boo-float { animation: floatBoo 3.2s ease-in-out infinite; }
        .boo-hat-anim { transform-origin: 50px 30px; animation: hatWiggle 2.4s ease-in-out infinite; }
        @keyframes snowFall {
            0% { transform: translate3d(0, -10vh, 0) rotate(0deg); opacity: 0; }
            15% { opacity: 0.95; }
            50% { transform: translate3d(22px, 50vh, 0) rotate(180deg); opacity: 0.9; }
            85% { opacity: 0.9; }
            100% { transform: translate3d(-18px, 108vh, 0) rotate(360deg); opacity: 0; }
        }
        .seasonal-particle {
            position: fixed;
            top: -5vh;
            pointer-events: none;
            z-index: 45;
            user-select: none;
            animation-name: snowFall;
            animation-timing-function: ease-in-out;
            animation-iteration-count: infinite;
            filter: drop-shadow(0 2px 6px rgba(15, 23, 42, 0.18));
        }
        @keyframes smokeDrift {
            0% { transform: translate3d(-12vw, 15px, 0) scale(1); opacity: 0; }
            25% { opacity: 0.55; }
            50% { transform: translate3d(4vw, -18px, 0) scale(1.14); opacity: 0.7; }
            75% { opacity: 0.5; }
            100% { transform: translate3d(16vw, -42px, 0) scale(1.25); opacity: 0; }
        }
        @keyframes smokeRise {
            0% { transform: translate3d(0, 102vh, 0) scale(0.8) rotate(0deg); opacity: 0; }
            20% { opacity: 0.65; }
            50% { transform: translate3d(-25px, 50vh, 0) scale(1.15) rotate(8deg); opacity: 0.55; }
            80% { opacity: 0.45; }
            100% { transform: translate3d(25px, -10vh, 0) scale(1.35) rotate(-8deg); opacity: 0; }
        }
        .smoke-cloud {
            position: fixed;
            pointer-events: none;
            z-index: 44;
            border-radius: 9999px;
            background: radial-gradient(circle, rgba(226, 232, 240, 0.78) 0%, rgba(203, 213, 225, 0.42) 45%, rgba(248, 250, 252, 0) 72%);
            filter: blur(16px);
            animation: smokeDrift 11s ease-in-out infinite;
        }
        .smoke-wisp {
            position: fixed;
            pointer-events: none;
            z-index: 45;
            user-select: none;
            animation: smokeRise 12s ease-in-out infinite;
            filter: drop-shadow(0 0 10px rgba(148, 163, 184, 0.65));
        }
        @keyframes halloweenBatFloat {
            0% { transform: translate3d(-8vw, 108vh, 0) rotate(-8deg) scale(0.9); opacity: 0; }
            15% { opacity: 0.95; }
            40% { transform: translate3d(10vw, 65vh, 0) rotate(10deg) scale(1.08); opacity: 0.95; }
            70% { transform: translate3d(-12vw, 30vh, 0) rotate(-10deg) scale(1); opacity: 0.9; }
            100% { transform: translate3d(8vw, -12vh, 0) rotate(6deg) scale(1.12); opacity: 0; }
        }
        .halloween-particle {
            position: fixed;
            pointer-events: none;
            z-index: 45;
            user-select: none;
            animation: halloweenBatFloat 10s ease-in-out infinite;
            filter: drop-shadow(0 3px 8px rgba(249, 115, 22, 0.35));
        }
        .halloween-aura {
            position: fixed;
            pointer-events: none;
            z-index: 44;
            border-radius: 9999px;
            background: radial-gradient(circle, rgba(251, 146, 60, 0.24) 0%, rgba(168, 85, 247, 0.16) 48%, rgba(255, 247, 237, 0) 74%);
            filter: blur(18px);
            animation: smokeDrift 12s ease-in-out infinite;
        }
        @keyframes giftWiggle {
            0%, 100% { transform: rotate(0deg) scale(1); }
            15% { transform: rotate(-6deg) scale(1.04); }
            30% { transform: rotate(6deg) scale(1.05); }
            45% { transform: rotate(-4deg) scale(1.03); }
            60% { transform: rotate(3deg) scale(1.02); }
            75% { transform: rotate(0deg) scale(1); }
        }
        @keyframes giftGlow {
            0%, 100% { box-shadow: 0 10px 26px -6px rgba(225, 29, 72, 0.45), 0 0 0 0 rgba(255, 158, 187, 0.55); }
            50% { box-shadow: 0 14px 30px -6px rgba(225, 29, 72, 0.6), 0 0 0 8px rgba(255, 158, 187, 0); }
        }
        .gift-float-btn {
            animation: giftWiggle 2.8s ease-in-out infinite, giftGlow 2.4s ease-in-out infinite;
        }
        .gift-float-btn:hover {
            animation-play-state: paused;
            transform: scale(1.05);
        }
        @keyframes winnerPop {
            0% { transform: scale(0.85); opacity: 0; }
            60% { transform: scale(1.04); opacity: 1; }
            100% { transform: scale(1); opacity: 1; }
        }
        .winner-pop { animation: winnerPop 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
        .modal-overlay {
            position: fixed; inset: 0;
            background: rgba(15, 23, 42, 0.6);
            backdrop-filter: blur(4px);
            z-index: 60;
            display: flex; align-items: center; justify-content: center;
            padding: 1rem;
        }
        .editorial-card {
            background-color: var(--boo-card-bg);
            border-radius: 1.35rem;
            border: 1px solid var(--boo-card-border);
            transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
            overflow: hidden;
        }
        .editorial-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 30px -12px rgba(15, 23, 42, 0.12);
        }
        .custom-frame {
            background-color: var(--boo-card-bg) !important;
            border-color: var(--boo-card-border) !important;
            background-size: cover;
            background-position: center;
        }
        .pastel-hero {
            background:
                radial-gradient(circle at 12% 20%, rgba(255, 158, 187, 0.30) 0%, transparent 48%),
                radial-gradient(circle at 88% 80%, rgba(162, 210, 255, 0.38) 0%, transparent 52%),
                linear-gradient(135deg, var(--boo-card-bg) 0%, var(--boo-bg) 100%);
            background-size: cover;
            background-position: center;
        }
        ::-webkit-scrollbar { width: 7px; height: 7px; }
        ::-webkit-scrollbar-track { background: #F1F5F9; }
        ::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 9999px; }
        ::-webkit-scrollbar-thumb:hover { background: #94A3B8; }
html, body { max-width: 100%; overflow-x: hidden; }
        @media (max-width: 1024px) {
            body { background-attachment: scroll !important; }
        }
        .modal-overlay {
            padding: 0.65rem;
        }
        @media (min-width: 640px) {
            .modal-overlay { padding: 1rem; }
        }
        .modal-overlay > div {
            max-height: 90dvh;
            max-width: 100%;
        }
        /* Khung ảnh hài hòa: ảnh ngang/dọc/to/nhỏ đều hiện trọn 100% không cắt góc */
        .cb-img-box {
            background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }
        .cb-img-fit {
            width: 100%;
            height: 100%;
            object-fit: contain;
            object-position: center;
        }

        /* =================================================================
           KEEP SILENT EDITORIAL PRODUCT SHOWCASE (3-TIER BODY)
           ================================================================= */
        .ks-strip {
            display: flex;
            gap: 14px;
            overflow-x: auto;
            scroll-snap-type: x proximity;
            scroll-behavior: smooth;
            -ms-overflow-style: none;
            scrollbar-width: none;
            padding-bottom: 6px;
        }
        .ks-strip::-webkit-scrollbar { display: none; }
        .ks-strip-item {
            flex: 0 0 calc(50% - 10px);
            min-width: 155px;
            scroll-snap-align: start;
        }
        @media (min-width: 640px) {
            .ks-strip { gap: 18px; }
            .ks-strip-item { flex: 0 0 calc(33.333% - 16px); }
        }
        @media (min-width: 1024px) {
            .ks-strip { gap: 20px; }
            .ks-strip-item { flex: 0 0 calc(23.2% - 14px); } /* 4 cards + peek 5th card */
        }
        .ks-card {
            display: flex;
            flex-direction: column;
            min-width: 0;
            background: transparent;
        }
        .ks-img-wrap {
            position: relative;
            aspect-ratio: 3 / 4;
            width: 100%;
            background-color: #EFEFEF;
            overflow: hidden;
            cursor: pointer;
        }
        .ks-img-primary,
        .ks-img-secondary {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            transition: opacity 0.35s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .ks-img-secondary {
            opacity: 0;
        }
        .ks-card:hover .ks-img-primary.has-alt {
            opacity: 0;
        }
        .ks-card:hover .ks-img-secondary {
            opacity: 1;
            transform: scale(1.03);
        }
        .ks-card:hover .ks-img-primary:not(.has-alt) {
            transform: scale(1.035);
        }
        .ks-soldout-overlay {
            position: absolute;
            inset: 0;
            background: rgba(15, 23, 42, 0.32);
            display: flex;
            align-items: center;
            justify-content: center;
            pointer-events: none;
            z-index: 3;
        }
        .ks-soldout-text {
            color: #FFFFFF;
            font-family: 'Quicksand', cursive, sans-serif;
            font-weight: 900;
            font-size: clamp(1rem, 2.2vw, 1.45rem);
            letter-spacing: 0.14em;
            text-transform: uppercase;
            transform: rotate(-4deg);
            text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
        }
        .ks-progress-track {
            width: 100%;
            height: 2px;
            background-color: #E2E8F0;
            position: relative;
            overflow: hidden;
            margin-top: 12px;
        }
        .ks-progress-fill {
            height: 100%;
            background-color: #0F172A;
            transition: width 0.2s ease, transform 0.2s ease;
            min-width: 18%;
        }
        .ks-nav-btn {
            width: 34px;
            height: 34px;
            border-radius: 9999px;
            background: rgba(255, 255, 255, 0.92);
            border: 1px solid #CBD5E1;
            color: #0F172A;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            transition: all 0.2s ease;
            cursor: pointer;
        }
        .ks-nav-btn:hover {
            background: #0F172A;
            color: #FFFFFF;
            border-color: #0F172A;
        }

        /* CloudBoo Smart Chatbox Typing Dots & Chips */
        @keyframes cbBounceDot {
            0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
            40% { transform: translateY(-4px); opacity: 1; }
        }
        .cb-typing-dot {
            width: 6px;
            height: 6px;
            border-radius: 9999px;
            background: #64748B;
            display: inline-block;
            animation: cbBounceDot 1.1s infinite ease-in-out;
        }
        .cb-typing-dot:nth-child(2) { animation-delay: 0.16s; }
        .cb-typing-dot:nth-child(3) { animation-delay: 0.32s; }
        .cb-chips-scroll {
            display: flex;
            gap: 6px;
            overflow-x: auto;
            -ms-overflow-style: none;
            scrollbar-width: none;
            padding-bottom: 2px;
        }
        .cb-chips-scroll::-webkit-scrollbar { display: none; }

        /* Draggable Chatbox along all 4 viewport edges */
        .cb-chat-float-wrap {
            position: fixed;
            z-index: 50;
            will-change: left, top;
        }
        .cb-chat-float-wrap.is-snapping {
            transition: left 0.28s cubic-bezier(0.22, 1, 0.36, 1), top 0.28s cubic-bezier(0.22, 1, 0.36, 1);
        }
        .cb-chat-drag-handle {
            touch-action: none;
            user-select: none;
            -webkit-user-select: none;
            cursor: grab;
        }
        .cb-chat-drag-handle:active {
            cursor: grabbing;
        }
/* === UX UPGRADE: THU GỌN KHUNG POPUP & TỐI ƯU MOBILE === */
.modal-overlay {
    padding: 0.9rem !important;
}
.modal-overlay > div {
    max-height: 82dvh !important;
    max-width: min(92vw, 40rem) !important;
    border-radius: 1.5rem !important;
}
/* Riêng khung Thêm/Sửa SP rộng vừa đủ trên máy tính nhưng vẫn gọn trên ĐT */
.modal-overlay > div[data-scroll-key="editProdModalScroll"] {
    max-width: min(94vw, 48rem) !important;
    max-height: 84dvh !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
}
/* Thu gọn phần banner đầu trong khung Giveaway cho dễ nhìn trên ĐT */
div[data-scroll-key="giveawayModalScroll"] {
    max-width: min(92vw, 34rem) !important;
    max-height: 80dvh !important;
}
div[data-scroll-key="giveawayModalScroll"] > div:first-child {
    padding: 1rem 1.15rem !important;
}
div[data-scroll-key="giveawayModalScroll"] .aspect-square {
    max-width: 110px;
    margin: 0 auto;
}
@media (min-width: 640px) {
    .modal-overlay > div {
        max-height: 84vh !important;
    }
    div[data-scroll-key="giveawayModalScroll"] .aspect-square {
        max-width: 145px;
    }
}
/* Thanh footer dính đáy modal tránh bị badge Netlify đè góc dưới */
.ep-sticky-footer {
    position: sticky;
    bottom: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-top: 1px solid #E2E8F0;
    padding: 0.75rem 1rem calc(0.95rem + env(safe-area-inset-bottom, 0px)) 1rem;
}
/* === VIDEO CHECK WATERMARK ("CloudBoo") === */
.cb-wm-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    overflow: hidden;
    z-index: 15;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    align-items: center;
    justify-items: center;
}
.cb-wm-text {
    font-family: 'Fredoka', 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(1rem, 4vw, 1.55rem);
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.44);
    text-shadow: 0 1px 6px rgba(15, 23, 42, 0.55);
    transform: rotate(-22deg);
    white-space: nowrap;
}