/* Destak Burguer — estilo do site e do painel */
:root {
    --primary: #f25c05;
    --primary-dark: #d94f02;
    --primary-soft: #fdf0e7;
    --bg: #f4f5f7;
    --card: #ffffff;
    --text: #20232b;
    --muted: #6b7280;
    --border: #e5e7eb;
    --input: #d8dbe0;
    --badge-bg: #fbe6c8;
    --badge-fg: #6b4218;
    --success: #18794e;
    --danger: #dc2626;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(32, 35, 43, .05), 0 10px 28px -20px rgba(32, 35, 43, .28);
    --shadow-lg: 0 18px 50px -24px rgba(32, 35, 43, .35);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: Rubik, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 84px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
input, select, textarea { font-family: inherit; }

/* ---------------------------------------------------------------- utilidades */
.container { width: 100%; max-width: 1240px; margin: 0 auto; }
.home-blocks { display: flex; flex-direction: column; gap: 16px; padding: 16px; }
.hint { font-size: 11px; color: var(--muted); line-height: 1.4; }
.hint.box { background: #f1f2f4; border-radius: 8px; padding: 10px 12px; font-size: 12px; }
.hidden { display: none !important; }
.old-price { font-size: 12px; color: var(--muted); text-decoration: line-through; }
.italic { font-style: italic; }

/* -------------------------------------------------------------------- topbar */
.coupon-bar {
    display: flex; align-items: center; gap: 12px;
    background: #178a4c; color: #fff; padding: 12px 16px;
}
.coupon-bar p { flex: 1; font-size: 13px; font-weight: 500; }
.coupon-bar button { background: none; border: 0; color: #fff; display: flex; }
.coupon-icon {
    width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.22);
    display: flex; align-items: center; justify-content: center;
}

.topbar { background: var(--primary); display: none; position: sticky; top: 0; z-index: 30; }
.topbar-inner {
    max-width: 1240px; margin: 0 auto; height: 72px; padding: 0 20px;
    display: flex; align-items: center; gap: 8px;
}
.topbar-spacer { flex: 1; }
.topbar-link {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px; border-radius: 8px;
    color: #fff; font-size: 15px; font-weight: 600; border: 0; background: none;
}
.topbar-link:hover { background: rgba(255,255,255,.12); }
.topbar-link.is-active { background: var(--bg); color: var(--primary); }

/* ----------------------------------------------------------------------- flash */
.flash { padding: 12px 16px; font-size: 13px; font-weight: 500; }
.flash-success { background: #e7f6ee; color: var(--success); }
.flash-error { background: #fdeaea; color: var(--danger); }

/* ------------------------------------------------------------------------ hero */
.hero { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin: 0 16px; }
.hero-banner img { width: 100%; height: 186px; object-fit: cover; }
.hero-body { padding: 0 16px 20px; display: flex; flex-direction: column; align-items: center; }
.hero-logo {
    width: 104px; height: 104px; border-radius: 50%; border: 4px solid var(--card);
    margin-top: -52px; object-fit: cover; background: var(--card);
}
.hero-info { text-align: center; margin-top: 12px; }
.hero-info h1 { font-size: 22px; font-weight: 700; }
.hero-meta {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 8px; margin-top: 6px; font-size: 13px; color: var(--muted);
}
.hero-city { display: inline-flex; align-items: center; gap: 4px; color: var(--text); }
.status { font-weight: 700; color: var(--muted); }
.status.is-open { color: var(--success); }
.dot { color: var(--border); }
.link-button { background: none; border: 0; padding: 0; font-size: 13px; font-weight: 600; color: var(--text); }
.link-button:hover { color: var(--primary); text-decoration: underline; }

/* ------------------------------------------------------------------ page head */
.page-header { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.page-header-store { display: flex; align-items: center; gap: 12px; }
.page-header-store img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.page-header-store strong { display: block; font-size: 13px; }
.page-header-store .status { font-size: 11px; }
.page-header h1 { font-size: 20px; margin-top: 16px; }
.page-header p { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ------------------------------------------------------------------- delivery */
.delivery-bar {
    width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
    background: var(--card); border: 0; border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 16px; color: var(--text);
}
.delivery-bar svg:first-child { color: var(--muted); flex: none; }
.delivery-bar svg:last-child { color: var(--primary); flex: none; }
.delivery-bar span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.delivery-bar strong { font-size: 13px; }
.delivery-bar small { font-size: 12px; color: var(--muted); }

/* -------------------------------------------------------------------- toolbar */
.toolbar { display: flex; align-items: center; gap: 12px; }
.toolbar select, .search-box {
    height: 44px; background: var(--card); border: 1px solid var(--border);
    border-radius: 8px; font-size: 14px;
}
.toolbar select { padding: 0 36px 0 16px; font-weight: 500; flex: 1; appearance: none;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
.toolbar select:focus, .search-box:focus-within { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(242,92,5,.15); }
.search-box { display: none; align-items: center; gap: 8px; padding: 0 14px; flex: 1; max-width: 320px; margin-left: auto; }
.search-box svg { color: var(--muted); flex: none; }
.search-box input { border: 0; background: none; outline: none; width: 100%; font-size: 14px; color: var(--text); }
.mobile-search { display: flex; max-width: none; margin-left: 0; }
.search-toggle {
    width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
    border-radius: 8px; border: 1px solid var(--border); background: var(--card); color: var(--text); flex: none;
}

/* --------------------------------------------------------------------- seções */
.menu-section { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 24px; }
.menu-section h2 { font-size: 18px; font-weight: 700; }
.section-description { font-size: 13px; color: var(--muted); line-height: 1.45; margin-top: -6px; }
.carousel { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.carousel::-webkit-scrollbar { display: none; }
.carousel .item-card { width: 248px; flex: none; }
.item-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.item-card {
    background: var(--card); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow);
    display: flex; flex-direction: column; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease;
}
.item-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.item-image { aspect-ratio: 4 / 3; background: #eceef1; overflow: hidden; }
.item-image img { width: 100%; height: 100%; object-fit: cover; }
.item-body { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.badge {
    align-self: flex-start; background: var(--badge-bg); color: var(--badge-fg);
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    padding: 4px 8px; border-radius: 4px;
}
.item-body h3 { font-size: 15px; line-height: 1.25; font-weight: 700; }
.item-body p {
    font-size: 13px; color: var(--muted); line-height: 1.35; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.item-price { margin-top: auto; padding-top: 8px; display: flex; align-items: baseline; gap: 8px; }
.item-price strong { font-size: 15px; color: var(--primary); }

.empty-card {
    background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 40px 24px; text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center;
}
.empty-card p { font-size: 12px; color: var(--muted); }

/* ------------------------------------------------------------------- layout */
.shell { max-width: 1240px; margin: 0 auto; display: flex; gap: 24px; padding: 16px 0 0; }
.content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.bag-panel { display: none; }

/* --------------------------------------------------------------------- sacola */
.bag-panel, .bag-sheet-card {
    width: 300px; flex: none; background: var(--card); border-radius: var(--radius);
    box-shadow: var(--shadow); display: flex; flex-direction: column; max-height: calc(100vh - 116px);
    position: sticky; top: 92px; overflow: hidden;
}
.bag-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.bag-head h2 { font-size: 15px; }
.bag-head span { font-size: 12px; color: var(--muted); }
.bag-lines { list-style: none; margin: 0; padding: 0 16px; overflow-y: auto; max-height: 42vh; }
.bag-line { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.bag-line img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex: none; }
.bag-line-body { flex: 1; min-width: 0; }
.bag-line-body strong { display: block; font-size: 13px; line-height: 1.3; }
.bag-line-body small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.bag-line-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.bag-empty { padding: 40px 24px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bag-empty svg { color: var(--border); }
.bag-foot { margin-top: auto; padding: 12px 16px 16px; }
.coupon-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px dashed var(--border); background: none; border-left: 0; border-right: 0; border-bottom: 0; width: 100%; text-align: left; }
.coupon-row strong { display: block; font-size: 13px; }
.coupon-row small { font-size: 11px; color: var(--muted); }
.coupon-panel { border: 1px solid var(--border); border-radius: 8px; padding: 12px; margin-bottom: 12px; }
.coupon-panel p { font-size: 12px; color: var(--muted); margin-top: 4px; }
.totals { border-top: 1px dashed var(--border); padding-top: 10px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.totals > div { display: flex; justify-content: space-between; color: var(--muted); }
.totals .discount { color: var(--success); font-weight: 500; }
.totals .total { color: var(--text); font-weight: 700; font-size: 16px; margin-top: 4px; }
.min-warning { background: var(--primary-soft); color: var(--primary); font-size: 11px; font-weight: 500; padding: 8px 12px; border-radius: 8px; margin-top: 10px; }

.primary-button {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; width: 100%; border: 0; border-radius: 8px;
    background: var(--primary); color: #fff; font-size: 14px; font-weight: 700;
    transition: background .15s ease;
}
.primary-button:hover { background: var(--primary-dark); }
.primary-button:disabled { background: var(--border); color: var(--muted); cursor: not-allowed; }
.ghost-button {
    display: flex; align-items: center; justify-content: center;
    height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--border);
    background: var(--card); font-size: 12px; font-weight: 600; color: var(--text);
}
.ghost-button:hover { background: #f3f4f6; }

.qty-control { display: flex; align-items: center; height: 44px; border: 1px solid var(--border); border-radius: 8px; flex: none; }
.qty-control button { width: 38px; height: 100%; border: 0; background: none; color: var(--primary); font-size: 18px; }
.qty-control span { width: 26px; text-align: center; font-weight: 700; }

/* ------------------------------------------------------------------- mobile */
.floating-bag {
    position: fixed; left: 12px; right: 12px; bottom: 72px; z-index: 25;
    display: flex; align-items: center; gap: 10px; padding: 12px 16px;
    border: 0; border-radius: 10px; background: var(--primary); color: #fff;
    box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 700;
}
.floating-bag span { flex: 1; text-align: left; }
.floating-bag small { font-weight: 500; opacity: .9; font-size: 12px; }

.bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: var(--card); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0; font-size: 11px; font-weight: 500; color: var(--muted); }
.bottom-nav a.is-active { color: var(--primary); }

/* ------------------------------------------------------------------- footer */
.site-footer { background: var(--card); border-top: 1px solid var(--border); margin-top: 32px; padding: 24px 16px 100px; text-align: center; }
.site-footer p { font-size: 12px; color: var(--muted); }
.footer-small { font-size: 11px; margin-top: 4px; }

/* -------------------------------------------------------------------- modais */
.overlay {
    position: fixed; inset: 0; z-index: 50; background: rgba(15, 18, 24, .7);
    display: flex; align-items: flex-end; justify-content: center; padding: 0;
}
.modal { background: var(--card); width: 100%; max-height: 92vh; display: flex; flex-direction: column; border-radius: 16px 16px 0 0; overflow: hidden; }
.modal-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.modal-head h2 { font-size: 16px; flex: 1; }
.modal-padded { padding: 16px; overflow-y: auto; }
.modal-footer { padding: 12px 16px; border-top: 1px solid var(--border); }
.icon-button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; color: var(--text); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.icon-button:hover { background: #f1f2f4; }
.modal.small { max-width: 440px; }
.modal.sheet { max-width: 520px; }
.sheet-body { overflow-y: auto; display: flex; flex-direction: column; }
.sheet-body .bag-lines { max-height: 40vh; }

.product-hero { position: relative; }
.product-hero img { width: 100%; height: 200px; object-fit: cover; }
.floating-close { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,.92); box-shadow: var(--shadow); }
.product-body { padding: 16px; overflow-y: auto; }
.product-body h2 { font-size: 20px; }
.product-body > p { font-size: 14px; color: var(--muted); line-height: 1.5; margin-top: 8px; }
.product-price { display: flex; align-items: baseline; gap: 8px; margin-top: 12px; }
.product-price strong { color: var(--primary); font-size: 18px; }
.product-footer { display: flex; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--border); }
.addon-group { border-top: 1px dashed var(--border); margin-top: 20px; padding-top: 16px; }
.addon-group-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.addon-group-head h3 { font-size: 15px; }
.addon-tag { font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; background: #f1f2f4; color: var(--muted); flex: none; }
.addon-tag.required { background: var(--primary-soft); color: var(--primary); }
.addon-hint { font-size: 12px; color: var(--muted); margin-top: 2px; }
.addon-option {
    display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
    border: 1px solid var(--border); border-radius: 8px; background: var(--card);
    padding: 10px 12px; margin-top: 8px; font-size: 14px;
}
.addon-option.is-active { border-color: var(--primary); background: var(--primary-soft); }
.addon-option:disabled { opacity: .5; cursor: not-allowed; }
.addon-check { width: 18px; height: 18px; border: 2px solid var(--input); border-radius: 4px; flex: none; display: flex; align-items: center; justify-content: center; }
.addon-option[data-single="1"] .addon-check { border-radius: 50%; }
.addon-option.is-active .addon-check { border-color: var(--primary); background: var(--primary); }
.addon-option.is-active .addon-check::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.addon-option .price { margin-left: auto; color: var(--primary); font-weight: 600; }
.field-label { display: block; font-size: 12px; font-weight: 600; margin: 12px 0 4px; }
.product-body .field-label { margin-top: 20px; }
input, select, textarea {
    width: 100%; border: 1px solid var(--input); border-radius: 8px; background: var(--card);
    font-size: 14px; color: var(--text); padding: 10px 12px; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(242,92,5,.15); }
textarea { resize: vertical; }
.form-error { color: var(--danger); font-size: 11px; margin-top: 4px; }

/* ----------------------------------------------------------------- checkout */
.checkout { max-width: 560px; }
.checkout-body { overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.checkout-step { display: flex; flex-direction: column; gap: 12px; }
.checkout-step[hidden] { display: none; }
.type-option { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); }
.type-option.is-active { border-color: var(--primary); background: var(--primary-soft); }
.type-option strong { display: block; font-size: 14px; }
.type-option small { display: block; font-size: 12px; color: var(--muted); }
.type-icon { width: 40px; height: 40px; border-radius: 50%; background: #f1f2f4; color: var(--muted); display: flex; align-items: center; justify-content: center; flex: none; }
.type-option.is-active .type-icon { background: var(--primary); color: #fff; }
.zone-button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 12px; border: 1px dashed var(--border); border-radius: 8px; background: transparent; color: var(--primary); font-size: 13px; font-weight: 600; }
.checkout-footer { border-top: 1px solid var(--border); padding: 12px 16px; }
.checkout-total { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.checkout-total strong { font-weight: 700; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 12px; }
.grid-cep { display: grid; grid-template-columns: 1fr; gap: 12px; }
.section-line { border-top: 1px dashed var(--border); padding-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.section-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.input-icon { position: relative; }
.input-icon input { padding-right: 36px; }
.input-icon span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 12px; }
.payment-option { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); }
.payment-option.is-active { border-color: var(--primary); background: var(--primary-soft); }
.payment-option strong { font-size: 14px; display: block; }
.payment-option small { font-size: 11px; color: var(--muted); display: block; }
.radio-dot { width: 18px; height: 18px; border: 2px solid var(--input); border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; }
.payment-option.is-active .radio-dot { border-color: var(--primary); background: var(--primary); }
.payment-option.is-active .radio-dot::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.review-head { background: #f1f2f4; border-radius: 8px; padding: 12px; font-size: 12px; color: var(--muted); }
.review-head strong { display: block; color: var(--text); font-size: 13px; }
.review-line { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.review-line .qty { color: var(--primary); font-weight: 700; font-size: 12px; }
.review-line div { flex: 1; }
.review-line small { display: block; color: var(--muted); font-size: 11px; }
.done-box { text-align: center; padding: 12px 0; display: flex; flex-direction: column; gap: 10px; }
.done-icon { width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--success); color: var(--success); font-size: 26px; display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.done-box p { font-size: 13px; color: var(--muted); }
.done-actions { display: flex; gap: 8px; }
.done-actions > * { flex: 1; }

/* -------------------------------------------------------------------- info */
.info-modal { max-width: 520px; }
.info-store { display: flex; align-items: center; gap: 12px; flex: 1; }
.info-store img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.info-store strong { display: block; font-size: 15px; }
.info-store small { font-size: 12px; color: var(--muted); }
.info-body h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 20px 0 8px; }
.info-body h3:first-child { margin-top: 0; }
.info-body p { font-size: 14px; line-height: 1.5; }
.info-link { font-size: 14px; font-weight: 600; color: var(--primary); }
.hours-list { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.hours-list li { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; color: var(--muted); }
.hours-list strong { color: var(--text); font-weight: 500; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; font-size: 12px; }

/* ------------------------------------------------------------------- pedidos */
.order-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.order-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px; border-bottom: 1px solid var(--border); }
.order-head strong { display: block; font-size: 14px; }
.order-head small { font-size: 11px; color: var(--muted); }
.pill { background: var(--primary-soft); color: var(--primary); font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.order-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.order-lines { list-style: none; margin: 0; padding: 0; }
.order-lines li { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.order-lines .qty { color: var(--primary); font-weight: 700; font-size: 12px; }
.order-lines div { flex: 1; }
.order-lines small { display: block; font-size: 11px; color: var(--muted); }
.order-meta { background: #f1f2f4; border-radius: 8px; padding: 12px; font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.order-meta strong { color: var(--text); }

/* -------------------------------------------------------------------- perfil */
.card-panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.card-panel h2 { font-size: 15px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.link-danger { background: none; border: 0; color: var(--muted); font-size: 12px; font-weight: 600; }
.link-danger:hover { color: var(--danger); }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
.form-stack { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.form-stack .primary-button { margin-top: 8px; }
.grid-city { display: grid; grid-template-columns: 1fr 80px; gap: 12px; }
.span-2 { grid-column: span 1; }
.auth-grid { display: grid; gap: 16px; }
.store-about { font-size: 14px; margin-top: 12px; }
.store-contact { list-style: none; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--border); display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.store-contact a { color: var(--primary); font-weight: 500; }

/* --------------------------------------------------------------------- admin */
.admin-body { background: var(--bg); padding: 0 0 40px; }
.admin-header { background: #20232b; color: #fff; }
.admin-header-inner { max-width: 1240px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-brand { display: flex; align-items: center; gap: 10px; margin-right: 8px; }
.admin-brand img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.admin-brand strong { display: block; font-size: 14px; }
.admin-brand small { font-size: 11px; color: rgba(255,255,255,.6); }
.admin-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; width: 100%; order: 3; }
.admin-tab { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 12px; border-radius: 8px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.7); }
.admin-tab:hover { background: rgba(255,255,255,.1); color: #fff; }
.admin-tab.is-active { background: var(--primary); color: #fff; }
.admin-logout { margin-left: auto; background: none; border: 0; color: rgba(255,255,255,.7); font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.admin-main { max-width: 1240px; margin: 0 auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.admin-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; background: var(--bg); }
.admin-login form { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; width: 100%; max-width: 380px; }
.admin-login h1 { font-size: 20px; margin-top: 16px; }
.admin-login p { font-size: 13px; color: var(--muted); margin-top: 6px; }
.admin-login .primary-button { margin-top: 16px; }
.login-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.period-tabs { display: flex; flex-wrap: wrap; gap: 4px; background: var(--card); border-radius: 8px; box-shadow: var(--shadow); padding: 4px; }
.period-tabs button { border: 0; background: none; padding: 9px 14px; border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.period-tabs button.is-active { background: var(--primary); color: #fff; }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.metric-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.metric-card header { display: flex; align-items: center; justify-content: space-between; }
.metric-card header span { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.metric-icon { width: 30px; height: 30px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.metric-card strong { display: block; font-size: 20px; margin-top: 8px; }
.metric-card small { font-size: 11px; color: var(--muted); }
.admin-warning { background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 500; padding: 10px 14px; border-radius: 8px; }
.admin-grid { display: grid; gap: 16px; }
.admin-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.admin-card > h2 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 14px 16px; border-bottom: 1px solid var(--border); }
.admin-card.padded { padding: 16px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.admin-table th { background: #f7f8f9; text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 16px; font-weight: 600; }
.admin-table td { padding: 10px 16px; border-top: 1px solid var(--border); vertical-align: middle; }
.admin-table td.right, .admin-table th.right { text-align: right; }
.admin-table img { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; }
.table-scroll { overflow-x: auto; }
.muted { color: var(--muted); }
.green { color: var(--success); }
.tiny { font-size: 11px; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.row-actions a, .row-actions button { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 6px; border: 0; background: none; color: var(--muted); }
.row-actions a:hover, .row-actions button:hover { background: #f1f2f4; color: var(--text); }
.admin-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-toolbar .search-box { display: flex; position: static; max-width: none; flex: 1; min-width: 180px; margin: 0; }
.admin-toolbar select { width: auto; }
.status-pill { font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: #f1f2f4; color: var(--muted); }
.status-pill.on { background: #e7f6ee; color: var(--success); }
.admin-note { font-size: 12px; color: var(--muted); line-height: 1.6; }
.switch { position: relative; width: 44px; height: 24px; border-radius: 999px; border: 0; background: var(--input); flex: none; }
.switch.on { background: var(--success); }
.switch span { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s ease; }
.switch.on span { left: 22px; }
.settings-row { display: flex; align-items: flex-start; gap: 12px; }
.settings-row > div { flex: 1; }
.settings-row h3 { font-size: 14px; }
.settings-row p { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.admin-form { display: grid; gap: 12px; }
.admin-form .grid-2 { display: grid; grid-template-columns: 1fr; gap: 12px; }
.admin-form .grid-3 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.checkbox-row { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; font-weight: 500; }
.checkbox-row label { display: flex; align-items: center; gap: 6px; }
.checkbox-row input { width: auto; }
.preview-image { height: 120px; width: 100%; object-fit: cover; border-radius: 8px; }
.admin-actions { display: flex; gap: 8px; }
.admin-actions .primary-button, .admin-actions .ghost-button { width: auto; }

/* ------------------------------------------------------------------ desktop */
@media (min-width: 768px) {
    body { padding-bottom: 0; }
    .coupon-bar, .bottom-nav { display: none; }
    .topbar { display: block; }
    .hero { margin: 0; }
    .hero-banner img { height: 300px; }
    .hero-body { flex-direction: row; align-items: flex-end; gap: 24px; padding: 0 24px 24px; }
    .hero-logo { width: 152px; height: 152px; border-radius: 12px; border-width: 6px; margin-top: -76px; }
    .hero-info { text-align: left; margin-top: 0; padding-bottom: 8px; }
    .hero-info h1 { font-size: 32px; }
    .hero-meta { justify-content: flex-start; font-size: 15px; }
    .home-blocks { padding: 16px 20px; }
    .item-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
    .search-box { display: flex; }
    .mobile-search, .search-toggle { display: none; }
    .carousel { margin: 0; padding-left: 0; padding-right: 0; }
    .carousel .item-card { width: 268px; }
    .page-header { padding: 16px 24px; }
    .page-header h1 { font-size: 24px; }
    .site-footer { padding-bottom: 24px; }
    .modal { border-radius: 16px; max-width: 560px; }
    .overlay { align-items: center; padding: 24px; }
    .grid-2 { grid-template-columns: 1fr 1fr; }
    .grid-cep { grid-template-columns: 180px 1fr; }
    .span-2 { grid-column: span 2; }
    .auth-grid { grid-template-columns: 1fr 1fr; }
    .form-grid { grid-template-columns: 1fr 1fr; }
    .admin-tabs { width: auto; order: 0; margin-left: 8px; display: flex; }
    .admin-tab { padding: 9px 14px; }
    .admin-grid { grid-template-columns: 1.6fr 1fr; }
    .metric-grid { grid-template-columns: repeat(4, 1fr); }
    .admin-form .grid-2 { grid-template-columns: 1fr 1fr; }
    .admin-form .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .floating-bag { display: none; }
}

@media (min-width: 1024px) {
    .shell { padding: 16px 20px 0; }
    .bag-panel { display: flex; }
    .content-padded { padding: 0; }
}
