/* Home page slides (shop page + admin preview) */
.hs{position:relative;background:#2a1a12}
.hs-box{position:relative;overflow:hidden;outline:none;container:hs/inline-size}
.hs-track{display:flex;transition:transform .7s cubic-bezier(.65,0,.25,1);touch-action:pan-y}
.hs-track.fx-fade{display:grid;transition:none}
.hs-track.fx-fade>.hs-slide{grid-area:1/1;opacity:0;visibility:hidden;transition:opacity .8s ease,visibility 0s .8s}
.hs-track.fx-fade>.hs-slide.on{opacity:1;visibility:visible;transition:opacity .8s ease}
.hs-slide{flex:0 0 100%;position:relative;overflow:hidden;min-height:440px;display:flex;
  --bg:#2a1a12;--ink:#fbf6ec;--soft:#e8d9cc;--hl:#ff8a5c;--kick:#f3c98b;--btn:#b8323a;--btn-ink:#fff;
  background:var(--bg);color:var(--ink)}
.hs-slide.th-green{--bg:#2e7a4f;--soft:#e3f1e8;--hl:#ffd27a;--kick:#cfe8d9}
.hs-slide.th-red{--bg:#b8323a;--ink:#fff;--soft:#fde5e2;--hl:#ffe08a;--kick:#ffd3cf;--btn:#2a1a12}
.hs-slide.th-orange{--bg:#f2a541;--ink:#2a1a12;--soft:#4a2c1c;--hl:#8e2229;--kick:#5a2330;--btn:#2a1a12}
.hs-slide.th-cream{--bg:#f3e6cc;--ink:#2a1a12;--soft:#5a4436;--hl:#b8323a;--kick:#2e7a4f}
.hs-in{width:100%;max-width:1240px;margin:0 auto;padding:44px max(16px,4vw) 64px;display:flex;align-items:center;gap:32px;position:relative;z-index:2}
.hs-text{flex:1 1 0;display:flex;flex-direction:column;gap:14px;max-width:640px}
.hs-kick{color:var(--kick);font-weight:600;letter-spacing:.02em;margin:0}
.hs-title{font:600 clamp(32px,4.8vw,58px)/1.08 Mitr,sans-serif;margin:0;color:var(--ink)}
.hs-hl{display:block;color:var(--hl)}
.hs-body{color:var(--soft);font-size:17px;max-width:34em;margin:0}
.hs-btns{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:4px}
.hs-btn{display:inline-flex;align-items:center;min-height:48px;padding:0 24px;border-radius:999px;background:var(--btn);color:var(--btn-ink);font:600 16px Anuphan,sans-serif;text-decoration:none;box-shadow:0 6px 16px rgba(0,0,0,.18);transition:transform .15s}
.hs-btn:hover{transform:translateY(-1px)}
.hs-until{font-size:14px;font-weight:600;padding:6px 12px;border-radius:999px;background:rgba(255,255,255,.16);color:var(--ink)}
.th-orange .hs-until,.th-cream .hs-until{background:rgba(42,26,18,.08)}
.hs-media{flex:0 1 46%;display:flex;justify-content:center;align-items:center;position:relative;align-self:stretch}
.hs-img{width:100%;max-height:340px;aspect-ratio:4/3;object-fit:cover;border-radius:24px;box-shadow:0 16px 40px rgba(0,0,0,.3)}
.hs-art{width:100%;max-height:340px}

/* full-photo styles */
.hs-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
.hs-shade{position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,color-mix(in srgb,var(--bg) 90%,transparent) 0%,color-mix(in srgb,var(--bg) 78%,transparent) 38%,color-mix(in srgb,var(--bg) 25%,transparent) 70%,transparent 100%)}
.st-photo .hs-text,.st-center .hs-text{text-shadow:0 2px 14px rgba(0,0,0,.35)}
.st-photo.th-orange .hs-text,.st-photo.th-cream .hs-text,.st-center.th-orange .hs-text,.st-center.th-cream .hs-text{text-shadow:none}
.st-photo .hs-in{align-items:flex-end}
.st-photo,.st-center{--ink:#fff;--soft:#f3ece4}
.st-photo.th-orange,.st-photo.th-cream,.st-center.th-orange,.st-center.th-cream{--ink:#2a1a12;--soft:#3a2418}
.st-photo:not(.has-img) .hs-shade,.st-center:not(.has-img) .hs-shade{display:none}
.st-center .hs-shade{background:color-mix(in srgb,var(--bg) 62%,rgba(0,0,0,.25))}
.st-center .hs-in{justify-content:center;text-align:center}
.st-center .hs-text{align-items:center;max-width:780px}
.st-center .hs-body{margin-inline:auto}
.st-center .hs-btns{justify-content:center}
.st-center .hs-kick{font:italic 700 20px Fraunces,serif;letter-spacing:.04em}
.st-center .hs-title{font-size:clamp(36px,5.6vw,68px)}

/* promo */
.st-promo .hs-deco{position:absolute;inset:0;z-index:1;opacity:.14;background-image:radial-gradient(currentColor 2px,transparent 2.5px);background-size:22px 22px;-webkit-mask-image:linear-gradient(90deg,transparent 30%,#000);mask-image:linear-gradient(90deg,transparent 30%,#000)}
.st-promo .hs-disc{width:min(320px,100%);aspect-ratio:1;border-radius:50%;overflow:hidden;background:rgba(255,255,255,.12);display:grid;place-items:center;box-shadow:0 0 0 12px rgba(255,255,255,.1)}
.st-promo .hs-disc .hs-img{max-height:none;height:100%;aspect-ratio:auto;border-radius:0;box-shadow:none}
.st-promo .hs-disc .hs-art{width:88%;max-height:none}
.hs-badge{position:absolute;top:4%;right:calc(50% - 200px);width:132px;height:132px;display:grid;place-items:center;text-align:center;color:#2a1a12;background:#ffd23f;transform:rotate(-10deg);
  clip-path:polygon(50% 0%,61% 11%,75% 6%,79% 21%,94% 25%,89% 39%,100% 50%,89% 61%,94% 75%,79% 79%,75% 94%,61% 89%,50% 100%,39% 89%,25% 94%,21% 79%,6% 75%,11% 61%,0% 50%,11% 39%,6% 25%,21% 21%,25% 6%,39% 11%)}
.hs-badge span{font:600 26px/1 Mitr,sans-serif;max-width:96px;word-break:break-word}
.st-promo:not(.has-img) .hs-badge{position:static;width:200px;height:200px;transform:rotate(-8deg)}
.st-promo:not(.has-img) .hs-badge span{font-size:40px;max-width:150px}
.th-orange .hs-badge{background:#fff}
.hs-code{display:inline-flex;gap:6px;align-items:center;padding:8px 14px;border-radius:12px;border:2px dashed currentColor;font-size:15px}
.hs-code b{font:600 17px Mitr,sans-serif;letter-spacing:.06em}

/* news */
.st-news .hs-in{gap:28px}
.st-news .hs-text{background:rgba(255,255,255,.55);border-radius:24px;padding:26px 28px;max-width:720px;box-shadow:0 10px 30px rgba(42,26,18,.08)}
.st-news:not(.th-cream) .hs-text{background:rgba(255,255,255,.08)}
.st-news .hs-title{font-size:clamp(28px,3.8vw,44px)}
.hs-tag{display:flex;align-items:center;gap:8px;margin:0;font-weight:600;color:var(--kick)}
.hs-tag svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.st-news .hs-media{flex-basis:36%}

/* controls */
.hs-arrow{position:absolute;top:50%;z-index:5;width:48px;height:48px;margin-top:-24px;border-radius:50%;border:0;background:rgba(255,255,255,.88);color:#2a1a12;display:grid;place-items:center;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.2);opacity:0;transition:opacity .2s}
.hs-arrow svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.hs-arrow.prev{left:14px}.hs-arrow.next{right:14px}
.hs-box:hover .hs-arrow,.hs-arrow:focus-visible{opacity:1}
.hs-ctl{position:absolute;left:0;right:0;bottom:16px;z-index:5;display:flex;justify-content:center;align-items:center;gap:10px;pointer-events:none}
.hs-ctl>*{pointer-events:auto}
.hs-dots{display:flex;gap:6px;padding:6px 10px;border-radius:999px;background:rgba(0,0,0,.28);backdrop-filter:blur(6px)}
.hs-dots button{position:relative;width:10px;height:10px;padding:0;border:0;border-radius:999px;background:rgba(255,255,255,.55);cursor:pointer;overflow:hidden;transition:width .3s}
.hs-dots button::after{content:"";position:absolute;inset:-12px -4px}
.hs-dots button[aria-current]{width:34px;background:rgba(255,255,255,.4)}
.hs-dots i{position:absolute;inset:0;width:0;background:#fff;border-radius:inherit}
.hs-dots button[aria-current] i{width:100%}
.hs-dots i.run{width:0;animation:hs-fill var(--hs-dur,6s) linear forwards}
.hs-box.paused .hs-dots i.run{animation-play-state:paused}
@keyframes hs-fill{to{width:100%}}
.hs-play{width:30px;height:30px;border-radius:50%;border:0;background:rgba(0,0,0,.28);backdrop-filter:blur(6px);cursor:pointer;position:relative}
.hs-play::before{content:"";position:absolute;left:11px;top:9px;border:6px solid transparent;border-left:9px solid #fff;border-right:0}
.hs-play.is-playing::before{left:10px;top:10px;width:3px;height:10px;border:0;border-left:3px solid #fff;border-right:3px solid #fff;box-sizing:content-box;width:4px}

/* layout follows the slide's own width, so the admin phone preview matches real phones */
@container hs (max-width:720px){
  .hs-slide{min-height:330px}
  .hs-in{padding:26px 18px 54px;gap:14px}
  .hs-text{gap:10px}
  .hs-title{font-size:30px}
  .st-center .hs-title{font-size:34px}
  .hs-body{font-size:15px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  .hs-btn{min-height:44px;padding:0 18px;font-size:15px}
  .st-split .hs-in,.st-news .hs-in{flex-direction:column-reverse;align-items:stretch}
  .st-split .hs-media{max-height:150px}
  .st-split .hs-img{max-height:150px;aspect-ratio:auto;height:150px}
  .st-split .hs-art{max-height:150px}
  .st-news .hs-media{display:none}
  .st-news .hs-text{padding:18px}
  .st-promo .hs-in{flex-direction:column-reverse;align-items:stretch}
  .st-promo .hs-media{flex:none;flex-direction:row;justify-content:flex-start;gap:12px;align-self:auto}
  .st-promo .hs-disc{width:96px;box-shadow:0 0 0 5px rgba(255,255,255,.1)}
  .st-promo .hs-badge,.st-promo:not(.has-img) .hs-badge{position:static;width:96px;height:96px;transform:rotate(-8deg)}
  .st-promo .hs-badge span,.st-promo:not(.has-img) .hs-badge span{font-size:19px;max-width:72px}
  .hs-shade{background:linear-gradient(0deg,color-mix(in srgb,var(--bg) 90%,transparent) 0%,color-mix(in srgb,var(--bg) 55%,transparent) 55%,transparent 100%)}
  .st-center .hs-shade{background:color-mix(in srgb,var(--bg) 60%,rgba(0,0,0,.3))}
  .hs-arrow{display:none}
  .hs-ctl{bottom:12px}
}
@media (prefers-reduced-motion:reduce){.hs-track,.hs-track.fx-fade>.hs-slide{transition:none}.hs-btn{transition:none}}
