/* Frittourist – platform, dashboard and shop styles. No build step: served as-is. */
:root {
    --bg: #faf7f0;
    --surface: #ffffff;
    --surface-2: #f3eee2;
    --ink: #1f1b14;
    --ink-2: #5b5446;
    --ink-3: #8d8574;
    --line: #e6dfcf;
    --fries: #f2b705;
    --fries-deep: #d99a00;
    --red: #c8281e;
    --ok: #1f7a4a;
    --ok-bg: #e3f3e9;
    --info: #1d5fa8;
    --info-bg: #e3edf8;
    --bad: #b3261e;
    --bad-bg: #fbe5e3;
    --muted-bg: #efeadf;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 1px 2px rgba(31, 27, 20, .06), 0 4px 16px rgba(31, 27, 20, .06);
    --brand: var(--red);
    --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.5; font-size: 16px; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
small, .small { font-size: .875rem; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.right { text-align: right; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 460px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- buttons & forms ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .62rem 1.05rem; border-radius: 999px; border: 1px solid transparent;
    background: var(--ink); color: #fff; font: inherit; font-weight: 600; font-size: .95rem;
    text-decoration: none; cursor: pointer; transition: transform .06s ease, background .15s ease, box-shadow .15s;
    white-space: nowrap;
}
.btn:hover { background: #3a3326; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--fries) 70%, transparent); outline-offset: 2px;
}
.btn-fries { background: var(--fries); color: var(--ink); }
.btn-fries:hover { background: var(--fries-deep); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: color-mix(in srgb, var(--brand) 85%, #000); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: transparent; color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.btn-danger:hover { background: var(--bad-bg); }
.btn-sm { padding: .35rem .75rem; font-size: .85rem; }
.btn-lg { padding: .85rem 1.4rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-2); text-decoration: underline; cursor: pointer; }

label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.field { margin-bottom: 1rem; }
.field .hint { font-weight: 400; color: var(--ink-3); font-size: .82rem; margin-top: .25rem; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=time], input[type=date], input[type=number], input[type=month], select, textarea {
    width: 100%; padding: .62rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: #fff; font: inherit; color: var(--ink);
}
textarea { min-height: 80px; resize: vertical; }
input[type=color] { width: 56px; height: 40px; padding: 2px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; cursor: pointer; }
.check input { margin-top: .25rem; width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix span { display: flex; align-items: center; padding: 0 .7rem; background: var(--surface-2); border: 1px solid var(--line); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); color: var(--ink-2); font-size: .9rem; white-space: nowrap; }
.input-prefix input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }
.error-text { color: var(--bad); font-size: .85rem; margin-top: .25rem; }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.card + .card { margin-top: 1rem; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.alert { padding: .8rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .95rem; }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.alert-bad { background: var(--bad-bg); color: var(--bad); }
.alert-info { background: var(--info-bg); color: var(--info); }
.alert ul { margin: 0; padding-left: 1.1rem; }
.alert-demo { background: #fdf0c4; color: #5c4100; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; justify-content: space-between; }
.alert-demo form { margin: 0; }
.demo-bar { background: var(--fries); color: var(--ink); text-align: center; font-size: .85rem; font-weight: 600; padding: .45rem 16px; }
.badge { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--muted-bg); color: var(--ink-2); white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-fries { background: #fdf0c4; color: #7a5600; }

table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); font-weight: 600; padding: .5rem .6rem; border-bottom: 1px solid var(--line); }
td { padding: .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 0 -1.25rem; padding: 0 1.25rem; }

/* ---------- site header / marketing ---------- */
.site-header { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }
.logo { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.15rem; text-decoration: none; letter-spacing: -.02em; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--fries); display: grid; place-items: center; }
.logo-mark svg { width: 18px; height: 18px; }
.nav { display: flex; gap: .5rem; align-items: center; }

.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.hero h1 mark { background: linear-gradient(transparent 60%, #fbe08a 60%); color: inherit; padding: 0 .1em; }
.hero .lead { font-size: 1.15rem; color: var(--ink-2); max-width: 34em; }
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fries-deep); margin-bottom: .75rem; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 40px; } }

.phone { background: var(--ink); border-radius: 34px; padding: 10px; box-shadow: 0 30px 60px -20px rgba(31, 27, 20, .45); max-width: 330px; margin: 0 auto; }
.phone-screen { background: var(--bg); border-radius: 26px; overflow: hidden; }
.phone-top { background: var(--red); color: #fff; padding: 22px 18px 16px; }
.phone-top strong { font-size: 1.15rem; display: block; }
.phone-list { padding: 12px; display: grid; gap: 8px; }
.phone-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; font-size: .9rem; }
.phone-item b { font-weight: 600; }
.phone-plus { width: 26px; height: 26px; border-radius: 50%; background: var(--fries); display: grid; place-items: center; font-weight: 800; }
.phone-cart { margin: 4px 12px 14px; background: var(--ink); color: #fff; border-radius: 12px; padding: 12px 14px; display: flex; justify-content: space-between; font-weight: 600; font-size: .92rem; }

.section { padding: 56px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature { padding: 1.25rem; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.feature-icon { width: 40px; height: 40px; border-radius: 11px; background: #fdf0c4; display: grid; place-items: center; margin-bottom: .75rem; }
.feature-icon svg { width: 22px; height: 22px; stroke: var(--ink); }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.step { position: relative; padding-top: 2.6rem; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.price-big { font-size: 4rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.calc { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 1.5rem; }
.calc label { color: #d9d2c2; }
.calc input[type=range] { width: 100%; accent-color: var(--fries); }
.calc .out { display: flex; justify-content: space-between; padding: .6rem 0; border-top: 1px solid #3a3326; font-variant-numeric: tabular-nums; }
.calc .out strong { color: var(--fries); font-size: 1.2rem; }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; } }
.site-footer { padding: 32px 0; color: var(--ink-3); font-size: .9rem; }

.auth-wrap { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 32px 16px; }
.auth-wrap .card { width: 100%; max-width: 480px; padding: 1.75rem; }

/* ---------- dashboard ---------- */
.dash { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar { background: var(--ink); color: #e9e3d4; padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.sidebar .logo { color: #fff; margin: 0 8px 18px; }
.sidebar .nav-link { display: flex; align-items: center; gap: .65rem; padding: .6rem .75rem; border-radius: 10px; text-decoration: none; color: #cfc7b4; font-weight: 500; font-size: .95rem; }
.sidebar .nav-link svg { width: 18px; height: 18px; flex: none; }
.sidebar .nav-link:hover { background: #2e2920; color: #fff; }
.sidebar .nav-link.active { background: #3a3326; color: #fff; }
.side-nav form { display: contents; }
.sidebar button.nav-link { width: 100%; background: none; border: 0; font-family: inherit; text-align: left; cursor: pointer; }
.sidebar .nav-count { margin-left: auto; background: var(--fries); color: var(--ink); border-radius: 999px; padding: 0 .5rem; font-size: .75rem; font-weight: 700; }
.sidebar .bottom { margin-top: auto; border-top: 1px solid #3a3326; padding-top: 12px; font-size: .85rem; }
.sidebar .bottom .link-btn { color: #cfc7b4; }
.main { padding: 28px 32px 48px; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.page-head h1 { font-size: 1.7rem; margin: 0; }
.page-head p { margin: .25rem 0 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.stat .label { font-size: .82rem; color: var(--ink-2); font-weight: 500; }
.stat .value { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: .15rem; }
.stat .sub { font-size: .8rem; color: var(--ink-3); }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.dash-grid > * { min-width: 0; }
.dash-grid .card + .card { margin-top: 0; }
.dash-grid + .card, .card + .dash-grid, .dash-grid + .dash-grid { margin-top: 1rem; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.tick { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; margin-top: 1px; }
.tick.done { background: var(--ok); border-color: var(--ok); }
.tick.done svg { width: 14px; height: 14px; stroke: #fff; }
.copy-box { display: flex; gap: .5rem; align-items: center; background: var(--surface-2); border-radius: var(--radius-sm); padding: .5rem .5rem .5rem .8rem; font-size: .9rem; }
.copy-box code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.open-toggle { display: inline-flex; align-items: center; gap: .5rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); display: inline-block; }
.dot.on { background: #2fb36b; box-shadow: 0 0 0 3px rgba(47, 179, 107, .2); }
.tabs { display: flex; gap: .25rem; background: var(--surface-2); padding: 4px; border-radius: 999px; width: fit-content; margin-bottom: 1rem; }
.tabs a { padding: .4rem .95rem; border-radius: 999px; text-decoration: none; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.tabs a.active { background: #fff; color: var(--ink); box-shadow: var(--shadow); }

.orders-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-bottom: 1rem; }
.orders-toolbar .tabs { margin-bottom: 0; }
.orders-toolbar select { width: auto; }
.orders-day { font-size: 1.05rem; margin: 1.25rem 0 .6rem; }
.orders-day:first-of-type { margin-top: 0; }
.order-select { display: inline-flex; align-items: center; gap: .45rem; cursor: pointer; }
.order-select input { width: 1.1rem; height: 1.1rem; }
.orders { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 1rem; }
.order-card { display: flex; flex-direction: column; }
.order-card .lines { list-style: none; padding: 0; margin: .5rem 0 .75rem; font-size: .93rem; }
.order-card .lines li { display: flex; justify-content: space-between; gap: .5rem; padding: .15rem 0; }
.order-card .actions { margin-top: auto; display: flex; gap: .4rem; flex-wrap: wrap; padding-top: .75rem; border-top: 1px solid var(--line); }
.order-no { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; }
.order-card.status-new { border-color: var(--fries); box-shadow: 0 0 0 2px #fbe08a; }

.menu-cat summary { list-style: none; cursor: pointer; }
.menu-cat summary::-webkit-details-marker { display: none; }
.prod-row td { vertical-align: middle; }
.prod-row.off td:not(:last-child) { opacity: .5; }
.prod-cell { display: flex; align-items: center; gap: .6rem; }
.product-thumb { width: 44px; height: 44px; flex: none; object-fit: cover; border-radius: 8px; background: var(--line); }
.product-img-preview { display: block; width: 96px; height: 96px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: .5rem; }
details.inline-edit > summary { display: inline-flex; list-style: none; cursor: pointer; }
details.inline-edit > summary::-webkit-details-marker { display: none; }
details.inline-edit[open] > summary { margin-bottom: .75rem; }
.edit-panel { background: var(--surface-2); border-radius: var(--radius-sm); padding: 1rem; }
.pagination { display: flex; gap: .5rem; justify-content: center; margin-top: 1.5rem; }

@media (max-width: 1000px) {
    .stats { grid-template-columns: 1fr 1fr; }
    .dash-grid { grid-template-columns: minmax(0, 1fr); }
}
.side-nav { display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 760px) {
    .dash { grid-template-columns: minmax(0, 1fr); }
    .sidebar {
        position: sticky; top: 0; z-index: 30; height: auto;
        display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 12px;
        padding: calc(8px + env(safe-area-inset-top)) 12px 0;
    }
    .sidebar .logo { margin: 0; font-size: 1.05rem; }
    .sidebar .logo-mark { width: 26px; height: 26px; }
    .side-nav {
        grid-column: 1 / -1; flex-direction: row; overflow-x: auto; gap: 2px; padding-bottom: 8px;
        scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
    }
    .side-nav::-webkit-scrollbar { display: none; }
    .sidebar .nav-link { flex: none; padding: .5rem .8rem; font-size: .9rem; scroll-snap-align: center; min-height: 40px; }
    .sidebar .nav-link svg { display: none; }
    .sidebar .bottom { margin: 0; border: 0; padding: 0; }
    .sidebar .user-email { display: none; }
    .main { padding: 18px 16px calc(40px + env(safe-area-inset-bottom)); }
}

/* ---------- public shop ---------- */
.shop-hero { background: var(--brand); color: #fff; padding: 28px 0 22px; }
.shop-hero h1 { margin: 0 0 .25rem; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.shop-hero .meta { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .92rem; opacity: .92; }
.shop-title { display: flex; align-items: center; gap: .75rem; color: inherit; }
.shop-title h1 { margin: 0; }
.shop-hero .shop-title { margin-bottom: .25rem; }
.shop-logo { width: 64px; height: 64px; flex: none; object-fit: contain; border-radius: 14px; background: #fff; padding: 4px; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
.shop-logo-sm { width: 44px; height: 44px; border-radius: 10px; padding: 3px; }
.push-box { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; padding: .85rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.push-box[hidden], .push-box [hidden] { display: none; }
.push-box .grow { flex: 1 1 200px; min-width: 0; }
.push-icon { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--brand); }
.push-icon svg { width: 20px; height: 20px; }
.push-on { color: var(--ok); font-weight: 600; }
.install-banner { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; padding: .75rem .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.install-banner[hidden] { display: none; }
.install-banner img { flex: none; border-radius: 10px; }
.install-banner .grow { flex: 1; min-width: 0; }
.install-close { flex: none; width: 32px; height: 32px; border: 0; background: none; font-size: 1.4rem; line-height: 1; color: var(--ink-3); cursor: pointer; border-radius: 50%; }
.install-close:hover { background: var(--surface-2); }
.app-icon-preview { display: flex; align-items: center; gap: .75rem; }
.app-icon-preview img { width: 60px; height: 60px; border-radius: 14px; box-shadow: var(--shadow); }
.logo-preview { display: inline-grid; place-items: center; padding: .6rem; border-radius: var(--radius-sm); margin-bottom: .5rem; }
.details { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin: 0 0 1rem; }
.details dt { color: var(--ink-3); font-size: .9rem; }
.details dd { margin: 0; }
.logo-preview img { max-width: 160px; max-height: 80px; object-fit: contain; }
.shop-hero .status-pill { display: inline-flex; align-items: center; gap: .4rem; background: rgba(255, 255, 255, .18); padding: .2rem .7rem; border-radius: 999px; font-weight: 600; font-size: .85rem; }
.cat-nav { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.cat-nav .container { display: flex; gap: .4rem; overflow-x: auto; padding-top: .6rem; padding-bottom: .6rem; scrollbar-width: none; }
.cat-nav a { flex: none; padding: .4rem .9rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-size: .9rem; font-weight: 600; }
.cat-nav a:hover { border-color: var(--ink-3); }
.shop-section { padding-top: 1.5rem; scroll-margin-top: var(--cat-nav-height, 60px); }
/* With a mouse a hidden horizontal scroll is undiscoverable: wrap the categories onto more rows instead. */
@media (min-width: 768px) {
    .cat-nav .container { flex-wrap: wrap; overflow-x: visible; }
}
.shop-section h2 { font-size: 1.2rem; margin-bottom: .75rem; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: .6rem; }
.product { display: flex; align-items: center; gap: .75rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .75rem .75rem .75rem 1rem; }
.product .info { flex: 1; min-width: 0; }
.product-img { width: 72px; height: 72px; flex: none; object-fit: cover; border-radius: 10px; background: var(--line); }
.product .name { font-weight: 600; }
.product .desc { font-size: .83rem; color: var(--ink-3); }
.product .price { font-size: .92rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.qty { display: flex; align-items: center; gap: .35rem; }
.qty button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.15rem; font-weight: 700; cursor: pointer; display: grid; place-items: center; color: var(--ink); line-height: 1; }
.qty button.add { background: var(--brand); color: #fff; border-color: var(--brand); }
.qty .count { min-width: 1.2em; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.qty[data-count="0"] .minus, .qty[data-count="0"] .count { display: none; }
.cart-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 30%); pointer-events: none; }
.cart-bar button { pointer-events: auto; max-width: 560px; margin: 0 auto; display: flex; justify-content: space-between; width: 100%; padding: 1rem 1.25rem; border-radius: 16px; border: 0; background: var(--ink); color: #fff; font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }
.cart-bar[hidden] { display: none; }
.cart-count { background: var(--brand); border-radius: 999px; padding: 0 .55rem; margin-right: .5rem; }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(20, 16, 10, .45); z-index: 40; }
.drawer { position: fixed; right: 0; top: 0; bottom: 0; width: min(460px, 100%); background: var(--bg); z-index: 50; display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0, 0, 0, .2); }
.drawer[hidden], .drawer-backdrop[hidden] { display: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; }
.drawer-body { padding: 1rem 1.25rem; overflow-y: auto; flex: 1; }
.drawer-foot { padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; font-size: 1.2rem; }
.cart-lines { list-style: none; padding: 0; margin: 0 0 1rem; }
.cart-lines li { display: flex; align-items: center; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.cart-lines .name { flex: 1; }
.total-row { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.1rem; margin-bottom: .75rem; }
.pay-options { display: grid; gap: .5rem; margin-bottom: 1rem; }
.pay-option { display: flex; gap: .65rem; align-items: center; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; cursor: pointer; font-weight: 600; margin: 0; }
.pay-option:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.pay-option input { accent-color: var(--ink); width: 18px; height: 18px; }
.pay-option small { display: block; font-weight: 400; color: var(--ink-3); }
.shop-footer { margin-top: 3rem; padding: 2rem 0 7rem; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .9rem; }
.shop-footer .powered { color: var(--ink-3); font-size: .8rem; margin-top: 1rem; }
.closed-banner { background: var(--ink); color: #fff; text-align: center; padding: .7rem 16px; font-weight: 600; }
.confirm { max-width: 560px; margin: 2rem auto; }
.confirm .big-no { font-size: 3.2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 1rem 0 .4rem; }
.progress span { height: 6px; border-radius: 3px; background: var(--line); }
.progress span.on { background: var(--brand); }
.progress-labels { display: grid; grid-template-columns: repeat(4, 1fr); font-size: .75rem; color: var(--ink-3); }
.progress-labels span.on { color: var(--ink); font-weight: 600; }

/* ---------- savings programme ---------- */
.savings { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.savings-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.savings-amount { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.meter { height: 10px; background: var(--surface-2); border-radius: 5px; overflow: hidden; margin: .6rem 0 .35rem; }
.meter > span { display: block; height: 100%; background: var(--brand); border-radius: 5px; transition: width .3s ease; }
.tier-list { list-style: none; padding: 0; margin: .75rem 0 0; display: grid; gap: .5rem; }
.tier-list li { display: flex; gap: .75rem; align-items: flex-start; font-size: .92rem; }
.tier-badge { flex: none; min-width: 64px; text-align: center; padding: .15rem .5rem; border-radius: 999px; font-weight: 700; font-size: .8rem; background: var(--surface-2); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tier-badge.reached { background: var(--brand); color: #fff; }
.reward-picker { border: 1px dashed color-mix(in srgb, var(--brand) 50%, var(--line)); border-radius: var(--radius-sm); padding: .8rem; margin-bottom: 1rem; background: color-mix(in srgb, var(--brand) 5%, #fff); }
.reward-picker h3 { font-size: .95rem; margin-bottom: .5rem; }
.reward-tier + .reward-tier { margin-top: .75rem; }
.reward-tier-title { font-size: .82rem; font-weight: 700; color: var(--ink-2); margin-bottom: .35rem; }
.reward-options { display: flex; flex-wrap: wrap; gap: .35rem; }
.reward-options button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .3rem .75rem; font: inherit; font-size: .85rem; cursor: pointer; color: var(--ink); }
.reward-options button:hover:not([disabled]) { border-color: var(--brand); color: var(--brand); }
.reward-options button[disabled] { opacity: .4; cursor: not-allowed; }
.free-tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ok); background: var(--ok-bg); border-radius: 999px; padding: .05rem .45rem; margin-left: .35rem; vertical-align: middle; }
.account-bar { background: var(--ink); color: #e9e3d4; font-size: .88rem; }
.account-bar .container { display: flex; justify-content: flex-end; gap: 1rem; align-items: center; min-height: 36px; }
.account-bar a, .account-bar .link-btn { color: #fff; }
.product-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .15rem 1rem; max-height: 320px; overflow-y: auto; padding: .5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.product-picks .cat { grid-column: 1 / -1; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); margin-top: .5rem; }
.product-picks .check { font-weight: 400; font-size: .9rem; margin: 0; padding: .2rem 0; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 1rem; }

/* ---------- timeslots ---------- */
.hours-table td { vertical-align: middle; }
.time-range { display: flex; align-items: center; gap: .35rem; }
.time-range input[type=time] { width: 7.2rem; padding: .45rem .5rem; }
.slot-grid { display: flex; flex-wrap: wrap; gap: .4rem; }
.slot-chip { display: inline-flex; flex-direction: column; align-items: center; min-width: 62px; padding: .35rem .5rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.slot-chip small { font-weight: 500; font-size: .7rem; color: var(--ink-3); }
.slot-chip.full { opacity: .45; text-decoration: line-through; }
.slot-days { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .5rem; }
.slot-days button { padding: .35rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-weight: 600; font-size: .85rem; cursor: pointer; }
.slot-days button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.slot-options label[hidden] { display: none; }
.slot-options { display: flex; flex-wrap: wrap; gap: .4rem; max-height: 190px; overflow-y: auto; padding: 2px; }
.slot-options label { margin: 0; cursor: pointer; }
.slot-options input { position: absolute; opacity: 0; pointer-events: none; }
.slot-options input:checked + .slot-chip { border-color: var(--brand); background: var(--brand); color: #fff; }
.slot-options input:checked + .slot-chip small { color: rgba(255, 255, 255, .85); }
.slot-options input:focus-visible + .slot-chip { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 1px; }
.slot-options input:disabled + .slot-chip { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.week-hours { display: grid; grid-template-columns: auto 1fr; gap: .1rem 1rem; margin-top: .5rem; font-size: .88rem; }
.week-hours .today { font-weight: 700; color: var(--ink); }
.pickup-time { display: inline-block; margin-left: .35rem; padding: .05rem .5rem; border-radius: 8px; background: var(--ink); color: #fff; font-size: 1rem; vertical-align: middle; font-variant-numeric: tabular-nums; }


/* ---------- phones ---------- */
html { -webkit-tap-highlight-color: transparent; }
a, button, input, select, textarea, label, summary { touch-action: manipulation; }
.stats-3 { grid-template-columns: repeat(3, 1fr); }
.stat .value.value-sm { font-size: 1.25rem; margin-top: .45rem; }
.inline-form { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.inline-form input[type=text], .inline-form input[type=month] { width: auto; flex: 1 1 180px; min-width: 0; }
.inline-form input[type=number] { width: 90px; flex: none; }
.edit-panel-wide { text-align: left; min-width: 280px; }
.drawer-body { overscroll-behavior: contain; }
.drawer { height: 100dvh; top: auto; }

/* Touch screens: tap targets of at least ~40px. */
@media (pointer: coarse) {
    .btn-sm { min-height: 40px; padding: .45rem .9rem; }
    .qty button { width: 40px; height: 40px; }
    .reward-options button { padding: .5rem .85rem; min-height: 40px; }
    .link-btn { padding: .4rem 0; }
    .tabs a { padding: .55rem 1rem; }
    .cat-nav a { padding: .55rem 1rem; }
    .check { padding: .2rem 0; }
    .slot-chip { min-width: 64px; min-height: 46px; justify-content: center; }
    input[type=time], input[type=date], input[type=month], select { min-height: 44px; }
}

@media (max-width: 640px) {
    h1 { font-size: 1.6rem; }
    .page-head { margin-bottom: 1rem; }
    .page-head h1 { font-size: 1.45rem; }
    .page-head > form, .page-head > .inline-form, .page-head > .btn { width: 100%; }
    .page-head > form .btn { width: 100%; }
    .card { padding: 1rem; }
    .table-wrap { margin: 0 -1rem; padding: 0 1rem; }
    .stats, .stats-3 { grid-template-columns: 1fr 1fr; gap: .6rem; }
    .stat { padding: .75rem .85rem; }
    .stat .value { font-size: 1.25rem; overflow-wrap: anywhere; }
    .stats-3 .stat:last-child { grid-column: 1 / -1; }
    .edit-panel-wide { min-width: 0; }
    .copy-box { flex-wrap: wrap; }
    .copy-box code { flex-basis: 100%; white-space: normal; overflow-wrap: anywhere; }

    /* Tables become a list of small cards: each cell shows its column name. */
    .table-wrap:has(> .table-stack) { margin: 0; padding: 0; overflow: visible; }
    .table-stack thead { display: none; }
    .table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
    .table-stack tr { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .4rem .8rem; margin-bottom: .6rem; background: var(--surface); }
    .table-stack td { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .3rem 0; border: 0; text-align: right; }
    .table-stack td[data-label]::before { content: attr(data-label); flex: none; text-align: left; font-size: .8rem; font-weight: 600; color: var(--ink-3); }
    .table-stack td[data-title] { justify-content: flex-start; text-align: left; flex-wrap: wrap; }
    .table-stack td[data-title].right { justify-content: flex-end; }
    .table-stack td[data-title]:empty { display: none; }
    .table-stack .prod-row td[data-title].right > .row { justify-content: flex-start !important; width: 100%; }

    /* Opening hours: one block per day. */
    .hours-table thead { display: none; }
    .hours-table, .hours-table tbody, .hours-table tr, .hours-table td { display: block; width: 100%; }
    .hours-table tr { padding: .5rem 0; border-bottom: 1px solid var(--line); }
    .hours-table td { border: 0; padding: .2rem 0; }
    .table-wrap:has(> .hours-table) { overflow: visible; }
    .time-range input[type=time] { flex: 1; width: auto; min-width: 0; }

    /* Marketing */
    .hero { padding: 28px 0 32px; }
    .hero-cta .btn { flex: 1 1 100%; }
    .section { padding: 40px 0; }
    .price-big { font-size: 3.2rem; }
    .site-header .container { height: 58px; }
    .nav .btn-sm { padding: .4rem .75rem; }

    /* Shop */
    .shop-hero { padding: 20px 0 16px; }
    .shop-logo { width: 52px; height: 52px; }
    .shop-logo-sm { width: 40px; height: 40px; }
    .product { padding: .6rem .6rem .6rem .85rem; }
    .product-img { width: 60px; height: 60px; }
    .confirm { margin: 1rem auto; }
    .confirm .big-no { font-size: 2.6rem; }
    .progress-labels { font-size: .68rem; }
    .auth-wrap { padding: 16px; place-items: start center; }
    .auth-wrap .card { padding: 1.25rem; }
}
/* An opened edit panel in a card header takes the full width instead of overflowing to the right. */
.card-head > .inline-edit[open] { flex-basis: 100%; }
@media (pointer: coarse) {
    .sidebar .link-btn { padding: .6rem 0; }
}
@media (max-width: 760px) {
    .sidebar .logo { grid-row: 1; grid-column: 1; }
    .sidebar .bottom { grid-row: 1; grid-column: 2; }
    .side-nav { grid-row: 2; }
}
@media (max-width: 640px) {
    /* Compact list: every row on two short lines, without column names. */
    .table-compact tr { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .6rem; padding: .55rem .8rem; }
    .table-compact td { display: block; width: auto; padding: 0; text-align: left; }
    .table-compact td[data-label]::before { content: none; }
    .table-compact td.right { margin-left: auto; font-weight: 700; }
}
@media (max-width: 640px) {
    /* Menu: name + price on one line, status and buttons below. */
    .menu-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .25rem .75rem; padding: .6rem .8rem; }
    .menu-table td { width: auto; padding: 0; }
    .menu-table td[data-label]::before { content: none; }
    .menu-table td[data-label="Prijs"] { font-weight: 700; }
    .menu-table td[data-label="Status"] { justify-content: flex-start; }
    .menu-table td[data-title].right { justify-content: flex-end; }
    .menu-table td:has(details[open]) { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .menu-table td[data-label="Prijs"] { justify-content: flex-end; }
    .menu-table details[open] { flex-basis: 100%; }
    .menu-table details[open] .edit-panel { width: 100%; }
}
.tier-details { margin-top: .5rem; }
.tier-details > summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--brand); padding: .35rem 0; list-style: none; }
.tier-details > summary::-webkit-details-marker { display: none; }
.tier-details > summary::after { content: ' ▾'; }
.tier-details[open] > summary::after { content: ' ▴'; }
@media (max-width: 1000px) {
    /* On small screens the savings (second column) come before the long order history. */
    .savings-first > :last-child { order: -1; }
}
@media (max-width: 360px) {
    /* Smallest phones: logo icon only in the site header, so both buttons fit. */
    .site-header .logo-text { display: none; }
    .nav { gap: .35rem; }
}

/* ---------- product options (extras / remove toppings) ---------- */
.options-hint { color: var(--brand); font-weight: 500; }
.qty[data-options] .minus { display: none; }
.qty[data-options][data-count="0"] .count { display: none; }
.qty[data-options]:not([data-count="0"]) .count { display: grid; place-items: center; min-width: 24px; height: 24px; border-radius: 12px; background: var(--ink); color: #fff; font-size: .8rem; }
.line-options { display: block; color: var(--ink-3); font-size: .82rem; line-height: 1.3; }
.sheet-backdrop { position: fixed; inset: 0; background: rgba(20, 16, 10, .45); z-index: 55; }
.sheet {
    position: fixed; z-index: 60; background: var(--bg); display: flex; flex-direction: column;
    left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(480px, calc(100% - 32px)); max-height: 85vh;
    border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); overflow: hidden;
}
.sheet[hidden], .sheet-backdrop[hidden] { display: none; }
.sheet .drawer-head h2 { font-size: 1.2rem; }
.sheet-img { display: block; width: 100%; height: 200px; flex: none; object-fit: cover; background: var(--line); }
.sheet-img[hidden] { display: none; }
.sheet-body { padding: .5rem 1.25rem 1rem; overflow-y: auto; overscroll-behavior: contain; flex: 1; }
.opt-group { border: 0; padding: 0; margin: .75rem 0 0; }
.opt-group legend { display: flex; justify-content: space-between; align-items: baseline; width: 100%; font-weight: 700; padding: 0 0 .35rem; }
.opt-group legend small { font-weight: 500; color: var(--ink-3); font-size: .8rem; }
.opt { display: flex; align-items: center; gap: .65rem; padding: .6rem .75rem; margin: 0 0 .35rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 500; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.opt:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.opt input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; margin: 0; }
@media (max-width: 640px) {
    /* Phones: the options sheet slides up from the bottom. */
    .sheet { left: 0; right: 0; top: auto; bottom: 0; transform: none; width: 100%; max-height: 88dvh; border-radius: 18px 18px 0 0; }
    .sheet-img { height: 150px; }
}
.opt-remove { color: var(--bad); font-weight: 700; }
.order-card .lines li > span:first-child { min-width: 0; }
/* Cards stacked inside a dashboard column keep their spacing. */
.dash-grid .stack > .card + .card { margin-top: 1rem; }

/* ---------- cookies (GDPR) ---------- */
.cookie-banner {
    position: fixed; z-index: 80; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
    max-width: 640px; margin: 0 auto; padding: 1rem 1.25rem; background: var(--surface); color: var(--ink);
    border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 20px 50px -10px rgba(31, 27, 20, .35);
}
.cookie-banner[hidden], .cookie-settings[hidden], .cookie-backdrop[hidden] { display: none; }
.cookie-banner p { margin: 0 0 .85rem; font-size: .92rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
.cookie-backdrop { position: fixed; inset: 0; z-index: 85; background: rgba(20, 16, 10, .45); }
.cookie-settings {
    position: fixed; z-index: 90; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: min(520px, calc(100% - 32px)); max-height: 85vh; overflow-y: auto;
    padding: 1.25rem; background: var(--bg); border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}
.cookie-settings h2 { margin-bottom: .25rem; }
.cookie-category { display: flex; gap: .75rem; align-items: flex-start; padding: .75rem; margin: 0 0 .5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 400; cursor: pointer; }
.cookie-category input { width: 20px; height: 20px; margin-top: .15rem; flex: none; accent-color: var(--ink); }
.legal { max-width: 780px; padding-top: 32px; padding-bottom: 48px; }
.legal h2 { margin-top: 2rem; font-size: 1.25rem; }
.legal h3 { margin-top: 1.25rem; }
.legal code { font-size: .88em; background: var(--surface-2); padding: .05rem .35rem; border-radius: 4px; overflow-wrap: anywhere; }
.site-footer a { color: inherit; }
.sidebar .legal-links { margin-top: .35rem; font-size: .78rem; color: #8d8574; }
.sidebar .legal-links a { color: #cfc7b4; }
@media (max-width: 640px) {
    .cookie-banner { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); }
    .cookie-actions .btn { flex: 1 1 auto; }
    .sidebar .legal-links { display: none; }
}
@media (max-width: 480px) {
    /* Keep the shop's account bar on one line on phones. */
    .account-bar .faint { display: none; }
}

/* ---------- option sizes (klein / groot potje) ---------- */
.opt-row { margin: 0 0 .35rem; }
.opt-row .opt { margin: 0; }
.opt-sizes { display: flex; flex-wrap: wrap; gap: .35rem; padding: .45rem .75rem .15rem 2.6rem; }
.opt-sizes[hidden] { display: none; }
.opt-sizes label { margin: 0; cursor: pointer; font-weight: 500; font-size: .85rem; }
.opt-sizes input { position: absolute; opacity: 0; pointer-events: none; }
.opt-sizes span { display: inline-block; padding: .35rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.opt-sizes input:checked + span { border-color: var(--brand); background: var(--brand); color: #fff; }
.opt-sizes input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); }
@media (pointer: coarse) { .opt-sizes span { padding: .5rem .9rem; } }

/* ---------- options as tiles (Welke ketchup? [Tomaten] [Curry] [Zonder]) ---------- */
@media (min-width: 641px) { .sheet { width: min(560px, calc(100% - 32px)); } }
.opt-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; }
.opt-tiles .opt-row { margin: 0; display: flex; }
.opt-tiles .opt {
    position: relative; flex: 1; flex-direction: column; align-items: flex-start; justify-content: center; gap: .15rem;
    min-height: 64px; padding: .6rem 2.1rem .6rem .75rem; line-height: 1.25; overflow-wrap: anywhere;
}
.opt-tiles .opt input { position: absolute; top: 50%; right: .6rem; transform: translateY(-50%); width: 18px; height: 18px; }
.opt-tiles .opt .grow { flex: none; }
.opt-tiles .opt .num:empty { display: none; }
.opt-tiles .opt:has(input:checked) { background: color-mix(in srgb, var(--brand) 7%, #fff); }
.opt:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 1px; }
@media (max-width: 360px) { .opt-tiles { grid-template-columns: 1fr 1fr; } }

/* ---------- Plan & modules (billing page, sign-up) ---------- */
.plan-picker { display: grid; gap: .5rem; }
.plan-group-label { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); margin-top: .5rem; }
.plan-group-label:first-child { margin-top: 0; }
.plan-option { display: flex; gap: .75rem; align-items: flex-start; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; cursor: pointer; margin: 0; font-weight: 400; }
.plan-option:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.plan-option input { accent-color: var(--ink); width: 18px; height: 18px; margin-top: .15rem; flex: none; }
.plan-option strong { display: block; }
.plan-option small { display: block; color: var(--ink-3); font-size: .85rem; }
.plan-price { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.plan-price small { display: block; font-weight: 400; font-size: .75rem; }
.plan-total { display: flex; justify-content: space-between; align-items: baseline; padding: .75rem .25rem 0; margin-top: .25rem; border-top: 1px solid var(--line); font-size: 1.05rem; }
.plan-total strong { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.plan-lines { list-style: none; padding: 0; margin: 0; font-size: .85rem; }
.plan-lines li { display: flex; justify-content: space-between; gap: .75rem; }
.price-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.price-card.featured { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.price-card .amount { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: .5rem 0; }
.price-card .amount small { font-size: 1rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.price-card ul { padding-left: 1.1rem; margin: .75rem 0 0; }
.module-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.module-card { border: 1px dashed var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; background: var(--surface); }
.module-card h3 { margin: 0 0 .25rem; display: flex; justify-content: space-between; gap: 1rem; font-size: 1.05rem; }
@media (max-width: 760px) { .price-cards, .module-cards { grid-template-columns: 1fr; } }

/* ---------- Menu board: the wall of televisions ---------- */
.wall { display: grid; gap: .75rem; align-items: start; }
.wall-tv { display: flex; flex-direction: column; gap: .35rem; aspect-ratio: 16 / 9; padding: .7rem .8rem; border-radius: 8px; background: #15120e; color: #f7f1e3; border: 4px solid #2b2620; text-decoration: none; overflow: hidden; min-width: 0; }
.wall-tv.portrait { aspect-ratio: 9 / 16; }
.wall-tv:hover { border-color: var(--fries); }
.wall-tv strong { font-size: .9rem; }
.wall-tv small { margin-top: auto; color: rgba(247, 241, 227, .55); font-size: .72rem; }
.wall-cats { display: flex; flex-wrap: wrap; gap: .25rem; overflow: hidden; }
.wall-cats span { font-size: .72rem; padding: .05rem .4rem; border-radius: 999px; background: rgba(242, 183, 5, .18); color: #f2b705; white-space: nowrap; }
.board-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .15rem .75rem; margin-top: .35rem; }
@media (max-width: 640px) { .wall { grid-template-columns: 1fr !important; } .wall-tv { grid-row: auto !important; grid-column: auto !important; } }

/* ---------- menu board: photos and style ---------- */
.wall-cats .wall-photo { background: rgba(255, 255, 255, .15); color: #fff; }
.board-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .75rem; margin-top: .75rem; }
.board-photo { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .5rem; display: grid; gap: .4rem; }
.board-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: var(--muted-bg); }
.board-photo input[type=text], .board-photo input[type=number] { padding: .35rem .5rem; font-size: .85rem; }
.board-photo input[type=number] { width: 64px; flex: none; }
.board-colors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin-bottom: 1rem; }
.board-colors label { display: grid; gap: .25rem; font-size: .8rem; font-weight: 600; margin: 0; }
.board-colors input[type=color] { width: 100%; }
