/* มิราผ้าแขก — ออกแบบตามแบบอ้างอิงจากฟ็อก: แดงโลโก้ ครีมอุ่น ทองเหลืองเก่า น้ำตาลเข้ม
   กฎเหล็ก: ทุกส่วนต้องยังสวยเมื่อลูกค้าใส่ข้อความสั้นมากหรือยาวมาก และต้องไม่ล้นจอที่ 360px
   รูปสินค้า/แกลเลอรี/รีวิว ไม่ครอปไม่มีกรอบ · ซุ้มโค้งอินเดียคือลายเซ็นของเว็บนี้ */

:root {
  --accent: #A50F1E;
  --accent-deep: #8E0F1A;
  --accent-ink: #fff;
  --ink: #1F1410;
  --brown: #2A1710;
  --muted: #6A564B;
  --paper: #FBF6EE;
  --paper-2: #F4EBDC;
  --line: #E4D6C1;
  --brass: #7F5D22;
  --brass-soft: #C8A468;
  --radius: 14px;
  --font: 'IBM Plex Sans Thai', -apple-system, 'Segoe UI', sans-serif;
  --gap: clamp(52px, 7vw, 96px);
  --pad: clamp(16px, 4vw, 32px);
  --max: 1200px;
  /* ขอบซุ้มโค้ง ใช้เป็นหน้ากากด้านขวาของแผงข้อความบนแบนเนอร์ */
  --arch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 600' preserveAspectRatio='none'%3E%3Cpath fill='%23FBF6EE' d='M0 0h24c6 34 30 42 54 58 22 16 30 36 26 62 22 18 16 54-6 74 14 34 22 66 22 106s-8 72-22 106c22 20 28 56 6 74 4 26-4 46-26 62-24 16-48 24-54 58H0z'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper);
  font-size: 16px; line-height: 1.75; -webkit-text-size-adjust: 100%;
  padding-bottom: 76px; overflow-x: clip;
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
body.nav-open { overflow: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.4; margin: 0; text-wrap: balance; font-weight: 700; }
/* วลีในหัวข้อ: อยู่บรรทัดเดียวกันถ้าพอดีจอ ยาวเกินจอจริงค่อยตัดในวลี */
.w { display: inline-block; max-width: 100%; }
p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.wrap-narrow { max-width: 760px; }
.sec { padding-block: var(--gap); }
.sec-alt { background: var(--paper-2); }
.sec-head { max-width: 62ch; margin: 0 auto clamp(26px, 4vw, 42px); text-align: center; }
.sec-head h2, .rt-head { font-size: clamp(26px, 3.6vw, 40px); color: var(--accent); }
.sec-head h2::after {
  content: ''; display: block; width: 74px; height: 9px; margin: 12px auto 0;
  background: radial-gradient(circle at center, var(--brass-soft) 0 3.5px, transparent 4px) center/9px 9px no-repeat,
    linear-gradient(var(--brass-soft), var(--brass-soft)) center/100% 1px no-repeat;
}
.sec-head p { color: var(--muted); margin: 14px 0 0; }
.muted { color: var(--muted); font-size: 15px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 26px; border-radius: 999px; font: inherit; font-weight: 600;
  background: var(--accent); color: var(--accent-ink); text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--accent); transition: background-color .2s ease, transform .2s ease, color .2s ease;
  min-height: 48px; text-align: center;
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: #B9AFA5; border-color: #B9AFA5; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-ghost:hover { background: var(--accent); color: #fff; }
.btn-light { background: #fff; color: var(--accent); border-color: #fff; }
.btn-light:hover { background: var(--paper-2); border-color: var(--paper-2); color: var(--accent-deep); }
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: 15px; }
.btn-block { width: 100%; }
.link-more { color: var(--accent); font-weight: 600; text-underline-offset: 5px; display: inline-flex; align-items: center; min-height: 44px; }
.sec-more { text-align: center; margin-top: 26px; }
.link-btn { background: none; border: 0; padding: 8px 4px; min-height: 44px; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }

/* แถบบน + หัวเว็บ */
.topbar { background: var(--accent-deep); color: #fff; font-size: 14px; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 0 26px; justify-content: center; align-items: center; }
.topbar a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 559px) { .topbar span, .tb-line { display: none !important; } }

/* ห้ามใส่ backdrop-filter / transform / filter บนหัวเว็บ เมนูมือถืออยู่นอกหัวเว็บอยู่แล้วแต่กันไว้ */
.nav { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; min-width: 0; }
.logo img { width: 84px; height: auto; mix-blend-mode: multiply; flex: none; }
.logo span { display: flex; flex-direction: column; line-height: 1.4; border-left: 1px solid var(--line); padding-left: 12px; }
.logo b { font-size: 19px; }
.logo small { font-size: 14px; color: var(--muted); }
.nav-links { display: none; gap: 2px; }
.nav-links a { padding: 8px 11px; text-decoration: none; border-radius: 8px; font-size: 16px; white-space: nowrap; }
.nav-links a:hover { color: var(--accent); }
.nav-links a[aria-current="page"] { color: var(--accent); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav-cta { display: none; }
.nav-cart { position: relative; display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-cart svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.nav-cart span { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 12px; line-height: 19px; text-align: center; padding-inline: 4px; }
.nav-toggle { width: 46px; height: 46px; background: none; border: 0; display: grid; place-content: center; gap: 7px; cursor: pointer; padding: 0; flex: none; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); transition: transform .2s ease; }
body.nav-open .nav-toggle span:first-child { transform: translateY(4.5px) rotate(45deg); }
body.nav-open .nav-toggle span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.mnav { position: fixed; inset: 0; z-index: 35; background: var(--paper); padding: 150px var(--pad) 32px; overflow-y: auto; display: flex; flex-direction: column; gap: 22px; }
.mnav nav { display: flex; flex-direction: column; }
.mnav nav a { padding: 13px 2px; font-size: 21px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.mnav nav a[aria-current="page"] { color: var(--accent); }
@media (min-width: 1040px) {
  .nav-links, .nav-cta { display: inline-flex; }
  .nav-toggle, .mnav { display: none !important; }
}

/* แบนเนอร์ */
.hero { position: relative; overflow: hidden; }
.hero-track { display: flex; }
.hero-slide { flex: 0 0 100%; min-width: 0; position: relative; }
.hero-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 2px; }
.hero-dots button { width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 0; display: grid; place-items: center; }
.hero-dots button::before { content: ''; width: 11px; height: 11px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--accent); }
.hero-dots button[aria-current="true"]::before { background: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-split .hero-slide { display: flex; flex-direction: column-reverse; background: var(--paper); }
.hero-split .hero-pic img { width: 100%; height: min(50vh, 420px); object-fit: cover; object-position: 50% 12%; aspect-ratio: auto !important; }
.hero-split .hero-body { padding: 28px var(--pad) 36px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero-split h1 { font-size: clamp(32px, 8.6vw, 62px); color: var(--accent); }
.hero-split .hero-body > p { font-size: clamp(16px, 2vw, 19px); max-width: 34em; margin: 0; }
.hero-split .hero-actions { justify-content: center; }
.hero-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; min-height: 44px; }
.hero-phone svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
@media (min-width: 768px) {
  .hero-split .hero-slide { display: grid; grid-template-columns: 62% 38%; min-height: min(78vh, 680px); }
  .hero-split .hero-body { position: relative; z-index: 1; padding: 40px 30px 40px var(--pad); justify-content: center; }
  .hero-split h1 { font-size: clamp(34px, 4.4vw, 62px); }
  .hero-split .hero-body::after { content: ''; position: absolute; top: 0; bottom: 0; right: -64px; width: 64px; background: var(--arch) center/100% 100% no-repeat; }
  .hero-split .hero-pic { position: relative; }
  .hero-split .hero-pic img { position: absolute; inset: 0; height: 100%; }
}

.hero-full picture img { width: 100%; height: min(70vh, 640px); object-fit: cover; object-position: 50% 25%; aspect-ratio: auto !important; }
.hero-full .hero-body { position: absolute; inset: auto 0 0; padding: 60px var(--pad) 40px; color: #fff; background: linear-gradient(transparent, rgba(30, 10, 6, .75)); }
.hero-full h1 { font-size: clamp(30px, 5vw, 56px); }

/* แถบเตี้ย = ป้ายร้าน แสดงเต็มภาพ */
.hero-compact { background: var(--accent-deep); padding: clamp(14px, 3vw, 34px) var(--pad); }
.hero-compact img { width: 100%; max-width: 860px; margin-inline: auto; border-radius: 22px; }
.hero-compact .hero-body { color: #fff; text-align: center; padding-top: 14px; }

/* จุดเด่น */
.sec-features { padding-block: clamp(26px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.sec-features:has(.sec-head) { padding-block: var(--gap); }
.features-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 480px) and (max-width: 767px) { .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) { .features-grid { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 24px; } }
.feature { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 8px 4px; }
.feature-icon { width: 58px; height: 58px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; color: var(--brass); flex: none; }
.feature-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.feature h3 { font-size: 17px; }
.feature p { margin: 4px 0 0; font-size: 15px; color: var(--muted); line-height: 1.6; }

/* แผ่นเลือกตามหมวด */
.cat-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: clamp(36px, 5vw, 60px); }
@media (min-width: 1024px) { .cat-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.cat-tile { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; box-shadow: 0 1px 3px rgba(60, 30, 10, .12); }
.cat-tile:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(60, 30, 10, .14); }
.cat-pic img { width: 100%; aspect-ratio: 4/3 !important; object-fit: cover; object-position: 50% 15%; }
.cat-text { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; }
.cat-text b { color: var(--accent); font-size: 19px; }
.cat-text span { font-size: 15px; color: var(--muted); line-height: 1.55; }
.cat-text em { font-style: normal; color: var(--accent); font-weight: 600; font-size: 15px; margin-top: 4px; }

/* การ์ดสินค้า — รูปคงสัดส่วนไฟล์ ไม่ครอป */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 10px; align-items: start; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 18px; } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cards-empty { text-align: center; padding: 34px 0; color: var(--muted); }
.card { transition: transform .2s ease; }
.card:hover { transform: translateY(-3px); }
.card-pic { display: block; position: relative; }
.card-pic img { width: 100%; border-radius: 10px; }
.card-flag { position: absolute; top: 8px; left: 8px; background: var(--brown); color: #fff; font-size: 14px; padding: 2px 10px; border-radius: 999px; }
.card-body { padding-top: 10px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.card-body h3 { font-size: 16.5px; line-height: 1.45; }
.card-body h3 a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.card-body p { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.55; }
.card-cat { font-size: 14px; color: var(--brass); }
.card-price { font-weight: 700; font-size: 18px; color: var(--accent); }
.card-price s { font-weight: 400; color: var(--muted); font-size: 15px; margin-left: 6px; }
.card-sold { font-weight: 600; color: var(--muted); }
.card .btn { margin-top: 6px; width: 100%; padding-inline: 8px; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 6px 18px; border-radius: 999px; border: 1px solid currentColor; background: transparent; font: inherit; font-size: 15px; color: var(--accent); cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.sort { display: inline-flex; align-items: center; gap: 8px; }
.sort select, input, textarea, select { font: inherit; font-size: 16px; }
.sort select { min-height: 44px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }

/* เรื่องราว */
.story { padding-block: clamp(36px, 5vw, 72px); }
.about { display: grid; gap: 22px; align-items: center; }
.about-pic img { width: 100%; max-width: 500px; margin-inline: auto; border-radius: var(--radius); }
@media (min-width: 860px) {
  .about { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); }
  .about.pic-right { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .about.pic-right .about-pic { order: 2; }
}
.about-text h2 { font-size: clamp(25px, 3.4vw, 38px); color: var(--accent); margin-bottom: 14px; }
.about-text .btn { margin-top: 18px; }

/* แถบแดง: แกลเลอรี */
.sec-red { background: var(--accent-deep); color: #fff; }
.sec-red .sec-head h2 { color: #fff; }
.sec-red .sec-head p { color: #F6E3D5; }
.sec-red .chip { color: #fff; }
.sec-red .chip[aria-pressed="true"] { background: #fff; border-color: #fff; color: var(--accent-deep); }
.sec-red .chips { justify-content: center; margin-bottom: 24px; }
.gal { columns: 2; column-gap: 10px; }
@media (min-width: 480px) { .gal { columns: 3; } }
@media (min-width: 1024px) { .gal { columns: var(--cols, 4); column-gap: 14px; } }
.gal a { display: block; break-inside: avoid; margin-bottom: 10px; position: relative; }
.gal img { width: 100%; border-radius: 8px; transition: opacity .2s ease; }
.gal a:hover img { opacity: .9; }
.gal-note { position: absolute; left: 8px; bottom: 8px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 14px; padding: 0 8px; border-radius: 6px; }

/* ลูกค้าใส่จริง */
.quotes { columns: 2; column-gap: 10px; }
@media (min-width: 768px) { .quotes { columns: 3; } }
@media (min-width: 1024px) { .quotes { columns: 4; column-gap: 16px; } }
.quote { margin: 0 0 18px; break-inside: avoid; }
.quote img { width: 100%; border-radius: 10px; }
.quote figcaption { padding-top: 8px; font-size: 15px; line-height: 1.55; }
.quote figcaption p { margin: 0 0 2px; }
.quote figcaption > span { color: var(--muted); font-size: 14px; }
.quote b { font-weight: 600; }

/* คลิป */
.sec-video { background: var(--brown); color: #fff; }
.video-wrap { display: grid; gap: 26px; justify-items: center; text-align: center; }
.video-text h2 { font-size: clamp(25px, 3.4vw, 38px); margin-bottom: 16px; }
.video-text .btn-ghost { color: #fff; border-color: #fff; }
.video-text .btn-ghost:hover { background: #fff; color: var(--brown); }
.video-frame { width: min(100%, 340px); aspect-ratio: 9/16; background: #000; border-radius: 12px; overflow: hidden; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (min-width: 860px) { .video-wrap { grid-template-columns: 1fr 1fr; text-align: left; justify-items: start; align-items: center; } .video-frame { justify-self: center; } }

/* คำถาม */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; min-height: 44px; list-style-position: outside; }
.faq-a { padding: 0 0 16px; color: var(--muted); margin: 0; }

.cta-band { text-align: center; }
.cta-dark { background: var(--accent-deep); color: #fff; }
.cta-soft { background: var(--paper-2); }
.cta-band h2 { font-size: clamp(23px, 3vw, 34px); margin-bottom: 18px; }

/* ติดต่อ */
.sec-contact { background: var(--accent-deep); color: #fff; }
.sec-contact .sec-head h2 { color: #fff; }
.contact { display: grid; gap: 26px; }
@media (min-width: 860px) { .contact { grid-template-columns: 1fr 1fr; gap: 48px; } }
.contact-list, .hours { list-style: none; margin: 0 0 18px; padding: 0; }
.contact-list li { display: flex; gap: 12px; padding: 6px 0; align-items: flex-start; }
.contact-list a { display: inline-flex; min-height: 44px; align-items: center; overflow-wrap: anywhere; }
.contact-list li:has(a) { padding: 0; align-items: center; } .contact-list li:has(a) svg { margin-top: 0; }
.contact-list svg { width: 22px; height: 22px; flex: none; margin-top: 3px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.lead { background: var(--paper); color: var(--ink); padding: clamp(18px, 3vw, 28px); border-radius: var(--radius); display: grid; gap: 14px; }
label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 4px; }
input:not([type=radio]):not([type=file]), textarea { width: 100%; padding: 11px 13px; min-height: 48px; border: 1px solid #BBA98F; border-radius: 10px; background: #fff; color: var(--ink); }
textarea { min-height: 112px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.msg { font-size: 15px; margin: 6px 0 0; min-height: 1px; }
.msg.ok { color: #1E6B3A; } .msg.bad { color: #B3261E; font-weight: 600; }
.sec-contact .msg.ok { color: #1E6B3A; }
.map-wrap { margin-top: 26px; }
.map { width: 100%; height: 340px; border: 0; border-radius: var(--radius); display: block; background: var(--paper-2); }

/* ท้ายเว็บ */
.foot { background: var(--brown); color: #F1E5D5; padding-block: 44px 28px; font-size: 15px; }
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1.3fr; } }
.foot b { font-size: 22px; color: #fff; }
.foot h2 { font-size: 16px; color: var(--brass-soft); margin-bottom: 8px; }
.foot p { margin: 4px 0 0; }
.foot a { display: inline-flex; min-height: 44px; align-items: center; text-underline-offset: 4px; }
.foot p:has(a) { margin: 0; }
.foot-nav { display: flex; flex-direction: column; }
.foot-nav a { text-decoration: none; }
.social { display: flex; gap: 6px; margin-top: 10px; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); }
.social svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.foot small { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .18); padding-top: 14px; text-align: center; font-size: 14px; }

.float-contact { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 8px; padding: 8px 10px; background: var(--paper); border-top: 1px solid var(--line); padding-bottom: max(8px, env(safe-area-inset-bottom)); }
.float-contact .btn { flex: 1; min-height: 44px; padding-block: 6px; }
@media (min-width: 900px) { .float-contact { display: none; } }

dialog.light { padding: 0; border: 0; background: transparent; max-width: 94vw; max-height: 94vh; }
dialog.light::backdrop { background: rgba(20, 10, 6, .88); }
dialog.light img { max-width: 94vw; max-height: 94vh; width: auto; height: auto; }
dialog.light button { position: fixed; top: 10px; right: 10px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; font-size: 28px; line-height: 1; cursor: pointer; }

/* เนื้อหาปรากฏตอนเลื่อนถึง */
.js-reveal .reveal { opacity: 0; translate: 0 18px; transition: opacity .5s ease, translate .5s ease; }
.js-reveal .reveal.in { opacity: 1; translate: 0 0; }

/* หน้าสินค้า */
.crumbs { font-size: 15px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { display: inline-flex; min-height: 44px; min-width: 44px; justify-content: center; align-items: center; }
.pd { padding-block: clamp(20px, 3vw, 44px) var(--gap); }
.pd-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.pd-gallery, .pd-info { min-width: 0; }
@media (min-width: 860px) { .pd-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 5fr); gap: 48px; align-items: start; } .pd-gallery { position: sticky; top: 90px; } }
.pd-main { display: block; } .pd-main img { width: 100%; max-height: 82vh; object-fit: contain; border-radius: 12px; }
.pd-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 4px; }
.pd-thumbs button { flex: 0 0 66px; padding: 0; border: 2px solid transparent; border-radius: 8px; background: none; cursor: pointer; overflow: hidden; min-height: 44px; }
.pd-thumbs button[aria-current="true"] { border-color: var(--accent); }
.pd-thumbs img { width: 100%; }
.pd-info h1 { font-size: clamp(26px, 3.6vw, 38px); }
.pd-short { color: var(--muted); margin-top: 8px; }
.pd-price { font-size: 28px; font-weight: 700; color: var(--accent); margin: 10px 0 16px; }
.pd-price s { font-size: 18px; font-weight: 400; color: var(--muted); }
.pd-note { font-size: 15px; color: var(--muted); margin-top: 10px; }

/* QR ไลน์ของร้าน — หน้าติดต่อแสดงทุกจอ · หน้าสินค้าแสดงเฉพาะตอนเปิดจากคอม (สแกนด้วยมือถือ) */
.line-qr { display: flex; gap: 16px; align-items: center; margin: 4px 0 20px; }
.line-qr svg { flex: none; width: 128px; height: 128px; background: #fff; border-radius: 12px; padding: 4px; box-shadow: 0 1px 2px rgba(31, 20, 16, .08), 0 4px 14px rgba(31, 20, 16, .08); }
.line-qr p { margin: 0; display: grid; gap: 4px; font-size: 15px; line-height: 1.5; }
.line-qr b { font-size: 16px; }
.sec-contact .line-qr span { color: rgba(255, 255, 255, .82); }
.pd-info .line-qr { margin: 16px 0 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-2); }
.pd-info .line-qr span { color: var(--muted); }
.pd-info .line-qr { flex-wrap: wrap; }
.pd-info .line-qr svg { width: 200px; height: 200px; }
.pd-info .line-qr p { flex: 1 1 180px; }
.pc-only { display: none; }
.is-pc .pc-only { display: block; }
.pd-desc { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.pd-facts { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
.pd-facts li { display: flex; gap: 10px; align-items: center; }
.pd-facts svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--brass); stroke-width: 1.5; }
.pd-facts a { min-height: 44px; display: inline-flex; align-items: center; }
.pd-buy { display: grid; gap: 12px; }
.pd-stock { color: var(--muted); margin: 0; }
.pd-options { border: 0; padding: 0; margin: 0; } .pd-options legend { font-weight: 600; margin-bottom: 6px; }
.pd-opt { display: inline-block; margin: 0 6px 6px 0; font-weight: 400; }
.pd-opt input { position: absolute; opacity: 0; }
.pd-opt span { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border: 1px solid #BBA98F; border-radius: 10px; cursor: pointer; }
.pd-opt input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.pd-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.pd-opt.is-out span { opacity: .5; cursor: not-allowed; }
.qty { display: inline-flex; align-items: center; gap: 10px; margin: 0; } .qty input { width: 86px !important; }

/* ตะกร้า สั่งซื้อ ติดตาม */
.shop-page h1, .notfound h1 { font-size: clamp(26px, 3.6vw, 38px); color: var(--accent); margin-bottom: 20px; }
.notfound { text-align: center; } .notfound .btn { margin-top: 16px; }
.empty { text-align: center; padding: 40px 0; display: grid; gap: 14px; justify-items: center; }
.cart-grid, .checkout, .order-grid { display: grid; gap: 26px; align-items: start; }
@media (min-width: 860px) { .cart-grid, .checkout, .order-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 40px; } }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-lines li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 6px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-lines img { width: 72px; border-radius: 8px; grid-row: span 3; }
.cl-text { display: flex; flex-direction: column; font-size: 15px; } .cl-text b { font-size: 16px; }
.co-sum { background: var(--paper-2); padding: 18px; border-radius: var(--radius); }
.co-sum h2, .co-col h2, .pay-box h2, .timeline h2, .thanks h2 { font-size: 20px; margin-bottom: 10px; }
.co-sum .btn { margin-top: 12px; }
.co-col { display: grid; gap: 14px; }
.sum { margin: 10px 0 0; } .sum div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; } .sum dt { font-weight: 400; } .sum dd { margin: 0; white-space: nowrap; }
.sum .is-off dd { color: #1E6B3A; }
.sum-total { border-top: 1px solid #CDBBA2; margin-top: 6px; padding-top: 8px !important; font-weight: 700; font-size: 19px; }
.sum-lines { list-style: none; padding: 0; margin: 0; } .sum-lines li { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; padding: 3px 0; }
.free-note { color: var(--brass); font-weight: 600; margin-top: 8px; }
.pay-list { display: grid; gap: 8px; }
.pay-opt { display: flex; gap: 10px; align-items: center; min-height: 48px; padding: 8px 12px; background: #fff; border: 1px solid #BBA98F; border-radius: 10px; font-weight: 400; margin: 0; cursor: pointer; }
.pay-opt input { width: 20px; height: 20px; accent-color: var(--accent); }
.coupon-row { display: flex; gap: 8px; } .coupon-row input { flex: 1; min-width: 0; }
.track-form { display: grid; gap: 12px; max-width: 440px; margin-bottom: 26px; }
.thanks { background: var(--paper-2); padding: 18px; border-radius: var(--radius); margin-bottom: 20px; }
.order-status { display: flex; gap: 10px; align-items: baseline; font-size: 19px; } .order-status b { color: var(--accent); }
.pay-box { margin: 18px 0; padding: 18px; background: #fff; border-radius: var(--radius); }
.pay-amount { font-size: 34px; font-weight: 700; color: var(--accent); margin: 0; }
.qr { width: min(100%, 260px); margin: 12px 0; } .qr svg { width: 100%; height: auto; display: block; }
.bank { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.slip-form { display: grid; gap: 10px; margin-top: 14px; } .slip-form img { max-width: 220px; border-radius: 8px; }
.timeline ol { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--brass-soft); }
.timeline li { padding: 4px 0 12px; position: relative; display: flex; flex-direction: column; }
.timeline li::before { content: ''; position: absolute; left: -24px; top: 12px; width: 10px; height: 10px; background: var(--accent); border-radius: 50%; }
.timeline time { font-size: 14px; color: var(--muted); }

.a-wrap { max-width: 760px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
