:root {
  --ink: #201e1b;
  --muted: #726e68;
  --paper: #fbfaf7;
  --surface: #fff;
  --line: #e9e5de;
  --red: #b6443d;
  --red-dark: #90342f;
  --green: #31745b;
  --gold: #d9a94f;
  --shadow: 0 16px 45px rgba(34, 29, 23, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }

.store-shell { min-height: 100vh; padding-bottom: 104px; }
.topbar { background: #1d1a18; color: #fff; font-size: .79rem; }
.topbar-inner, .nav-inner, .content { width: min(1160px, calc(100% - 36px)); margin: auto; }
.topbar-inner { min-height: 34px; display: flex; justify-content: space-between; align-items: center; color: #d9d4ce; }
.topbar span { display: inline-flex; align-items: center; gap: 7px; }
.topbar .online-dot { width: 7px; height: 7px; border-radius: 100%; background: #8ac673; box-shadow: 0 0 0 3px rgba(138,198,115,.15); }
.topbar .offline-dot { background: #d68a70; box-shadow: 0 0 0 3px rgba(214,138,112,.15); }
.nav { background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); }
.nav-inner { height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: .02em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1.5px solid var(--red); color: var(--red); border-radius: 50%; font-family: "Playfair Display", serif; font-size: 1.25rem; }
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: .65rem; letter-spacing: .18em; text-transform: uppercase; margin-top: 1px; }
.nav-links { display: flex; align-items: center; gap: 25px; color: #625e59; font-size: .9rem; }
.nav-links a:hover { color: var(--red); }
.button, .icon-button { border: 0; transition: .2s ease; }
.button { padding: 11px 17px; border-radius: 10px; font-weight: 700; font-size: .88rem; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.button-primary { background: var(--red); color: white; box-shadow: 0 8px 17px rgba(182,68,61,.2); }
.button-primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.button-secondary { background: #f4f0eb; color: var(--ink); }
.button-secondary:hover { background: #ebe5dd; }
.button-outline { background: transparent; border: 1px solid #d9d3ca; color: #4c4741; }
.button-outline:hover { border-color: var(--red); color: var(--red); }
.button-sm { padding: 8px 11px; border-radius: 8px; font-size: .78rem; }
.cart-button { position: relative; min-width: 45px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: #f7f3ed; color: var(--ink); }
.cart-button svg, .mobile-order-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.cart-button:hover { background: #eee6dd; }
.cart-count { position: absolute; top: -7px; right: -7px; width: 19px; height: 19px; background: var(--red); color: white; border-radius: 50%; display: grid; place-items: center; font-size: .68rem; font-weight: 700; }
.mobile-order-bar { display: none; }

.cover { position: relative; min-height: 290px; overflow: hidden; color: white; background: #28221e; }
.cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,14,12,.82), rgba(17,14,12,.35) 62%, rgba(17,14,12,.58)), var(--hero-image, url("https://images.unsplash.com/photo-1579871494447-9811cf80d66c?auto=format&fit=crop&w=1800&q=85")) center 54% / cover; }
.cover-inner { position: relative; width: min(1160px, calc(100% - 36px)); margin: auto; padding: 48px 0 42px; }
.crumb { font-size: .8rem; color: #ddd4ca; display: flex; gap: 7px; align-items: center; }
.restaurant-title { margin: 27px 0 10px; font-family: "Playfair Display", serif; font-size: clamp(2.45rem, 5vw, 4.1rem); letter-spacing: -.04em; line-height: .96; }
.restaurant-sub { max-width: 430px; font-size: 1rem; line-height: 1.55; color: #eee8e1; }
.restaurant-meta { margin-top: 21px; display: flex; align-items: center; gap: 18px; font-size: .84rem; }
.restaurant-meta strong { color: #ffe09a; }
.meta-item { display: flex; align-items: center; gap: 6px; }
.cover-badge { position: absolute; right: 0; bottom: 40px; width: 188px; padding: 18px; border: 1px solid rgba(255,255,255,.22); border-radius: 14px; background: rgba(20,17,15,.52); backdrop-filter: blur(9px); }
.cover-badge b { display: block; font-size: .85rem; margin-bottom: 4px; }
.cover-badge span { font-size: .75rem; color: #ded7cf; line-height: 1.35; }

.info-strip { background: white; border-bottom: 1px solid var(--line); }
.info-strip-inner { width: min(1160px, calc(100% - 36px)); margin: auto; display: grid; grid-template-columns: repeat(3, 1fr); }
.info-item { padding: 17px 22px; border-right: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 10px; font-size: .82rem; color: var(--muted); }
.info-item:last-child { border-right: none; }
.info-item b { display: block; color: var(--ink); font-size: .82rem; }
.info-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--red); background: #fcf0ed; }

.category-nav { position: sticky; top: 74px; z-index: 15; background: rgba(251,250,247,.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.category-nav-inner { width: min(1160px, calc(100% - 36px)); margin: auto; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 13px 0; }
.category-nav-inner::-webkit-scrollbar { display: none; }
.chip { white-space: nowrap; background: transparent; color: #68615b; border: 1px solid transparent; padding: 8px 14px; border-radius: 99px; font-size: .82rem; font-weight: 600; }
.chip:hover, .chip.active { background: #fff; color: var(--red); border-color: #e9d7d3; box-shadow: 0 3px 10px rgba(59,43,36,.05); }

.content { padding-top: 34px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 36px 0 18px; }
.section-heading h2 { font-family: "Playfair Display", serif; font-size: 1.8rem; letter-spacing: -.03em; margin: 0; }
.section-heading p { color: var(--muted); font-size: .87rem; margin: 5px 0 0; }
.section-heading a { color: var(--red); font-size: .83rem; font-weight: 700; }
.promo-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.promo { min-height: 190px; padding: 29px 31px; position: relative; overflow: hidden; border-radius: 16px; color: #fff; }
.promo h3 { font-family: "Playfair Display", serif; letter-spacing: -.03em; line-height: 1.06; font-size: 1.85rem; margin: 10px 0; max-width: 255px; }
.promo p { margin: 0 0 18px; font-size: .83rem; color: #f1eee8; }
.promo .eyebrow { letter-spacing: .13em; text-transform: uppercase; font-size: .65rem; font-weight: 700; }
.promo-red { background: #a83c38; }
.promo-red::after { content:""; position: absolute; inset: 0; background: linear-gradient(90deg, #a83c38 28%, transparent), url("https://images.unsplash.com/photo-1615361200141-f45040f367be?auto=format&fit=crop&w=900&q=80") right center / 70% auto no-repeat; opacity: .88; z-index: 0; }
.promo-black { background: #28231f; }
.promo-black::after { content:""; position: absolute; inset: 0; background: linear-gradient(90deg, #28231f 28%, transparent), url("https://images.unsplash.com/photo-1583623025817-d180a2221d0a?auto=format&fit=crop&w=800&q=80") right center / 68% auto no-repeat; opacity: .8; z-index: 0; }
.promo > * { position: relative; z-index: 1; }
.promo .button { background: white; color: var(--ink); padding: 8px 12px; font-size: .75rem; }

.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.product-card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-image { height: 171px; background-position: center; background-size: cover; position: relative; }
.product-tag { position: absolute; top: 11px; left: 11px; padding: 5px 8px; border-radius: 6px; background: #fff7dc; color: #96691d; font-size: .65rem; font-weight: 700; }
.product-body { padding: 15px 15px 14px; flex: 1; display: flex; flex-direction: column; }
.product-topline { display: flex; align-items: start; gap: 8px; justify-content: space-between; }
.product-title { font-size: .98rem; font-weight: 700; line-height: 1.25; }
.diet-icon { color: #5b9c58; font-size: .85rem; }
.product-description { color: var(--muted); font-size: .76rem; line-height: 1.45; margin: 7px 0 13px; min-height: 33px; }
.product-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-size: .96rem; font-weight: 700; }
.add-button { width: 33px; height: 33px; border: 1px solid #e7d1cd; border-radius: 9px; color: var(--red); background: #fffafa; font-size: 1.3rem; line-height: 1; }
.add-button:hover { background: var(--red); color: white; border-color: var(--red); }
.empty-search { padding: 30px; border: 1px dashed #d9d3cc; color: var(--muted); border-radius: 12px; text-align: center; }

.footer { margin-top: 70px; background: #211e1b; color: #e8e2db; padding: 40px 0; }
.footer-inner { width: min(1160px, calc(100% - 36px)); margin: auto; display: flex; justify-content: space-between; gap: 30px; }
.footer p { font-size: .77rem; color: #aaa29a; max-width: 380px; line-height: 1.55; }
.footer-links { display: flex; gap: 24px; align-items: center; color: #cfc7bf; font-size: .81rem; }

.modal-layer, .drawer-layer { position: fixed; inset: 0; z-index: 50; background: rgba(23,20,17,.48); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade-in .16s ease; }
.modal { width: min(550px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: white; border-radius: 17px; box-shadow: 0 24px 90px rgba(0,0,0,.25); }
.modal-header { padding: 19px 21px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.modal-header h3 { margin: 0; font-family: "Playfair Display", serif; font-size: 1.4rem; }
.close { width: 32px; height: 32px; border: none; border-radius: 8px; background: #f4f1ed; color: #5d5751; font-size: 1.25rem; }
.modal-product { display: grid; grid-template-columns: 44% 1fr; }
.modal-product-image { min-height: 255px; background-size: cover; background-position: center; }
.modal-product-content { padding: 23px; }
.modal-product-content p { color: var(--muted); font-size: .85rem; line-height: 1.55; }
.quantity-row { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 17px; }
.quantity-control { display: flex; align-items: center; padding: 3px; border: 1px solid var(--line); border-radius: 9px; }
.quantity-control button { border: none; width: 28px; height: 28px; background: transparent; color: var(--red); font-size: 1.15rem; }
.quantity-control span { min-width: 28px; text-align: center; font-weight: 700; font-size: .88rem; }
.full { width: 100%; }
.form-content { padding: 21px; }
.field { display: grid; gap: 6px; margin-bottom: 15px; }
.field label { font-size: .78rem; font-weight: 700; color: #5a544e; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #ddd6ce; border-radius: 9px; padding: 11px 12px; color: var(--ink); background: white; outline-color: var(--red); font-size: .88rem; }
.field textarea { resize: vertical; min-height: 78px; }
.field-hint { color: var(--muted); font-size: .71rem; line-height: 1.35; }
.settings-form { max-width: 820px; }
.settings-section + .settings-section { border-top: 1px solid var(--line); margin-top: 25px; padding-top: 25px; }
.settings-section h3 { margin: 0; font-size: .95rem; }
.settings-section > p { margin: 5px 0 17px; color: var(--muted); font-size: .77rem; }
.checkbox-field { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid #e2dcd5; border-radius: 9px; background: #fcfbf9; cursor: pointer; }
.checkbox-field input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--red); }
.checkbox-field b, .checkbox-field small { display: block; }
.checkbox-field b { color: #504a44; font-size: .8rem; }
.checkbox-field small { color: var(--muted); font-size: .72rem; margin-top: 3px; line-height: 1.35; }
.settings-actions { display: flex; align-items: center; gap: 10px; margin-top: 23px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.login-hint { background: #fbf4e9; border-radius: 9px; padding: 11px; font-size: .75rem; color: #735a2a; margin: 2px 0 15px; }

.drawer-layer { justify-content: end; padding: 0; }
.drawer { height: 100%; width: min(425px, 100%); background: white; box-shadow: -20px 0 65px rgba(0,0,0,.15); display: flex; flex-direction: column; animation: slide-in .2s ease; }
.drawer-header { padding: 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.drawer-header h3 { font-family: "Playfair Display", serif; margin: 0; font-size: 1.5rem; }
.cart-items { padding: 8px 22px; overflow: auto; flex: 1; }
.cart-empty { text-align: center; color: var(--muted); padding: 70px 24px; font-size: .9rem; }
.cart-empty div { font-size: 2.5rem; margin-bottom: 13px; }
.cart-item { padding: 17px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; align-items: center; }
.cart-item-image { width: 62px; height: 62px; border-radius: 9px; background-size: cover; background-position: center; }
.cart-item-title { font-weight: 700; font-size: .86rem; line-height: 1.25; }
.cart-item-price { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.cart-item-controls { display: flex; gap: 7px; align-items: center; margin-top: 8px; }
.cart-item-controls button { border: 0; background: #f4f0eb; color: var(--red); width: 22px; height: 22px; border-radius: 5px; font-weight: 700; }
.cart-item-controls span { font-size: .78rem; font-weight: 700; min-width: 13px; text-align: center; }
.remove-cart { background: transparent; color: #a79e96; border: 0; font-size: 1rem; }
.cart-summary { padding: 18px 22px 24px; border-top: 1px solid var(--line); background: #fcfbf9; }
.summary-line { display: flex; justify-content: space-between; font-size: .83rem; color: var(--muted); margin: 7px 0; }
.summary-total { padding-top: 12px; border-top: 1px solid #e6dfd7; margin-top: 13px; font-size: 1rem; color: var(--ink); font-weight: 700; }
.cart-summary .button { margin-top: 17px; }

.toast-region { position: fixed; top: 18px; right: 18px; z-index: 100; display: grid; gap: 8px; }
.toast { max-width: 320px; color: white; padding: 12px 15px; border-radius: 10px; background: #2a2622; box-shadow: 0 10px 24px rgba(0,0,0,.18); font-size: .84rem; animation: toast-in .24s ease; }
.toast.success { background: var(--green); }

/* Admin */
.admin-shell { min-height: 100vh; background: #f6f5f2; display: grid; grid-template-columns: 246px 1fr; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; background: #1d1a18; color: #eee8e0; padding: 27px 17px; display: flex; flex-direction: column; }
.admin-brand { padding: 0 10px 27px; border-bottom: 1px solid #37312d; display: flex; align-items: center; gap: 10px; }
.admin-brand .brand-mark { color: #e8c07a; border-color: #e8c07a; }
.admin-brand small { color: #a79e95; }
.admin-menu { padding-top: 20px; display: grid; gap: 4px; }
.admin-menu button { border: 0; background: transparent; color: #bfb5ab; text-align: left; padding: 11px 12px; border-radius: 8px; font-size: .85rem; display: flex; gap: 10px; align-items: center; }
.admin-menu button:hover, .admin-menu button.active { color: white; background: #37302c; }
.admin-menu button.active { box-shadow: inset 3px 0 var(--gold); }
.sidebar-bottom { margin-top: auto; border-top: 1px solid #37312d; padding: 19px 10px 0; }
.user-pill { font-size: .76rem; color: #ada49b; display: flex; gap: 9px; align-items: center; }
.avatar { width: 28px; height: 28px; background: #8d403a; border-radius: 50%; display: grid; place-items: center; color: white; font-weight: 700; }
.admin-main { min-width: 0; }
.admin-top { height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 36px; background: white; border-bottom: 1px solid var(--line); }
.admin-top h1 { font-family: "Playfair Display", serif; font-size: 1.55rem; margin: 0; letter-spacing: -.03em; }
.admin-top-sub { color: var(--muted); font-size: .78rem; margin-top: 3px; }
.admin-page { padding: 31px 36px 55px; max-width: 1450px; }
.dashboard-greeting { display: flex; justify-content: space-between; align-items: center; margin-bottom: 23px; }
.dashboard-greeting h2 { margin: 0; font-size: 1.1rem; }
.dashboard-greeting p { margin: 5px 0 0; color: var(--muted); font-size: .83rem; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.metric-card { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.metric-label { color: var(--muted); font-size: .77rem; display: flex; justify-content: space-between; }
.metric-value { margin-top: 10px; font-size: 1.6rem; letter-spacing: -.04em; font-weight: 700; }
.metric-change { margin-top: 7px; font-size: .72rem; color: var(--green); font-weight: 700; }
.admin-panels { display: grid; grid-template-columns: 1.43fr .86fr; gap: 18px; margin-top: 19px; }
.panel { border-radius: 12px; background: white; border: 1px solid var(--line); overflow: hidden; }
.panel-heading { padding: 18px 19px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.panel-heading h3 { margin: 0; font-size: .95rem; }
.panel-heading span { color: var(--muted); font-size: .74rem; }
.order-row { display: grid; grid-template-columns: 1.1fr 1fr .75fr .8fr; gap: 10px; align-items: center; padding: 14px 19px; border-bottom: 1px solid #f0ece7; font-size: .8rem; }
.order-row:last-child { border-bottom: 0; }
.order-id { font-weight: 700; }
.order-name { color: var(--muted); font-size: .74rem; margin-top: 2px; }
.order-status, .status-badge { justify-self: start; padding: 5px 8px; border-radius: 99px; font-size: .68rem; font-weight: 700; white-space: nowrap; }
.status-pendente { color: #9a6817; background: #fff5df; }
.status-preparo { color: #916127; background: #fbead4; }
.status-saiu { color: #2c7161; background: #e6f5ef; }
.status-entregue { color: #397846; background: #e9f6e9; }
.mini-bars { padding: 20px 19px 14px; display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: 9px; height: 201px; }
.bar-wrap { height: 100%; display: flex; align-items: end; justify-content: center; position: relative; }
.bar { width: 100%; max-width: 24px; border-radius: 5px 5px 2px 2px; background: #dbb470; position: relative; }
.bar-wrap span { position: absolute; bottom: -20px; font-size: .67rem; color: var(--muted); }
.chart-footer { height: 30px; color: var(--muted); font-size: .71rem; display: flex; justify-content: space-between; padding: 0 19px; }
.popular-item { display: flex; align-items: center; gap: 10px; padding: 12px 19px; border-bottom: 1px solid #f0ece7; }
.popular-item:last-child { border: 0; }
.popular-number { color: #b9afa5; font-size: .75rem; font-weight: 700; width: 17px; }
.popular-name { font-size: .78rem; font-weight: 700; flex: 1; }
.popular-count { font-size: .73rem; color: var(--muted); }
.content-card { background: white; border: 1px solid var(--line); border-radius: 12px; }
.toolbar { padding: 17px 19px; display: flex; justify-content: space-between; gap: 15px; align-items: center; border-bottom: 1px solid var(--line); }
.search-input { padding: 10px 12px 10px 32px; width: 250px; border: 1px solid #ddd6ce; border-radius: 8px; outline-color: var(--red); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23938b83' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='m16 16 4 4'/%3E%3C/svg%3E") 10px center / 14px no-repeat; font-size: .8rem; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.admin-table th { text-align: left; color: #8a827a; text-transform: uppercase; letter-spacing: .06em; font-size: .65rem; padding: 12px 19px; background: #fcfbf9; }
.admin-table td { padding: 12px 19px; font-size: .8rem; border-top: 1px solid #f0ece7; vertical-align: middle; }
.admin-product { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.admin-product-img { width: 39px; height: 39px; border-radius: 7px; background-size: cover; background-position: center; }
.mini-button { padding: 6px 8px; border: 1px solid #e2ddd7; color: #665e57; background: white; border-radius: 6px; font-size: .7rem; font-weight: 700; }
.mini-button:hover { border-color: var(--red); color: var(--red); }
.switch { width: 35px; height: 20px; border: 0; background: #d7d1cb; border-radius: 99px; padding: 3px; transition: .2s; }
.switch i { display: block; width: 14px; height: 14px; border-radius: 50%; background: white; transition: .2s; }
.switch.on { background: var(--green); }
.switch.on i { transform: translateX(15px); }
.order-detail { padding: 19px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 15px; }
.order-detail:last-child { border-bottom: 0; }
.order-detail strong { display: block; font-size: .83rem; }
.order-detail small { color: var(--muted); font-size: .72rem; }
.order-total { font-size: .82rem; font-weight: 700; }
.order-select { padding: 7px 8px; font-size: .72rem; color: #504a44; border: 1px solid #ded7cf; border-radius: 6px; background: white; }

/* Painel com backend */
.admin-body { background: #f6f5f2; }
.login-shell { min-height: 100svh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at top, #efe4d7, #f6f5f2 45%); }
.login-card { width: min(430px, 100%); padding: 30px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 18px 50px rgba(28, 22, 18, .12); }
.login-brand { margin-bottom: 30px; }
.login-card h1 { margin: 0; font-family: "Playfair Display", serif; font-size: 2rem; }
.login-card > p { color: var(--muted); font-size: .83rem; line-height: 1.55; margin: 8px 0 24px; }
.login-card code { font-size: .78rem; color: var(--red); }
.login-store-link { display: block; margin-top: 18px; color: var(--muted); font-size: .8rem; text-align: center; }
.logout-button { width: 100%; margin-top: 12px; padding: 8px; border: 1px solid #514943; border-radius: 7px; color: #d5cdc5; background: transparent; font-size: .75rem; }
.logout-button:hover { border-color: #e8c07a; color: #fff; }
.admin-section { margin-top: 19px; }
.empty-state { padding: 32px; color: var(--muted); text-align: center; }
.status-cancelado { color: #8e3b3b; background: #fae8e8; }
.orders-table small { display: inline-block; max-width: 240px; color: var(--muted); line-height: 1.45; }
.upload-row { display: flex; align-items: center; gap: 10px; margin: -2px 0 18px; }
.upload-row input { min-width: 0; flex: 1; font-size: .78rem; }
.admin-inline-form { align-items: end; max-width: 620px; margin-bottom: 20px; }
.admin-inline-form .field { margin: 0; }
.finance-note { padding: 19px; }
.finance-note p { margin: 7px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-in { from { transform: translateX(40px); } to { transform: translateX(0); } }
@keyframes drawer-up { from { transform: translateY(42px); } to { transform: translateY(0); } }
@keyframes toast-in { from { transform: translateY(-12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

@media (max-width: 830px) {
  .nav-links { display: none; }
  .cover-badge { display: none; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .promo-row { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { height: auto; position: relative; padding: 14px 18px; }
  .admin-brand { padding: 0 0 12px; border: 0; }
  .admin-menu { padding: 0; display: flex; overflow-x: auto; gap: 5px; }
  .admin-menu button { white-space: nowrap; padding: 8px 10px; }
  .sidebar-bottom { display: none; }
  .admin-top { height: auto; padding: 16px 20px; }
  .admin-page { padding: 23px 20px 42px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-panels { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { background: #fbfaf7; }
  .store-shell { padding-bottom: 114px; }
  .topbar-inner, .nav-inner, .content, .cover-inner, .info-strip-inner, .category-nav-inner, .footer-inner { width: min(100% - 24px, 1160px); }
  .nav-inner { height: 66px; }
  .topbar-inner { font-size: .68rem; }
  .topbar .hide-phone { display: none; }
  .brand { gap: 8px; font-size: .9rem; }
  .brand-mark { width: 31px; height: 31px; font-size: 1.1rem; }
  .brand small { font-size: .57rem; }
  .cart-button { width: 44px; height: 44px; min-width: 44px; }
  .cover { min-height: 254px; }
  .cover::before { background-position: 58% center; }
  .cover-inner { padding: 33px 0; }
  .restaurant-title { margin-top: 21px; }
  .restaurant-sub { font-size: .87rem; }
  .restaurant-meta { gap: 8px 13px; font-size: .73rem; flex-wrap: wrap; max-width: 310px; }
  .info-strip-inner { grid-template-columns: 1fr; }
  .info-item { justify-content: start; padding: 11px 3px; border-right: 0; border-bottom: 1px solid var(--line); font-size: .75rem; }
  .info-icon { width: 27px; height: 27px; border-radius: 8px; }
  .info-item:last-child { border-bottom: 0; }
  .category-nav { top: 66px; }
  .category-nav-inner { gap: 7px; padding: 10px 0; scroll-padding-left: 12px; }
  .chip { padding: 8px 12px; font-size: .78rem; }
  .content { padding-top: 19px; }
  .section-heading { margin-top: 28px; }
  .section-heading h2 { font-size: 1.55rem; }
  .section-heading p { font-size: .8rem; }
  .promo { min-height: 174px; padding: 24px; }
  .promo h3 { font-size: 1.55rem; }
  .products { grid-template-columns: 1fr; gap: 12px; }
  .product-card { display: grid; grid-template-columns: 122px minmax(0, 1fr); min-height: 146px; border-radius: 13px; }
  .product-card:hover { transform: none; box-shadow: none; }
  .product-image { height: 100%; min-height: 146px; }
  .product-tag { top: 8px; left: 8px; padding: 4px 6px; font-size: .58rem; }
  .product-body { padding: 13px 13px 12px; }
  .product-title { font-size: .91rem; padding-right: 2px; }
  .product-description { min-height: 0; margin: 5px 0 10px; font-size: .72rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .price { font-size: .9rem; }
  .add-button { width: 39px; height: 39px; border-radius: 10px; font-size: 1.35rem; }
  .mobile-order-bar { position: fixed; left: 12px; right: 12px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 30; min-height: 60px; border: 0; border-radius: 14px; padding: 9px 12px; background: #1f1c19; color: white; box-shadow: 0 12px 30px rgba(26,21,17,.3); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; text-align: left; }
  .mobile-order-bar:active { transform: scale(.985); }
  .mobile-order-icon { width: 38px; height: 38px; display: grid; place-items: center; position: relative; background: #38312c; border-radius: 10px; font-size: 1.1rem; }
  .mobile-order-icon i { position: absolute; top: -5px; right: -5px; width: 17px; height: 17px; display: grid; place-items: center; border-radius: 99px; background: var(--red); font-size: .62rem; font-style: normal; }
  .mobile-order-bar small, .mobile-order-bar b { display: block; }
  .mobile-order-bar small { color: #c7bdb5; font-size: .63rem; margin-bottom: 2px; }
  .mobile-order-bar b { font-size: .79rem; }
  .mobile-order-bar strong { font-size: .82rem; text-align: right; }
  .mobile-order-bar em { display: block; color: #e8c07a; font-size: .65rem; font-style: normal; margin-top: 3px; }
  .footer-inner { display: block; }
  .footer { margin-top: 48px; padding: 31px 0; }
  .footer-links { margin-top: 18px; flex-wrap: wrap; gap: 16px; }
  .modal-layer { align-items: end; padding: 0; }
  .modal { width: 100%; max-height: min(88svh, 760px); border-radius: 20px 20px 0 0; }
  .modal-header { position: sticky; top: 0; z-index: 2; background: white; padding: 16px 18px; }
  .modal-header h3 { font-size: 1.22rem; }
  .close { width: 38px; height: 38px; }
  .modal-product { grid-template-columns: 1fr; }
  .modal-product-image { min-height: 154px; }
  .modal-product-content { padding: 18px; }
  .modal-product-content h3 { margin: 0; font-size: 1.08rem; }
  .modal-product-content p { font-size: .8rem; margin: 8px 0; }
  .quantity-row { margin: 18px 0 14px; }
  .quantity-control button { width: 35px; height: 35px; }
  .drawer-layer { align-items: end; }
  .drawer { width: 100%; height: min(88svh, 760px); border-radius: 20px 20px 0 0; animation: drawer-up .22s ease; }
  .drawer-header { padding: 17px 18px; }
  .drawer-header h3 { font-size: 1.28rem; }
  .cart-items { padding: 4px 18px; }
  .cart-item { grid-template-columns: 58px 1fr auto; gap: 10px; padding: 13px 0; }
  .cart-item-image { width: 58px; height: 58px; }
  .cart-summary { padding: 15px 18px calc(15px + env(safe-area-inset-bottom)); }
  .cart-summary .button { min-height: 48px; margin-top: 13px; }
  .form-content { padding: 18px; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .field { margin-bottom: 13px; }
  .field input, .field textarea, .field select { min-height: 46px; font-size: 16px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .settings-actions { align-items: stretch; flex-direction: column; }
  .settings-actions .button { min-height: 46px; }
  .order-row { grid-template-columns: 1fr .8fr; }
  .order-row > :nth-child(2) { display: none; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .search-input { width: 100%; }
  .admin-top .button { padding: 8px 10px; font-size: .75rem; }
  .admin-top h1 { font-size: 1.3rem; }
  .login-shell { padding: 14px; align-items: start; padding-top: max(36px, env(safe-area-inset-top)); }
  .login-card { padding: 23px 18px; border-radius: 14px; }
  .login-card h1 { font-size: 1.65rem; }
  .admin-page { padding: 18px 12px calc(32px + env(safe-area-inset-bottom)); }
  .admin-top { padding: 13px 14px; gap: 10px; }
  .admin-top .button { white-space: nowrap; }
  .dashboard-greeting { align-items: flex-start; gap: 12px; margin-bottom: 16px; }
  .dashboard-greeting .button { padding: 9px 10px; font-size: .72rem; }
  .metric-grid { gap: 10px; }
  .metric-card { padding: 14px; }
  .metric-value { font-size: 1.28rem; }
  .metric-label, .metric-change { font-size: .68rem; }
  .content-card { border-radius: 10px; }
  .admin-table { min-width: 660px; }
  .orders-table { min-width: 790px; }
  .admin-table th, .admin-table td { padding: 11px 12px; }
  .upload-row { align-items: stretch; flex-direction: column; }
  .upload-row .button { width: 100%; min-height: 44px; }
  .admin-inline-form { display: grid; grid-template-columns: 1fr 88px; gap: 10px; }
  .admin-inline-form .button { grid-column: 1 / -1; min-height: 45px; }
  .sidebar-bottom { display: block; }
  .user-pill { display: none; }
  .logout-button { margin: 0; }
}

@media (max-width: 370px) {
  .restaurant-title { font-size: 2.25rem; }
  .product-card { grid-template-columns: 108px minmax(0, 1fr); min-height: 137px; }
  .product-image { min-height: 137px; }
  .mobile-order-bar { left: 8px; right: 8px; }
  .mobile-order-bar strong { font-size: .76rem; }
}

@media (hover: none) {
  .button:hover, .add-button:hover { transform: none; }
}
