/* Vresiana Malaysia — Halloween 2026 look. Everything here hangs off html.hw, which halloween.js
   adds only until the end of 31 October; without it this file changes nothing. */
.hw { --hw-orange: #FF8A1F; --hw-ember: #FFB347; --hw-night: #120A24; --hw-plum: #2A1245; }

/* ---- The whole site: the brand colours swap to Halloween night ---------------------------------
   Navy becomes plum, the lavender accents become pumpkin orange, ivory becomes warm parchment.
   Every section, card, button, the product window and the bag follow these. */
.hw {
  --navy: #3B1658; --navy-2: #4E2072; --navy-ink: #150A26; --stage: #120A22;
  --gold: #FFB347; --gold-text: #9A4308; --gold-soft: #FCE3C8;
  --screen: #E36A0C; --screen-ink: #5A2A04;
  --cream: #F3E6D6; --paper: #FAF1E6; --line: #E7D5BF;
  --pattern-veil: linear-gradient(rgba(21,10,38,.86), rgba(21,10,38,.92));
  --shadow: 0 1px 2px rgba(21,10,38,.08), 0 8px 24px rgba(60,20,10,.10);
}
.hw body { background: var(--paper); }
.hw .wall { background: radial-gradient(60% 50% at 50% 100%, rgba(255,138,31,.14), transparent 70%), var(--stage); }
.hw .shop-glow { background: radial-gradient(closest-side, rgba(255,138,31,.16), transparent); }
.hw .btn-gold { background: var(--hw-orange); color: #1A0B00; }
.hw .add:hover { background: var(--hw-orange); color: #1A0B00; }
.hw .card:hover { box-shadow: 0 0 0 2px rgba(255,138,31,.55), 0 18px 40px -12px rgba(255,138,31,.45); }
.hw .niche-frame { box-shadow: 0 0 40px -6px rgba(255,138,31,.35); }

/* Spiderwebs in the corners of the light sections */
.hw .online, .hw #offers, .hw #boutiques, .hw .contact { position: relative; }
.hw .online::before, .hw #offers::before, .hw #boutiques::before, .hw .contact::before {
  content: ""; position: absolute; top: 0; right: 0; width: clamp(110px, 16vw, 200px); aspect-ratio: 1; pointer-events: none; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%237A5A40' stroke-width='.7'%3E%3Cpath d='M100 0L0 100M100 0L30 100M100 0L0 30M100 0L65 100M100 0L0 65'/%3E%3Cpath d='M86 0q2 12 14 14M70 0q4 26 30 30M52 0q6 42 48 48M33 0q10 58 67 67M14 0q14 72 86 86'/%3E%3C/svg%3E") no-repeat top right / contain; }
.hw .online::before { transform: none; }
.hw #boutiques::before { left: 0; right: auto; transform: scaleX(-1); }

/* ---- Product listing: the offer ribbon on every bottle that starts a 50% pair ------------------ */
.hw-ribbon { position: absolute; z-index: 3; top: 10px; right: 10px; padding: 6px 10px; border-radius: 99px;
  background: linear-gradient(135deg, var(--hw-orange), #E35D0C); color: #1A0B00; font: 700 10.5px/1 var(--f-body); letter-spacing: .06em;
  text-transform: uppercase; box-shadow: 0 6px 16px -6px rgba(227,93,12,.8); pointer-events: none; white-space: nowrap; }
.niche-frame .hw-ribbon { top: 12px; right: 12px; }
.card-img .hw-ribbon { top: auto; bottom: 10px; left: 10px; right: auto; }   /* the Shopee badge sits at the top */

/* ---- Spiders dropping on their thread above the section titles ---------------------------------- */
.hw-spider-host { position: relative; }
.hw-spider { position: absolute; top: 0; right: 6%; width: 26px; z-index: 2; pointer-events: none;
  transform: translateY(-160px); transition: transform 1.4s cubic-bezier(.3,1.6,.5,1); }
.hw-spider::before { content: ""; position: absolute; left: 50%; bottom: 70%; width: 1px; height: 220px; background: linear-gradient(transparent, rgba(150,130,120,.8)); }
.hw-spider svg { display: block; width: 100%; height: auto; }
.hw-spider.is-in { transform: translateY(-10px); }
.hw-spider.is-in svg { animation: hw-bob 2.8s ease-in-out 1.4s infinite; }
@keyframes hw-bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(8px) rotate(4deg); } }

/* ---- Bats flying out of an Add to bag button ----------------------------------------------- */
.hw-burst { position: fixed; z-index: 90; width: 22px; color: #1A0B26; pointer-events: none; }
.hw-burst svg { display: block; width: 100%; fill: currentColor; animation: hw-flap .18s ease-in-out infinite alternate; }

/* ---- Trick or treat: the floating pumpkin and the scent it reveals ---------------------------- */
.hw-tot { position: fixed; left: 18px; bottom: 18px; z-index: 60; width: 64px; height: 64px; padding: 6px; border: 0; border-radius: 50%; cursor: pointer;
  background: radial-gradient(circle, rgba(255,138,31,.35), rgba(21,10,38,.85) 70%); box-shadow: 0 10px 30px -8px rgba(255,138,31,.6); }
.hw-tot svg { width: 100%; height: auto; overflow: visible; }
.hw-tot:hover svg, .hw-tot:focus-visible svg { transform: scale(1.08) rotate(-6deg); transition: transform .2s; }
.hw-tot-label { position: absolute; left: 70px; top: 50%; transform: translateY(-50%); padding: 7px 12px; border-radius: 99px; white-space: nowrap;
  background: var(--hw-night); color: var(--hw-ember); font: 600 11px/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; }
.hw-tot.is-shaking svg { animation: hw-shake .5s ease-in-out 2; }
@keyframes hw-shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }
.hw-pumpkin { pointer-events: auto; cursor: pointer; }

.hw-treat { position: fixed; left: 18px; bottom: 96px; z-index: 61; width: min(320px, calc(100vw - 36px)); border-radius: 24px; overflow: hidden;
  background: var(--paper); color: var(--ink); box-shadow: 0 30px 70px -20px rgba(21,10,38,.7), 0 0 0 2px var(--hw-orange);
  animation: hw-pop .45s cubic-bezier(.3,1.5,.5,1); }
@keyframes hw-pop { from { transform: translateY(20px) scale(.9); opacity: 0; } }
.hw-treat-img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--cream); }
.hw-treat-body { padding: 16px 18px 18px; }
.hw-treat-tag { font: 700 10.5px/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); }
.hw-treat h3 { margin-top: 8px; font: 600 24px/1.1 var(--f-display); color: var(--navy); }
.hw-treat-meta { margin-top: 4px; font-size: 13px; color: var(--muted); }
.hw-treat-deal { margin-top: 10px; font-size: 13px; color: var(--ink); }
.hw-treat-row { display: flex; gap: 8px; margin-top: 14px; }
.hw-treat-row .btn { flex: 1; min-height: 42px; padding: 0 12px; font-size: 13px; }
.hw-treat-again { margin-top: 10px; border: 0; background: none; color: var(--gold-text); font: 600 12.5px var(--f-body); text-decoration: underline; cursor: pointer; }
.hw-treat-close { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(21,10,38,.7); color: #fff; font-size: 18px; cursor: pointer; }

/* ---- Top banner ---------------------------------------------------------------------------- */
.hw .announce { background: linear-gradient(90deg, var(--hw-plum), #3B1658 50%, var(--hw-plum)); color: #FCE3C8; }
.hw .announce strong { color: var(--hw-ember); }
.hw .announce a { color: #fff; }
.hw .announce .dot { background: var(--hw-orange); }

/* ---- Landing: the night over the kiosk photo ------------------------------------------------ */
.hw-night, .hw-bats { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hw-sky { position: absolute; inset: 0;
  background: radial-gradient(60% 45% at 50% 100%, rgba(255,138,31,.28), transparent 70%),
    linear-gradient(180deg, rgba(18,10,36,.9) 0%, rgba(42,18,69,.62) 42%, rgba(18,10,36,.55) 70%, rgba(10,5,20,.85) 100%); }
.hw .ent-veil { background-color: rgba(18,10,36,.2); }

.hw-stars i { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%;
  background: #FFF6E0; box-shadow: 0 0 6px #FFF6E0; animation: hw-twinkle 3.2s ease-in-out var(--d) infinite; }
@keyframes hw-twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

.hw-moon { position: absolute; top: 12%; right: 4%; width: clamp(70px, 8vw, 120px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 36% 34%, #FFFBEA 0%, #FCE9B8 48%, #EBC97C 100%);
  box-shadow: 0 0 60px 18px rgba(252,233,184,.35), 0 0 160px 60px rgba(255,170,60,.18); }
/* Craters */
.hw-moon::before, .hw-moon::after { content: ""; position: absolute; border-radius: 50%; background: rgba(205,160,80,.28); }
.hw-moon::before { width: 22%; height: 22%; left: 56%; top: 28%; }
.hw-moon::after { width: 14%; height: 14%; left: 30%; top: 60%; box-shadow: 40px 6px 0 -2px rgba(205,160,80,.22); }

.hw-mist { position: absolute; left: -30%; width: 160%; height: 34%; bottom: 0; border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(214,200,240,.30), transparent 70%); filter: blur(18px); }
.hw-mist-a { animation: hw-drift 26s ease-in-out infinite alternate; }
.hw-mist-b { bottom: 4%; height: 24%; opacity: .7; animation: hw-drift 34s ease-in-out -12s infinite alternate-reverse; }
@keyframes hw-drift { from { transform: translateX(-8%); } to { transform: translateX(8%); } }

/* Pumpkins along the bottom, glowing from inside */
/* The landing runs one banner-height below the screen, so the pumpkins sit that much higher. */
.hw-pumpkin { position: absolute; left: var(--x); bottom: 38px; width: var(--w); transform: translateX(-50%);
  filter: drop-shadow(0 0 18px rgba(255,138,31,.55)); }
.hw-pumpkin svg { display: block; width: 100%; height: auto; overflow: visible; }
.hw-body { fill: #F07A1A; }
.hw-rib { fill: #D9600E; }
.hw-stalk { fill: #3E5A23; }
.hw-face { fill: #FFE27A; animation: hw-flicker 2.6s steps(1) calc(var(--k) * -.7s) infinite; }
@keyframes hw-flicker { 0%, 100% { fill: #FFE27A; } 30% { fill: #FFC64A; } 55% { fill: #FFF1A8; } 80% { fill: #FFB238; } }

/* Bats: each crosses the sky, flapping as it goes */
.hw-bat { position: absolute; top: var(--y); left: 0; width: var(--w); color: #0B0614;
  animation: hw-fly 16s linear var(--d) infinite; opacity: 0; }
.hw-bat svg { display: block; width: 100%; height: auto; fill: currentColor; animation: hw-flap .32s ease-in-out infinite alternate; transform-origin: 50% 60%; }
@keyframes hw-fly {
  0% { transform: translate(-12vw, 0); opacity: 0; }
  6% { opacity: .95; }
  50% { transform: translate(50vw, -5vh); }
  94% { opacity: .95; }
  100% { transform: translate(112vw, 3vh); opacity: 0; }
}
@keyframes hw-flap { from { transform: scaleY(1); } to { transform: scaleY(.45); } }

/* The greeting and the bottles take on the pumpkin glow */
.hw .ent-copy h1 em { color: var(--hw-ember); text-shadow: 0 0 30px rgba(255,138,31,.55), 0 6px 40px rgba(0,0,0,.35); }
.hw .ent-copy .eyebrow { color: var(--hw-ember); }
.hw .wb-b img { filter: drop-shadow(0 30px 30px rgba(0,0,0,.6)) drop-shadow(0 0 34px rgba(255,138,31,.38)); }
.hw .wb-b:hover img { filter: drop-shadow(0 30px 30px rgba(0,0,0,.6)) drop-shadow(0 0 46px rgba(255,138,31,.7)); }
.hw .wb-b::after { background: radial-gradient(closest-side, rgba(255,138,31,.5), transparent); }
.hw .ent-welcome-title em, .hw .ent-chapters li.is-on::before { color: var(--hw-ember); }
.hw .ent-chapters li.is-on::before { background: var(--hw-orange); }
.hw .entrance .btn-gold { background: var(--hw-orange); color: #1A0B00; }

/* ---- Offer section: the same night sky ------------------------------------------------------ */
.hw .boxes { background: radial-gradient(70% 50% at 50% 0%, rgba(255,138,31,.18), transparent 70%),
  linear-gradient(180deg, var(--hw-night), var(--hw-plum) 60%, var(--hw-night)); }
.hw .boxes h2 em { color: var(--hw-ember); }
.hw .boxes-tag { color: var(--hw-ember); border-color: rgba(255,179,71,.45); }
.hw .boxes-tag::before { background: var(--hw-orange); box-shadow: 0 0 0 4px rgba(255,138,31,.25); }
.hw .gift.is-featured { outline-color: var(--hw-orange); }
.hw .gift-flag { background: var(--hw-plum); }
.hw .gift.is-featured .gift-flag { background: var(--hw-orange); color: #1A0B00; }
.hw .gift-art { background: radial-gradient(80% 70% at 50% 100%, rgba(255,138,31,.22), transparent 70%); }
.hw .gift-box { background: linear-gradient(180deg, #4A1E6E, var(--hw-plum)); }
.hw .gift-box::before { background: linear-gradient(90deg, #E36A0C, var(--hw-ember), #E36A0C); }
.hw .gift-box i::before, .hw .gift-box i::after { border-color: var(--hw-orange); }
.hw .gift .btn-gold { background: var(--hw-plum); }
.hw .gift .btn-gold:hover { background: #3B1658; }

/* ---- Phones and reduced motion ---------------------------------------------------------- */
@media (max-width: 640px) {
  .hw-tot { left: 12px; bottom: 92px; width: 52px; height: 52px; }   /* above the wall arrows */
  .hw-tot-label { display: none; }
  .hw-treat { left: 12px; bottom: 152px; max-height: calc(100vh - 170px); overflow: auto; }
  .hw-moon { top: 37%; right: 7%; width: 50px; }
  .hw-pumpkin { bottom: 56px; }   /* the banner wraps to two lines on phones */
  .hw-bat { animation-duration: 11s; }
}
@media (prefers-reduced-motion: reduce) {
  .hw-bats { display: none; }
  .hw-spider, .hw-tot.is-shaking svg, .hw-treat { transition: none; animation: none; }
  .hw-stars i, .hw-mist, .hw-face { animation: none; }
  .hw-stars i { opacity: .7; }
}
