/* ============================================================
   วราณิษฐ์ สติ๊กเกอร์ — Waranith Sticker & Label
   พาเลตต์สีดึงค่าจริงจากภาพงานพิมพ์ของร้าน
   เขียวป่า #233e2f • ทอง #cb9536 • ครีม #f3eade
   ============================================================ */

:root {
  --forest-950: #16281e;
  --forest-900: #1c3325;
  --forest-800: #233e2f;
  --forest-700: #2c4d3a;
  --forest-600: #386249;
  --forest-500: #43765a;
  --forest-100: #dbe4dc;
  --forest-50:  #eef2ec;

  --gold-600: #8a6620;
  --gold-500: #cb9536;
  --gold-400: #ddb15c;
  --gold-100: #f7e9cd;

  --sage: #bfc5ba;

  --bg:        #faf6ef;
  --surface:   #ffffff;
  --surface-2: #f3eade;
  --ink:       #1f2b24;
  --ink-soft:  #4a574e;
  --ink-faint: #5e6b62;
  --line:      #e8dfd0;
  --line-strong:#d5c9b5;

  --danger: #a63a2c;
  --danger-bg: #f9e8e3;
  --ok: #1f7346;
  --ok-bg: #e3f0e6;
  --warn: #7d5606;
  --warn-bg: #f9eed3;
  --info: #1c5a86;
  --info-bg: #e4eef5;

  --font-display: 'Anuphan', 'Sukhumvit Set', 'Thonburi', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans Thai', 'Sukhumvit Set', 'Thonburi', system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(35, 62, 47, .05), 0 6px 20px rgba(35, 62, 47, .07);
  --shadow-lg: 0 12px 40px rgba(35, 62, 47, .16);
  --header-bg: #fffdf9;
  --hero-ink: #ffffff;
  --link: #2c4d3a;
  --accent: #2c4d3a;
  --gold-text: #8a6620;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #121a15;
    --surface:   #1a241d;
    --surface-2: #223027;
    --ink:       #eae6dc;
    --ink-soft:  #bcc5bb;
    --ink-faint: #96a197;
    --line:      #2c3a31;
    --line-strong:#3d4d43;
    --forest-50: #1c2a22;
    --forest-100:#25362c;
    --gold-100:  #35301f;
    --danger: #ef9186;
    --ok: #63d79a;
    --warn: #eec468;
    --info: #8ac4ef;
    --danger-bg: #3a2320;
    --ok-bg:     #17301f;
    --warn-bg:   #332a12;
    --info-bg:   #142a3a;
    --header-bg: #16201a;
    --link: #6cba92;
    --accent: #6cba92;
    --gold-text: #ddb15c;
    --shadow: 0 2px 10px rgba(0,0,0,.35);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.5);
  }
}
:root[data-theme="light"] {
  --bg: #faf6ef; --surface: #ffffff; --surface-2: #f3eade;
  --ink: #1f2b24; --ink-soft: #4a574e; --ink-faint: #5e6b62;
  --line: #e8dfd0; --line-strong: #d5c9b5;
  --forest-50: #eef2ec; --forest-100: #dbe4dc; --gold-100: #f7e9cd;
  --danger: #a63a2c; --ok: #1f7346; --warn: #7d5606; --info: #1c5a86;
  --danger-bg: #f9e8e3; --ok-bg: #e3f0e6; --warn-bg: #f9eed3; --info-bg: #e4eef5;
  --header-bg: #fffdf9;
  --link: #2c4d3a; --accent: #2c4d3a; --gold-text: #8a6620;
  --shadow: 0 1px 2px rgba(35,62,47,.05), 0 6px 20px rgba(35,62,47,.07);
  --shadow-lg: 0 12px 40px rgba(35,62,47,.16);
}
:root[data-theme="dark"] {
  --bg: #121a15; --surface: #1a241d; --surface-2: #223027;
  --ink: #eae6dc; --ink-soft: #bcc5bb; --ink-faint: #96a197;
  --line: #2c3a31; --line-strong: #3d4d43;
  --forest-50: #1c2a22; --forest-100: #25362c; --gold-100: #35301f;
  --danger: #ef9186; --ok: #63d79a; --warn: #eec468; --info: #8ac4ef;
  --danger-bg: #3a2320; --ok-bg: #17301f; --warn-bg: #332a12; --info-bg: #142a3a;
  --header-bg: #16201a;
  --link: #6cba92; --accent: #6cba92; --gold-text: #ddb15c;
  --shadow: 0 2px 10px rgba(0,0,0,.35); --shadow-lg: 0 12px 40px rgba(0,0,0,.5);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
h1,h2,h3,h4 {
  font-family: var(--font-display); font-weight: 600; line-height: 1.28;
  letter-spacing: -.008em; margin: 0 0 .5em; text-wrap: balance;
}
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; }
/* ช่องติ๊กและปุ่มตัวเลือกให้ใหญ่พอสำหรับการแตะบนมือถือ */
input[type="checkbox"], input[type="radio"] {
  width: 19px; height: 19px; accent-color: var(--forest-700); cursor: pointer; flex-shrink: 0;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-size: 15px; font-weight: 500;
  border: 1px solid transparent; border-radius: 999px;
  padding: 11px 22px; cursor: pointer; line-height: 1.4; text-align: center;
  background: var(--forest-800); color: #fff;
  transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}
.btn:hover { background: var(--forest-700); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(35,62,47,.2); }
.btn:active { transform: none; box-shadow: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-gold { background: var(--gold-500); color: #2b2008; }
.btn-gold:hover { background: var(--gold-400); box-shadow: 0 6px 16px rgba(203,149,54,.35); }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--line-strong); }
.btn-outline:hover { background: var(--forest-50); border-color: var(--accent); box-shadow: none; }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { background: var(--surface-2); box-shadow: none; transform: none; }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #92291f; }
.btn-sm { padding: 7px 15px; font-size: 13.5px; }
.btn-lg { padding: 14px 30px; font-size: 16.5px; }
.btn-block { width: 100%; }

/* ---------- top bar ---------- */
.topbar {
  background: var(--forest-900); color: #cfe3da;
  font-size: 13.5px;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 12px; }
.topbar a { color: var(--gold-400); }
.topbar .tb-left { display: flex; gap: 16px; flex-wrap: wrap; }
@media (max-width: 640px) { .topbar .tb-right { display: none; } }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(6,56,43,.03);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); min-width: 0; flex-shrink: 0; }
.brand > span { min-width: 0; }
.brand-mark { width: 46px; height: 46px; flex-shrink: 0; object-fit: contain; }
.brand-name {
  font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.15;
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-sub {
  display: block; font-size: 11.5px; color: var(--gold-text); letter-spacing: .06em;
  font-family: var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.nav { display: flex; gap: 2px; margin-left: 8px; flex-wrap: nowrap; }
.nav a {
  font-family: var(--font-display); font-size: 15px; color: var(--ink-soft);
  padding: 8px 11px; border-radius: 8px; white-space: nowrap;
}
@media (max-width: 1250px) {
  .nav a { font-size: 14px; padding: 8px 8px; }
  .search-box input { width: 150px; }
}
.nav a:hover { color: var(--accent); background: var(--forest-50); }
.nav a.active { color: var(--accent); background: var(--forest-50); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.search-box { position: relative; }
.search-box input {
  width: 200px; padding: 9px 12px 9px 36px; border: 1px solid var(--line-strong);
  border-radius: 999px; font-family: inherit; font-size: 14px;
  background: var(--surface-2); color: var(--ink);
}
.search-box svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-faint); }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  background: transparent; color: var(--ink); transition: .15s;
}
.icon-btn:hover { background: var(--forest-50); color: var(--accent); }
.cart-badge {
  position: absolute; top: 2px; right: 0;
  background: var(--gold-500); color: var(--forest-950);
  font-size: 11px; font-weight: 700; min-width: 18px; height: 18px;
  border-radius: 999px; display: flex; align-items: center; justify-content: center;
  padding: 0 4px; font-family: var(--font-display);
}
.hamburger { display: none; }
@media (max-width: 900px) {
  .nav { display: none; }
  .hamburger { display: inline-flex; }
  .search-box { display: none; }
  .header-inner { gap: 8px; }
}
/* จอแคบมาก (iPhone SE) — ย่อชื่อแบรนด์ให้พอดีกับปุ่มตะกร้าและเมนู */
@media (max-width: 400px) {
  .brand-mark { width: 38px; height: 38px; }
  .brand-name { font-size: 16px; }
  .brand-sub { display: none; }
  .header-inner { min-height: 58px; }
  .icon-btn { width: 40px; height: 40px; }
  .topbar { font-size: 12.5px; }
  .topbar .tb-left { gap: 10px; }
}

/* mobile drawer */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(5,43,33,.5); z-index: 90;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 85vw); z-index: 91;
  background: var(--surface); box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform .22s ease;
  display: flex; flex-direction: column; padding: 20px; overflow-y: auto;
}
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-overlay { opacity: 1; pointer-events: auto; }
.drawer a {
  font-family: var(--font-display); font-size: 16px; color: var(--ink);
  padding: 12px 10px; border-radius: 8px; border-bottom: 1px solid var(--line);
}
.drawer a:hover { background: var(--forest-50); color: var(--accent); }
.drawer a.btn-gold, .drawer a.btn-gold:hover { color: var(--forest-950); background: var(--gold-500); }
.drawer .drawer-search { margin: 14px 0 6px; display: flex; gap: 8px; }
.drawer .drawer-search input {
  flex: 1; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--surface-2); color: var(--ink); font-family: inherit; font-size: 15px;
}

/* ---------- hero ---------- */
/* แบ่งเป็นสองฝั่ง: ข้อความบนพื้นเขียวป่า และรูปงานพิมพ์จริงที่ไม่มีฝ้าสีทับ
   เพราะภาพถ่ายชุดนี้พื้นครีมสว่าง ถ้าเอาฝ้าเขียวคลุมจะกลบรายละเอียดงานพิมพ์ */
.hero { position: relative; overflow: hidden; background: var(--forest-900); }
.hero-slide { display: none; }
.hero-slide.active { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.hero-copy {
  background: var(--forest-900); color: #fff;
  display: flex; flex-direction: column; justify-content: center;
  padding: 54px clamp(20px, 4vw, 64px) 62px;
  position: relative;
}
.hero-copy::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 0% 0%, rgba(203,149,54,.16), transparent 62%);
}
.hero-copy > * { position: relative; z-index: 1; }
.hero-media { background-size: cover; background-position: center; min-height: 400px; }
.hero-eyebrow {
  color: var(--gold-400); font-family: var(--font-display); font-size: 12.5px;
  letter-spacing: .2em; text-transform: uppercase; margin-bottom: 14px; font-weight: 600;
}
.hero-title {
  color: var(--hero-ink); font-size: clamp(28px, 3.4vw, 46px); font-weight: 600;
  line-height: 1.18; letter-spacing: -.02em; margin-bottom: 14px; max-width: 15ch;
}
.hero-sub { color: #cfdcd0; font-size: clamp(15px, 1.3vw, 17px); max-width: 42ch; margin: 0 0 26px; line-height: 1.65; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-dots {
  position: absolute; bottom: 16px; left: clamp(20px, 4vw, 64px); z-index: 3;
  display: flex; gap: 6px;
}
.hero-dots button {
  width: 34px; height: 30px; border: none; cursor: pointer; padding: 0;
  background: transparent; display: flex; align-items: center; justify-content: center;
}
.hero-dots button::after {
  content: ""; display: block; width: 26px; height: 3px; border-radius: 999px;
  background: rgba(255,255,255,.3); transition: background .2s;
}
.hero-dots button.active::after { background: var(--gold-500); }

@media (max-width: 900px) {
  .hero-slide.active { grid-template-columns: 1fr; }
  .hero-media { min-height: 240px; order: -1; }
  .hero-copy { padding: 30px 18px 46px; }
  .hero-title { max-width: none; }
  .hero-dots { left: 18px; bottom: 12px; }
}
@media (max-width: 400px) {
  .hero-media { min-height: 190px; }
}

/* ---------- USP strip ---------- */
.usp { background: var(--surface); border-bottom: 1px solid var(--line); }
.usp-item b { letter-spacing: -.005em; }
.usp .container {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 14px 16px;
}
.usp-item { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-soft); }
.usp-item svg { color: var(--gold-text); flex-shrink: 0; }
.usp-item b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 14.5px; color: var(--ink); }
@media (max-width: 800px) {
  .usp .container { grid-template-columns: repeat(2, 1fr); gap: 12px 8px; }
}

/* ---------- sections ---------- */
.section { padding: 44px 0 20px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.section-title { font-size: clamp(20px, 3vw, 27px); font-weight: 600; margin: 0; }
.section-title small {
  display: block; font-size: 12px; color: var(--gold-text); letter-spacing: .18em;
  font-weight: 600; margin-bottom: 6px; text-transform: uppercase;
}
.section-link { font-family: var(--font-display); font-size: 14px; white-space: nowrap; }

/* category chips */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cat-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 150px; padding: 18px; border-radius: var(--radius); overflow: hidden;
  color: #fff; background: linear-gradient(145deg, var(--forest-700) 0%, var(--forest-900) 100%);
  box-shadow: var(--shadow); border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cat-card::before {
  content: ""; position: absolute; right: -30px; bottom: -50px;
  width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(203,149,54,.22), transparent 68%);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat-card > * { position: relative; }
.cat-card h3 { color: #fff; font-size: 18px; margin: 0 0 2px; }
.cat-card p { margin: 0; font-size: 13px; color: #cfe3da; }
.cat-card .cat-ico {
  position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 10px;
  background: rgba(201,162,39,.18); display: flex; align-items: center; justify-content: center;
  color: var(--gold-400);
}
@media (max-width: 720px) { .cat-grid { grid-template-columns: 1fr; } .cat-card { min-height: 110px; } }

/* การ์ดแพ็กเกจใบสีทอง — ใช้ตัวอักษรสีเข้มเพื่อให้อ่านชัดบนพื้นทอง */
.cat-card-gold { color: #2b2008; }
.cat-card-gold h3 { color: #2b2008; }
.cat-card-gold p { color: #4a3a10; }
.cat-card-gold div { color: #2b2008 !important; }
.cat-card-gold::before { background: radial-gradient(circle, rgba(255,255,255,.3), transparent 68%); }


/* product grid */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .prod-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 359px) { .prod-grid { grid-template-columns: 1fr; } }

.prod-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.prod-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--line-strong); }
.prod-thumb { aspect-ratio: 4/3; background: var(--surface-2); overflow: hidden; }
.prod-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s cubic-bezier(.2,.6,.2,1);
}
.prod-card:hover .prod-thumb img { transform: scale(1.045); }
.prod-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.prod-cat { font-size: 11px; color: var(--gold-text); font-family: var(--font-display); letter-spacing: .1em; font-weight: 600; text-transform: uppercase; }
.prod-name { font-family: var(--font-display); font-weight: 500; font-size: 15.5px; line-height: 1.42; }
.prod-price { margin-top: auto; padding-top: 6px; font-family: var(--font-display); }
.prod-price .from { font-size: 12px; color: var(--ink-faint); }
.prod-price .amount { font-size: 19px; font-weight: 600; color: var(--accent); }
.prod-price .unit { font-size: 12.5px; color: var(--ink-faint); }


/* ---------- แกลเลอรีผลงานจริง ---------- */
.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 1000px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .work-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.work-item {
  margin: 0; position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface-2); box-shadow: var(--shadow);
}
.work-item img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block;
  transition: transform .45s cubic-bezier(.2,.6,.2,1);
}
.work-item:hover img { transform: scale(1.05); }
.work-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 12px 10px; font-size: 12.5px; color: #fff;
  font-family: var(--font-display); line-height: 1.35;
  background: linear-gradient(to top, rgba(22,40,30,.92), rgba(22,40,30,.72) 45%, transparent);
}

/* ---------- product detail ---------- */
.breadcrumb { font-size: 13px; color: var(--ink-faint); margin: 18px 0 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.pd-layout { display: grid; grid-template-columns: minmax(0,5fr) minmax(0,6fr); gap: 32px; padding: 12px 0 40px; }
@media (max-width: 800px) { .pd-layout { grid-template-columns: 1fr; gap: 20px; } }
.pd-gallery-main {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--surface-2); aspect-ratio: 4/3;
}
.pd-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.pd-thumbs button {
  width: 64px; height: 52px; border-radius: 8px; overflow: hidden; cursor: pointer;
  border: 2px solid var(--line); background: var(--surface-2); padding: 0;
}
.pd-thumbs button.active { border-color: var(--gold-500); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-title { font-size: clamp(21px, 3vw, 28px); font-weight: 600; margin-bottom: 4px; }
.pd-desc { color: var(--ink-soft); white-space: pre-line; }
.price-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14.5px; }
.price-table th {
  text-align: left; font-family: var(--font-display); font-weight: 500; font-size: 13px;
  color: var(--accent); background: var(--forest-50); padding: 8px 12px;
}
.price-table td { padding: 8px 12px; border-bottom: 1px solid var(--line); }
.price-table tr.hit td { background: var(--gold-100); font-weight: 600; }
.qty-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 16px 0; }
.qty-stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; }
.qty-stepper button {
  width: 44px; min-height: 44px; border: none; background: var(--surface-2); color: var(--ink);
  font-size: 19px; cursor: pointer;
}
.qty-stepper button:hover { background: var(--forest-50); color: var(--accent); }
.qty-stepper input {
  width: 74px; min-height: 44px; text-align: center; border: none; font-size: 16px;
  font-family: var(--font-display); background: var(--surface); color: var(--ink);
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
}
.pd-total {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--forest-50); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 16px; margin-bottom: 16px; font-family: var(--font-display);
}
.pd-total .sum { font-size: 24px; font-weight: 600; color: var(--accent); }
.pd-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-actions .btn { flex: 1; min-width: 160px; }
.pd-note { font-size: 13px; color: var(--ink-faint); margin-top: 14px; display: flex; gap: 8px; align-items: flex-start; }

/* ---------- cart / checkout ---------- */
.page-title { font-size: clamp(22px, 3vw, 30px); margin: 26px 0 4px; }
.page-sub { color: var(--ink-faint); margin: 0 0 22px; }
.cart-layout { display: grid; grid-template-columns: minmax(0,7fr) minmax(0,4fr); gap: 24px; align-items: start; padding-bottom: 48px; }
.cart-layout > * { min-width: 0; }
@media (max-width: 860px) { .cart-layout { grid-template-columns: 1fr; } }
.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.panel-pad { padding: 20px; }
@media (max-width: 480px) { .panel-pad { padding: 16px 14px; } }
.panel h3 { font-size: 17px; margin-bottom: 14px; }

.cart-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: none; }
.cart-item img { width: 76px; height: 62px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); flex-shrink: 0; }
.cart-item .ci-info { flex: 1; min-width: 0; }
.cart-item .ci-name { display: block; font-family: var(--font-display); font-weight: 500; font-size: 15px; color: var(--ink); }
.cart-item .ci-name:hover { color: var(--accent); }
.cart-item .ci-meta { display: block; font-size: 13px; color: var(--ink-faint); }
.cart-item .ci-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cart-item .ci-price { font-family: var(--font-display); font-weight: 600; color: var(--accent); }
/* จอแคบ: ให้ราคาและปุ่มนำออกตกลงมาอยู่บรรทัดล่าง แทนการเบียดจนล้นจอ */
@media (max-width: 480px) {
  .cart-item { flex-wrap: wrap; gap: 10px; }
  .cart-item img { width: 62px; height: 52px; }
  .cart-item .ci-right {
    width: 100%; flex-direction: row; align-items: center; justify-content: space-between;
    border-top: 1px dashed var(--line); padding-top: 8px;
  }
  .qty-stepper input { width: 62px; }
  .qty-stepper button { width: 40px; }
}
.link-danger {
  color: var(--danger); font-size: 13px; background: none; border: none; cursor: pointer;
  padding: 7px 2px; font-family: inherit; text-decoration: underline;
}

.summary-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 14.5px; }
.summary-row.total { border-top: 1px solid var(--line-strong); margin-top: 8px; padding-top: 12px; font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.summary-row.total .num { color: var(--accent); font-size: 21px; }
.summary-row .muted { color: var(--ink-faint); }
.discount-line { color: var(--ok); }

.coupon-row { display: flex; gap: 8px; margin: 10px 0 4px; }
.coupon-row input { flex: 1; min-width: 0; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-faint); }
.empty-state svg { margin: 0 auto 14px; color: var(--line-strong); }

/* forms */
.field { margin-bottom: 14px; }
.field label { display: block; font-family: var(--font-display); font-size: 13.5px; font-weight: 500; margin-bottom: 5px; color: var(--ink-soft); }
.field label .req { color: var(--danger); }
.field input, .field textarea, .field select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 15px; background: var(--surface); color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--forest-600); outline: none; box-shadow: 0 0 0 3px rgba(18,137,106,.15); }
.field .hint { font-size: 12.5px; color: var(--ink-faint); margin-top: 4px; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--danger); }
.field .err { display: none; font-size: 12.5px; color: var(--danger); margin-top: 4px; }
.field.invalid .err { display: block; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* radio cards (shipping / payment select) */
.opt-card {
  display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; margin-bottom: 10px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); cursor: pointer; transition: .12s;
  background: var(--surface);
}
.opt-card:hover { border-color: var(--forest-600); }
.opt-card.selected { border-color: var(--forest-700); background: var(--forest-50); }
.opt-card input { margin-top: 4px; accent-color: var(--forest-700); }
.opt-card .oc-body { flex: 1; min-width: 0; }
.opt-card .oc-title { display: block; font-family: var(--font-display); font-weight: 500; font-size: 15px; }
.opt-card .oc-sub { display: block; font-size: 13px; color: var(--ink-faint); line-height: 1.5; margin-top: 1px; }
.opt-card .oc-price { font-family: var(--font-display); font-weight: 600; color: var(--accent); white-space: nowrap; }

/* checkout steps */
.steps { display: flex; align-items: center; justify-content: center; gap: 0; margin: 26px auto 8px; max-width: 560px; }
.step { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; position: relative; }
.step::before {
  content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: var(--line-strong);
}
.step:first-child::before { display: none; }
.step .dot {
  width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 2px solid var(--line-strong); color: var(--ink-faint);
  font-family: var(--font-display); font-weight: 600; font-size: 14px; position: relative; z-index: 1;
}
.step.done .dot, .step.current .dot { background: var(--forest-700); border-color: var(--forest-700); color: #fff; }
.step.done::before, .step.current::before { background: var(--forest-700); }
.step span { font-size: 12px; color: var(--ink-faint); font-family: var(--font-display); }
.step.current span { color: var(--accent); font-weight: 500; }

/* ---------- payment page ---------- */
.pay-method { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; background: var(--surface); }
.pay-method-head {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer;
  background: var(--surface); font-family: var(--font-display); font-weight: 500;
}
.pay-method-head:hover { background: var(--surface-2); }
.pay-method-head .pm-ico {
  width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #fff; font-weight: 700; font-size: 13px;
  background-image: linear-gradient(rgba(0,0,0,.26), rgba(0,0,0,.26));
}
.pay-method-body { padding: 4px 16px 18px; border-top: 1px dashed var(--line); }
.qr-wrap { text-align: center; padding: 12px 0; }
.qr-wrap img.qr { width: 220px; max-width: 70vw; margin: 0 auto; border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #fff; }
.qr-caption { font-size: 13px; color: var(--ink-faint); margin-top: 8px; }
.bank-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line);
}
.bank-row:last-child { border-bottom: none; }
.bank-logo {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 12px;
  /* เคลือบสีเข้มทับสีที่ผู้ใช้เลือก เพื่อให้ตัวอักษรขาวอ่านออกเสมอ */
  background-image: linear-gradient(rgba(0,0,0,.26), rgba(0,0,0,.26));
}
.bank-info { flex: 1; min-width: 0; }
.bank-name { display: block; font-size: 13px; color: var(--ink-faint); }
.bank-acc { display: block; font-family: var(--font-display); font-weight: 600; font-size: 16.5px; letter-spacing: .03em; word-break: break-word; }
.bank-owner { display: block; font-size: 13px; color: var(--ink-soft); }
.copy-btn { font-size: 12.5px; }

.upload-zone {
  border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 26px 16px;
  text-align: center; cursor: pointer; transition: .15s; background: var(--surface-2); color: var(--ink-soft);
}
.upload-zone:hover, .upload-zone.drag { border-color: var(--forest-600); background: var(--forest-50); }
.upload-zone svg { margin: 0 auto 8px; color: var(--forest-600); }
.upload-zone .uz-hint { font-size: 12.5px; color: var(--ink-faint); }
.slip-preview { margin-top: 14px; text-align: center; }
.slip-preview img { max-width: 240px; max-height: 320px; margin: 0 auto 10px; border-radius: 10px; border: 1px solid var(--line); object-fit: contain; }

.order-box {
  background: var(--forest-50); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px; margin-bottom: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-family: var(--font-display);
}
.order-box .ob-no { font-weight: 600; color: var(--accent); }
.order-box .ob-total { font-weight: 600; font-size: 18px; color: var(--accent); }
.deadline-note { display: flex; gap: 8px; align-items: center; background: var(--warn-bg); color: var(--warn); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13.5px; margin-bottom: 16px; }

/* ---------- thank you ---------- */
.thanks-wrap { max-width: 620px; margin: 40px auto 60px; text-align: center; }
.thanks-icon {
  width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--ok-bg); color: var(--ok); display: flex; align-items: center; justify-content: center;
}
.thanks-order {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin: 22px 0; text-align: left; box-shadow: var(--shadow);
}

/* status pills */
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px;
  font-size: 12.5px; font-family: var(--font-display); font-weight: 500; white-space: nowrap;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-new { background: var(--info-bg); color: var(--info); }
.pill-review { background: var(--warn-bg); color: var(--warn); }
.pill-confirmed { background: var(--forest-100); color: var(--accent); }
.pill-shipped { background: var(--info-bg); color: var(--info); }
.pill-done { background: var(--ok-bg); color: var(--ok); }
.pill-cancelled { background: var(--danger-bg); color: var(--danger); }

/* ---------- contact / footer ---------- */
.contact-band { background: var(--forest-900); color: #cfe3da; margin-top: 40px; padding: 40px 0; }
.contact-band h2 { color: #fff; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 18px; }
.contact-card h3 { color: var(--gold-400); font-size: 15px; margin-bottom: 8px; }
.contact-card a { color: #fff; }
.contact-card p { margin: 4px 0; font-size: 14.5px; }
.footer { background: var(--forest-950); color: #9fb8ae; padding: 26px 0; font-size: 13.5px; }
.footer .container { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: center; }
.footer a { color: var(--gold-400); }
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; color: #cfe3da; transition: .15s;
}
.social-row a:hover { background: var(--gold-500); color: var(--forest-950); }

/* ---------- toast ---------- */
.toast-wrap { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); }
.toast {
  background: var(--forest-900); color: #fff; border-radius: 10px; padding: 12px 18px;
  font-family: var(--font-display); font-size: 14.5px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px; animation: toast-in .25s ease;
}
.toast.err { background: var(--danger); }
.toast svg { flex-shrink: 0; color: var(--gold-400); }
.toast.err svg { color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- ADMIN ---------- */
.admin-layout { display: flex; min-height: 100vh; background: var(--bg); }
.admin-sidebar {
  width: 232px; flex-shrink: 0; background: var(--forest-950); color: #cfe3da;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar .as-brand { display: flex; align-items: center; gap: 10px; padding: 18px 16px; border-bottom: 1px solid rgba(255,255,255,.08); color: #fff; }
.admin-sidebar .as-brand .brand-mark { width: 38px; height: 38px; }
.admin-sidebar .as-brand b { font-family: var(--font-display); font-size: 15px; font-weight: 600; display: block; line-height: 1.2; }
.admin-sidebar .as-brand small { font-size: 11px; color: var(--gold-400); }
.admin-nav { padding: 10px 8px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.admin-nav a {
  display: flex; align-items: center; gap: 10px; color: #b9cdc4; padding: 9px 12px;
  border-radius: 8px; font-family: var(--font-display); font-size: 14px;
}
.admin-nav a svg { flex-shrink: 0; opacity: .8; }
.admin-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.admin-nav a.active { background: var(--forest-700); color: #fff; }
.admin-nav .an-label { font-size: 11px; letter-spacing: .1em; color: #8aa79b; padding: 12px 12px 4px; font-family: var(--font-display); }
.admin-nav .an-badge { margin-left: auto; background: var(--gold-500); color: var(--forest-950); font-size: 11px; font-weight: 700; border-radius: 999px; padding: 0 7px; }
.admin-main { flex: 1; min-width: 0; padding: 22px 26px 60px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-head h1 { font-size: 23px; margin: 0; }
.admin-head .ah-sub { color: var(--ink-faint); font-size: 13.5px; }
.admin-topbar-mobile { display: none; }
@media (max-width: 900px) {
  .admin-layout { flex-direction: column; }
  .admin-sidebar { position: fixed; z-index: 120; height: 100vh; transform: translateX(-100%); transition: transform .22s; width: 250px; }
  body.adminnav-open .admin-sidebar { transform: none; }
  .admin-topbar-mobile {
    display: flex; align-items: center; gap: 12px; background: var(--forest-950); color: #fff;
    padding: 10px 14px; position: sticky; top: 0; z-index: 60;
  }
  .admin-topbar-mobile b { font-family: var(--font-display); font-weight: 500; }
  .admin-main { padding: 16px 14px 60px; }
}
.adminnav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 110; display: none; }
body.adminnav-open .adminnav-overlay { display: block; }

/* stat cards */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
@media (max-width: 1000px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .stat-grid { grid-template-columns: 1fr; } }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.stat-card .sc-label { font-size: 12.5px; color: var(--ink-faint); font-family: var(--font-display); }
.stat-card .sc-value { font-size: 26px; font-weight: 600; font-family: var(--font-display); color: var(--accent); margin: 2px 0; }
.stat-card .sc-value.gold { color: var(--gold-text); }
.stat-card .sc-sub { font-size: 12px; color: var(--ink-faint); }

/* tables */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.admin-table th {
  text-align: left; font-family: var(--font-display); font-weight: 500; font-size: 12.5px;
  color: var(--ink-faint); padding: 11px 14px; border-bottom: 1px solid var(--line-strong);
  background: var(--surface-2); white-space: nowrap;
}
.admin-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--forest-50); }
.admin-table .row-actions { display: flex; gap: 6px; white-space: nowrap; }
.admin-table label.tick { display: inline-flex; align-items: center; justify-content: center; padding: 6px; cursor: pointer; }
.admin-table label.tick input { width: 20px; height: 20px; }
.admin-table img.thumb { width: 52px; height: 40px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.td-main { font-family: var(--font-display); font-weight: 500; }
.td-sub { font-size: 12px; color: var(--ink-faint); }

.toolbar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.toolbar input[type=search], .toolbar select {
  padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 14px; background: var(--surface); color: var(--ink);
}
.toolbar .spacer { flex: 1; }

/* modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(5,43,33,.55); z-index: 150;
  display: none; align-items: flex-start; justify-content: center; padding: 4vh 14px; overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 640px; animation: toast-in .2s ease; margin-bottom: 4vh;
}
.modal.wide { max-width: 820px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 17px; }
.modal-body { padding: 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); }

/* image picker */
.img-pick { display: flex; gap: 10px; flex-wrap: wrap; }
.img-pick .ip-item { position: relative; width: 92px; height: 74px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line-strong); }
.img-pick .ip-item img { width: 100%; height: 100%; object-fit: cover; }
.img-pick .ip-item button {
  position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%;
  border: none; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; font-size: 11px; line-height: 1;
}
.img-pick .ip-add {
  width: 92px; height: 74px; border-radius: 8px; border: 2px dashed var(--line-strong);
  background: var(--surface-2); color: var(--ink-faint); cursor: pointer; font-size: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-family: var(--font-display);
}
.img-pick .ip-add:hover { border-color: var(--forest-600); color: var(--accent); }

/* tier editor */
.tier-row { display: grid; grid-template-columns: 1fr 1fr 38px; gap: 8px; margin-bottom: 8px; align-items: center; }
.tier-row input { padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; font-family: inherit; font-size: 14px; background: var(--surface); color: var(--ink); width: 100%; }

/* toggle switch */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .sl {
  position: absolute; inset: 0; background: var(--line-strong); border-radius: 999px; cursor: pointer; transition: .18s;
}
.switch .sl::before {
  content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: .18s; box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.switch input:checked + .sl { background: var(--forest-600); }
.switch input:checked + .sl::before { transform: translateX(20px); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.switch-row:last-child { border-bottom: none; }
.switch-row > span:first-child { min-width: 0; }
.switch-row .sw-label { display: block; font-family: var(--font-display); font-size: 14.5px; }
.switch-row .sw-sub { display: block; font-size: 12.5px; color: var(--ink-faint); }

/* login */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background:
  radial-gradient(1200px 600px at 80% -10%, rgba(201,162,39,.15), transparent),
  var(--forest-950); padding: 20px; }
.login-card { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg); width: 100%; max-width: 380px; padding: 30px 28px; }
.login-card .brand-mark { width: 96px; height: 96px; margin: 0 auto 12px; display: block; }
.login-card h1 { text-align: center; font-size: 20px; }
.login-card .login-sub { text-align: center; color: var(--ink-faint); font-size: 13.5px; margin: 0 0 20px; }

/* order detail */
.od-grid { display: grid; grid-template-columns: minmax(0,7fr) minmax(0,5fr); gap: 18px; align-items: start; }
.od-grid > * { min-width: 0; }
@media (max-width: 980px) { .od-grid { grid-template-columns: 1fr; } }
.od-slip img {
  max-width: 240px; max-height: 300px; object-fit: contain; margin: 0 auto;
  border-radius: 10px; border: 1px solid var(--line); cursor: zoom-in; background: var(--surface-2);
}
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--ink-faint); flex-shrink: 0; }
.kv .v { text-align: right; word-break: break-word; }

/* alert notes */
.note { border-radius: var(--radius-sm); padding: 12px 14px; font-size: 13.5px; margin-bottom: 14px; display: flex; gap: 10px; align-items: flex-start; }
.note svg { flex-shrink: 0; margin-top: 2px; }
.note-info { background: var(--info-bg); color: var(--info); }
.note-warn { background: var(--warn-bg); color: var(--warn); }
.note-ok { background: var(--ok-bg); color: var(--ok); }

/* ---------- print label ---------- */
.label-sheet { max-width: 620px; margin: 20px auto; }
.ship-label {
  background: #fff; color: #111; border: 2px solid #111; border-radius: 6px;
  padding: 0; margin-bottom: 18px; page-break-inside: avoid; break-inside: avoid;
  font-family: var(--font-body);
}
.ship-label .sl-head {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  border-bottom: 2px solid #111; padding: 10px 14px;
}
.ship-label .sl-shop { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.ship-label .sl-orderno { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.ship-label .sl-cod {
  background: #111; color: #fff; font-family: var(--font-display); font-weight: 700;
  padding: 2px 10px; border-radius: 4px; font-size: 14px;
}
.ship-label .sl-body { display: flex; }
.ship-label .sl-col { padding: 10px 14px; flex: 1; min-width: 0; }
.ship-label .sl-col + .sl-col { border-left: 1px solid #111; }
.ship-label .sl-role { font-size: 11px; color: #555; letter-spacing: .08em; font-family: var(--font-display); }
.ship-label .sl-name { font-weight: 700; font-size: 17px; }
.ship-label .sl-col p { margin: 2px 0; font-size: 14px; }
.ship-label .sl-foot { border-top: 1px dashed #555; padding: 8px 14px; font-size: 12.5px; color: #333; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
@media print {
  body.print-mode * { visibility: hidden; }
  body.print-mode .print-area, body.print-mode .print-area * { visibility: visible; }
  body.print-mode .print-area { position: absolute; left: 0; top: 0; width: 100%; }
  .no-print { display: none !important; }
}

/* กรอบแผนที่ — มีลายพื้นหลังรองไว้ เผื่อแผนที่ยังโหลดไม่เสร็จจะได้ไม่เห็นเป็นกล่องว่าง */
.map-frame {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--forest-50);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 42px 42px, 42px 42px;
}
.map-frame::after {
  content: "กำลังโหลดแผนที่…"; position: absolute; inset: 0; z-index: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 14px; color: var(--ink-faint);
}
.map-frame iframe { position: relative; z-index: 1; }

/* misc */
.tag { display: inline-block; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-soft); font-size: 12px; border-radius: 999px; padding: 1px 10px; font-family: var(--font-display); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.muted { color: var(--ink-faint); }
.divider { border: none; border-top: 1px solid var(--line); margin: 18px 0; }
code.inline { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; font-size: 13px; }
