/* Mina QR catalogue. Keep product bounds independent of the image's natural size. */
:root {
  --navy: #0f2545;
  --gold: #b8922a;
  --gold-ink: #80651d;
  --paper: #faf9f6;
  --text: #1e293b;
  --muted: #596477;
  --border: #dedfdc;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { --category-height: 66px; scroll-padding-top: calc(64px + var(--category-height) + 20px); }
body { font-family: Inter, 'Noto Sans Thai', sans-serif; color: var(--text); background: var(--paper); line-height: 1.6; }
a { color: var(--navy); text-underline-offset: 4px; }
a:hover { color: var(--gold-ink); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
::selection { background: #eadcba; color: var(--navy); }
.skip-link { position: fixed; top: -80px; left: 12px; z-index: 120; background: #fff; padding: 12px 18px; }
.skip-link:focus { top: 10px; }
.site-nav { position: fixed; inset: 0 0 auto; z-index: 100; height: 64px; background: var(--navy); display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 48px; color: #fff; }
.nav-logo { display: flex; align-items: center; gap: 12px; min-height: 64px; color: #fff; text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; }
.nav-logo img { border-radius: 50%; object-fit: cover; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { color: #d2d8e1; text-decoration: none; font-size: 14px; display: flex; align-items: center; min-height: 48px; }
.site-nav a:hover { color: #fff; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px; border: 1px solid #728099; border-radius: 24px; color: #fff; text-decoration: none; font-size: 13px; white-space: nowrap; }
.mobile-nav { display: none; }
.mobile-nav summary { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; cursor: pointer; list-style: none; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary svg { width: 22px; height: 22px; }
.mobile-links { position: absolute; top: 64px; left: 0; right: 0; background: var(--navy); padding: 8px 24px 16px; border-top: 1px solid #42536c; }
.mobile-links a { display: block; min-height: 48px; padding: 12px 0; color: #fff; text-decoration: none; }
main { max-width: 1184px; margin: 64px auto 0; padding: 0 32px 48px; }
.intro { padding: 16px 0 20px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 13px; text-decoration: none; color: var(--muted); }
.back-link svg { width: 16px; height: 16px; }
h1 { font-family: 'Playfair Display', 'Noto Sans Thai', serif; font-size: 48px; line-height: 1.2; font-weight: 600; color: var(--navy); margin: 8px 0 12px; }
.intro-text { font-size: 16px; line-height: 1.6; color: var(--navy); }
.intro-translation { font-size: 14px; line-height: 1.6; margin-top: 4px; color: var(--muted); }
.menu-icon, .section-icon, .link-arrow { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.guest-note-strip { list-style: none; display: flex; gap: 40px; padding: 16px 0; border-top: 1px solid var(--border); }
.guest-note-strip li { display: flex; gap: 10px; align-items: center; }
.guest-note-strip .menu-icon { width: 22px; height: 22px; color: var(--gold-ink); }
.guest-note-strip p { font-size: 12px; line-height: 1.6; color: var(--muted); }
.guest-note-strip p:first-child { font-size: 13px; font-weight: 500; color: var(--navy); }
.category-nav { position: sticky; top: 64px; z-index: 80; background: var(--paper); padding: 8px 0; margin-bottom: 28px; border-bottom: 1px solid var(--border); }
.category-nav ul { display: flex; gap: 8px; list-style: none; overflow-x: auto; padding: 0 0 2px; scrollbar-width: thin; scrollbar-color: var(--gold) #ebe5d8; }
.category-nav li { flex: 1 0 auto; }
.category-nav a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 14px; text-decoration: none; font-size: 13px; font-weight: 500; line-height: 1.5; border-radius: 6px; color: var(--navy); white-space: nowrap; }
.category-nav .menu-icon { width: 20px; height: 20px; }
.category-nav a:hover { background: #efe9dc; }
.category-nav a[aria-current=location] { background: var(--navy); color: #fff; }
.category-nav a:focus-visible { outline-offset: -3px; }
.catalogue-content { min-width: 0; }
.catalogue-section { margin-bottom: 40px; }
.section-heading { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 10px; align-items: center; margin-bottom: 18px; }
.section-icon { grid-row: 1 / 3; width: 28px; height: 28px; color: var(--gold-ink); }
h2 { font-family: 'Playfair Display', 'Noto Sans Thai', serif; color: var(--navy); font-size: 27px; font-weight: 600; line-height: 1.4; }
.category-translation { grid-column: 2; font-size: 13px; color: var(--muted); margin-top: 2px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; }
.product { min-width: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid #e4e1d9; border-radius: 12px; padding: 16px; }
.product-photo { position: relative; display: flex; align-items: center; justify-content: center; height: 152px; margin-bottom: 16px; background: #fff; }
.product-photo img { display: block; width: 100%; max-width: 172px; height: 100%; max-height: 152px; object-fit: contain; }
.product-photo:has(.is-placeholder) { background: #f5f2ea; border-radius: 6px; }
.photo-caption { position: absolute; bottom: 6px; left: 4px; right: 4px; text-align: center; color: var(--muted); font-size: 11px; line-height: 1.4; }
h3 { font-size: 14px; font-weight: 600; line-height: 1.5; color: var(--navy); overflow-wrap: break-word; }
.product-translation { font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 4px; overflow-wrap: break-word; }
.product-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 14px; }
.product-size { font-size: 12px; color: var(--muted); white-space: nowrap; }
.product-price { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 22px; color: var(--navy); line-height: 1.4; white-space: nowrap; }
.currency { font-size: 11px; font-weight: 400; margin-left: 4px; color: var(--muted); }
.more-info { border-top: 1px solid var(--border); padding-top: 24px; }
.packaging-note { margin-bottom: 24px; color: var(--muted); font-size: 13px; }
.packaging-note p + p { margin-top: 4px; font-size: 12px; }
.more-info h2 { font-family: Inter, 'Noto Sans Thai', sans-serif; font-size: 16px; }
.more-info > p { font-size: 12px; color: var(--muted); margin-top: 3px; }
.guest-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 12px; }
.guest-links a { display: flex; align-items: center; gap: 10px; padding: 12px 0; min-height: 64px; text-decoration: none; }
.guest-links .menu-icon { width: 24px; height: 24px; color: var(--gold-ink); }
.guest-links strong { display: block; font-size: 13px; line-height: 1.5; font-weight: 500; }
.guest-links small { display: block; font-size: 12px; line-height: 1.5; color: var(--muted); margin-top: 3px; }
.link-arrow { width: 16px; height: 16px; margin-left: auto; color: var(--gold-ink); }
footer { background: #09192e; color: #c4cbd5; padding: 24px 48px; font-size: 12px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; line-height: 1.8; }
footer a { display: inline-flex; align-items: center; min-height: 44px; color: #c4cbd5; }
footer a:hover { color: #fff; }
html[lang=th] h1, html[lang=th] h2 { font-family: 'Noto Sans Thai', sans-serif; }
@media (max-width: 1000px) {
  .site-nav { padding: 0 24px; }
  .nav-links { display: none; }
  .mobile-nav { display: block; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .category-nav li { flex: 0 0 auto; }
  .guest-links { gap: 16px; }
  footer { padding: 24px; }
}
@media (max-width: 600px) {
  .site-nav { padding: 0 16px; gap: 8px; }
  .nav-logo { gap: 8px; font-size: 13px; }
  .nav-logo img { width: 30px; height: 30px; }
  .nav-right { gap: 6px; }
  .lang-switch { padding: 0 12px; }
  main { padding: 0 16px 32px; }
  .intro { padding: 8px 0 16px; }
  .back-link { font-size: 12px; }
  h1 { font-size: 36px; margin: 4px 0 8px; }
  .intro-text { font-size: 14px; line-height: 1.55; }
  .intro-translation { font-size: 12px; line-height: 1.6; }
  .guest-note-strip { display: grid; grid-template-columns: 1fr 1.5fr; gap: 12px; padding: 12px 0; }
  .guest-note-strip li { align-items: flex-start; gap: 7px; }
  .guest-note-strip .menu-icon { width: 18px; height: 18px; margin-top: 2px; }
  .guest-note-strip p, .guest-note-strip p:first-child { font-size: 11px; }
  .category-nav { margin-bottom: 22px; }
  .category-nav a { padding: 10px 12px; font-size: 12px; gap: 6px; }
  .category-nav .menu-icon { width: 18px; height: 18px; }
  .section-heading { grid-template-columns: 24px minmax(0, 1fr); gap: 2px 8px; margin-bottom: 14px; }
  .section-icon { width: 24px; height: 24px; }
  h2 { font-size: 22px; }
  .category-translation { font-size: 12px; }
  .catalogue-section { margin-bottom: 32px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product { padding: 12px; }
  .product-photo { height: 124px; margin-bottom: 12px; }
  .product-photo img { max-width: 136px; max-height: 124px; }
  h3 { font-size: 13px; }
  .product-translation { font-size: 12px; }
  .product-meta { gap: 4px; flex-wrap: wrap; padding-top: 12px; }
  .product-price { font-size: 20px; }
  .product-size { font-size: 11px; }
  .currency { font-size: 10px; margin-left: 3px; }
  .guest-links { grid-template-columns: 1fr; gap: 0; }
  .guest-links a + a { border-top: 1px solid var(--border); }
  .photo-caption { font-size: 10px; }
  footer { padding: 16px; display: block; }
  footer .fr { display: block; margin-top: 4px; }
}
