/* Touch-first layouts: phones, tablets and split view. */
html { scroll-padding-top: 96px; }
img { max-width: 100%; }
main, .hero-copy, .contact-content, .product, .modal-grid > * { min-width: 0; }
button, .button, .line-order, .close, nav a { min-height: 48px; }
button, a, input, textarea { -webkit-tap-highlight-color: #ff783e33; }
input:focus-visible { outline: 3px solid #ffae7b; outline-offset: 3px; }
header { position: sticky; top: 0; z-index: 20; }
nav a { display: flex; align-items: center; }
.product { display: flex; flex-direction: column; }
.product > button:first-child { flex: 1; }
.product h3 { line-height: 1.6; overflow-wrap: anywhere; }
.product .line-order { border-radius: 10px; }
.product-photo { border-radius: 14px; }
.view-piece { opacity: 1; transform: none; border-radius: 6px; }
.section-head { gap: 20px; }
.section-head a { flex-shrink: 0; min-height: 44px; display: flex; align-items: center; }
.search-panel { margin-bottom: 20px; }
.search-panel label { display: block; font-weight: 600; margin-bottom: 10px; }
.search-row { display: flex; gap: 8px; }
.search-row input { width: 100%; min-width: 0; min-height: 52px; background: #24201d; border: 1px solid #766052; color: var(--ink); border-radius: 12px; padding: 12px 16px; font-size: 16px; }
.search-row button { color: var(--ink); background: #30251f; border: 1px solid #766052; border-radius: 12px; padding: 8px 14px; white-space: nowrap; }
.empty-results { grid-column: 1 / -1; padding: 40px 20px; border: 1px dashed #766052; border-radius: 14px; text-align: center; }
.mobile-nav { display: none; }
dialog { border-radius: 20px; max-height: calc(100dvh - 32px); overscroll-behavior: contain; }
dialog .close { position: sticky; top: 0; z-index: 2; background: #30251f; border-radius: 24px; min-width: 80px; }
html:has(dialog[open]) { overflow: hidden; }
.order-actions { position: sticky; bottom: -1px; background: #1d1916; padding-block: 12px; }
.order-dialog .line-qr { margin: 12px 0; }
@media (min-width: 701px) and (max-width: 1180px) {
  header { height: 88px; padding-inline: 4%; }
  .nav-stamp { display: none; }
  .hero { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 28px; padding: 44px 4%; min-height: 0; }
  .hero h1 { font-size: clamp(56px, 7.8vw, 88px); }
  .hero-art { min-height: 360px; margin: 10px 18px 16px 0; }
  .hero .thai-title { font-size: 22px; }
  .hero-foot { flex-wrap: wrap; gap: 12px; }
  .section { padding: 44px 4%; }
  .grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px 18px; }
  .section-head h2 { font-size: 56px; }
  .page-top { padding: 36px 4% 28px; }
  .page-top .page-title { font-size: 76px; }
  .contact-layout { gap: 36px; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .contact-poster { padding: 24px; }
  .contact-poster strong { font-size: 68px; }
  .line-follow { gap: 32px; grid-template-columns: 200px minmax(0,1fr); padding: 44px 4%; }
}
@media (max-width: 700px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  header { height: 76px; padding-inline: 20px; }
  header .logo { font-size: 34px; }
  header .logo small { font-size: 8px; }
  header nav { display: none; }
  .nav-stamp { display: block; font-size: 9px; }
  .announcement { font-size: 10px; letter-spacing: 1px; }
  .announcement span { display: none; }
  .mobile-nav { position: fixed; bottom: 0; inset-inline: 0; z-index: 30; display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: #191512; border-top: 1px solid #614536; }
  .mobile-nav a { min-height: 56px; flex-direction: column; justify-content: center; gap: 3px; font-size: 12px; border: 0; border-radius: 12px; color: #c8beb5; padding: 4px; }
  .mobile-nav a.active { background: #ff783e; color: #17120f; }
  .mobile-nav svg { width: 22px; height: 22px; }
  .hero { grid-template-columns: minmax(0,1fr); padding: 30px 20px 34px; gap: 28px; min-height: 0; }
  .hero h1 { font-size: clamp(48px, 12.8vw, 82px); letter-spacing: -1px; margin-bottom: 22px; }
  .hero .eyebrow { font-size: 10px; margin-bottom: 18px; }
  .hero .thai-title { font-size: 22px; }
  .hero .intro { font-size: 15px; }
  .hero .button { width: 100%; border-radius: 12px; }
  .hero-foot { display: none; }
  .hero-art { min-height: 0; height: clamp(260px,76vw,390px); margin: 8px 16px 8px 8px; transform: rotate(2deg); }
  .sticker { width: 84px; height: 84px; right: -18px; bottom: 28px; font-size: 27px; }
  .sticker span { font-size: 18px; }
  .photo-label { left: -15px; font-size: 15px; }
  .ticker { font-size: 22px; padding-block: 12px; }
  .section { padding: 32px 16px; }
  .section-head { align-items: start; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; padding-bottom: 14px; }
  .section-head .eyebrow { margin-bottom: 12px; }
  .section-head h2 { font-size: clamp(36px,9vw,52px); }
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 12px; }
  .product-photo { aspect-ratio: 1 / 1.25; padding: 5px; }
  .product h3 { font-size: 14px; margin: 10px 0 2px; }
  .tag { top: 7px; left: 7px; font-size: 10px; }
  .view-piece { display: block; bottom: 8px; right: 6px; padding: 5px 7px; font-size: 11px; }
  .product .line-order { margin-top: 10px; font-size: 13px; padding: 10px 4px; }
  .page-top { padding: 30px 20px 24px; }
  .page-top .page-title { font-size: clamp(48px,12vw,76px); }
  .page-top p:last-child { font-size: 15px; line-height: 1.8; }
  .filters { flex-wrap: nowrap; overflow-x: auto; padding: 4px 3px 12px; margin-inline: -3px; gap: 8px; scrollbar-width: thin; }
  .filters button { flex: 0 0 auto; padding: 10px 16px; font-size: 14px; }
  .contact-layout { grid-template-columns: minmax(0,1fr); gap: 32px; }
  .contact-poster { min-height: 260px; transform: none; padding: 26px; }
  .contact-poster strong { font-size: 70px; }
  .contact-content h2 { font-size: 23px; }
  .contact-content .button { width: 100%; }
  .manifesto { flex-direction: column; align-items: start; padding: 36px 20px; }
  .manifesto h2 { font-size: 48px; }
  .line-follow { grid-template-columns: minmax(0,1fr); padding: 32px 20px; gap: 24px; text-align: center; }
  .line-follow-copy { grid-row: 1; }
  .line-follow-copy .line-order { width: 100%; border-radius: 12px; }
  .line-follow-qr { width: 180px; margin-inline: auto; }
  footer { padding: 28px 20px; flex-wrap: wrap; gap: 18px; }
  footer > span { margin: 0; line-height: 1.8; }
  dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); padding: 16px; border-radius: 20px; }
  .modal-grid { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .modal-grid img { max-height: 38dvh; width: 100%; }
  .modal-grid h2 { font-size: 23px; }
  .order-dialog h2 { font-size: 23px; }
  .order-actions { flex-direction: column; gap: 8px; }
  .order-dialog .line-qr img { width: 130px; }
}
@media (pointer: coarse) { .product:hover img { transform: none; } }
/* Readable local fallbacks when Google Fonts cannot load. */
body { font-family: 'IBM Plex Sans Thai', Tahoma, Arial, sans-serif; }
.product .line-order, .line-order { font-family: 'IBM Plex Sans Thai', Tahoma, Arial, sans-serif; }
.sticker { font-size: 28px; }
@media(max-width:700px) { .sticker { font-size: 23px; } }
