/* ร้านตรายางบุรีรัมย์ — Didea Graphic Design
   Brand: orange #F05020 sampled from the shop logo, on white. */

:root {
  --o: #F05020;
  --o-600: #DE4416;
  --o-700: #B93611;
  --o-50: #FFF4F0;
  --o-100: #FFE4DA;
  --ink: #16130F;
  --ink-2: #3D372F;
  --muted: #6E675E;
  --line: #EDE7E0;
  --bg: #FFFFFF;
  --bg-2: #FBF8F5;
  --gold: #C08A2E;
  --green: #06C755;
  --fb: #1877F2;
  --r: 16px;
  --r-sm: 10px;
  --r-lg: 26px;
  --sh-1: 0 1px 2px rgba(22,19,15,.05), 0 2px 8px rgba(22,19,15,.05);
  --sh-2: 0 4px 12px rgba(22,19,15,.07), 0 12px 32px rgba(22,19,15,.07);
  --sh-o: 0 6px 20px rgba(240,80,32,.28);
  --head-h: 68px;
  --font: 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --display: 'Prompt', var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.3; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.85rem, 1.2rem + 2.6vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.3rem); }
h3 { font-size: clamp(1.12rem, 1rem + .5vw, 1.35rem); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
@media (max-width: 640px) { .wrap { width: min(1200px, 100% - 1.75rem); } }
.ic { flex: none; }
.ic-sm { width: 18px; height: 18px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 999; background: var(--o); color: #fff; padding: .6rem 1rem; border-radius: var(--r-sm); }
:focus-visible { outline: 3px solid var(--o); outline-offset: 2px; border-radius: 4px; }
.hide-sm { display: inline; } .only-sm { display: none; }
@media (max-width: 560px) { .hide-sm { display: none; } .only-sm { display: inline; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  padding: .65rem 1.15rem; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .94rem; white-space: nowrap; cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--o); color: #fff; box-shadow: var(--sh-o); }
.btn-primary:hover { background: var(--o-600); box-shadow: 0 8px 26px rgba(240,80,32,.36); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--sh-1); }
.btn-ghost:hover { border-color: var(--o); color: var(--o); }
.btn-line { background: var(--green); color: #fff; }
.btn-line:hover { filter: brightness(.94); }
.btn-lg { padding: .9rem 1.7rem; font-size: 1.03rem; }
.btn-block { width: 100%; }

/* ---------- Announce bar ---------- */
.announce { background: linear-gradient(100deg, var(--ink) 0%, #2A231C 100%); color: #fff; font-size: .84rem; }
.announce-in { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .48rem 0; text-align: center; }
.announce .ic { color: var(--o); }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.site-head.scrolled { box-shadow: var(--sh-1); }
.head-in { display: flex; align-items: center; gap: 1rem; min-height: var(--head-h); }
.brand { display: flex; align-items: center; gap: .65rem; flex: none; }
.brand img { border-radius: 50%; width: 46px; height: 46px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.25; }
.brand-txt b { font-family: var(--display); font-size: 1.06rem; font-weight: 700; letter-spacing: -.01em; }
.brand-txt small { font-size: .72rem; color: var(--muted); }
@media (max-width: 900px) { .brand-txt small { display: none; } }

.nav { display: flex; gap: .2rem; margin-left: auto; }
.nav a { padding: .5rem .78rem; border-radius: 999px; font-size: .93rem; font-weight: 500; color: var(--ink-2); transition: background .15s, color .15s; }
.nav a:hover { background: var(--o-50); color: var(--o-700); }
.nav a.on { color: var(--o); font-weight: 600; background: var(--o-50); }
.head-cta { display: flex; align-items: center; gap: .5rem; margin-left: auto; flex: none; }
.nav + .head-cta { margin-left: .75rem; }
.burger { display: none; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: .45rem; color: var(--ink); }

/* Narrow phones: the LINE button lives in the bottom dock, so drop it from the
   header and let the shop name truncate rather than push the row wider. */
@media (max-width: 620px) {
  .head-in { gap: .55rem; }
  .head-cta .btn-line { display: none; }
  .brand { min-width: 0; gap: .5rem; }
  .brand img { width: 40px; height: 40px; }
  .brand-txt { min-width: 0; }
  .brand-txt b { font-size: .97rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .btn { padding: .6rem .95rem; }
}

@media (max-width: 1040px) {
  .burger { display: grid; place-items: center; }
  .nav {
    position: fixed; inset: var(--head-h) 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1.25rem;
    box-shadow: var(--sh-2); transform: translateY(-120%); transition: transform .28s cubic-bezier(.4,0,.2,1);
    max-height: calc(100dvh - var(--head-h)); overflow-y: auto; margin-left: 0;
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: .8rem .5rem; border-radius: 10px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a:last-child { border-bottom: 0; }
  .head-cta { margin-left: auto; }
}

/* ---------- Hero / slider ---------- */
.hero { position: relative; background: linear-gradient(165deg, var(--o-50) 0%, #fff 58%); padding: clamp(1.5rem, 3vw, 3rem) 0 clamp(2rem, 4vw, 3.5rem); overflow: hidden; }
.hero::before {
  content: ''; position: absolute; top: -28%; right: -12%; width: 46rem; height: 46rem; border-radius: 50%;
  background: radial-gradient(circle, rgba(240,80,32,.13) 0%, rgba(240,80,32,0) 68%); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 3.5rem); align-items: center; position: relative; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.eyebrow { display: inline-flex; align-items: center; gap: .45rem; background: #fff; border: 1.5px solid var(--o-100); color: var(--o-700); padding: .38rem .9rem; border-radius: 999px; font-size: .82rem; font-weight: 600; box-shadow: var(--sh-1); margin-bottom: 1rem; }
.eyebrow .ic { color: var(--o); }
.hero h1 { margin-bottom: .55rem; }
.hero h1 .hl { color: var(--o); position: relative; white-space: nowrap; }
.hero-lead { font-size: clamp(1rem, .95rem + .3vw, 1.14rem); color: var(--ink-2); max-width: 34rem; margin-bottom: 1.5rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.75rem; }
.hero-pills { display: flex; flex-wrap: wrap; gap: .5rem 1.35rem; }
.hero-pill { display: inline-flex; align-items: center; gap: .45rem; font-size: .89rem; font-weight: 500; color: var(--ink-2); }
.hero-pill .ic { color: var(--green); width: 19px; height: 19px; }

/* slider — รูปแสดงเต็มใบเสมอ (contain) และคำบรรยายอยู่ใต้รูป ไม่ทับตัวหนังสือในรูป */
/* จำกัดความกว้างไว้ เพราะรูปแสดงเต็มใบ (1:1) ความสูงจึงเท่ากับความกว้าง */
.slider { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-2); background: #fff; border: 1px solid var(--line); width: 100%; max-width: 30rem; margin-inline: auto; }
.slides { display: flex; align-items: stretch; transition: transform .55s cubic-bezier(.45,0,.15,1); }
.slide { min-width: 100%; display: flex; flex-direction: column; }
.slide-media { aspect-ratio: 1/1; background: var(--o-50); }
.slide-media img { width: 100%; height: 100%; object-fit: contain; }
.slide-cap { flex: 1; padding: 1rem 1.35rem 1.3rem; color: #fff; background: var(--ink); }
.slide-cap b { font-family: var(--display); font-size: clamp(1.05rem, .9rem + .7vw, 1.45rem); display: block; line-height: 1.3; }
.slide-cap span { font-size: .87rem; opacity: .82; display: block; margin-top: .15rem; }
.slide-cap .btn { margin-top: .85rem; }
/* กรอบใสทับเฉพาะส่วนรูป เพื่อวางลูกศรให้อยู่กึ่งกลางรูปพอดี */
.sl-navwrap { position: absolute; inset: 0 0 auto 0; aspect-ratio: 1/1; pointer-events: none; }
.sl-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center; box-shadow: var(--sh-1); transition: background .15s; pointer-events: auto; }
.sl-nav:hover { background: #fff; color: var(--o); }
.sl-prev { left: .75rem; } .sl-next { right: .75rem; }
.sl-dots { position: absolute; bottom: 1.15rem; right: 1.35rem; display: flex; gap: .4rem; }
.sl-dot { width: 8px; height: 8px; border-radius: 999px; border: 0; background: rgba(255,255,255,.4); padding: 0; transition: width .25s, background .25s; }
.sl-dot.on { width: 26px; background: #fff; }

/* ---------- Sections ---------- */
.sec { padding: clamp(2.75rem, 5vw, 5rem) 0; }
.sec-alt { background: var(--bg-2); }
.sec-head { text-align: center; max-width: 46rem; margin: 0 auto clamp(1.75rem, 3vw, 2.75rem); }
.sec-head.left { text-align: left; margin-inline: 0; }
.sec-tag { display: inline-block; color: var(--o); font-weight: 600; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .4rem; }
.sec-head p { color: var(--muted); margin: 0; }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1.25rem; }
.cat-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1); transition: transform .22s ease, box-shadow .22s ease, border-color .22s; display: flex; flex-direction: column; }
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--sh-2); border-color: var(--o-100); }
.cat-media { aspect-ratio: 1/1; overflow: hidden; background: var(--bg-2); }
.cat-media img { width: 100%; height: 100%; object-fit: contain; transition: opacity .3s ease; }
.cat-card:hover .cat-media img { opacity: .92; }
.cat-body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.cat-ico { width: 44px; height: 44px; border-radius: 13px; background: var(--o-50); color: var(--o); display: grid; place-items: center; margin: -3.2rem 0 .8rem; position: relative; border: 3px solid #fff; box-shadow: var(--sh-1); }
.cat-body h3 { margin-bottom: .2rem; }
.cat-tag { color: var(--o); font-weight: 600; font-size: .88rem; margin-bottom: .5rem; }
.cat-body p { color: var(--muted); font-size: .91rem; flex: 1; }
.cat-more { display: inline-flex; align-items: center; gap: .35rem; color: var(--o); font-weight: 600; font-size: .92rem; margin-top: .4rem; }
.cat-card:hover .cat-more .ic { transform: translateX(3px); }
.cat-more .ic { width: 17px; height: 17px; transition: transform .2s; }

/* ---------- Product cards ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); gap: 1.1rem; }
.prod {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--sh-1);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.prod:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--o-100); }
.prod-media { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--bg-2); }
.prod-media img { width: 100%; height: 100%; object-fit: contain; transition: opacity .3s ease; }
.prod:hover .prod-media img { opacity: .92; }
.badge { position: absolute; top: .65rem; left: .65rem; background: var(--o); color: #fff; font-size: .74rem; font-weight: 600; padding: .22rem .62rem; border-radius: 999px; box-shadow: var(--sh-1); }
.badge-cat { position: absolute; top: .65rem; right: .65rem; background: rgba(255,255,255,.94); color: var(--ink-2); font-size: .72rem; font-weight: 600; padding: .22rem .6rem; border-radius: 999px; }
.prod-body { padding: .95rem 1rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.prod-body h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.prod-body p { color: var(--muted); font-size: .86rem; flex: 1; margin-bottom: .75rem; }
.price { display: flex; align-items: baseline; gap: .3rem; margin-bottom: .1rem; }
.price b { font-family: var(--display); color: var(--o); font-size: 1.4rem; font-weight: 700; line-height: 1; }
.price small { color: var(--muted); font-size: .82rem; }
.price-pre { color: var(--muted); font-size: .8rem; }
.price-ask { font-family: var(--display); color: var(--o); font-weight: 600; font-size: 1.05rem; }

/* ---------- Promotions ---------- */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.1rem; }
.promo { position: relative; border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-1); background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.promo:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.promo-media { aspect-ratio: 1/1; overflow: hidden; background: var(--bg-2); }
.promo-media img { width: 100%; height: 100%; object-fit: contain; }
.promo-body { padding: 1rem 1.1rem 1.15rem; flex: 1; }
.promo-badge { display: inline-block; background: var(--ink); color: #fff; font-size: .73rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; margin-bottom: .45rem; }
.promo-body h3 { font-size: 1.02rem; margin-bottom: .25rem; }
.promo-body p { color: var(--muted); font-size: .86rem; margin: 0; }

/* ---------- Feature strip ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1rem; }
.feat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem 1.25rem; text-align: center; box-shadow: var(--sh-1); }
.feat-ico { width: 50px; height: 50px; border-radius: 15px; background: var(--o-50); color: var(--o); display: grid; place-items: center; margin: 0 auto .8rem; }
.feat h3 { font-size: 1.02rem; margin-bottom: .25rem; }
.feat p { color: var(--muted); font-size: .87rem; margin: 0; }

/* ---------- Product detail ---------- */
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .85rem; color: var(--muted); padding: 1.1rem 0; }
.crumb a:hover { color: var(--o); }
.crumb .ic { width: 14px; height: 14px; opacity: .55; }
.pd-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; padding-bottom: 1rem; }
@media (max-width: 900px) { .pd-grid { grid-template-columns: 1fr; } }
.pd-main { border-radius: var(--r-lg); overflow: hidden; background: var(--bg-2); box-shadow: var(--sh-1); aspect-ratio: 1/1; }
.pd-main img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr)); gap: .55rem; margin-top: .65rem; }
.pd-thumb { border: 2px solid transparent; border-radius: 11px; overflow: hidden; padding: 0; background: var(--bg-2); aspect-ratio: 1/1; transition: border-color .18s; }
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumb.on { border-color: var(--o); }
.pd-info h1 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.15rem); margin-bottom: .5rem; }
.pd-cat { display: inline-block; background: var(--o-50); color: var(--o-700); font-size: .82rem; font-weight: 600; padding: .25rem .75rem; border-radius: 999px; margin-bottom: .8rem; }
.pd-short { color: var(--ink-2); font-size: 1.03rem; }
.pd-price { background: linear-gradient(135deg, var(--o-50), #fff); border: 1.5px solid var(--o-100); border-radius: var(--r); padding: 1.1rem 1.25rem; margin: 1.15rem 0; }
.pd-price .price b { font-size: 2.1rem; }
.pd-price .note { color: var(--muted); font-size: .85rem; margin: .3rem 0 0; display: flex; align-items: flex-start; gap: .4rem; }
.pd-price .note .ic { margin-top: .22rem; }
.pd-cta { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: 1.4rem; }
.pd-feat { display: grid; gap: .55rem; margin-bottom: 1.5rem; }
.pd-feat li { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.pd-feat .ic { color: var(--green); width: 20px; height: 20px; margin-top: .18rem; }
.pd-desc { border-top: 1px solid var(--line); padding-top: 1.35rem; }
.pd-desc h2 { font-size: 1.25rem; }
.pd-desc p { color: var(--ink-2); }
.spec-tbl { width: 100%; border-collapse: collapse; font-size: .93rem; margin-top: .6rem; }
.spec-tbl th, .spec-tbl td { text-align: left; padding: .62rem .85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-tbl th { color: var(--muted); font-weight: 500; width: 38%; background: var(--bg-2); }
.spec-tbl tr:first-child th { border-top-left-radius: 10px; }

/* ---------- Reviews ---------- */
.rev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.rev { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-1); background: #fff; }
.rev img { width: 100%; aspect-ratio: 1/1; object-fit: contain; background: var(--bg-2); }
.rev figcaption { padding: .7rem .9rem .85rem; font-size: .84rem; color: var(--muted); }
.rev-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(13.5rem, 1fr); gap: 1rem; overflow-x: auto; padding-bottom: .75rem; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.rev-strip > * { scroll-snap-align: start; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 52rem; margin-inline: auto; display: grid; gap: .75rem; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); overflow: hidden; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem 1.25rem; font-weight: 600; cursor: pointer; list-style: none; font-family: var(--display); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--o); font-size: 1.5rem; line-height: 1; flex: none; transition: transform .22s; font-weight: 400; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .ans { padding: 0 1.25rem 1.15rem; color: var(--ink-2); font-size: .95rem; }

/* ---------- Contact ---------- */
.ct-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
@media (max-width: 900px) { .ct-grid { grid-template-columns: 1fr; } }
.ct-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.25rem, 2.5vw, 2rem); box-shadow: var(--sh-1); }
.ct-list { display: grid; gap: 1rem; }
.ct-item { display: flex; gap: .85rem; align-items: flex-start; }
.ct-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--o-50); color: var(--o); display: grid; place-items: center; flex: none; }
.ct-item b { display: block; font-size: .82rem; color: var(--muted); font-weight: 500; }
.ct-item a, .ct-item span { font-weight: 600; font-size: .98rem; }
.ct-item a:hover { color: var(--o); }
.map-wrap { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); margin-top: 1.25rem; background: var(--bg-2); }
.map-wrap iframe { width: 100%; height: 340px; border: 0; display: block; }
.map-img { width: 100%; display: block; }

form .row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { form .row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .87rem; font-weight: 600; margin-bottom: .32rem; color: var(--ink-2); }
.field label .req { color: var(--o); }
.field input, .field select, .field textarea {
  width: 100%; padding: .72rem .9rem; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font: inherit; font-size: .96rem; background: #fff; color: var(--ink); transition: border-color .16s, box-shadow .16s;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--o); box-shadow: 0 0 0 3.5px var(--o-100); }
.form-note { font-size: .82rem; color: var(--muted); margin-top: .75rem; display: flex; align-items: flex-start; gap: .4rem; }
.form-note .ic { margin-top: .2rem; }
.form-msg { padding: .85rem 1rem; border-radius: var(--r-sm); font-size: .92rem; margin-bottom: 1rem; display: none; }
.form-msg.ok { display: block; background: #E9F9EF; color: #0A6B33; border: 1px solid #B8E9CB; }
.form-msg.err { display: block; background: #FDECEA; color: #9B2214; border: 1px solid #F5C6C0; }
.hp { position: absolute; left: -9999px; }

/* ---------- Store info / about ---------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1.1rem; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: center; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-img { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-2); }
.about-body p { color: var(--ink-2); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; text-align: center; box-shadow: var(--sh-1); }
.stat b { display: block; font-family: var(--display); font-size: 1.6rem; color: var(--o); line-height: 1.2; }
.stat span { font-size: .84rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--o) 0%, var(--o-700) 100%); color: #fff; border-radius: var(--r-lg); padding: clamp(1.75rem, 4vw, 3rem); text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; inset: -60% -20% auto auto; width: 32rem; height: 32rem; border-radius: 50%; background: rgba(255,255,255,.09); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { opacity: .94; max-width: 40rem; margin: 0 auto 1.4rem; }
.cta-band .btn-ghost { background: #fff; color: var(--o-700); border-color: #fff; }
.cta-band .btn-ghost:hover { background: var(--o-50); color: var(--o-700); }
.cta-row { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }

/* ---------- Filter chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 1.75rem; }
.chip { padding: .5rem 1.05rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: .92rem; font-weight: 500; color: var(--ink-2); transition: all .16s; }
.chip:hover { border-color: var(--o); color: var(--o); }
.chip.on { background: var(--o); border-color: var(--o); color: #fff; font-weight: 600; }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink); color: #CFC7BC; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: clamp(2.25rem, 4vw, 3.5rem); font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 2rem; padding-bottom: 2.25rem; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand img { border-radius: 50%; margin-bottom: .7rem; }
.foot-brand b { display: block; font-family: var(--display); color: #fff; font-size: 1.08rem; margin-bottom: .4rem; }
.foot-brand p { font-size: .87rem; line-height: 1.65; opacity: .8; }
.foot-social { display: flex; gap: .5rem; margin-top: .9rem; }
.foot-social a { width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; transition: background .16s, transform .16s; }
.foot-social a:hover { background: var(--o); transform: translateY(-2px); }
.foot-col h3 { color: #fff; font-size: .98rem; margin-bottom: .7rem; }
.foot-col li { margin-bottom: .45rem; }
.foot-col a:hover { color: var(--o); }
.foot-contact li { display: flex; gap: .55rem; align-items: flex-start; margin-bottom: .7rem; line-height: 1.55; }
.foot-contact .ic { color: var(--o); margin-top: .22rem; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.1); padding: 1.1rem 0; font-size: .84rem; opacity: .78; }
.foot-links a:hover { color: var(--o); }

/* ---------- Sticky contact dock (mobile) ---------- */
.dock { display: none; }
@media (max-width: 760px) {
  .dock {
    display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 70;
    background: rgba(255,255,255,.97); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
    padding: .4rem .4rem calc(.4rem + env(safe-area-inset-bottom));
  }
  .dock-btn { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .4rem; font-size: .72rem; font-weight: 600; color: var(--o); border-radius: 12px; }
  .dock-line { color: var(--green); }
  .dock-fb { color: var(--fb); }
  body { padding-bottom: 4.4rem; }
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-2 { margin-top: 1.5rem; }
.empty { text-align: center; color: var(--muted); padding: 3rem 1rem; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(12,9,6,.92); display: grid; place-items: center; padding: 1.5rem; }
.lightbox img { max-width: min(100%, 1000px); max-height: 88vh; object-fit: contain; border-radius: 12px; }
.lightbox button { position: absolute; top: 1rem; right: 1rem; background: rgba(255,255,255,.15); border: 0; color: #fff; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; }

/* ============================================================
   Motion — เอฟเฟกต์เคลื่อนไหว
   ทุกอย่างปิดอัตโนมัติเมื่อผู้ใช้ตั้งค่า "ลดการเคลื่อนไหว" ในเครื่อง
   สไตล์ reveal จะทำงานเฉพาะเมื่อ JS พร้อม (html.js) เนื้อหาจึงไม่หายถ้า JS พัง
   ============================================================ */

@keyframes fadeUp   { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes floatOrb { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-2.5rem, 2rem) scale(1.08); } }
@keyframes shine    { from { transform: translateX(-120%) skewX(-18deg); } to { transform: translateX(320%) skewX(-18deg); } }
@keyframes popIn    { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes barGrow  { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---- เผยเนื้อหาเมื่อเลื่อนมาถึง ---- */
html.js .reveal { opacity: 0; transform: translateY(26px); }
html.js .reveal.in {
  opacity: 1; transform: none;
  transition: opacity .75s cubic-bezier(.16,1,.3,1) var(--d, 0ms),
              transform .75s cubic-bezier(.16,1,.3,1) var(--d, 0ms);
}

/* ---- หัวเว็บ: เนื้อหาไล่ขึ้นทีละชิ้นตอนโหลด ---- */
html.js .hero-anim > * { animation: fadeUp .85s cubic-bezier(.16,1,.3,1) both; }
html.js .hero-anim > *:nth-child(1) { animation-delay: .05s; }
html.js .hero-anim > *:nth-child(2) { animation-delay: .14s; }
html.js .hero-anim > *:nth-child(3) { animation-delay: .23s; }
html.js .hero-anim > *:nth-child(4) { animation-delay: .32s; }
html.js .hero-anim > *:nth-child(5) { animation-delay: .41s; }
html.js .hero .slider { animation: popIn .9s cubic-bezier(.16,1,.3,1) .2s both; }

/* วงกลมสีส้มหลังหัวเว็บลอยช้า ๆ */
.hero::before { animation: floatOrb 16s ease-in-out infinite; }

/* ---- แถบความคืบหน้าการอ่านใต้หัวเว็บ ---- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 80;
  background: linear-gradient(90deg, var(--o), #FF8A3D);
  transform: scaleX(0); transform-origin: 0 50%; will-change: transform;
}

/* ---- ปุ่มหลัก: แสงกวาดตอนชี้ ---- */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary::after {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.38), transparent);
  transform: translateX(-120%) skewX(-18deg); pointer-events: none;
}
.btn-primary:hover::after { animation: shine .75s ease-out; }

/* ---- การ์ด: ยกขึ้นนุ่ม ๆ (ไม่ซูมรูป จะได้ไม่ครอป) ---- */
.prod, .cat-card, .promo, .feat, .rev, .faq-item, .stat, .ct-card {
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s cubic-bezier(.16,1,.3,1), border-color .3s;
}
.feat:hover, .rev:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.feat-ico, .cat-ico, .ct-ico { transition: transform .35s cubic-bezier(.34,1.56,.64,1), background .25s, color .25s; }
.feat:hover .feat-ico, .cat-card:hover .cat-ico { transform: scale(1.1) rotate(-6deg); background: var(--o); color: #fff; }

/* ---- ตัวเลขสถิติ ---- */
.stat b { font-variant-numeric: tabular-nums; }
.stat:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }

/* ---- คำถามที่พบบ่อย: เปิด-ปิดแบบลื่น ---- */
.faq-item .ans-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .38s cubic-bezier(.16,1,.3,1); }
.faq-item[open] .ans-wrap { grid-template-rows: 1fr; }
.faq-item .ans-wrap > .ans { overflow: hidden; min-height: 0; }
.faq-item summary:hover { color: var(--o); }

/* ---- แถบประกาศด้านบน: ไอคอนกะพริบเบา ๆ ---- */
.announce .ic { animation: fadeIn 2.4s ease-in-out infinite alternate; }

/* ---- ลิงก์เมนู: ขีดใต้วิ่ง ---- */
@media (min-width: 1041px) {
  .nav a { position: relative; }
  .nav a::after {
    content: ''; position: absolute; left: .78rem; right: .78rem; bottom: .28rem; height: 2px;
    background: var(--o); border-radius: 2px; transform: scaleX(0); transform-origin: 0 50%;
    transition: transform .28s cubic-bezier(.16,1,.3,1);
  }
  .nav a:hover::after { transform: scaleX(1); }
  .nav a.on::after { display: none; }
}

/* ---- แถบปุ่มติดต่อด้านล่างบนมือถือ: เด้งขึ้นตอนโหลด ---- */
html.js .dock { animation: fadeUp .5s ease-out .5s both; }

/* ---- รูปค่อย ๆ ปรากฏเมื่อโหลดเสร็จ ---- */
html.js img[data-fade] { opacity: 0; transition: opacity .55s ease; }
html.js img[data-fade].loaded { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1 !important; transform: none !important; }
  html.js .hero-anim > *, html.js .hero .slider, html.js .dock { animation: none !important; }
  .hero::before, .announce .ic { animation: none !important; }
  .progress { display: none; }
}
