/* =========================================================
   ขายข้าว — storefront
   ========================================================= */
:root {
  --bg: #FBF8F1;
  --surface: #FFFFFF;
  --tile: #F6F1E7;
  --ink: #1E2A1E;
  --ink-2: #3D4A3B;
  --muted: #6E7568;
  --line: #E8E1D1;
  --primary: #2F6B3A;
  --primary-600: #255A2F;
  --primary-50: #EAF3E8;
  --accent: #C8902A;
  --accent-600: #AE7A1C;
  --accent-50: #FBF1DD;
  --danger: #B3412F;
  --danger-50: #FBEAE6;
  --info: #2D6A8E;
  --info-50: #E6F1F7;
  --warn: #A86A12;
  --warn-50: #FCF1DC;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(30, 42, 30, .06), 0 4px 16px rgba(30, 42, 30, .06);
  --shadow-lg: 0 12px 40px rgba(30, 42, 30, .14);
  --font: "Anuphan", system-ui, -apple-system, "Segoe UI", "Noto Sans Thai", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
svg { width: 1.2em; height: 1.2em; flex: none; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.narrow-wide { max-width: 1040px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  min-height: 42px; padding: .55em 1.1em; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none !important;
  transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { border-color: #d6cdb8; }
.btn:active { transform: scale(.98); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 3px solid rgba(47, 107, 58, .35); outline-offset: 2px;
}
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); border-color: var(--primary-600); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-600); border-color: var(--accent-600); }
.btn-light { background: rgba(255,255,255,.92); border-color: transparent; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-lg { min-height: 50px; padding: .7em 1.4em; font-size: 1.05rem; }
.btn-sm { min-height: 34px; padding: .3em .8em; font-size: .875rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 4px 6px; font: inherit; font-size: .875rem; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.link-btn.danger:hover { color: var(--danger); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 241, .92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; min-width: 0; }
.brand-logo { display: block; width: 228px; height: auto; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text b { font-size: 1.2rem; }
.brand-text small { color: var(--muted); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search { flex: 1; display: flex; min-width: 0; max-width: 520px; margin-left: auto; position: relative; }
.search input {
  width: 100%; height: 44px; padding: 0 48px 0 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); font: inherit;
}
.search button {
  position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: var(--primary); color: #fff; display: grid; place-items: center; cursor: pointer;
}
.header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.hdr-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.hdr-link:hover { background: var(--tile); text-decoration: none; }
.cart-btn { position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; }
.cart-btn:hover { background: var(--primary-600); }
.cart-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: -3px; right: -3px; min-width: 21px; height: 21px; padding: 0 5px;
  border-radius: 999px; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700;
  display: grid; place-items: center; border: 2px solid var(--bg);
}
.cart-count.bump { animation: bump .4s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }

@media (max-width: 760px) {
  .header-row { flex-wrap: wrap; gap: 10px; padding-top: 10px; padding-bottom: 10px; min-height: 0; }
  .site-header .brand { flex: 0 1 calc(100% - 106px); max-width: 176px; }
  .brand-logo { width: 100%; }
  .brand-text small { display: none; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .search input { height: 42px; }
  .header-actions { margin-left: auto; }
  .hdr-link span { display: none; }
  .hdr-link { width: 44px; height: 44px; padding: 0; justify-content: center; background: var(--tile); }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--ink);
  background: linear-gradient(120deg, #F3EAD3, #EAF3E8);
}
.hero.has-img { background: #2b2618 var(--hero) center / cover no-repeat; color: #fff; }
.hero.has-img::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20, 26, 16, .82) 0%, rgba(20, 26, 16, .55) 45%, rgba(20, 26, 16, 0) 80%);
}
.hero-inner { position: relative; padding: 72px 16px 80px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); margin-bottom: .35em; letter-spacing: -.01em; }
.hero .eyebrow { display: inline-block; padding: 4px 12px; border-radius: 999px; background: rgba(200, 144, 42, .9); color: #fff; font-size: .85rem; font-weight: 600; margin-bottom: 14px; }
.hero-sub { max-width: 520px; font-size: 1.08rem; opacity: .92; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
@media (max-width: 760px) {
  .hero-inner { padding: 44px 16px 52px; }
  .hero.has-img::before { background: linear-gradient(180deg, rgba(20, 26, 16, .78), rgba(20, 26, 16, .6)); }
}

.perks {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-top: -32px; position: relative; z-index: 2;
}
.perk {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
}
.perk svg { width: 38px; height: 38px; padding: 8px; border-radius: 12px; background: var(--primary-50); color: var(--primary); }
.perk b { display: block; font-size: .98rem; }
.perk span { font-size: .85rem; color: var(--muted); }
@media (max-width: 760px) {
  .perks { grid-template-columns: 1fr; margin-top: -24px; gap: 8px; }
  .perk { padding: 12px 14px; }
}

/* ---------- product listing ---------- */
.shop-section { padding: 28px 16px 40px; }
.container.shop-section { padding-left: 16px; padding-right: 16px; }
.cat-strip {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; margin: 0 -2px;
  scrollbar-width: thin; scroll-snap-type: x proximity;
}
.cat-tile {
  flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 16px 8px 8px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); font-weight: 500; white-space: nowrap; scroll-snap-align: start;
}
.cat-tile:hover { text-decoration: none; border-color: #d6cdb8; }
.cat-tile.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.cat-ico { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--tile); font-size: 1.05rem; }
.cat-tile.active .cat-ico { background: rgba(255,255,255,.18); }

.list-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 14px 0 6px; }
.list-head h2 { margin: 0; font-size: 1.45rem; }
.list-head p { margin: 0; }
.sort { display: flex; align-items: center; gap: 8px; }
select, .sort select {
  height: 40px; padding: 0 34px 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='none' stroke='%236E7568' stroke-width='2' d='m1 1 5 5 5-5'/%3E%3C/svg%3E") right 12px center no-repeat;
  font: inherit; appearance: none; color: var(--ink);
}
.brand-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
  background: var(--tile); color: var(--ink-2); font-size: .875rem; font-weight: 500; border: 1px solid transparent;
}
.chip span { font-size: .75rem; color: var(--muted); }
.chip:hover { text-decoration: none; border-color: var(--line); }
.chip.active { background: var(--ink); color: #fff; }
.chip.active span { color: rgba(255,255,255,.7); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
@media (max-width: 560px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.product-card { display: flex; flex-direction: column; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.pc-media { position: relative; display: block; aspect-ratio: 1; background: var(--tile); }
.pc-media img { width: 100%; height: 100%; object-fit: cover; }
.pc-ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 3.5rem; background: var(--tile); }
.pc-ph.big { font-size: 7rem; }
.pc-tag { position: absolute; top: 10px; left: 10px; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; color: #fff; }
.pc-tag.sale { background: var(--danger); }
.pc-tag.low { background: var(--accent); left: auto; right: 10px; }
.pc-tag.out { background: rgba(30, 42, 30, .8); left: auto; right: 10px; }
.is-out .pc-media img { filter: grayscale(.8); opacity: .65; }
.pc-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.pc-brand { font-size: .75rem; font-weight: 700; color: var(--accent-600); text-transform: uppercase; letter-spacing: .03em; }
.pc-name { font-size: .98rem; font-weight: 600; margin: 2px 0; line-height: 1.4; }
.pc-name a { color: var(--ink); }
.pc-unit { font-size: .8rem; color: var(--muted); }
.pc-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; }
.price b { font-size: 1.15rem; color: var(--primary); }
.price s { font-size: .8rem; color: var(--muted); }
.btn-add { min-height: 38px; padding: .3em .9em; font-size: .875rem; white-space: nowrap; }
.pc-foot { flex-wrap: wrap; }
.pc-foot form { margin-left: auto; }
@media (max-width: 560px) {
  .pc-body { padding: 10px; }
  .pc-name { font-size: .9rem; }
  .pc-foot { flex-direction: column; align-items: stretch; }
  .pc-foot form { margin-left: 0; }
  .btn-add { width: 100%; }
}

.empty { text-align: center; padding: 48px 16px; }
.empty-ico { font-size: 3rem; margin-bottom: 8px; }

/* ---------- product detail ---------- */
.crumbs { padding: 18px 0 8px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.pd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding: 8px 0 24px; }
.pd-media { background: var(--tile); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; }
.pd-media img { width: 100%; height: 100%; object-fit: cover; }
.pd-brand { display: inline-block; font-weight: 700; color: var(--accent-600); font-size: .9rem; }
.pd h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 4px 0; }
.pd-unit { color: var(--muted); margin-bottom: 12px; }
.price-lg b { font-size: 2rem; }
.price-lg s { font-size: 1rem; }
.save { font-size: .8rem; background: var(--danger-50); color: var(--danger); padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.pd-stock { font-weight: 600; margin: 10px 0 16px; }
.pd-stock.ok { color: var(--primary); }
.pd-stock.low { color: var(--warn); }
.pd-stock.out { color: var(--danger); }
.pd-buy { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; }
.pd-desc { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.pd-desc h3 { font-size: 1rem; }
.pd-perks { list-style: none; padding: 14px 16px; margin: 18px 0 0; background: var(--tile); border-radius: var(--radius-sm); display: grid; gap: 8px; }
.pd-perks li { display: flex; gap: 8px; align-items: center; color: var(--ink-2); }
.pd-perks svg { color: var(--primary); }
.shop-section h2 { font-size: 1.35rem; }
@media (max-width: 760px) { .pd { grid-template-columns: 1fr; gap: 18px; } }

/* qty stepper */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); height: 50px; }
.qty button { width: 44px; height: 100%; border: 0; background: none; font-size: 1.3rem; cursor: pointer; color: var(--ink-2); border-radius: 999px; }
.qty button:hover { background: var(--tile); }
.qty input { width: 48px; height: 100%; border: 0; text-align: center; font: inherit; font-weight: 600; background: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-sm { height: 36px; }
.qty-sm button { width: 34px; font-size: 1.1rem; }
.qty-sm input { width: 38px; }

/* ---------- cart / checkout ---------- */
.page-title { font-size: 1.7rem; margin: 22px 0 12px; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; margin-bottom: 40px; }
@media (max-width: 860px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-lines { padding: 6px 18px; }
.cart-line { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line:last-of-type { border-bottom: 0; }
.cl-img { width: 80px; height: 80px; border-radius: 10px; overflow: hidden; background: var(--tile); display: block; }
.cl-img img { width: 100%; height: 100%; object-fit: cover; }
.cl-img .pc-ph { font-size: 2rem; }
.cl-name { color: var(--ink); font-weight: 600; line-height: 1.35; display: block; }
.cl-actions { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.cl-total { font-weight: 700; align-self: start; padding-top: 2px; }
.cart-update { padding: 12px 0; text-align: right; }
@media (max-width: 560px) {
  .cart-line { grid-template-columns: 64px minmax(0, 1fr); }
  .cl-img { width: 64px; height: 64px; }
  .cl-total { grid-column: 2; padding: 0; }
}

.summary { padding: 18px; position: sticky; top: 88px; }
.summary h3 { font-size: 1.05rem; }
.sum-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; }
.sum-row.total { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 12px; font-size: 1.15rem; }
.sum-row.total b { color: var(--primary); font-size: 1.35rem; }
.summary .btn-block { margin-top: 10px; }
.free { color: var(--primary); font-weight: 700; }
.free-ship { background: var(--accent-50); border-radius: 10px; padding: 10px 12px; margin: 6px 0; }
.free-ship p { margin: 6px 0 0; }
.bar { height: 6px; border-radius: 999px; background: rgba(200, 144, 42, .2); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.sum-items { list-style: none; padding: 0; margin: 0 0 8px; border-bottom: 1px solid var(--line); }
.sum-items li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: .92rem; }
.sum-items li + li { border-top: 1px solid #f2ede2; }

.progress-steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 22px 0 0; counter-reset: s; flex-wrap: wrap; }
.progress-steps li { counter-increment: s; display: flex; align-items: center; gap: 6px; color: var(--muted); }
.progress-steps li::before { content: counter(s); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--line); font-size: .75rem; font-weight: 700; }
.progress-steps li + li::after { order: -1; content: ""; width: 18px; height: 2px; background: var(--line); }
.progress-steps li.done::before { content: "✓"; background: var(--primary); color: #fff; }
.progress-steps li.current { color: var(--ink); font-weight: 600; }
.progress-steps li.current::before { background: var(--accent); color: #fff; }

/* forms */
.form-card { padding: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-weight: 600; font-size: .92rem; }
.field i { color: var(--danger); font-style: normal; }
.field input, .field textarea, .field select {
  width: 100%; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; font: inherit; color: var(--ink); min-height: 46px;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--primary); }
.field [aria-invalid="true"] { border-color: var(--danger); background: var(--danger-50); }
.field-error { color: var(--danger); font-size: .82rem; }
.field-short { max-width: 200px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }
.ship-methods { border: 0; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ship-methods legend { font-weight: 600; margin-bottom: 8px; font-size: .92rem; }
.radio-card { position: relative; cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card > span { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--line); background: #fff; transition: border-color .15s, background .15s; }
.radio-card b { display: flex; align-items: center; gap: 6px; }
.radio-card small { color: var(--muted); }
.radio-card input:checked + span { border-color: var(--primary); background: var(--primary-50); }
.radio-card input:focus-visible + span { outline: 3px solid rgba(47, 107, 58, .35); }

/* alerts & badges */
.alert { padding: 12px 14px; border-radius: 10px; margin: 10px 0; font-size: .95rem; }
.alert-success { background: var(--primary-50); color: var(--primary-600); }
.alert-error { background: var(--danger-50); color: var(--danger); }
.alert-warn { background: var(--warn-50); color: var(--warn); }
.alert-info { background: var(--info-50); color: var(--info); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.badge-warn { background: var(--warn-50); color: var(--warn); }
.badge-info { background: var(--info-50); color: var(--info); }
.badge-ok { background: var(--primary-50); color: var(--primary); }
.badge-done { background: var(--primary); color: #fff; }
.badge-muted { background: #EEE; color: #777; }

/* track */
.track-form .btn { margin-top: 4px; }
.order-card { padding: 18px; margin: 16px 0; }
.oc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.oc-head b { font-size: 1.2rem; }
.timeline { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(5, 1fr); font-size: .78rem; color: var(--muted); text-align: center; }
.timeline li { position: relative; padding-top: 26px; }
.timeline li span { position: absolute; top: 4px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--line); z-index: 1; }
.timeline li::before { content: ""; position: absolute; top: 10px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.timeline li:first-child::before { display: none; }
.timeline li.done { color: var(--primary); font-weight: 600; }
.timeline li.done span, .timeline li.done::before, .timeline li.current::before { background: var(--primary); }
.timeline li.current { color: var(--ink); font-weight: 700; }
.timeline li.current span { background: var(--accent); box-shadow: 0 0 0 4px rgba(200, 144, 42, .25); }
.section-title { font-size: 1.15rem; margin-top: 28px; }
.my-orders { padding: 4px 0; margin-bottom: 40px; }
.mo-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 18px; color: var(--ink); }
.mo-row + .mo-row { border-top: 1px solid var(--line); }
.mo-row:hover { background: var(--tile); text-decoration: none; }
.mo-row > span:first-child { display: flex; flex-direction: column; }
.mo-right { display: flex; align-items: center; gap: 10px; }

/* footer */
.site-footer { background: #1E2A1E; color: #d9dccf; margin-top: 40px; padding: 40px 0 24px; }
.site-footer .muted { color: #a9b0a0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer-brand img { flex-shrink: 0; }
.footer-brand span { display: flex; flex-direction: column; line-height: 1.3; }
.footer-brand small { margin-top: 3px; font-size: .8rem; font-weight: 400; color: #a9b0a0; }
.site-footer h4 { color: #fff; font-size: 1rem; }
.footer-link { display: flex; align-items: center; gap: 8px; color: #d9dccf; padding: 4px 0; }
.footer-link svg { color: var(--accent); }
.steps-mini { margin: 0; padding-left: 1.2em; font-size: .92rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 26px; padding-top: 16px; }
.footer-bottom a { color: #d9dccf; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 18px; } }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lg);
  z-index: 100; transition: opacity .2s, transform .2s; pointer-events: none; max-width: calc(100% - 32px);
  display: flex; align-items: center; gap: 12px;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: #F3D58E; font-weight: 600; white-space: nowrap; }
.toast.error { background: var(--danger); }
