/* AC.food trading — หน้าตาเว็บฝั่งลูกค้า
   โทนตามบรีฟ: ครีม อบอุ่น · น้ำเงิน น่าเชื่อถือ · ดำ พรีเมียม — เรียบ สะอาด ไม่รก
   กฎเหล็ก: ทุกส่วนต้องยังสวยเมื่อข้อความสั้นมากหรือยาวมาก และต้องไม่ล้นจอที่ 360px */

:root {
  --accent: #1b3556;          /* น้ำเงินกรมท่าจากตัวเรือในโลโก้ */
  --accent-2: #24497a;
  --accent-ink: #ffffff;
  --warm: #c8641b;            /* ส้มอิฐจากโลโก้ ใช้กับราคาและป้ายลดเท่านั้น */
  --ink: #16181d;
  --ink-2: #2b2f37;
  --muted: #5c6370;
  --paper: #fbf8f2;           /* ครีมอ่อน พื้นหลักของเว็บ */
  --paper-2: #f3ece0;         /* ครีมเข้ม คั่นส่วน */
  --card: #ffffff;
  --line: #e6ddcd;
  --ok: #1d7a4a;
  --bad: #b3261e;
  --radius: 14px;
  --radius-sm: 10px;
  --font: 'IBM Plex Sans Thai', -apple-system, 'Segoe UI', sans-serif;
  --display: var(--font);
  --gap: clamp(56px, 7vw, 96px);
  --pad: 16px;
  --max: 1200px;
  --shadow: 0 1px 2px rgba(22, 24, 29, .05), 0 6px 20px -8px rgba(22, 24, 29, .12);
  --shadow-up: 0 2px 4px rgba(22, 24, 29, .06), 0 14px 30px -10px rgba(22, 24, 29, .2);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 768px) { :root { --pad: 28px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper);
  font-size: 16px; line-height: 1.7; overflow-x: hidden;
}
img, video { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.35; margin: 0; text-wrap: balance; font-weight: 700; }
p { margin: 0 0 .8em; }
p:last-child { margin-bottom: 0; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; flex: none; }
a[href*="line.me"] svg, .btn-line svg { fill: currentColor; stroke: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.sec { padding-block: var(--gap); }
.sec-alt { background: var(--paper-2); }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; margin-bottom: clamp(24px, 3.5vw, 40px); }
.sec-head h2 { font-size: clamp(24px, 3.4vw, 36px); flex: 1 1 280px; }
.sec-head p { color: var(--muted); font-size: 16.5px; flex-basis: 100%; max-width: 62ch; order: 2; }
.sec-more { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-2); font-weight: 600; text-decoration: none; white-space: nowrap; }
.sec-more svg { width: 16px; height: 16px; }
.sec-more:hover { text-decoration: underline; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.lead-text { color: var(--muted); font-size: 17px; }

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; font: 600 16px/1.2 var(--font);
  background: var(--accent); color: var(--accent-ink); text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--accent); transition: background-color .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease);
  min-height: 48px; text-align: center;
}
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--card); border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--paper-2); border-color: var(--paper-2); }
.btn-line { background: #06c755; border-color: #06c755; color: #fff; }
.btn-line:hover { background: #05a948; border-color: #05a948; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-disabled, .btn:disabled { background: #d9d4ca; border-color: #d9d4ca; color: #6b6458; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }

/* ---------- แถบบน + หัวเว็บ ---------- */
.topbar { background: var(--ink); color: #e9e4d8; font-size: 14px; }
.topbar .wrap { display: flex; gap: 8px 22px; align-items: center; justify-content: center; min-height: 38px; flex-wrap: wrap; padding-block: 4px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.topbar svg { width: 16px; height: 16px; color: #f0b47c; }
.topbar .tb-hours { display: none; }
@media (min-width: 768px) { .topbar .wrap { justify-content: flex-end; } .topbar .wrap > :first-child { margin-right: auto; } .topbar .tb-hours { display: inline-flex; } }

.nav { position: sticky; top: 0; z-index: 40; background: rgba(251, 248, 242, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; flex: 1 1 auto; }
.logo img { width: 52px; height: 45px; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; min-width: 0; }
.logo-text b { font-size: 18px; color: var(--accent); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-text small { font-size: 12.5px; color: var(--muted); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-search { display: none; flex: 0 1 380px; }
.nav-search label, .catalog-tools .search { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; min-height: 46px; }
.nav-search input, .catalog-tools .search input { border: 0; outline: 0; background: none; font: 16px var(--font); width: 100%; min-width: 0; color: var(--ink); }
.nav-search label:focus-within, .catalog-tools .search:focus-within { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(36, 73, 122, .12); }
.nav-search svg, .catalog-tools .search svg { color: var(--muted); }
.nav-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.cart-btn, .nav-toggle {
  position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: transparent; color: var(--ink); cursor: pointer; text-decoration: none;
}
.cart-btn:hover, .nav-toggle:hover { background: var(--paper-2); }
.cart-btn svg, .nav-toggle svg { width: 24px; height: 24px; }
.cart-count { position: absolute; top: 3px; right: 1px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--warm); color: #fff; font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }
.nav-links { display: none; border-top: 1px solid var(--line); }
.nav-links .wrap { display: flex; flex-direction: column; padding-block: 8px 16px; }
.nav-links a { text-decoration: none; padding: 11px 0; font-weight: 600; color: var(--ink-2); }
.nav-links a[aria-current="page"] { color: var(--accent); }
.nav-links .nav-track { color: var(--accent-2); }
body.nav-open .nav-links { display: block; max-height: calc(100vh - 110px); overflow: auto; }
.nav-drop { display: flex; flex-wrap: wrap; align-items: center; }
.nav-drop > a { flex: 1; }
.drop-btn { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: var(--muted); }
.drop-btn svg { transition: transform .2s var(--ease); }
.drop-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.drop { display: none; flex-basis: 100%; padding: 0 0 8px 14px; border-left: 2px solid var(--line); }
.drop-btn[aria-expanded="true"] + .drop { display: block; }
.drop a { display: block; padding: 8px 0; font-weight: 400; }

@media (min-width: 1024px) {
  .nav-search { display: block; }
  .nav-toggle { display: none; }
  .nav-links { display: block; }
  .nav-links .wrap { flex-direction: row; gap: 4px; padding-block: 0; align-items: center; }
  .nav-links a { padding: 12px 14px; border-radius: 8px; font-size: 15.5px; }
  .nav-links a:hover { background: var(--paper-2); }
  .nav-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
  .nav-links .nav-track { margin-left: auto; }
  .nav-drop { position: relative; flex-wrap: nowrap; }
  .nav-drop > a { padding-right: 4px; }
  .drop-btn { width: 28px; height: 40px; }
  .drop { position: absolute; top: 100%; left: 0; min-width: 280px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-up); padding: 8px; z-index: 50; }
  .drop a { padding: 9px 12px; border-radius: 8px; font-size: 15px; }
  .nav-drop:hover .drop, .nav-drop:focus-within .drop { display: block; }
}

/* ---------- แบนเนอร์ ---------- */
.hero { position: relative; }
.hero-viewport { overflow: hidden; }
.hero-track { display: flex; transition: transform .6s var(--ease); }
.hero-slide { position: relative; flex: 0 0 100%; min-width: 0; }

/* แยกครึ่ง: โปสเตอร์สินค้าเต็มรูป ไม่ครอป */
.hero-split { background: linear-gradient(180deg, var(--paper-2), var(--paper)); }
.hero-split .hero-slide { display: grid; gap: 18px; padding: 22px max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad))) 18px; align-items: center; }
.hero-split .hero-pic { order: -1; justify-self: center; width: min(100%, 40vh, 480px); aspect-ratio: var(--ar, 1 / 1); }
.hero-split .hero-pic img, .hero-split .hero-pic video { width: 100%; height: 100%; object-fit: contain; border-radius: var(--radius); box-shadow: var(--shadow-up); }
.hero-title { font-size: clamp(30px, 5.4vw, 58px); font-weight: 700; line-height: 1.22; color: var(--accent); letter-spacing: -.01em; margin: 0 0 12px; }
.hero-sub { font-size: clamp(16.5px, 1.6vw, 19px); color: var(--ink-2); max-width: 46ch; margin-bottom: 20px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 768px) {
  .hero-split .hero-slide { grid-template-columns: 1.05fr .95fr; gap: 48px; padding-block: 48px 40px; }
  .hero-split .hero-pic { order: 0; width: 100%; max-height: 560px; justify-self: end; }
  .hero-split .hero-pic img, .hero-split .hero-pic video { max-height: 560px; }
}

/* เต็มจอ: ครอปได้ จุดโฟกัสกลางบน */
.hero-full .hero-slide, .hero-compact .hero-slide { display: grid; min-height: min(70vh, 640px); color: #fff; }
.hero-compact .hero-slide { min-height: 280px; }
.hero-bg, .hero-bg picture { position: absolute; inset: 0; }
.hero-bg img, .hero-bg video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.hero-full .hero-bg::after, .hero-compact .hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 22, 36, .78), rgba(14, 22, 36, .25)); }
.hero-full .hero-body, .hero-compact .hero-body { position: relative; align-self: center; width: 100%; max-width: var(--max); margin: 0 auto; padding: 48px var(--pad); }
.hero-full .hero-title, .hero-compact .hero-title { color: #fff; }
.hero-full .hero-sub, .hero-compact .hero-sub { color: rgba(255, 255, 255, .88); }

.hero-nav { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 4px 0 18px; }
.hero-full .hero-nav, .hero-compact .hero-nav { position: absolute; left: 0; right: 0; bottom: 6px; }
.hero-arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.hero-arrow:hover { border-color: var(--ink); }
.hero-dots { display: flex; gap: 2px; }
.hero-dots button { width: 28px; height: 28px; border: 0; background: none; cursor: pointer; padding: 0; display: grid; place-items: center; }
.hero-dots button::before { content: ''; width: 8px; height: 8px; border-radius: 4px; background: #c9bfae; transition: width .3s var(--ease), background-color .3s; }
.hero-dots button[aria-current="true"]::before { width: 22px; background: var(--accent); }

/* ---------- หมวดหมู่ใต้แบนเนอร์ ---------- */
.cat-strip { padding-block: 28px 8px; }
.cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.cat-head h2 { font-size: clamp(20px, 2.6vw, 26px); }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; text-decoration: none; padding: 14px 6px 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.cat-pic { width: 52px; height: 52px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; overflow: hidden; color: var(--accent); }
.cat-pic img { width: 100%; height: 100%; object-fit: cover; }
.cat-pic svg { width: 24px; height: 24px; }
.cat-name { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--ink-2); }
@media (min-width: 480px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 768px) { .cat-grid { grid-template-columns: repeat(6, 1fr); gap: 12px; } .cat-name { font-size: 15px; } }

/* ---------- จุดเด่น ---------- */
.sec-features { padding-block: clamp(40px, 5vw, 64px); }
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.feature { display: flex; flex-direction: column; gap: 10px; padding: 18px 16px; background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.feature h3 { font-size: 17px; margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: 15px; line-height: 1.6; }
@media (min-width: 480px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .features-grid { grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 14px; } .feature { padding: 22px 20px; } }

/* ---------- การ์ดสินค้า ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(4, 1fr); gap: 20px; } .cards-catalog { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .cards-catalog { grid-template-columns: repeat(4, 1fr); } }
.card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s var(--ease); box-shadow: var(--shadow); min-width: 0; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
/* รูปสินค้าเป็นโปสเตอร์มีตัวหนังสือ ห้ามครอป: วางเต็มรูปในกรอบเท่ากัน */
.card-pic { position: relative; display: block; aspect-ratio: 4 / 5; background: #f6f1e7; }
.card-pic img { width: 100%; height: 100%; object-fit: contain; }
.card-noimg { display: grid; place-items: center; height: 100%; color: #b9ae9a; }
.card-noimg svg { width: 40px; height: 40px; }
.tag { position: absolute; top: 8px; left: 8px; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.tag-sale { background: var(--warm); color: #fff; }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 14px; flex: 1; }
.card-cat { font-size: 12.5px; color: var(--accent-2); font-weight: 600; text-decoration: none; }
.card h3, .card h2 { font-size: 15.5px; line-height: 1.45; font-weight: 600; }
.card h3 a, .card h2 a { text-decoration: none; }
.card h3 a:hover { color: var(--accent-2); }
.card-body p { font-size: 14px; color: var(--muted); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.card-foot { margin-top: auto; padding-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.card-price { font-size: 14px; color: var(--muted); }
.card-price b { font-size: 20px; color: var(--warm); font-weight: 700; }
.card-price s { color: #9a9284; margin-left: 4px; }
.card-sold { display: inline-block; font-size: 14px; font-weight: 700; color: var(--bad); }
.card .btn-sm { width: 100%; }
.card.is-sold .card-pic img { opacity: .55; }
@media (min-width: 768px) { .card-body { padding: 14px 16px 16px; } .card h3 { font-size: 16.5px; } }

.rows { display: grid; gap: 12px; }
.row-item { display: grid; grid-template-columns: 110px 1fr; }
.row-item .card-pic { aspect-ratio: 1; }

/* ---------- เกี่ยวกับ ---------- */
.sec-about { background: var(--paper-2); }
.about { display: grid; gap: 28px; align-items: center; }
.about-pic { width: 100%; max-width: 520px; aspect-ratio: var(--ar, 3 / 4); max-height: 70vh; margin-inline: auto; }
.about-pic img, .about-pic video { width: 100%; height: 100%; object-fit: contain; border-radius: var(--radius); }
.about-text h2 { font-size: clamp(26px, 3.6vw, 40px); margin-bottom: 16px; color: var(--accent); }
.about-text p { font-size: 17px; color: var(--ink-2); max-width: 60ch; }
.about-text .btn { margin-top: 12px; }
@media (min-width: 768px) {
  .about { grid-template-columns: .9fr 1.1fr; gap: 56px; }
  .about.pic-right .about-pic { order: 2; }
  .about.no-pic { grid-template-columns: 1fr; }
}

/* ---------- แกลเลอรี (masonry ไม่ครอป ไม่มีกรอบ) ---------- */
.gal { columns: 2; column-gap: 10px; }
@media (min-width: 480px) { .gal { columns: 3; } }
@media (min-width: 1024px) { .gal { columns: var(--cols, 4); column-gap: 16px; } }
.gal-item { break-inside: avoid; margin: 0 0 10px; }
@media (min-width: 1024px) { .gal-item { margin-bottom: 16px; } }
.gal-item a { display: block; border-radius: var(--radius-sm); overflow: hidden; }
.gal-item img { width: 100%; transition: transform .4s var(--ease); }
.gal-item a:hover img { transform: scale(1.03); }
.gal-item figcaption { padding: 8px 2px 0; font-size: 14px; color: var(--muted); }
.gal-item figcaption b { display: block; color: var(--ink); font-weight: 600; }

/* ---------- คำถามที่พบบ่อย ---------- */
.faq-wrap { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { transition: transform .25s var(--ease); color: var(--accent); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq-a { color: var(--ink-2); padding-bottom: 18px; max-width: 70ch; }

/* ---------- แถบชวนติดต่อ ---------- */
.cta-band { padding-block: clamp(44px, 6vw, 72px); text-align: center; }
.cta-dark { background: var(--ink); color: #fff; }
.cta-soft { background: var(--paper-2); }
.cta-band h2 { font-size: clamp(22px, 3.2vw, 34px); max-width: 26ch; margin: 0 auto 22px; }
.cta-kicker { color: #f0b47c; font-weight: 600; margin-bottom: 6px; }

/* ---------- ติดต่อ ---------- */
.contact { display: grid; gap: 24px; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; gap: 40px; } }
.contact-note { font-size: 17px; color: var(--ink-2); margin-bottom: 18px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list li > svg { width: 22px; height: 22px; margin-top: 4px; color: var(--accent); }
.contact-list span { display: block; font-size: 13.5px; color: var(--muted); }
.contact-list a { font-weight: 600; font-size: 17px; text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--accent-2); }
.hours-box { background: var(--card); border-radius: var(--radius); padding: 16px 18px; border: 1px solid var(--line); }
.hours-box h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.hours { list-style: none; padding: 0; margin: 0; font-size: 15px; }
.hours li { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.hours li:last-child { border: 0; }
.closed { color: var(--bad); }
.lead, .box { background: var(--card); border-radius: var(--radius); padding: 22px 18px; box-shadow: var(--shadow); }
@media (min-width: 768px) { .lead, .box { padding: 28px; } }
.lead h3 { font-size: 20px; margin-bottom: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field label { font-weight: 600; font-size: 15px; }
input, textarea, select { font: 16px/1.5 var(--font); color: var(--ink); }
.field input, .field textarea, .coupon input, select {
  width: 100%; padding: 11px 14px; border: 1px solid #d8cfbe; border-radius: var(--radius-sm); background: #fff; min-height: 48px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .coupon input:focus, select:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(36, 73, 122, .14); }
.field.has-err input { border-color: var(--bad); }
.err { color: var(--bad); font-size: 14px; min-height: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.msg { margin-top: 10px; font-size: 15px; }
.msg.ok { color: var(--ok); }
.msg.bad { color: var(--bad); }
.contact-map { margin-top: 28px; }
.map-box { display: grid; gap: 10px; justify-items: start; }
.map { width: 100%; height: 340px; border: 0; border-radius: var(--radius); background: var(--paper-2); }

.rich { max-width: 72ch; margin: 0 auto; }
.rich-wide { max-width: none; }
.rich h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 14px; }
.rich p { font-size: 17px; }

.page-head { padding: 32px 0 8px; }
.page-head h1 { font-size: clamp(30px, 4.6vw, 48px); color: var(--accent); }
.page-head p { color: var(--muted); max-width: 62ch; margin-top: 8px; }

/* ---------- หน้ารวมสินค้า ---------- */
.sec-catalog { padding-top: 28px; }
.catalog-head { display: grid; gap: 16px; margin-bottom: 22px; }
.catalog-head h1 { font-size: clamp(28px, 4vw, 42px); color: var(--accent); }
.catalog-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.catalog-tools .search { flex: 1 1 260px; }
.catalog-tools .sort select { min-height: 46px; border-radius: 999px; padding: 8px 14px; }
.chk { display: inline-flex; gap: 8px; align-items: center; font-size: 15px; cursor: pointer; }
.chk input { width: 20px; height: 20px; accent-color: var(--accent); }
.catalog { display: grid; gap: 18px; }
.cat-side { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scrollbar-width: none; }
.cat-side::-webkit-scrollbar { display: none; }
.cat-side a { flex: none; padding: 8px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); text-decoration: none; font-size: 15px; white-space: nowrap; }
.cat-side a[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.count { color: var(--muted); font-size: 14.5px; margin-bottom: 12px; }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); display: grid; justify-items: center; gap: 12px; }
.empty svg { width: 40px; height: 40px; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 28px; }
.pager a { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; background: var(--card); }
.pager a[aria-current="page"] { background: var(--accent); color: #fff; border-color: var(--accent); }
@media (min-width: 1024px) {
  .catalog-head { grid-template-columns: 1fr auto; align-items: end; }
  .catalog-tools { flex-wrap: nowrap; }
  .catalog { grid-template-columns: 240px 1fr; gap: 32px; }
  .cat-side { flex-direction: column; overflow: visible; margin: 0; padding: 0; position: sticky; top: 130px; align-self: start; }
  .cat-side a { border: 0; background: none; border-radius: 8px; white-space: normal; padding: 8px 12px; }
  .cat-side a:hover { background: var(--paper-2); }
}

/* ---------- หน้ารายละเอียดสินค้า ---------- */
.sec-pd { padding-top: 24px; }
.pd { display: grid; gap: 24px; margin-top: 8px; }
@media (min-width: 900px) { .pd { grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; } .pd-gallery { position: sticky; top: 130px; } }
.pd-main { aspect-ratio: var(--ar, 1 / 1); max-height: 72vh; background: #f6f1e7; border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; margin-inline: auto; }
.pd-main img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.pd-thumb { flex: none; width: 68px; height: 68px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #f6f1e7; cursor: pointer; }
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumb[aria-current="true"] { border-color: var(--accent); }
.pd-info h1 { font-size: clamp(26px, 3.4vw, 36px); margin: 6px 0 8px; }
.pd-short { color: var(--ink-2); font-size: 17px; }
.pd-price { font-size: 16px; color: var(--muted); margin: 12px 0 4px; }
.pd-price b { font-size: 34px; color: var(--warm); }
.pd-price s { margin-left: 6px; }
.pd-sku { font-size: 14px; color: var(--muted); }
.pd-opts { border: 0; padding: 0; margin: 18px 0; display: grid; gap: 8px; }
.pd-opts legend { font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.pd-opts legend small { display: block; font-weight: 400; font-size: 14px; color: var(--muted); }
.opt { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.opt:not(:has(.opt-pic)) { grid-template-columns: 1fr auto; }
.opt-pic { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: pointer; background: #f6f1e7; }
.opt-pic img { width: 100%; height: 100%; object-fit: contain; }
.opt-name { min-width: 0; }
.opt-name b { display: block; font-weight: 600; line-height: 1.4; }
.opt-name span { font-size: 13.5px; color: var(--muted); }
.opt.is-out { opacity: .6; }
.out { font-size: 14px; color: var(--bad); font-weight: 600; }
.qty { display: inline-flex; align-items: center; border: 1px solid #d8cfbe; border-radius: 999px; background: #fff; }
.qty button { width: 40px; height: 40px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; border-radius: 50%; color: var(--ink); }
.qty button:hover { background: var(--paper-2); }
.qty svg { width: 16px; height: 16px; }
.qty input { width: 48px; border: 0; text-align: center; font-weight: 700; background: none; -moz-appearance: textfield; min-height: 40px; padding: 0; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pd-qty { display: flex; align-items: center; gap: 12px; margin: 18px 0; flex-wrap: wrap; }
.pd-qty > span { font-weight: 600; }
.pd-qty small { color: var(--muted); }
.pd-buy { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 480px) { .pd-buy { grid-template-columns: 1.4fr 1fr; } }
.pd-msg { margin-top: 10px; font-weight: 600; }
.pd-msg.ok { color: var(--ok); }
.pd-msg.bad { color: var(--bad); }
.pd-msg a { color: var(--accent-2); }
.pd-perks { list-style: none; padding: 16px 0 0; margin: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 15px; color: var(--ink-2); }
.pd-perks li { display: flex; gap: 10px; align-items: flex-start; }
.pd-perks svg { color: var(--accent); margin-top: 3px; }
.pd-perks a { color: var(--accent-2); font-weight: 600; }
.pd-desc { margin-top: 40px; max-width: 760px; background: var(--card); border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow); }
.pd-desc h2 { font-size: 22px; margin-bottom: 12px; }
.pd-desc p { white-space: pre-line; }
.sec-related { padding-top: 0; }

/* ---------- ตะกร้า / ชำระเงิน ---------- */
.sec-cart h1, .sec-checkout h1, .track-wrap h1 { font-size: clamp(28px, 4vw, 40px); color: var(--accent); margin-bottom: 20px; }
.sec-cart, .sec-checkout, .sec-order, .sec-track { padding-top: 32px; }
.cart, .checkout { display: grid; gap: 20px; align-items: start; }
@media (min-width: 960px) { .cart, .checkout { grid-template-columns: 1fr 380px; gap: 32px; } .summary { position: sticky; top: 130px; } }
.cart-line { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 14px; background: var(--card); border-radius: var(--radius); margin-bottom: 10px; box-shadow: var(--shadow); }
.cart-line img { width: 76px; height: 76px; object-fit: contain; background: #f6f1e7; border-radius: 10px; }
.cl-top { display: flex; justify-content: space-between; gap: 8px; }
.cl-top a { font-weight: 600; text-decoration: none; line-height: 1.45; }
.cl-opt { font-size: 14px; color: var(--muted); }
.cl-rm { border: 0; background: none; color: var(--muted); cursor: pointer; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; flex: none; margin: -8px -8px 0 0; }
.cl-rm:hover { color: var(--bad); background: #fbeceb; }
.cl-bot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.cl-sum { font-weight: 700; font-size: 17px; }
.cl-warn { grid-column: 1 / -1; color: var(--bad); font-size: 14px; font-weight: 600; }
.summary { background: var(--card); border-radius: var(--radius); padding: 22px 18px; box-shadow: var(--shadow); }
.summary h2 { font-size: 20px; margin-bottom: 14px; }
.summary .btn-block + .btn-block { margin-top: 10px; }
.totals { margin: 14px 0 18px; display: grid; gap: 8px; font-size: 15.5px; }
.totals > div { display: flex; justify-content: space-between; gap: 12px; }
.totals dt { color: var(--ink-2); }
.totals dd { margin: 0; font-weight: 600; text-align: right; }
.totals .disc dd { color: var(--ok); }
.totals .grand { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; font-size: 18px; }
.totals .grand dd { color: var(--warm); font-size: 24px; font-weight: 700; }
.free-bar { background: var(--paper-2); border-radius: 10px; padding: 10px 12px; font-size: 14.5px; }
.free-bar .track { height: 6px; border-radius: 3px; background: #e2d7c3; margin-top: 8px; overflow: hidden; }
.free-bar .fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width .4s var(--ease); }
.free-bar.done { background: #e6f3ec; color: var(--ok); font-weight: 600; }
.empty-cart { text-align: center; padding: 40px 16px; background: var(--card); border-radius: var(--radius); }
.empty-cart svg { width: 44px; height: 44px; color: var(--muted); margin: 0 auto 10px; }
.loading { color: var(--muted); }
.box { margin-bottom: 18px; }
fieldset.box { border: 0; }
.box legend { font-weight: 700; font-size: 19px; display: flex; gap: 8px; align-items: center; float: left; width: 100%; margin-bottom: 16px; }
.box legend + * { clear: both; }
.box legend svg { color: var(--accent); }
.grid2 { display: grid; gap: 0 14px; }
@media (min-width: 600px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid2 .full { grid-column: 1 / -1; } }
.chk-row { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin: 4px 0 16px; cursor: pointer; background: var(--paper); padding: 12px; border-radius: 10px; }
.chk-row input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.pay-opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; cursor: pointer; }
.pay-opt:has(input:checked) { border-color: var(--accent); background: #f2f5fa; }
.pay-opt input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.pay-opt b { display: block; }
.pay-opt small { color: var(--muted); font-size: 14px; }
.warn { color: var(--bad); }
.co-lines { display: grid; gap: 10px; margin-bottom: 14px; }
.co-line { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; font-size: 14.5px; }
.co-line img { width: 52px; height: 52px; object-fit: contain; background: #f6f1e7; border-radius: 8px; }
.co-line small { display: block; color: var(--muted); }
.coupon { margin: 8px 0 14px; }
.coupon label { font-weight: 600; font-size: 15px; display: block; margin-bottom: 6px; }
.coupon-row { display: flex; gap: 8px; }
.coupon-row input { flex: 1; min-width: 0; text-transform: uppercase; }
.fine { font-size: 13.5px; color: var(--muted); margin-top: 10px; }

/* ---------- หน้าออเดอร์ ---------- */
.ord-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.ok-ico { width: 52px; height: 52px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; flex: none; }
.ok-ico svg { width: 28px; height: 28px; stroke-width: 2.4; }
.kicker { color: var(--ok); font-weight: 700; margin: 0; }
.ord-head h1 { font-size: clamp(22px, 3.4vw, 32px); word-break: break-word; }
.ord-head a { color: var(--accent-2); }
.st { color: var(--accent); }
.st-cancelled, .st-refunded { color: var(--bad); }
.st-shipped, .st-done { color: var(--ok); }
.ord-grid { display: grid; gap: 18px; align-items: start; }
@media (min-width: 960px) { .ord-grid { grid-template-columns: 1fr 400px; gap: 28px; } }
.box h2 { font-size: 20px; margin-bottom: 12px; }
.box h3 { font-size: 16px; margin: 18px 0 6px; }
.amount { font-size: 18px; }
.amount b { font-size: 34px; color: var(--warm); }
.qr-box { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; background: var(--paper); border-radius: var(--radius-sm); padding: 14px; margin: 14px 0; }
#pp-qr { width: 200px; background: #fff; padding: 8px; border-radius: 8px; }
#pp-qr svg { width: 100%; height: auto; }
.bank { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.bank img { border-radius: 8px; }
.bank div { flex: 1 1 160px; min-width: 0; }
.bank span, .bank small { display: block; font-size: 14px; color: var(--muted); }
.bank .acc { font-size: 22px; letter-spacing: .03em; }
.slip { margin-top: 18px; }
.slip-drop { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 22px 16px; border: 2px dashed #cfc4b0; border-radius: var(--radius); cursor: pointer; background: var(--paper); margin-bottom: 12px; }
.slip-drop:hover { border-color: var(--accent); }
.slip-drop svg { width: 30px; height: 30px; color: var(--accent); }
.slip-drop span { font-weight: 700; }
.slip-drop small { color: var(--muted); }
.slip-drop input { font-size: 14px; max-width: 100%; margin-top: 6px; }
#slip-preview { max-height: 320px; width: auto; margin: 0 auto 12px; border-radius: 10px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 16px 26px; }
.timeline li::before { content: ''; position: absolute; left: 4px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); }
.timeline li:not(:last-child)::after { content: ''; position: absolute; left: 9px; top: 20px; bottom: 0; width: 1.5px; background: var(--line); }
.timeline b { display: block; }
.timeline span { font-size: 14px; color: var(--muted); }
.trk { background: #e6f3ec; padding: 10px 12px; border-radius: 10px; }
.ord-items { width: 100%; border-collapse: collapse; font-size: 15px; }
.ord-items td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ord-items small { display: block; color: var(--muted); }
.ord-items .n { text-align: right; white-space: nowrap; padding-left: 8px; }
.track-wrap { max-width: 560px; margin: 0 auto; }
.track-form { margin-top: 16px; }

/* ---------- ท้ายเว็บ ---------- */
.foot { background: var(--ink); color: #d9d4c9; padding: 56px 0 calc(28px + 76px); font-size: 15px; }
@media (min-width: 768px) { .foot { padding-bottom: 28px; } }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1.2fr; gap: 48px; } }
.foot-logo { display: inline-block; background: #fff; border-radius: 12px; padding: 6px 10px; margin-bottom: 12px; }
.foot-logo img { width: 70px; height: 60px; object-fit: contain; }
.foot-brand b { display: block; font-size: 19px; color: #fff; margin-bottom: 8px; }
.foot-brand p { color: #b9b3a6; max-width: 44ch; }
.foot h3 { font-size: 16px; color: #fff; margin-bottom: 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-contact li { display: flex; gap: 10px; align-items: flex-start; }
.foot-contact svg { color: #f0b47c; margin-top: 3px; width: 18px; height: 18px; }
.social { display: flex; gap: 8px; margin-top: 14px; }
.social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); }
.social a:hover { background: rgba(255, 255, 255, .16); }
.copy { display: block; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); color: #9c968a; font-size: 13.5px; }

/* ปุ่มลอยมือถือ: ไลน์กับโทรเท่านั้น สูงไม่เกิน 60px */
.float-contact { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(251, 248, 242, .96); border-top: 1px solid var(--line); backdrop-filter: blur(8px); }
.fl { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.fl-line { background: #06c755; color: #fff; }
.fl-call { background: var(--accent); color: #fff; }
@media (min-width: 768px) {
  .float-contact { left: auto; right: 20px; bottom: 20px; flex-direction: column; padding: 0; background: none; border: 0; backdrop-filter: none; }
  .fl { width: 56px; height: 56px; min-height: 0; flex: none; border-radius: 50%; box-shadow: var(--shadow-up); }
  .fl span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fl svg { width: 26px; height: 26px; }
}

/* ดูรูปขนาดเต็ม */
dialog.light { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
dialog.light::backdrop { background: rgba(10, 12, 16, .86); }
dialog.light img { max-width: 94vw; max-height: 84vh; width: auto; border-radius: 8px; }
dialog.light p { color: #fff; text-align: center; margin-top: 8px; }
dialog.light button { position: fixed; top: 12px; right: 12px; width: 48px; height: 48px; border-radius: 50%; border: 0; font-size: 28px; background: #fff; cursor: pointer; }

/* บทความ */
.a-wrap { max-width: 760px; }
.a-wrap h1 { font-size: clamp(28px, 4vw, 42px); }
.a-meta { color: var(--muted); font-size: 14px; }
.a-body h2 { margin: 32px 0 12px; font-size: 26px; }
.a-body p { font-size: 17px; }
.a-toc { background: var(--paper-2); padding: 16px 20px; border-radius: var(--radius); margin: 20px 0; }
.a-embed { margin-top: 40px; }

/* อนิเมชัน: ปรากฏตอนเลื่อนถึง ขยับขึ้น 18px จางเข้า 500ms เล่นครั้งเดียว */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}

/* เว้นท้ายหน้าให้ปุ่มลอยไม่ทับเนื้อหาบนมือถือ */
@media (max-width: 767px) { main { padding-bottom: 8px; } }

/* พื้นที่กดอย่างน้อย 44x44 บนมือถือ */
.btn-sm { min-height: 44px; }
.hero-arrow { width: 44px; height: 44px; }
.hero-dots button { width: 44px; height: 44px; }
.sec-more, .topbar a, .contact-list a, .foot a, .crumbs a, .cat-head .sec-more { display: inline-flex; align-items: center; min-height: 44px; }
.foot ul { gap: 0; }
.skip { padding: 12px 16px; }
.qty button { width: 44px; height: 44px; }
.cl-rm { width: 44px; height: 44px; }

/* ข้อความไทยต้องไม่ต่ำกว่า 14px และระยะบรรทัดไม่ต่ำกว่า 1.4 (สระบน-ล่างไม่ชน) */
.btn { line-height: 1.45; }
.hero-title { line-height: 1.35; }
.logo-text b, .logo-text small { line-height: 1.45; }
.logo-text small, .card-cat, .tag, .fine, .cl-opt, .co-line small, .crumbs, .count, .copy, .cart-count { font-size: 14px; }
.cart-count { line-height: 20px; font-size: 12px; }
h1, h2, h3 { line-height: 1.4; }
.hero-title { line-height: 1.4; }
.contact-list span, .opt-name span, .bank span, .bank small, .timeline span { font-size: 14px; }

/* ---------- แบนเนอร์เต็มจอ (แบบแยกครึ่ง) ----------
   พื้นหลังเต็มขอบจอ = รูปเดียวกันขยายเบลอ + ทับสีกรมท่า · โปสเตอร์ด้านหน้าแสดงเต็มรูป ไม่ครอปตัวหนังสือ/ราคา
   ทุกสไลด์สูงเท่ากัน ไม่มีช่องว่างลอย */
.hero-split { background: #0f1d31; color: #fff; }
.hero-split .hero-slide {
  position: relative; overflow: hidden; display: grid; grid-template-rows: auto auto;
  gap: 0; padding: 0; align-content: start;
}
.hero-split .hero-blur {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: blur(26px) saturate(1.15); transform: scale(1.2); pointer-events: none;
}
.hero-split .hero-slide::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(15, 29, 49, .35) 0%, rgba(15, 29, 49, .55) 50%, rgba(15, 29, 49, .92) 72%);
}
.hero-split .hero-pic, .hero-split .hero-body { position: relative; z-index: 1; }
.hero-split .hero-pic {
  order: -1; width: 100%; max-height: none; height: 44vh; aspect-ratio: auto;
  justify-self: stretch; padding: 18px var(--pad) 8px; display: flex; justify-content: center;
}
.hero-split .hero-pic picture { display: contents; }
.hero-split .hero-pic img, .hero-split .hero-pic video {
  width: auto; height: 100%; max-width: 100%; max-height: none; object-fit: contain;
  border-radius: 12px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .55);
}
.hero-split .hero-body { padding: 14px var(--pad) 64px; }
.hero-split .hero-title { color: #fff; font-size: clamp(26px, 6.6vw, 56px); margin-bottom: 8px; }
.hero-split .hero-sub { color: rgba(255, 255, 255, .86); font-size: 16px; margin-bottom: 16px; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.hero-split .hero-nav { position: absolute; left: 0; right: 0; bottom: 6px; z-index: 2; padding: 0; }
.hero-split .hero-arrow { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .35); color: #fff; }
.hero-split .hero-arrow:hover { background: rgba(255, 255, 255, .28); border-color: #fff; }
.hero-split .hero-dots button::before { background: rgba(255, 255, 255, .45); }
.hero-split .hero-dots button[aria-current="true"]::before { background: #fff; }

@media (min-width: 768px) {
  .hero-split .hero-slide {
    grid-template-columns: 1.05fr .95fr; grid-template-rows: 1fr; align-items: center;
    height: clamp(440px, 70vh, 620px);
    padding-inline: max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad)));
    column-gap: 48px;
  }
  .hero-split .hero-slide::before {
    background: linear-gradient(90deg, rgba(15, 29, 49, .94) 0%, rgba(15, 29, 49, .78) 42%, rgba(15, 29, 49, .25) 100%);
  }
  .hero-split .hero-pic { order: 0; height: 100%; padding: 36px 0 56px; justify-content: flex-end; }
  .hero-split .hero-body { padding: 0 0 24px; }
  .hero-split .hero-sub { font-size: 18px; }
  .hero-split .hero-nav { bottom: 14px; }
}

/* ลำดับชั้น: เบลอ (0) < ทับสี (1) < โปสเตอร์/ข้อความ (2) · จำกัดความสูงโปสเตอร์ให้อยู่ในแบนเนอร์เสมอ */
.hero-split { --hh: clamp(440px, 70vh, 620px); }
.hero-split .hero-slide { isolation: isolate; }
.hero-split .hero-blur { z-index: 0; }
.hero-split .hero-slide::before { z-index: 1; }
.hero-split .hero-pic, .hero-split .hero-body { z-index: 2; }
.hero-split .hero-pic img, .hero-split .hero-pic video { height: auto; width: auto; max-height: calc(44vh - 26px); }
@media (min-width: 768px) {
  .hero-split .hero-slide { height: var(--hh); }
  .hero-split .hero-pic { align-items: center; padding: 28px 0 60px; }
  .hero-split .hero-pic img, .hero-split .hero-pic video { max-height: calc(var(--hh) - 88px); }
}
@media (max-width: 767px) {
  .hero-split .hero-pic { height: auto; padding-top: 14px; }
  .hero-split .hero-pic img, .hero-split .hero-pic video { max-height: calc(36vh - 20px); }
  .hero-split .hero-body { padding-bottom: 58px; }
}
@media (max-width: 767px) {
  .hero-split .hero-pic img, .hero-split .hero-pic video { max-height: calc(33vh - 16px); }
  .hero-split .hero-sub { font-size: 15px; margin-bottom: 12px; }
  .hero-split .hero-body { padding-top: 10px; padding-bottom: 54px; }
}

/* ---------- แถบโปสเตอร์เต็มจอ (แบนเนอร์หน้าแรก) ----------
   ลูกค้าขอให้แบนเนอร์เต็มจอ รูปใหญ่ · โปสเตอร์มีราคาและตัวหนังสือ จึงไม่ครอป แต่ขยายให้เต็มความกว้างแทน */
.hero-strip { position: relative; background: #0f1d31; }
.strip { display: flex; gap: 3px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.strip::-webkit-scrollbar { display: none; }
.strip:focus-visible { outline-offset: -3px; }
.strip-item { flex: 0 0 100%; margin: 0; scroll-snap-align: start; display: flex; flex-direction: column; background: #0f1d31; color: #fff; min-width: 0; }
.strip-pic { display: block; width: 100%; aspect-ratio: var(--ar, 1 / 1); max-height: 62vh; background: #0f1d31; }
.strip-pic img, .strip-pic video { width: 100%; height: 100%; object-fit: contain; }
.strip-item figcaption { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--pad) 40px; }
.strip-text { min-width: 0; }
.strip-title { font-size: 18px; font-weight: 700; line-height: 1.45; margin: 0; color: #fff; }
.strip-sub { font-size: 14px; color: rgba(255, 255, 255, .78); margin: 2px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.strip-item .btn { flex: none; }
.strip-arrow { position: absolute; top: calc(50% - 40px); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--ink); display: none; place-items: center; cursor: pointer; box-shadow: var(--shadow-up); }
.strip-arrow.prev { left: 14px; } .strip-arrow.next { right: 14px; }
.strip-arrow:hover { background: #fff; }
.strip-dots { position: absolute; left: 0; right: 0; bottom: 2px; display: flex; justify-content: center; }
.strip-dots button { width: 32px; height: 36px; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; }
.strip-dots button::before { content: ''; width: 7px; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .4); transition: width .3s var(--ease), background-color .3s; }
.strip-dots button[aria-current="true"]::before { width: 20px; background: #fff; }
@media (min-width: 768px) {
  .hero-strip { --sh: clamp(360px, 56vh, 540px); }
  .strip { gap: 4px; }
  .strip-item { flex: 0 0 auto; width: calc(var(--sh) * (var(--ar))); }
  .strip-pic { height: var(--sh); max-height: none; width: 100%; }
  .strip-pic img { transition: transform .5s var(--ease); }
  .strip-pic:hover img { transform: scale(1.02); }
  .strip-item figcaption { padding: 12px 16px 16px; }
  .strip-sub { -webkit-line-clamp: 1; }
  .strip-arrow { display: grid; top: calc(var(--sh) / 2 - 22px); }
  .strip-dots { display: none; }
}
@media (max-width: 767px) {
  /* ทุกสไลด์สูงเท่ากัน: รูปจัตุรัสเต็มจอพอดี รูปแนวตั้งวางเต็มความสูงไม่ครอป */
  .strip-pic { aspect-ratio: auto; height: min(100vw, 56vh); max-height: none; }
  .strip-item figcaption { flex: 0 0 auto; padding: 12px var(--pad) 34px; }
}
.strip-bg { display: none; }
@media (max-width: 767px) {
  /* มือถือ: กรอบสูงแบบ 4:5 ให้โปสเตอร์แนวตั้งใหญ่เกือบเต็มจอ ช่องว่างข้างรูปเติมด้วยรูปเดียวกันแบบเบลอ ไม่เป็นแถบดำ */
  .strip-pic { position: relative; overflow: hidden; height: min(125vw, 60vh); }
  .strip-pic .strip-bg { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    filter: blur(22px) brightness(.75) saturate(1.1); transform: scale(1.25); }
  .strip-pic .strip-img, .strip-pic video { position: relative; width: 100%; height: 100%; object-fit: contain; }
}
@media (max-width: 767px) {
  /* กรอบมือถือเต็มความกว้างจอ สัดส่วน 4:5 ใหญ่เต็มตา */
  .strip-pic { height: auto; aspect-ratio: 4 / 5; max-height: 72vh; }
  .strip-pic picture { display: contents; }
  .strip-pic.fit-cover .strip-img { object-fit: cover; }
  .strip-pic.fit-cover .strip-bg { display: none; }
  .strip-item figcaption { padding: 10px var(--pad) 32px; }
  .strip-title { font-size: 17px; }
  .strip-sub { -webkit-line-clamp: 1; }
}

/* ช่องทางติดต่อแยกฝ่าย */
.chans { display: grid; gap: 12px; margin-bottom: 22px; }
.chan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.chan h3 { font-size: 16.5px; margin-bottom: 4px; color: var(--accent); }
.chan p { font-size: 14.5px; color: var(--muted); margin-bottom: 8px; }
.chan-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.btn-wa { background: #25d366; border-color: #25d366; color: #fff; }
.btn-wa:hover { background: #1ebe5a; border-color: #1ebe5a; }
.btn-wa svg { fill: currentColor; stroke: none; }
a[href*="wa.me"] svg { fill: currentColor; stroke: none; }
.foot-contact small { color: #9c968a; font-size: 14px; }

/* ปุ่มสลับภาษา */
.lang-btn { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 10px; border-radius: 999px;
  border: 1.5px solid var(--line); font-weight: 700; font-size: 14.5px; text-decoration: none; color: var(--accent); background: var(--card); }
.lang-btn:hover { border-color: var(--accent); }
.strip-dots button { width: 44px; height: 44px; }
.crumbs a { min-width: 44px; justify-content: center; }
.foot ul a, .nav-links a { min-width: 44px; }
