/* PrintCraft — ฟ้า-ขาว
   layout: หน้าแรกเป็นแอปเต็มจอ (หัวเว็บ / แถบกรอง / แผนที่ซ้าย + ลิสต์ขวา) ส่วนหน้าอื่นเป็นคอลัมน์เดียว กว้างไม่เกิน 760–1100px */
:root {
  --pc-bg: #f3f8fe;
  --pc-surface: #ffffff;
  --pc-tint: #e7f1ff;
  --pc-line: #d6e3f3;
  --pc-text: #10233f;
  --pc-muted: #5a6b85;
  --pc-blue: #1a6ef5;
  --pc-blue-dark: #0f55c9;
  --pc-open: #0f9d63;
  --pc-urgent: #e8590c;
  --pc-closed: #8a97ab;
  --pc-danger: #d93a3a;
  --pc-font-display: 'Anuphan', 'IBM Plex Sans Thai', 'Leelawadee UI', Tahoma, sans-serif;
  --pc-font-body: 'IBM Plex Sans Thai', 'Anuphan', 'Leelawadee UI', Tahoma, sans-serif;
  --pc-radius: 10px;
  --pc-shadow: 0 1px 0 rgba(16, 35, 63, .04);
  --pc-shadow-up: 0 1px 2px rgba(16, 35, 63, .08), 0 6px 18px rgba(16, 35, 63, .08);
  --pc-side-w: 500px;
}

html { color-scheme: light; height: 100%; }
body {
  background: var(--pc-bg);
  color: var(--pc-text);
  font-family: var(--pc-font-body);
  font-size: 16px;
  line-height: 1.6;
}
h1, h2, h3, legend { font-family: var(--pc-font-display); text-wrap: balance; color: var(--pc-text); }
a { color: var(--pc-blue); }
a:hover { color: var(--pc-blue-dark); }
.pc-mono, .pc-num b, .pc-prices b, .pc-top-count b { font-variant-numeric: tabular-nums; }
.pc-narrow { max-width: 760px; }
:focus-visible { outline: 3px solid rgba(26, 110, 245, .45); outline-offset: 2px; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; color: inherit; }
img.ic-brand { object-fit: contain; border-radius: 3px; }
.pc-fchip .ic { color: var(--pc-muted); }
.pc-fchip.is-on .ic { color: #fff; }
.pc-btn .ic { width: 1.1em; height: 1.1em; }
.pc-btn.btn-fb { border-color: #c4d4f4; color: #1d4fb8; background: #f3f6fd; }
.pc-btn.btn-fb:hover { border-color: #1d4fb8; color: #1d4fb8; background: #e8eefb; }
.pc-btn.btn-maps { color: var(--pc-text); }
.pc-svc li { display: inline-flex; align-items: center; gap: 5px; }
.pc-svc .ic { color: var(--pc-blue-dark); }
.pc-home-tag { display: inline-flex; align-items: center; gap: 3px; color: #0a7285; font-weight: 500; }
.pc-home-tag .ic { width: 1em; height: 1em; }
.pc-st .ic { width: 1em; height: 1em; }
.pc-st.is-urgent .ic { margin-left: -2px; }
.pc-shop-nav a { display: inline-flex; align-items: center; gap: 6px; }
svg { flex: none; }

/* =========================================================
   หัวเว็บ
   ========================================================= */
.pc-top { background: #fff; border-bottom: 1px solid var(--pc-line); position: relative; z-index: 1001; }
.pc-top-in { display: flex; align-items: center; gap: 18px; padding: 10px 24px; min-height: 64px; }
.pc-brand { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-family: var(--pc-font-display); font-weight: 700; font-size: 1.42rem; line-height: 1; flex: none; letter-spacing: -.01em; }
.pc-brand-mark svg { width: 34px; height: 34px; display: block; }
.pc-brand-word b { color: var(--pc-text); font-weight: 700; }
.pc-brand-word i { color: var(--pc-blue); font-style: normal; }
.pc-brand.has-logo { border-radius: 0; }
.pc-brand img { height: 40px; width: auto; display: block; }
.pc-announce { background: var(--pc-text); color: #fff; text-align: center; font-size: .9rem; padding: 6px 16px; font-weight: 500; }
.pc-top-meta { margin: 0; color: var(--pc-muted); font-size: .88rem; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1 1 auto; }
.pc-menu { display: flex; align-items: center; gap: 2px; flex: none; }
.pc-menu a { color: var(--pc-text); text-decoration: none; padding: 7px 12px; border-radius: 9px; font-weight: 600; font-size: .95rem; }
.pc-menu a:hover, .pc-menu a.active { color: var(--pc-blue-dark); background: var(--pc-tint); }
.pc-menu a.pc-menu-cta { color: #fff; background: var(--pc-blue); margin-left: 6px; }
.pc-menu a.pc-menu-cta:hover { background: var(--pc-blue-dark); color: #fff; }

/* =========================================================
   ปุ่มส่วนกลาง
   ========================================================= */
.pc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px; border-radius: 8px; border: 1px solid #c9d6e7;
  background: #fff; color: var(--pc-text); text-decoration: none;
  font-family: var(--pc-font-body); font-weight: 600; font-size: .95rem; line-height: 1.3; cursor: pointer;
}
.pc-btn:hover { border-color: var(--pc-blue); color: var(--pc-blue-dark); background: var(--pc-tint); }
.pc-btn.btn-main { background: var(--pc-blue); border-color: var(--pc-blue); color: #fff; }
.pc-btn.btn-main:hover { background: var(--pc-blue-dark); border-color: var(--pc-blue-dark); color: #fff; }
.pc-btn.btn-line { border-color: #b9e6cb; color: #0b8a4b; background: #f1fbf5; }
.pc-btn.btn-line:hover { border-color: #0b8a4b; color: #0b8a4b; background: #e3f7eb; }
.pc-btn.btn-call { border-color: #b9d3fb; color: var(--pc-blue-dark); background: var(--pc-tint); }
.pc-btn.btn-call:hover { border-color: var(--pc-blue); background: #d8e8ff; }
.pc-btn.btn-danger { border-color: #f1b9b9; color: var(--pc-danger); background: #fff; }
.pc-btn.btn-danger:hover { border-color: var(--pc-danger); color: var(--pc-danger); background: #fdf0f0; }
.pc-btn.btn-big { padding: 13px 22px; font-size: 1.08rem; width: 100%; border-radius: 12px; }
.pc-btn-sm { padding: 5px 11px; font-size: .86rem; border-radius: 8px; }

/* ป้ายสถานะ (ใช้ร่วมกันทุกหน้า) */
.pc-st { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 600; padding: 0 7px; border-radius: 4px; white-space: nowrap; line-height: 1.7; flex: none; }
.pc-st.is-open { background: #e3f6ec; color: #0a7a4c; }
.pc-st.is-open::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pc-st.is-closed { background: #eef1f5; color: #66758c; }
.pc-st.is-urgent { background: var(--pc-urgent); color: #fff; }

.pc-st.is-ad { background: var(--pc-blue); color: #fff; }
.pc-st.is-kind { background: var(--pc-tint); color: var(--pc-blue-dark); }
.pc-st.is-demo { border: 1px dashed #a9b8cd; color: var(--pc-muted); font-weight: 500; }

/* =========================================================
   หน้าแผนที่ (แอปเต็มจอ)
   ========================================================= */
body.pc-app { height: 100%; display: flex; flex-direction: column; overflow: hidden; }
body.pc-app > main { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }

/* แถบกรอง */
.pc-bar { background: #f7fbff; border-bottom: 1px solid var(--pc-line); position: relative; z-index: 1000; flex: none; }
.pc-bar-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 24px; }
.pc-search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--pc-line); border-radius: 10px; padding: 0 10px; height: 40px; flex: 0 0 190px; }
.pc-search:focus-within { border-color: var(--pc-blue); box-shadow: 0 0 0 3px rgba(26, 110, 245, .15); }
.pc-search .ic { color: var(--pc-muted); }
.pc-search input { border: 0; outline: 0; background: transparent; font: inherit; font-size: .95rem; color: var(--pc-text); width: 100%; min-width: 0; }
.pc-search input::placeholder { color: #94a3b8; }
.pc-near { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 13px; border-radius: 10px; border: 1.5px solid #b9d3fb; background: #fff; color: var(--pc-blue-dark); font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; flex: none; white-space: nowrap; }

.pc-near:hover { border-color: var(--pc-blue); background: var(--pc-tint); }
.pc-near.is-on { background: var(--pc-blue); border-color: var(--pc-blue); color: #fff; }
.pc-prov { height: 40px; border: 1.5px solid var(--pc-line); border-radius: 10px; background-color: #fff; color: var(--pc-text); font: inherit; font-size: .95rem; padding: 0 30px 0 12px; flex: 0 0 auto; max-width: 200px; cursor: pointer;
  appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%235a6b85' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; background-size: 11px; }
.pc-prov:focus { outline: 0; border-color: var(--pc-blue); box-shadow: 0 0 0 3px rgba(26, 110, 245, .15); }
.pc-sep { width: 1px; height: 24px; background: var(--pc-line); flex: none; margin: 0 2px; }
.pc-fchip { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 11px; border-radius: 999px; border: 1.5px solid var(--pc-line); background: #fff; color: var(--pc-text); font: inherit; font-size: .92rem; font-weight: 500; cursor: pointer; white-space: nowrap; flex: none; }
.pc-fchip:hover { border-color: var(--pc-blue); color: var(--pc-blue-dark); }
.pc-fchip.is-on { background: var(--pc-blue); border-color: var(--pc-blue); color: #fff; }
.pc-fchip-urgent.is-on { background: var(--pc-urgent); border-color: var(--pc-urgent); }
.pc-switch { display: inline-flex; align-items: center; gap: 7px; padding: 0 10px; height: 30px; border-radius: 999px; border: 1px solid var(--pc-line); background: #fff; font-size: .82rem; font-weight: 500; cursor: pointer; white-space: nowrap; flex: none; user-select: none; color: var(--pc-text); }
.pc-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pc-switch-ui { width: 30px; height: 18px; border-radius: 999px; background: #c9d5e6; position: relative; flex: none; }
.pc-switch-ui::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.pc-switch input:checked + .pc-switch-ui { background: var(--pc-blue); }
.pc-switch input:checked + .pc-switch-ui::after { left: 14px; }
.pc-switch input:focus-visible + .pc-switch-ui { outline: 3px solid rgba(26, 110, 245, .45); outline-offset: 2px; }

/* แผนที่ + ลิสต์ */
.pc-split { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) var(--pc-side-w); }
.pc-mapwrap { position: relative; min-height: 0; background: #dfe9f5; }
#pcMap { position: absolute; inset: 0; font-family: var(--pc-font-body); }
.pc-tiles { filter: saturate(.72) brightness(1.03); }
.pc-map-fail { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--pc-muted); margin: 0; }
.pc-locate { position: absolute; right: 10px; bottom: 96px; z-index: 800; width: 36px; height: 36px; border-radius: 8px; border: 0; background: #fff; color: var(--pc-blue-dark); display: grid; place-items: center; box-shadow: 0 1px 5px rgba(0, 0, 0, .25); cursor: pointer; }
.pc-locate .ic { width: 20px; height: 20px; }
.pc-locate:hover { background: var(--pc-tint); }
.pc-toast { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 900; margin: 0; background: var(--pc-text); color: #fff; padding: 8px 16px; border-radius: 10px; font-size: .92rem; box-shadow: var(--pc-shadow-up); max-width: calc(100% - 32px); text-align: center; }
.pc-legend { position: absolute; left: 12px; top: 12px; z-index: 800; display: flex; gap: 10px; list-style: none; margin: 0; padding: 5px 10px; background: rgba(255, 255, 255, .94); border-radius: 9px; font-size: .8rem; color: var(--pc-muted); box-shadow: 0 1px 4px rgba(0, 0, 0, .14); }
.pc-legend li { display: inline-flex; align-items: center; gap: 5px; }
.pc-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.lg-open { background: var(--pc-blue); }
.lg-urgent { background: var(--pc-urgent); }
.lg-closed { background: var(--pc-closed); }

/* หมุด */
.pc-pin-wrap { background: none; border: 0; }
.pc-pin {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--pc-font-display); font-weight: 700; font-size: 13px; line-height: 1; color: #fff; letter-spacing: -.02em;
  border: 3px solid #fff; box-shadow: 0 2px 6px rgba(16, 35, 63, .35); cursor: pointer; transform-origin: center;
}
.pc-pin.is-open { background: var(--pc-blue); }
.pc-pin.is-urgent { background: var(--pc-urgent); }
.pc-pin.is-closed { background: var(--pc-closed); }
.pc-pin.is-featured { width: 52px; height: 52px; font-size: 14px; position: relative; box-shadow: 0 0 0 3px var(--pc-blue-dark), 0 2px 8px rgba(16, 35, 63, .4); }
.pc-pin i { position: absolute; top: -8px; right: -6px; width: 20px; height: 20px; border-radius: 50%; background: #ffd23f; color: #6b4a00; font-style: normal; font-size: 12px; display: grid; place-items: center; border: 2px solid #fff; }
.pc-pin.is-selected { transform: scale(1.22); box-shadow: 0 0 0 4px rgba(26, 110, 245, .35), 0 4px 12px rgba(16, 35, 63, .45); }
.pc-pin.is-urgent.is-selected { box-shadow: 0 0 0 4px rgba(232, 89, 12, .35), 0 4px 12px rgba(16, 35, 63, .45); }
.pc-cluster-wrap { background: none; }
.pc-cluster { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; background: var(--pc-blue-dark); color: #fff; font-family: var(--pc-font-display); font-weight: 700; font-size: 15px; border: 3px solid rgba(255, 255, 255, .9); box-shadow: 0 0 0 5px rgba(26, 110, 245, .25), 0 2px 8px rgba(16, 35, 63, .3); }
.pc-me-wrap { background: none; }
.pc-me { display: block; width: 22px; height: 22px; border-radius: 50%; background: #2b86ff; border: 4px solid #fff; box-shadow: 0 0 0 6px rgba(43, 134, 255, .25), 0 1px 4px rgba(0, 0, 0, .3); }
.leaflet-container { font-family: var(--pc-font-body); }
.leaflet-control-attribution { font-size: 11px; }

/* ลิสต์ด้านขวา */
.pc-side { overflow-y: auto; background: var(--pc-bg); border-left: 1px solid var(--pc-line); padding: 10px 14px 24px; min-height: 0; overscroll-behavior: contain; }
.pc-demo-strip { margin: 0 0 10px; padding: 7px 12px; border: 1px dashed #b5c3d6; border-radius: 8px; background: #fff; font-size: .84rem; color: var(--pc-muted); }
.pc-side-head { display: flex; justify-content: space-between; align-items: center; gap: 4px 10px; flex-wrap: wrap; padding: 2px 2px 8px; }
.pc-side-head .pc-side-note { flex-basis: 100%; }
.pc-side-head p { margin: 0; font-size: .85rem; color: var(--pc-muted); }
.pc-side-head b { color: var(--pc-text); font-weight: 600; }
.pc-list { display: grid; gap: 6px; }

.pc-item { position: relative; background: #fff; border: 1px solid var(--pc-line); border-radius: 8px; }
.pc-item.is-active { border-color: var(--pc-blue); box-shadow: 0 0 0 1px var(--pc-blue), var(--pc-shadow-up); }
/* ร้านแนะนำ: พื้นฟ้าอ่อน ขอบฟ้า ริบบิ้นมุมขวา รูปใหญ่กว่า */
.pc-item.is-featured { background: #f3f8ff; border: 1.5px solid #7fb0fa; }
.pc-item.is-featured.is-active { border-color: var(--pc-blue); }
.pc-ribbon { position: absolute; top: -1px; right: -1px; background: var(--pc-blue); color: #fff; font-size: .72rem; font-weight: 600; padding: 2px 9px 3px; border-radius: 0 8px 0 8px; letter-spacing: .01em; pointer-events: none; }
/* รับงานด่วน: แถบส้มด้านซ้าย */
.pc-item.is-urgent { border-left: 4px solid var(--pc-urgent); }
/* ปิดอยู่: จางลง */
.pc-item.is-closed .pc-ava, .pc-item.is-closed .pc-item-tags, .pc-item.is-closed .pc-item-meta { opacity: .55; }
.pc-item.is-closed .pc-item-name { color: #46566f; }

.pc-item-main { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 11px 13px; background: none; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; border-radius: 8px; }
.pc-item.is-featured .pc-item-main { grid-template-columns: 60px minmax(0, 1fr) auto; padding-top: 14px; padding-bottom: 13px; }
.pc-item-main:hover .pc-item-name { color: var(--pc-blue-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* รูปร้าน / อักษรย่อ */
.pc-ava { width: 48px; height: 48px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; flex: none; background: #eef2f7; }
.pc-ava-lg { width: 60px; height: 60px; }
.pc-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-ava.is-letter { font-family: var(--pc-font-display); font-weight: 700; font-size: 1.25rem; line-height: 1; }
.pc-ava-lg.is-letter { font-size: 1.5rem; }
.pc-ava.c0 { background: #dbe8fd; color: #1849a9; }
.pc-ava.c1 { background: #fde6d5; color: #9a3a0e; }
.pc-ava.c2 { background: #d9f2e3; color: #17643c; }
.pc-ava.c3 { background: #ece2fb; color: #5b2a9a; }
.pc-ava.c4 { background: #fbf0c8; color: #7a5a06; }
.pc-ava.c5 { background: #d7eef8; color: #0a5b7d; }
.pc-ava.c6 { background: #fbe0ec; color: #92204f; }
.pc-ava.c7 { background: #e3e8ef; color: #36465c; }

.pc-item-body { display: grid; gap: 1px; min-width: 0; }
.pc-item-name { font-family: var(--pc-font-display); font-weight: 600; font-size: 1.02rem; line-height: 1.35; overflow-wrap: anywhere; }
.pc-item.is-featured .pc-item-name { font-size: 1.1rem; padding-right: 64px; }
.pc-item-sub { font-size: .84rem; color: var(--pc-muted); line-height: 1.45; overflow-wrap: anywhere; }
.pc-item-tags { display: flex; gap: 4px; margin-top: 5px; overflow: hidden; white-space: nowrap; }
.pc-item-meta { font-size: .78rem; color: #7b889c; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.pc-tg { font-size: .76rem; padding: 0 7px; border-radius: 4px; background: #f0f4f9; color: #44556f; line-height: 1.7; flex: none; }
.pc-tg-more { color: var(--pc-muted); }

/* ตัวเลขใหญ่ด้านขวา (เวลาปิด) */
.pc-num { display: grid; justify-items: end; line-height: 1.1; min-width: 70px; text-align: right; }
.pc-num b { font-family: var(--pc-font-display); font-weight: 700; font-size: 1.6rem; color: var(--pc-text); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pc-num b i { font-style: normal; font-size: .8rem; margin-left: 2px; color: var(--pc-muted); letter-spacing: 0; }
.pc-num small { font-size: .74rem; color: var(--pc-muted); white-space: nowrap; }
.pc-num small:first-child { margin-bottom: 1px; }
.pc-num small + b + small { margin-top: 2px; }
.pc-num .pc-num-word { font-size: 1.1rem; }
.pc-num.is-soon b, .pc-num.is-soon small:last-child { color: #c24a07; }
.pc-num.is-urgent b { color: var(--pc-urgent); }
.pc-num.is-urgent small { color: #c24a07; font-weight: 600; }
.pc-num.is-closed b { color: #9aa6b8; }
.pc-num.is-muted b { color: #b5c1d2; }

/* รายละเอียดที่กางออก */
.pc-detail { border-top: 1px solid var(--pc-line); padding: 12px 14px 14px; display: grid; gap: 10px; }
.pc-detail > * { margin: 0; }
.pc-detail-head { display: flex; align-items: center; gap: 8px; }
.pc-detail-kind { margin: 0 auto 0 0; font-size: .82rem; color: var(--pc-muted); font-weight: 600; }
.pc-x { width: 32px; height: 32px; border-radius: 8px; border: 1.5px solid var(--pc-line); background: #fff; color: var(--pc-muted); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.pc-x:hover { border-color: var(--pc-blue); color: var(--pc-blue-dark); }
.pc-facts { display: grid; gap: 6px; margin: 0; }
.pc-facts div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; }
.pc-facts dt { font-size: .85rem; color: var(--pc-muted); font-weight: 500; }
.pc-facts dd { margin: 0; font-size: .93rem; overflow-wrap: anywhere; }
.pc-facts b { color: var(--pc-blue-dark); }
.pc-detail-note { background: var(--pc-bg); border-radius: 8px; padding: 8px 12px; font-size: .92rem; }
.pc-detail-photo { width: 100%; max-height: 220px; object-fit: cover; border-radius: 8px; display: block; }
.pc-svc { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.pc-svc li { font-size: .82rem; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--pc-line); color: #44556f; }
.pc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-urgent { background: #fff1e6; border: 1px solid #ffc9a3; color: #c24a07; border-radius: 10px; padding: 6px 12px; font-weight: 600; font-size: .92rem; }
.pc-demo-note { font-size: .82rem; color: var(--pc-muted); border-left: 3px solid #c9d5e6; padding-left: 8px; }

.pc-empty { border: 2px dashed var(--pc-line); border-radius: var(--pc-radius); padding: 28px 18px; text-align: center; color: var(--pc-muted); background: #fff; }
.pc-empty h3 { color: var(--pc-text); font-size: 1.12rem; }

/* โปรโมตท้ายลิสต์ */
.pc-side-foot { display: grid; gap: 10px; margin-top: 18px; }
.pc-promo { background: #fff; border: 1px solid var(--pc-line); border-radius: 8px; padding: 14px 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; }
.pc-promo h2 { font-size: 1rem; font-weight: 700; margin: 0; }
.pc-promo p { font-size: .86rem; color: var(--pc-muted); margin: 0; grid-column: 1; }
.pc-promo .pc-btn { grid-column: 2; grid-row: 1 / span 2; white-space: nowrap; }
.pc-promo.has-art { grid-template-columns: 64px minmax(0, 1fr) auto; }
.pc-promo.has-art h2, .pc-promo.has-art p { grid-column: 2; }
.pc-promo.has-art .pc-btn { grid-column: 3; }
.pc-promo-art { grid-column: 1; grid-row: 1 / span 2; width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
.pc-pagehead { display: flex; align-items: center; gap: 24px; }
.pc-pagehead > div { flex: 1 1 auto; min-width: 0; }
.pc-pagehead-art { width: 200px; height: 200px; object-fit: cover; border-radius: 10px; flex: none; margin-top: 24px; border: 1px solid var(--pc-line); }
@media (max-width: 600px) {
  .pc-pagehead { flex-direction: column-reverse; align-items: stretch; gap: 0; }
  .pc-pagehead-art { width: 100%; height: 150px; margin-top: 16px; object-position: center 70%; }
  .pc-promo.has-art { grid-template-columns: 52px minmax(0, 1fr); }
  .pc-promo.has-art .pc-btn { grid-column: 1 / -1; grid-row: auto; justify-self: start; margin-top: 6px; }
  .pc-promo-art { width: 52px; height: 52px; }
}
.pc-fineprint { font-size: .8rem; color: var(--pc-muted); margin: 4px 4px 0; }

/* =========================================================
   หน้าเต็มของร้าน (shop.php)
   ========================================================= */
.pc-shop { max-width: 1040px; padding-top: 18px; }
.pc-shop-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; font-weight: 600; }
.pc-shop-nav a { text-decoration: none; }
.pc-shop-head { margin-bottom: 20px; display: flex; gap: 18px; align-items: flex-start; }
.pc-shop-headtext { min-width: 0; }
.pc-ava-xl { width: 96px; height: 96px; border-radius: 10px; }
.pc-ava-xl.is-letter { font-size: 2.2rem; }
.pc-shop-updated { margin: 6px 0 0; font-size: .86rem; color: #7b889c; }
@media (max-width: 560px) { .pc-ava-xl { width: 64px; height: 64px; } .pc-ava-xl.is-letter { font-size: 1.6rem; } }
.pc-shop-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.pc-shop-tags .pc-st { font-size: .85rem; padding: 2px 10px; }
.pc-shop-head h1 { font-size: clamp(1.6rem, 4.2vw, 2.3rem); font-weight: 700; line-height: 1.25; margin-bottom: 6px; overflow-wrap: anywhere; }
.pc-shop-where { color: var(--pc-muted); font-size: 1.05rem; margin: 0; }
.pc-shop-where span { font-size: .95rem; }
.pc-shop-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 16px; align-items: start; }
.pc-shop-main, .pc-shop-side { display: grid; gap: 16px; }
.pc-panel { background: #fff; border: 1px solid var(--pc-line); border-radius: var(--pc-radius); padding: 18px 20px; box-shadow: var(--pc-shadow); }
.pc-panel h2 { font-size: 1.08rem; font-weight: 700; margin-bottom: 10px; }
.pc-panel > :last-child { margin-bottom: 0; }
.pc-contact-panel { border: 2px solid var(--pc-blue); }
.pc-contact-panel .pc-hint { margin-bottom: 12px; }
.pc-actions-lg .pc-btn { padding: 11px 16px; font-size: 1rem; }
.pc-shop-note { font-size: 1.02rem; margin: 0; }
.pc-svc-lg li { font-size: .9rem; padding: 3px 12px; }
.pc-prices { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.pc-prices div { background: var(--pc-tint); border-radius: 12px; padding: 10px 18px; display: grid; }
.pc-prices b { font-family: var(--pc-font-display); font-size: 1.9rem; font-weight: 700; color: var(--pc-blue-dark); line-height: 1.1; }
.pc-prices b i { font-style: normal; font-size: 1rem; margin-left: 2px; }
.pc-prices span { font-size: .85rem; color: var(--pc-muted); }
.pc-hours-list { list-style: none; padding: 0; margin: 0; display: grid; }
.pc-hours-list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #edf2f8; font-size: .95rem; }
.pc-hours-list li:last-child { border-bottom: 0; }
.pc-hours-list b { font-weight: 600; font-variant-numeric: tabular-nums; }
.pc-hours-list li.is-off { color: var(--pc-closed); }
.pc-hours-list li.is-today { color: var(--pc-blue-dark); font-weight: 600; }
.pc-panel-map { padding: 0; overflow: hidden; }
.pc-shop-map { height: 260px; }
.pc-others { margin-top: 28px; }
.pc-others h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.pc-others-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.pc-other { display: grid; gap: 2px; justify-items: start; background: #fff; border: 1px solid var(--pc-line); border-radius: 12px; padding: 12px 14px; text-decoration: none; color: var(--pc-text); box-shadow: var(--pc-shadow); }
.pc-other:hover { border-color: var(--pc-blue); color: var(--pc-text); }
.pc-other b { font-family: var(--pc-font-display); font-weight: 600; }
.pc-other span { font-size: .86rem; color: var(--pc-muted); }
.pc-other .pc-st { margin-top: 4px; }

/* =========================================================
   หน้าทั่วไป: ฟอร์ม, จัดการร้าน, ลงโฆษณา, หลังบ้าน
   ========================================================= */
body.pc-page > main { min-height: 60vh; padding-bottom: 64px; }
.pc-lead { color: var(--pc-muted); font-size: 1.06rem; max-width: 38em; margin-bottom: 0; }
.pc-page-title { font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 700; margin: 30px 0 6px; }
.pc-sub { font-size: 1.3rem; font-weight: 700; margin: 30px 0 12px; }
.pc-form { display: grid; gap: 16px; margin-top: 20px; }
.pc-fs { background: var(--pc-surface); border: 1px solid var(--pc-line); border-radius: var(--pc-radius); padding: 20px; display: grid; gap: 14px; margin: 0; min-width: 0; box-shadow: var(--pc-shadow); }
.pc-fs legend { float: left; width: 100%; font-size: 1.12rem; font-weight: 700; color: var(--pc-blue-dark); padding: 0; margin: 0; }
.pc-field { display: grid; gap: 5px; min-width: 0; }
.pc-field label, .pc-field > span { font-size: .9rem; color: var(--pc-muted); font-weight: 500; }
.pc-opt { font-size: .76rem; color: var(--pc-muted); background: var(--pc-bg); border-radius: 999px; padding: 1px 8px; margin-left: 4px; }
.form-control, .form-select { background-color: #fff; border: 1.5px solid var(--pc-line); border-radius: 10px; color: var(--pc-text); font-family: var(--pc-font-body); font-size: 1rem; padding: .55rem .85rem; }
.form-select { padding-right: 2.25rem; }
.form-control:focus, .form-select:focus { border-color: var(--pc-blue); box-shadow: 0 0 0 4px rgba(26, 110, 245, .15); color: var(--pc-text); }
.form-control::placeholder { color: #9aa9bf; }
.pc-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.pc-kind-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.pc-kind-opt { position: relative; cursor: pointer; }
.pc-kind-opt input { position: absolute; opacity: 0; }
.pc-kind-opt > span { display: grid; gap: 2px; padding: 14px 16px; border: 1.5px solid var(--pc-line); border-radius: 12px; background: #fff; height: 100%; }
.pc-kind-opt small { color: var(--pc-muted); font-size: .88rem; }
.pc-kind-opt input:checked + span { border-color: var(--pc-blue); background: var(--pc-tint); box-shadow: 0 0 0 1px var(--pc-blue) inset; }
.pc-kind-opt input:focus-visible + span { outline: 3px solid rgba(26, 110, 245, .45); outline-offset: 2px; }
.pc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-chip input { position: absolute; opacity: 0; pointer-events: none; }
.pc-chip span { display: inline-block; padding: 6px 14px; border: 1.5px solid var(--pc-line); border-radius: 999px; color: var(--pc-muted); cursor: pointer; font-weight: 500; user-select: none; background: #fff; }
.pc-chip span:hover { border-color: var(--pc-blue); color: var(--pc-blue-dark); }
.pc-chip input:checked + span { background: var(--pc-blue); border-color: var(--pc-blue); color: #fff; }
.pc-chip input:focus-visible + span { outline: 3px solid rgba(26, 110, 245, .45); outline-offset: 2px; }
.pc-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; }
.pc-check input { width: 18px; height: 18px; accent-color: var(--pc-blue); }
.pc-hint { color: var(--pc-muted); font-size: .9rem; margin: 0; }
.pc-err { color: var(--pc-danger); font-size: .92rem; font-weight: 500; margin: 0; }
.pc-alert { border: 1px solid #f1b9b9; color: #a82424; background: #fdf0f0; border-radius: 12px; padding: 11px 16px; margin: 14px 0 0; }
.pc-alert.is-ok { border-color: #a9e2c6; color: #0a7347; background: #e9f8f0; }
.pc-loc { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pc-loc-msg { color: var(--pc-muted); font-size: .93rem; }
.pc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pc-times-off { opacity: .4; pointer-events: none; }

.pc-done { background: var(--pc-surface); border: 1px solid var(--pc-line); border-radius: var(--pc-radius); padding: 28px; margin-top: 30px; box-shadow: var(--pc-shadow); }
.pc-done h1 { font-size: 1.6rem; font-weight: 700; }
.pc-done h2 { font-size: 1.15rem; font-weight: 700; color: var(--pc-blue-dark); margin-top: 22px; }
.pc-done code { color: var(--pc-blue-dark); background: var(--pc-tint); padding: 1px 6px; border-radius: 6px; }
.pc-linkbox { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.pc-linkbox input { flex: 1 1 260px; font-size: .88rem; background: var(--pc-bg); }
.pc-login { display: grid; gap: 14px; }
.pc-urgent-box { background: var(--pc-surface); border: 1px solid var(--pc-line); border-radius: var(--pc-radius); padding: 20px; margin-top: 18px; display: grid; gap: 10px; box-shadow: var(--pc-shadow); }
.pc-urgent-box.is-on { border: 2px solid var(--pc-urgent); background: #fff8f2; }
.pc-urgent-box h2 { font-size: 1.2rem; font-weight: 700; margin: 0; }
.pc-urgent-box p { margin: 0; }
.pc-urgent-box.is-on .pc-urgent-state { color: var(--pc-urgent); font-weight: 600; }
.pc-urgent-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-danger { margin-top: 36px; border: 1px solid #f1b9b9; border-radius: var(--pc-radius); padding: 18px; background: #fff; }
.pc-danger h2 { font-size: 1.1rem; font-weight: 700; color: var(--pc-danger); }
.pc-danger p { color: var(--pc-muted); }

.pc-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; margin-top: 22px; }
.pc-plan { background: var(--pc-surface); border: 1px solid var(--pc-line); border-radius: var(--pc-radius); padding: 24px; box-shadow: var(--pc-shadow); }
.pc-plan.is-featured { border: 2px solid var(--pc-blue); background: linear-gradient(180deg, #f2f8ff 0%, #fff 50%); box-shadow: var(--pc-shadow-up); }
.pc-plan h2 { font-size: 1.25rem; font-weight: 700; }
.pc-plan-price { margin: 0 0 4px; color: var(--pc-muted); }
.pc-plan-price b { font-size: 1.8rem; color: var(--pc-blue-dark); font-weight: 700; font-family: var(--pc-font-display); }
.pc-plan ul { padding-left: 1.2em; margin: 12px 0; }
.pc-steps { padding-left: 1.3em; }
.pc-steps li { margin-bottom: 4px; }
.pc-contact { background: var(--pc-tint); border-radius: var(--pc-radius); padding: 22px; margin-top: 22px; }
.pc-contact h2 { font-size: 1.15rem; font-weight: 700; }
.pc-contact p { color: var(--pc-muted); margin: 0; }

/* การ์ดร้านแบบเดิม (ใช้ในหลังบ้าน) */
.pc-card { background: var(--pc-surface); border: 1px solid var(--pc-line); border-radius: var(--pc-radius); padding: 16px; display: flex; flex-direction: column; gap: 7px; min-width: 0; box-shadow: var(--pc-shadow); }
.pc-card > * { margin: 0; }
.pc-card.is-featured { border: 2px solid var(--pc-blue); padding: 15px; }
.pc-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pc-kind, .pc-tag { font-size: .78rem; font-weight: 600; padding: 1px 8px; border-radius: 6px; }
.pc-kind.kind-shop { background: var(--pc-tint); color: var(--pc-blue-dark); }
.pc-kind.kind-home { background: #e4f5f7; color: #0a7285; }
.pc-tag.tag-ad { background: var(--pc-blue); color: #fff; }
.pc-tag.tag-demo { border: 1px dashed #a9b8cd; color: var(--pc-muted); font-weight: 500; }
.pc-status { margin-left: auto; font-size: .84rem; font-weight: 600; }
.pc-status.is-open { color: var(--pc-open); }
.pc-status.is-closed { color: var(--pc-muted); }
.pc-name { font-size: 1.15rem; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.pc-where, .pc-hours { font-size: .95rem; }
.pc-addr, .pc-note { color: var(--pc-muted); font-size: .92rem; overflow-wrap: anywhere; }
.pc-services { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.pc-services li { font-size: .8rem; padding: 1px 9px; background: var(--pc-bg); border-radius: 999px; color: #44556f; }
.pc-price { font-size: .94rem; color: var(--pc-muted); }
.pc-price b { color: var(--pc-blue-dark); }
.pc-card .pc-actions { margin-top: auto; padding-top: 6px; }

.pc-admin-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pc-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0; border-bottom: 1px solid var(--pc-line); }
.pc-tabs a { padding: 8px 14px; color: var(--pc-muted); text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.pc-tabs a.active { color: var(--pc-blue-dark); border-bottom-color: var(--pc-blue); }
.pc-demo-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; border: 1px dashed #a9b8cd; background: #fff; border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; color: var(--pc-muted); }
.pc-admin-list { display: grid; gap: 16px; }
.pc-admin-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 16px; align-items: start; }
.pc-admin-side { display: grid; gap: 10px; }
.pc-admin-meta { color: var(--pc-muted); font-size: .92rem; margin: 0; }
.pc-admin-btns, .pc-admin-feature { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pc-admin-feature span { color: var(--pc-muted); font-size: .92rem; }

.pc-footer { background: #fff; border-top: 1px solid var(--pc-line); padding: 24px 0 32px; color: var(--pc-muted); font-size: .92rem; }
.pc-footer p { max-width: 46em; }
.pc-footer b { color: var(--pc-text); }
.pc-footer-links { display: flex; flex-wrap: wrap; gap: 18px; margin: 0; }

/* =========================================================
   จอเล็ก
   ========================================================= */
@media (max-width: 1180px) {
  .pc-top-meta { display: none; }
  :root { --pc-side-w: 440px; }
}
@media (max-width: 900px) {
  /* มือถือ/แท็บเล็ต: แผนที่ด้านบน ลิสต์ไหลต่อด้านล่าง */
  body.pc-app { height: auto; overflow: visible; display: block; }
  .pc-top-in { padding: 8px 14px; gap: 10px; flex-wrap: wrap; min-height: 0; }
  .pc-brand { font-size: 1.15rem; }
  .pc-menu { order: 3; width: 100%; overflow-x: auto; }
  .pc-menu a { padding: 6px 10px; font-size: .9rem; white-space: nowrap; }
  .pc-top-count { margin-left: auto; }
  .pc-bar { position: sticky; top: 0; }
  .pc-bar-in { padding: 8px 14px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .pc-bar-in::-webkit-scrollbar { display: none; }
  .pc-search { flex-basis: 200px; }
  .pc-split { display: block; }
  .pc-mapwrap { height: 48vh; height: 48svh; min-height: 280px; }
  .pc-side { border-left: 0; overflow: visible; padding: 12px 12px 28px; }
  .pc-shop-grid { grid-template-columns: minmax(0, 1fr); }
  .pc-admin-item { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .pc-item-main { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; padding: 11px 12px; }
  .pc-ico { width: 38px; height: 38px; }
  .pc-num { min-width: 52px; }
  .pc-num b { font-size: 1.55rem; }
  .pc-legend { font-size: .74rem; gap: 8px; }
}
@media (prefers-reduced-motion: no-preference) {
  .pc-btn, .pc-fchip, .pc-chip span, .pc-menu a, .pc-near { transition: border-color .15s, background-color .15s, color .15s; }
  .pc-pin { transition: transform .15s; }
  .pc-switch-ui::after { transition: left .15s; }
}

/* ---------- เลือกรูปร้าน ---------- */
.pc-photo-pick { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.pc-photo-prev { width: 96px; height: 96px; border-radius: 8px; border: 1px dashed #b5c3d6; background: var(--pc-bg); display: grid; place-items: center; overflow: hidden; flex: none; color: var(--pc-muted); font-size: .8rem; text-align: center; }
.pc-photo-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-photo-side { flex: 1 1 240px; display: grid; gap: 6px; min-width: 0; }

/* ---------- ปุ่มแชร์หน้าร้าน ---------- */
.pc-sharebar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pc-sharebar-label { color: var(--pc-muted); font-size: .86rem; font-weight: 600; margin-right: 2px; }
.pc-sharebar .pc-btn { display: inline-flex; align-items: center; gap: 6px; }
.pc-sharebar .is-fb { color: #1257c7; }
.pc-sharebar .is-line { color: #06873a; }
@media (max-width: 600px) {
  .pc-shop-nav { flex-wrap: wrap; }
  .pc-sharebar { justify-content: flex-start; width: 100%; }
  .pc-sharebar-label { width: 100%; }
}

/* ---------- ปักหมุดตำแหน่งในฟอร์ม ---------- */
.pc-loc-search { display: flex; gap: 8px; margin-top: 6px; }
.pc-loc-search .form-control { flex: 1; min-width: 0; }
.pc-loc-search .pc-btn { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pc-loc-results { list-style: none; margin: 6px 0 0; padding: 4px; border: 1px solid var(--pc-line); border-radius: 10px; background: #fff; max-height: 220px; overflow: auto; }
.pc-loc-results button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 8px; font-size: .9rem; line-height: 1.35; color: var(--pc-text); }
.pc-loc-results button:hover, .pc-loc-results button:focus-visible { background: var(--pc-tint); }
.pc-loc-wait { padding: 8px 10px; color: var(--pc-muted); font-size: .88rem; }
.pc-loc-map { height: 280px; margin-top: 8px; border: 1px solid var(--pc-line); border-radius: 12px; overflow: hidden; z-index: 0; }
.pc-loc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pc-loc .pc-btn { display: inline-flex; align-items: center; gap: 6px; }
.pc-loc-msg { margin: 8px 0 0; font-size: .88rem; color: var(--pc-muted); }
.pc-loc-msg.is-bad { color: #b42318; }
@media (max-width: 600px) { .pc-loc-map { height: 240px; } }

/* แตะแผนที่เพื่อบอกตำแหน่งตัวเอง */
.leaflet-container.is-picking { cursor: crosshair; box-shadow: inset 0 0 0 3px var(--pc-blue, #1a6ef5); }
.pc-toast-x { margin-left: 8px; border: 0; background: rgba(255,255,255,.18); color: inherit; border-radius: 6px; padding: 2px 8px; font-size: .85rem; }

/* ---------- เมนูสมาชิก + ข้อความแจ้ง ---------- */
.pc-menu a.pc-menu-user { display: inline-flex; align-items: center; gap: 6px; }
.pc-menu a.pc-menu-user .ic { width: 18px; height: 18px; }
.pc-flash { background: #e9f8f0; color: #0a7347; border-bottom: 1px solid #a9e2c6; padding: 9px 16px; text-align: center; font-weight: 500; font-size: .95rem; }
@media (max-width: 600px) {
  .pc-menu a.pc-menu-user span { max-width: 7.5em; overflow: hidden; text-overflow: ellipsis; }
}

/* ---------- หน้าสมาชิก ---------- */
.pc-auth { padding: 28px 16px 48px; }
.pc-auth-card { max-width: 460px; margin: 0 auto; background: #fff; border: 1px solid var(--pc-line); border-radius: var(--pc-radius); padding: 26px 26px 22px; box-shadow: var(--pc-shadow); }
.pc-auth-card h1 { font-size: 1.55rem; margin: 0 0 6px; }
.pc-auth-lead { color: var(--pc-muted); margin: 0 0 16px; }
.pc-auth-card .pc-form { margin-top: 6px; }
.pc-auth-card .pc-alert { margin: 0 0 14px; }
.pc-auth-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 14px; font-size: .93rem; }
.pc-auth-alt { text-align: center; margin: 16px 0 0; color: var(--pc-muted); }
.pc-wide { width: 100%; justify-content: center; }
.pc-pass { position: relative; }
.pc-pass .form-control { padding-right: 46px; }
.pc-pass-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--pc-muted); padding: 8px; border-radius: 8px; line-height: 0; }
.pc-pass-eye:hover { color: var(--pc-text); background: var(--pc-tint); }
.pc-pass-eye .ic { width: 20px; height: 20px; }
.pc-verify-box { border: 1px solid #f3d38b; background: #fff8e6; border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; }
.pc-verify-box p { margin: 0 0 10px; font-size: .94rem; }
.pc-auth-h2 { font-size: 1.1rem; margin: 22px 0 8px; }
.pc-my-reviews { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pc-my-reviews li { border: 1px solid var(--pc-line); border-radius: 12px; padding: 10px 12px; }
.pc-my-reviews li a { margin-right: 6px; }
.pc-my-reviews p { margin: 6px 0 0; font-size: .93rem; color: var(--pc-text); }
.pc-auth-more { border-top: 1px solid var(--pc-line); padding: 12px 0 2px; margin-top: 14px; }
.pc-auth-more summary { cursor: pointer; font-weight: 600; }
.pc-auth-more .pc-form { margin-top: 10px; }
.pc-auth-logout { margin-top: 18px; border-top: 1px solid var(--pc-line); padding-top: 16px; }
.pc-auth-logout .pc-btn { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 480px) { .pc-auth { padding: 14px 10px 32px; } .pc-auth-card { padding: 20px 16px; } }

/* ---------- ล็อกช่องทางติดต่อ ---------- */
.pc-locked { border: 1px dashed #b7c8e2; background: var(--pc-tint); border-radius: 12px; padding: 12px 14px; }
.pc-locked p { margin: 0 0 10px; font-size: .94rem; line-height: 1.55; }
.pc-locked p .ic, .pc-locked-inline .ic { width: 18px; height: 18px; flex: none; vertical-align: -3px; margin-right: 6px; color: var(--pc-blue-dark); }
.pc-locked .pc-actions { margin: 0; }
.pc-locked-inline { margin: 10px 0; color: var(--pc-muted); line-height: 1.6; }

/* ---------- ดาว ---------- */
.pc-stars { position: relative; display: inline-block; color: #d3dbe7; letter-spacing: 1px; line-height: 1; font-size: 1.05rem; white-space: nowrap; vertical-align: middle; }
.pc-stars-on { position: absolute; left: 0; top: 0; overflow: hidden; color: #f5a524; }
.pc-stars.is-sm { font-size: .86rem; }
.pc-item-rating { margin-left: 6px; font-size: .82rem; font-weight: 500; color: var(--pc-muted); white-space: nowrap; }
.pc-item-rating b { color: #b76e00; font-weight: 700; }
.pc-shop-rating { display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 6px; text-decoration: none; color: var(--pc-text); }
.pc-shop-rating b { font-size: 1.05rem; }
.pc-shop-rating span { color: var(--pc-muted); font-size: .92rem; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- รีวิว ---------- */
.pc-rv-sum { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.pc-rv-big { display: grid; justify-items: center; gap: 4px; min-width: 110px; }
.pc-rv-big b { font-size: 2.4rem; line-height: 1; font-family: Anuphan, sans-serif; }
.pc-rv-big span { color: var(--pc-muted); font-size: .88rem; }
.pc-rv-dist { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 200px; display: grid; gap: 4px; }
.pc-rv-dist li { display: grid; grid-template-columns: 30px 1fr 28px; align-items: center; gap: 8px; font-size: .84rem; color: var(--pc-muted); }
.pc-rv-dist i { display: block; height: 8px; background: #edf1f7; border-radius: 99px; overflow: hidden; }
.pc-rv-dist em { display: block; height: 100%; background: #f5a524; border-radius: 99px; }
.pc-rv-form { border: 1px solid var(--pc-line); border-radius: 12px; padding: 12px 14px; margin: 10px 0 6px; background: #fbfdff; }
.pc-rv-form-title { font-weight: 600; margin: 0 0 4px; }
.pc-rate { display: inline-flex; flex-direction: row-reverse; border: 0; padding: 0; margin: 0 0 8px; }
.pc-rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pc-rate label { font-size: 2rem; line-height: 1; color: #d3dbe7; cursor: pointer; padding: 0 3px; transition: color .1s, transform .1s; }
.pc-rate label:hover, .pc-rate label:hover ~ label, .pc-rate input:checked ~ label { color: #f5a524; }
.pc-rate input:focus-visible + label { outline: 2px solid var(--pc-blue); outline-offset: 2px; border-radius: 6px; }
.pc-rate label:active { transform: scale(.9); }
.pc-rv-form-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.pc-rv-form-foot .pc-hint { margin: 0; }
.pc-rv-del { margin: 0 0 6px; }
.pc-linkbtn { border: 0; background: none; padding: 0; color: var(--pc-danger); font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; }
.pc-rv-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 0; }
.pc-rv { border-top: 1px solid var(--pc-line); padding: 14px 0; }
.pc-rv.is-mine { background: linear-gradient(90deg, var(--pc-tint), transparent 70%); padding-left: 10px; border-radius: 8px; }
.pc-rv-head { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.pc-rv-head .pc-ava { width: 38px; height: 38px; font-size: 1rem; border-radius: 10px; }
.pc-rv-head b { display: block; font-size: .95rem; }
.pc-rv-head time { color: var(--pc-muted); font-size: .82rem; white-space: nowrap; }
.pc-rv-body { margin: 8px 0 0; white-space: normal; overflow-wrap: anywhere; }
.pc-rv-reply { margin: 10px 0 0 48px; background: #f4f7fb; border-left: 3px solid var(--pc-blue); border-radius: 0 10px 10px 0; padding: 8px 12px; }
.pc-rv-reply b { font-size: .85rem; color: var(--pc-blue-dark); }
.pc-rv-reply p { margin: 2px 0 0; font-size: .93rem; }
.pc-rv-list.is-manage .pc-rv { border: 1px solid var(--pc-line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.pc-rv-replyform { display: grid; gap: 8px; margin-top: 10px; }
.pc-rv-replyform .pc-btn { justify-self: start; }

/* ---------- หลังบ้าน: สมาชิก / รีวิว ---------- */
.pc-muted { color: var(--pc-muted); }
.pc-admin-search { display: flex; gap: 8px; margin: 14px 0; max-width: 520px; }
.pc-admin-search .pc-btn { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pc-table-wrap { overflow-x: auto; border: 1px solid var(--pc-line); border-radius: 12px; background: #fff; }
.pc-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.pc-table th { text-align: left; font-weight: 600; color: var(--pc-muted); font-size: .82rem; padding: 10px 12px; border-bottom: 1px solid var(--pc-line); background: #f8fafd; white-space: nowrap; }
.pc-table td { padding: 10px 12px; border-bottom: 1px solid #edf1f7; vertical-align: top; }
.pc-table tr:last-child td { border-bottom: 0; }
.pc-table tr.is-off td { opacity: .6; }
.pc-table small { color: var(--pc-muted); }
.pc-table-act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pc-admin-acts { display: flex; gap: 6px; margin-top: 10px; }
.pc-tabs-sub { margin: 12px 0; }
.pc-maillog { list-style: none; padding: 0; margin: 0; font-size: .86rem; display: grid; gap: 4px; }
.pc-maillog li.is-bad b { color: var(--pc-danger); }
.pc-testmail { margin-top: 18px; }

/* ---------- หลังบ้าน: ภาพรวม / ตัวเลข / ตาราง ---------- */
.pc-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 14px 0 18px; }
.pc-stat { display: grid; gap: 2px; padding: 12px 14px; background: #fff; border: 1px solid var(--pc-line); border-radius: 12px; color: var(--pc-text); text-decoration: none; }
.pc-stat b { font-size: 1.6rem; line-height: 1.1; font-family: Anuphan, sans-serif; }
.pc-stat span { color: var(--pc-muted); font-size: .86rem; }
a.pc-stat:hover { border-color: var(--pc-blue); }
.pc-stat.is-warn { border-color: #f3c46b; background: #fff8e6; }
.pc-stat.is-warn b { color: #9a5b00; }
.pc-badge { display: inline-block; min-width: 20px; margin-left: 6px; padding: 1px 7px; border-radius: 99px; background: #e5484d; color: #fff; font-size: .75rem; line-height: 1.5; text-align: center; vertical-align: 1px; }
.pc-admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; align-items: start; }
.pc-rows { list-style: none; margin: 0; padding: 0; }
.pc-rows li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #edf1f7; font-size: .93rem; }
.pc-rows li:last-child { border-bottom: 0; }
.pc-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pc-checks li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; }
.pc-checks li b { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; color: #fff; background: var(--pc-open, #17a34a); }
.pc-checks li.is-bad b { background: #e5484d; }
.pc-checks li.is-warn b { background: #f0a020; }
.pc-checks li.is-info b { background: var(--pc-blue); }
.pc-demo-panel { margin-top: 14px; }
.pc-subtabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 14px; }
.pc-subtabs a { padding: 6px 12px; border: 1px solid var(--pc-line); border-radius: 99px; color: var(--pc-muted); text-decoration: none; font-size: .9rem; background: #fff; }
.pc-subtabs a.active { border-color: var(--pc-blue); color: var(--pc-blue-dark); background: var(--pc-tint); font-weight: 600; }
.pc-admin-card { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; }
.pc-admin-photo { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--pc-line); }
.pc-pkg-table { display: grid; gap: 8px; }
.pc-pkg-head, .pc-pkg-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(70px, 1fr) minmax(80px, 1fr); gap: 8px; align-items: center; }
.pc-pkg-head { color: var(--pc-muted); font-size: .84rem; font-weight: 600; }
.pc-img-list { display: grid; gap: 14px; }
.pc-img-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px; background: #fff; border: 1px solid var(--pc-line); border-radius: 12px; }
.pc-img-prev { width: 140px; height: 90px; border: 1px solid var(--pc-line); border-radius: 10px; background: #f6f8fb center / contain no-repeat; display: grid; place-items: center; overflow: hidden; }
.pc-img-prev img { max-width: 100%; max-height: 100%; }
.pc-img-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
@media (max-width: 600px) {
  .pc-img-row { grid-template-columns: 1fr; }
  .pc-admin-item { grid-template-columns: 1fr; }
}
.pc-checks li small { display: block; color: var(--pc-muted); font-size: .85rem; }

/* ---------- CAPTCHA หน้าเข้าหลังบ้าน ---------- */
.pc-captcha { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.pc-captcha img { border: 1px solid var(--pc-line); border-radius: 10px; background: #f4f8fe; }
.pc-captcha-input { max-width: 200px; font-size: 1.25rem; letter-spacing: .35em; font-variant-numeric: tabular-nums; }
.pc-lockbox { line-height: 1.7; }
.pc-lockbox span { font-weight: 700; font-variant-numeric: tabular-nums; }

/* =========================================================
   รอบ 2 — หน้าแรก: หัวเรื่อง, แถบค้นหา, แผงตัวกรอง, สลับรายการ/แผนที่
   ========================================================= */
.pc-hero { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pc-hero h1 { font-size: 1.2rem; font-weight: 700; margin: 0 0 2px; line-height: 1.3; }
.pc-hero p { margin: 0; color: var(--pc-muted); font-size: .88rem; }
.pc-hero b { color: var(--pc-text); }

/* คอม: แถวเดียว ไม่ล้นลงบรรทัดสอง */
.pc-bar-in { flex-wrap: nowrap; }
.pc-search { flex: 1 1 220px; max-width: 340px; }
.pc-near .ic { width: 1.1em; height: 1.1em; }
.pc-fbtn { display: none; }
.pc-fpanel { display: contents; }
.pc-fpanel-head, .pc-fpanel-foot, .pc-fgroup-title { display: none; }
.pc-fgroup-flags { display: contents; }
.pc-fgroup-flags::before { content: ''; width: 1px; height: 24px; background: var(--pc-line); flex: none; margin: 0 2px; }
.pc-svcbtn i { font-style: normal; font-size: .75em; color: var(--pc-muted); margin-left: 1px; }
.pc-svcbtn.is-on { background: var(--pc-tint); border-color: var(--pc-blue); color: var(--pc-blue-dark); }
.pc-svcbtn.is-on .ic { color: var(--pc-blue-dark); }
.pc-fcount { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--pc-blue); color: #fff; font-size: .74rem; font-weight: 700; display: inline-grid; place-items: center; line-height: 1; }
.pc-fgroup-svc {
  display: none; position: absolute; top: calc(100% + 6px); left: 24px; z-index: 1100; width: 330px;
  flex-wrap: wrap; gap: 8px; padding: 14px; background: #fff; border: 1px solid var(--pc-line); border-radius: 14px;
  box-shadow: 0 14px 34px rgba(16, 35, 63, .16);
}
.pc-bar.is-svc-open .pc-fgroup-svc { display: flex; }
.pc-bar.is-svc-open .pc-fgroup-svc .pc-fgroup-title { display: block; width: 100%; margin: 0 0 2px; font-size: .82rem; color: var(--pc-muted); font-weight: 600; }
.pc-fscrim { display: none; }
.pc-viewbtn { display: none; }
.pc-mapcard[hidden] { display: none !important; }

/* หมุดแผนที่: สีบอกสถานะ ไอคอนบอกประเภท */
.pc-pin { width: 40px; height: 40px; }
.pc-pin .ic { width: 19px; height: 19px; color: #fff; }
.pc-pin.is-featured { width: 50px; height: 50px; }
.pc-pin.is-featured .ic { width: 23px; height: 23px; }
.pc-legend { flex-wrap: wrap; }

/* การ์ดร้านในลิสต์: ชื่อไม่ตัดกลางคำ ป้ายไม่ล้น */
.pc-item-name { overflow-wrap: break-word; word-break: normal; }
.pc-item-tags { flex-wrap: wrap; white-space: normal; overflow: visible; row-gap: 4px; }
.pc-item-meta { white-space: normal; }
.pc-item-rating { display: inline-flex; align-items: center; gap: 3px; font-size: .76rem; padding: 0 7px; border-radius: 4px; background: #fff6df; color: #8a5a00; line-height: 1.7; flex: none; font-family: var(--pc-font-body); }
.pc-item-rating b { font-weight: 700; }
.pc-item-rating small { color: #a07a2a; font-size: .95em; }

/* =========================================================
   มือถือ/แท็บเล็ต
   ========================================================= */
@media (max-width: 900px) {
  .pc-hero { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; padding: 12px 14px 2px; background: #f7fbff; }
  .pc-bar-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; overflow: visible; padding: 8px 14px 10px; }
  .pc-search { max-width: none; width: 100%; }
  .pc-prov { max-width: none; width: 100%; }
  .pc-fbtn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 10px;
    border: 1.5px solid var(--pc-line); background: #fff; color: var(--pc-text); font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; white-space: nowrap;
  }
  .pc-fbtn .ic { color: var(--pc-muted); }
  .pc-fbtn.is-on { border-color: var(--pc-blue); color: var(--pc-blue-dark); background: var(--pc-tint); }
  .pc-svcbtn, .pc-fgroup-flags::before { display: none; }
  /* แผงตัวกรองเป็นแผ่นเลื่อนขึ้นจากล่างจอ */
  .pc-fpanel {
    display: grid; gap: 16px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1300;
    background: #fff; border-radius: 18px 18px 0 0; padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
    box-shadow: 0 -12px 40px rgba(16, 35, 63, .22); max-height: 82vh; overflow-y: auto;
    transform: translateY(105%); visibility: hidden; transition: transform .22s ease, visibility 0s .22s;
  }
  body.pc-fopen .pc-fpanel { transform: none; visibility: visible; transition: transform .22s ease; }
  .pc-fpanel-head { display: flex; align-items: center; justify-content: space-between; }
  .pc-fpanel-head b { font-family: var(--pc-font-display); font-size: 1.15rem; }
  .pc-fgroup, .pc-fgroup-flags, .pc-fgroup-svc { display: flex; flex-wrap: wrap; gap: 8px; position: static; width: auto; padding: 0; border: 0; box-shadow: none; }
  .pc-fgroup-title { display: block; width: 100%; margin: 0; font-size: .85rem; color: var(--pc-muted); font-weight: 600; }
  .pc-fpanel .pc-fchip { height: 40px; padding: 0 14px; font-size: .95rem; }
  .pc-fpanel-foot { display: grid; grid-template-columns: auto 1fr; gap: 10px; position: sticky; bottom: 0; background: #fff; padding-top: 4px; }
  .pc-fpanel-foot .pc-btn { justify-content: center; padding: 11px 16px; }
  body.pc-fopen .pc-bar { z-index: 1400; }
  .pc-fscrim { display: block; position: fixed; inset: 0; z-index: 1250; background: rgba(8, 18, 36, .42); }
  .pc-fscrim[hidden] { display: none; }

  /* สลับ รายการ / แผนที่ */
  .pc-mapwrap { display: none; }
  body.pc-view-map .pc-mapwrap { display: block; height: calc(100vh - var(--pc-map-top, 120px)); height: calc(100svh - var(--pc-map-top, 120px)); min-height: 320px; }
  body.pc-view-map .pc-side, body.pc-view-map .pc-hero, body.pc-view-map .pc-footer { display: none; }
  .pc-viewbtn {
    display: inline-flex; align-items: center; gap: 8px; position: fixed; left: 50%; transform: translateX(-50%);
    bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 1200; height: 46px; padding: 0 20px; border-radius: 99px; border: 0;
    background: var(--pc-text); color: #fff; font: inherit; font-weight: 600; font-size: .98rem; box-shadow: 0 8px 22px rgba(16, 35, 63, .35); cursor: pointer;
  }
  .pc-viewbtn .ic { width: 18px; height: 18px; }
  body.pc-fopen .pc-viewbtn { display: none; }
  /* หน้าแผนที่: ปุ่ม "ดูรายการ" อยู่ล่างกลางจอ นิ้วโป้งกดถึงง่าย · ซ่อนตอนการ์ดร้านเปิด */
  body.pc-view-map .pc-viewbtn { background: #fff; color: var(--pc-text); border: 1.5px solid var(--pc-line); box-shadow: 0 8px 24px rgba(16, 35, 63, .22); }
  body.pc-view-map .pc-viewbtn .ic { color: var(--pc-blue); }
  body.pc-mc-open .pc-viewbtn { display: none; }
  body.pc-view-map { overflow: hidden; }
  body.pc-view-map .pc-legend { top: 12px; left: 10px; }
  .pc-side { padding-bottom: 90px; }
  /* การ์ดร้านบนแผนที่ (แตะหมุดแล้วขึ้น) */
  .pc-mapcard {
    position: absolute; left: 10px; right: 10px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 900;
    background: #fff; border-radius: 14px; padding: 12px; box-shadow: 0 10px 30px rgba(16, 35, 63, .28); display: grid; gap: 10px;
  }
  .pc-mapcard .pc-x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; }
  .pc-mapcard-main { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding-right: 26px; }
  .pc-mapcard .pc-ava { width: 44px; height: 44px; }
  .pc-mapcard .pc-actions { display: grid; grid-template-columns: 1fr auto; }
  .pc-mapcard .pc-actions .pc-btn { justify-content: center; }
  .pc-locate { bottom: auto; top: 60px; right: 12px; width: 40px; height: 40px; }
  .pc-mapwrap .leaflet-control-zoom { display: none; }
  body.pc-view-map .pc-toast { top: 108px; }
  body.pc-view-map .leaflet-bottom.leaflet-right { margin-bottom: 0; }
}
@media (max-width: 480px) {
  .pc-hero h1 { font-size: 1.08rem; }
  .pc-item-main { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .pc-ava { width: 40px; height: 40px; }
  .pc-item.is-featured .pc-item-main { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .pc-item.is-featured .pc-ava-lg { width: 48px; height: 48px; }
  .pc-item.is-featured .pc-item-name { padding-right: 0; }
  .pc-num b { font-size: 1.35rem; }
}

/* =========================================================
   รอบ 2 — หน้าร้าน
   ========================================================= */
.pc-share-panel .pc-sharebar { justify-content: flex-start; }
.pc-share-panel .pc-hint { margin: -4px 0 10px; }
.pc-hours-now { display: grid; gap: 1px; margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #eef1f5; }
.pc-hours-now b { font-family: var(--pc-font-display); font-size: 1.05rem; }
.pc-hours-now span { font-size: .9rem; color: var(--pc-muted); }
.pc-hours-now.is-open { background: #e5f6ed; }
.pc-hours-now.is-open b { color: #0a7a4c; }
.pc-hours-now.is-urgent { background: #fff1e6; }
.pc-hours-now.is-urgent b { color: #c24a07; }
.pc-hours-sum { display: grid; gap: 8px; margin: 0; }
.pc-hours-sum div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid #edf2f8; }
.pc-hours-sum div:last-child { border-bottom: 0; padding-bottom: 0; }
.pc-hours-sum dt { color: var(--pc-muted); font-weight: 500; font-size: .92rem; }
.pc-hours-sum dd { margin: 0; font-weight: 600; text-align: right; }
.pc-hours-more { margin-top: 10px; font-size: .9rem; }
.pc-hours-more summary { color: var(--pc-blue); cursor: pointer; }
.pc-hours-more .pc-hours-list { margin-top: 6px; }
.pc-dock { display: none; }
@media (max-width: 900px) {
  /* ข้อมูลสำคัญขึ้นก่อน: ติดต่อ → เวลา → แผนที่ → ที่เหลือ → รีวิว → แชร์ */
  .pc-shop-grid { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
  .pc-shop-main, .pc-shop-side { display: contents; }
  .pc-shop-grid > * > * { order: 3; }
  .pc-shop-grid .pc-contact-panel { order: 1; }
  .pc-shop-grid .pc-hours-panel { order: 2; }
  .pc-shop-grid .pc-panel-map { order: 4; }
  .pc-shop-grid .pc-reviews { order: 5; }
  .pc-shop-grid .pc-share-panel { order: 6; }
}
@media (max-width: 760px) {
  .pc-dock {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--pc-line);
    box-shadow: 0 -6px 20px rgba(16, 35, 63, .1); backdrop-filter: blur(6px);
  }
  .pc-dock .pc-btn { justify-content: center; padding: 11px 10px; font-size: 1rem; display: inline-flex; align-items: center; gap: 6px; }
  body:has(.pc-dock) .pc-footer { padding-bottom: 96px; }
}

/* =========================================================
   รอบ 2 — ฟอร์มลงทะเบียน / แก้ข้อมูลร้าน
   ========================================================= */
.pc-label { font-size: .9rem; color: var(--pc-muted); font-weight: 500; display: block; }
.pc-label small { font-weight: 400; color: #8a97ab; margin-left: 4px; }
/* ปุ่มเลือกรูปภาษาไทย */
.pc-file { position: relative; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; cursor: pointer; }
.pc-file input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.pc-file-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 10px; border: 1.5px solid #b9d3fb; background: var(--pc-tint); color: var(--pc-blue-dark); font-weight: 600; white-space: nowrap; }
.pc-file-name { color: var(--pc-muted); font-size: .88rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.pc-file:hover .pc-file-btn, .pc-file:focus-within .pc-file-btn { border-color: var(--pc-blue); }
.pc-file:focus-within .pc-file-btn { outline: 3px solid rgba(26, 110, 245, .35); outline-offset: 2px; }
/* วันที่เปิด: 7 ช่องเท่ากัน เห็นชัดว่าเปิด/หยุด */
.pc-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.pc-day { position: relative; margin: 0; cursor: pointer; }
.pc-day input { position: absolute; opacity: 0; pointer-events: none; }
.pc-day span { display: grid; justify-items: center; gap: 0; padding: 8px 2px 6px; border-radius: 10px; border: 1.5px dashed #c3cfdf; background: #f6f8fb; color: #8a97ab; user-select: none; }
.pc-day b { font-family: var(--pc-font-display); font-size: 1rem; }
.pc-day small { font-size: .72rem; }
.pc-day .is-on { display: none; }
.pc-day input:checked + span { border: 1.5px solid var(--pc-blue); background: var(--pc-blue); color: #fff; }
.pc-day input:checked + span .is-on { display: inline; }
.pc-day input:checked + span .is-off { display: none; }
.pc-day input:focus-visible + span { outline: 3px solid rgba(26, 110, 245, .45); outline-offset: 2px; }
/* บริการ: มีเครื่องหมายถูกเมื่อเลือก */
.pc-chips-check .pc-chip span::before { content: '+'; display: inline-block; width: 1em; margin-right: 4px; font-weight: 700; color: #9aa9bf; }
.pc-chips-check .pc-chip input:checked + span::before { content: '✓'; color: #fff; }
/* ขั้นตอนด้านบนฟอร์ม */
.pc-steps { position: sticky; top: 0; z-index: 50; display: flex; gap: 4px; padding: 8px; margin: 0 -4px; background: rgba(243, 248, 254, .96); backdrop-filter: blur(6px); border-radius: 12px; overflow-x: auto; scrollbar-width: none; }
.pc-steps::-webkit-scrollbar { display: none; }
.pc-steps a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 6px; border-radius: 99px; color: var(--pc-muted); text-decoration: none; font-size: .88rem; font-weight: 500; white-space: nowrap; flex: none; }
.pc-steps b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #dfe7f2; color: #50607a; font-size: .8rem; }
.pc-steps a.is-active { background: #fff; color: var(--pc-text); box-shadow: 0 1px 3px rgba(16, 35, 63, .12); }
.pc-steps a.is-active b { background: var(--pc-blue); color: #fff; }
.pc-fs { scroll-margin-top: 70px; }
@media (max-width: 480px) {
  .pc-days { gap: 4px; }
  .pc-day b { font-size: .92rem; }
  .pc-steps span { display: none; }
  .pc-steps a { padding: 6px; }
  .pc-steps a.is-active span { display: inline; }
  .pc-steps a.is-active { padding-right: 12px; }
}

/* รอบ 2 — บรรทัดที่อยู่ในการ์ด: จังหวัดเป็นป้ายสีฟ้า ระยะทางเป็นป้ายสีเขียว */
.pc-item-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; }
.pc-area { color: var(--pc-muted); }
.pc-prov-tag { display: inline-flex; align-items: center; font-size: .76rem; font-weight: 600; padding: 0 8px; border-radius: 99px; background: #e3edff; color: #1650b8; line-height: 1.75; white-space: nowrap; }
.pc-dist-tag { display: inline-flex; align-items: center; gap: 3px; font-size: .76rem; font-weight: 600; padding: 0 8px; border-radius: 99px; background: #e2f5ea; color: #0b6b40; line-height: 1.75; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pc-dist-tag .ic { width: 12px; height: 12px; }
.pc-dist-tag.is-none { background: #eef1f5; color: #7b889c; font-weight: 500; }
.pc-item.is-closed .pc-prov-tag, .pc-item.is-closed .pc-dist-tag { opacity: .75; }
.pc-item-sub .pc-home-tag { margin-right: -2px; }

/* =========================================================
   ชุดแชร์ร้าน (เจ้าของร้าน / ลูกค้าแนะนำ)
   ========================================================= */
.pc-kit { background: #fff; border: 1px solid var(--pc-line); border-radius: 16px; padding: 18px 20px; margin: 18px 0; }
.pc-kit.is-owner { border-color: #b9d3fb; background: linear-gradient(180deg, #f2f7ff 0, #fff 140px); }
.pc-kit.is-wait { background: #f7f9fc; }
.pc-share-panel .pc-kit { border: 0; padding: 0; margin: 0; background: none; }
.pc-kit-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.pc-kit-head h2 { font-size: 1.15rem; margin: 0 0 3px; }
.pc-kit-head p { margin: 0; color: var(--pc-muted); font-size: .92rem; }
.pc-kit-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--pc-blue); color: #fff; }
.pc-kit-ic .ic { width: 20px; height: 20px; }
.pc-kit.is-wait .pc-kit-ic { background: #c3cfdf; }
.pc-share-panel .pc-kit-ic { width: 34px; height: 34px; border-radius: 10px; }
.pc-kit-body { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 18px; align-items: start; }
.pc-share-panel .pc-kit-body { grid-template-columns: minmax(0, 1fr); }
.pc-share-panel .pc-kit-img { display: none; }
.pc-kit-img { margin: 0; }
.pc-kit-img img { width: 100%; border-radius: 12px; border: 1px solid var(--pc-line); display: block; box-shadow: 0 6px 18px rgba(16, 35, 63, .1); }
.pc-kit-img figcaption { font-size: .8rem; color: var(--pc-muted); margin-top: 6px; }
.pc-kit-main { display: grid; gap: 10px; min-width: 0; }
.pc-kit-text { font-size: .92rem; line-height: 1.6; resize: vertical; min-height: 120px; white-space: pre-wrap; }
.pc-kit-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-kit-btns .pc-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; }
.pc-kit-btns .pc-btn[hidden] { display: none; }
.pc-kit-btns .pc-btn.btn-fb { background: #1877f2; border-color: #1877f2; color: #fff; }
.pc-kit-btns .pc-btn.btn-line { background: #06c755; border-color: #06c755; color: #fff; }
.pc-kit-btns .pc-btn.btn-fb .ic-brand, .pc-kit-btns .pc-btn.btn-line .ic-brand { filter: brightness(0) invert(1); }
.pc-kit-x { font-weight: 700; font-size: 1.05em; line-height: 1; }
.pc-kit-note { margin: 0; padding: 8px 12px; border-radius: 10px; background: #e5f6ed; color: #0b5f3a; font-size: .9rem; }
.pc-kit .pc-hint { margin: 0; font-size: .84rem; }
.pc-done-share { display: flex; gap: 8px; align-items: center; margin-top: 14px; }
.pc-shop-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pc-shop-sharelink { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; border: 1.5px solid #b9d3fb; background: var(--pc-tint); color: var(--pc-blue-dark); text-decoration: none; font-weight: 600; font-size: .9rem; }
.pc-shop-sharelink:hover { background: #dbe8ff; color: var(--pc-blue-dark); }
.pc-shop-sharelink .ic { width: 16px; height: 16px; }
@media (max-width: 760px) {
  .pc-kit { padding: 16px 14px; }
  .pc-kit-body { grid-template-columns: minmax(0, 1fr); }
  .pc-kit-img { max-width: 420px; }
  .pc-kit-btns { display: grid; grid-template-columns: 1fr 1fr; }
  .pc-kit-btns .pc-btn { justify-content: center; }
  .pc-kit-btns .pc-kit-native { grid-column: 1 / -1; padding: 11px; }
}

/* =========================================================
   SEO — หน้ารายจังหวัด, ลิงก์จังหวัด, คำถามที่พบบ่อย
   ========================================================= */
.pc-crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .9rem; color: var(--pc-muted); margin: 18px 0 8px; }
.pc-crumbs a { color: var(--pc-muted); text-decoration: none; }
.pc-crumbs a:hover { color: var(--pc-blue); }
.pc-crumbs-in { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pc-crumbs-in a { display: inline-flex; align-items: center; gap: 4px; }
.pc-crumbs-in > span { color: #a9b6c9; }
.pc-prov-page { padding-bottom: 40px; }
.pc-prov-head h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 700; margin: 0 0 8px; }
.pc-prov-head .pc-lead { margin: 0 0 6px; }
.pc-prov-intro { color: var(--pc-muted); max-width: 760px; margin: 0 0 14px; }
.pc-prov-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.pc-prov-acts .pc-btn { display: inline-flex; align-items: center; gap: 6px; }
.pc-prov-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.pc-prov-item { position: relative; display: grid; gap: 8px; background: #fff; border: 1px solid var(--pc-line); border-radius: 14px; padding: 14px; box-shadow: var(--pc-shadow); }
.pc-prov-item.is-urgent { border-left: 4px solid #f26b1d; }
.pc-prov-item.is-open { border-left: 4px solid var(--pc-open); }
.pc-prov-link { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; text-decoration: none; color: var(--pc-text); }
.pc-prov-link .pc-ava { width: 48px; height: 48px; }
.pc-prov-body { display: grid; gap: 4px; min-width: 0; }
.pc-prov-name { font-family: var(--pc-font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.pc-prov-link:hover .pc-prov-name { color: var(--pc-blue); }
.pc-prov-sub { color: var(--pc-muted); font-size: .88rem; }
.pc-prov-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pc-prov-hours { font-size: .82rem; color: var(--pc-muted); }
.pc-prov-svc, .pc-prov-price { font-size: .85rem; color: #4b5b73; }
.pc-prov-call { justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin-left: 60px; }
.pc-prov-areas, .pc-prov-others { margin-top: 28px; }
.pc-prov-areas h2, .pc-prov-others h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.pc-prov-areas p { color: var(--pc-muted); font-size: .92rem; line-height: 1.8; }
.pc-provlinks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pc-provlinks a { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 99px; background: #fff; border: 1px solid var(--pc-line); color: var(--pc-text); text-decoration: none; font-size: .9rem; }
.pc-provlinks a:hover { border-color: var(--pc-blue); color: var(--pc-blue-dark); }
.pc-provlinks small { color: var(--pc-muted); font-size: .8em; }
.pc-seo-block { margin: 18px 0 6px; }
.pc-seo-block h2 { font-size: 1.02rem; font-weight: 700; margin: 0 0 8px; }
.pc-faq details { border-top: 1px solid var(--pc-line); padding: 9px 0; }
.pc-faq details:last-child { border-bottom: 1px solid var(--pc-line); }
.pc-faq summary { cursor: pointer; font-weight: 600; font-size: .93rem; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.pc-faq summary::-webkit-details-marker { display: none; }
.pc-faq summary::after { content: '+'; color: var(--pc-muted); font-weight: 400; }
.pc-faq details[open] summary::after { content: '−'; }
.pc-faq p { margin: 6px 0 0; color: var(--pc-muted); font-size: .9rem; }
.pc-others h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pc-others-all { font-size: .9rem; font-weight: 500; text-decoration: none; }
.pc-footer-prov { font-size: .88rem; line-height: 2; }
.pc-footer-prov a { margin-right: 12px; white-space: nowrap; }
.pc-side-foot .pc-seo-block { padding: 0 4px; }

/* ---------- แผนที่คลีน + โหมดกลางวัน / กลางคืน ---------- */
.pc-theme { bottom: 140px; }
.pc-theme[hidden] { display: none; }
.pc-mapwrap .leaflet-container { background: #f8f4f0; }
.pc-mapwrap.is-night .leaflet-container { background: #141c2b; }
.pc-mapwrap.is-night { background: #141c2b; }
/* แผนที่แบบเดิม (tile ภาพ) ตอนกลางคืน: กลับสีให้มืด */
.pc-mapwrap.is-night .pc-tiles { filter: invert(1) hue-rotate(180deg) brightness(.88) contrast(.88) saturate(.35); }
.pc-mapwrap.is-night .pc-legend { background: rgba(20, 28, 43, .92); color: #c3ccd9; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.pc-mapwrap.is-night .pc-locate,
.pc-mapwrap.is-night .leaflet-control-zoom a { background: #1f2a3d; color: #dbe3ee; border-color: #2c3950; }
.pc-mapwrap.is-night .pc-locate:hover,
.pc-mapwrap.is-night .leaflet-control-zoom a:hover { background: #2a374e; }
.pc-mapwrap.is-night .leaflet-control-attribution { background: rgba(20, 28, 43, .8); color: #8d99ab; }
.pc-mapwrap.is-night .leaflet-control-attribution a { color: #a9c2ea; }
.pc-mapwrap.is-night .pc-pin.is-closed { background: #6f7b8f; }
.pc-mapwrap.is-night .pc-cluster { box-shadow: 0 0 0 5px rgba(80, 140, 255, .28), 0 2px 8px rgba(0, 0, 0, .5); }
.pc-mapwrap.is-night .pc-toast { background: #1f2a3d; color: #e6ecf4; }
@media (max-width: 900px) {
  .pc-theme { bottom: auto; top: 108px; }
}

/* ---------- หน้า "ติดต่อเรา" ---------- */
.pc-contact { padding-bottom: 40px; }
.pc-contact .pc-panel { margin-top: 18px; }
.pc-contact .pc-panel h2 { font-size: 1.12rem; font-weight: 700; margin: 0 0 10px; }
.pc-contact-ways .pc-actions { margin: 0; }
.pc-msg-form { margin-top: 18px; gap: 14px; }
.pc-msg-form h2 { margin-bottom: 0 !important; }
.pc-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pc-msg-shop { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--pc-tint); color: var(--pc-text); }
.pc-msg-shop .ic { width: 18px; height: 18px; color: var(--pc-blue-dark); flex: none; }
.pc-msg-foot { display: flex; align-items: center; gap: 14px; }
.pc-msg-foot .pc-hint { margin: 0; }
.pc-topic-hint { margin: 2px 0 0; }
.pc-sent { text-align: center; padding: 28px 20px; }
.pc-sent-ic { margin: 0 auto 8px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: #e9f8f0; color: #0a7347; }
.pc-sent-ic .ic { width: 28px; height: 28px; }
.pc-sent .pc-actions { justify-content: center; }
@media (max-width: 600px) {
  .pc-row2 { grid-template-columns: 1fr; }
  .pc-msg-foot .pc-btn { flex: 1 1 auto; justify-content: center; }
}
.pc-report { margin: 12px 0 0; font-size: .86rem; }
.pc-report a { color: var(--pc-muted); }

/* ---------- ป้ายผู้เข้าชม ---------- */
.pc-visits { display: inline-flex; align-items: center; gap: 5px; flex: none; padding: 3px 10px; border-radius: 999px; background: var(--pc-tint); color: var(--pc-muted); font-size: .8rem; white-space: nowrap; }
.pc-visits b { color: var(--pc-blue-dark); font-weight: 700; }
.pc-visits .ic { width: 14px; height: 14px; color: var(--pc-blue); }
@media (max-width: 900px) { .pc-visits { font-size: .72rem; padding: 2px 8px; margin-left: auto; } }

/* ---------- หน้าต่างติดต่อร้าน (กด "ดูเบอร์") ---------- */
body.pc-cm-open { overflow: hidden; }
.pc-cmodal { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.pc-cmodal-scrim { position: absolute; inset: 0; background: rgba(12, 22, 38, .55); }
.pc-cmodal-box { position: relative; width: min(420px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 18px; box-shadow: 0 18px 50px rgba(10, 25, 50, .35); outline: none; }
.pc-cmodal-head { display: flex; align-items: flex-start; gap: 10px; padding: 18px 18px 6px 20px; }
.pc-cmodal-head h2 { flex: 1 1 auto; margin: 0; font-size: 1.15rem; font-weight: 700; line-height: 1.35; }
.pc-cmodal-body { padding: 8px 20px 20px; }
.pc-cm-big { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--pc-blue); color: #fff; text-decoration: none; box-shadow: 0 6px 16px rgba(26, 110, 245, .3); }
.pc-cm-big:hover { color: #fff; background: var(--pc-blue-dark); }
.pc-cm-big .ic { width: 30px; height: 30px; flex: none; }
.pc-cm-big span { display: grid; line-height: 1.2; }
.pc-cm-big small { font-size: .82rem; opacity: .9; }
.pc-cm-big b { font-size: 1.55rem; letter-spacing: .02em; font-family: var(--pc-font-display); }
.pc-cm-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.pc-cm-list .pc-btn { justify-content: center; min-width: 0; }
.pc-cm-list .btn-line, .pc-cm-list .btn-fb, .pc-cm-list .btn-maps, .pc-cm-list .is-wide, .pc-cm-list .btn-main:only-child { grid-column: 1 / -1; }
.pc-cm-note { margin: 14px 0 0; font-size: .84rem; color: var(--pc-muted); }
.pc-cm-more { margin: 8px 0 0; font-size: .9rem; }
.pc-cm-msg { margin: 6px 0 0; }
.pc-cm-loading { display: flex; align-items: center; gap: 10px; margin: 8px 0 4px; color: var(--pc-muted); }
.pc-spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--pc-line); border-top-color: var(--pc-blue); animation: pc-spin .8s linear infinite; }
@keyframes pc-spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) {
  .pc-cmodal { align-items: flex-end; padding: 0; }
  .pc-cmodal-box { width: 100%; border-radius: 18px 18px 0 0; max-height: 88vh; padding-bottom: env(safe-area-inset-bottom); }
}

/* ---------- สถิติในหน้าจัดการร้าน (เจ้าของร้าน) ---------- */
.pc-owner-stats { margin: 18px 0; }
.pc-owner-stats h2 { font-size: 1.12rem; font-weight: 700; margin: 0 0 12px; }
.pc-owner-stats h2 small { font-size: .82rem; font-weight: 500; color: var(--pc-muted); margin-left: 6px; }
.pc-owner-stats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pc-owner-stats li { display: grid; gap: 2px; padding: 12px; border-radius: 12px; background: var(--pc-tint); text-align: center; }
.pc-owner-stats li b { font-family: var(--pc-font-display); font-size: 1.6rem; line-height: 1.1; color: var(--pc-blue-dark); }
.pc-owner-stats li span { font-size: .8rem; color: var(--pc-muted); }
.pc-owner-stats .pc-hint { margin: 10px 0 0; }
@media (max-width: 600px) { .pc-owner-stats ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- ร้านยังไม่มีรูป (หน้าลงทะเบียนเสร็จ / หน้าจัดการร้าน) ---------- */
.pc-err-slot:empty { display: none; }
.pc-nophoto { display: flex; gap: 14px; align-items: flex-start; margin: 18px 0; padding: 16px 18px; border-radius: 14px; border: 1.5px dashed #f0b45a; background: #fff8ec; text-align: left; }
.pc-nophoto-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #ffe7c2; color: #a35a00; }
.pc-nophoto-ic .ic { width: 24px; height: 24px; }
.pc-nophoto b { font-size: 1.04rem; }
.pc-nophoto p { margin: 2px 0 10px; color: var(--pc-muted); font-size: .92rem; }
.pc-nophoto-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pc-photo-prev.is-sm { width: 56px; height: 56px; font-size: .72rem; }
@media (max-width: 600px) { .pc-nophoto { flex-direction: column; } .pc-nophoto-row .pc-btn { flex: 1 1 auto; justify-content: center; } }

/* ร้านอื่นในจังหวัด: มีรูปร้าน (หรือตัวอักษร) ด้านซ้าย */
.pc-other { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; }
.pc-other-body { display: grid; gap: 2px; justify-items: start; min-width: 0; }
.pc-other-body b { overflow-wrap: anywhere; }
.pc-other-body .pc-st { margin-top: 4px; }

/* ---------- ลงทะเบียน: พบร้านที่อาจซ้ำ ---------- */
.pc-dup { margin: 18px 0 6px; padding: 18px 20px; border-radius: 14px; border: 1.5px solid #f0b45a; background: #fff8ec; }
.pc-dup h2 { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; font-weight: 700; margin: 0 0 4px; }
.pc-dup h2 .ic { width: 22px; height: 22px; color: #b86e00; }
.pc-dup > p { margin: 0 0 10px; }
.pc-dup-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.pc-dup-list li { padding: 9px 12px; border-radius: 10px; background: #fff; border: 1px solid #f3d29b; }
.pc-dup-list small { display: block; color: #a35a00; font-size: .8rem; }
.pc-dup-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pc-dup-ways > div { display: grid; gap: 6px; align-content: start; padding: 12px 14px; border-radius: 12px; background: #fff; }
.pc-dup-ways p { margin: 0; font-size: .88rem; color: var(--pc-muted); }
.pc-dup-ways .pc-btn { justify-self: start; }
@media (max-width: 600px) { .pc-dup-ways { grid-template-columns: 1fr; } .pc-dup-ways .pc-btn { justify-self: stretch; justify-content: center; } }
.pc-btn.is-busy { opacity: .7; pointer-events: none; }

/* ---------- หน้าติดตามเรื่อง (ticket) ---------- */
.pc-ticket { padding-bottom: 40px; }
.pc-back { margin: 14px 0 0; font-size: .9rem; }
.pc-back a { color: var(--pc-muted); text-decoration: none; }
.pc-ticket-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--pc-muted); font-size: .9rem; margin: 0 0 14px; }
.pc-tstatus { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: #eef2f7; color: #4a5568; white-space: nowrap; }
.pc-tstatus.is-new { background: #fff3dc; color: #995a00; }
.pc-tstatus.is-answered { background: #e6f1ff; color: #1557c0; }
.pc-tstatus.is-done { background: #e9f8f0; color: #0a7347; }
.pc-tstatus.is-unread { background: var(--pc-blue); color: #fff; }
.pc-ticket-saved { margin-bottom: 16px; border-color: #bfe3cf; background: #f2fbf6; }
.pc-ticket-saved b { display: flex; align-items: center; gap: 6px; color: #0a7347; }
.pc-ticket-saved .ic { width: 18px; height: 18px; }
.pc-ticket-saved p { margin: 4px 0 10px; font-size: .92rem; }
.pc-thread { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.pc-thread li { display: grid; gap: 3px; max-width: 88%; }
.pc-thread li.is-customer { justify-self: end; justify-items: end; }
.pc-thread li.is-admin { justify-self: start; }
.pc-bubble { padding: 11px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--pc-line); }
.pc-thread .is-customer .pc-bubble { background: var(--pc-blue); color: #fff; border-color: transparent; border-bottom-right-radius: 5px; }
.pc-thread .is-admin .pc-bubble { border-bottom-left-radius: 5px; }
.pc-bubble p { margin: 0; overflow-wrap: anywhere; }
.pc-thread small { color: var(--pc-muted); font-size: .78rem; }
.pc-ticket-manage { display: grid; gap: 8px; margin-top: 10px; padding: 12px; border-radius: 12px; background: #f2f7ff; border: 1px solid #cfe0fb; }
.pc-ticket-manage .pc-btn { justify-content: center; }
.pc-ticket-manage small { color: var(--pc-muted); font-size: .8rem; }
.pc-ticket-wait { margin: 0 0 14px; }
.pc-ticket-reply { gap: 10px; }
.pc-ticket-reply label { font-weight: 600; }
.pc-mytickets { margin-top: 18px; }
.pc-mytickets ul, .pc-myshop-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pc-mytickets a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--pc-line); color: inherit; text-decoration: none; }
.pc-mytickets a:hover { border-color: #b7cdf3; }
.pc-mytickets small { grid-column: 1; color: var(--pc-muted); font-size: .8rem; }
.pc-mytickets .pc-tstatus { grid-column: 2; grid-row: 1 / span 2; }

/* ---------- ร้านของฉัน ---------- */
.pc-myshop { padding-bottom: 40px; }
.pc-myshop .pc-panel { margin-top: 18px; }
.pc-myshop .pc-panel h2 { font-size: 1.12rem; font-weight: 700; margin: 0 0 10px; }
.pc-myshop-list li { display: flex; align-items: center; gap: 6px; }
.pc-myshop-go { flex: 1 1 auto; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--pc-tint); color: inherit; text-decoration: none; }
.pc-myshop-go:hover { background: #e3edfb; color: inherit; }
.pc-myshop-go .ic { width: 22px; height: 22px; color: var(--pc-blue); flex: none; }
.pc-myshop-go span { display: grid; }
.pc-myshop-go small { color: var(--pc-blue-dark); font-size: .82rem; }
.pc-myshop-empty { display: none; margin: 0; color: var(--pc-muted); font-size: .92rem; }
.pc-myshops.is-empty .pc-myshop-empty { display: block; }
.pc-forgot { gap: 12px; }
.pc-keeplink { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--pc-tint); }
.pc-keeplink summary { cursor: pointer; display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--pc-blue-dark); }
.pc-keeplink summary .ic { width: 16px; height: 16px; }
.pc-keeplink p { margin: 8px 0; font-size: .9rem; }

/* ---------- บัญชีร้านค้า ---------- */
.pc-auth { gap: 12px; max-width: 520px; }
.pc-auth h2 { margin-bottom: 0 !important; }
.pc-auth-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pc-acct-ok { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: #f2fbf6; color: #0f5132; font-size: .92rem; }
.pc-acct-ok .ic { width: 18px; height: 18px; flex: none; margin-top: 2px; color: #0a7347; }
.pc-linkacct { margin: 0 0 16px; gap: 10px; border: 1.5px solid #cfe0fb; background: #f7faff; }
.pc-linkacct h2 { display: flex; align-items: center; gap: 8px; font-size: 1.08rem; margin: 0 !important; }
.pc-linkacct h2 .ic { width: 20px; height: 20px; color: var(--pc-blue); }
.pc-verify-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; background: #fff8ec; border-color: #f3d29b; font-size: .92rem; }
.pc-ownshop-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 12px; }
.pc-ownshop-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; border: 1px solid var(--pc-line); }
.pc-ownshop-main { display: grid; gap: 4px; min-width: 0; }
.pc-ownshop-main .pc-hint { margin: 0; }
.pc-ownshop-main .pc-actions { margin-top: 4px; }
.pc-ownshops h2 small { font-size: .82rem; font-weight: 500; color: var(--pc-muted); margin-left: 6px; }
.pc-acct summary, .pc-forgot summary { cursor: pointer; font-weight: 600; }
.pc-acct form, .pc-forgot form { margin-top: 12px; gap: 10px; }
.pc-logout { margin-top: 14px; }

/* ---------- ด่านยืนยันเจ้าของร้าน (ก่อนเข้าหน้าจัดการ) ---------- */
.pc-gate-wrap { padding: 32px 0 48px; }
.pc-gate { max-width: 440px; margin: 0 auto; gap: 12px; text-align: left; box-shadow: 0 18px 50px rgba(10, 25, 50, .12); border-radius: 18px; }
.pc-gate-ic { justify-self: center; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: #e6f1ff; color: var(--pc-blue); }
.pc-gate-ic .ic { width: 28px; height: 28px; }
.pc-gate h1 { margin: 0; font-size: 1.3rem; font-weight: 700; text-align: center; }
.pc-gate-shop { margin: 0; text-align: center; color: var(--pc-muted); }
.pc-gate .btn-big { width: 100%; justify-content: center; }
.pc-gate-alt { text-align: center; margin: 0; }
