/* =========================================================
   FOH · Theme Giáng sinh
   Bật khi <html> có class "theme-gs" (ngày bật/tắt: thẻ <script> đầu index.html).
   Giữ nền kem + font của FOH. Điểm nhấn: xanh lá thông + đỏ Noel,
   dây đèn, mũ Noel trên logo, tuyết rơi trên banner, vòng lá thông.
   ========================================================= */

html.theme-gs {
  --gs-pine: #234A35;      /* xanh lá thông */
  --gs-pine-2: #2F5E43;
  --gs-red: #B8323A;       /* đỏ Noel */
  --gs-gold: #E2B65C;
  --rose: #B8323A;         /* nút, huy hiệu → đỏ Noel */
  --rose-soft: #F6DEDC;
  --sage: #2F6B47;         /* chữ nhỏ trên tiêu đề → xanh thông */
  --line: #E4D9C9;
}

/* ---------- Thanh trên cùng ---------- */
.gs-bar { background: var(--gs-pine, #234A35); color: #F3EADB; text-align: center; font-size: 13px; font-weight: 500; letter-spacing: .02em; padding: 8px 16px; }
.gs-bar b { color: #fff; font-weight: 700; }
.gs-bar .gs-dot { color: var(--gs-gold, #E2B65C); padding-inline: 6px; }
.gs-bar a { color: #fff; text-underline-offset: 3px; }
.gs-bar .gs-count { font-variant-numeric: tabular-nums; color: #fff; font-weight: 600; }
@media (max-width: 640px) { .gs-bar-more { display: none; } .gs-bar { font-size: 12px; } }

/* ---------- Dây đèn dưới header + chân trang (2 lớp bóng đèn nháy so le) ---------- */
.gs-lights { position: relative; height: 34px; pointer-events: none; overflow: visible; }
.gs-lights svg { position: absolute; left: 0; top: 0; overflow: visible; }
/* mỗi bóng: lắc qua lại quanh đui (chuyển động) + nháy sáng/tối theo lượt chạy (nhấp nháy) */
.gs-b { transform-box: fill-box; transform-origin: 50% 0; animation: gs-swing var(--sw, 1.8s) ease-in-out var(--sd, 0s) infinite alternate; }
.gs-b .gs-glow { opacity: .55; animation: gs-glow 1.6s ease-in-out var(--d, 0s) infinite; }
.gs-b .gs-bulb { animation: gs-twinkle 1.6s ease-in-out var(--d, 0s) infinite; }
@keyframes gs-swing { from { transform: rotate(-20deg); } to { transform: rotate(20deg); } }
@keyframes gs-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .22; } }
@keyframes gs-glow { 0%, 100% { opacity: .95; } 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .gs-b, .gs-b .gs-glow, .gs-b .gs-bulb { animation: none; } }
html.theme-gs .site-head .gs-lights { position: absolute; left: 0; right: 0; top: 100%; color: #8FA48A; } /* dây xanh xám: nhìn được cả trên banner tối lẫn nền kem khi cuộn xuống */
.gs-lights { color: #1E3F2D; }
html.theme-gs .site-foot .gs-lights { margin-bottom: 30px; }

/* ---------- Logo: chữ O đội mũ Noel, chân phải chữ H dẫm tuyết ----------
   Hình vẽ trùng toạ độ ảnh logo-foh.png (264×156) nên tự co giãn theo cỡ logo. */
html.theme-gs .logo { position: relative; }
.gs-logo { display: none; }
html.theme-gs .gs-logo {
  display: block; position: absolute; pointer-events: none; z-index: 1;
  left: calc(-10 / 264 * 100%); top: calc(-60 / 156 * 100%); width: calc(300 / 264 * 100%); height: calc(245 / 156 * 100%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -60 300 245'%3E%3Cpath d='M94 16 C98 -6 122 -28 152 -30 C174 -31 190 -22 194 -6 C182 -14 170 -15 162 -9 C154 -2 160 8 170 16 Z' fill='%23C7303B'/%3E%3Cpath d='M106 4 C114 -12 132 -24 154 -25 C170 -26 182 -20 186 -12' fill='none' stroke='%23fff' stroke-opacity='.55' stroke-width='2' stroke-dasharray='5 4' stroke-linecap='round'/%3E%3Cg fill='%23FBF7F0' stroke='%23DCD0BE' stroke-width='1.6'%3E%3Cpath d='M86 14 C110 5 152 5 178 14 L180 27 C152 20 112 20 84 27 Z'/%3E%3Ccircle cx='90' cy='20' r='8.5'/%3E%3Ccircle cx='106' cy='15.5' r='8.5'/%3E%3Ccircle cx='122' cy='13.5' r='8.5'/%3E%3Ccircle cx='139' cy='13.5' r='8.5'/%3E%3Ccircle cx='156' cy='15.5' r='8.5'/%3E%3Ccircle cx='172' cy='20' r='8.5'/%3E%3Ccircle cx='195' cy='-4' r='11'/%3E%3C/g%3E%3Cg fill='%23FFFFFF' stroke='%23CCD8E3' stroke-width='1.6'%3E%3Cpath d='M216 172 C214 156 226 146 236 150 C238 133 256 126 266 137 C280 134 291 150 289 172 Z'/%3E%3C/g%3E%3Cpath d='M228 163 C238 157 250 158 256 163 M262 161 C270 156 278 158 282 164' fill='none' stroke='%23C3D1DE' stroke-width='1.5' stroke-linecap='round'/%3E%3Cg fill='%23FFFFFF' stroke='%23CCD8E3' stroke-width='1'%3E%3Ccircle cx='228' cy='138' r='2.8'/%3E%3Ccircle cx='278' cy='124' r='2.4'/%3E%3Ccircle cx='290' cy='140' r='2'/%3E%3Ccircle cx='238' cy='124' r='1.8'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / 100% 100%;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .12));
}

/* ---------- Chữ nhỏ trên tiêu đề: bông tuyết ---------- */
html.theme-gs .eyebrow { display: inline-flex; align-items: center; gap: 6px; }
html.theme-gs .eyebrow::before {
  content: ""; width: 13px; height: 13px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B8323A' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17L20.7 7M9 4l3 2 3-2M9 20l3-2 3 2'/%3E%3C/svg%3E") no-repeat center / contain;
}
html.theme-gs #ghe-quay .eyebrow::before { filter: brightness(0) invert(1); opacity: .85; }

/* ---------- Thẻ sản phẩm khi rê chuột ---------- */
html.theme-gs .card:hover { box-shadow: 0 0 0 2px var(--gs-pine-2), 0 10px 26px rgba(35, 74, 53, .14); }
html.theme-gs .hc-jump a:hover { background: var(--gs-pine); color: #fff; border-color: var(--gs-pine); }
html.theme-gs .hc-jump a:hover small { color: #CFE0D3; }

/* ---------- Slide Giáng sinh (slide đầu banner) ---------- */
.slide.gs-slide { container-type: inline-size; color: #F6EFE4; background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,.05) 0 2px, transparent 2px 6px),
    radial-gradient(120% 100% at 75% 30%, #346A4B 0%, #234A35 55%, #1B3A2A 100%); }
.slide.gs-slide::after { display: none; }
.gs-in { position: absolute; inset: 0; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; padding: 0 4cqw 0 6cqw; }
.gs-in::before { content: ""; position: absolute; inset: 1.4cqw; border: 1.5px dashed rgba(246, 239, 228, .35); border-radius: 6px; pointer-events: none; }
.gs-txt { position: relative; z-index: 2; }
.gs-kicker { display: inline-block; font-size: max(9px, 1.15cqw); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #F6EFE4; border: 1px solid rgba(246, 239, 228, .45); border-radius: 999px; padding: .45em 1.1em; }
.gs-txt h2 { margin: .35em 0 .15em; font-family: var(--display); font-weight: 500; line-height: .95; font-size: 8.6cqw; text-transform: none; letter-spacing: 0; text-shadow: none; max-width: none; }
.gs-txt h2 i { display: block; font-style: italic; color: var(--gs-gold); font-size: .62em; margin-bottom: .05em; }
.gs-txt p { margin: .8em 0 0; font-size: max(11px, 1.6cqw); font-weight: 500; color: #E6EFE5; text-shadow: none; max-width: 30ch; }
.gs-cta { display: inline-block; margin-top: 1.4cqw; background: var(--gs-red); color: #fff; font-weight: 600; font-size: max(10px, 1.3cqw); padding: .75em 1.5em; border-radius: 999px; box-shadow: 0 0 0 .35cqw rgba(255, 255, 255, .15); }

.gs-pics { position: relative; height: 100%; }
.gs-pol { position: absolute; margin: 0; background: #FBF5EC; padding: .8cqw .8cqw 2.6cqw; box-shadow: 0 1.4cqw 3cqw rgba(0, 0, 0, .4); }
.gs-pol img { position: static; display: block; width: 100%; height: 100%; object-fit: cover; }
.gs-pol::before { content: ""; position: absolute; top: -1cqw; left: 50%; width: 6.5cqw; height: 2cqw; transform: translateX(-50%) rotate(-4deg);
  background: repeating-linear-gradient(45deg, #B8323A 0 .5cqw, #FBF5EC .5cqw 1cqw); opacity: .92; }
.gs-pol.p1 { width: 20cqw; height: 24cqw; left: 4%; top: 18%; transform: rotate(-6deg); }
.gs-pol.p2 { width: 18cqw; height: 22cqw; right: 8%; top: 28%; transform: rotate(5deg); }
.gs-pol.p2::before { background: repeating-linear-gradient(45deg, #2F6B47 0 .5cqw, #FBF5EC .5cqw 1cqw); }
/* quả châu vải treo từ mép trên */
.gs-orn { position: absolute; top: 0; z-index: 3; width: 4.6cqw; height: calc(var(--h) + 4.6cqw); pointer-events: none; }
.gs-orn::before { content: ""; position: absolute; left: 50%; top: 0; width: 1px; height: var(--h); background: rgba(246, 239, 228, .6); }
.gs-orn::after { content: ""; position: absolute; left: 0; bottom: 0; width: 4.6cqw; height: 4.6cqw; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.35), transparent 40%), var(--c);
  box-shadow: inset 0 0 0 .3cqw rgba(0,0,0,.08), 0 .6cqw 1.2cqw rgba(0,0,0,.35);
  outline: 1px dashed rgba(255, 255, 255, .55); outline-offset: -.8cqw; }
.gs-orn.o1 { left: 30%; --h: 6cqw; --c: #B8323A; }
.gs-orn.o2 { left: 58%; --h: 3cqw; --c: #E2B65C; width: 3.6cqw; }
.gs-orn.o2::after { width: 3.6cqw; height: 3.6cqw; }
.gs-orn.o3 { left: 84%; --h: 8cqw; --c: #F3EADB; }
.gs-orn { animation: gs-sway 5s ease-in-out infinite; transform-origin: 50% 0; }
.gs-orn.o2 { animation-delay: -1.6s; } .gs-orn.o3 { animation-delay: -3.2s; }
@keyframes gs-sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .gs-orn { animation: none; } }
@container (max-width: 560px) {
  .gs-txt p { display: none; }
  .gs-kicker { font-size: 8.5px; }
  .gs-cta { font-size: 10px; margin-top: 8px; }
}

/* tuyết rơi trên banner (canvas, JS vẽ) */
.gs-snow { position: absolute; inset: 0; z-index: 2; pointer-events: none; width: 100%; height: 100%; }

/* ---------- Vòng lá thông dưới banner ---------- */
.gs-garland {
  height: 34px; margin-top: -6px; position: relative; z-index: 3; pointer-events: none; background-repeat: repeat-x; background-size: 140px 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='34'%3E%3Cg stroke-linecap='round'%3E%3Cpath d='M0 10 Q35 22 70 10 T140 10' fill='none' stroke='%23234A35' stroke-width='7'/%3E%3Cpath d='M0 10 Q35 22 70 10 T140 10' fill='none' stroke='%233F7A55' stroke-width='3' stroke-dasharray='2 4'/%3E%3Cpath d='M6 9l-4-5M16 12l-3-6M26 15l1-6M36 16l4-5M46 15l5-4M56 13l5-4M66 10l3-5M76 11l-3-6M86 14l-2-6M96 16l2-6M106 15l4-5M116 13l5-4M126 11l5-4M136 9l4-5' stroke='%232F6B47' stroke-width='2'/%3E%3C/g%3E%3Cline x1='35' y1='16' x2='35' y2='22' stroke='%23C9B79B'/%3E%3Ccircle cx='35' cy='26' r='5' fill='%23B8323A'/%3E%3Cline x1='105' y1='16' x2='105' y2='22' stroke='%23C9B79B'/%3E%3Ccircle cx='105' cy='26' r='5' fill='%23E2B65C'/%3E%3Ccircle cx='70' cy='12' r='3' fill='%23F3EADB'/%3E%3Ccircle cx='0' cy='10' r='3' fill='%23B8323A'/%3E%3Ccircle cx='140' cy='10' r='3' fill='%23B8323A'/%3E%3C/svg%3E");
}
html.theme-gs #ban-tin { padding-bottom: 0; }
html.theme-gs #danh-muc { padding-top: 30px; }

/* ---------- Khối Ghé quầy: xanh thông + chấm tuyết ---------- */
html.theme-gs #ghe-quay .visit { background:
    radial-gradient(circle, rgba(255,255,255,.18) 1.2px, transparent 1.6px) 0 0 / 26px 26px,
    radial-gradient(circle, rgba(255,255,255,.12) 1px, transparent 1.4px) 13px 13px / 26px 26px,
    var(--gs-pine); outline: 1.5px dashed rgba(246, 239, 228, .3); outline-offset: -10px; }

/* ---------- Tuyết rơi nhẹ khắp trang ---------- */
.gs-snow-page { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 30; pointer-events: none; }

/* ---------- Ông già Noel cưỡi xe tuần lộc bay ngang banner (mỗi vòng 26 giây: bay ~13 giây, nghỉ ~13 giây) ---------- */
.gs-santa { position: absolute; z-index: 3; top: 9%; left: -32%; width: clamp(150px, 21vw, 300px); pointer-events: none; animation: gs-fly 26s linear 2s infinite; }
.gs-santa-bob { animation: gs-bob 1.3s ease-in-out infinite alternate; }
.gs-santa-svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .3)); }
@keyframes gs-fly {
  0% { left: -32%; top: 22%; }
  25% { top: 8%; }
  50% { left: 104%; top: 14%; }
  100% { left: 104%; top: 14%; }
}
@keyframes gs-bob { from { transform: translateY(-5px) rotate(-3deg); } to { transform: translateY(5px) rotate(2deg); } }
.gs-leg { transform-box: fill-box; transform-origin: 50% 0; animation: gs-gallop .45s ease-in-out infinite alternate; }
.gs-leg-f { animation-direction: alternate-reverse; }
.gs-deer-2 .gs-leg { animation-delay: -.2s; }
@keyframes gs-gallop { from { transform: rotate(-28deg); } to { transform: rotate(22deg); } }
.gs-nose { animation: gs-twinkle 1s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .gs-santa { display: none; } }

/* ---------- Tắt hết khi không ở mùa Giáng sinh ---------- */
html:not(.theme-gs) .gs-bar,
html:not(.theme-gs) .gs-lights,
html:not(.theme-gs) .gs-garland,
html:not(.theme-gs) .gs-snow,
html:not(.theme-gs) .gs-snow-page,
html:not(.theme-gs) .gs-santa { display: none; }
