/* หน้าเว็บลูกค้า easylab.work */
:root {
  --ground: #F3F5F6;
  --surface: #FFFFFF;
  --ink: #0F1720;
  --ink-2: #374151;
  --muted: #4B5563;
  --line: #D9DEE3;
  --line-soft: #E5E7EB;
  --accent: #C2410C;
  --accent-dark: #9A3412;
  --a: #C2410C; --a-bg: #FFEDD5; --a-ink: #9A3412; --a-tint: #FFF7ED;
  --b: #1D4ED8; --b-bg: #DBEAFE; --b-ink: #1E3A8A; --b-tint: #EFF6FF;
  --c: #0D9488; --c-bg: #CCFBF1; --c-ink: #115E59; --c-tint: #F0FDFA;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'IBM Plex Sans Thai', system-ui, sans-serif; font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--ground); }
a { color: var(--accent-dark); }
a:hover { color: #7C2D12; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: 'Chakra Petch', 'IBM Plex Sans Thai', sans-serif; line-height: 1.2; margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.mono { font-family: 'IBM Plex Mono', monospace; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
:focus-visible { outline: 2px solid #2563EB; outline-offset: 2px; }

/* ---------- หัวเว็บ ---------- */
.site-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand b { font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 22px; letter-spacing: .02em; }
.brand span { font-weight: 500; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; font-size: 15px; }
.nav a:not(.btn) { color: var(--ink-2); text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; }
.nav a.on { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }

/* ---------- ปุ่ม ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 8px; border: 1px solid transparent; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1E293B; color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: #fff; }
.btn-outline:hover { background: #F8FAFC; color: var(--ink); }
.btn-ghost-light { border-color: #64748B; color: #F8FAFC; }
.btn-ghost-light:hover { color: #fff; border-color: #CBD5E1; }
.btn-sm { min-height: 44px; padding: 0 12px; font-size: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; text-decoration: none; }

/* ---------- ป้าย ---------- */
.tag { display: inline-block; font-family: 'IBM Plex Mono', monospace; font-weight: 500; font-size: 13px; padding: 2px 10px; border-radius: 999px; }
.tag.A { background: var(--a-bg); color: var(--a-ink); }
.tag.B { background: var(--b-bg); color: var(--b-ink); }
.tag.C { background: var(--c-bg); color: var(--c-ink); }
.badge { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.badge.ok { background: #DCFCE7; color: #166534; }
.badge.warn { background: #FEF3C7; color: #92400E; }
.badge.info { background: var(--b-bg); color: var(--b-ink); }
.badge.bad { background: #FEE2E2; color: #991B1B; }

/* ---------- หน้าแรก ---------- */
.hero { background-color: var(--ink); background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 32px 32px; color: #F8FAFC; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 80px; padding-bottom: 88px; }
.hero .copy { flex: 3 1 520px; min-width: 0; }
.hero .eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 13px; letter-spacing: .12em; color: #FDBA74; text-transform: uppercase; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.15; margin: 18px 0 20px; color: #fff; }
.hero h1 em { font-style: normal; color: #FB923C; }
.hero p { font-size: 18px; color: #CBD5E1; margin: 0 0 30px; max-width: 600px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .ctas .plain { color: #CBD5E1; min-height: 46px; display: inline-flex; align-items: center; padding: 0 8px; }
.spec { flex: 2 1 340px; min-width: 0; background: #16212C; border: 1px solid #334155; border-radius: 12px; padding: 22px 26px; }
.spec .k { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .12em; color: #94A3B8; margin-bottom: 8px; }
.spec dl { margin: 0; }
.spec .row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid #263445; }
.spec .row:last-child { border-bottom: none; }
.spec dt { color: #94A3B8; }
.spec dd { margin: 0; text-align: right; }

.section { padding: 56px 0 24px; }
.section.tight { padding-top: 32px; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 22px; }
.sec-head h2 { font-size: 30px; margin-top: 10px; }
.sec-head p { margin: 6px 0 0; color: var(--muted); }

.groups { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.group { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 26px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.group.A { flex: 2 1 340px; border-top: 4px solid var(--a); }
.group.B { flex: 2 1 340px; border-top: 4px solid var(--b); }
.group.C { flex: 1 1 260px; border-top: 4px solid var(--c); }
.group h3 { font-size: 26px; }
.group .top { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.group ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 20px; }
.group.C ul { grid-template-columns: 1fr; gap: 10px; }
.group li { display: flex; gap: 10px; align-items: flex-start; }
.group li small { display: block; color: var(--muted); font-size: 14px; }
.group .more { margin-top: auto; }
.group.B .more { color: var(--b-ink); }
.group.C .more { color: var(--c-ink); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.card .ph { height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 13px; background: var(--a-tint); color: var(--a-ink); }
.card .ph.B { background: var(--b-tint); color: var(--b-ink); }
.card .ph.C { background: var(--c-tint); color: var(--c-ink); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .title { font-weight: 600; line-height: 1.4; }
.card .desc { font-size: 14px; color: var(--muted); }
.card .foot { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.price { font-family: 'Chakra Petch', sans-serif; font-weight: 600; font-size: 20px; }
.channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 6px; margin-top: 8px; }
.channels a { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 8px; border: 1px solid var(--ink); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.channels a.primary { background: var(--ink); color: #fff; }
.channels a:hover { background: #F1F5F9; color: var(--ink); }
.channels a.primary:hover { background: #1E293B; color: #fff; }

.packages { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.package { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.package .name { display: flex; align-items: center; gap: 10px; }
.package h3 { font-size: 21px; }
.package p { margin: 0; font-size: 14px; color: var(--muted); }
.package ul { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 15px; }
.package .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--muted); }
.package .foot b { font-family: 'Chakra Petch', sans-serif; font-size: 21px; color: var(--ink); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.steps .n { font-family: 'IBM Plex Mono', monospace; color: var(--accent); font-weight: 500; }
.steps b { display: block; margin: 6px 0 4px; }
.steps span { font-size: 14px; color: var(--muted); }

.split { display: flex; flex-wrap: wrap; gap: 20px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 26px; min-width: 0; }
.panel.c { background: var(--c-tint); border-color: #99F6E4; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.inline-form input { flex: 1 1 200px; }

/* ---------- หัวหน้าย่อย ---------- */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-top: 32px; padding-bottom: 28px; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.page-head h1 { font-size: clamp(30px, 4vw, 40px); margin: 10px 0 6px; }
.page-head p { margin: 0; color: var(--muted); max-width: 680px; }
.page-head .row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }

/* ---------- ร้านค้า ---------- */
.shop { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; padding-top: 32px; padding-bottom: 24px; }
.shop aside { flex: 1 1 220px; max-width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.shop aside h2 { font-family: 'IBM Plex Sans Thai', sans-serif; font-size: 16px; margin-bottom: 8px; }
.cats { display: flex; flex-direction: column; gap: 2px; }
.cats a { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; }
.cats a.on { background: var(--ink); color: #fff; }
.cats a span { font-family: 'IBM Plex Mono', monospace; font-size: 13px; }
.shop main { flex: 999 1 560px; min-width: 0; }
.note { padding: 12px 14px; border-radius: 8px; background: #F8FAFC; font-size: 14px; color: var(--muted); }
.note.warn { background: var(--a-tint); border: 1px solid #FED7AA; color: #7C2D12; }
.empty { background: var(--surface); border: 1px dashed #9CA3AF; border-radius: 12px; padding: 36px; text-align: center; color: var(--muted); }

/* ---------- ฟอร์ม ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.form-card .head { padding: 28px 28px 0; }
.form-card .head h2 { font-size: 30px; margin-bottom: 6px; }
.form-card .head p { margin: 0 0 18px; color: var(--muted); }
.form-card .inner { display: flex; flex-wrap: wrap; gap: 28px; padding: 28px; }
.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line-soft); }
.tabs button { min-height: 44px; padding: 0 18px; border: none; background: none; font: inherit; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; flex: 3 1 460px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.field.full, .full { grid-column: 1 / -1; }
.field .hint { font-weight: 400; font-size: 13px; color: var(--muted); }
input[type=text], input[type=tel], input[type=email], input[type=number], input[type=date], input[type=url], input[type=search], select, textarea {
  font: inherit; font-weight: 400; min-height: 46px; padding: 0 12px; border: 1px solid #9CA3AF; border-radius: 8px; background: #fff; color: var(--ink); width: 100%;
}
textarea { padding: 10px 12px; resize: vertical; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-2); font-weight: 400; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.choice { display: flex; flex-wrap: wrap; gap: 10px; }
.choice label { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border: 1px solid #9CA3AF; border-radius: 8px; cursor: pointer; font-weight: 600; }
.choice input { width: 18px; height: 18px; }
.choice label:has(input:checked) { border-color: var(--ink); background: #F1F5F9; }
.drop { border: 2px dashed #9CA3AF; border-radius: 12px; padding: 22px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; background: #F8FAFC; }
.drop input { font: inherit; font-size: 14px; max-width: 100%; }
.drop .list { font-size: 13px; color: var(--ink-2); }
.side-info { flex: 2 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.dark-box { background: var(--ink); color: #F8FAFC; border-radius: 12px; padding: 22px; }
.dark-box .k { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: .12em; color: #94A3B8; }
.dark-box ol { margin: 10px 0 0; padding-left: 20px; color: #E2E8F0; font-size: 14px; }
.flash { padding: 14px 18px; border-radius: 10px; margin: 16px 0; font-weight: 500; }
.flash.ok { background: #DCFCE7; color: #166534; }
.flash.error { background: #FEE2E2; color: #991B1B; }
[hidden] { display: none !important; }

/* ---------- ผลงาน ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pills a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); text-decoration: none; font-weight: 600; }
.pills a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pills a.on.A { background: var(--a-bg); border-color: var(--a); color: var(--a-ink); }
.pills a.on.B { background: var(--b-bg); border-color: var(--b); color: var(--b-ink); }
.pills a.on.C { background: var(--c-bg); border-color: var(--c); color: var(--c-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chips a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); text-decoration: none; font-size: 14px; }
.chips a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.pcard:hover { border-color: #9CA3AF; color: var(--ink); }
.pcard .ph { height: 190px; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; }
.pcard .body { padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.pcard .cat { font-size: 13px; font-weight: 500; }
.pcard .cat.A { color: var(--a-ink); } .pcard .cat.B { color: #1E40AF; } .pcard .cat.C { color: var(--c-ink); }
.pcard .t { font-weight: 600; font-size: 17px; line-height: 1.4; }
.pcard .s { font-size: 14px; color: var(--muted); }
.pcard .tags { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--muted); }
.tint-A { background: var(--a-tint); color: var(--a-ink); } .tint-B { background: var(--b-tint); color: var(--b-ink); } .tint-C { background: var(--c-tint); color: var(--c-ink); }

.detail { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; padding-top: 28px; }
.detail .media { flex: 3 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.detail .cover { border-radius: 12px; overflow: hidden; min-height: 280px; display: flex; align-items: center; justify-content: center; }
.detail .cover img { width: 100%; height: auto; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.gallery a { display: block; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.gallery img { width: 100%; height: 110px; object-fit: cover; }
.detail .info { flex: 2 1 340px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.detail .info h2 { font-family: 'IBM Plex Sans Thai', sans-serif; font-size: 16px; }
.detail .info p { margin: 4px 0 0; color: var(--ink-2); white-space: pre-line; }
.taglist { display: flex; flex-wrap: wrap; gap: 6px; }
.taglist span { font-family: 'IBM Plex Mono', monospace; font-size: 12px; padding: 3px 8px; border-radius: 6px; background: #F1F5F9; color: #334155; }

/* ---------- เช็กสถานะ ---------- */
.result { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 24px; margin-top: 20px; }
.result table { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 12px; }
.result th { text-align: left; font-weight: 500; color: var(--muted); font-size: 13px; padding: 8px; border-bottom: 1px solid var(--line); }
.result td { padding: 10px 8px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.table-wrap { overflow-x: auto; }

.prose { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 28px 32px; max-width: 820px; }
.prose h2 { font-size: 20px; margin: 22px 0 8px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }

/* ---------- ท้ายเว็บ ---------- */
.site-foot { background: var(--ink); color: #CBD5E1; margin-top: 56px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 36px; justify-content: space-between; padding-top: 44px; padding-bottom: 40px; }
.site-foot .col { flex: 1 1 200px; font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.site-foot .col.main { flex: 1 1 280px; }
.site-foot b { color: #fff; }
.site-foot .name { font-family: 'Chakra Petch', sans-serif; font-weight: 700; font-size: 22px; color: #fff; }
.site-foot a { color: #CBD5E1; }
.site-foot a:hover { color: #fff; }
.site-foot .copy { border-top: 1px solid #263445; text-align: center; padding: 16px 24px; font-size: 13px; color: #94A3B8; }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero .wrap { padding-top: 48px; padding-bottom: 56px; }
  .group, .panel, .package { padding: 20px; }
  .form-card .head, .form-card .inner { padding-left: 18px; padding-right: 18px; }
  .prose { padding: 22px 18px; }
  .spec .row { flex-direction: column; gap: 2px; }
  .spec dd { text-align: left; }
}

/* ---------- ร้านค้า: หน้าสินค้า ตะกร้า สั่งซื้อ ---------- */
.site-head .cart-link { position: relative; gap: 6px; font-weight: 600; color: var(--ink); }
.site-head .cart-link .count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.card .ph { text-decoration: none; }
a.title { color: var(--ink); text-decoration: none; }
a.title:hover { color: var(--accent-dark); text-decoration: underline; }
.card .buy { margin-top: 8px; }
.card .buy .btn { width: 100%; }
.alt-buy { font-size: 13px; color: var(--muted); text-align: center; }
.detail.product .cover { min-height: 340px; }
.ph-big { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 14px; color: var(--a-ink); }
.ptitle { font-size: clamp(24px, 3vw, 32px); }
.pline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.price.big { font-size: 32px; color: var(--accent-dark); }
.facts { list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; }
.facts li { padding-left: 18px; position: relative; }
.facts li::before { content: ''; position: absolute; left: 4px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.buybox { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.buybox .qty { width: 96px; }
.buybox .btn { flex: 1 1 140px; }
.pbody { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 24px; }
.pbody h2 { font-size: 20px; margin-bottom: 8px; }
.pbody ul { margin: 0; padding-left: 20px; color: var(--ink-2); }
.pbody ul.ticks { list-style: none; padding: 0; margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.pbody ul.ticks li { padding-left: 26px; position: relative; }
.pbody ul.ticks li::before { content: '✓'; position: absolute; left: 4px; color: var(--c); font-weight: 700; }
.checkout { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.checkout .co-main { flex: 3 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.checkout .co-main.panel { display: flex; flex-direction: column; gap: 14px; }
.checkout .co-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 8px; position: sticky; top: 16px; }
.checkout h2 { font-size: 20px; }
.btn.wide { width: 100%; margin-top: 8px; }
.sum { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.sum.total { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; font-weight: 700; font-size: 18px; }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-lines li { display: grid; grid-template-columns: 64px 1fr 80px 100px 40px; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.cart-lines .thumb { width: 64px; height: 64px; border-radius: 8px; background: var(--a-tint); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cart-lines .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-lines .what a { color: var(--ink); text-decoration: none; }
.cart-lines .amt { text-align: right; font-weight: 600; }
.cart-lines input { width: 100%; }
.cart-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding-top: 12px; }
.btn-link { background: none; border: none; padding: 0; color: var(--accent-dark); text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; min-height: 44px; }
.small { font-size: 13px; }
.problem { color: #B91C1C; font-size: 14px; font-weight: 500; }
.mini-lines { list-style: none; margin: 0 0 6px; padding: 0; font-size: 14px; }
.mini-lines li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px dashed var(--line-soft); }
.track { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.track li { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-weight: 500; font-size: 15px; }
.track li.done { background: var(--c-tint); border-color: #99F6E4; color: var(--c-ink); }
.track li.now { border-color: var(--accent); color: var(--accent-dark); box-shadow: inset 0 0 0 1px var(--accent); }
.pay h2 { font-size: 24px; margin-bottom: 12px; }
.pay-grid { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.pay .qr { width: 200px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 13px; color: var(--muted); }
.pay .qr svg { width: 200px; height: 200px; background: #fff; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.pay .bank { flex: 1 1 220px; display: flex; flex-direction: column; gap: 10px; }
.pay .bank div { display: flex; flex-direction: column; }
.pay .bank b { font-size: 18px; }
.slip-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.slip-form .field { flex: 1 1 260px; }
.lines-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.lines-table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 13px; padding: 8px; border-bottom: 1px solid var(--line); }
.lines-table td { padding: 10px 8px; border-bottom: 1px solid var(--line-soft); }
.lines-table .num { text-align: right; white-space: nowrap; }
.lines-table tfoot td { font-weight: 700; border-bottom: none; }
.doc-links { margin: 0; padding-left: 18px; font-size: 15px; }
@media (max-width: 640px) {
  .cart-lines li { grid-template-columns: 56px 1fr 72px; grid-template-areas: 'thumb what what' 'thumb qty amt' 'thumb rm rm'; }
  .cart-lines .thumb { grid-area: thumb; width: 56px; height: 56px; align-self: start; }
  .cart-lines .what { grid-area: what; }
  .cart-lines .qty { grid-area: qty; }
  .cart-lines .amt { grid-area: amt; }
  .cart-lines .btn-link { grid-area: rm; justify-self: start; min-height: 32px; }
  .checkout .co-side { position: static; }
  .track li { flex-direction: column; text-align: center; font-size: 13px; padding: 10px 6px; }
  .price.big { font-size: 28px; }
}
