:root {
  --orange: #d95f18;
  --orange-deep: #b84d10;
  --orange-tint: #fdf2ea;
  --orange-line: #f0d5c2;
  --ink: #2a252f;
  --ink-2: #5f5869;
  --ink-3: #948c9d;
  --plum: #322b3d;
  --bg: #fcfaf7;
  --card: #ffffff;
  --line: #ebe5dd;
  --line-2: #ddd5ca;
  --ok: #2e7d51;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 26px;

  --sh-1: 0 1px 2px rgba(42, 37, 47, .04), 0 2px 8px rgba(42, 37, 47, .04);
  --sh-2: 0 2px 4px rgba(42, 37, 47, .05), 0 12px 28px rgba(42, 37, 47, .09);
  --sh-3: 0 4px 8px rgba(42, 37, 47, .06), 0 24px 48px rgba(42, 37, 47, .12);

  --maxw: 1180px;
  --paw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='%23d95f18' fill-opacity='.045'%3E%3Cellipse cx='32' cy='38' rx='7.5' ry='6'/%3E%3Cellipse cx='23' cy='27' rx='3.4' ry='4.4'/%3E%3Cellipse cx='31' cy='23' rx='3.4' ry='4.6'/%3E%3Cellipse cx='39.5' cy='25.5' rx='3.4' ry='4.4'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "IBM Plex Sans Thai", "Noto Sans Thai", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--orange); color: #fff; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252, 250, 247, .85);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.header.stuck { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(42,37,47,.05); }
.header-inner { display: flex; align-items: center; gap: 30px; height: 74px; }

.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo-mark {
  width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0;
  background: linear-gradient(160deg, #fdf2ea, #f7e3d2);
  border: 1px solid var(--orange-line);
  display: grid; place-items: center; overflow: hidden;
}
.logo-mark img { width: 36px; mix-blend-mode: multiply; }
.logo-text { font-weight: 700; font-size: 1.06rem; letter-spacing: -.015em; line-height: 1.25; }
.logo-text span {
  display: block; font-size: .66rem; font-weight: 500; color: var(--ink-3);
  letter-spacing: .04em; line-height: 1.3;
}

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  font-size: .92rem; font-weight: 500; color: var(--ink-2);
  padding: 8px 14px; border-radius: 999px; transition: color .15s, background .15s;
}
.nav a:hover { color: var(--orange); background: var(--orange-tint); }

.cart-btn {
  position: relative; display: flex; align-items: center; gap: 9px;
  background: var(--ink); color: #fff; padding: 10px 19px; border-radius: 999px;
  font-size: .9rem; font-weight: 600; transition: background .18s, transform .12s, box-shadow .18s;
  box-shadow: 0 4px 14px rgba(42,37,47,.18);
}
.cart-btn:hover { background: var(--orange); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(217,95,24,.32); }
.cart-btn:active { transform: translateY(0); }
.cart-count {
  background: var(--orange); color: #fff; min-width: 21px; height: 21px;
  border-radius: 999px; font-size: .72rem; font-weight: 700;
  display: grid; place-items: center; padding: 0 6px; transition: background .18s;
}
.cart-btn:hover .cart-count { background: rgba(255,255,255,.28); }
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 0%,100% { transform: scale(1) } 40% { transform: scale(1.35) } }

.menu-toggle { display: none; font-size: 1.4rem; padding: 6px 8px; color: var(--ink-2); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 80px 0 68px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(1100px 520px at 78% -8%, #fbe8d7 0%, rgba(251,232,215,0) 62%),
    radial-gradient(760px 440px at 4% 8%, #f7eee3 0%, rgba(247,238,227,0) 58%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: var(--paw); background-size: 96px 96px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 82%);
          mask-image: linear-gradient(to bottom, #000, transparent 82%);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.75); border: 1px solid var(--orange-line);
  color: var(--orange-deep); font-size: .78rem; font-weight: 600;
  padding: 7px 15px; border-radius: 999px; letter-spacing: .01em; margin-bottom: 22px;
  box-shadow: var(--sh-1); backdrop-filter: blur(6px);
}
.hero h1 {
  font-size: clamp(1.95rem, 3.7vw, 2.9rem); line-height: 1.2;
  letter-spacing: -.03em; font-weight: 700; margin-bottom: 20px;
}
@media (max-width: 560px) { .hero h1 br { display: none; } }
/* ไม่ใส่ไฮไลต์ใต้คำ เพราะชนกับสระล่างของภาษาไทย */
.hero h1 em { font-style: normal; color: var(--orange); white-space: nowrap; }
.hero-lead { font-size: 1.02rem; color: var(--ink-2); max-width: 52ch; margin-bottom: 14px; }
/* ย่อหน้าที่สองมีขีดนำหน้า ตามที่ทางร้านเขียนมา */
.hero-sub {
  font-size: .92rem; color: var(--ink-2); max-width: 52ch; margin-bottom: 30px;
  padding-left: 15px; border-left: 3px solid var(--orange-line); line-height: 1.6;
}
.hero-sub b { color: var(--orange-deep); font-weight: 600; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 13px 27px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: transform .13s, background .18s, border-color .18s, box-shadow .18s, color .18s;
}
.btn:active { transform: translateY(1px) }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 5px 18px rgba(217,95,24,.3); }
.btn-primary:hover { background: var(--orange-deep); box-shadow: 0 8px 24px rgba(217,95,24,.38); transform: translateY(-1px); }
.btn-ghost { border: 1.5px solid var(--line-2); background: rgba(255,255,255,.8); color: var(--ink); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); background: #fff; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Hero visual ---------- */
.hero-visual { position: relative; }
.hero-photo {
  /* 5:4 ตรงกับสัดส่วนรูปจริง (1024x825) จะได้ไม่ถูกครอปทิ้ง
     height:auto จำเป็น ไม่งั้น attribute height ใน HTML จะชนะ aspect-ratio */
  width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover;
  border-radius: var(--r-xl); box-shadow: var(--sh-3);
}
/* ---------- แถบจุดเด่นใต้ hero ---------- */
.trust {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 52px;
  background: rgba(255, 255, 255, .7); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px;
  box-shadow: var(--sh-1);
}
.trust-item {
  display: flex; align-items: center; gap: 11px; padding: 11px 12px;
  border-radius: var(--r-sm); transition: background .16s;
}
.trust-item:hover { background: var(--orange-tint); }
.trust-item i {
  font-style: normal; font-size: 1rem; width: 34px; height: 34px; flex-shrink: 0;
  display: grid; place-items: center; border-radius: 10px;
  background: var(--orange-tint); border: 1px solid var(--orange-line);
}
.trust-item b { display: block; font-size: .84rem; font-weight: 600; line-height: 1.3; }
.trust-item span { display: block; font-size: .74rem; color: var(--ink-3); line-height: 1.35; }

/* ---------- การ์ดหมวดหมู่รูปใหญ่ ---------- */
.pick-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pick-card {
  position: relative; display: block; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 5 / 4; box-shadow: var(--sh-1);
  transition: transform .22s cubic-bezier(.2,.8,.3,1), box-shadow .22s;
}
.pick-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.pick-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.8,.3,1); }
.pick-card:hover img { transform: scale(1.07); }
.pick-card .veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28, 23, 34, .88) 0%, rgba(28, 23, 34, .35) 42%, rgba(28, 23, 34, 0) 68%);
}
.pick-card .txt { position: absolute; left: 19px; right: 52px; bottom: 17px; color: #fff; }
.pick-card .txt b { display: block; font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }
.pick-card .txt em { display: block; font-style: normal; font-size: .8rem; color: rgba(255,255,255,.78); line-height: 1.45; margin-top: 2px; }
.pick-card .go {
  position: absolute; right: 17px; bottom: 19px; width: 36px; height: 36px;
  border-radius: 50%; background: var(--orange); color: #fff;
  display: grid; place-items: center; font-size: 1rem; font-weight: 700;
  box-shadow: 0 4px 14px rgba(217,95,24,.5); transition: transform .2s;
}
.pick-card:hover .go { transform: translateX(3px) scale(1.08); }

/* ---------- Section ---------- */
.section { padding: 68px 0; }
.section-head { margin-bottom: 32px; }
.section-head .rule { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.section-head .rule::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--orange); }
.section-head .rule span { font-size: .76rem; font-weight: 700; color: var(--orange); letter-spacing: .07em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(1.5rem, 2.7vw, 2.05rem); letter-spacing: -.03em; margin-bottom: 6px; }
.section-head p { color: var(--ink-2); font-size: .96rem; }

/* ---------- Toolbar ---------- */
.toolbar { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; flex-wrap: wrap; }
.search-bar { position: relative; flex: 1; min-width: 260px; max-width: 400px; }
.search-bar input {
  width: 100%; padding: 12px 16px 12px 44px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--card); outline: none;
  font-size: .93rem; transition: border-color .18s, box-shadow .18s;
}
.search-bar input:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(217,95,24,.1); }
.search-bar::before {
  content: "🔍"; position: absolute; left: 16px; top: 50%;
  transform: translateY(-50%); font-size: .88rem; opacity: .45; pointer-events: none;
}
.count-note { font-size: .84rem; color: var(--ink-3); margin-left: auto; white-space: nowrap; }

.cats { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 30px; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1.5px solid var(--line); background: var(--card);
  padding: 9px 17px; border-radius: 999px; font-size: .88rem; font-weight: 500;
  color: var(--ink-2); transition: all .16s;
}
.cat-chip:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-1px); }
.cat-chip.active {
  background: var(--ink); border-color: var(--ink); color: #fff;
  box-shadow: 0 4px 14px rgba(42,37,47,.2);
}

/* ---------- แถวหมวดย่อย ---------- */
.subs {
  display: flex; gap: 8px; flex-wrap: wrap; margin: -18px 0 28px;
  padding: 12px 14px; background: var(--orange-tint);
  border: 1px solid var(--orange-line); border-radius: var(--r);
}
.subs[hidden] { display: none; }
.sub-chip {
  font-size: .82rem; font-weight: 500; color: var(--ink-2);
  padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.75);
  border: 1px solid transparent; transition: all .15s;
}
.sub-chip:hover { color: var(--orange-deep); border-color: var(--orange-line); background: #fff; }
.sub-chip.active {
  background: var(--orange); color: #fff; font-weight: 600;
  box-shadow: 0 3px 10px rgba(217,95,24,.32);
}

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s cubic-bezier(.2,.8,.3,1), box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.card-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--orange-tint); }
.card-img svg, .card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s cubic-bezier(.2,.8,.3,1);
}
.card:hover .card-img svg, .card:hover .card-img img { transform: scale(1.05); }
.card-tag {
  position: absolute; top: 11px; left: 11px; z-index: 2;
  background: var(--orange); color: #fff; font-size: .69rem; font-weight: 700;
  padding: 4px 11px; border-radius: 999px; letter-spacing: .02em;
  box-shadow: 0 3px 10px rgba(217,95,24,.35);
}
.card-tag.sale-tag { background: #c0392b; box-shadow: 0 3px 10px rgba(192,57,43,.4); }

/* เลือกหน่วย (ชิ้น/โหล/ลัง) — โผล่เฉพาะสินค้าที่มีหลายหน่วย */
.unit-pick {
  width: 100%; border: 1.5px solid var(--line); border-radius: 9px; background: var(--card);
  padding: 7px 10px; font-size: .8rem; font-weight: 500; color: var(--ink-2); outline: none;
  cursor: pointer; transition: border-color .15s;
}
.unit-pick:focus { border-color: var(--orange); }
.opt-pick {
  width: 100%; border: 1.5px solid var(--orange-line); border-radius: 9px; background: var(--orange-tint);
  padding: 7px 10px; font-size: .8rem; font-weight: 600; color: var(--orange-deep); outline: none;
  cursor: pointer; margin-bottom: 6px; transition: border-color .15s;
}
.opt-pick:focus { border-color: var(--orange); }
.opt-badge {
  display: inline-block; font-size: .72rem; font-weight: 600; color: var(--orange-deep);
  background: var(--orange-tint); border: 1px solid var(--orange-line);
  padding: 1px 8px; border-radius: 999px; vertical-align: middle;
}
.card-body { padding: 15px 16px 16px; display: flex; flex-direction: column; flex: 1; gap: 9px; }
.card-cat { font-size: .71rem; color: var(--ink-3); font-weight: 500; letter-spacing: .02em; }
.card-name { font-size: .9rem; font-weight: 600; line-height: 1.5; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.price { font-size: 1.14rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.25; }
.price small { font-size: .71rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.price del { display: block; font-size: .74rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.price.is-sale b { color: #c0392b; }
.add-btn {
  background: var(--orange-tint); color: var(--orange-deep); font-weight: 700; font-size: .81rem;
  padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--orange-line); transition: all .16s;
}
.add-btn:hover { background: var(--orange); color: #fff; border-color: var(--orange); box-shadow: 0 4px 12px rgba(217,95,24,.3); }

.empty { text-align: center; padding: 56px 0; color: var(--ink-3); font-size: .92rem; }

/* ---------- Band ---------- */
.band { background: var(--plum); color: #fff; position: relative; overflow: hidden; }
/* รูปจริงเป็นพื้นหลัง ทับด้วยชั้นสีม่วงให้ตัวหนังสืออ่านออกชัด */
.band-photo {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(150deg, rgba(52, 44, 65, .82) 0%, rgba(42, 35, 53, .78) 48%, rgba(24, 19, 32, .88) 100%),
    url("/img/band.jpg");
  background-size: cover; background-position: center 40%;
}
.band::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--paw); background-size: 110px 110px; opacity: .35; filter: invert(1);
}
.band .wrap { padding-top: 62px; padding-bottom: 62px; position: relative; }
.band-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.band-item i {
  font-style: normal; font-size: 1.35rem; width: 46px; height: 46px; margin-bottom: 14px;
  display: grid; place-items: center; border-radius: 13px;
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14);
}
/* เงาบางๆ กันตัวหนังสือจมกับส่วนที่สว่างของรูปพื้นหลัง */
.band-item h3 { font-size: 1rem; margin-bottom: 6px; letter-spacing: -.01em; text-shadow: 0 1px 8px rgba(20,16,26,.5); }
.band-item p { font-size: .845rem; color: rgba(255,255,255,.72); line-height: 1.6; text-shadow: 0 1px 8px rgba(20,16,26,.55); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 27px; box-shadow: var(--sh-1);
}
.panel h3 { font-size: 1.06rem; margin-bottom: 16px; letter-spacing: -.01em; }
.contact-row {
  display: flex; align-items: flex-start; gap: 13px; padding: 12px 8px;
  border-radius: var(--r-sm); transition: background .16s; margin: 0 -8px;
}
.contact-row + .contact-row { border-top: 1px solid var(--line); }
.contact-row:hover { background: var(--orange-tint); }
.contact-row i {
  font-style: normal; font-size: .9rem; width: 32px; height: 32px; flex-shrink: 0;
  display: grid; place-items: center; border-radius: 9px;
  background: var(--orange-tint); border: 1px solid var(--orange-line);
}
.contact-row .label { font-size: .72rem; color: var(--ink-3); line-height: 1.5; }
.contact-row .value { font-size: .92rem; font-weight: 600; word-break: break-word; line-height: 1.5; }
.contact-row a.value { transition: color .15s; }
.contact-row a.value:hover { color: var(--orange); }

.map-frame {
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--sh-1); position: relative; display: block;
}
.map-frame img { width: 100%; transition: transform .4s cubic-bezier(.2,.8,.3,1); }
.map-frame:hover img { transform: scale(1.03); }
.map-pill {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  background: rgba(255,255,255,.94); backdrop-filter: blur(8px); color: var(--ink);
  font-size: .82rem; font-weight: 600; padding: 9px 18px; border-radius: 999px;
  box-shadow: var(--sh-2); white-space: nowrap; border: 1px solid var(--line);
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 44px 0; margin-top: 24px; background: #faf7f3; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer .brand { display: flex; align-items: center; gap: 11px; margin-bottom: 8px; }
.footer .brand img { width: 34px; mix-blend-mode: multiply; }
.footer .brand b { font-size: .98rem; }
.footer p { font-size: .83rem; color: var(--ink-3); }
.footer-links { display: flex; gap: 20px; font-size: .85rem; font-weight: 500; }
.footer-links a { color: var(--ink-2); transition: color .15s; }
.footer-links a:hover { color: var(--orange); }

/* ---------- Drawer ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(42, 37, 47, .48); z-index: 90;
  opacity: 0; pointer-events: none; transition: opacity .25s; backdrop-filter: blur(2px);
}
.overlay.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%);
  background: var(--bg); z-index: 100; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .32s cubic-bezier(.32,.72,0,1);
  box-shadow: -10px 0 40px rgba(42,37,47,.16);
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px; border-bottom: 1px solid var(--line); flex-shrink: 0; background: var(--card);
}
.drawer-head h3 { font-size: 1.08rem; letter-spacing: -.01em; }
.close-btn {
  font-size: 1.15rem; color: var(--ink-3); line-height: 1; width: 34px; height: 34px;
  border-radius: 9px; display: grid; place-items: center; transition: all .15s;
}
.close-btn:hover { background: var(--line); color: var(--ink); }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px; overscroll-behavior: contain; }
.drawer-foot { border-top: 1px solid var(--line); padding: 18px 22px; background: var(--card); flex-shrink: 0; }

.cart-item { display: flex; gap: 13px; padding: 14px 0; }
.cart-item + .cart-item { border-top: 1px solid var(--line); }
.cart-item-img {
  width: 62px; height: 62px; border-radius: 12px; overflow: hidden; flex-shrink: 0;
  border: 1px solid var(--line);
}
.cart-item-img svg, .cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h4 { font-size: .86rem; font-weight: 600; line-height: 1.45; margin-bottom: 3px; }
.cart-item-info .unit-price { font-size: .77rem; color: var(--ink-3); }
.qty { display: inline-flex; align-items: center; gap: 2px; margin-top: 9px; background: #f4f0ec; border-radius: 9px; padding: 2px; }
.qty button {
  width: 26px; height: 26px; border-radius: 7px; background: transparent;
  font-weight: 600; display: grid; place-items: center; font-size: .9rem; color: var(--ink-2);
  transition: background .14s, color .14s;
}
.qty button:hover { background: #fff; color: var(--orange); box-shadow: var(--sh-1); }
.qty span { min-width: 26px; text-align: center; font-size: .86rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.cart-item-right { text-align: right; display: flex; flex-direction: column; justify-content: space-between; flex-shrink: 0; }
.cart-item-right .line-total { font-weight: 700; font-size: .92rem; font-variant-numeric: tabular-nums; }
.remove { font-size: .75rem; color: var(--ink-3); transition: color .15s; }
.remove:hover { color: #c0392b; }

.sum-row { display: flex; justify-content: space-between; font-size: .88rem; color: var(--ink-2); margin-bottom: 8px; }
.sum-row span:last-child { font-variant-numeric: tabular-nums; font-weight: 500; }
.sum-row.total {
  font-size: 1.18rem; font-weight: 700; color: var(--ink);
  margin: 13px 0 15px; padding-top: 13px; border-top: 1px dashed var(--line-2);
}
.sum-row.total span:last-child { font-weight: 700; }
.ship-note {
  font-size: .79rem; color: var(--ok); background: #edf7f1; border: 1px solid #cfe7db;
  padding: 9px 13px; border-radius: var(--r-sm); margin-bottom: 14px;
}
.ship-bar { height: 4px; background: #dcefe4; border-radius: 999px; margin-top: 7px; overflow: hidden; }
.ship-bar i { display: block; height: 100%; background: var(--ok); border-radius: 999px; transition: width .4s cubic-bezier(.2,.8,.3,1); }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .81rem; font-weight: 600; margin-bottom: 7px; }
.field label span { color: var(--orange); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--card); outline: none; font-size: .92rem; transition: border-color .18s, box-shadow .18s;
}
.field input:focus, .field textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(217,95,24,.1); }
.field textarea { resize: vertical; min-height: 78px; }
.field .hint { font-size: .74rem; color: var(--ink-3); margin-top: 6px; }

/* ---------- เลือกวิธีจัดส่ง ---------- */
.ship-methods { display: flex; flex-direction: column; gap: 9px; }
.ship-opt {
  display: block; width: 100%; text-align: left; border: 1.5px solid var(--line);
  border-radius: var(--r-sm); background: var(--card); padding: 12px 14px; transition: all .16s;
}
.ship-opt b { display: block; font-size: .92rem; font-weight: 600; }
.ship-opt span { display: block; font-size: .76rem; color: var(--ink-3); margin-top: 2px; }
.ship-opt:hover { border-color: var(--orange-line); }
.ship-opt.active { border-color: var(--orange); background: var(--orange-tint); box-shadow: 0 0 0 3px rgba(217,95,24,.1); }

.ship-info { margin-top: 12px; }
.ship-info.postal {
  background: #eef4fb; border: 1px solid #cfe0f2; color: #24557f;
  border-radius: var(--r-sm); padding: 12px 14px; font-size: .85rem; line-height: 1.55;
}
.map-hint { font-size: .8rem; color: var(--ink-2); margin-bottom: 8px; }
.place-search-wrap { margin-bottom: 8px; }
.place-search-wrap:empty { display: none; }
.place-search-wrap gmp-place-autocomplete { width: 100%; }
.map-box {
  width: 100%; height: 220px; border-radius: var(--r-sm); overflow: hidden;
  border: 1px solid var(--line); background: var(--orange-tint);
  display: grid; place-items: center; color: var(--ink-3); font-size: .85rem;
}
.map-actions { display: flex; gap: 8px; margin-top: 10px; }
.map-actions .btn { flex: 1; padding: 11px 12px; font-size: .86rem; }
.quote-ok {
  margin-top: 10px; background: #edf7f1; border: 1px solid #cfe7db; color: #1e6b42;
  border-radius: var(--r-sm); padding: 10px 13px; font-size: .88rem;
}
.quote-ok b { color: var(--orange-deep); font-size: 1rem; }
.quote-bad {
  margin-top: 10px; background: #fdeeec; border: 1px solid #f3c9c3; color: #a93226;
  border-radius: var(--r-sm); padding: 10px 13px; font-size: .85rem; line-height: 1.5;
}
.pending-box {
  background: #fffbea; border: 1px solid #f5e6a8; border-radius: var(--r); padding: 16px;
  margin-bottom: 16px; text-align: center;
}
.pending-box b { font-size: 1.05rem; }
.pending-box p { font-size: .84rem; color: var(--ink-2); margin-top: 8px; line-height: 1.55; }

.radio-group { display: flex; gap: 10px; }
.radio-opt {
  flex: 1; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 11px;
  text-align: center; font-size: .87rem; font-weight: 500; background: var(--card); transition: all .16s;
}
.radio-opt:hover { border-color: var(--orange-line); background: var(--orange-tint); }
.radio-opt.active {
  border-color: var(--orange); background: var(--orange-tint); color: var(--orange-deep);
  font-weight: 600; box-shadow: 0 0 0 3px rgba(217,95,24,.1);
}

.errors {
  background: #fdeeec; border: 1px solid #f3c9c3; color: #a93226;
  padding: 12px 14px; border-radius: var(--r-sm); font-size: .84rem; margin-bottom: 15px;
}
.errors ul { margin: 0; padding-left: 18px; }

/* ---------- Success ---------- */
.success { text-align: center; padding: 10px 0; }
.success-icon {
  width: 66px; height: 66px; border-radius: 50%; background: #edf7f1; color: var(--ok);
  display: grid; place-items: center; font-size: 1.9rem; margin: 0 auto 16px;
  border: 1px solid #cfe7db; animation: pop .4s cubic-bezier(.2,1.5,.4,1);
}
@keyframes pop { from { transform: scale(.5); opacity: 0 } to { transform: scale(1); opacity: 1 } }
.success h3 { font-size: 1.28rem; margin-bottom: 7px; letter-spacing: -.01em; }
.success .oid {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.02rem; font-weight: 700;
  color: var(--orange-deep); background: var(--orange-tint); border: 1px solid var(--orange-line);
  padding: 8px 17px; border-radius: var(--r-sm); display: inline-block; margin: 11px 0 16px;
  letter-spacing: .03em;
}
.success > p { font-size: .88rem; color: var(--ink-2); margin-bottom: 16px; }
.qr-box {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; margin-bottom: 16px; box-shadow: var(--sh-1);
}
.qr-box img { width: 195px; margin: 0 auto 12px; border-radius: 8px; }
.qr-box .amount { font-size: 1.42rem; font-weight: 700; color: var(--orange); letter-spacing: -.02em; }
.qr-box .amount small { display: block; font-size: .72rem; color: var(--ink-3); font-weight: 500; letter-spacing: 0; }
.qr-box .acct { font-size: .8rem; color: var(--ink-2); margin-top: 6px; line-height: 1.5; }

.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(90px);
  background: var(--ink); color: #fff; padding: 12px 24px; border-radius: 999px;
  font-size: .88rem; font-weight: 500; z-index: 200; opacity: 0;
  transition: transform .3s cubic-bezier(.2,.9,.3,1), opacity .3s; pointer-events: none;
  box-shadow: var(--sh-3);
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 48px 0 44px; }
  .band-grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .trust { grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
  .pick-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .menu-toggle { display: block; margin-left: auto; }
  .header-inner { gap: 10px; height: 66px; }
  .logo-text { font-size: .94rem; }
  .logo-mark { width: 42px; height: 42px; border-radius: 12px; }
  .logo-mark img { width: 32px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(152px, 1fr)); gap: 13px; }
  .card-body { padding: 12px 12px 13px; gap: 7px; }
  .card-name { font-size: .84rem; }
  .price { font-size: 1.02rem; white-space: nowrap; }
  /* จอเล็กเปลี่ยนปุ่มเป็นวงกลม + เพื่อไม่ให้ราคาตกบรรทัด */
  .add-btn {
    font-size: 0; width: 36px; height: 36px; padding: 0; border-radius: 50%;
    display: grid; place-items: center; flex-shrink: 0;
  }
  .add-btn::after { content: "+"; font-size: 1.2rem; font-weight: 700; line-height: 1; }
  .band-grid { grid-template-columns: 1fr; gap: 24px; }
  .cart-btn { padding: 9px 15px; }
  .cart-btn .cart-label { display: none; }
  .count-note { display: none; }
  .toolbar { gap: 10px; }

  .trust { grid-template-columns: 1fr; gap: 2px; margin-top: 34px; }
  .pick-cards { grid-template-columns: 1fr; gap: 13px; }
  .pick-card, .pick-card:last-child { aspect-ratio: 16 / 9; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
