/* HONiC — หน้าตาเว็บฝั่งลูกค้า ตามแบบ "HONIC - ภาพออกแบบหน้าเว็บ/HONIC-หน้าเว็บเต็ม.png"
   โทน: ครีม / หินอุ่น / ทราย + แดงแบรนด์ + ถ่านอุ่น · มุมเหลี่ยม ทางการ แบบแคตตาล็อกโรงงาน
   รูปสินค้าไม่ครอป (contain บนพื้นขาว) · รูปแบนเนอร์/รูปงานครอปได้ด้วย object-position
   กฎเหล็ก: ทุกส่วนต้องยังสวยเมื่อข้อความสั้นมากหรือยาวมาก และต้องไม่ล้นจอที่ 360px */

:root {
  --accent: #cf2229;           /* แดงตามแบบ — บนพื้นครีม 5.0:1 อ่านผ่าน */
  --accent-ink: #ffffff;
  --accent-dark: #a9161c;
  --accent-soft: #f6e4e1;
  --ink: #262222;              /* ถ่านอุ่น */
  --ink-2: #3d3735;
  --muted: #6b625d;            /* 5.4:1 บนพื้นครีม */
  --paper: #f7f4ee;            /* ครีม */
  --paper-2: #ebe4dd;          /* หินอุ่น (ส่วนค้นหาสินค้า) */
  --sand: #e8d8c3;             /* ทราย (ส่วนโบรชัวร์ + กรอบรูป) */
  --surface: #fdfbf7;
  --white: #ffffff;
  --line: #e1d8ce;
  --line-2: #cfc3b6;
  --dark: #262222;
  --line-green: #06c755;
  --radius: 2px;
  --radius-lg: 3px;
  --font: 'Anuphan', 'IBM Plex Sans Thai', -apple-system, 'Segoe UI', sans-serif;
  --display: var(--font);
  --gap: clamp(60px, 8vw, 100px);
  --pad: clamp(16px, 4.5vw, 76px);
  --max: 1440px;
  --shadow-up: 0 2px 4px rgba(38, 34, 34, .06), 0 14px 30px rgba(38, 34, 34, .10);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { 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: 17px; line-height: 1.7; overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.3; margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
svg { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 99; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.narrow { max-width: 900px; }
.sec { padding-block: var(--gap); }
.sec-alt { background: var(--paper-2); }
.sec-cream { background: var(--paper); }
.sec-stone { background: var(--paper-2); }
.sec-sand { background: var(--sand); }
.sec-white { background: var(--surface); }

/* ป้ายภาษาอังกฤษตัวเล็กสีแดงเหนือหัวข้อ */
.eyebrow { display: block; color: var(--accent); font-size: 15px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 10px; }
.sec-head { max-width: 760px; margin-bottom: clamp(26px, 3.5vw, 40px); }
.sec-head h1, .sec-head h2 { font-size: clamp(30px, 4.2vw, 52px); font-weight: 500; letter-spacing: -.01em; line-height: 1.22; }
.sec-head p { color: var(--muted); margin-top: 14px; font-size: 18px; }
.sec-head-row .sec-head { max-width: none; display: grid; gap: 0 48px; align-items: end; }
@media (min-width: 1000px) {
  .sec-head-row .sec-head:has(p) { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); }
  .sec-head-row .sec-head .eyebrow { grid-column: 1; grid-row: 1; }
  .sec-head-row .sec-head h2 { grid-column: 1; grid-row: 2; max-width: 14em; }
  .sec-head-row .sec-head p { grid-column: 2; grid-row: 2; margin: 0 0 8px; }
}
.link-more { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 500; text-decoration: none; min-height: 44px; }
.link-more:hover { text-decoration: underline; }
.page-title { padding-top: clamp(32px, 5vw, 56px); }
.page-title h1 { font-size: clamp(30px, 4.2vw, 48px); font-weight: 500; }

/* ---------- ปุ่ม (เหลี่ยม ตามแบบ) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 24px; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent);
  font-weight: 500; text-decoration: none; cursor: pointer; line-height: 1.3; text-align: center; font-size: 17px;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn-sm { min-height: 44px; padding: 8px 14px; font-size: 15.5px; }
.btn-lg { min-height: 56px; padding: 12px 26px; font-size: 19px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface); border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--paper); border-color: var(--paper); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .85); }
.btn-outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-dark { background: var(--dark); border-color: var(--dark); }
.btn-dark:hover { background: #000; border-color: #000; }
.btn-line { background: var(--line-green); border-color: var(--line-green); color: #fff; }
.btn-line:hover { background: #05a647; border-color: #05a647; }
.btn-line svg { fill: currentColor; stroke: none; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- แถบบน + หัวเว็บ ---------- */
.topbar { background: var(--dark); color: #e2d9cf; font-size: 15px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; }
.topbar i { font-style: normal; opacity: .6; margin-inline: 10px; }
.topbar-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.topbar-r { display: flex; align-items: center; white-space: nowrap; }
.topbar a { color: #fff; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.topbar a:hover { text-decoration: underline; }

.nav { position: sticky; top: 0; z-index: 30; background: rgba(253, 251, 247, .97); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 96px; }
.logo { display: flex; align-items: center; text-decoration: none; flex: none; min-height: 44px; }
.logo img { height: 44px; width: auto; }
.nav nav { display: flex; align-items: center; gap: clamp(4px, 2vw, 40px); }
.nav nav a:not(.btn) { padding: 10px 6px; text-decoration: none; font-size: 18.5px; color: var(--ink-2); position: relative; }
.nav nav a:not(.btn):hover, .nav nav a[aria-current="page"] { color: var(--accent); }
.nav nav a[aria-current="page"]::after { content: ''; position: absolute; left: 6px; right: 6px; bottom: 2px; height: 2px; background: var(--accent); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; }

@media (max-width: 1099px) {
  .topbar-l { display: none; }
  .topbar .wrap { justify-content: center; font-size: 14px; }
  .topbar i { margin-inline: 8px; }
  .nav .wrap { min-height: 66px; }
  .logo img { height: 32px; }
  .nav-toggle {
    display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line-2);
    border-radius: var(--radius); background: var(--surface); cursor: pointer;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: ''; display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: transform .2s var(--ease);
  }
  .nav-toggle span::before { position: absolute; top: -6px; }
  .nav-toggle span::after { position: absolute; top: 6px; }
  .nav-open .nav-toggle span { background: transparent; }
  .nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
  .nav nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 6px var(--pad) 18px; box-shadow: var(--shadow-up);
  }
  .nav-open .nav nav { display: flex; }
  .nav nav a:not(.btn) { padding: 14px 2px; border-bottom: 1px solid var(--line); }
  .nav nav a[aria-current="page"]::after { display: none; }
  .nav-cta { margin: 14px 0 0; }
}
@media (max-width: 420px) { .topbar .topbar-r > span, .topbar .topbar-r > span + i { display: none; } }

/* ---------- แบนเนอร์ภาพเต็มจอ ข้อความทับซ้าย ---------- */
.hero { position: relative; background: var(--dark); color: #fff; overflow: hidden; }
.hero-full .hero-track { display: grid; }
.hero-full .hero-slide { grid-area: 1 / 1; position: relative; min-height: clamp(520px, 44vw, 640px); display: flex; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility 0s .8s; }
.hero-full .hero-slide.is-on { opacity: 1; visibility: visible; transition: opacity .8s var(--ease); }
.hero-full .hero-pic { position: absolute; inset: 0; }
.hero-full .hero-pic picture, .hero-full .hero-pic img, .hero-full .hero-pic video { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
/* ไล่เงาจากซ้าย ให้ตัวหนังสือขาวอ่านได้ทุกรูป และเห็นเครื่องเสียงทางขวาชัด */
.hero-full .hero-pic::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20, 16, 14, .92) 0%, rgba(20, 16, 14, .78) 34%, rgba(20, 16, 14, .25) 66%, rgba(20, 16, 14, .1) 100%),
              linear-gradient(0deg, rgba(20, 16, 14, .55) 0%, rgba(20, 16, 14, 0) 30%); }
.hero-full .hero-slide > .wrap { position: relative; width: 100%; padding-block: 56px 96px; }
.hero-text { max-width: 760px; }
.hero-eyebrow { display: inline-flex; gap: 10px; color: #f0a39b; font-size: 17px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 22px; }
.hero h1, .hero .hero-h { font-size: clamp(36px, 5vw, 68px); font-weight: 500; line-height: 1.2; letter-spacing: -.01em; margin: 0; color: #fff; }
.hero-sub { color: #e9e1d9; font-size: clamp(17px, 1.6vw, 22px); margin-top: 22px; max-width: 34em; line-height: 1.6; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-bar { position: absolute; left: 0; right: 0; bottom: 0; border-top: 1px solid rgba(255, 255, 255, .18); background: rgba(20, 16, 14, .35); }
.hero-bar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 48px; font-size: 15px; letter-spacing: .02em; }
.hero-tags { display: flex; flex-wrap: wrap; align-items: center; color: #e2d9cf; text-transform: uppercase; }
.hero-tags a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.hero-tags a:hover { color: #fff; text-decoration: underline; }
.hero-tags i { font-style: normal; margin-inline: 12px; opacity: .6; }
.hero-count { display: inline-flex; align-items: center; gap: 4px; color: #e2d9cf; white-space: nowrap; }
.hero-count b { color: #fff; font-weight: 500; }
.hero-count button { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; color: #fff; cursor: pointer; }
.hero-count button:first-of-type { margin-left: 8px; }
.hero-count button:first-of-type svg { transform: rotate(180deg); }
.hero-count button:hover { color: #f0a39b; }
@media (max-width: 767px) {
  .hero-full .hero-slide { min-height: min(70vh, 600px); align-items: flex-end; }
  .hero-full .hero-pic img { object-position: 72% 50%; }
  .hero-full .hero-pic::after { background: linear-gradient(0deg, rgba(20, 16, 14, .95) 0%, rgba(20, 16, 14, .78) 45%, rgba(20, 16, 14, .25) 100%); }
  .hero-full .hero-slide > .wrap { padding-block: 40px 76px; }
  .hero-eyebrow { font-size: 14px; margin-bottom: 14px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-tags { display: none; }
  .hero-bar .wrap { justify-content: flex-end; }
}
/* รูปแบบสำรองที่ลูกค้าเลือกได้ในหลังบ้าน */
.hero-split .hero-slide, .hero-compact .hero-slide { display: none; }
.hero-split .hero-slide.is-on, .hero-compact .hero-slide.is-on { display: grid; }
.hero-split .hero-slide { grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero-split .hero-slide { grid-template-columns: 1fr 1fr; align-items: center; } }
.hero-split .hero-pic img { width: 100%; height: 100%; object-fit: cover; }
.hero-split .wrap, .hero-compact .wrap { padding-block: 48px; }
.hero-compact .hero-pic { max-height: 260px; overflow: hidden; }
.hero-split .hero-bar, .hero-compact .hero-bar { position: static; }

/* ---------- แถบจุดเด่นใต้แบนเนอร์ ---------- */
.strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.strip-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .strip-grid { grid-template-columns: repeat(var(--cols), 1fr); } }
.strip-item { display: flex; gap: 16px; align-items: flex-start; padding: 22px 12px 22px 0; }
.strip-item + .strip-item { padding-left: clamp(12px, 2.4vw, 32px); }
@media (min-width: 900px) { .strip-item + .strip-item { border-left: 1px solid var(--line); } }
@media (max-width: 899px) {
  .strip-item { padding: 18px 10px 18px 0; border-bottom: 1px solid var(--line); }
  .strip-item:nth-child(2n) { padding-left: 12px; border-left: 1px solid var(--line); }
  .strip-item:nth-child(2n+1) { padding-left: 0; }
  .strip-item:nth-last-child(-n+2) { border-bottom: 0; }
}
.strip-item svg { width: 28px; height: 28px; color: var(--accent); margin-top: 4px; }
.strip-item h3 { font-size: clamp(16.5px, 1.6vw, 21px); font-weight: 500; }
.strip-item p { color: var(--muted); font-size: clamp(14px, 1.2vw, 16.5px); line-height: 1.5; margin-top: 2px; }

/* ---------- จุดเด่นแบบการ์ด (หน้าเกี่ยวกับเรา) ---------- */
.features { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .features { grid-template-columns: repeat(min(var(--cols), 4), 1fr); gap: 20px; } }
.feature { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); padding: clamp(16px, 2.4vw, 26px); }
.feature-icon { display: grid; place-items: center; width: 48px; height: 48px; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.feature-icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 19px; font-weight: 500; }
.feature p { color: var(--muted); font-size: 15.5px; margin-top: 6px; line-height: 1.6; }

/* ---------- ขั้นตอน 01 02 03 ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.step { background: var(--paper); border-top: 4px solid var(--accent); padding: 22px 24px 30px; }
.step-no { display: block; color: var(--accent); font-weight: 500; font-size: 17px; margin-bottom: 10px; }
.step h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 500; }
.step p { color: var(--muted); margin-top: 8px; font-size: 16.5px; }

/* ---------- เกี่ยวกับ (ตัวที่ 1) รูปมีกรอบทราย + ป้ายแดง ---------- */
.about { display: grid; gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (min-width: 900px) {
  .about { grid-template-columns: 1fr 1fr; }
  .about.pic-right .about-pic { order: 2; }
}
.about-pic { position: relative; padding: 0 20px 20px 0; }
.about-pic::before { content: ''; position: absolute; inset: 20px 0 0 20px; background: var(--sand); }
.frame { --pic-gap: 18px; background: linear-gradient(160deg, #f5efe6, #e9dfd2); aspect-ratio: 566 / 455; }
.frame-tag { position: absolute; left: -26px; bottom: 48px; background: var(--accent); color: #fff; padding: 12px 22px; font-size: 16.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; }
@media (max-width: 899px) { .frame-tag { left: 0; bottom: 34px; font-size: 14px; padding: 8px 14px; } }
.about-text h2 { font-size: clamp(30px, 4.2vw, 52px); font-weight: 500; line-height: 1.22; margin-bottom: 22px; }
.about-text h2::after { content: ''; display: block; width: 60px; height: 4px; background: var(--accent); margin-top: 24px; }
.about-text p { color: var(--muted); font-size: 18.5px; line-height: 1.75; }
.about-text .btn { margin-top: 14px; }

/* ---------- เกี่ยวกับ (ตัวที่ 2) พื้นเข้ม รูปครึ่งจอ ---------- */
.dark-split { display: grid; background: var(--dark); color: #fff; }
@media (min-width: 900px) { .dark-split { grid-template-columns: 59fr 41fr; min-height: 410px; } .dark-split.pic-left .dark-pic { order: -1; } }
.dark-text { display: flex; align-items: center; padding: clamp(48px, 6vw, 80px) var(--pad); }
.dark-text .eyebrow { color: #f0a39b; }
.dark-split h2 { font-size: clamp(30px, 4.2vw, 52px); font-weight: 500; line-height: 1.22; margin-bottom: 20px; }
.dark-split p { color: #d8cfc6; font-size: 18.5px; max-width: 30em; }
.bar-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding-left: 16px; border-left: 4px solid var(--accent); min-height: 44px;
  color: #fff; text-decoration: none; font-weight: 500; font-size: 18px; }
.bar-link:hover { color: #f0a39b; }
.dark-pic { position: relative; min-height: 260px; }
.dark-pic img, .dark-pic video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dark-pic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(38, 34, 34, .55), rgba(38, 34, 34, .12)); }

/* ---------- เกี่ยวกับ (ตัวที่ 3) โบรชัวร์ ---------- */
.brochure { display: grid; gap: clamp(32px, 5vw, 80px); align-items: center; }
@media (min-width: 900px) { .brochure { grid-template-columns: 1fr 1fr; } .brochure.pic-left .bro-card { order: -1; } }
.brochure h2 { font-size: clamp(30px, 4.2vw, 52px); font-weight: 500; line-height: 1.22; margin-bottom: 20px; }
.brochure p { color: var(--ink-2); font-size: 18.5px; }
.brochure .btn { margin-top: 10px; }
.bro-card { background: var(--surface); border: 1px solid var(--line-2); padding: 18px 20px 24px; box-shadow: 14px 14px 0 #d7c4ab; }
.bro-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.bro-top img { height: 30px; width: auto; }
.bro-top span { background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 500; text-transform: uppercase; padding: 6px 10px; letter-spacing: .02em; }
.bro-body { display: grid; grid-template-columns: minmax(0, 190px) 1fr; gap: 22px; align-items: center; }
.bro-pic { --pic-gap: 8px; background: #fff; aspect-ratio: 186 / 127; }
.bro-card h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 500; }
.bro-card p { color: var(--muted); font-size: 16px; margin: 6px 0 10px; }
.bro-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 500; text-decoration: none; min-height: 44px; }
.bro-link:hover { text-decoration: underline; }
@media (max-width: 479px) { .bro-body { grid-template-columns: 1fr; } .bro-card { box-shadow: 8px 8px 0 #d7c4ab; } }

/* ---------- ค้นหาสินค้า + การ์ดหมวด (หน้าแรก) ---------- */
.finder { display: grid; grid-template-columns: 1fr; border: 1px solid var(--line-2); background: var(--surface); margin-bottom: 16px; }
@media (min-width: 768px) { .finder { grid-template-columns: 1fr 200px 140px; } }
.finder-q { display: flex; align-items: center; gap: 12px; padding: 0 22px; min-height: 66px; }
.finder-q svg { color: var(--muted); width: 22px; height: 22px; }
.finder input, .finder select { border: 0; background: transparent; font: inherit; font-size: 18px; color: var(--ink); outline: none; min-width: 0; width: 100%; }
.finder input::placeholder { color: #8a817b; }
.finder-cat { display: flex; align-items: center; padding: 0 18px; min-height: 58px; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .finder-cat { border-top: 0; border-left: 1px solid var(--line); } }
.finder-cat select { cursor: pointer; }
.finder .btn { border-radius: 0; min-height: 58px; font-size: 19px; }
.tabs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 18px; scrollbar-width: thin; }
.tabs a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 6px 18px; border: 1px solid var(--line-2); background: var(--surface);
  text-decoration: none; font-size: 16.5px; white-space: nowrap; }
.tabs a:hover { border-color: var(--ink); }
.tabs a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; min-width: 104px; }
.cat-cards { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .cat-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.cat-card { display: flex; flex-direction: column; background: var(--surface); text-decoration: none; min-width: 0;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
@media (hover: hover) and (pointer: fine) { .cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); } .cat-card:hover b { color: var(--accent); } }
.cat-card-pic { --pic-gap: clamp(12px, 2vw, 28px); aspect-ratio: 413 / 290; background: radial-gradient(ellipse at 50% 85%, #fff 0%, #f6f1ea 70%); }
.cat-card-pic img { mix-blend-mode: multiply; }
.cat-card-pic svg { position: absolute; inset: 0; margin: auto; width: 48px; height: 48px; color: var(--line-2); }
.cat-card-body { display: grid; gap: 2px; padding: 14px clamp(12px, 1.6vw, 22px) 20px; }
.cat-card small { color: var(--accent); font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; }
.cat-card b { font-size: clamp(18px, 2vw, 26px); font-weight: 500; line-height: 1.3; transition: color .2s var(--ease); overflow-wrap: anywhere; }
.cat-card span span, .cat-card-body > span { color: var(--muted); font-size: clamp(14px, 1.2vw, 16px); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.new-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: clamp(36px, 5vw, 56px) 0 16px; flex-wrap: wrap; }
.new-head h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; }

/* ---------- การ์ดสินค้า ---------- */
.cards { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .catalog .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .catalog .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); min-width: 0;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); border-color: var(--line-2); }
}
/* พื้นขาวล้วน + contain = รูปสินค้าทุกสัดส่วนอยู่ครบ ไม่โดนครอป (มีตั้งแต่แนวตั้ง 0.6 ถึงแนวนอน 6:1) */
.card-pic { --pic-gap: 10px; aspect-ratio: 4 / 3; background: var(--white); border-bottom: 1px solid var(--line); }
.noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--line-2); }
.noimg svg { width: 48px; height: 48px; }
.card-body { display: flex; flex-direction: column; padding: 12px 12px 14px; flex: 1; }
@media (min-width: 768px) { .card-body { padding: 16px 18px 20px; } }
.card-cat { font-size: 14px; font-weight: 500; color: var(--accent); text-decoration: none; letter-spacing: .02em; text-transform: uppercase; }
a.card-cat:hover { text-decoration: underline; }
.card h3, .card h4, .card h2 { font-size: clamp(17px, 1.6vw, 21px); font-weight: 600; line-height: 1.35; margin-top: 2px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.card h3 a, .card h4 a, .card h2 a { text-decoration: none; display: block; padding-block: 9px; margin-block: -9px; }
.card h3 a:hover { color: var(--accent); }
.card-body p { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 4px 0 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; flex-wrap: wrap; }
.card-more { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink-2); min-height: 44px; }
.card-more:hover { color: var(--accent); }
.card-more svg { width: 16px; height: 16px; }
.card .btn { margin-top: 8px; width: 100%; }
@media (max-width: 479px) { .card .btn { font-size: 14.5px; padding-inline: 8px; gap: 6px; } .card .btn svg { width: 17px; height: 17px; } }
.price { font-weight: 600; color: var(--ink); }
.price s { color: var(--muted); font-weight: 400; font-size: .85em; }
.price.ask { font-size: 14.5px; color: var(--muted); font-weight: 500; }
.tag { display: inline-block; font-size: 14px; padding: 2px 10px; font-weight: 500; }
.tag-out { background: #ece6dc; color: var(--muted); }

.rows { display: grid; gap: 10px; }
.row-item { display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; align-items: center; background: var(--surface);
  border: 1px solid var(--line); padding: 10px; text-decoration: none; }
.row-item:hover { border-color: var(--line-2); }
.row-pic { --pic-gap: 0px; aspect-ratio: 4/3; background: var(--white); }
.row-item b { display: block; }
.row-item span span { display: block; color: var(--muted); font-size: 14.5px; }

/* ---------- แคตตาล็อก /products ---------- */
.cat-layout { display: grid; gap: 20px; }
@media (min-width: 900px) { .cat-layout { grid-template-columns: 270px minmax(0, 1fr); gap: 32px; align-items: start; } }
.cat-side { display: grid; gap: 14px; }
@media (min-width: 900px) { .cat-side { position: sticky; top: 116px; } }
.search { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line-2); padding: 0 14px; }
.search:focus-within { border-color: var(--accent); }
.search svg { color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 16.5px; padding: 13px 0; outline: none; }
.cat-list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.cat-list button { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 16px; min-height: 44px;
  background: var(--surface); border: 1px solid var(--line-2); cursor: pointer; font-size: 16px; white-space: nowrap; text-align: left; }
.cat-list button small { color: var(--muted); font-size: 14px; }
.cat-list button:hover { border-color: var(--ink); }
.cat-list button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.cat-list button[aria-pressed="true"] small { color: #d8cfc2; }
@media (min-width: 900px) {
  .cat-list { flex-direction: column; overflow: visible; gap: 0; background: var(--surface); border: 1px solid var(--line); padding: 6px; }
  .cat-list button { border: 0; white-space: normal; background: none; }
  .cat-list button:hover { background: var(--paper); }
  .cat-list button[aria-pressed="true"] { background: var(--accent); color: #fff; }
  .cat-list button[aria-pressed="true"] small { color: #fde3df; }
}
.cat-status { color: var(--muted); margin-bottom: 14px; scroll-margin-top: 90px; }
.cat-status b { color: var(--ink); }
.cat-empty { background: var(--surface); border: 1px dashed var(--line-2); padding: 28px; text-align: center; color: var(--muted); }
.cat-more { text-align: center; margin-top: 28px; }
.cat-more [hidden] { display: none; }
.card[hidden] { display: none; }

/* ---------- หน้ารายละเอียดสินค้า ---------- */
.pd { padding-top: clamp(20px, 3vw, 32px); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; font-size: 15px; color: var(--muted); margin-bottom: clamp(14px, 2.4vw, 24px); }
.crumbs a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }
.pd-top { display: grid; gap: clamp(22px, 4vw, 56px); align-items: start; }
@media (min-width: 900px) { .pd-top { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.pd-gallery { min-width: 0; }
@media (min-width: 900px) { .pd-gallery { position: sticky; top: 120px; } }
.pd-main { --pic-gap: clamp(12px, 3vw, 28px); aspect-ratio: 1 / 1; background: var(--white); border: 1px solid var(--line); cursor: zoom-in; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.pd-thumbs button { --pic-gap: 4px; flex: none; width: 76px; aspect-ratio: 1; padding: 0; background: var(--white); border: 1px solid var(--line); cursor: pointer; }
.pd-thumbs button[aria-current="true"] { border: 2px solid var(--accent); }
.pd-info h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 600; line-height: 1.18; margin-top: 4px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.pd-short { font-size: clamp(17.5px, 1.7vw, 20px); color: var(--ink-2); margin-top: 12px; }
.pd-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); margin: 22px 0; border: 1px solid var(--line); background: var(--surface); }
.pd-meta div { padding: 12px 16px; border-right: 1px solid var(--line); }
.pd-meta div:last-child { border-right: 0; }
.pd-meta dt { font-size: 14px; color: var(--muted); }
.pd-meta dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.pd-files { display: grid; gap: 10px; margin-bottom: 12px; }
.btn-pdf { justify-content: flex-start; text-align: left; padding-block: 12px; gap: 14px; }
.btn-pdf svg { width: 30px; height: 30px; }
.btn-pdf span { display: grid; }
.btn-pdf small { font-weight: 400; opacity: .85; font-size: 14.5px; }
.pd-actions { display: grid; gap: 10px; }
@media (min-width: 560px) { .pd-actions { grid-template-columns: 1fr 1fr; } .pd-actions .btn-line { grid-column: 1 / -1; } }
.pd-out { margin-top: 14px; color: var(--muted); background: var(--paper-2); padding: 12px 16px; }
.pd-desc { margin-top: clamp(40px, 6vw, 72px); max-width: 900px; }
.pd-desc > h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 500; margin-bottom: 20px; }
.pd-desc > h2::after { content: ''; display: block; width: 60px; height: 4px; background: var(--accent); margin-top: 14px; }
.pd-desc h3 { font-size: 20px; font-weight: 600; margin: 28px 0 10px; }
.pd-desc p { color: var(--ink-2); }
.ticks { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks svg { color: var(--accent); margin-top: 5px; stroke-width: 2.4; }
.spec-wrap { margin: 24px 0; border: 1px solid var(--line); background: var(--surface); }
.spec { width: 100%; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; }
.spec th, .spec td { text-align: left; padding: 11px 16px; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.5; overflow-wrap: anywhere; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec th { width: 46%; font-weight: 600; color: var(--ink-2); }
.spec tr:nth-child(even):not(.spec-group) { background: #f9f6f1; }
.spec .spec-group th { background: var(--ink); color: #fff; font-weight: 500; width: auto; padding-block: 9px; }
@media (max-width: 559px) {
  .spec th, .spec td { display: block; width: auto; padding: 4px 14px; border: 0; }
  .spec tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .spec th { padding-top: 6px; font-size: 14.5px; color: var(--muted); }
  .spec td { font-weight: 600; padding-bottom: 6px; }
  .spec .spec-group th { padding: 8px 14px; }
  .spec tr.spec-group { padding: 0; }
}
.pd-files-end { max-width: 520px; margin-top: 28px; }

/* ---------- แกลเลอรี (masonry ตามสัดส่วนจริง ไม่ครอป) ---------- */
.gal { columns: 2; column-gap: 10px; }
@media (min-width: 480px) { .gal { columns: 3; } }
@media (min-width: 1024px) { .gal { columns: var(--cols); column-gap: 18px; } }
.gal figure { break-inside: avoid; margin: 0 0 10px; }
@media (min-width: 1024px) { .gal figure { margin-bottom: 18px; } }
.gal a { display: block; cursor: zoom-in; overflow: hidden; }
.gal img, .gal video { width: 100%; transition: transform .5s var(--ease); }
@media (hover: hover) and (pointer: fine) { .gal a:hover img { transform: scale(1.03); } }
.gal figcaption { font-size: 14.5px; color: var(--muted); padding: 8px 2px 0; line-height: 1.45; }
.gal figcaption b { color: var(--ink-2); font-weight: 500; display: block; }

/* ---------- คำถาม ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); padding: 0 20px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 500; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq-a { color: var(--ink-2); padding-bottom: 18px; margin: 0; }

/* ---------- แถบชวนติดต่อ ---------- */
.cta-band { padding-block: clamp(48px, 6vw, 80px); text-align: center; }
.cta-band h2 { font-size: clamp(24px, 3.2vw, 38px); font-weight: 500; max-width: 30ch; margin: 0 auto 24px; }
.cta-dark { background: var(--dark); color: #fff; position: relative; }
.cta-dark::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 6px; background: var(--accent); }
.cta-soft { background: var(--sand); }

/* ---------- ติดต่อ ---------- */
.contact { display: grid; gap: clamp(28px, 5vw, 80px); align-items: start; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; } }
.contact-note { color: var(--ink-2); font-size: 18px; margin-bottom: 20px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list li > svg { width: 22px; height: 22px; color: var(--accent); margin-top: 6px; }
.contact-list small { display: block; color: var(--muted); font-size: 14px; }
.contact-list a { font-weight: 500; text-decoration: none; font-size: 19px; color: var(--accent); overflow-wrap: anywhere; min-height: 44px; display: inline-flex; align-items: center; }
.contact-list a:hover { text-decoration: underline; }
.contact-list span { color: var(--ink-2); }
.hours { margin-top: 22px; background: var(--surface); border: 1px solid var(--line); padding: 16px 20px; }
.hours h3 { font-size: 17px; font-weight: 500; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.hours ul { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; padding: 4px 0; font-size: 16px; }
.hours .closed { color: var(--accent); }
.map-box { position: relative; border: 1px solid var(--line-2); background: var(--paper-2); }
.map { display: block; width: 100%; aspect-ratio: 616 / 428; border: 0; filter: saturate(.75) sepia(.12); }
.map-pill { position: absolute; left: 20px; right: 20px; bottom: 20px; display: flex; align-items: center; gap: 10px; min-height: 52px;
  background: var(--surface); padding: 8px 16px; text-decoration: none; font-size: 16px; box-shadow: 0 4px 18px rgba(38, 34, 34, .12); }
.map-pill svg:first-child { color: var(--accent); }
.map-pill span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-pill:hover { color: var(--accent); }
.contact-map { margin-top: clamp(24px, 4vw, 40px); }
.contact-map .map { aspect-ratio: 21 / 9; min-height: 300px; }
.lead { background: var(--surface); border: 1px solid var(--line); padding: clamp(18px, 3vw, 30px); display: grid; gap: 14px; }
.lead h3 { font-size: 22px; font-weight: 500; }
.lead label { display: block; font-weight: 500; font-size: 15.5px; margin-bottom: 4px; }
.lead input, .lead textarea { width: 100%; font: inherit; font-size: 16.5px; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; }
.lead input:focus, .lead textarea:focus { border-color: var(--accent); outline: none; }
.lead .hp { position: absolute; left: -9999px; }
.msg:empty { display: none; }
.msg.ok { color: #1b7a3d; } .msg.bad { color: var(--accent); }
.rt-h { font-size: clamp(24px, 3vw, 34px); font-weight: 500; margin-bottom: 14px; }
.rt { color: var(--ink-2); }

/* ---------- ท้ายเว็บ ---------- */
.foot { background: var(--dark); color: #d5ccc3; padding-top: clamp(40px, 5vw, 64px); }
.foot-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; } }
.foot-brand img { width: 190px; height: auto; margin-bottom: 14px; }
.foot-brand p { font-size: 15.5px; line-height: 1.7; max-width: 44ch; }
.foot-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 28px; font-size: 17.5px; }
.foot-nav i { display: none; }
.foot a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.foot a:hover { text-decoration: underline; }
.foot-contact { list-style: none; padding: 0; margin: 0; display: grid; font-size: 16px; }
.foot-contact svg { width: 17px; height: 17px; }
.foot [href*="line.me"] svg { fill: currentColor; stroke: none; }
.foot .addr { display: flex; gap: 8px; align-items: flex-start; line-height: 1.6; padding-top: 10px; }
.foot .addr svg { margin-top: 4px; color: #fff; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 44px; height: 44px; border: 1px solid #4a4240; justify-content: center; }
.social a:hover { background: var(--accent); border-color: var(--accent); }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid #3d3735; margin-top: 36px; padding-block: 16px 20px; color: #a1958c; }

/* ---------- ปุ่มลอยมือถือ (ไลน์ + โทร) ---------- */
.float-contact { display: none; }
@media (max-width: 767px) {
  .float-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(253, 251, 247, .97); border-top: 1px solid var(--line); }
  .float-contact .btn { min-height: 44px; padding-block: 8px; font-size: 16px; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}

/* ---------- ดูรูปขนาดเต็ม ---------- */
.light { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1200px); max-height: 92vh; }
.light::backdrop { background: rgba(20, 16, 14, .9); }
.light img { max-height: 84vh; width: auto; margin: 0 auto; background: #fff; }
.light p { color: #fff; text-align: center; margin-top: 8px; }
.light button { position: fixed; top: 12px; right: 12px; width: 48px; height: 48px; font-size: 30px; border: 0; background: #fff; cursor: pointer; line-height: 1; }

/* ---------- บทความ (ของเสริม) ---------- */
.a-meta { color: var(--muted); font-size: 14.5px; }
.a-lead { font-size: 19px; color: var(--ink-2); }
.a-body h2 { font-size: 28px; margin: 32px 0 12px; }
.a-body h3 { font-size: 21px; margin: 24px 0 10px; }
.a-toc, .a-embed, .a-cta { background: var(--surface); border: 1px solid var(--line); padding: 18px; margin: 24px 0; }

/* ---------- อนิเมชัน: ขยับขึ้นพร้อมจางเข้า ครั้งเดียว ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s var(--ease), transform .55s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.js .reveal.in { opacity: 1; transform: none; }
.catalog .card.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ข้อความของสไลด์ที่กำลังออก หายเร็วกว่ารูป ไม่ให้ตัวหนังสือซ้อนกันตอนเปลี่ยนสไลด์ */
.hero-full .hero-slide .hero-text { transition: opacity .35s var(--ease) .25s; }
.hero-full .hero-slide:not(.is-on) .hero-text { opacity: 0; transition: opacity .15s; }
/* แถบจุดเด่นบนมือถือ: ไอคอนอยู่บน ตัวหนังสือเต็มความกว้างช่อง */
@media (max-width: 599px) {
  .strip-item { flex-direction: column; gap: 6px; }
  .strip-item svg { margin-top: 0; width: 24px; height: 24px; }
  .strip-item h3 { font-size: 16.5px; }
}

/* แบนเนอร์แบบที่ลูกค้าส่งมา (add/HONiC-elegant-professional-banner) — ป้ายบน + ขีดแดง + บรรทัดหมวดสินค้า */
.hero-eyebrow { display: block; color: #f0a39b; margin-bottom: 26px; }
.hero-eyebrow span { margin-inline: 10px; }
.hero-eyebrow::after { content: ''; display: block; width: 64px; height: 4px; background: var(--accent); margin-top: 22px; }
.hero-sub { color: #fff; font-weight: 500; }
.hero-cats { color: #cfc6bd; font-size: clamp(15px, 1.3vw, 18px); margin-top: 8px; }
.hero-cats i { font-style: normal; margin-inline: 8px; color: var(--accent); }
.hero-count { text-transform: uppercase; }
.hero-full .hero-pic::after { background: linear-gradient(90deg, rgba(10, 8, 8, .78) 0%, rgba(10, 8, 8, .5) 36%, rgba(10, 8, 8, 0) 62%),
  linear-gradient(0deg, rgba(10, 8, 8, .5) 0%, rgba(10, 8, 8, 0) 28%); }
.nobr { display: inline-block; max-width: 100%; }
.spec .spec-sub th { padding-left: 34px; font-weight: 500; }

/* ---------- กันหน้าเว็บกว้างเกินจอบน iPhone (Safari ซูมออก/เลื่อนข้างได้ ถ้ามีอะไรล้นแม้นิดเดียว) ---------- */
html, body { max-width: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body { position: relative; }
main, section, header, footer, .wrap { min-width: 0; max-width: 100vw; }
/* กริด 1 คอลัมน์บนมือถือ ต้องห้ามกว้างตามเนื้อหาข้างใน (แถบหมวดเลื่อนข้าง ปุ่มยาวๆ) */
.cat-layout, .finder, .about, .brochure, .contact, .pd-top, .dark-split { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .cat-layout { grid-template-columns: 270px minmax(0, 1fr); }
  .about, .brochure, .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pd-top { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .dark-split { grid-template-columns: 59fr 41fr; }
}
@media (min-width: 768px) { .finder { grid-template-columns: minmax(0, 1fr) 200px 140px; } }
.cat-layout > *, .cat-side, .cat-list, .tabs, .finder > *, .hero-text, .about > *, .contact > * { min-width: 0; }
.finder select { max-width: 100%; }
/* iframe แผนที่บน iOS ชอบขยายตามเนื้อหาข้างใน */
.map { width: 1px; min-width: 100%; }

/* กล่องรูปสินค้า — ขนาดกล่องมาจาก aspect-ratio อย่างเดียว รูปลอยอยู่ข้างใน จึงไม่มีทางดันกล่องหรือหน้าเว็บให้กว้างตาม
   ห้ามกลับไปใช้ display:grid + height:100% กับรูปพวกนี้ Safari บน iPhone จะขยายกล่องตามขนาดไฟล์จริง รูปล้นกล่องและหน้าเว็บเบี้ยว */
.card-pic, .cat-card-pic, .frame, .bro-pic, .row-pic, .pd-main, .pd-thumbs button { display: block; position: relative; overflow: hidden; min-width: 0; }
.card-pic img, .cat-card-pic img, .frame img, .frame video, .bro-pic img, .row-pic img, .pd-main img, .pd-thumbs img {
  position: absolute; left: var(--pic-gap); top: var(--pic-gap); width: calc(100% - 2 * var(--pic-gap)); height: calc(100% - 2 * var(--pic-gap));
  max-width: none; object-fit: contain;
}
.card { overflow: hidden; }
.hero-full .hero-pic picture { display: block; }
