/*
 * MÙA NOEL 2026 - chỉ nạp khi sorella_noel_bat() (inc/noel.php).
 * Không qua Vite / main.css. Nguyên tắc (user 24/11/2026): giữ nguyên chữ, màu,
 * bố cục của thương hiệu; Noel chỉ là vài điểm nhấn - mũ trên logo, tuyết ở
 * hero, và màu đỏ CHỈ dùng cho giá ưu đãi + nhãn giảm giá.
 */
:root {
    --noel-do: #a3262e;
    --noel-vang: #c9a66b;
    --noel-vang-dam: #9c7a3c;
    --noel-vang-nhat: #f6ead2;
}

/* ---------- Mũ Noel trên chữ "O" của logo ----------
   Logo 1029x196: chữ O (hoa văn) nằm từ 12,2% đến 31,5% bề rộng. */
.mua-noel .site-header__logo .custom-logo-link {
    position: relative;
    display: inline-block;
}
.mua-noel .site-header__logo .custom-logo-link::after {
    content: "";
    position: absolute;
    /* Mũ tròn đầy (user 24/11 chê bản cũ "thon dài"): viền lông trùm lên
       đỉnh chữ O, chóp mũ gập xuống bên phải, quả bông ngang tầm viền. */
    left: 9.3%;
    bottom: 58%;
    width: 24%;
    aspect-ratio: 100 / 82;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 82'%3E%3Cpath d='M13 63C14 40 30 21 52 17c16-3 28 3 34 14 4 7 4 14 2 20l-8-1c1-5-1-10-5-13-2 9-2 17-1 26Z' fill='%23b3262d'/%3E%3Cpath d='M52 17c-11 9-16 25-17 46h-8c1-21 9-37 25-46Z' fill='%23fff' opacity='.15'/%3E%3Cpath d='M75 37c-2 9-2 17-1 26h-7c-1-10 2-19 8-26Z' fill='%236e161b' opacity='.3'/%3E%3Crect x='5' y='56' width='77' height='18' rx='9' fill='%23fbf8f3' stroke='%23e2d6c4' stroke-width='1.3'/%3E%3Ccircle cx='86' cy='55' r='10' fill='%23fbf8f3' stroke='%23e2d6c4' stroke-width='1.3'/%3E%3Ccircle cx='83' cy='52' r='3' fill='%23fff'/%3E%3C/svg%3E") no-repeat center / contain;
    transform: rotate(-8deg);
    transform-origin: 30% 90%;
    pointer-events: none;
    animation: noel-mu 5s ease-in-out infinite;
}
@keyframes noel-mu {
    0%, 86%, 100% { transform: rotate(-8deg); }
    90% { transform: rotate(-13deg); }
    95% { transform: rotate(-4deg); }
}

/* ---------- Tuyết ở hero trang chủ (canvas do noel.js chèn) ---------- */
.noel-tuyet {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ---------- Khối gói Noel trên trang chủ ----------
   Bố cục là của khối Signature (lieu-trinh-noi-bat.css). Ở đây chỉ thêm:
   tiêu đề đỏ (góp ý 25/11), nhãn "Christmas Special" kiểu poster Noel trên ảnh
   bìa (đỏ rượu vang, viền vàng champagne, chữ nghiêng), nơ đỏ nhỏ, dòng giá +
   USD, nút View details. Nơ đỏ đã bỏ (25/11: "sến").*/
.section-lieu-trinh--noel {
    background: var(--color-bg-alt, #fbf6ef);
    padding-top: var(--space-xl);
}
.section-lieu-trinh--noel .section-lieu-trinh__nhan {
    color: var(--noel-vang-dam);
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.section-lieu-trinh--noel .section-lieu-trinh__title {
    color: var(--noel-do);
}
.section-lieu-trinh--noel .lieu-trinh-card__anh {
    position: relative;
}
.noel-tem {
    /* Kiểu A user chọn 25/11: viên đỏ 1 dòng, font Montserrat của web, không viền vàng. */
    position: absolute;
    z-index: 1;
    left: 1.4rem;
    top: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1.4rem;
    border-radius: 99rem;
    background: var(--noel-do);
    color: #fff;
    font-family: var(--font-body);
}
.noel-tem__nhan {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.noel-tem__so {
    padding-left: 0.8rem;
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 1.3rem;
    font-weight: 700;
    white-space: nowrap;
}
@media (max-width: 767px) {
    .noel-tem { gap: 0.6rem; padding: 0.6rem 1.1rem; }
    .noel-tem__nhan { font-size: 0.95rem; }
    .noel-tem__so { font-size: 1.15rem; padding-left: 0.6rem; }
}
.noel-gia {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.2rem 0.8rem;
    margin: 0 0 0.6rem;
    font-size: 1.4rem;
    color: var(--color-text-muted);
}
.noel-gia strong {
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--noel-do);
}
.noel-gia s {
    font-size: 1.3rem;
}
.noel-gia__usd {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-primary);
}
.noel-xem {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    align-self: flex-start;
    margin-top: 1.4rem;
    padding: 1rem 1.8rem;
    border: 1px solid var(--color-primary);
    border-radius: 99rem;
    color: var(--color-primary);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}
.noel-xem svg {
    width: 1.6rem;
    height: 1.6rem;
}
@media (max-width: 767px) {
    .noel-xem { align-self: center; }
}
.noel-xem:hover {
    background: var(--color-primary);
    color: #fff;
}

/* ---------- Nút "Special Christmas Promotions" ở hero (noel.js chèn) ---------- */
.section-hero .noel-nut-hero {
    width: auto;
    height: auto;
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1.6rem;
    padding: 1.1rem 2.2rem;
    border: 1px solid rgba(243, 223, 180, 0.7);
    border-radius: 99rem;
    background: linear-gradient(110deg, #7e1c22, #a3262e);
    box-shadow: 0 0.8rem 2.4rem rgba(60, 10, 14, 0.35);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: filter 0.2s ease;
}
.section-hero .noel-nut-hero:hover {
    filter: brightness(1.1);
    color: #fff;
}
.section-hero .noel-nut-hero svg {
    width: 1.8rem !important;
    height: 1.8rem !important;
    margin: 0;
    padding: 0;
    background: none;
    flex-shrink: 0;
}
.section-hero .noel-nut-hero-o {
    /* Nằm TRONG cụm nút hero (flex): điện thoại xếp dọc giữa nút chính và
       "Shop our products"; máy tính xuống một hàng riêng bên dưới 2 nút. */
    flex: none;
    display: flex;
    justify-content: center;
    align-items: center;
}
.section-hero .noel-nut-hero-o .noel-nut-hero { margin-top: 0; }
@media (max-width: 767px) {
    .section-hero .noel-nut-hero {
        justify-content: center;
        padding: 1.2rem 1.4rem;
        font-size: 1.15rem;
        letter-spacing: 0.04em;
        white-space: nowrap;
    }
    .section-hero .noel-nut-hero svg { display: none; }
}
@media (min-width: 768px) {
    .section-hero .section-hero__cac-nut { flex-wrap: wrap; }
    .section-hero .noel-nut-hero-o { order: 3; flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .mua-noel .site-header__logo .custom-logo-link::after {
        animation: none;
    }
}

/* =====================================================================
   STICKER NOEL CỦA SORELLA (bộ ảnh trong file COMBO NOEL, mockup hero của khách)
   Nhỏ, đặt ở mép - không đè lên chữ. Hiện ra khi cuộn tới (noel.js gắn
   .noel-hien) rồi nhún nhẹ. Máy bật "giảm chuyển động": đứng yên.
   ===================================================================== */
.noel-sticker {
    position: absolute;
    z-index: 3;
    display: block;
    width: var(--noel-sticker-w, 10rem);
    pointer-events: none;
    opacity: 0;
    transform: translateY(1rem) scale(0.9);
    transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.noel-sticker img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0.6rem 0.8rem rgba(23, 64, 62, 0.16));
    transform-origin: 50% 100%;
}
.noel-sticker.noel-hien { opacity: 1; transform: none; }
html:not(.co-js) .noel-sticker { opacity: 1; transform: none; }
.noel-sticker--nhun.noel-hien img { animation: noel-nhun 3.4s ease-in-out infinite; }
.noel-sticker--lac.noel-hien img { animation: noel-lac 4.2s ease-in-out infinite; }
.noel-sticker--tho.noel-hien img { animation: noel-tho 3.8s ease-in-out infinite; }
@keyframes noel-nhun { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-0.6rem); } }
@keyframes noel-lac { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes noel-tho { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.03, 0.97); } }

/* Hero trang chủ: 2 ông già Noel hai bên tiêu đề, đúng mockup khách. */
.section-hero__title.noel-co-ong { position: relative; }
.noel-hero-ong { --noel-sticker-w: clamp(8rem, 13vw, 13rem); }
.noel-hero-ong--trai { left: 0; top: -0.4em; translate: -78% 0; }
.noel-hero-ong--phai { right: 0; bottom: -0.45em; translate: 82% 0; scale: -1 1; } /* lật: quay mặt vào tiêu đề */
@media (max-width: 767px) {
    /* Điện thoại: hai ông đứng ĐỐI XỨNG ngay trên hai góc tiêu đề, không đè chữ. */
    .noel-hero-ong { --noel-sticker-w: 7.6rem; }
    /* Điện thoại chỉ giữ ông BÊN PHẢI (25/11 lần 6). */
    .noel-hero-ong--trai { display: none; }
    /* ...và đặt CHÍNH GIỮA phía trên tiêu đề (25/11 lần 7). */
    .noel-hero-ong--phai { left: 50%; right: auto; top: auto; bottom: 100%; translate: -50% -0.45em; } /* cao hơn chữ tiêu đề (lần 8) */
}

/* Khối gói Noel: bà Noel ôm hộp quà SORELLA cạnh tiêu đề. */
.section-lieu-trinh--noel .section-lieu-trinh__header { position: relative; }
.noel-khoi__sticker { --noel-sticker-w: clamp(8rem, 9vw, 11rem); right: var(--grid-padding); top: -2rem; }
@media (max-width: 767px) {
    .noel-khoi__sticker { --noel-sticker-w: 7.5rem; top: -5.5rem; }
}

/* ---------- Sticker rải trên đường giao giữa các khối (noel.js, 25/11 lần 4) ---------- */
.noel-moc,
#main-wrap > .noel-moc,
#main-wrap > main > .noel-moc {
    position: relative;
    /* utilities.css gán z-index:1 cho MỌI con của main (section sau đè section
       trước) - phải ghi đè đúng selector đó, không thì nửa dưới sticker bị khối
       kế tiếp che. Vẫn dưới header (1000). */
    z-index: 30;
    height: 0;
    pointer-events: none;
}
.noel-moc .noel-sticker {
    --noel-sticker-w: clamp(7.2rem, 7vw, 9.6rem);
    top: 0;
    translate: 0 -55%;
    rotate: var(--goc, 0deg);
}
.noel-moc--trai .noel-sticker { left: var(--x, 6%); }
.noel-moc--phai .noel-sticker { right: var(--x, 6%); }
@media (max-width: 767px) {
    /* Điện thoại (25/11 lần 5): mỗi đường giao MỘT sticker, đặt CHÍNH GIỮA, to
       hơn; không xoay. Máy tính vẫn xen kẽ trái/phải. */
    .noel-moc .noel-sticker {
        --noel-sticker-w: 8rem;
        left: 50%;
        right: auto;
        translate: -50% -55%;
        rotate: 0deg;
    }
    /* Sticker cạnh tiêu đề khối Noel trùng chỗ với sticker ở đường giao ngay
       trên - điện thoại chỉ giữ một. */
    .noel-khoi__sticker { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .noel-sticker, .noel-sticker img { animation: none !important; transition: none !important; opacity: 1; transform: none; }
}
