/* Brand colors come from the logo (public/img/logo.png): navy wordmark, orange-to-red bag. */
:root {
  --brand: #f2400a;
  --brand-dark: #d12f00;
  --brand-soft: #fff1e8;
  --brand-orange: #ff9500;
  --brand-red: #e30d01;
  --brand-gradient: linear-gradient(120deg, var(--brand-orange) 0%, var(--brand) 55%, var(--brand-red) 100%);
  --ink: #0b1437;
  --muted: #5b6178;
  --line: #e6e8ef;
  --bg: #f6f7fa;
  --card: #ffffff;
  --ok: #16a34a;
  --ok-soft: #e8f7ee;
  --ifood: #ea1d2c;
  --ifood-soft: #fdeaec;
  --moto: #2563eb;
  --moto-soft: #e8efff;
  --pickup: #9333ea;
  --pickup-soft: #f3e8ff;
  --danger: #dc2626;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 20, 55, .06), 0 4px 16px rgba(11, 20, 55, .06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ---------- top bar ---------- */
.topbar { background: var(--card); color: var(--ink); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; gap: 8px; align-items: center; }

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  padding: 10px 16px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 14px;
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: #d9cfc9; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-danger { color: var(--danger); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn[disabled] { opacity: .6; cursor: wait; }

label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.hint { font-weight: 400; color: var(--muted); font-size: 13px; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=tel], input[type=number], select, textarea {
  width: 100%; font: inherit; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: -1px; border-color: var(--brand); }
textarea { resize: vertical; min-height: 80px; }
.field { margin-bottom: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 16px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel { padding: 24px; margin-bottom: 20px; }
.panel h2 { margin: 0 0 4px; font-size: 20px; }
.panel > p.hint { margin: 0 0 20px; }

.form-error { color: var(--danger); font-weight: 600; font-size: 14px; min-height: 1.5em; margin: 4px 0 12px; }

/* ---------- delivery mode toggles ---------- */
.modes { display: grid; gap: 12px; }
.mode { border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.mode.on { border-color: var(--brand); background: var(--brand-soft); }
.mode-head { display: flex; align-items: center; gap: 12px; cursor: pointer; margin: 0; }
.mode-head input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; }
.mode-head strong { display: block; font-size: 15px; }
.mode-icon { font-size: 24px; }
.mode-body { margin-top: 14px; padding-top: 14px; border-top: 1px dashed #f6c3a8; }
.mode:not(.on) .mode-body { display: none; }

/* ---------- home ---------- */
body:not(.sf-page) { overflow-x: clip; }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.chip {
  border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 8px 14px; border-radius: 999px;
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* The hero spans the whole window; its content stays aligned with the page. */
.hero-band {
  width: 100vw; margin-left: calc(50% - 50vw); color: #fff; overflow: hidden;
  background: radial-gradient(520px 320px at 88% 30%, rgba(255, 255, 255, .18), transparent 70%), var(--brand-gradient);
}
.hero-inner { max-width: 1080px; margin: 0 auto; padding: 48px 16px 56px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 32px; align-items: center; }
.hero-kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .04em; background: rgba(11, 20, 55, .18); padding: 6px 12px; border-radius: 999px; }
.hero-copy h1 { font-family: 'Baloo 2', sans-serif; font-size: clamp(36px, 5.6vw, 58px); line-height: 1; margin: 16px 0 12px; letter-spacing: -1px; }
.hero-copy h1 em { font-style: normal; color: var(--ink); }
.hero-copy p { margin: 0 0 24px; font-size: 17px; max-width: 520px; opacity: .95; }
.hero-search {
  display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 16px; padding: 6px 6px 6px 16px;
  max-width: 600px; box-shadow: 0 18px 40px -18px rgba(11, 20, 55, .55);
}
.hero-search-icon { font-size: 18px; }
.hero-search input { flex: 1; width: 100%; border: 0; padding: 12px 4px; font: inherit; font-size: 16px; color: var(--ink); background: transparent; min-width: 0; }
.hero-search input:focus { outline: none; }
.hero-search .btn { border-radius: 12px; padding: 12px 22px; }
.hero-modes { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.hero-modes .chip { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .35); color: #fff; }
.hero-modes .chip.active { background: #fff; border-color: #fff; color: var(--ink); }
.hero-art { position: relative; justify-self: center; width: min(300px, 100%); aspect-ratio: 1; display: grid; place-items: center; }
.hero-art img { width: 78%; height: auto; border-radius: 50%; background: #fff; padding: 8%; box-shadow: 0 30px 60px -24px rgba(11, 20, 55, .6); }
.hero-bubble {
  position: absolute; width: 64px; height: 64px; border-radius: 50%; background: #fff; display: grid; place-items: center;
  font-size: 30px; box-shadow: 0 12px 28px -12px rgba(11, 20, 55, .55);
}
.hero-bubble-1 { top: 2%; right: 4%; }
.hero-bubble-2 { bottom: 10%; left: -2%; }
.hero-bubble-3 { bottom: -2%; right: 14%; width: 52px; height: 52px; font-size: 24px; }

.home-section { margin-top: 36px; }
.home-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.home-title { font-size: 22px; margin: 0 0 16px; letter-spacing: -.01em; }

.cat-row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.cat {
  flex: none; width: 96px; display: grid; justify-items: center; gap: 8px; padding: 0; border: 0; background: none;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer;
}
.cat-icon {
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 32px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .15s ease;
}
.cat:hover .cat-icon { transform: translateY(-2px); }
.cat.active .cat-icon { background: var(--brand-soft); border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.cat.active { color: var(--brand); }

/* ---------- store grid ---------- */
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin-bottom: 8px; }
.store-card {
  display: flex; gap: 14px; align-items: center; padding: 14px; text-decoration: none; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); transition: box-shadow .15s ease, transform .15s ease;
}
.store-card:hover { box-shadow: 0 14px 30px -18px rgba(11, 20, 55, .45); transform: translateY(-2px); }
.logo {
  width: 64px; height: 64px; flex: none; border-radius: 14px; object-fit: cover; background: var(--brand-soft);
  display: grid; place-items: center; font-size: 30px; overflow: hidden;
}
.store-logo { width: 72px; height: 72px; border-radius: 50%; border: 1px solid var(--line); background: #fff; }
.store-info { min-width: 0; }
.store-card h3 { margin: 0; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-meta { color: var(--muted); font-size: 13px; margin: 2px 0 4px; }
.store-delivery { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0 6px; }
.store-delivery i { font-style: normal; opacity: .5; }
.store-delivery .free { color: var(--ok); font-weight: 700; }

.seller-band {
  margin: 48px 0 8px; padding: 28px 32px; border-radius: 20px; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background-image: radial-gradient(420px 200px at 100% 0%, rgba(242, 64, 10, .45), transparent 70%);
}
.seller-band h2 { margin: 0 0 6px; font-size: 22px; }
.seller-band p { margin: 0; opacity: .8; max-width: 560px; }

.footer { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--brand); }

.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.badge-pickup { background: var(--pickup-soft); color: var(--pickup); }
.badge-ifood { background: var(--ifood-soft); color: var(--ifood); }
.badge-moto { background: var(--moto-soft); color: var(--moto); }
.badge-off { background: #f1efed; color: var(--muted); }

.empty { text-align: center; padding: 56px 16px; color: var(--muted); }
.empty .big { font-size: 48px; }

.price { font-weight: 700; }
.product-img { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; flex: none; background: var(--brand-soft); display: grid; place-items: center; font-size: 34px; }

/* ---------- storefront (base for every template) ----------
   Templates restyle this through --sf-* variables and their own style.css. */
body.sf-page { background: var(--sf-background); color: var(--sf-text); }
body.sf-page > .footer { color: inherit; opacity: .55; }
body.standalone .topbar, body.standalone > .footer { display: none; }

.sf {
  --sf-muted: color-mix(in srgb, var(--sf-text) 62%, transparent);
  --sf-line: color-mix(in srgb, var(--sf-text) 13%, transparent);
  --sf-radius: 14px;
  --sf-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 4px 16px rgba(0, 0, 0, .06);
  --sf-border: 1px solid var(--sf-line);
  font-family: var(--sf-font-body, Inter, system-ui, sans-serif);
  color: var(--sf-text);
  padding-bottom: 24px;
}
:where(.sf) :where(h1, h2, h3) { font-family: var(--sf-font-heading, inherit); }
.sf a { color: inherit; }
.sf-product, .sf-delivery-card, .sf-cart-panel {
  background: var(--sf-surface); border: var(--sf-border); border-radius: var(--sf-radius); box-shadow: var(--sf-shadow);
}

.sf-hero { position: relative; margin: 0 -16px 20px; padding: 28px 16px 8px; }
.sf-cover { display: none; }
.sf-hero-body { position: relative; display: flex; gap: 20px; align-items: center; }
.sf-logo {
  width: 96px; height: 96px; flex: none; border-radius: calc(var(--sf-radius) + 6px); object-fit: cover; overflow: hidden;
  background: var(--sf-surface); border: var(--sf-border); display: grid; place-items: center; font-size: 44px;
}
.sf-title { margin: 0; font-size: clamp(26px, 4.5vw, 38px); line-height: 1.1; }
.sf-meta { margin: 6px 0 0; color: var(--sf-muted); font-size: 14px; }
.sf-description { margin: 10px 0 0; color: var(--sf-muted); white-space: pre-line; max-width: 720px; }

/* Templates change the cover height through --sf-cover-h; the logo always overlaps its bottom edge. */
:where(.sf-header-banner) .sf-hero { padding-top: calc(var(--sf-cover-h, 150px) - 44px); }
:where(.sf-header-banner) .sf-cover {
  display: block; position: absolute; inset: 0 0 auto 0; height: var(--sf-cover-h, 150px);
  background: linear-gradient(135deg, var(--sf-primary), var(--sf-accent));
}
:where(.sf-header-banner) .sf-hero-body { align-items: flex-end; }
:where(.sf-header-banner) .sf-logo { width: 112px; height: 112px; border: 4px solid var(--sf-background); }
:where(.sf-header-centered) .sf-hero-body { flex-direction: column; text-align: center; }
:where(.sf-header-centered) .sf-description { margin-left: auto; margin-right: auto; }

.sf-delivery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 12px; margin-bottom: 24px; }
.sf-delivery-card { padding: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.sf-delivery-title { font-weight: 700; }
.sf-delivery-details { color: var(--sf-muted); font-size: 14px; flex: 1; }

.sf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--sf-primary); background: var(--sf-primary); color: var(--sf-on-primary);
  font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.sf a.sf-btn { color: var(--sf-on-primary); }
.sf .sf-btn-outline, .sf a.sf-btn-outline { background: transparent; color: var(--sf-primary); }
.sf-btn-sm { padding: 6px 12px; font-size: 13px; }
.sf .sf-btn-ifood { background: #ea1d2c; border-color: #ea1d2c; color: #fff; }

.sf-nav {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 8px 0; margin-bottom: 4px;
  position: sticky; top: 64px; z-index: 5; background: var(--sf-background);
}
body.standalone .sf-nav { top: 0; }
.sf-nav button {
  border: var(--sf-border); background: var(--sf-surface); color: var(--sf-text); padding: 7px 14px;
  border-radius: 999px; font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap;
}

.sf-section { scroll-margin-top: 130px; }
.sf-section-title { font-size: 20px; margin: 24px 0 12px; }
.sf-products { display: grid; gap: 12px; }
.sf-product { display: flex; overflow: hidden; }
.sf-product-img {
  flex: none; object-fit: cover; display: grid; place-items: center; font-size: 34px;
  background: color-mix(in srgb, var(--sf-primary) 10%, var(--sf-surface));
}
.sf-product-body { flex: 1; min-width: 0; padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.sf-product-name { margin: 0; font-size: 16px; }
.sf-product-description { margin: 0; color: var(--sf-muted); font-size: 14px; }
.sf-product-footer { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.sf-price { font-weight: 700; }
.sf-qty { display: flex; align-items: center; gap: 8px; }
.sf-qty strong { min-width: 1.4em; text-align: center; }

/* layouts, chosen by "layout" in template.json */
:where(.sf-layout-grid) .sf-products { grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); }
:where(.sf-layout-grid) .sf-product { flex-direction: column; }
:where(.sf-layout-grid) .sf-product-img { width: 100%; aspect-ratio: 4 / 3; }

:where(.sf-layout-list) .sf-products { grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); }
:where(.sf-layout-list) .sf-product { flex-direction: row-reverse; }
:where(.sf-layout-list) .sf-product-img { width: 120px; min-height: 120px; align-self: stretch; }

:where(.sf-layout-photos) .sf-products { grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 16px; }
:where(.sf-layout-photos) .sf-product { flex-direction: column; }
:where(.sf-layout-photos) .sf-product-img { width: 100%; aspect-ratio: 1; font-size: 56px; }
:where(.sf-layout-photos) .sf-product-description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

:where(.sf-layout-compact) .sf-products {
  grid-template-columns: 1fr; gap: 0; overflow: hidden;
  background: var(--sf-surface); border: var(--sf-border); border-radius: var(--sf-radius); box-shadow: var(--sf-shadow);
}
:where(.sf-layout-compact) .sf-product { align-items: center; padding-left: 12px; border: 0; border-bottom: var(--sf-border); border-radius: 0; box-shadow: none; background: transparent; }
:where(.sf-layout-compact) .sf-product:last-child { border-bottom: 0; }
:where(.sf-layout-compact) .sf-product-img { width: 52px; height: 52px; border-radius: 10px; font-size: 22px; }
:where(.sf-layout-compact) .sf-product-body { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 2px 12px; padding: 10px 14px; }
:where(.sf-layout-compact) .sf-product-name { flex: 1 1 180px; font-size: 15px; }
:where(.sf-layout-compact) .sf-product-description { order: 3; flex-basis: 100%; font-size: 13px; }
:where(.sf-layout-compact) .sf-product-footer { margin: 0; padding: 0; }

.sf-cart { position: sticky; bottom: 16px; z-index: 6; margin-top: 24px; }
.sf-cart-panel { padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sf-cart-note { color: var(--sf-muted); font-size: 13px; }
.sf-cart select { width: auto; background: var(--sf-surface); color: var(--sf-text); border-color: var(--sf-line); }
.sf-empty { text-align: center; padding: 56px 16px; color: var(--sf-muted); }
.sf-powered { text-align: center; font-size: 13px; color: var(--sf-muted); padding: 32px 0 8px; }
.sf-powered a { font-weight: 600; }

/* ---------- storefront: checkout ---------- */
.sf-checkout {
  width: min(620px, calc(100% - 24px)); max-height: calc(100dvh - 24px); background: var(--sf-background); color: var(--sf-text);
  border-radius: var(--sf-radius); font-family: var(--sf-font-body, Inter, system-ui, sans-serif);
}
.sf-checkout form { padding: 20px; display: grid; gap: 14px; }
.sf-checkout-head { display: flex; justify-content: space-between; align-items: center; }
.sf-checkout h2 { margin: 0; font-family: var(--sf-font-heading, inherit); }
.sf-checkout-close { background: none; border: 0; font-size: 28px; line-height: 1; color: var(--sf-muted); cursor: pointer; padding: 4px 8px; }
.sf-checkout fieldset { border: var(--sf-border); border-radius: var(--sf-radius); background: var(--sf-surface); padding: 12px 14px 14px; margin: 0; display: grid; gap: 10px; min-width: 0; }
.sf-checkout fieldset[hidden] { display: none; }
.sf-checkout legend { font-weight: 700; padding: 0 6px; }
.sf-checkout label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--sf-muted); min-width: 0; }
.sf-checkout label[hidden] { display: none; }
.sf-checkout input:not([type=radio]), .sf-checkout textarea {
  font: inherit; font-size: 15px; font-weight: 400; color: var(--sf-text); background: var(--sf-background);
  border: var(--sf-border); border-radius: 10px; padding: 9px 11px; width: 100%;
}
.sf-checkout input:focus, .sf-checkout textarea:focus { outline: 2px solid var(--sf-primary); outline-offset: -1px; }
.sf-row { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.sf-row > label { flex: 1 1 160px; }
.sf-row > label.short { flex: 0 1 90px; }
.sf-row > label.grow { flex: 3 1 200px; }
.sf-options { display: grid; gap: 8px; }
.sf-option { display: flex !important; flex-direction: row; gap: 10px; align-items: flex-start; padding: 10px 12px; border: var(--sf-border); border-radius: 10px; cursor: pointer; color: var(--sf-text) !important; }
.sf-option:has(input:checked) { border-color: var(--sf-primary); box-shadow: 0 0 0 1px var(--sf-primary); }
.sf-option input { margin-top: 3px; accent-color: var(--sf-primary); }
.sf-option span { display: grid; }
.sf-option small, .sf-muted { color: var(--sf-muted); font-weight: 400; font-size: 13px; }
.sf-quote { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--sf-primary) 10%, var(--sf-surface)); }
.sf-summary { display: grid; gap: 4px; font-size: 14px; }
.sf-summary div { display: flex; justify-content: space-between; gap: 12px; }
.sf-summary-sub { border-top: var(--sf-border); padding-top: 6px; margin-top: 4px; }
.sf-summary-total { font-weight: 700; font-size: 17px; }
.sf-checkout-error { color: #dc2626; margin: 0; font-size: 14px; font-weight: 600; min-height: 1px; }
.sf-checkout-submit { width: 100%; padding: 14px; font-size: 16px; font-weight: 700; cursor: pointer; }
.sf-checkout-submit:disabled { opacity: .55; cursor: not-allowed; }
.sf-cart-panel .sf-btn { cursor: pointer; font: inherit; font-weight: 700; }

/* ---------- order tracking & dashboard orders ---------- */
.order-page { max-width: 640px; margin: 32px auto; display: grid; gap: 16px; }
.order-page h1 { margin: 4px 0 10px; font-size: 26px; }
.order-page h2 { margin: 0 0 10px; font-size: 18px; }
.order-steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 6px; }
.order-steps li { padding-left: 26px; position: relative; color: var(--muted); }
.order-steps li::before { content: ''; position: absolute; left: 4px; top: 6px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); }
.order-steps li.done { color: var(--ink); }
.order-steps li.done::before { background: var(--ok); border-color: var(--ok); }
.order-steps li.current { color: var(--ink); font-weight: 700; }
.order-steps li.current::before { border-color: var(--brand); background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.drop-code { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--ifood-soft); display: grid; gap: 2px; }
.drop-code strong { font-size: 24px; letter-spacing: .15em; color: var(--ifood); }
.order-items { display: grid; gap: 4px; font-size: 14px; margin-top: 10px; }
.order-items div { display: flex; justify-content: space-between; gap: 12px; }
.order-total { font-weight: 700; border-top: 1px solid var(--line); padding-top: 6px; margin-top: 4px; }
.order-card { padding: 16px 18px; margin-bottom: 12px; }
.order-card.order-closed { opacity: .7; }
.order-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.order-actions { display: flex; gap: 8px; align-items: center; }
.order-actions select { width: auto; padding: 7px 10px; }
.ifood-box { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--ifood-soft); font-size: 14px; }
.ifood-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.ifood-actions:empty { display: none; }
.ifood-box .inline-field select { width: auto; flex: 1; }
.notice { background: #fff5db; color: #7a5200; border-radius: 12px; padding: 10px 14px; font-size: 14px; margin-bottom: 14px; }

/* ---------- dashboard: appearance & domain ---------- */
.template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: 14px; }
.template-option { display: flex; flex-direction: column; gap: 4px; padding: 10px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; font-weight: 400; margin: 0; }
.template-option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(255, 77, 28, .15); }
.template-option input { position: absolute; opacity: 0; pointer-events: none; }
.template-option strong { font-size: 14px; margin-top: 4px; }
.template-option .hint { font-size: 12px; line-height: 1.4; }

.tt { position: relative; height: 112px; border-radius: 10px; overflow: hidden; background: var(--t-background); border: 1px solid rgba(0, 0, 0, .08); padding: 10px; }
.tt-cover { display: none; position: absolute; inset: 0 0 auto 0; height: 34px; background: linear-gradient(135deg, var(--t-primary), var(--t-accent)); }
.tt-h-banner .tt-cover { display: block; }
.tt-head { position: relative; display: flex; align-items: center; gap: 6px; margin: 0 0 8px; }
.tt-h-banner .tt-head { margin-top: 18px; }
.tt-h-centered .tt-head { flex-direction: column; gap: 3px; }
.tt-logo { width: 18px; height: 18px; border-radius: 5px; background: var(--t-surface); box-shadow: 0 0 0 1.5px var(--t-primary); }
.tt-name { width: 56px; height: 6px; border-radius: 3px; background: var(--t-text); opacity: .85; }
.tt-items { display: grid; gap: 5px; grid-template-columns: repeat(2, 1fr); }
.tt-item { display: flex; gap: 4px; padding: 4px; border-radius: 5px; background: var(--t-surface); }
.tt-item i { width: 14px; height: 14px; border-radius: 3px; background: color-mix(in srgb, var(--t-primary) 35%, var(--t-surface)); flex: none; }
.tt-item b { flex: 1; height: 4px; margin-top: 5px; border-radius: 2px; background: var(--t-primary); opacity: .8; }
.tt-grid .tt-items { grid-template-columns: repeat(4, 1fr); }
.tt-grid .tt-item, .tt-photos .tt-item { flex-direction: column; }
.tt-grid .tt-item i { width: 100%; height: 18px; }
.tt-photos .tt-items { grid-template-columns: repeat(4, 1fr); }
.tt-photos .tt-item i { width: 100%; height: 26px; }
.tt-compact .tt-items { grid-template-columns: 1fr; gap: 0; border-radius: 5px; overflow: hidden; }
.tt-compact .tt-item { border-radius: 0; padding: 3px 4px; border-bottom: 1px solid color-mix(in srgb, var(--t-text) 10%, transparent); }
.tt-compact .tt-item i { width: 8px; height: 8px; }
.tt-compact .tt-item b { margin-top: 2px; }

.color-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); gap: 12px; }
.color-field { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; margin: 0; cursor: pointer; font-weight: 400; }
.color-field input { width: 42px; height: 42px; padding: 0; border: 0; background: none; cursor: pointer; flex: none; }
.color-field strong { display: block; font-size: 14px; }
.color-field .hint { font-size: 12px; }
textarea.code { font-family: ui-monospace, Consolas, monospace; font-size: 13px; min-height: 160px; }
.panel code, .hint code { background: #f1efed; padding: 1px 6px; border-radius: 6px; font-size: 12px; }
.preview-frame { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }

.inline-field { display: flex; gap: 8px; }
.inline-field input { flex: 1; }
.domain-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 4px; font-size: 14px; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: #fff5db; color: #a16207; }
.steps { padding-left: 20px; margin: 0 0 16px; }
.steps li { margin-bottom: 10px; }
.dns-table { width: 100%; border-collapse: collapse; margin: 10px 0 4px; font-size: 14px; }
.dns-table th, .dns-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.dns-table th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- dashboard ---------- */
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 28px 0 16px; flex-wrap: wrap; }
.dash-head h1 { margin: 0; font-size: 26px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tab { padding: 10px 16px; border: 0; background: none; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none; }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); }

.product-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.product-row:last-child { border-bottom: 0; }
.product-row .product-img { width: 56px; height: 56px; font-size: 22px; border-radius: 10px; }
.product-row .name { font-weight: 600; }
.product-row .actions { display: flex; gap: 4px; align-items: center; }
.product-row.unavailable .name, .product-row.unavailable .price { opacity: .5; }

.switch { position: relative; width: 40px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: #d6cfca; border-radius: 99px; cursor: pointer; transition: background .15s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: #fff; border-radius: 50%; transition: transform .15s; }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(18px); }

.image-picker { display: flex; align-items: center; gap: 14px; }
.image-picker .preview { width: 72px; height: 72px; border-radius: 12px; background: var(--brand-soft); display: grid; place-items: center; font-size: 28px; overflow: hidden; flex: none; }
.image-picker .preview img { width: 100%; height: 100%; object-fit: cover; }

.auth-wrap { max-width: 420px; margin: 48px auto; }
.auth-wrap h1 { font-size: 26px; margin: 0 0 4px; }

dialog { border: 0; border-radius: var(--radius); padding: 0; width: min(560px, calc(100% - 32px)); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(31, 26, 23, .45); }
dialog form { padding: 24px; }
dialog h2 { margin: 0 0 16px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120px); background: var(--ink); color: #fff;
  padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 14px; transition: transform .25s ease; z-index: 50;
  max-width: calc(100% - 32px);
}
.toast.show { transform: translate(-50%, 0); }

.footer { color: var(--muted); font-size: 13px; padding: 32px 16px; text-align: center; }

@media (max-width: 640px) {
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .store-grid, .product-grid { grid-template-columns: 1fr; }
  .nav .hide-sm { display: none; }
  .store-header { align-items: flex-start; }
  .panel { padding: 18px; }
  .brand img { height: 28px; }
  .hero-inner { grid-template-columns: 1fr; padding: 28px 16px 36px; gap: 0; }
  .hero-art { display: none; }
  .hero-search { padding-left: 12px; }
  .hero-search .btn { padding: 12px 14px; }
  .cat { width: 80px; }
  .cat-icon { width: 60px; height: 60px; font-size: 26px; }
  .seller-band { padding: 22px; }
  .footer { justify-content: center; }
}
