/*
 * IJO Coffee — сезонна тема.
 * Класична тема не змінюється: усі правила активуються лише на body.theme-christmas.
 * Святкові ефекти не перехоплюють кліки та не змінюють логіку сайту.
 */

body.theme-christmas {
    --espresso: #17352d;
    --cream: #f7f2e8;
    --gold: #d6b36a;
    --dark-gold: #9a7130;
    --white: #fffdf8;
    --accent-red: #a52c35;
    --light-bg: #f3eee4;

    position: relative;
    isolation: isolate;
    background-color: var(--cream) !important;
    color: #24352e;

    background-image:
            radial-gradient(circle at 8% 12%, rgba(214,179,106,.13) 0 2px, transparent 3px),
            radial-gradient(circle at 92% 18%, rgba(165,44,53,.08) 0 2px, transparent 3px),
            radial-gradient(circle at 18% 82%, rgba(23,53,45,.06) 0 2px, transparent 3px),
            linear-gradient(135deg, #f7f2e8, #f1eadc) !important;
    background-attachment: fixed;
}

/* Шапка, навігація та нижні панелі */
body.theme-christmas .navbar,
body.theme-christmas nav.navbar,
body.theme-christmas footer,
body.theme-christmas .summary-box,
body.theme-christmas .summary-block {
    background-color: #17352d !important;
    color: #f5e8c9 !important;
    border-color: #c9a45a !important;
}

body.theme-christmas .navbar,
body.theme-christmas nav.navbar,
body.theme-christmas footer {
    border-bottom-color: #c9a45a !important;
    border-top-color: #c9a45a !important;
}

body.theme-christmas .navbar-brand,
body.theme-christmas .navbar a,
body.theme-christmas footer a,
body.theme-christmas .summary-box,
body.theme-christmas .summary-block {
    color: #f0d89f !important;
}

/* Поверхні сторінок і картки */
body.theme-christmas .details-container,
body.theme-christmas .checkout-block,
body.theme-christmas .cart-card,
body.theme-christmas .order-success-container,
body.theme-christmas .product-card,
body.theme-christmas .coffee-card,
body.theme-christmas .filter-card,
body.theme-christmas .modal-content {
    background-color: #fffdf8 !important;
    border-color: rgba(154,113,48,.30) !important;
    box-shadow: 0 8px 24px rgba(23,53,45,.08);
}

/* Акценти, ціни та декоративні розділювачі */
body.theme-christmas .page-title,
body.theme-christmas .product-info h1,
body.theme-christmas .block-header h4,
body.theme-christmas .coffee-details .coffee-name,
body.theme-christmas h1,
body.theme-christmas h2,
body.theme-christmas h3 {
    color: #17352d;
}

body.theme-christmas .brand-name,
body.theme-christmas .composition-header,
body.theme-christmas .description-title,
body.theme-christmas .info-label,
body.theme-christmas .coffee-details .brand-info,
body.theme-christmas .form-label {
    color: #946d2d !important;
}

body.theme-christmas .bean-group,
body.theme-christmas .block-header,
body.theme-christmas .description-wrapper {
    border-color: rgba(154,113,48,.28) !important;
}

/* Кнопки та вибрані елементи */
body.theme-christmas .btn-add-cart,
body.theme-christmas .btn-checkout,
body.theme-christmas .btn-confirm,
body.theme-christmas .delivery-type-btn.active,
body.theme-christmas .messenger-btn.active,
body.theme-christmas .source-btn.active,
body.theme-christmas .step-number {
    background: #a52c35 !important;
    color: #fff8e9 !important;
    border-color: #a52c35 !important;
}

body.theme-christmas .btn-add-cart:hover,
body.theme-christmas .btn-checkout:hover,
body.theme-christmas .btn-confirm:hover:not(:disabled) {
    background: #17352d !important;
    color: #f0d89f !important;
    border-color: #c9a45a !important;
}

body.theme-christmas .btn-return {
    background: #17352d !important;
    border-color: #c9a45a !important;
    color: #f0d89f !important;
}

body.theme-christmas .btn-return:hover {
    background: transparent !important;
    color: #17352d !important;
}

/* Поля, селекти та кнопки доставки */
body.theme-christmas .form-control,
body.theme-christmas input,
body.theme-christmas select,
body.theme-christmas textarea,
body.theme-christmas .select2-container--default .select2-selection--single,
body.theme-christmas .delivery-type-btn,
body.theme-christmas .messenger-btn,
body.theme-christmas .source-btn {
    background-color: #fbf7ee !important;
    border-color: rgba(154,113,48,.35) !important;
    color: #24352e !important;
}

body.theme-christmas .delivery-type-btn.active,
body.theme-christmas .messenger-btn.active,
body.theme-christmas .source-btn.active {
    background: #a52c35 !important;
    color: #fff8e9 !important;
}

/* Кошик, бейджі та іконки */
body.theme-christmas .cart-card {
    border-left-color: #a52c35 !important;
}

body.theme-christmas .cart-badge {
    background: #a52c35 !important;
    border-color: #17352d !important;
}

body.theme-christmas .success-icon,
body.theme-christmas .corner {
    color: #a52c35 !important;
    border-color: #c9a45a !important;
}

body.theme-christmas .order-number-box {
    background: #f3eee4 !important;
    border-left-color: #a52c35 !important;
}

/* Святкові акценти карток і посилань */
body.theme-christmas .cart-card,
body.theme-christmas .checkout-block,
body.theme-christmas .details-container,
body.theme-christmas .order-success-container {
    border-radius: 8px;
}

body.theme-christmas a:not(.btn):not(.navbar-brand):not(.btn-return) {
    text-decoration-color: rgba(165,44,53,.45);
}

/* Ціни */
body.theme-christmas .price,
body.theme-christmas .price-tag,
body.theme-christmas .total-amount {
    color: #a52c35 !important;
}

/* =========================================
   CHRISTMAS ATMOSPHERE
========================================= */

/* Верхня гірлянда — фіксована, не займає місце в макеті */


/* Сніг на всьому екрані */
body.theme-christmas::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: .48;
    background-image:
            radial-gradient(3px 3px at 20px 30px, rgba(255,255,255,.95) 98%, transparent),
            radial-gradient(2px 2px at 90px 120px, rgba(255,255,255,.9) 98%, transparent),
            radial-gradient(3px 3px at 160px 70px, rgba(255,255,255,.9) 98%, transparent),
            radial-gradient(2px 2px at 230px 180px, rgba(255,255,255,.95) 98%, transparent),
            radial-gradient(3px 3px at 310px 45px, rgba(255,255,255,.85) 98%, transparent),
            radial-gradient(2px 2px at 380px 145px, rgba(255,255,255,.9) 98%, transparent);
    background-size: 420px 240px;
    animation: christmas-snow 16s linear infinite;
}

@keyframes christmas-snow {
    from {
        background-position: 0 -240px;
    }
    to {
        background-position: 120px 100vh;
    }
}

@keyframes christmas-lights {
    from {
        opacity: .58;
        filter: brightness(.9);
    }
    to {
        opacity: 1;
        filter: brightness(1.25);
    }
}

/* Декор під основними елементами: сніг не блокує кнопки та посилання */
body.theme-christmas .page-title::after {
    content: "✦  ❄  ✦";
    display: block;
    color: #a52c35;
    font-size: 20px;
    margin-top: 10px;
}

/* Золотисте підсвічування кнопок */
body.theme-christmas .btn-add-cart,
body.theme-christmas .btn-checkout,
body.theme-christmas .btn-confirm {
    box-shadow: 0 4px 14px rgba(165,44,53,.20);
    transition: background-color .3s ease, color .3s ease,
    border-color .3s ease, box-shadow .3s ease,
    transform .3s ease;
}

body.theme-christmas .btn-add-cart:hover,
body.theme-christmas .btn-checkout:hover,
body.theme-christmas .btn-confirm:hover:not(:disabled) {
    box-shadow: 0 0 20px rgba(214,179,106,.58);
    transform: translateY(-2px);
}

/* Золота рамка навколо основних блоків */
body.theme-christmas .cart-card,
body.theme-christmas .checkout-block,
body.theme-christmas .details-container {
    box-shadow:
            0 8px 24px rgba(23,53,45,.08),
            0 0 0 1px rgba(214,179,106,.12);
}

/* Доступність: поважаємо налаштування зменшення руху */
@media (prefers-reduced-motion: reduce) {
    body.theme-christmas::before,
    body.theme-christmas::after {
        animation: none !important;
    }

    body.theme-christmas .btn-add-cart,
    body.theme-christmas .btn-checkout,
    body.theme-christmas .btn-confirm {
        transition: none !important;
    }
}


/* =========================================
   CHRISTMAS CATALOG — PRODUCT CARDS & BACKGROUND
   Селектори взяті з актуального catalog.html:
   .coffee-card-animated, .card, .card-img-container,
   .card-img-top, .card-body, .card-title-main,
   .composition-tag, .bean-rating, .weight-badge, .btn-coffee
========================================= */

/* Глибший святковий фон каталогу */
body.theme-christmas {
    background-color: #f4eee2 !important;
    background-image:
            radial-gradient(ellipse at 5% 5%, rgba(23,53,45,.17), transparent 34%),
            radial-gradient(ellipse at 96% 12%, rgba(165,44,53,.12), transparent 30%),
            radial-gradient(ellipse at 50% 100%, rgba(214,179,106,.18), transparent 42%),
            radial-gradient(circle at 12% 32%, rgba(214,179,106,.18) 0 1px, transparent 3px),
            radial-gradient(circle at 83% 62%, rgba(255,255,255,.9) 0 2px, transparent 4px),
            linear-gradient(145deg, #f8f3e9 0%, #eee5d5 52%, #f8f1e5 100%) !important;
    background-attachment: fixed;
}

/* Декоративна тонка рамка каталогу */
body.theme-christmas #coffee-container {
    position: relative;
}

/* Самі картки — кремова поверхня, зелена рамка та святкова тінь */
body.theme-christmas #coffee-container .coffee-card-animated > .card,
body.theme-christmas .coffee-card-animated > .card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #fffdf8 0%, #f8f2e7 100%) !important;
    border: 1px solid rgba(183,145,75,.58) !important;
    border-radius: 13px !important;
    box-shadow:
            0 10px 28px rgba(23,53,45,.12),
            0 2px 5px rgba(23,53,45,.06),
            inset 0 0 0 3px rgba(255,255,255,.55) !important;
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

/* Золота верхня лінія */
body.theme-christmas #coffee-container .coffee-card-animated > .card::before,
body.theme-christmas .coffee-card-animated > .card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d6b36a, #a52c35, #d6b36a, transparent);
    z-index: 3;
    pointer-events: none;
}

/* Підйом картки при наведенні */
body.theme-christmas #coffee-container .coffee-card-animated > .card:hover,
body.theme-christmas .coffee-card-animated > .card:hover {
    transform: translateY(-7px);
    border-color: #c9a45a !important;
    box-shadow:
            0 18px 38px rgba(23,53,45,.19),
            0 0 0 2px rgba(214,179,106,.16) !important;
}

/* Фон фотографії — темна ялинкова зелень з м'яким золотим сяйвом */
body.theme-christmas .card-img-container {
    position: relative;
    overflow: hidden;
    padding: 24px 18px !important;
    background:
            radial-gradient(circle at 50% 45%, rgba(255,255,255,.98), rgba(255,253,248,.92) 43%, transparent 72%),
            linear-gradient(145deg, #e9e2d4, #f8f4eb) !important;
    border-bottom: 1px solid rgba(183,145,75,.28);
}

/* Легка декоративна рамка фото */
body.theme-christmas .card-img-container::after {
    content: "✦";
    position: absolute;
    right: 13px;
    top: 10px;
    color: rgba(165,44,53,.72);
    font-size: 17px;
    text-shadow: 0 1px 5px rgba(214,179,106,.45);
    pointer-events: none;
}

/* Фото товару — без обрізання */
body.theme-christmas .card-img-top {
    position: relative;
    z-index: 1;
    max-height: 190px;
    filter: drop-shadow(0 8px 8px rgba(35,28,20,.13));
    transition: transform .4s ease, filter .4s ease;
}

body.theme-christmas .card:hover .card-img-top {
    transform: scale(1.045);
    filter: drop-shadow(0 11px 10px rgba(35,28,20,.18));
}

/* Текстова частина картки */
body.theme-christmas #coffee-container .card-body {
    padding: 20px 17px 18px !important;
    background: linear-gradient(180deg, rgba(255,253,248,.98), #f8f2e7) !important;
}

/* Бренд */
body.theme-christmas #coffee-container .card-body h6.text-muted {
    color: #8b754e !important;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: 1.8px;
}

/* Назва */
body.theme-christmas .card-title-main {
    color: #17352d !important;
    font-family: 'Playfair Display', serif;
    font-size: 1.22rem;
    line-height: 1.35;
    margin-bottom: 10px !important;
}

/* Вага */
body.theme-christmas .weight-badge {
    color: #8f6b2e !important;
    border: 1px solid rgba(183,145,75,.75) !important;
    background: rgba(214,179,106,.12) !important;
    border-radius: 4px;
    padding: 3px 7px;
    font-size: .72rem;
}

/* Склад кави */
body.theme-christmas .composition-tag {
    color: #9b7134 !important;
    letter-spacing: 1.1px;
    font-size: .7rem;
}

/* Характеристики — компактні святкові плашки */
body.theme-christmas .bean-rating {
    gap: 6px;
    margin-bottom: 7px;
}

body.theme-christmas .bean-label {
    color: #52665b !important;
}

body.theme-christmas .info-value {
    color: #263d32 !important;
    font-weight: 600;
}

body.theme-christmas .bean-icon {
    color: #b18a42 !important;
}

body.theme-christmas .bean-icon.inactive {
    color: #d9d0bf !important;
}

/* Система капсул та інші мітки */
body.theme-christmas .card .weight-badge[style],
body.theme-christmas .card .composition-tag {
    border-color: rgba(183,145,75,.65);
}

/* TOP та Акція — святкові, але читабельні */
body.theme-christmas .badge-ijo-hit .badge-inner {
    background: linear-gradient(135deg, #17352d, #285343) !important;
    color: #f4d58e !important;
    border: 1px solid #d6b36a;
    box-shadow: 0 4px 12px rgba(23,53,45,.22);
}

body.theme-christmas .badge-ijo-promo .badge-inner {
    background: linear-gradient(135deg, #8f202b, #b83b43) !important;
    color: #fff8e9 !important;
    border: 1px solid #d6b36a;
    box-shadow: 0 4px 12px rgba(143,32,43,.2);
}

/* Кнопка кошика */
body.theme-christmas .btn-coffee {
    background: linear-gradient(135deg, #17352d, #214b3c) !important;
    color: #f2d99e !important;
    border: 1px solid #b99450 !important;
    border-radius: 5px !important;
    box-shadow: 0 4px 12px rgba(23,53,45,.16);
    letter-spacing: 1px;
}

body.theme-christmas .btn-coffee:hover {
    background: linear-gradient(135deg, #9d2632, #b63842) !important;
    color: #fff8e9 !important;
    border-color: #d6b36a !important;
    box-shadow: 0 6px 16px rgba(165,44,53,.22);
}

/* Фільтри та активні чипи */
body.theme-christmas .filter-chip {
    background: #fffaf0 !important;
    color: #294437 !important;
    border-color: #c9a45a !important;
}

body.theme-christmas .filter-chip a {
    color: #a52c35 !important;
}

/* Пагінація */
body.theme-christmas .pagination a {
    background: #fffaf0;
    color: #17352d !important;
    border-color: #c9a45a !important;
    border-radius: 4px;
}

body.theme-christmas .pagination a.active {
    background: #17352d !important;
    color: #f2d99e !important;
    border-color: #d6b36a !important;
}

/* Мобільний вигляд — не змінюємо сітку Bootstrap */
@media (max-width: 767.98px) {
    body.theme-christmas .card-img-container {
        padding: 18px 12px !important;
    }

    body.theme-christmas .card-img-top {
        max-height: 165px;
    }

    body.theme-christmas #coffee-container .card-body {
        padding: 17px 12px !important;
    }
}



/* =========================================
   CHRISTMAS REFINEMENT — PREMIUM, LESS NOISY
   Overrides for the catalog screenshot:
   deeper forest background, calmer snow,
   compact cards and centered single result.
========================================= */

/* Замість майже білого поля — глибокий хвойний фон із м'яким світлом */
body.theme-christmas {
    background-color: #102b24 !important;
    background-image:
            radial-gradient(ellipse at 50% 0%, rgba(194,157,86,.17), transparent 38%),
            radial-gradient(ellipse at 0% 65%, rgba(39,91,69,.36), transparent 42%),
            radial-gradient(ellipse at 100% 80%, rgba(105,34,43,.20), transparent 38%),
            linear-gradient(145deg, #102b24 0%, #173b30 48%, #102820 100%) !important;
    background-attachment: fixed;
}

/* Сніг робимо значно делікатнішим, щоб не виглядав як білий шум */
body.theme-christmas::after {
    opacity: .20 !important;
    background-image:
            radial-gradient(2px 2px at 35px 55px, rgba(255,255,255,.95) 98%, transparent),
            radial-gradient(1.5px 1.5px at 145px 135px, rgba(255,255,255,.85) 98%, transparent),
            radial-gradient(2px 2px at 265px 35px, rgba(255,255,255,.9) 98%, transparent),
            radial-gradient(1.5px 1.5px at 355px 185px, rgba(255,255,255,.8) 98%, transparent);
    background-size: 480px 280px;
}

/* Прибираємо зірочку з кожної картки — залишаємо чисту композицію */
body.theme-christmas .card-img-container::after {
    content: none !important;
}

/* Світла картка має контрастно виділятися на темному фоні */
body.theme-christmas #coffee-container .coffee-card-animated > .card,
body.theme-christmas .coffee-card-animated > .card {
    background: #fbf7ed !important;
    border: 1px solid rgba(214,179,106,.72) !important;
    border-radius: 10px !important;
    box-shadow:
            0 18px 42px rgba(0,0,0,.24),
            0 2px 8px rgba(0,0,0,.12) !important;
}

/* Фото — більша чиста зона, без зайвих ефектів */
body.theme-christmas .card-img-container {
    background: linear-gradient(145deg, #f3ecde, #fffdf7 65%, #eee3d0) !important;
    border-bottom: 1px solid rgba(154,113,48,.24) !important;
    padding: 22px 18px !important;
}

body.theme-christmas .card-img-top {
    max-height: 170px !important;
    filter: drop-shadow(0 7px 9px rgba(31,35,27,.14));
}

/* Компактніша текстова частина: прибираємо відчуття порожньої високої картки */
body.theme-christmas #coffee-container .card-body {
    padding: 16px 17px 15px !important;
    background: #fbf7ed !important;
}

body.theme-christmas #coffee-container .card-body .mb-4 {
    margin-bottom: 14px !important;
}

body.theme-christmas .card-title-main {
    font-size: 1.16rem !important;
    margin-bottom: 7px !important;
}

body.theme-christmas .composition-tag {
    min-height: 0 !important;
    margin-bottom: 10px !important;
}

/* Характеристики акуратніші та контрастніші */
body.theme-christmas .bean-rating {
    margin-bottom: 5px !important;
}

body.theme-christmas .bean-label {
    color: #6c756b !important;
    font-size: .59rem !important;
}

body.theme-christmas .info-value {
    color: #17352d !important;
    font-size: .86rem;
}

/* Кнопка — чистий хвойний колір із золотим текстом */
body.theme-christmas .btn-coffee {
    background: #173b30 !important;
    color: #f0d89f !important;
    border: 1px solid #b99450 !important;
    border-radius: 3px !important;
    box-shadow: none !important;
    font-weight: 700;
}

body.theme-christmas .btn-coffee:hover {
    background: #8f2632 !important;
    color: #fffaf0 !important;
}

/* Якщо в каталозі лише один товар — показуємо його по центру,
   не залишаючи картку притиснутою до лівого краю */
@supports selector(#coffee-container:has(> .coffee-card-animated:only-child)) {
    body.theme-christmas #coffee-container:has(> .coffee-card-animated:only-child) {
        justify-content: center;
    }

    body.theme-christmas #coffee-container > .coffee-card-animated:only-child {
        flex: 0 0 100%;
        max-width: 390px;
    }
}

/* Заголовки на темному фоні */
body.theme-christmas .page-title,
body.theme-christmas .section-title,
body.theme-christmas #coffee-container ~ h1,
body.theme-christmas #coffee-container ~ h2 {
    color: #f3e7c9 !important;
}

/* Фільтри та інформаційні блоки залишаються світлими */
body.theme-christmas .filter-card,
body.theme-christmas .filter-chip,
body.theme-christmas .filter-panel {
    background-color: #fbf7ed !important;
    color: #17352d !important;
    border-color: rgba(214,179,106,.48) !important;
}

@media (max-width: 767.98px) {
    body.theme-christmas #coffee-container > .coffee-card-animated {
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    body.theme-christmas .card-img-top {
        max-height: 155px !important;
    }
}



/* =========================================================
   IJO COFFEE — НОВОРІЧНА ШАПКА ТА КОЛЬОРОВА ГІРЛЯНДА
   Працює лише в CHRISTMAS-темі.
========================================================= */

body.theme-christmas .navbar,
body.theme-christmas nav.navbar {
    position: relative;
    isolation: isolate;
    overflow: visible !important;
    background-color: #173b30 !important;
    background-image: none !important;
}

/* Провід та кольорові лампочки */
body.theme-christmas .navbar::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 0;
    right: 0;
    height: 15px;
    z-index: 20;
    pointer-events: none;
    background:
            linear-gradient(180deg, transparent 0 5px, rgba(25,25,20,.85) 5px 6px, transparent 6px),
            radial-gradient(ellipse 4px 6px at 2.5% 9px, #ff5252 0 65%, transparent 78%),
            radial-gradient(ellipse 4px 6px at 8.5% 9px, #ffd34e 0 65%, transparent 78%),
            radial-gradient(ellipse 4px 6px at 14.5% 9px, #54dc91 0 65%, transparent 78%),
            radial-gradient(ellipse 4px 6px at 20.5% 9px, #54bfff 0 65%, transparent 78%),
            radial-gradient(ellipse 4px 6px at 26.5% 9px, #ff70a6 0 65%, transparent 78%),
            radial-gradient(ellipse 4px 6px at 32.5% 9px, #ffd34e 0 65%, transparent 78%),
            radial-gradient(ellipse 4px 6px at 38.5% 9px, #ff5252 0 65%, transparent 78%),
            radial-gradient(ellipse 4px 6px at 44.5% 9px, #54dc91 0 65%, transparent 78%),
            radial-gradient(ellipse 4px 6px at 50.5% 9px, #54bfff 0 65%, transparent 78%),
            radial-gradient(ellipse 4px 6px at 56.5% 9px, #ffd34e 0 65%, transparent 78%),
            radial-gradient(ellipse 4px 6px at 62.5% 9px, #ff70a6 0 65%, transparent 78%),
            radial-gradient(ellipse 4px 6px at 68.5% 9px, #ff5252 0 65%, transparent 78%),
            radial-gradient(ellipse 4px 6px at 74.5% 9px, #54dc91 0 65%, transparent 78%),
            radial-gradient(ellipse 4px 6px at 80.5% 9px, #ffd34e 0 65%, transparent 78%),
            radial-gradient(ellipse 4px 6px at 86.5% 9px, #54bfff 0 65%, transparent 78%),
            radial-gradient(ellipse 4px 6px at 92.5% 9px, #ff70a6 0 65%, transparent 78%),
            radial-gradient(ellipse 4px 6px at 98% 9px, #ff5252 0 65%, transparent 78%);
    filter: drop-shadow(0 0 4px rgba(255,255,255,.35));
}

/* Мерехтіння лампочок */
body.theme-christmas .navbar::after {
    content: "";
    position: absolute;
    top: 5px;
    left: 0;
    right: 0;
    height: 15px;
    z-index: 21;
    pointer-events: none;
    background:
            radial-gradient(circle at 2.5% 9px, rgba(255,82,82,.5), transparent 11px),
            radial-gradient(circle at 8.5% 9px, rgba(255,211,78,.5), transparent 11px),
            radial-gradient(circle at 14.5% 9px, rgba(84,220,145,.5), transparent 11px),
            radial-gradient(circle at 20.5% 9px, rgba(84,191,255,.5), transparent 11px),
            radial-gradient(circle at 26.5% 9px, rgba(255,112,166,.5), transparent 11px),
            radial-gradient(circle at 32.5% 9px, rgba(255,211,78,.5), transparent 11px),
            radial-gradient(circle at 38.5% 9px, rgba(255,82,82,.5), transparent 11px),
            radial-gradient(circle at 44.5% 9px, rgba(84,220,145,.5), transparent 11px),
            radial-gradient(circle at 50.5% 9px, rgba(84,191,255,.5), transparent 11px),
            radial-gradient(circle at 56.5% 9px, rgba(255,211,78,.5), transparent 11px),
            radial-gradient(circle at 62.5% 9px, rgba(255,112,166,.5), transparent 11px),
            radial-gradient(circle at 68.5% 9px, rgba(255,82,82,.5), transparent 11px),
            radial-gradient(circle at 74.5% 9px, rgba(84,220,145,.5), transparent 11px),
            radial-gradient(circle at 80.5% 9px, rgba(255,211,78,.5), transparent 11px),
            radial-gradient(circle at 86.5% 9px, rgba(84,191,255,.5), transparent 11px),
            radial-gradient(circle at 92.5% 9px, rgba(255,112,166,.5), transparent 11px),
            radial-gradient(circle at 98% 9px, rgba(255,82,82,.5), transparent 11px);
    animation: christmas-garland-twinkle 2.8s ease-in-out infinite alternate;
}

@keyframes christmas-garland-twinkle {
    0%, 100% { opacity: .45; }
    50% { opacity: 1; }
}

/* Маленька шапочка Санти на логотипі */
body.theme-christmas .navbar-brand {
    position: relative;
    display: inline-flex;
    align-items: center;
    overflow: visible !important;
}

body.theme-christmas .navbar-brand::after {
    content: "";
    position: absolute;
    left: 7px;
    top: -9px;
    width: 25px;
    height: 19px;
    z-index: 30;
    pointer-events: none;
    transform: rotate(-13deg);
    background:
            radial-gradient(circle at 91% 10%, #fff 0 3px, #e9e4d9 3.5px, transparent 4px),
            linear-gradient(155deg, transparent 0 12%, #e83d43 14% 72%, #b91f2d 74% 100%);
    clip-path: polygon(0 100%, 12% 66%, 34% 31%, 66% 8%, 91% 0, 100% 12%, 87% 100%);
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.35));
}


@media (max-width: 767.98px) {
    body.theme-christmas .navbar::before,
    body.theme-christmas .navbar::after {
        top: 2px;
        height: 12px;
    }
    body.theme-christmas .navbar-brand::after {
        left: 5px;
        top: -7px;
        transform: scale(.85) rotate(-13deg);
        transform-origin: bottom left;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.theme-christmas .navbar::after {
        animation: none !important;
    }
}



/* =========================================================
   IJO COFFEE — CHRISTMAS HEADER REFINEMENT v7
   Більше повітря, окрема гірлянда з дротом і лампочками.
   Усі зміни активні тільки в різдвяній темі.
========================================================= */

/* 1. Даємо шапці простір: гірлянда не накладається на логотип і меню */
body.theme-christmas .navbar,
body.theme-christmas nav.navbar {
    box-sizing: border-box;
    min-height: 112px;
    padding-top: 38px !important;
    padding-bottom: 15px !important;
    padding-left: clamp(18px, 2.2vw, 42px) !important;
    padding-right: clamp(18px, 2.2vw, 42px) !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    column-gap: clamp(18px, 2.5vw, 44px);
    row-gap: 12px;
    flex-wrap: wrap;
    background: #173b30 !important;
    position: relative;
    isolation: isolate;
    overflow: visible !important;
    border-bottom: 2px solid #c6a35d !important;
}


body.theme-christmas .navbar-brand {
    display: inline-flex !important;
    align-items: center;
    position: relative;
    overflow: visible !important;
    margin-right: clamp(12px, 2vw, 32px) !important;
    padding-top: 2px;
}

/* 2. Реалістичніший провід: темний кабель із легкою дугою */
body.theme-christmas .navbar::before {
    content: "";
    position: absolute;
    z-index: 20;
    pointer-events: none;
    top: 3px;
    left: 0;
    right: 0;
    height: 34px;
    background:
        /* тонкий кабель із хвилею */
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='34' viewBox='0 0 320 34'%3E%3Cpath d='M0 5 Q40 19 80 7 T160 7 T240 7 T320 7' fill='none' stroke='%230b1712' stroke-width='2'/%3E%3Cpath d='M0 4 Q40 18 80 6 T160 6 T240 6 T320 6' fill='none' stroke='%23536a57' stroke-width='.8'/%3E%3C/svg%3E")
            center top / 320px 34px repeat-x;
    opacity: .95;
}

/* 3. Лампочки: цоколь, кольорова скляна колба та світіння */
body.theme-christmas .navbar::after {
    content: "";
    position: absolute;
    z-index: 21;
    pointer-events: none;
    top: 5px;
    left: 0;
    right: 0;
    height: 35px;
    background:
        /* червоні лампочки */
            radial-gradient(ellipse 2px 3px at 2.5% 9px, #d7d2b8 0 90%, transparent 100%),
            radial-gradient(ellipse 5px 7px at 2.5% 17px, #ff4b45 0 58%, #d51f29 72%, transparent 100%),
                /* золоті */
            radial-gradient(ellipse 2px 3px at 8.5% 9px, #d7d2b8 0 90%, transparent 100%),
            radial-gradient(ellipse 5px 7px at 8.5% 17px, #ffe16b 0 58%, #e7a927 72%, transparent 100%),
                /* зелені */
            radial-gradient(ellipse 2px 3px at 14.5% 9px, #d7d2b8 0 90%, transparent 100%),
            radial-gradient(ellipse 5px 7px at 14.5% 17px, #69f0a5 0 58%, #1baf68 72%, transparent 100%),
                /* сині */
            radial-gradient(ellipse 2px 3px at 20.5% 9px, #d7d2b8 0 90%, transparent 100%),
            radial-gradient(ellipse 5px 7px at 20.5% 17px, #69caff 0 58%, #2385d5 72%, transparent 100%),
                /* рожеві */
            radial-gradient(ellipse 2px 3px at 26.5% 9px, #d7d2b8 0 90%, transparent 100%),
            radial-gradient(ellipse 5px 7px at 26.5% 17px, #ff91c8 0 58%, #db4d96 72%, transparent 100%),
                /* повторення */
            radial-gradient(ellipse 2px 3px at 32.5% 9px, #d7d2b8 0 90%, transparent 100%),
            radial-gradient(ellipse 5px 7px at 32.5% 17px, #ffe16b 0 58%, #e7a927 72%, transparent 100%),
            radial-gradient(ellipse 2px 3px at 38.5% 9px, #d7d2b8 0 90%, transparent 100%),
            radial-gradient(ellipse 5px 7px at 38.5% 17px, #ff4b45 0 58%, #d51f29 72%, transparent 100%),
            radial-gradient(ellipse 2px 3px at 44.5% 9px, #d7d2b8 0 90%, transparent 100%),
            radial-gradient(ellipse 5px 7px at 44.5% 17px, #69f0a5 0 58%, #1baf68 72%, transparent 100%),
            radial-gradient(ellipse 2px 3px at 50.5% 9px, #d7d2b8 0 90%, transparent 100%),
            radial-gradient(ellipse 5px 7px at 50.5% 17px, #69caff 0 58%, #2385d5 72%, transparent 100%),
            radial-gradient(ellipse 2px 3px at 56.5% 9px, #d7d2b8 0 90%, transparent 100%),
            radial-gradient(ellipse 5px 7px at 56.5% 17px, #ffe16b 0 58%, #e7a927 72%, transparent 100%),
            radial-gradient(ellipse 2px 3px at 62.5% 9px, #d7d2b8 0 90%, transparent 100%),
            radial-gradient(ellipse 5px 7px at 62.5% 17px, #ff91c8 0 58%, #db4d96 72%, transparent 100%),
            radial-gradient(ellipse 2px 3px at 68.5% 9px, #d7d2b8 0 90%, transparent 100%),
            radial-gradient(ellipse 5px 7px at 68.5% 17px, #ff4b45 0 58%, #d51f29 72%, transparent 100%),
            radial-gradient(ellipse 2px 3px at 74.5% 9px, #d7d2b8 0 90%, transparent 100%),
            radial-gradient(ellipse 5px 7px at 74.5% 17px, #69f0a5 0 58%, #1baf68 72%, transparent 100%),
            radial-gradient(ellipse 2px 3px at 80.5% 9px, #d7d2b8 0 90%, transparent 100%),
            radial-gradient(ellipse 5px 7px at 80.5% 17px, #ffe16b 0 58%, #e7a927 72%, transparent 100%),
            radial-gradient(ellipse 2px 3px at 86.5% 9px, #d7d2b8 0 90%, transparent 100%),
            radial-gradient(ellipse 5px 7px at 86.5% 17px, #69caff 0 58%, #2385d5 72%, transparent 100%),
            radial-gradient(ellipse 2px 3px at 92.5% 9px, #d7d2b8 0 90%, transparent 100%),
            radial-gradient(ellipse 5px 7px at 92.5% 17px, #ff91c8 0 58%, #db4d96 72%, transparent 100%),
            radial-gradient(ellipse 2px 3px at 98% 9px, #d7d2b8 0 90%, transparent 100%),
            radial-gradient(ellipse 5px 7px at 98% 17px, #ff4b45 0 58%, #d51f29 72%, transparent 100%);
    filter:
            drop-shadow(0 0 3px rgba(255,255,255,.28))
            drop-shadow(0 0 7px rgba(255,210,90,.18));
    animation: christmas-bulbs-glow 3.2s ease-in-out infinite;
}

/* Не всі лампи спалахують одночасно — мерехтіння виглядає природніше */
@keyframes christmas-bulbs-glow {
    0%, 100% {
        opacity: .78;
        filter: brightness(.92) drop-shadow(0 0 2px rgba(255,255,255,.2));
    }
    22% {
        opacity: 1;
        filter: brightness(1.3) drop-shadow(0 0 7px rgba(255,255,255,.45));
    }
    48% {
        opacity: .82;
        filter: brightness(.98) drop-shadow(0 0 3px rgba(255,255,255,.25));
    }
    72% {
        opacity: 1;
        filter: brightness(1.22) drop-shadow(0 0 8px rgba(255,255,255,.4));
    }
}

/* 4. Шапка Санти — акуратно над символом листочка логотипа */
body.theme-christmas .navbar-brand::after {
    content: "";
    position: absolute;
    left: 9px;
    top: -13px;
    width: 29px;
    height: 23px;
    z-index: 40;
    pointer-events: none;
    transform: rotate(-16deg);
    background:
        /* помпон */
            radial-gradient(circle at 93% 10%, #fff 0 4px, #e8e3d8 4.5px, transparent 5px),
                /* червона тканина та біла опушка */
            linear-gradient(160deg,
            transparent 0 10%,
            #f34b4b 12% 65%,
            #c92131 68% 82%,
            #fff 84% 100%);
    clip-path: polygon(0 100%, 12% 67%, 35% 32%, 67% 9%, 91% 0, 100% 13%, 88% 100%);
    filter: drop-shadow(0 2px 2px rgba(0,0,0,.35));
}

/* 5. Логотип і меню мають власні зони, не притискаються до гірлянди */
body.theme-christmas .navbar-brand {
    margin-top: 3px !important;
    margin-bottom: 2px !important;
}

body.theme-christmas .navbar .navbar-nav,
body.theme-christmas .navbar .nav-link {
    margin-top: 3px;
}

body.theme-christmas .navbar input,
body.theme-christmas .navbar .form-control {
    min-height: 40px;
}

/* 6. Відступ між шапкою та каруселлю брендів */
body.theme-christmas .navbar + .brand-slider,
body.theme-christmas .navbar + .brands-slider,
body.theme-christmas nav.navbar + .brand-slider,
body.theme-christmas nav.navbar + .brands-slider {
    margin-top: 18px !important;
}

/* Мобільний вигляд: компактніша шапка, гірлянда залишається зверху */
@media (max-width: 767.98px) {
    body.theme-christmas .navbar,
    body.theme-christmas nav.navbar {
        min-height: 100px;
        padding-top: 34px !important;
        padding-bottom: 12px !important;
        column-gap: 12px;
    }

    body.theme-christmas .navbar::before,
    body.theme-christmas .navbar::after {
        top: 2px;
        height: 30px;
    }

    body.theme-christmas .navbar-brand::after {
        left: 7px;
        top: -11px;
        transform: scale(.9) rotate(-16deg);
        transform-origin: bottom left;
    }
}

/* Враховуємо системне налаштування зменшення анімації */
@media (prefers-reduced-motion: reduce) {
    body.theme-christmas .navbar::after {
        animation: none !important;
        opacity: 1;
    }
}



/* =========================================================
   CHRISTMAS SNOW — БІЛЬШЕ СНІЖИНОК
   Багатошаровий сніг різного розміру та швидкості.
========================================================= */

body.theme-christmas::after {
    opacity: .62 !important;
    background-image:
        /* великі ближні сніжинки */
            radial-gradient(4px 4px at 24px 35px, rgba(255,255,255,.98) 96%, transparent 100%),
            radial-gradient(3px 3px at 115px 105px, rgba(255,255,255,.95) 96%, transparent 100%),
            radial-gradient(4px 4px at 205px 55px, rgba(255,255,255,.96) 96%, transparent 100%),
            radial-gradient(3px 3px at 285px 165px, rgba(255,255,255,.92) 96%, transparent 100%),
            radial-gradient(4px 4px at 365px 85px, rgba(255,255,255,.98) 96%, transparent 100%),

                /* середні сніжинки */
            radial-gradient(2.5px 2.5px at 65px 145px, rgba(255,255,255,.88) 96%, transparent 100%),
            radial-gradient(2px 2px at 155px 205px, rgba(255,255,255,.9) 96%, transparent 100%),
            radial-gradient(2.5px 2.5px at 245px 125px, rgba(255,255,255,.9) 96%, transparent 100%),
            radial-gradient(2px 2px at 335px 225px, rgba(255,255,255,.88) 96%, transparent 100%),
            radial-gradient(2.5px 2.5px at 425px 155px, rgba(255,255,255,.92) 96%, transparent 100%),

                /* дрібний далекий сніг */
            radial-gradient(1.5px 1.5px at 45px 190px, rgba(255,255,255,.75) 96%, transparent 100%),
            radial-gradient(1.5px 1.5px at 135px 25px, rgba(255,255,255,.72) 96%, transparent 100%),
            radial-gradient(1.5px 1.5px at 225px 235px, rgba(255,255,255,.75) 96%, transparent 100%),
            radial-gradient(1.5px 1.5px at 315px 45px, rgba(255,255,255,.72) 96%, transparent 100%),
            radial-gradient(1.5px 1.5px at 405px 195px, rgba(255,255,255,.78) 96%, transparent 100%);
    background-size: 460px 270px;
    animation: christmas-snowfall-denser 13s linear infinite !important;
}

@keyframes christmas-snowfall-denser {
    from {
        background-position:
                0 -270px, 0 -270px, 0 -270px, 0 -270px, 0 -270px,
                0 -270px, 0 -270px, 0 -270px, 0 -270px, 0 -270px,
                0 -270px, 0 -270px, 0 -270px, 0 -270px, 0 -270px;
    }
    to {
        background-position:
                85px 100vh, -35px 100vh, 55px 100vh, -65px 100vh, 30px 100vh,
                -45px 100vh, 65px 100vh, -25px 100vh, 45px 100vh, -55px 100vh,
                25px 100vh, -70px 100vh, 60px 100vh, -20px 100vh, 40px 100vh;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.theme-christmas::after {
        animation: none !important;
    }
}



/* =========================================================
   GARLAND SEQUENCE — лампочки загоряються по черзі
   Статичні кольорові лампи + окремий рухомий ореол.
========================================================= */

/* Кольорові лампочки світяться постійно, не блимають усі разом */
body.theme-christmas .navbar::after {
    content: "";
    position: absolute;
    top: 5px;
    left: 0;
    right: 0;
    height: 35px;
    z-index: 21;
    pointer-events: none;

    background-image:
        /* рухомий ореол — він послідовно проходить уздовж гірлянди */
            radial-gradient(ellipse 13px 13px at center, rgba(255,255,220,.72) 0%, rgba(255,220,110,.36) 28%, transparent 75%),

                /* постійні кольорові лампочки */
            radial-gradient(ellipse 4px 6px at 2.5% 17px, #ff514b 0 62%, #c92330 78%, transparent 100%),
            radial-gradient(ellipse 4px 6px at 8.5% 17px, #ffe16b 0 62%, #d89a24 78%, transparent 100%),
            radial-gradient(ellipse 4px 6px at 14.5% 17px, #6cf0a4 0 62%, #15975a 78%, transparent 100%),
            radial-gradient(ellipse 4px 6px at 20.5% 17px, #6bcaff 0 62%, #267ab9 78%, transparent 100%),
            radial-gradient(ellipse 4px 6px at 26.5% 17px, #ff91c8 0 62%, #c84c8c 78%, transparent 100%),
            radial-gradient(ellipse 4px 6px at 32.5% 17px, #ffe16b 0 62%, #d89a24 78%, transparent 100%),
            radial-gradient(ellipse 4px 6px at 38.5% 17px, #ff514b 0 62%, #c92330 78%, transparent 100%),
            radial-gradient(ellipse 4px 6px at 44.5% 17px, #6cf0a4 0 62%, #15975a 78%, transparent 100%),
            radial-gradient(ellipse 4px 6px at 50.5% 17px, #6bcaff 0 62%, #267ab9 78%, transparent 100%),
            radial-gradient(ellipse 4px 6px at 56.5% 17px, #ffe16b 0 62%, #d89a24 78%, transparent 100%),
            radial-gradient(ellipse 4px 6px at 62.5% 17px, #ff91c8 0 62%, #c84c8c 78%, transparent 100%),
            radial-gradient(ellipse 4px 6px at 68.5% 17px, #ff514b 0 62%, #c92330 78%, transparent 100%),
            radial-gradient(ellipse 4px 6px at 74.5% 17px, #6cf0a4 0 62%, #15975a 78%, transparent 100%),
            radial-gradient(ellipse 4px 6px at 80.5% 17px, #ffe16b 0 62%, #d89a24 78%, transparent 100%),
            radial-gradient(ellipse 4px 6px at 86.5% 17px, #6bcaff 0 62%, #267ab9 78%, transparent 100%),
            radial-gradient(ellipse 4px 6px at 92.5% 17px, #ff91c8 0 62%, #c84c8c 78%, transparent 100%),
            radial-gradient(ellipse 4px 6px at 98% 17px, #ff514b 0 62%, #c92330 78%, transparent 100%);

    background-repeat: no-repeat;
    background-size:
            70px 35px,
            100% 35px, 100% 35px, 100% 35px, 100% 35px, 100% 35px,
            100% 35px, 100% 35px, 100% 35px, 100% 35px, 100% 35px,
            100% 35px, 100% 35px, 100% 35px, 100% 35px, 100% 35px,
            100% 35px, 100% 35px;

    background-position:
            0 0,
            0 0, 0 0, 0 0, 0 0, 0 0,
            0 0, 0 0, 0 0, 0 0, 0 0,
            0 0, 0 0, 0 0, 0 0, 0 0,
            0 0, 0 0;

    filter: drop-shadow(0 0 2px rgba(255,255,255,.25));
    animation: christmas-light-chase 5.1s linear infinite;
}

/* Один ореол проходить від лампочки до лампочки */
@keyframes christmas-light-chase {
    0%   { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
    100% { background-position: calc(100% - 70px) 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
}

@media (prefers-reduced-motion: reduce) {
    body.theme-christmas .navbar::after {
        animation: none !important;
    }
}



/* =========================================================
   FIX HEADER — прибрати дубль логотипа та виправити гірлянду
========================================================= */

/* Не перетворюємо nav на новий flex-макет: зберігаємо Bootstrap layout */
body.theme-christmas .navbar,
body.theme-christmas nav.navbar {
    display: flex !important;
    min-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    column-gap: normal !important;
    row-gap: normal !important;
    flex-wrap: nowrap !important;
    justify-content: initial !important;
    align-items: stretch !important;
}

/* Не перевизначаємо display у .navbar-brand — Bootstrap має сховати mobile-логотип */
body.theme-christmas .navbar-brand {
    display: revert !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-right: initial !important;
}

/* Шапочку показуємо тільки на desktop-логотипі, не на прихованій mobile-копії */
body.theme-christmas .navbar-brand.d-none.d-lg-inline-block::after {
    content: "";
    position: absolute;
    left: 9px;
    top: -13px;
    width: 29px;
    height: 23px;
    z-index: 40;
    pointer-events: none;
    transform: rotate(-16deg);
    background:
            radial-gradient(circle at 93% 10%, #fff 0 4px, #e8e3d8 4.5px, transparent 5px),
            linear-gradient(160deg, transparent 0 10%, #f34b4b 12% 65%, #c92131 68% 82%, #fff 84% 100%);
    clip-path: polygon(0 100%, 12% 67%, 35% 32%, 67% 9%, 91% 0, 100% 13%, 88% 100%);
    filter: drop-shadow(0 2px 2px rgba(0,0,0,.35));
}

/* Відключаємо попереднє псевдооформлення, яке могло впливати на другий логотип */
body.theme-christmas .navbar-brand:not(.d-none.d-lg-inline-block)::after {
    content: none !important;
}

/* Гірлянда — статичні кольорові лампочки, а окремий світловий імпульс біжить по черзі */
body.theme-christmas .navbar::after {
    content: "";
    position: absolute;
    top: 5px;
    left: 0;
    right: 0;
    height: 35px;
    z-index: 50;
    pointer-events: none;

    /* Перша картинка — рухома пляма світла. Решта — лампочки */
    background-image:
            radial-gradient(ellipse 15px 13px at center, rgba(255,255,225,.95) 0%, rgba(255,220,110,.55) 28%, rgba(255,190,70,.16) 52%, transparent 76%),
            radial-gradient(ellipse 4px 6px at 2.5% 17px, #ff514b 0 62%, #c92330 78%, transparent 100%),
            radial-gradient(ellipse 4px 6px at 8.5% 17px, #ffe16b 0 62%, #d89a24 78%, transparent 100%),
            radial-gradient(ellipse 4px 6px at 14.5% 17px, #6cf0a4 0 62%, #15975a 78%, transparent 100%),
            radial-gradient(ellipse 4px 6px at 20.5% 17px, #6bcaff 0 62%, #267ab9 78%, transparent 100%),
            radial-gradient(ellipse 4px 6px at 26.5% 17px, #ff91c8 0 62%, #c84c8c 78%, transparent 100%),
            radial-gradient(ellipse 4px 6px at 32.5% 17px, #ffe16b 0 62%, #d89a24 78%, transparent 100%),
            radial-gradient(ellipse 4px 6px at 38.5% 17px, #ff514b 0 62%, #c92330 78%, transparent 100%),
            radial-gradient(ellipse 4px 6px at 44.5% 17px, #6cf0a4 0 62%, #15975a 78%, transparent 100%),
            radial-gradient(ellipse 4px 6px at 50.5% 17px, #6bcaff 0 62%, #267ab9 78%, transparent 100%),
            radial-gradient(ellipse 4px 6px at 56.5% 17px, #ffe16b 0 62%, #d89a24 78%, transparent 100%),
            radial-gradient(ellipse 4px 6px at 62.5% 17px, #ff91c8 0 62%, #c84c8c 78%, transparent 100%),
            radial-gradient(ellipse 4px 6px at 68.5% 17px, #ff514b 0 62%, #c92330 78%, transparent 100%),
            radial-gradient(ellipse 4px 6px at 74.5% 17px, #6cf0a4 0 62%, #15975a 78%, transparent 100%),
            radial-gradient(ellipse 4px 6px at 80.5% 17px, #ffe16b 0 62%, #d89a24 78%, transparent 100%),
            radial-gradient(ellipse 4px 6px at 86.5% 17px, #6bcaff 0 62%, #267ab9 78%, transparent 100%),
            radial-gradient(ellipse 4px 6px at 92.5% 17px, #ff91c8 0 62%, #c84c8c 78%, transparent 100%),
            radial-gradient(ellipse 4px 6px at 98% 17px, #ff514b 0 62%, #c92330 78%, transparent 100%);

    background-repeat: no-repeat;
    background-size:
            70px 35px,
            100% 35px, 100% 35px, 100% 35px, 100% 35px, 100% 35px,
            100% 35px, 100% 35px, 100% 35px, 100% 35px, 100% 35px,
            100% 35px, 100% 35px, 100% 35px, 100% 35px, 100% 35px,
            100% 35px, 100% 35px;
    background-position:
            0 0,
            0 0, 0 0, 0 0, 0 0, 0 0,
            0 0, 0 0, 0 0, 0 0, 0 0,
            0 0, 0 0, 0 0, 0 0, 0 0,
            0 0, 0 0;
    animation: christmas-light-chase-fixed 4.5s linear infinite !important;
}

/* Імпульс пробігає зліва направо, лампочки спалахують послідовно */
@keyframes christmas-light-chase-fixed {
    0%   { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
    100% { background-position: calc(100% - 70px) 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
}

@media (max-width: 991.98px) {
    body.theme-christmas .navbar-brand.d-none.d-lg-inline-block::after {
        content: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.theme-christmas .navbar::after {
        animation: none !important;
    }
}



/* =========================================================
   MOBILE NAV FIX — бокове меню не розтягує висоту navbar
   ========================================================= */

/* Позиціонуємо лише реальний контейнер шапки, а не всі її дочірні елементи. */
body.theme-christmas nav.navbar > .container-fluid {
    position: relative;
    z-index: 32;
    width: 100%;
    min-width: 0;
}

/* Бокове меню виносимо з потоку navbar: воно не повинно
   збільшувати висоту навігації на всю висоту мобільного екрана. */
body.theme-christmas nav.navbar > #mobileSideMenu {
    position: fixed !important;
    z-index: 1050 !important;
    flex: none !important;
    flex-shrink: 0 !important;
}

/* Декоративні псевдоелементи залишаються поверх фону,
   але не впливають на розміри навігації. */
body.theme-christmas nav.navbar {
    position: sticky;
    isolation: isolate;
}

@media (max-width: 991.98px) {
    body.theme-christmas nav.navbar {
        width: 100%;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        flex-wrap: nowrap !important;
    }

    body.theme-christmas nav.navbar > .container-fluid {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex: 1 1 auto !important;
    }
}



/* =========================================================
   FINAL NAVBAR REPAIR — uses the actual clientnavbar.html structure
   Desktop logo: .nav-left-zone > .d-none.d-lg-inline-block
   Mobile logo:  .nav-center-zone > .d-lg-none
========================================================= */

/* Never let the two responsive logo versions display together.
   The earlier generic .navbar-brand rule had overridden Bootstrap's d-none. */
@media (max-width: 991.98px) {
    body.theme-christmas nav.navbar .nav-left-zone > a.navbar-brand.d-none.d-lg-inline-block {
        display: none !important;
    }

    body.theme-christmas nav.navbar .nav-center-zone > a.navbar-brand.d-lg-none {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto !important;
        padding: 0 !important;
        white-space: nowrap !important;
        line-height: 1.1 !important;
    }

    body.theme-christmas nav.navbar .nav-center-zone > .navbar-collapse {
        display: none !important;
    }

    body.theme-christmas nav.navbar .nav-center-zone > .navbar-collapse.show {
        display: block !important;
        flex-basis: 100% !important;
        width: 100% !important;
    }

    body.theme-christmas nav.navbar > .container-fluid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        width: 100% !important;
        height: auto !important;
        min-height: 58px !important;
        padding: 31px 12px 8px !important;
        box-sizing: border-box !important;
    }

    body.theme-christmas nav.navbar .nav-left-zone {
        display: flex !important;
        flex: 0 0 auto !important;
        align-items: center !important;
        min-width: 0 !important;
    }

    body.theme-christmas nav.navbar .nav-left-zone > .navbar-toggler {
        display: inline-flex !important;
        align-items: center !important;
        margin: 0 !important;
    }

    body.theme-christmas nav.navbar .nav-center-zone {
        display: flex !important;
        flex: 1 1 auto !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    body.theme-christmas nav.navbar .nav-right-zone {
        display: flex !important;
        flex: 0 0 auto !important;
        align-items: center !important;
        margin: 0 !important;
    }

    /* Side drawer is outside the normal header flow */
    body.theme-christmas nav.navbar > #mobileSideMenu {
        position: fixed !important;
        inset: 0 auto 0 0 !important;
        height: 100dvh !important;
        z-index: 2000 !important;
        flex: none !important;
    }

    body.theme-christmas nav.navbar {
        display: block !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    body.theme-christmas nav.navbar::before,
    body.theme-christmas nav.navbar::after {
        top: 2px !important;
        height: 30px !important;
    }
}

/* Desktop: show only the desktop logo, keep the mobile copy hidden */
@media (min-width: 992px) {
    body.theme-christmas nav.navbar .nav-left-zone > a.navbar-brand.d-none.d-lg-inline-block {
        display: inline-flex !important;
        align-items: center !important;
    }

    body.theme-christmas nav.navbar .nav-center-zone > a.navbar-brand.d-lg-none {
        display: none !important;
    }
}

/* Put Santa hat only on the visible logo, not on the hidden duplicate */
body.theme-christmas nav.navbar .nav-left-zone > a.navbar-brand::after,
body.theme-christmas nav.navbar .nav-center-zone > a.navbar-brand::after {
    pointer-events: none;
}

@media (max-width: 991.98px) {
    body.theme-christmas nav.navbar .nav-left-zone > a.navbar-brand::after {
        content: none !important;
    }

    body.theme-christmas nav.navbar .nav-center-zone > a.navbar-brand::after {
        content: "";
    }
}



/* =========================================================
   HEADER LAYOUT — ГІРЛЯНДА ОКРЕМИМ ВЕРХНІМ РЯДКОМ
   1) Гірлянда зверху
   2) Повітряний відступ
   3) Один рядок: логотип / меню / пошук / кошик
========================================================= */

/* Navbar is the two-tier wrapper: top decoration + inner content row */
body.theme-christmas nav.navbar {
    position: relative !important;
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #173b30 !important;
}

/* The garland stays in its own top strip */
body.theme-christmas nav.navbar::before,
body.theme-christmas nav.navbar::after {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 30px !important;
}

/* Content row begins below the garland with clear breathing room */
body.theme-christmas nav.navbar > .container-fluid {
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 78px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 42px clamp(12px, 2vw, 30px) 12px !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: clamp(10px, 2vw, 28px) !important;
    position: relative !important;
    z-index: 32 !important;
}

/* Keep the three zones in one horizontal row */
body.theme-christmas nav.navbar .nav-left-zone,
body.theme-christmas nav.navbar .nav-center-zone,
body.theme-christmas nav.navbar .nav-right-zone {
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
    margin: 0 !important;
}

body.theme-christmas nav.navbar .nav-left-zone {
    flex: 0 0 auto !important;
    justify-content: flex-start !important;
}

body.theme-christmas nav.navbar .nav-center-zone {
    flex: 1 1 auto !important;
    justify-content: center !important;
}

body.theme-christmas nav.navbar .nav-right-zone {
    flex: 0 0 auto !important;
    justify-content: flex-end !important;
}

/* Desktop: menu remains in the middle row, no duplicate mobile logo */
@media (min-width: 992px) {
    body.theme-christmas nav.navbar .nav-left-zone > .navbar-brand.d-none.d-lg-inline-block {
        display: inline-flex !important;
        align-items: center !important;
    }

    body.theme-christmas nav.navbar .nav-center-zone > .navbar-brand.d-lg-none {
        display: none !important;
    }

    body.theme-christmas nav.navbar .nav-center-zone > .navbar-collapse {
        display: flex !important;
        flex: 0 1 auto !important;
        justify-content: center !important;
    }
}

/* Mobile: hamburger on left, one logo centered, cart on right */
@media (max-width: 991.98px) {
    body.theme-christmas nav.navbar > .container-fluid {
        min-height: 68px !important;
        padding: 42px 12px 10px !important;
        gap: 8px !important;
    }

    body.theme-christmas nav.navbar .nav-left-zone > .navbar-brand.d-none.d-lg-inline-block {
        display: none !important;
    }

    body.theme-christmas nav.navbar .nav-center-zone > .navbar-brand.d-lg-none {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        white-space: nowrap !important;
    }

    body.theme-christmas nav.navbar .nav-center-zone > .navbar-collapse {
        display: none !important;
    }

    body.theme-christmas nav.navbar .nav-center-zone > .navbar-collapse.show {
        display: block !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 12px !important;
        background: #173b30 !important;
    }

    body.theme-christmas nav.navbar .nav-left-zone {
        flex: 0 0 auto !important;
    }

    body.theme-christmas nav.navbar .nav-center-zone {
        flex: 1 1 auto !important;
        justify-content: center !important;
    }

    body.theme-christmas nav.navbar .nav-right-zone {
        flex: 0 0 auto !important;
    }

    body.theme-christmas nav.navbar > #mobileSideMenu {
        position: fixed !important;
        inset: 0 auto 0 0 !important;
        width: min(88vw, 360px) !important;
        height: 100dvh !important;
        z-index: 2000 !important;
        flex: none !important;
    }
}

/* The content row stays above the garland graphics, but does not overlap them */
body.theme-christmas nav.navbar > .container-fluid > * {
    position: relative !important;
    z-index: 33 !important;
}

/* Ensure no old pseudo-logo/extra mobile brand is injected */
body.theme-christmas nav.navbar .nav-left-zone > .navbar-brand::before,
body.theme-christmas nav.navbar .nav-center-zone > .navbar-brand::before {
    pointer-events: none;
}



/* =========================================================
   IJO COFFEE — SANTA HAT POSITION
   Шапочка в кінці напису, трохи накриває останні літери.
   Перекриває всі попередні експериментальні позиції шапки.
========================================================= */

/* Скасовуємо старі псевдоелементи шапочки на всіх варіантах логотипа */
body.theme-christmas nav.navbar .navbar-brand::after {
    content: none !important;
}

/* Одна шапочка — над правим краєм напису IJO COFFEE */
body.theme-christmas nav.navbar .nav-left-zone > .navbar-brand::after,
body.theme-christmas nav.navbar .nav-center-zone > .navbar-brand::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    left: auto !important;
    right: -3px !important;
    top: -17px !important;
    width: 43px !important;
    height: 36px !important;
    z-index: 60 !important;
    pointer-events: none !important;
    transform: rotate(13deg) !important;
    transform-origin: 50% 100% !important;

    /* Червона тканина, м'яка біла опушка та помпон */
    background:
            radial-gradient(circle at 91% 13%, #fff 0 4px, #eee9df 4.8px, rgba(220,215,205,.35) 5.8px, transparent 6.5px),
            radial-gradient(ellipse 19px 5px at 48% 77%, #fff 0 70%, #e8e3d9 82%, transparent 100%),
            linear-gradient(145deg,
            transparent 0 13%,
            #f45a58 15%,
            #e52f3b 48%,
            #c91f32 72%,
            #a91629 83%,
            transparent 85%);

    clip-path: polygon(
            2% 83%,
            12% 62%,
            27% 39%,
            46% 20%,
            68% 7%,
            86% 1%,
            96% 5%,
            91% 24%,
            83% 49%,
            94% 70%,
            84% 82%,
            65% 77%,
            45% 82%,
            25% 88%
    );

    filter:
            drop-shadow(0 2px 2px rgba(0,0,0,.35))
            drop-shadow(0 0 2px rgba(255,255,255,.15));
}

/* Трохи компактніше на мобільному, але все одно над останніми літерами */
@media (max-width: 991.98px) {
    body.theme-christmas nav.navbar .nav-left-zone > .navbar-brand::after {
        content: none !important;
    }

    body.theme-christmas nav.navbar .nav-center-zone > .navbar-brand::after {
        right: -2px !important;
        top: -14px !important;
        width: 37px !important;
        height: 31px !important;
        transform: rotate(13deg) !important;
    }
}




/* =========================================================
   IJO COFFEE — CHRISTMAS ENTRANCE / REALISTIC DOUBLE DOORS
   Усі ефекти активні лише коли адмінка встановила theme-christmas.
========================================================= */

.christmas-entry { display: none; }

body.theme-christmas .christmas-entry {
    --entry-duration: 7.2s;
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: block;
    overflow: hidden;
    isolation: isolate;
    perspective: 1800px;
    background:
            radial-gradient(ellipse at 50% 42%, rgba(245,190,103,.18), transparent 38%),
            linear-gradient(180deg, #08140f 0%, #14251d 62%, #080e0b 100%);
    pointer-events: auto;
    animation: christmas-entry-dismiss var(--entry-duration) ease-in-out forwards;
    animation-delay: .2s;
}

body.theme-christmas .christmas-entry__reveal {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: #f6e8c5;
    text-align: center;
    opacity: 0;
    transform: scale(.92);
    animation: christmas-entry-reveal 1.6s ease-out forwards;
    animation-delay: 3.6s;
}

body.theme-christmas .christmas-entry__eyebrow {
    margin-bottom: 18px;
    color: #d6b36a;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(.62rem, 1.4vw, .82rem);
    font-weight: 600;
    letter-spacing: .42em;
    text-transform: uppercase;
}

body.theme-christmas .christmas-entry__logo {
    color: #f7e7bd;
    font-family: 'Cinzel', 'Playfair Display', serif;
    font-size: clamp(2.6rem, 9vw, 7rem);
    font-weight: 700;
    letter-spacing: clamp(.12em, 1.5vw, .28em);
    line-height: 1.08;
    text-shadow: 0 3px 0 rgba(83,55,22,.45), 0 0 22px rgba(214,179,106,.35), 0 12px 35px rgba(0,0,0,.45);
}

body.theme-christmas .christmas-entry__tagline {
    margin-top: 22px;
    color: #fffaf0;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1rem, 2.2vw, 1.65rem);
    font-style: italic;
    letter-spacing: .04em;
}

body.theme-christmas .christmas-entry__ornament {
    margin-top: 28px;
    color: #d6b36a;
    font-size: 1.25rem;
    letter-spacing: .35em;
}

/* Світло та глибина простору за дверима */
body.theme-christmas .christmas-entry__doorway-light {
    position: absolute;
    z-index: 2;
    inset: 0 23%;
    opacity: 0;
    background:
            radial-gradient(ellipse at 50% 62%, rgba(255,218,151,.95) 0%, rgba(255,190,104,.42) 22%, rgba(255,174,85,.12) 48%, transparent 72%),
            linear-gradient(180deg, rgba(255,221,166,.18), transparent 75%);
    filter: blur(9px);
    animation: christmas-doorway-glow 3.8s ease-out forwards;
    animation-delay: 1.2s;
}

body.theme-christmas .christmas-entry__door {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50.4%;
    z-index: 5;
    overflow: hidden;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    background:
            linear-gradient(90deg, rgba(0,0,0,.72), transparent 8%, transparent 88%, rgba(0,0,0,.42)),
            repeating-linear-gradient(90deg, rgba(6,20,14,.18) 0 2px, transparent 2px 34px),
            repeating-linear-gradient(0deg, rgba(0,0,0,.12) 0 1px, transparent 1px 7px),
            linear-gradient(90deg, #06170f 0%, #123b29 12%, #1d5138 45%, #17432f 82%, #092117 100%);
    box-shadow: inset 0 0 0 10px #07150f, inset 0 0 0 13px rgba(204,164,91,.82), inset 0 0 48px rgba(0,0,0,.72), 0 0 35px rgba(0,0,0,.65);
    will-change: transform;
}

/* Рельєфні фільонки, молдинги та відблиски лакованого дерева */
body.theme-christmas .christmas-entry__door::before {
    content: "";
    position: absolute;
    inset: 7% 8%;
    border: 3px solid rgba(211,174,105,.78);
    box-shadow: inset 0 0 0 7px rgba(214,179,106,.12), inset 0 0 28px rgba(0,0,0,.42), 0 0 16px rgba(214,179,106,.16);
    background:
            linear-gradient(180deg, transparent 0 8%, rgba(0,0,0,.18) 8.2% 8.8%, transparent 9% 47%, rgba(0,0,0,.22) 47.2% 48%, transparent 48.2% 91%, rgba(0,0,0,.18) 91.2% 92%, transparent 92.2%),
            linear-gradient(90deg, rgba(255,255,255,.05), transparent 18%, rgba(0,0,0,.12) 50%, transparent 82%, rgba(255,255,255,.035));
}

body.theme-christmas .christmas-entry__door::after {
    content: "";
    position: absolute;
    inset: 12% 13%;
    border: 1px solid rgba(240,216,159,.42);
    background:
            linear-gradient(180deg, rgba(0,0,0,.12), rgba(255,255,255,.025) 22%, transparent 50%, rgba(0,0,0,.16)),
            repeating-linear-gradient(90deg, transparent 0 17%, rgba(3,16,10,.15) 17.2% 17.7%, transparent 18% 34%);
    box-shadow: inset 0 0 22px rgba(0,0,0,.32), 0 0 9px rgba(214,179,106,.12);
}

body.theme-christmas .christmas-entry__door--left {
    left: 0;
    transform-origin: left center;
    animation: christmas-door-open-left 4.7s cubic-bezier(.55,.02,.18,1) forwards;
    animation-delay: .65s;
}

body.theme-christmas .christmas-entry__door--right {
    right: 0;
    transform-origin: right center;
    animation: christmas-door-open-right 4.7s cubic-bezier(.55,.02,.18,1) forwards;
    animation-delay: .65s;
}

body.theme-christmas .christmas-entry__door-mark {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    color: rgba(240,216,159,.34);
    font-family: 'Cinzel', serif;
    font-size: clamp(5rem, 15vw, 13rem);
    font-weight: 700;
    transform: translate(-50%, -50%);
    text-shadow: 0 4px 20px rgba(0,0,0,.5);
}

/* Металева ручка на внутрішньому краї кожної стулки */
body.theme-christmas .christmas-entry__door-mark::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, #fff0b8, #b88b43 55%, #4b3218);
    box-shadow: 0 2px 7px rgba(0,0,0,.65), 0 0 8px rgba(255,215,130,.28);
}
body.theme-christmas .christmas-entry__door--left .christmas-entry__door-mark::after { left: 125%; }
body.theme-christmas .christmas-entry__door--right .christmas-entry__door-mark::after { right: 125%; }

body.theme-christmas .christmas-entry__center-line {
    position: absolute;
    z-index: 7;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: linear-gradient(180deg, transparent, #e5c77f 12%, #8c6a32 50%, #e5c77f 88%, transparent);
    box-shadow: 0 0 16px rgba(214,179,106,.5);
    opacity: .9;
    animation: christmas-entry-seam-fade 1s ease forwards;
    animation-delay: 1.8s;
}

/* Силует людини проходить крізь двері вглиб приміщення */
body.theme-christmas .christmas-entry__person {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: -4%;
    width: clamp(46px, 6vw, 82px);
    height: clamp(150px, 28vh, 250px);
    opacity: 0;
    transform: translateX(-50%) scale(1.18);
    filter: drop-shadow(0 0 12px rgba(28,17,8,.35));
    animation: christmas-person-enter 3.5s cubic-bezier(.45,0,.25,1) forwards;
    animation-delay: 2.6s;
}
body.theme-christmas .christmas-entry__person-head {
    position: absolute; top: 0; left: 50%;
    width: 27%; aspect-ratio: 1; border-radius: 50%;
    background: #080b09; transform: translateX(-50%);
    box-shadow: 0 0 14px rgba(255,193,112,.12);
}
body.theme-christmas .christmas-entry__person-body {
    position: absolute; top: 20%; left: 50%;
    width: 48%; height: 48%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #080b09, #171713 48%, #070a08);
    clip-path: polygon(28% 0,72% 0,100% 22%,84% 100%,16% 100%,0 22%);
    border-radius: 20% 20% 8% 8%;
}
body.theme-christmas .christmas-entry__person-arm {
    position: absolute; top: 23%; left: 13%; width: 20%; height: 43%;
    background: #090c0a; border-radius: 45%; transform: rotate(12deg);
}
body.theme-christmas .christmas-entry__person-leg {
    position: absolute; top: 61%; width: 20%; height: 39%;
    background: linear-gradient(90deg, #050706, #171713, #050706);
    border-radius: 0 0 35% 35%; transform-origin: top center;
}
body.theme-christmas .christmas-entry__person-leg--left { left: 31%; animation: christmas-person-step-left .55s ease-in-out 5 alternate; }
body.theme-christmas .christmas-entry__person-leg--right { right: 31%; animation: christmas-person-step-right .55s ease-in-out 5 alternate; }

body.theme-christmas .christmas-entry__floor-shadow {
    position: absolute;
    z-index: 3;
    left: 50%; bottom: 2%;
    width: clamp(100px, 20vw, 270px);
    height: clamp(18px, 4vh, 38px);
    border-radius: 50%;
    opacity: 0;
    transform: translateX(-50%) scale(1.4);
    background: radial-gradient(ellipse, rgba(0,0,0,.82) 0%, rgba(0,0,0,.48) 42%, transparent 75%);
    filter: blur(8px);
    animation: christmas-floor-shadow 3.5s ease-in-out forwards;
    animation-delay: 2.55s;
}

@keyframes christmas-door-open-left {
    0% { transform: rotateY(0deg); }
    18% { transform: rotateY(-12deg); }
    100% { transform: rotateY(-112deg); }
}
@keyframes christmas-door-open-right {
    0% { transform: rotateY(0deg); }
    18% { transform: rotateY(12deg); }
    100% { transform: rotateY(112deg); }
}
@keyframes christmas-doorway-glow {
    0% { opacity: 0; transform: scaleX(.55); }
    45% { opacity: .95; transform: scaleX(1); }
    100% { opacity: .72; }
}
@keyframes christmas-entry-reveal {
    0% { opacity: 0; transform: scale(.94); filter: blur(9px); }
    100% { opacity: 1; transform: scale(1); filter: blur(0); }
}
@keyframes christmas-person-enter {
    0% { opacity: 0; bottom: -5%; transform: translateX(-50%) scale(1.15); }
    18% { opacity: .92; }
    72% { opacity: .85; bottom: 12%; transform: translateX(-50%) scale(.55); }
    100% { opacity: 0; bottom: 25%; transform: translateX(-50%) scale(.22); }
}
@keyframes christmas-person-step-left { to { transform: rotate(13deg); } }
@keyframes christmas-person-step-right { to { transform: rotate(-13deg); } }
@keyframes christmas-floor-shadow {
    0% { opacity: 0; transform: translateX(-50%) scale(1.4); }
    25% { opacity: .8; }
    100% { opacity: 0; transform: translateX(-50%) scale(.42); filter: blur(15px); }
}
@keyframes christmas-entry-seam-fade { to { opacity: 0; } }
@keyframes christmas-entry-dismiss {
    0%, 88% { opacity: 1; visibility: visible; }
    100% { opacity: 0; visibility: hidden; pointer-events: none; }
}

@media (max-width: 767.98px) {
    body.theme-christmas .christmas-entry__door { width: 51%; box-shadow: inset 0 0 0 5px #07150f, inset 0 0 0 7px rgba(204,164,91,.82), inset 0 0 28px rgba(0,0,0,.72); }
    body.theme-christmas .christmas-entry__door::before { inset: 8% 7%; border-width: 1px; }
    body.theme-christmas .christmas-entry__door::after { inset: 13% 12%; }
    body.theme-christmas .christmas-entry__logo { letter-spacing: .12em; }
}

@media (prefers-reduced-motion: reduce) {
    body.theme-christmas .christmas-entry { display: none !important; }
}


/* Christmas intro video: replaces the animated doors while keeping the admin theme switch */
body.theme-christmas .christmas-entry {
    --entry-duration: 7.2s;
    perspective: none;
    background: #080d0a;
}
body.theme-christmas .christmas-entry__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 0;
    animation: christmas-video-show .8s ease-out forwards;
}
body.theme-christmas .christmas-entry__video-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
            linear-gradient(180deg, rgba(3,8,5,.22), rgba(3,8,5,.12) 42%, rgba(3,8,5,.52)),
            radial-gradient(ellipse at 50% 48%, transparent 15%, rgba(0,0,0,.28) 100%);
}
body.theme-christmas .christmas-entry__reveal {
    z-index: 2;
    animation: christmas-entry-reveal 1.25s ease-out forwards;
    animation-delay: .7s;
    text-shadow: 0 3px 18px rgba(0,0,0,.9), 0 0 28px rgba(0,0,0,.65);
}
body.theme-christmas .christmas-entry__logo {
    color: #fff1cf;
    font-size: clamp(2.8rem, 8vw, 6.5rem);
    letter-spacing: .18em;
    font-weight: 700;
    text-shadow: 0 0 18px rgba(255,205,126,.75), 0 4px 24px rgba(0,0,0,.95);
}
body.theme-christmas .christmas-entry__eyebrow,
body.theme-christmas .christmas-entry__tagline,
body.theme-christmas .christmas-entry__ornament {
    color: #fff0d0;
}
@keyframes christmas-video-show {
    from { opacity: 0; transform: scale(1.035); }
    to { opacity: 1; transform: scale(1); }
}
@media (max-width: 767.98px) {
    body.theme-christmas .christmas-entry__video { object-position: 54% center; }
    body.theme-christmas .christmas-entry__logo { letter-spacing: .1em; }
}

/* Відеозаставка: закривається натисканням або подією video ended */
body.theme-christmas .christmas-entry {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    animation: none !important;
    transition: opacity .55s ease, visibility 0s linear .55s;
}

body.theme-christmas .christmas-entry.is-dismissed {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    body.theme-christmas .christmas-entry {
        transition: none;
    }
}


/* =========================================================
   IJO COFFEE — GARLAND IN A SEPARATE TOP STRIP
   Точкове перевизначення лише для головної сторінки в CHRISTMAS-темі.
========================================================= */

/* Окрема смужка займає верхні 30 px екрана */
body.theme-christmas .christmas-garland-bar {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    z-index: 2105;
    pointer-events: none;
    background-color: #173b30;
    border-bottom: 1px solid rgba(214,179,106,.55);
    overflow: hidden;
}

/* Дріт і кольорові лампочки тепер належать верхній смужці, а не navbar */
body.theme-christmas .christmas-garland-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='30' viewBox='0 0 320 30'%3E%3Cpath d='M0 3 Q40 16 80 5 T160 5 T240 5 T320 5' fill='none' stroke='%230b1712' stroke-width='2'/%3E%3Cpath d='M0 2 Q40 15 80 4 T160 4 T240 4 T320 4' fill='none' stroke='%23536a57' stroke-width='.8'/%3E%3C/svg%3E")
            center top / 320px 30px repeat-x,
            radial-gradient(ellipse 5px 7px at 2.5% 17px, #ff4b45 0 58%, #d51f29 72%, transparent 100%),
            radial-gradient(ellipse 5px 7px at 8.5% 17px, #ffe16b 0 58%, #e7a927 72%, transparent 100%),
            radial-gradient(ellipse 5px 7px at 14.5% 17px, #69f0a5 0 58%, #1baf68 72%, transparent 100%),
            radial-gradient(ellipse 5px 7px at 20.5% 17px, #69caff 0 58%, #2385d5 72%, transparent 100%),
            radial-gradient(ellipse 5px 7px at 26.5% 17px, #ff91c8 0 58%, #db4d96 72%, transparent 100%),
            radial-gradient(ellipse 5px 7px at 32.5% 17px, #ffe16b 0 58%, #e7a927 72%, transparent 100%),
            radial-gradient(ellipse 5px 7px at 38.5% 17px, #ff4b45 0 58%, #d51f29 72%, transparent 100%),
            radial-gradient(ellipse 5px 7px at 44.5% 17px, #69f0a5 0 58%, #1baf68 72%, transparent 100%),
            radial-gradient(ellipse 5px 7px at 50.5% 17px, #69caff 0 58%, #2385d5 72%, transparent 100%),
            radial-gradient(ellipse 5px 7px at 56.5% 17px, #ffe16b 0 58%, #e7a927 72%, transparent 100%),
            radial-gradient(ellipse 5px 7px at 62.5% 17px, #ff91c8 0 58%, #db4d96 72%, transparent 100%),
            radial-gradient(ellipse 5px 7px at 68.5% 17px, #ff4b45 0 58%, #d51f29 72%, transparent 100%),
            radial-gradient(ellipse 5px 7px at 74.5% 17px, #69f0a5 0 58%, #1baf68 72%, transparent 100%),
            radial-gradient(ellipse 5px 7px at 80.5% 17px, #ffe16b 0 58%, #e7a927 72%, transparent 100%),
            radial-gradient(ellipse 5px 7px at 86.5% 17px, #69caff 0 58%, #2385d5 72%, transparent 100%),
            radial-gradient(ellipse 5px 7px at 92.5% 17px, #ff91c8 0 58%, #db4d96 72%, transparent 100%),
            radial-gradient(ellipse 5px 7px at 98% 17px, #ff4b45 0 58%, #d51f29 72%, transparent 100%);
    filter: drop-shadow(0 0 4px rgba(255,255,255,.35));
    animation: christmas-garland-twinkle 2.8s ease-in-out infinite alternate;
}

/* Відключаємо стару гірлянду, яка малювалася поверх логотипа */
body.theme-christmas #mainNav::before,
body.theme-christmas #mainNav::after {
    content: none !important;
    display: none !important;
}

/* Основний рядок логотипа та меню розташований НИЖЧЕ гірлянди */
body.theme-christmas #mainNav {
    top: 30px !important;
    left: 0;
    right: 0;
    width: 100%;
    min-height: 70px !important;
    height: auto !important;
    box-sizing: border-box;
    padding: 10px 2rem !important;
    display: flex;
    align-items: center;
    background: #173b30 !important;
    border-top: 0 !important;
    border-bottom: 2px solid #c6a35d !important;
    box-shadow: 0 4px 16px rgba(0,0,0,.18);
    z-index: 2100;
}

body.theme-christmas #mainNav > .container {
    width: 100%;
    max-width: 1140px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 15px;
    padding-right: 15px;
}

body.theme-christmas #mainNav .navbar-brand {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2;
    white-space: nowrap;
}

body.theme-christmas #mainNav .navbar-collapse {
    align-items: center;
}

body.theme-christmas #mainNav .nav-brand-link {
    margin-left: clamp(1rem, 2vw, 2rem);
}

/* Після прокручування висота та відступи залишаються стабільними */
body.theme-christmas #mainNav.scrolled {
    top: 30px !important;
    min-height: 64px !important;
    padding-top: 7px !important;
    padding-bottom: 7px !important;
}

/* Мобільна версія: гірлянда окремо, логотип і кнопка меню нижче */
@media (max-width: 991.98px) {
    body.theme-christmas #mainNav {
        min-height: 64px !important;
        padding: 8px 12px !important;
    }

    body.theme-christmas #mainNav > .container {
        max-width: 100%;
        padding-left: 4px;
        padding-right: 4px;
    }

    body.theme-christmas #mainNav .navbar-collapse {
        margin-top: 10px;
        padding: 12px 16px;
        background: #173b30 !important;
        border: 1px solid rgba(214,179,106,.35);
        border-radius: 8px;
    }

    body.theme-christmas #mainNav .nav-brand-link {
        display: block !important;
        margin: 0 !important;
        padding: 12px 0 !important;
    }
}

@media (max-width: 575.98px) {
    body.theme-christmas .christmas-garland-bar {
        height: 27px;
    }

    body.theme-christmas #mainNav {
        top: 27px !important;
    }

    body.theme-christmas #mainNav.scrolled {
        top: 27px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.theme-christmas .christmas-garland-bar::before {
        animation: none !important;
    }
}


/* =========================================================
   IJO COFFEE — FIX NATIVE CATALOG FILTER OPTIONS
   Ціль: реальні .form-select-custom у navbar-фільтрі.
   Примусово використовуємо світлу палітру для нативного меню
   select у Chrome/Linux, не змінюючи темну панель фільтрів.
========================================================= */

body.theme-christmas nav.navbar .dropdown-menu select.form-select-custom,
body.theme-christmas nav.navbar form.dropdown-menu select.form-select-custom,
body.theme-christmas .mobile-filter-form select.form-select-custom {
    color-scheme: light !important;
    background-color: #fbf7ee !important;
    color: #24352e !important;
    border: 1px solid #c9a45a !important;
    opacity: 1 !important;
}

body.theme-christmas nav.navbar .dropdown-menu select.form-select-custom option,
body.theme-christmas nav.navbar form.dropdown-menu select.form-select-custom option,
body.theme-christmas .mobile-filter-form select.form-select-custom option {
    color: #24352e !important;
    background-color: #fbf7ee !important;
}

body.theme-christmas nav.navbar .dropdown-menu select.form-select-custom optgroup,
body.theme-christmas nav.navbar form.dropdown-menu select.form-select-custom optgroup,
body.theme-christmas .mobile-filter-form select.form-select-custom optgroup {
    color: #24352e !important;
    background-color: #fbf7ee !important;
}

/* Контраст тексту в самій панелі фільтрів */
body.theme-christmas nav.navbar form.dropdown-menu .filter-label {
    color: #d6b36a !important;
}

body.theme-christmas nav.navbar form.dropdown-menu select.form-select-custom:focus {
    outline: 0 !important;
    border-color: #d6b36a !important;
    box-shadow: 0 0 0 .15rem rgba(214,179,106,.22) !important;
}
