/* ==========================================================================
   OpiaOpoy — ร้านสินค้าน้องแมว
   โทนจากภาพแบนเนอร์ของร้าน: ครีมอุ่น · ชมพูกุหลาบ · ลาเวนเดอร์อ่อน · เส้นทอง
   ฟอนต์: Mali (หัวข้อ น่ารัก มีลูกเล่น) + Anuphan (เนื้อหา อ่านง่าย) + Pinyon Script (ชื่อแบรนด์อังกฤษเท่านั้น)
   ========================================================================== */

:root {
  --paper: #fffaf6;
  --paper-2: #fdf2f4;
  --blush: #f9e3e9;
  --blush-2: #f3cfd9;
  --lav: #eee8f7;
  --rose: #b24f72;
  --rose-deep: #8e3a58;
  --ink: #4a2f39;
  --muted: #7a636c;
  --gold: #b8925a;
  --gold-soft: #e7d4b3;
  --line: #f0dde3;
  /* ครีม + อักษรดำ สำหรับแถบประกาศและปุ่มหลัก (ลูกค้าขอ 13 ต.ค.) */
  --cream: #f4e7d4;
  --cream-2: #ecdabf;
  --cream-line: #e2cba7;
  --black: #1d1517;
  --ok: #2f7a55;
  --bad: #b3261e;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(142, 58, 88, .06), 0 8px 24px -10px rgba(142, 58, 88, .22);
  --shadow-lift: 0 2px 4px rgba(142, 58, 88, .08), 0 16px 32px -12px rgba(142, 58, 88, .3);
  --font: 'Anuphan', 'Noto Sans Thai', system-ui, sans-serif;
  --display: 'Mali', 'Anuphan', system-ui, sans-serif;
  --script: 'Pinyon Script', 'Mali', cursive;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.7 var(--font); overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, video, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--rose-deep); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.45; margin: 0 0 .4em; color: var(--ink); letter-spacing: -.005em; }
h1 { font-size: clamp(30px, 6vw, 52px); }
h2 { font-size: clamp(26px, 4.2vw, 40px); }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0 0 1em; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; flex: none; }
svg.ic-brand { fill: currentColor; stroke: none; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--rose); color: #fff; padding: 10px 16px; border-radius: 12px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--rose) 55%, white); outline-offset: 2px; border-radius: 6px; }

.wrap { width: min(100% - var(--gutter) * 2, 1200px); margin-inline: auto; }
.wrap.narrow { width: min(100% - var(--gutter) * 2, 780px); }
.sec { padding-block: clamp(48px, 8vw, 96px); }

/* ---------- ปุ่ม ---------- */
.btn {
  --bg: var(--cream); --fg: var(--black);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 24px; border-radius: 999px; border: 2px solid var(--bg);
  background: var(--bg); color: var(--fg); font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; border-color: var(--bd, var(--cream-line));
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
  box-shadow: 0 6px 16px -10px rgba(120, 88, 48, .55);
}
.btn:hover { transform: translateY(-2px); background: var(--bg-hover, var(--cream-2)); box-shadow: 0 10px 22px -12px rgba(120, 88, 48, .6); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn.is-off { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { --bg: #fff; --bg-hover: #fff; --fg: var(--black); --bd: var(--cream-line); box-shadow: none; }
.btn-ghost:hover { border-color: var(--rose); box-shadow: none; }
.btn-light { --bg: var(--cream); --fg: var(--black); --bd: var(--cream); }
.btn-line { --bg: #06c755; --bg-hover: #05b54d; --bd: #06c755; --fg: #fff; box-shadow: 0 6px 16px -8px rgba(6, 199, 85, .7); }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 6px 16px; font-size: 15px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--rose-deep); text-decoration: none; font-family: var(--display); }
.link-arrow svg { transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- แถบประกาศ + หัวเว็บ ---------- */
.announce { background: var(--cream); color: var(--black); font-size: 14px; border-bottom: 1px solid var(--cream-line); }
.announce-in { display: flex; justify-content: center; align-items: center; gap: 6px 22px; flex-wrap: wrap; min-height: 36px; padding-block: 6px; text-align: center; }
.announce-in span { display: inline-flex; align-items: center; gap: 6px; }
.announce svg { width: 18px; height: 18px; }
.announce-more { opacity: .9; }
.announce-more::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .7; margin-right: 10px; }
@media (max-width: 559px) { .announce-more { display: none !important; } }

.nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; }
.logo-img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--gold-soft); }
.wordmark { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.wordmark b { font-weight: 400; font-size: 30px; color: var(--gold); white-space: nowrap; }
.wordmark b:not(.is-script) { font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--rose-deep); }
.wordmark b.is-script { font-family: var(--script); line-height: .95; padding-top: 2px; background: linear-gradient(180deg, #c9a46a, #9c7743); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wordmark small { white-space: nowrap; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-top: 3px; font-weight: 500; }
.menu { display: none; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.menu a { display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; transition: background-color .2s; }
.menu a:hover, .menu a[aria-current="page"] { background: var(--blush); color: var(--rose-deep); }
.menu svg { width: 16px; height: 16px; }
.has-sub { position: relative; }
.sub { position: absolute; top: 100%; left: 0; min-width: 210px; display: none !important; flex-direction: column; gap: 2px; padding: 8px !important; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lift); }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: flex !important; }
.sub a { width: 100%; border-radius: 12px; }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-btn { position: relative; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; }
.nav-btn:hover { background: var(--blush); }
.nav-btn svg { width: 22px; height: 22px; }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--rose); color: #fff; font-size: 12px; font-weight: 600; display: grid; place-items: center; line-height: 1; border: 2px solid var(--paper); }
.cart-count[hidden] { display: none; }
.nav-line { display: none; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; background: #06c755; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; min-height: 40px; }
.nav-line svg { width: 18px; height: 18px; }
.nav-search { border-top: 1px solid var(--line); padding-block: 10px; background: var(--paper); }
.nav-search .wrap { display: flex; gap: 8px; }
.nav-search label { flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 16px; background: #fff; border: 1.5px solid var(--blush-2); border-radius: 999px; }
.nav-search input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 16px; min-height: 44px; background: transparent; color: var(--ink); min-width: 0; }
.nav-search svg { color: var(--muted); }
@media (min-width: 1024px) {
  .menu { display: block; }
  .menu-btn { display: none; }
  .nav-line { display: inline-flex; }
}
@media (max-width: 380px) {
  .logo-img { width: 38px; height: 38px; }
  .wordmark b.is-script { font-size: 26px; }
  .wordmark small { letter-spacing: .18em; }
}

/* ---------- เมนูมือถือ ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; background: rgba(74, 47, 57, .35); }
.drawer[hidden] { display: none; }
.drawer-panel { position: absolute; inset: 0 auto 0 0; width: min(86vw, 360px); background: var(--paper); padding: 18px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; animation: slide-in .3s var(--ease); }
@keyframes slide-in { from { transform: translateX(-100%); } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.drawer-nav > li > a { display: block; padding: 13px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 18px; }
.drawer-nav a[aria-current="page"] { color: var(--rose-deep); }
.drawer-sub { list-style: none; margin: 4px 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.drawer-sub a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--blush); color: var(--rose-deep); text-decoration: none; font-size: 15px; }

/* ---------- แบนเนอร์ ---------- */
.hero { position: relative; }
.hero-view { position: relative; overflow: hidden; }
.hero-track { display: flex; transition: transform .6s var(--ease); }
.hero-slide { flex: 0 0 100%; min-width: 0; }
.hero-pic { position: relative; overflow: hidden; aspect-ratio: var(--rm, var(--r, 16 / 9)); max-height: 70vh; background: var(--blush); }
.hero-pic picture, .hero-pic img { width: 100%; height: 100%; }
.hero-pic img { object-fit: cover; object-position: 50% 40%; will-change: transform; }
@media (min-width: 720px) { .hero-pic { aspect-ratio: var(--r, 16 / 9); max-height: none; } }
.hero-cap { position: relative; z-index: 2; margin-top: -28px; padding-inline: var(--gutter); }
.hero-card {
  position: relative; max-width: 760px; margin-inline: auto; padding: 26px 22px 24px; text-align: center;
  background: var(--paper); border-radius: 28px; box-shadow: var(--shadow);
}
.hero-card::before, .hero-card::after { content: ''; position: absolute; top: 18px; width: 54px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.hero-card::before { left: 18px; } .hero-card::after { right: 18px; transform: scaleX(-1); }
.hero-title { font-size: clamp(24px, 5.2vw, 40px); margin: 0 0 .3em; color: var(--rose-deep); text-wrap: balance; }
.hero-sub { color: var(--muted); font-size: 16px; margin-bottom: 18px; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hero-actions .btn { min-width: 168px; }
.hero-compact .hero-pic { aspect-ratio: auto; height: clamp(160px, 26vw, 280px); }
@media (min-width: 720px) {
  .hero-cap { margin-top: -56px; }
  .hero-card { padding: 34px 48px 32px; }
  .hero-sub { font-size: 18px; }
}
.hero-nav { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .85); display: grid; place-items: center; cursor: pointer; color: var(--rose-deep); }
.hero-nav.prev { left: 12px; } .hero-nav.prev svg { transform: rotate(180deg); }
.hero-nav.next { right: 12px; }
.hero-dots { display: flex; justify-content: center; gap: 8px; padding-top: 16px; }
.hero-dots button { width: 9px; height: 9px; border-radius: 99px; border: 0; background: var(--blush-2); cursor: pointer; padding: 0; transition: width .3s var(--ease), background-color .3s; }
.hero-dots button[aria-current="true"] { width: 26px; background: var(--rose); }

/* ---------- หัวข้อส่วน ---------- */
.sec-head { text-align: center; max-width: 720px; margin: 0 auto clamp(26px, 4vw, 44px); }
.sec-head h2 { color: var(--ink); text-wrap: balance; }
.sec-head h2::after { content: ''; display: block; width: 64px; height: 18px; margin: 10px auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 18'%3E%3Cpath d='M2 9h20M42 9h20' stroke='%23b8925a' stroke-width='1.2' stroke-linecap='round'/%3E%3Cg fill='%23d78aa6'%3E%3Cellipse cx='32' cy='12' rx='4.2' ry='3.4'/%3E%3Cellipse cx='26.6' cy='8.6' rx='1.6' ry='2'/%3E%3Cellipse cx='37.4' cy='8.6' rx='1.6' ry='2'/%3E%3Cellipse cx='29.6' cy='5' rx='1.6' ry='2.1'/%3E%3Cellipse cx='34.4' cy='5' rx='1.6' ry='2.1'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
.sec-head p { color: var(--muted); margin-top: 8px; text-wrap: pretty; }
.paw-rule { display: flex; align-items: center; gap: 10px; margin: 6px 0 18px; color: #d78aa6; }
.paw-rule i { width: 28px; height: 1px; background: var(--gold); opacity: .8; }
.paw-rule svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.statement .paw-rule, .page-head .paw-rule { justify-content: center; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.chips a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; min-height: 42px; border-radius: 999px; background: #fff; border: 1.5px solid var(--blush-2); color: var(--rose-deep); text-decoration: none; font-weight: 500; transition: background-color .2s, transform .2s var(--ease); }
.chips a:hover { background: var(--blush); transform: translateY(-2px); }
.chips svg { width: 16px; height: 16px; fill: #d78aa6; stroke: none; }

/* ---------- จุดเด่น ---------- */
.sec-features { padding-block: clamp(40px, 6vw, 72px); }
.features-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.feature { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 20px 12px; background: #fff; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); }
.feature h3 { font-size: 17px; margin: 0 0 4px; }
.feature p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.6; }
.feature-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--blush); color: var(--rose); }
.feature-icon svg { width: 26px; height: 26px; }
.feature:nth-child(3n+2) .feature-icon { background: var(--lav); color: #7b62a8; }
.feature:nth-child(3n) .feature-icon { background: #fbf1e0; color: #9c7743; }
@media (min-width: 480px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) {
  .features-grid { grid-template-columns: repeat(min(var(--cols, 3), 4), 1fr); gap: 16px; }
  .feature { flex-direction: row; text-align: left; align-items: flex-start; padding: 22px; }
}
@media (max-width: 479px) { .features-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* ---------- เกี่ยวกับร้าน ---------- */
.sec-statement { background: var(--paper-2); }
.statement { text-align: center; max-width: 760px; }
.statement-body { color: var(--muted); font-size: 18px; text-wrap: pretty; }
.sec-panel { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); }
.panel { display: grid; gap: 28px; align-items: center; }
.panel-pic { margin: 0; }
.panel-pic img { width: 100%; border-radius: 28px; }
.panel-text h2 { color: var(--rose-deep); }
.panel-body { color: var(--muted); }
@media (min-width: 900px) {
  .panel { grid-template-columns: 1.05fr 1fr; gap: 64px; }
  .panel.pic-right .panel-pic { order: 2; }
}

/* ---------- การ์ดสินค้า ---------- */
.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: 20px; } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }
/* สินค้ายังน้อย (ร้านเพิ่งเริ่มลง) ไม่ให้การ์ดเล็กชิดซ้าย */
.cards.is-few > :only-child { grid-column: 1 / -1; justify-self: center; width: min(100%, 300px); }
@media (min-width: 768px) { .cards.is-few { grid-template-columns: repeat(auto-fit, minmax(0, 300px)); justify-content: center; } }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card.is-hidden { display: none; }
.card-link { display: block; color: inherit; text-decoration: none; }
.card-pic { position: relative; aspect-ratio: 1; background: var(--paper-2); overflow: hidden; }
.card-pic img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease); }
.card:hover .card-pic img { transform: scale(1.03); }
.tag { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 999px; background: var(--rose); color: #fff; font-size: 14px; font-weight: 600; }
.tag-out { background: #8a7b80; }
.tag-low { background: #fff; color: var(--rose-deep); box-shadow: 0 0 0 1.5px var(--blush-2); }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 14px; flex: 1; }
.card-cat { font-size: 14px; color: var(--muted); }
.card h3, .card h2 { font-size: 16px; line-height: 1.45; margin: 0; font-weight: 600; }
.card h3 a, .card h2 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card-short { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-opts { font-size: 14px; color: var(--muted); margin: 0; }
.card-foot { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.card-price { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--rose-deep); }
.card-price small { font-family: var(--font); font-weight: 400; font-size: 14px; color: var(--muted); }
.card-price s { display: block; font-family: var(--font); font-weight: 400; font-size: 14px; color: var(--muted); }
.card-sold { font-size: 14px; color: var(--muted); }
.card-cta { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 999px; background: var(--blush); color: var(--rose-deep); text-decoration: none; font-weight: 600; font-size: 14px; transition: background-color .2s, color .2s; }
.card-cta:hover { background: var(--rose); color: #fff; }
.card-cta svg { width: 18px; height: 18px; }
.card-cta.is-line { background: #06c755; color: #fff; }
@media (max-width: 479px) {
  .card-cta { width: 100%; justify-content: center; }
  .card-body { padding: 10px 10px 12px; }
}
@media (min-width: 768px) { .card-body { padding: 16px 18px 18px; } .card h3 { font-size: 17px; } }
.rows { display: grid; gap: 12px; }
.rows .card { flex-direction: row; }
.rows .card-link { flex: 0 0 120px; }
.sec-more { display: flex; justify-content: center; margin-top: 32px; }

/* ---------- แกลเลอรี ---------- */
.gal { columns: 2; column-gap: 10px; }
.gal-item { break-inside: avoid; margin: 0 0 10px; }
.gal-item img, .gal-item video { width: 100%; border-radius: var(--radius-sm); }
.gal-item figcaption { padding: 8px 2px 0; font-size: 14px; color: var(--muted); }
.gal-item figcaption b { display: block; color: var(--ink); }
@media (min-width: 480px) { .gal { columns: 3; } }
@media (min-width: 1024px) { .gal { columns: var(--cols, 3); column-gap: 20px; } .gal-item { margin-bottom: 20px; } }

/* ---------- รีวิว ---------- */
.sec-quotes { background: var(--lav); background: linear-gradient(180deg, var(--paper-2), var(--lav)); }
.quotes { display: grid; gap: 14px; }
@media (min-width: 768px) { .quotes { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.quote { margin: 0; padding: 24px 22px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.quote-stars { display: flex; gap: 3px; color: #e59ab5; }
.quote-stars svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.quote blockquote { margin: 0; font-size: 16px; line-height: 1.75; flex: 1; }
.quote figcaption { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.quote figcaption img, .quote-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.quote-avatar { display: grid; place-items: center; background: var(--blush); color: var(--rose); }
.quote-avatar svg { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.quote figcaption > span { display: flex; flex-direction: column; line-height: 1.4; }
.quote figcaption > span > span { color: var(--muted); font-size: 14px; }

/* ---------- คำถามที่พบบ่อย ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border-radius: 18px; box-shadow: 0 0 0 1px var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { color: var(--rose); transition: transform .25s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq-a { padding: 0 20px 16px; color: var(--muted); }
.faq-a p:last-child { margin: 0; }

/* ---------- แถบชวนกด ---------- */
.cta-band { position: relative; overflow: hidden; padding-block: clamp(48px, 8vw, 84px); text-align: center; }
.cta-dark { background: radial-gradient(120% 140% at 50% 0%, #c8668a 0%, var(--rose) 45%, var(--rose-deep) 100%); color: #fff; }
.cta-dark h2 { color: #fff; }
.cta-soft { background: var(--blush); }
.cta-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: 760px; }
.cta-in h2 { font-size: clamp(22px, 3.6vw, 34px); margin: 0; text-wrap: balance; }
.cta-paw { color: rgba(255, 255, 255, .35); }
.cta-soft .cta-paw { color: var(--rose); opacity: .5; }
.cta-paw svg { width: 40px; height: 40px; fill: currentColor; stroke: none; }

/* ---------- ติดต่อ ---------- */
.contact { display: grid; gap: 24px; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1.1fr; gap: 40px; } .contact.is-single { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; } }
.contact-note { color: var(--muted); }
.contact-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.contact-list li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: #fff; border-radius: 18px; box-shadow: 0 0 0 1px var(--line); }
.contact-list li > svg { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--blush); color: var(--rose); }
.contact-list li > svg.ic-brand { padding: 10px; }
.contact-list div { display: flex; flex-direction: column; line-height: 1.45; min-width: 0; }
.contact-list small { color: var(--muted); font-size: 14px; }
.contact-list a { font-weight: 600; overflow-wrap: anywhere; }
.hours-box { padding: 18px 20px; background: #fff; border-radius: 18px; box-shadow: 0 0 0 1px var(--line); }
.hours-box h3 { font-size: 17px; }
.hours { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 15px; }
.hours li { display: flex; justify-content: space-between; gap: 12px; }
.hours .closed { color: var(--bad); }
.lead { display: grid; gap: 14px; padding: 24px 22px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.lead h3 { margin: 0; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .coupon label { font-weight: 600; font-size: 15px; }
input, textarea, select {
  font: inherit; font-size: 16px; color: var(--ink); width: 100%; min-height: 48px; padding: 10px 14px;
  border-radius: 14px; border: 1.5px solid var(--blush-2); background: #fff; transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 96px; }
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--rose); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rose) 16%, transparent); }
.has-err input, .has-err textarea, .has-err select { border-color: var(--bad); }
.hint { color: var(--muted); font-size: 14px; }
.err { color: var(--bad); font-size: 14px; }
.err:empty { display: none; }
.msg, .form-msg { margin: 0; font-size: 15px; }
.msg:empty, .form-msg:empty { display: none; }
.msg.ok, .form-msg.ok { color: var(--ok); }
.msg.bad, .form-msg.bad { color: var(--bad); }
.map { width: 100%; height: 320px; border: 0; border-radius: var(--radius); }
.map-wrap { margin-top: 24px; }

.prose { font-size: 17px; }
.prose h2 { font-size: clamp(22px, 3vw, 30px); margin-top: 1.4em; }
.prose h3 { margin-top: 1.2em; }

/* ---------- หัวหน้ารอง ---------- */
.page-head { background: radial-gradient(90% 120% at 50% 0%, var(--blush) 0%, var(--paper-2) 55%, var(--paper) 100%); padding-block: clamp(36px, 6vw, 64px) clamp(24px, 4vw, 40px); text-align: center; }
.page-head h1 { color: var(--rose-deep); margin: 0; }
.page-head p { color: var(--muted); max-width: 640px; margin: 0 auto; }

/* ---------- แคตตาล็อก ---------- */
.sec-catalog { padding-top: clamp(24px, 4vw, 40px); }
.catalog-bar { display: grid; gap: 12px; margin-bottom: 14px; }
.filter { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.filter::-webkit-scrollbar { display: none; }
.filter button { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 16px; border-radius: 999px; border: 1.5px solid var(--blush-2); background: #fff; color: var(--ink); cursor: pointer; font-weight: 500; transition: background-color .2s, border-color .2s, color .2s; }
.filter button span { font-size: 14px; color: var(--muted); }
.filter button[aria-pressed="true"] { background: var(--rose); border-color: var(--rose); color: #fff; }
.filter button[aria-pressed="true"] span { color: rgba(255, 255, 255, .85); }
.catalog-tools { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.search-box { display: flex; align-items: center; gap: 8px; padding: 0 14px; background: #fff; border: 1.5px solid var(--blush-2); border-radius: 999px; }
.search-box input { border: 0; min-height: 44px; padding: 0; box-shadow: none !important; background: transparent; min-width: 0; }
.search-box svg { color: var(--muted); }
.sort select { min-height: 48px; border-radius: 999px; padding-inline: 14px 34px; width: auto; max-width: 46vw; }
.catalog-count { color: var(--muted); font-size: 15px; margin: 0 0 14px; }
.catalog-empty { text-align: center; padding: 40px 0; color: var(--muted); }
.catalog-more { display: flex; justify-content: center; margin-top: 28px; }
@media (min-width: 900px) {
  .catalog-bar { grid-template-columns: 1fr auto; align-items: center; }
  .filter { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
  .catalog-tools { grid-template-columns: 280px auto; }
}

/* ---------- เส้นทางนำทาง ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--rose-deep); }
.crumbs svg { width: 14px; height: 14px; }
.crumbs span { color: var(--ink); }

/* ---------- หน้ารายละเอียดสินค้า ---------- */
.pd { padding-top: clamp(20px, 3vw, 36px); }
.pd-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .pd-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; } .pd-gallery { position: sticky; top: 96px; } }
.pd-main { aspect-ratio: 1; background: var(--paper-2); border-radius: 28px; overflow: hidden; }
.pd-main img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.pd-thumbs button { flex: 0 0 72px; aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: 14px; overflow: hidden; background: var(--paper-2); cursor: pointer; }
.pd-thumbs button[aria-current="true"] { border-color: var(--rose); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-cat { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--blush); color: var(--rose-deep); font-size: 14px; font-weight: 500; margin-bottom: 10px; }
.pd-cat svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.pd-info h1 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 8px; }
.pd-short { color: var(--muted); font-size: 17px; }
.pd-price { display: flex; align-items: baseline; gap: 12px; font-family: var(--display); font-size: 30px; font-weight: 700; color: var(--rose-deep); margin: 6px 0 8px; }
.pd-price s { font-family: var(--font); font-size: 17px; font-weight: 400; color: var(--muted); }
.pd-stock { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--ok); margin-bottom: 18px; }
.pd-stock svg { width: 18px; height: 18px; stroke-width: 2.2; }
.pd-stock.is-low { color: #b0631a; }
.pd-stock.is-out { color: var(--muted); }
.pd-label { font-weight: 600; font-size: 15px; display: block; margin-bottom: 8px; }
.pd-opts { border: 0; margin: 0 0 18px; padding: 0; }
.opt-list { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 16px; border-radius: 999px; border: 1.5px solid var(--blush-2); background: #fff; cursor: pointer; font-size: 15px; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; min-height: 0; }
.opt:has(input:checked) { border-color: var(--rose); background: var(--blush); color: var(--rose-deep); font-weight: 600; }
.opt:has(input[data-out]) { opacity: .5; text-decoration: line-through; }
.opt:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--rose) 55%, white); }
.opt-pic { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.pd-buy { display: grid; gap: 12px; margin-bottom: 20px; }
.pd-qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pd-qty .pd-label { margin: 0; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--blush-2); border-radius: 999px; background: #fff; overflow: hidden; }
.qty button { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--rose-deep); }
.qty button:hover { background: var(--blush); }
.qty input { width: 52px; min-height: 44px; border: 0; text-align: center; padding: 0; border-radius: 0; box-shadow: none !important; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.pd-help { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pd-help li, .pd-help a { display: flex; gap: 12px; align-items: flex-start; }
.pd-help li { padding: 14px 16px; background: var(--paper-2); border-radius: 16px; font-size: 15px; }
.pd-help a { color: inherit; text-decoration: none; }
.pd-help svg { color: var(--rose); margin-top: 3px; }
.pd-help span { display: flex; flex-direction: column; color: var(--muted); line-height: 1.5; }
.pd-help b { color: var(--ink); }
.pd-detail { margin-top: clamp(36px, 6vw, 64px); max-width: 820px; }
.specs { display: grid; margin: 0 0 20px; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.specs div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 12px 16px; background: #fff; }
.specs div:nth-child(even) { background: var(--paper-2); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 500; }
.pd-related { margin-top: clamp(48px, 8vw, 80px); }
.toast { position: fixed; z-index: 70; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); translate: -50% 0; width: min(92vw, 460px); display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; border-radius: 18px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lift); animation: toast-in .35s var(--ease); font-size: 15px; }
.toast a { color: #ffd6e3; font-weight: 600; white-space: nowrap; }
.toast[hidden] { display: none; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

/* ---------- ท้ายเว็บ ---------- */
.foot { background: linear-gradient(180deg, var(--paper-2), var(--blush)); padding-top: clamp(44px, 7vw, 72px); margin-top: 0; }
.foot-grid { display: grid; gap: 28px; padding-bottom: 32px; }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; } }
.foot h2 { font-size: 17px; margin-bottom: 12px; color: var(--rose-deep); }
.foot-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 12px; }
.foot-tag { font-family: var(--display); font-weight: 600; color: var(--ink); }
.foot-brand p { color: var(--muted); font-size: 15px; }
.social { display: flex; gap: 8px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--rose-deep); transition: background-color .2s, color .2s; }
.social a:hover { background: var(--rose); color: #fff; }
.foot-links, .foot-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 15px; }
.foot-links a { color: var(--ink); text-decoration: none; display: inline-block; padding: 4px 0; }
.foot-links a:hover { color: var(--rose-deep); }
.foot-contact li, .foot-contact a { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); text-decoration: none; padding: 3px 0; overflow-wrap: anywhere; }
.foot-contact svg { color: var(--rose); margin-top: 4px; width: 18px; height: 18px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid var(--blush-2); padding-block: 18px calc(18px + 72px); color: var(--muted); }
.foot-bottom small { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.foot-bottom svg { width: 16px; height: 16px; }
@media (min-width: 1024px) { .foot-bottom { padding-bottom: 22px; } }

/* ---------- ปุ่มลอยมือถือ (ไลน์ + โทร) ---------- */
.float-contact { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.float-contact a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.fl-line { background: #06c755; color: #fff; }
.fl-call { background: #fff; color: var(--rose-deep); box-shadow: inset 0 0 0 1.5px var(--blush-2); }
@media (min-width: 1024px) { .float-contact { display: none; } }

/* ---------- กล่องขยายรูป ---------- */
dialog.light { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; overflow: visible; }
dialog.light::backdrop { background: rgba(48, 30, 37, .82); }
dialog.light img { max-width: 94vw; max-height: 82vh; border-radius: 18px; }
dialog.light p { color: #fff; text-align: center; margin: 10px 0 0; }
dialog.light button { position: absolute; top: -52px; right: 0; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; display: grid; place-items: center; cursor: pointer; }

/* ---------- หน้าร้าน: ตะกร้า / สั่งซื้อ / ชำระเงิน ---------- */
.shop-page { padding-top: clamp(20px, 3vw, 36px); }
.shop-page h1 { font-size: clamp(26px, 4vw, 38px); }
.box { background: #fff; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); padding: 20px; margin-bottom: 16px; }
.box h2 { font-size: 20px; margin-bottom: 14px; }
.cart, .checkout, .order-grid { display: grid; gap: 16px; align-items: start; }
@media (min-width: 900px) {
  .cart, .checkout { grid-template-columns: 1fr 380px; gap: 28px; }
  .order-grid { grid-template-columns: 1fr 400px; gap: 28px; }
  .cart-side, .co-side { position: sticky; top: 96px; }
}
.cart-lines { display: grid; gap: 10px; }
.cart-line { display: grid; grid-template-columns: 88px 1fr; gap: 14px; padding: 12px; background: #fff; border-radius: 18px; box-shadow: 0 0 0 1px var(--line); }
.cart-line .pic { display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--paper-2); }
.cart-line .pic img { width: 100%; height: 100%; object-fit: cover; }
.cart-line h3 { font-size: 16px; margin: 0 0 2px; }
.cart-line h3 a { color: var(--ink); text-decoration: none; }
.cart-line small { display: block; color: var(--muted); font-size: 14px; line-height: 1.5; }
.cart-line .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.cart-line .qty button { width: 40px; height: 40px; }
.cart-line .qty input { width: 44px; min-height: 40px; }
.cart-line .amount { font-family: var(--display); color: var(--rose-deep); font-size: 17px; }
.cart-line .err { display: block; margin-top: 6px; }
.remove { border: 0; background: none; color: var(--muted); font-size: 14px; padding: 6px 0 0; cursor: pointer; text-decoration: underline; }
.free-bar { padding: 14px 16px; margin-bottom: 14px; border-radius: 16px; background: var(--paper-2); }
.free-bar p { margin: 0 0 8px; font-size: 15px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.free-bar b { color: var(--rose-deep); }
.free-bar span { display: block; height: 8px; border-radius: 99px; background: var(--blush-2); overflow: hidden; }
.free-bar i { display: block; height: 100%; background: linear-gradient(90deg, #e59ab5, var(--rose)); transform-origin: left; transition: transform .5s var(--ease); }
.free-bar.is-done { background: #eaf6ef; }
.free-bar.is-done p { color: var(--ok); }
.free-bar.is-done svg { width: 18px; height: 18px; stroke-width: 2.4; }
.free-bar.is-done i { background: var(--ok); }
.sum { margin: 0 0 16px; display: grid; gap: 8px; font-size: 16px; }
.sum div { display: flex; justify-content: space-between; gap: 12px; }
.sum dt { color: var(--muted); }
.sum dd { margin: 0; font-weight: 500; text-align: right; }
.sum .free { color: var(--ok); }
.sum-disc dd { color: var(--ok); }
.sum-total { border-top: 1px dashed var(--blush-2); padding-top: 10px; margin-top: 4px; }
.sum-total dt { color: var(--ink); font-weight: 600; }
.sum-total dd { font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--rose-deep); }
.note { display: flex; gap: 6px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.note svg { width: 18px; height: 18px; margin-top: 2px; }
.pay-box .note { display: block; margin: 0 0 4px; }
.cart-empty { text-align: center; padding: 48px 0; }
.empty-icon { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--blush); color: var(--rose); margin-bottom: 14px; }
.empty-icon svg { width: 40px; height: 40px; fill: currentColor; stroke: none; }
.loading { color: var(--muted); }
.warn { padding: 12px 14px; border-radius: 14px; background: #fff4e5; color: #8a4b0f; font-size: 15px; }
fieldset.box { border: 0; }
fieldset.box legend { float: left; width: 100%; display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 20px; margin-bottom: 14px; padding: 0; }
fieldset.box legend + * { clear: both; }
.step { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--rose); color: #fff; font-size: 15px; }
.co-main .field { margin-bottom: 14px; }
.grid-2 { display: grid; gap: 0 14px; }
@media (min-width: 600px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.pay-list { display: grid; gap: 10px; }
.pay-opt { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--blush-2); cursor: pointer; background: #fff; }
.pay-opt input { width: 20px; height: 20px; min-height: 0; margin: 3px 0 0; accent-color: var(--rose); flex: none; }
.pay-opt span { display: flex; flex-direction: column; }
.pay-opt small { color: var(--muted); font-size: 14px; }
.pay-opt:has(input:checked) { border-color: var(--rose); background: var(--paper-2); }
.pay-opt.is-off { opacity: .55; cursor: not-allowed; }
.mini-lines { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.mini-lines li { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.mini-lines span { display: flex; flex-direction: column; min-width: 0; }
.mini-lines small { color: var(--muted); font-size: 14px; }
.mini-lines b { white-space: nowrap; }
.coupon { margin-bottom: 14px; display: grid; gap: 6px; }
.coupon-row { display: flex; gap: 8px; }
.coupon-row input { text-transform: uppercase; }
.co-side .form-msg { margin-bottom: 12px; }

.thanks { text-align: center; padding: 8px 0 28px; }
.thanks-icon { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--blush); color: var(--rose); margin-bottom: 12px; animation: pop .5s var(--ease); }
.thanks-icon svg { width: 36px; height: 36px; fill: currentColor; stroke: none; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.thanks h1 { color: var(--rose-deep); margin-bottom: 6px; }
.order-no { font-family: var(--display); font-size: 20px; letter-spacing: .04em; color: var(--ink); }
.link-btn { border: 0; background: none; color: var(--rose-deep); text-decoration: underline; cursor: pointer; padding: 4px; }
.status-pill { display: inline-block; padding: 6px 16px; border-radius: 999px; background: var(--blush); color: var(--rose-deep); font-weight: 600; font-size: 15px; }
.st-paid, .st-shipping, .st-shipped, .st-done { background: #e6f4ec; color: var(--ok); }
.st-cancelled, .st-refunded { background: #f1ecee; color: var(--muted); }
.st-pending_slip { background: #fff1dc; color: #8a4b0f; }
.pay-box { border: 2px solid var(--blush-2); box-shadow: var(--shadow); }
.pay-amount { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px; margin-bottom: 12px; border-radius: 18px; background: var(--paper-2); }
.pay-amount small { color: var(--muted); font-size: 15px; }
.pay-amount b { font-family: var(--display); font-size: clamp(32px, 7vw, 44px); color: var(--rose-deep); line-height: 1.2; }
.qr-box { display: grid; gap: 14px; align-items: center; padding: 16px; margin: 14px 0; border-radius: 18px; box-shadow: 0 0 0 1px var(--line); }
@media (min-width: 560px) { .qr-box { grid-template-columns: 200px 1fr; } }
.qr { width: 200px; max-width: 100%; margin-inline: auto; aspect-ratio: 1; padding: 10px; background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.qr svg { width: 100%; height: 100%; fill: #000; stroke: none; }
.qr-box p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.banks { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 10px; }
.banks li { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); }
.banks li > span:nth-child(2) { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.banks small { color: var(--muted); font-size: 14px; }
.banks b { font-size: 18px; letter-spacing: .03em; }
.bank-logo { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; overflow: hidden; background: var(--paper-2); }
.slip-form { display: grid; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--blush-2); }
.slip-form h3 { margin: 0; }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 16px; border-radius: 18px; border: 2px dashed var(--blush-2); background: var(--paper-2); text-align: center; cursor: pointer; color: var(--rose-deep); font-weight: 600; }
.drop small { color: var(--muted); font-weight: 400; }
.drop svg { width: 30px; height: 30px; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; min-height: 0; }
.slip-preview { max-height: 360px; margin-inline: auto; border-radius: 14px; }
.ship-to { display: flex; gap: 10px; font-size: 15px; color: var(--muted); margin: 0; }
.ship-to svg { color: var(--rose); margin-top: 3px; }
.ship-to b { color: var(--ink); }
.help-box { display: grid; gap: 10px; }
.help-box p { margin: 0; }
.help-box .link { font-size: 14px; text-align: center; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; display: grid; }
.timeline li { position: relative; padding: 0 0 18px 26px; border-left: 2px solid var(--blush-2); margin-left: 6px; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before { content: ''; position: absolute; left: -8px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--blush-2); }
.timeline li.is-now::before { background: var(--rose); border-color: var(--rose); box-shadow: 0 0 0 5px var(--blush); }
.timeline b { display: block; }
.timeline time { font-size: 14px; color: var(--muted); }
.timeline p { margin: 2px 0 0; font-size: 15px; color: var(--muted); }
.tracking { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--paper-2); }
.track-form .btn { margin-top: 4px; }
.track-form .field { margin-bottom: 12px; }
.track-result { margin-top: 18px; }

/* ---------- บทความ ---------- */
.a-wrap { max-width: 780px; }
.a-meta { color: var(--muted); font-size: 15px; }
.a-cover img { width: 100%; border-radius: var(--radius); }
.a-lead { font-size: 19px; color: var(--muted); }
.a-toc { padding: 18px 20px; border-radius: 18px; background: var(--paper-2); margin: 20px 0; }
.a-fig { margin: 24px 0; }
.a-fig img { border-radius: var(--radius-sm); }
.a-fig figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
.a-cta { padding: 22px; border-radius: var(--radius); background: var(--blush); text-align: center; margin: 28px 0; }
.a-embed { margin: 32px 0; }

/* ---------- เคลื่อนไหวตอนเลื่อนถึง (เล่นครั้งเดียว) ---------- */
.js [data-reveal], .js [data-reveal-group] > * { opacity: 0; transform: translateY(20px); transition: opacity .55s var(--ease), transform .55s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in, .js [data-reveal-group].is-in > * { opacity: 1; transform: none; }
.js [data-reveal-group].is-in > .card:hover { transform: translateY(-3px); transition-delay: 0ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-reveal-group] > * { opacity: 1; transform: none; }
}

/* ---------- พื้นที่กดบนมือถืออย่างน้อย 44px (qa-1d1d) ---------- */
.foot-links a, .foot-contact a { min-height: 44px; display: inline-flex; align-items: center; padding-block: 0; }
.foot-contact a svg { margin-top: 0; }
.foot-logo, .logo { min-height: 44px; }
.card-cta { min-height: 44px; }
.link-arrow { min-height: 44px; }

/* ---------- เลือกน้องก่อนเลือกหมวด (แมว / สุนัข) ---------- */
.pet-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pet-tabs button { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 22px; border-radius: 999px; border: 1.5px solid var(--cream-line); background: #fff; color: var(--black); font-weight: 600; font-size: 17px; cursor: pointer; transition: background-color .2s, color .2s, transform .2s var(--ease); }
.pet-tabs button:hover { transform: translateY(-2px); }
.pet-tabs button svg { width: 24px; height: 24px; }
.pet-tabs button[aria-pressed="true"] { background: var(--black); border-color: var(--black); color: #fff; box-shadow: 0 8px 18px -10px rgba(29, 21, 23, .6); }
.catalog-bar .filter { padding: 12px; border-radius: 20px; background: color-mix(in srgb, var(--cream) 45%, #fff); box-shadow: inset 0 0 0 1px var(--cream-line); }
.catalog-bar .filter button[aria-pressed="true"] { background: var(--cream); border-color: var(--cream-line); color: var(--black); font-weight: 600; }
.catalog-bar .filter button[aria-pressed="true"] span { color: var(--black); opacity: .7; }
@media (max-width: 899px) { .catalog-bar .filter { margin-inline: 0; padding: 10px; } }
.pet-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 560px; margin: 20px auto 0; }
.pet-card { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 12px 14px; border-radius: 20px; background: #fff; border: 1.5px solid var(--cream-line); color: var(--black); text-decoration: none; text-align: left; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.pet-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.pet-card > svg:first-child { width: 40px; height: 40px; padding: 8px; border-radius: 50%; background: var(--cream); flex: none; }
.pet-card > svg:last-child { width: 18px; height: 18px; margin-left: auto; opacity: .6; }
.pet-card span { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.pet-card b { font-family: var(--display); font-size: 16px; }
.pet-card small { color: var(--muted); font-size: 14px; }
.pd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.pd-tags .pd-cat { margin: 0; text-decoration: none; }
.pd-tags .pd-cat svg { width: 16px; height: 16px; fill: none; stroke: currentColor; }
.pd-tags .pd-cat:last-child:not(:first-child) svg { fill: currentColor; stroke: none; }
.sub .is-pet a, .drawer-sub .is-pet a { font-weight: 600; }
.sub .is-pet + li:not(.is-pet) { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.drawer-sub .is-pet a { background: var(--cream); color: var(--black); }

/* มือถือ: แท็บสัตว์ 3 ปุ่มเต็มแถว · หมวดขึ้นบรรทัดใหม่ (เห็นครบทุกหมวด ไม่ต้องเลื่อนข้าง) */
@media (max-width: 599px) {
  .pet-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pet-tabs button { justify-content: center; padding: 8px 6px; font-size: 16px; gap: 6px; }
  .pet-tabs button svg { width: 22px; height: 22px; }
}
.catalog-bar .filter { flex-wrap: wrap; overflow: visible; }
@media (max-width: 479px) {
  .pet-card { flex-direction: column; text-align: center; gap: 6px; padding: 14px 8px; }
  .pet-card span { align-items: center; }
  .pet-card > svg:last-child { display: none; }
  .wordmark small { letter-spacing: .16em; }
}
.foot-links a { min-width: 44px; }
.pet-card small { font-size: 14px; }
