/* ===== Giao diện Giáng Sinh (bật/tắt bằng XMAS trong assets/app.js) ===== */
body.xmas{--green:#0b6b3a;--green-dark:#063d22;--gold:#f6c453;background:#f3f6f4}

/* tuyết rơi */
#snow{position:fixed;inset:0;pointer-events:none;z-index:70}

/* thanh trên cùng */
body.xmas .topstrip{background:repeating-linear-gradient(135deg,#b3001b 0 22px,#c8102e 22px 44px);letter-spacing:.2px}
body.xmas .topstrip b{color:var(--gold)}

/* dây đèn dưới đầu trang */
.lights{position:absolute;left:0;right:0;bottom:-14px;height:20px;overflow:hidden;pointer-events:none;z-index:2;display:flex;justify-content:space-around}
.lights::before{content:"";position:absolute;left:0;right:0;top:-6px;height:12px;border-bottom:2px solid #1f2a22;border-radius:0 0 50% 50%/0 0 100% 100%;background:repeating-radial-gradient(transparent 0 0)}
.lights i{position:relative;width:8px;height:12px;border-radius:50%;margin-top:4px;flex:none;animation:twinkle 1.4s infinite ease-in-out}
.lights i::before{content:"";position:absolute;top:-3px;left:2px;width:4px;height:4px;background:#333;border-radius:1px}
.lights i:nth-child(4n+1){background:#ffd54a;box-shadow:0 0 8px 2px rgba(255,213,74,.8)}
.lights i:nth-child(4n+2){background:#38e07b;box-shadow:0 0 8px 2px rgba(56,224,123,.8);animation-delay:.35s}
.lights i:nth-child(4n+3){background:#4fc3ff;box-shadow:0 0 8px 2px rgba(79,195,255,.8);animation-delay:.7s}
.lights i:nth-child(4n){background:#fff;box-shadow:0 0 8px 2px rgba(255,255,255,.9);animation-delay:1.05s}
@keyframes twinkle{0%,100%{opacity:1}50%{opacity:.35}}

/* mũ Noel trên logo */
body.xmas .logo{position:relative;overflow:visible}
.santa-hat{position:absolute;left:-14px;top:-16px;width:40px;height:34px;transform:rotate(-22deg);pointer-events:none;filter:drop-shadow(0 2px 2px rgba(0,0,0,.3))}

/* banner Giáng Sinh trong slider */
.xb{position:absolute;inset:0;overflow:hidden;color:#fff;display:flex;align-items:center;padding:0 5% 0 6%;
  background:radial-gradient(120% 90% at 80% 20%,#14874c 0%,#0b6b3a 35%,#063d22 75%,#042a17 100%)}
.xb::before{content:"";position:absolute;inset:0;opacity:.35;
  background-image:radial-gradient(2px 2px at 20% 30%,#fff 50%,transparent 51%),radial-gradient(1.5px 1.5px at 70% 15%,#fff 50%,transparent 51%),radial-gradient(2px 2px at 85% 60%,#fff 50%,transparent 51%),radial-gradient(1.5px 1.5px at 40% 80%,#fff 50%,transparent 51%),radial-gradient(2px 2px at 55% 45%,#fff 50%,transparent 51%);background-size:180px 140px}
.xb-txt{position:relative;z-index:2;max-width:52%}
.xb-merry{font-family:"Brush Script MT","Segoe Script","Lucida Handwriting",cursive;font-size:clamp(26px,4.2vw,46px);color:var(--gold);line-height:1;text-shadow:0 2px 8px rgba(0,0,0,.35)}
.xb h3{font-size:clamp(17px,2.3vw,27px);line-height:1.2;margin:8px 0 8px;font-weight:900}
.xb h3 span{color:#ffdfe4;background:#c8102e;padding:0 6px;border-radius:6px}
.xb p{font-size:clamp(11px,1.15vw,14px);opacity:.9;margin-bottom:10px}
.xb-code{display:inline-block;background:rgba(255,255,255,.12);border:1px dashed var(--gold);border-radius:8px;padding:5px 10px;font-size:clamp(11px,1.1vw,13px);margin-bottom:12px}
.xb-code b{color:var(--gold)}
.xb-btn{display:block;width:max-content;background:linear-gradient(180deg,#ff3347,#c8102e);border-radius:999px;padding:8px 20px;font-weight:800;font-size:clamp(11px,1.15vw,14px);box-shadow:0 4px 14px rgba(200,16,46,.5)}
.xb-gifts{position:absolute;right:4%;top:50%;transform:translateY(-50%);width:44%;height:84%;z-index:2}
.xb-gifts figure{position:absolute;background:#fff;padding:6px 6px 0;border-radius:6px;box-shadow:0 8px 22px rgba(0,0,0,.4);width:42%}
.xb-gifts img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:3px}
.xb-gifts figcaption{color:#222;font-size:10px;font-weight:700;text-align:center;padding:4px 2px 5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.xb-gifts figure::before{content:"";position:absolute;top:-9px;left:50%;width:30px;height:14px;margin-left:-15px;background:var(--gold);border-radius:3px;opacity:.9;transform:rotate(-4deg)}
.xb-gifts .g0{left:2%;top:18%;transform:rotate(-8deg);z-index:1}
.xb-gifts .g1{left:30%;top:2%;transform:rotate(4deg);z-index:2;width:46%}
.xb-gifts .g2{right:0;top:34%;transform:rotate(9deg);z-index:1}
.xb-orn{position:absolute;top:0;left:38%;display:flex;gap:26px;z-index:1}
.xb-orn i{position:relative;display:block;width:1px;background:rgba(255,255,255,.5)}
.xb-orn i::after{content:"";position:absolute;left:-9px;bottom:-18px;width:18px;height:18px;border-radius:50%;box-shadow:inset -4px -4px 0 rgba(0,0,0,.18),0 2px 6px rgba(0,0,0,.3)}
.xb-orn i:nth-child(1){height:26px}.xb-orn i:nth-child(1)::after{background:#e01b2f}
.xb-orn i:nth-child(2){height:48px}.xb-orn i:nth-child(2)::after{background:var(--gold)}
.xb-orn i:nth-child(3){height:18px}.xb-orn i:nth-child(3)::after{background:#e5e7eb}
.xb-orn i:nth-child(4){height:38px}.xb-orn i:nth-child(4)::after{background:#e01b2f}
.xb-orn i:nth-child(5){height:22px}.xb-orn i:nth-child(5)::after{background:var(--gold)}
.xb-snow{position:absolute;left:-2%;right:-2%;bottom:-1px;height:12%;background:#fff;border-radius:50% 50% 0 0/100% 100% 0 0;z-index:3;box-shadow:0 -4px 12px rgba(255,255,255,.4)}
body.xmas .sl-tabs button.on{border-bottom-color:var(--green)}
body.xmas .sl-tabs button.on b{color:var(--green)}

/* khung chào bên phải */
body.xmas .welcome{border-top:4px solid var(--green);position:relative}
body.xmas .welcome h4{color:var(--green)}

/* khối săn quà */
body.xmas .flash{background:linear-gradient(180deg,#0f7a43,#063d22);position:relative;padding-top:24px;border:3px solid transparent;
  background-clip:padding-box;box-shadow:0 0 0 3px #c8102e, 0 0 0 6px #fff, 0 0 0 9px #c8102e}
body.xmas .flash::before{content:"";position:absolute;left:0;right:0;top:0;height:16px;border-radius:13px 13px 0 0;
  background:radial-gradient(circle at 12px 0,#fff 12px,transparent 13px) 0 0/34px 16px repeat-x,linear-gradient(#fff,#fff) 0 0/100% 4px no-repeat}
body.xmas .flash-hd h2{color:var(--gold);text-shadow:0 2px 0 rgba(0,0,0,.25)}
body.xmas .cd span{color:var(--green)}
body.xmas .cd em{font-style:normal;font-size:12px;margin:0 6px 0 2px;opacity:.9}

/* tiêu đề các khối */
body.xmas .block-hd h2::before{content:"🎄 "}
body.xmas .block-hd h2{color:var(--green-dark)}
body.xmas .chip:hover,body.xmas .chip.on{border-color:var(--green);color:var(--green);background:#eaf6ef}
body.xmas .chip.more{color:#c8102e}
body.xmas .catmenu a:hover{background:#eaf6ef;color:var(--green)}

/* nút liên hệ nổi */
body.xmas .float .t{background:#c8102e}

@media (max-width:700px){
  .xb{padding:0 4%}
  .xb-txt{max-width:58%}
  .xb p,.xb-orn{display:none}
  .xb-gifts{width:44%;right:1%}
  .xb-gifts figcaption{display:none}
  .xb-code{display:none}
  .xb h3{margin:4px 0 8px}
  .xb-snow{height:7%}
  .xb-txt{margin-top:-6%}
  body.xmas .sl-tabs button{font-size:0;padding:8px 4px}
  body.xmas .sl-tabs button b{font-size:11px}
  .santa-hat{width:30px;height:26px;left:-10px;top:-12px}
}
@media (prefers-reduced-motion:reduce){.lights i{animation:none}}
