/* ChemPro Supply — storefront · mobile-first */
:root {
  --brand: #0f4c5c; --brand-2: #176b7a; --brand-soft: #e3f1f3;
  --accent: #f59e0b; --accent-2: #d97706; --accent-soft: #fff4dd;
  --bg: #f4f7f8; --card: #ffffff; --text: #15232b; --muted: #5f6f78; --line: #dfe7ea;
  --danger: #dc2626; --danger-soft: #fee2e2; --ok: #15803d; --ok-soft: #dcfce7; --warn: #b45309; --warn-soft: #fef3c7;
  --radius: 14px; --shadow: 0 1px 2px rgba(15, 35, 43, .06), 0 4px 14px rgba(15, 35, 43, .06);
  --font-head: 'Prompt', 'Sarabun', system-ui, sans-serif; --font-body: 'Sarabun', 'Prompt', system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.55; color: var(--text); background: var(--bg); overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.5rem, 2.2vw + 1rem, 2.2rem); }
h2 { font-size: clamp(1.25rem, 1.2vw + 1rem, 1.6rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 .9em; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .mono { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .03em; }
.err { color: var(--danger); } .ok { color: var(--ok); } .r { text-align: right; } .center { text-align: center; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 980px; } .wrap.narrow-sm { max-width: 640px; }
.site-main { min-height: 60vh; padding-bottom: 48px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 10px; border: 1.5px solid transparent;
  font: 500 1rem var(--font-head); cursor: pointer; transition: transform .08s, background .15s, box-shadow .15s; white-space: nowrap; text-decoration: none !important; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; } .btn-primary:hover { background: var(--brand-2); }
.btn-accent { background: var(--accent); color: #1a1a1a; box-shadow: 0 4px 14px rgba(245, 158, 11, .35); } .btn-accent:hover { background: var(--accent-2); color: #fff; }
.btn-outline { background: #fff; border-color: var(--brand); color: var(--brand); } .btn-outline:hover { background: var(--brand-soft); }
.btn-ghost { background: rgba(255, 255, 255, .14); color: inherit; border-color: rgba(255, 255, 255, .5); }
.btn-lg { min-height: 50px; padding: 12px 26px; font-size: 1.05rem; } .btn-sm { min-height: 36px; padding: 6px 14px; font-size: .9rem; }
.btn-block { width: 100%; } .btn[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; }

/* header */
.announce { background: var(--brand); color: #fff; text-align: center; font-size: .85rem; padding: 7px 16px; font-family: var(--font-head); }
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.header-row { display: grid; grid-template-columns: 1fr auto auto; grid-template-areas: "logo cart menu" "search search search" "nav nav nav"; align-items: center; gap: 8px 10px; padding-top: 10px; padding-bottom: 10px; }
.logo { grid-area: logo; display: flex; align-items: center; gap: 10px; color: var(--text); min-width: 0; }
.logo:hover { text-decoration: none; }
.logo-mark img { width: 38px; height: 38px; border-radius: 10px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.logo-text b { font: 600 1.05rem var(--font-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-text small { color: var(--muted); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.search { grid-area: search; display: flex; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.search:focus-within { border-color: var(--brand-2); }
.search input { flex: 1; min-width: 0; border: 0; padding: 10px 12px; font: inherit; outline: none; }
.search button { border: 0; background: var(--brand); color: #fff; padding: 0 14px; cursor: pointer; display: grid; place-items: center; }
.cart-btn { grid-area: cart; position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; color: var(--brand); background: var(--brand-soft); }
.cart-count { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: #1a1a1a; font: 600 .75rem var(--font-head); display: grid; place-items: center; }
.menu-btn { grid-area: menu; width: 44px; height: 44px; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; color: var(--text); display: grid; place-items: center; cursor: pointer; }
.nav { grid-area: nav; display: none; flex-direction: column; gap: 2px; padding-top: 6px; border-top: 1px solid var(--line); }
.nav.open { display: flex; }
.nav a { padding: 10px 6px; color: var(--text); font-family: var(--font-head); border-radius: 8px; }
.nav a.on { color: var(--brand); font-weight: 600; } .nav a:hover { background: var(--bg); text-decoration: none; }
.nav-phone { display: inline-flex; align-items: center; gap: 6px; color: var(--brand) !important; }
@media (min-width: 900px) {
  .header-row { grid-template-columns: auto 1fr auto auto; grid-template-areas: "logo search nav cart"; gap: 18px; }
  .menu-btn { display: none; }
  .nav { display: flex !important; flex-direction: row; gap: 4px; border: 0; padding: 0; }
  .nav a { padding: 8px 10px; white-space: nowrap; }
  .search { max-width: 480px; }
}

/* hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #1f7f8f 0%, var(--brand) 55%, #0a3540 100%); color: #fff; padding: 36px 0 44px; position: relative; overflow: hidden; }
.hero-grid { display: grid; gap: 24px; align-items: center; }
.eyebrow { display: inline-block; font: 500 .8rem var(--font-head); letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.12); padding: 6px 12px; border-radius: 99px; margin-bottom: 14px; }
.hero h1 { color: #fff; font-size: clamp(1.7rem, 3vw + 1rem, 2.8rem); max-width: 14em; }
.hero p { color: rgba(255,255,255,.85); max-width: 36em; font-size: 1.05rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.hero-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .92rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; color: #fff; } .hero-points svg { color: var(--accent); }
.hero-art { position: relative; height: 180px; display: none; }
.hero-item { position: absolute; width: 170px; height: 170px; filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); animation: float 6s ease-in-out infinite; }
.hero-item-1 { left: 5%; top: 10px; } .hero-item-2 { left: 35%; top: 60px; width: 210px; height: 210px; animation-delay: -2s; } .hero-item-3 { right: 0; top: 0; animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-12px) } }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr 1fr; } .hero-art { display: block; height: 320px; } .hero { padding: 64px 0 72px; } }
@media (prefers-reduced-motion: reduce) { .hero-item { animation: none; } }

/* sections */
.section { padding: 28px 0 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; } .section-head a { font-family: var(--font-head); font-size: .95rem; white-space: nowrap; }
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cat-card { --c: var(--brand); display: flex; flex-direction: column; gap: 2px; padding: 14px; background: var(--card); border-radius: var(--radius); border: 1.5px solid var(--line); border-left: 5px solid var(--c); color: var(--text); box-shadow: var(--shadow); transition: transform .12s, border-color .12s; }
.cat-card:hover { transform: translateY(-2px); border-color: var(--c); text-decoration: none; }
.cat-icon { font-size: 1.6rem; line-height: 1; } .cat-name { font: 600 1rem var(--font-head); } .cat-count { color: var(--muted); font-size: .82rem; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } } @media (min-width: 1000px) { .cat-grid { grid-template-columns: repeat(6, 1fr); } }

.pgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .pgrid { grid-template-columns: repeat(3, 1fr); gap: 14px; } } @media (min-width: 1000px) { .pgrid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.pcard { display: flex; flex-direction: column; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); box-shadow: var(--shadow); transition: transform .12s, border-color .12s, box-shadow .12s; min-width: 0; }
.pcard:hover { transform: translateY(-3px); border-color: var(--brand-2); box-shadow: 0 10px 24px rgba(15,35,43,.12); text-decoration: none; }
.pcard-img { position: relative; aspect-ratio: 1; background: #f8fafb; display: grid; place-items: center; padding: 10px; }
.pcard-img img { width: 100%; height: 100%; object-fit: contain; }
.tag { position: absolute; top: 8px; left: 8px; font: 500 .7rem var(--font-head); padding: 3px 8px; border-radius: 99px; }
.tag-warn { background: var(--warn-soft); color: var(--warn); } .tag-out { background: #e5e7eb; color: #374151; top: auto; bottom: 8px; }
.tag-inline { background: var(--warn-soft); color: var(--warn); padding: 1px 6px; border-radius: 99px; font-size: .75rem; }
.pcard-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.pcard-cat { font: 500 .72rem var(--font-head); }
.pcard-name { font-size: .98rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-sub { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-meta { display: flex; align-items: center; gap: 4px; margin-top: 4px; min-height: 22px; }
.chip { font: 500 .7rem var(--font-head); background: var(--brand-soft); color: var(--brand); padding: 2px 8px; border-radius: 99px; }
.ghs-mini { width: 22px; height: 22px; }
.pcard-price { margin-top: auto; padding-top: 6px; font: 600 1.05rem var(--font-head); color: var(--brand); }
.pcard-price small { font: 400 .75rem var(--font-body); color: var(--muted); }

.trust { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 28px; padding: 28px 0; }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.trust-grid b { font-family: var(--font-head); display: block; margin: 8px 0 2px; } .trust-grid p { margin: 0; color: var(--muted); font-size: .88rem; }
.trust-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
@media (min-width: 900px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.quote-banner { display: grid; gap: 16px; align-items: center; background: linear-gradient(120deg, var(--accent-soft), #fff); border: 1.5px solid #fde7b7; border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.quote-banner h2 { margin-bottom: 4px; } .quote-banner p { margin: 0; color: var(--muted); }
@media (min-width: 800px) { .quote-banner { grid-template-columns: 1fr auto; } }

/* catalog */
.crumb { font-size: .85rem; color: var(--muted); padding: 14px 0 10px; white-space: nowrap; overflow-x: auto; }
.crumb span { color: var(--text); }
.catalog { display: grid; gap: 18px; }
.cat-side { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-side h3, .cat-side .side-help { display: none; }
.cat-side a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; background: #fff; border: 1.5px solid var(--line); color: var(--text); font-size: .9rem; font-family: var(--font-head); white-space: nowrap; }
.cat-side a.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.cat-side .dot { width: 9px; height: 9px; border-radius: 50%; }
@media (min-width: 900px) {
  .catalog { grid-template-columns: 230px 1fr; align-items: start; }
  .cat-side { display: block; position: sticky; top: 84px; }
  .cat-side h3 { display: block; font-size: .95rem; margin-bottom: 8px; }
  .cat-side a { display: flex; border: 0; background: transparent; border-radius: 8px; padding: 8px 10px; margin: 0 0 2px; }
  .cat-side a.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
  .cat-side .side-help { display: block; margin-top: 18px; padding: 14px; background: var(--accent-soft); border-radius: 12px; font-size: .9rem; } .side-help p { margin: 4px 0 10px; color: var(--muted); }
}
.cat-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px; margin-bottom: 14px; }
.cat-head h1 { margin-bottom: 2px; } .cat-head p { margin: 0; }
.sort label { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
.sort select { font: inherit; padding: 8px 10px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; min-height: 40px; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 24px 0; }
.pager a, .pager span { min-width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; color: var(--text); font-family: var(--font-head); }
.pager .on { background: var(--brand); color: #fff; border-color: var(--brand); }
.empty { text-align: center; padding: 48px 16px; background: #fff; border-radius: var(--radius); border: 1.5px dashed var(--line); }
.empty-ic { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }

/* product page */
.pdp { display: grid; gap: 22px; margin-top: 6px; }
@media (min-width: 900px) { .pdp { grid-template-columns: 1fr 1.1fr; gap: 36px; } }
.pdp-img { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 24px; aspect-ratio: 1; display: grid; place-items: center; }
.pdp-img img { width: 100%; height: 100%; object-fit: contain; }
.ghs-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.ghs-row figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 84px; text-align: center; font-size: .72rem; color: var(--muted); line-height: 1.2; }
.pdp-cat { font: 500 .85rem var(--font-head); margin-bottom: 4px; }
.pdp-info h1 { margin-bottom: 2px; } .pdp-en { color: var(--muted); font-family: var(--font-head); margin-bottom: 12px; }
.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 0 0 14px; font-size: .9rem; }
.spec div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.spec dt { color: var(--muted); font-size: .75rem; } .spec dd { margin: 0; font-weight: 600; word-break: break-word; }
.buy { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.buy-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price { font: 700 1.8rem var(--font-head); color: var(--brand); } .compare { color: var(--muted); } .vat { color: var(--muted); font-size: .8rem; }
.variants { border: 0; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.variants legend { font: 500 .9rem var(--font-head); margin-bottom: 6px; }
.variant { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; }
.variant:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.variant.out { opacity: .55; cursor: not-allowed; }
.variant input { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; }
.v-label { font-weight: 600; font-family: var(--font-head); } .v-price { font-weight: 600; color: var(--brand); } .v-stock { font-size: .78rem; color: var(--ok); }
.variant.out .v-stock { color: var(--danger); }
.buy-row { display: flex; gap: 10px; align-items: stretch; }
.qty { display: inline-flex; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.qty button { width: 42px; border: 0; background: #f3f6f7; font-size: 1.2rem; cursor: pointer; color: var(--text); }
.qty input { width: 56px; border: 0; text-align: center; font: 600 1rem var(--font-head); outline: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-btn { flex: 1; }
.pdp-points { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; font-size: .9rem; color: var(--muted); }
.pdp-points li { display: flex; align-items: center; gap: 8px; } .pdp-points svg { color: var(--ok); flex: none; }
.pdp-tabs { margin: 28px 0 8px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tabs { display: flex; overflow-x: auto; border-bottom: 1.5px solid var(--line); }
.tabs button { flex: none; padding: 12px 16px; border: 0; background: none; font: 500 .95rem var(--font-head); color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1.5px; white-space: nowrap; }
.tabs button.on { color: var(--brand); border-bottom-color: var(--brand); }
.tab-panel { display: none; padding: 18px; } .tab-panel.on { display: block; }
.tab-panel p { white-space: pre-line; }
.spec-2 { margin-top: 10px; }
@media (min-width: 640px) { .spec-2 { grid-template-columns: repeat(3, 1fr); } }

/* cart & checkout */
.cart-layout, .checkout { display: grid; gap: 18px; align-items: start; }
@media (min-width: 900px) { .cart-layout, .checkout { grid-template-columns: 1fr 340px; } }
.cart-list { display: grid; gap: 10px; }
.cart-row { display: grid; grid-template-columns: 64px 1fr auto; grid-template-areas: "img info remove" "img qty line"; gap: 6px 12px; align-items: center; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 12px; }
.cart-img { grid-area: img; } .cart-img img { width: 64px; height: 64px; object-fit: contain; background: #f8fafb; border-radius: 8px; }
.cart-info { grid-area: info; min-width: 0; } .cart-name { color: var(--text); font-weight: 600; font-family: var(--font-head); }
.cart-unit { font-size: .85rem; color: var(--muted); }
.cart-qty { grid-area: qty; } .cart-qty .qty button { width: 36px; } .cart-qty .qty input { width: 48px; }
.cart-line { grid-area: line; font: 600 1.05rem var(--font-head); color: var(--brand); text-align: right; }
.cart-remove { grid-area: remove; width: 32px; height: 32px; border: 0; background: transparent; color: var(--muted); font-size: 1rem; cursor: pointer; border-radius: 8px; justify-self: end; }
.cart-remove:hover { background: var(--danger-soft); color: var(--danger); }
@media (min-width: 640px) { .cart-row { grid-template-columns: 80px 1fr auto auto auto; grid-template-areas: "img info qty line remove"; } .cart-img img { width: 80px; height: 80px; } .cart-line { min-width: 100px; } }
.summary { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); position: sticky; top: 84px; }
.sum-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; }
.sum-row.total { border-top: 1.5px solid var(--line); margin-top: 6px; padding-top: 12px; font: 600 1.15rem var(--font-head); color: var(--brand); }
.sum-hint { font-size: .82rem; color: var(--warn); background: var(--warn-soft); padding: 6px 10px; border-radius: 8px; }
.sum-items { list-style: none; padding: 0; margin: 0 0 8px; border-bottom: 1.5px solid var(--line); }
.sum-items li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: .92rem; }
.summary .btn-block { margin-top: 10px; }
.panel { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; }
.panel h3 { margin-bottom: 12px; } .panel-warn { border-color: #fde68a; background: #fffbeb; }
.grid-2 { display: grid; gap: 12px; } .grid-3 { display: grid; gap: 12px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; min-width: 0; }
.field span { font: 500 .88rem var(--font-head); }
.field input, .field textarea, .field select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; background: #fff; outline: none; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(23,107,122,.12); }
.field.has-err input, .field.has-err textarea { border-color: var(--danger); } .field em { color: var(--danger); font-style: normal; font-size: .82rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; cursor: pointer; } .check input { width: 20px; height: 20px; flex: none; accent-color: var(--brand); margin-top: 2px; }
.pay-options { display: grid; gap: 8px; }
.pay { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 12px; padding: 12px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; }
.pay:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.pay input { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; } .pay-ic { font-size: 1.4rem; }
.pay b { font-family: var(--font-head); display: block; } .pay small { color: var(--muted); } .pay-fee { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.alert { padding: 12px 14px; border-radius: 10px; margin: 12px 0; border: 1.5px solid; font-size: .95rem; }
.alert.ok { background: var(--ok-soft); border-color: #86efac; color: #14532d; } .alert.err { background: var(--danger-soft); border-color: #fca5a5; color: #7f1d1d; } .alert.warn { background: var(--warn-soft); border-color: #fcd34d; color: #78350f; }

/* order page */
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin: 10px 0 18px; flex-wrap: wrap; }
.order-no { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .04em; margin: 0; }
.status { display: inline-block; padding: 5px 12px; border-radius: 99px; font: 500 .85rem var(--font-head); background: #e5e7eb; color: #374151; white-space: nowrap; }
.st-pending_payment { background: var(--warn-soft); color: var(--warn); } .st-pending_confirm { background: #e0e7ff; color: #3730a3; } .st-paid { background: var(--ok-soft); color: var(--ok); }
.st-processing { background: #dbeafe; color: #1e40af; } .st-shipped { background: #ccfbf1; color: #115e59; } .st-done { background: var(--ok-soft); color: #14532d; } .st-cancelled { background: var(--danger-soft); color: var(--danger); }
.steps { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 4px; counter-reset: s; }
.steps li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: .72rem; color: var(--muted); position: relative; }
.steps li::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.steps li:first-child::before { display: none; }
.steps li.done::before, .steps li.cur::before { background: var(--brand); }
.step-dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2.5px solid var(--line); font: 600 .85rem var(--font-head); }
.steps li.done .step-dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.steps li.cur .step-dot { border-color: var(--accent); background: var(--accent-soft); color: var(--warn); } .steps li.cur { color: var(--text); font-weight: 600; }
@media (min-width: 640px) { .steps li { font-size: .85rem; } }
.pay-panel { border-color: #99d6e0; background: #f3fbfc; }
.pp { display: grid; gap: 16px; align-items: center; } @media (min-width: 640px) { .pp { grid-template-columns: 230px 1fr; } }
.pp-qr { background: #fff; border-radius: 12px; padding: 10px; border: 1.5px solid var(--line); max-width: 240px; margin: 0 auto; }
.pp-qr svg { width: 100%; height: auto; }
.pp-amt { font: 700 1.8rem var(--font-head); color: var(--brand); }
.bank { display: grid; gap: 6px; }
.bank-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
[data-copy] { cursor: pointer; } [data-copy]:hover { text-decoration: underline; }
.slip-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.file { display: inline-flex; align-items: center; gap: 8px; border: 1.5px dashed var(--brand-2); border-radius: 10px; padding: 10px 14px; cursor: pointer; min-height: 44px; background: #fff; }
.file input { position: absolute; width: 1px; height: 1px; opacity: 0; } .file span { font-family: var(--font-head); color: var(--brand); font-size: .92rem; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { font: 500 .8rem var(--font-head); color: var(--muted); } .table tfoot td { border: 0; padding: 6px 8px; } .table tr.total td { font: 600 1.1rem var(--font-head); color: var(--brand); }

/* misc */
.big-ic { font-size: 3rem; margin-bottom: 8px; }
.lead { font-size: 1.1rem; color: var(--muted); }
.about-stats { margin: 18px 0 22px; } .about-stats div { background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 16px; text-align: center; }
.about-stats b { display: block; font: 700 1.7rem var(--font-head); color: var(--brand); } .about-stats span { color: var(--muted); font-size: .9rem; }
.howto { padding-left: 1.2em; } .howto li { margin-bottom: 8px; }
.map-ph { min-height: 160px; background: repeating-linear-gradient(45deg, #eef3f5, #eef3f5 10px, #e5ecef 10px, #e5ecef 20px); border-radius: 12px; display: grid; place-items: center; color: var(--muted); font-family: var(--font-head); }
.site-footer { background: #0b2f38; color: #cfe3e8; padding: 36px 0 20px; margin-top: 24px; }
.footer-grid { display: grid; gap: 22px; } @media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { color: #fff; margin-bottom: 8px; } .site-footer a { display: block; color: #cfe3e8; padding: 3px 0; } .site-footer .muted { color: #9bbcc4; }
.footer-brand b { font: 600 1.1rem var(--font-head); color: #fff; } .footer-brand small { color: #9bbcc4; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid rgba(255,255,255,.12); margin-top: 24px; padding-top: 14px; font-size: .82rem; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #15232b; color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.3); z-index: 100; max-width: calc(100% - 32px); font-size: .95rem; display: flex; gap: 12px; align-items: center; }
.toast a { color: var(--accent); white-space: nowrap; font-family: var(--font-head); }
