/* Tia Rosa — cardápio e gestão locais. */
:root { font-family: Calibri; font-size: 16px; color-scheme: light; --paper:#fdfefb; --white:#fff; --ink:#25342a; --green:#2e4c36; --muted:#657164; --line:#e5eae1; --soft:#f4f8f3; --yellow:#ffcf55; --yellow-soft:#fff7d8; --red:#a64036; --radius:14px; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:70px; }
body { margin:0; color:var(--ink); background:var(--paper); line-height:1.5; }
body.modal-open { overflow:hidden; }
button,input,select,textarea { font:inherit; }
button,a { -webkit-tap-highlight-color:transparent; touch-action:manipulation; }
button { cursor:pointer; }
button:disabled { opacity:.55; cursor:not-allowed; }
:focus-visible { outline:3px solid #b5810a; outline-offset:3px; }
[hidden] { display:none!important; }
a { color:var(--green); }
img { display:block; max-width:100%; }
h1,h2,h3,p { margin-top:0; }
h1,h2,h3 { line-height:1.25; letter-spacing:-.015em; }
h1 { font-size:1.6rem; margin-bottom:8px; }
h2 { font-size:1.3rem; margin-bottom:12px; }
h3 { font-size:1.075rem; margin-bottom:7px; }
p { margin-bottom:16px; }
small { font-size:.75rem; }
svg { flex-shrink:0; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.skip-link { position:fixed; top:8px; left:8px; z-index:150; transform:translateY(-150%); background:var(--yellow); color:var(--ink); border-radius:8px; padding:12px 16px; }
.skip-link:focus { transform:translateY(0); }
.muted { color:var(--muted); }
.danger-text { color:var(--red)!important; }
.eyebrow { display:block; font-size:.75rem; font-weight:700; letter-spacing:.065em; color:var(--muted); margin-bottom:6px; }
.icon-image { width:24px; height:24px; object-fit:contain; }
.status-dot { width:6px; height:6px; border-radius:50%; background:#6f8661; display:inline-block; flex-shrink:0; }
.app-shell { display:block; max-width:1440px; margin:0 auto; min-height:100vh; }
body[data-mode='gestao'] .app-shell { display:grid; grid-template-columns:216px minmax(0,1fr); }
.sidebar { display:none; }
body[data-mode='gestao'] .sidebar { display:flex; flex-direction:column; position:sticky; top:0; height:100dvh; padding:24px 16px 20px; background:white; border-right:1px solid var(--line); min-width:0; }
.brand { display:block; margin-bottom:22px; text-decoration:none; }
.logo-lockup { width:180px; height:80px; object-fit:contain; object-position:left center; }
.sidebar-label { font-size:.75rem; color:var(--muted); font-weight:700; padding:0 10px; margin-bottom:11px; }
.sidebar-nav { display:flex; flex-direction:column; gap:5px; }
.nav-btn { display:flex; align-items:center; gap:9px; width:100%; min-height:46px; text-align:left; padding:11px 10px; border:0; border-radius:10px; background:transparent; color:var(--green); font-size:.875rem; font-weight:600; }
.nav-btn img { width:23px; height:23px; object-fit:contain; }
.nav-btn:hover { background:var(--soft); }
.nav-btn.active { background:var(--yellow-soft); box-shadow:inset 3px 0 0 var(--yellow); color:var(--ink); }
.nav-count { margin-left:auto; font-size:.75rem; padding:1px 6px; border-radius:5px; background:var(--yellow); color:var(--ink); }
.sidebar-footer { margin-top:auto; padding:25px 10px 0; color:var(--muted); font-size:.75rem; }
.sidebar-footer p { margin:7px 0 13px; font-size:.75rem; }
.shop-open { display:flex; align-items:center; gap:7px; font-size:.875rem; font-weight:600; color:var(--green); }
.main-content { display:grid; grid-template-columns:minmax(0,1fr) auto; width:100%; min-width:0; max-width:1120px; margin:0 auto; padding:20px 28px 36px; }
.main-content>* { grid-column:1/-1; }
body[data-mode='gestao'] .main-content { display:block; max-width:1200px; }
.topbar { grid-column:1; grid-row:1; display:flex; align-items:center; justify-content:space-between; gap:18px; border-bottom:1px solid var(--line); padding-bottom:14px; margin-bottom:14px; }
.page-heading { min-width:0; }
.page-heading h1 { font-size:1.15rem; margin:0; }
.page-heading .eyebrow { display:none; }
.topbar-actions,.staff-header-actions { display:flex; align-items:center; gap:10px; }
.store-header { display:flex; align-items:center; justify-content:space-between; gap:20px; width:100%; }
.store-identity { display:flex; align-items:center; gap:15px; min-width:0; }
.store-identity>img,.store-identity .logo-lockup { width:110px; height:52px; object-fit:contain; flex-shrink:0; }
.store-identity h1,.store-identity h2 { font-size:1.125rem; margin:0 0 3px; }
.store-identity p,.store-meta { color:var(--muted); font-size:.875rem; margin:0; }
.store-meta { display:flex; align-items:center; flex-wrap:wrap; gap:5px 13px; }
.location-button { display:flex; flex-direction:column; align-items:flex-start; gap:0; max-width:280px; min-height:44px; padding:9px 12px; border:1px solid var(--line); border-radius:10px; background:white; color:var(--green); font-size:.875rem; text-align:left; }
.location-button>span { font-size:.75rem; color:var(--muted); }
.location-button>strong,.location-button>span { max-width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.location-button strong,.location-button small { display:block; }
.location-button small { color:var(--muted); }
.location-button>.icon-image { width:23px; height:23px; }
.customer-topnav { grid-column:2; grid-row:1; display:flex; align-items:center; gap:6px; padding:0 0 14px 18px; margin:0 0 14px; border-bottom:1px solid var(--line); }
.customer-topnav .nav-btn { width:auto; padding:9px 13px; min-height:44px; white-space:nowrap; }
.customer-topnav .nav-btn.active { box-shadow:none; }
.customer-topnav .nav-btn img { width:21px; height:21px; }
.profile-button { display:inline-flex; align-items:center; gap:8px; background:transparent; border:0; color:var(--green); min-height:44px; padding:0; font-size:.875rem; font-weight:600; }
.avatar { display:inline-grid; place-items:center; width:38px; height:38px; border-radius:50%; background:var(--soft); color:var(--green); font-size:.875rem; font-weight:700; flex-shrink:0; }
.mobile-brand { display:none; }
.view-heading { margin:20px 0; }
.view-heading h1 { font-size:1.5rem; margin:0; }
body[data-view='inicio'] .view-heading { display:none; }
.demo-notice { display:flex; align-items:center; flex-wrap:wrap; gap:6px; color:var(--muted); font-size:.75rem; line-height:1.4; margin-bottom:16px; }
.demo-notice .status-dot { background:#b89328; width:5px; height:5px; }
.demo-detail { margin-left:auto; }
.page-footer { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; color:var(--muted); font-size:.75rem; padding-top:30px; margin-top:15px; }
.button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:11px 17px; border:1px solid transparent; border-radius:10px; color:var(--green); background:var(--soft); font-size:.875rem; font-weight:700; line-height:1.3; text-decoration:none; }
.button.primary,.button-primary { background:var(--yellow); border-color:var(--yellow); color:var(--ink); }
.button.primary:hover,.button-primary:hover { background:#f4c245; border-color:#f4c245; }
.button.secondary,.button.ghost,.button-secondary,.button-ghost { background:white; color:var(--green); border-color:#dce4d7; }
.button.secondary:hover,.button.ghost:hover { background:var(--soft); border-color:#bdcdb4; }
.button.small { min-height:44px; padding:9px 12px; }
.button.danger { background:#fff0ee; color:var(--red); border-color:#eed0c9; }
.button.full,.full-width { width:100%; }
.text-button { border:0; background:transparent; color:var(--green); font-size:.875rem; font-weight:700; padding:10px 0; min-height:44px; }
.icon-button,.close-button,.modal-close { display:inline-grid; place-items:center; width:44px; height:44px; border:1px solid var(--line); border-radius:50%; background:white; color:var(--green); font-size:1.5rem; flex-shrink:0; }
.button svg { width:18px; height:18px; }
.button .icon-image { width:22px; height:22px; }
.storefront { min-width:0; }
.store-summary { display:flex; align-items:center; gap:16px; margin-bottom:16px; font-size:.875rem; }
.store-summary h2 { font-size:1.25rem; margin:0 0 5px; }
.store-summary p { font-size:.875rem; color:var(--muted); margin:0 0 7px; }
.store-mascot { width:60px; height:64px; object-fit:contain; flex-shrink:0; }
.delivery-pills { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.delivery-pills>span { display:inline-flex; align-items:center; gap:5px; font-size:.875rem; color:var(--green); }
.catalog-toolbar { display:flex; align-items:center; gap:16px; margin-bottom:14px; }
.catalog-toolbar>.muted { font-size:.875rem; }
.search-field,.search-box { display:flex; align-items:center; gap:10px; flex:1; padding:0 13px; min-height:48px; border:1px solid var(--line); border-radius:10px; background:white; margin:0; }
.search-field>span,.search-box>span { font-size:1.5rem; color:var(--muted); }
.search-field input,.search-box input { width:100%; min-height:46px; border:0; background:transparent; color:var(--ink); font-size:1rem; padding:10px 0; }
.search-field:focus-within,.search-box:focus-within { outline:3px solid #b5810a; outline-offset:2px; }
.search-field input:focus,.search-box input:focus { outline:0; }
.search-clear { flex-shrink:0; width:44px; height:44px; border:0; background:transparent; color:var(--green); font-size:1.2rem; }
.tabs { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 20px; }
.tab { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:9px 15px; border:1px solid var(--line); border-radius:9px; background:white; color:var(--green); font-size:.875rem; font-weight:700; white-space:nowrap; }
.tab.active,.tab.selected { background:var(--yellow-soft); border-color:var(--yellow); color:var(--ink); }
.category-tabs { position:sticky; top:0; z-index:20; flex-wrap:nowrap; overflow-x:auto; padding:10px 0; margin:3px 0 14px; background:var(--paper); scrollbar-width:none; border-bottom:1px solid var(--line); }
.category-tabs::-webkit-scrollbar { display:none; }
.category-tabs .tab { flex-shrink:0; }
.section-head { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; margin:22px 0 13px; }
.section-head h2,.section-head h3 { margin:0; }
.section-head>.muted,.section-head p { font-size:.875rem; color:var(--muted); margin:4px 0 0; }
.section-head .eyebrow { margin-bottom:4px; }
.panel>.section-head:first-child,.order-card>.section-head:first-child { margin-top:0; }
.menu-section { margin-bottom:24px; scroll-margin-top:77px; }
.menu-section>.section-head { margin-top:16px; }
.product-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.product-card { display:grid; grid-template-columns:minmax(0,1fr) 96px; align-items:center; gap:14px; padding:16px; background:white; border:1px solid var(--line); border-radius:var(--radius); min-width:0; }
.product-card:hover { border-color:#c5d3bc; }
.product-info { grid-column:1; grid-row:1; min-width:0; }
.product-name-button { display:flex; align-items:center; width:100%; min-height:44px; border:0; padding:0; margin:0 0 3px; background:transparent; text-align:left; color:var(--ink); }
.product-name-button h3,.product-info h3 { font-size:1rem; margin-bottom:5px; font-weight:700; }
.product-name-button h3 { margin-bottom:0; }
.product-info p { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; font-size:.875rem; line-height:1.4; color:var(--muted); margin:0 0 9px; }
.product-category { display:none; }
.product-visual { grid-column:2; grid-row:1; position:relative; width:96px; height:104px; align-self:center; }
.product-image { display:flex; align-items:center; justify-content:center; width:96px; height:96px; padding:0; border:0; border-radius:10px; overflow:hidden; background:#fafbf8; position:relative; }
.product-card>.product-image { grid-column:2; grid-row:1; }
.product-image img,.product-image .icon-image { width:100%; height:100%; object-fit:cover; }
.product-image img[src*='assets/icons/'] { object-fit:contain; padding:6px; }
.product-tag { display:none; }
.product-footer { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.product-footer strong { color:var(--ink); font-size:1rem; line-height:1.2; }
.product-footer small { display:inline; font-size:.75rem; color:var(--muted); margin-left:4px; }
.add-button { display:grid; place-items:center; min-width:44px; height:44px; border:0; border-radius:9px; background:var(--yellow); color:var(--ink); font-size:1.5rem; font-weight:600; }
.add-button:hover { background:#f4c245; }
.product-visual>.add-button { position:absolute; right:-3px; bottom:-2px; border:2px solid white; }
.fresh-banner,.subscription-banner { display:flex; align-items:center; gap:14px; border:1px solid var(--line); border-radius:var(--radius); background:var(--soft); padding:17px 20px; margin-top:22px; }
.fresh-icon .icon-image { width:40px; height:40px; }
.fresh-banner h3,.subscription-banner h2 { font-size:1rem; margin-bottom:4px; }
.fresh-banner p,.subscription-banner p { font-size:.875rem; color:var(--muted); margin:0; }
.fresh-banner .button,.subscription-banner .button { margin-left:auto; flex-shrink:0; }
.compact-notice { font-size:.875rem; color:var(--muted); border:1px solid var(--line); background:var(--soft); padding:14px 16px; border-radius:11px; margin:20px 0; }
.hero { display:grid; grid-template-columns:minmax(0,1fr) 150px; gap:20px; padding:24px; border:1px solid var(--line); border-radius:var(--radius); background:white; margin-bottom:22px; }
.hero h2 { font-size:1.8rem; margin-bottom:13px; }
.hero p { font-size:.875rem; color:var(--muted); margin-bottom:0; }
.hero-art { display:grid; place-items:center; }
.hero-art img { width:135px; height:135px; object-fit:contain; }
.hero-art-caption,.hero-sticker,.hero-note { display:none; }
.hero-actions { margin-top:16px; }
.badge { display:inline-flex; align-items:center; gap:5px; padding:4px 8px; border-radius:6px; font-size:.75rem; font-weight:700; line-height:1.4; color:var(--green); background:var(--soft); }
.badge.green { background:var(--soft); color:#526c49; }
.badge.yellow { background:var(--yellow-soft); color:#796426; }
.badge.red { background:#fff0ed; color:var(--red); }
.badge.gray { background:#f0f3ed; color:var(--muted); }
.grid-two,.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.grid-three { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.panel,.card,.summary-card { padding:22px; background:white; border:1px solid var(--line); border-radius:var(--radius); min-width:0; }
.panel+.panel { margin-top:18px; }
.panel>:last-child,.card>:last-child { margin-bottom:0; }
.panel>p,.card>p { font-size:1rem; }
.panel.soft,.card.soft { background:var(--soft); }
.panel.yellow,.card.yellow { background:var(--yellow-soft); }
.field { display:flex; flex-direction:column; gap:6px; margin-bottom:16px; min-width:0; }
.field>span,.field>label { color:var(--green); font-size:.875rem; font-weight:600; }
.field input:not([type='checkbox']):not([type='radio']),.field select,.field textarea { min-height:48px; width:100%; padding:11px 12px; border:1px solid #dce4d7; border-radius:9px; background:white; color:var(--ink); font-size:1rem; }
.field textarea { min-height:102px; resize:vertical; }
.field small { color:var(--muted); font-size:.75rem; }
.form-grid { gap:0 14px; }
.form-grid .wide { grid-column:1/-1; }
input[type='radio'],input[type='checkbox'] { accent-color:#688056; width:18px; height:18px; flex-shrink:0; }
.check-label,.radio-label { display:flex; align-items:center; gap:9px; font-size:.875rem; padding:8px 0; }
.form-note,.summary-note { font-size:.75rem; color:var(--muted); line-height:1.6; margin:15px 0; }
.action-row { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin-top:20px; }
.checkout-grid,.checkout-layout,.cart-layout { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr); align-items:start; gap:20px; }
.summary-card { position:sticky; top:18px; }
.summary-card h2,.summary-card h3 { font-size:1.125rem; }
.summary-line,.summary-row { display:flex; justify-content:space-between; gap:15px; font-size:.875rem; padding:9px 0; color:var(--muted); }
.summary-line strong,.summary-row strong { color:var(--ink); }
.summary-total,.summary-row.total { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:17px 0; margin-top:10px; border-top:1px solid var(--line); font-size:1rem; font-weight:700; color:var(--ink); }
.summary-total strong,.summary-row.total strong { font-size:1.5rem; }
.summary-card>.button { margin-top:10px; width:100%; }
.summary-card>p { font-size:.875rem; color:var(--muted); margin:15px 0 0; }
.cart-row { display:grid; grid-template-columns:58px minmax(0,1fr) auto; gap:12px; align-items:center; padding:17px 0; border-bottom:1px solid var(--line); }
.cart-row>.icon-image { width:58px; height:58px; background:#fafbf8; padding:3px; border-radius:9px; }
.cart-row h3 { font-size:1rem; margin-bottom:3px; }
.cart-row p { font-size:.875rem; color:var(--muted); margin:0; }
.cart-row>strong { grid-column:2/-1; justify-self:end; font-size:1rem; margin-top:-8px; }
.cart-item-info { min-width:0; }
.cart-item-info .text-button { min-height:44px; padding:4px 0; }
.quantity-control,.quantity { display:inline-flex; align-items:center; border:1px solid var(--line); border-radius:9px; overflow:hidden; background:white; }
.quantity-control button,.quantity button { width:44px; height:44px; padding:0; border:0; background:white; color:var(--green); font-size:1.2rem; }
.quantity-control button:hover { background:var(--soft); }
.quantity-control span,.quantity span { min-width:25px; text-align:center; font-size:.875rem; font-weight:700; }
.inline-form { display:flex; align-items:flex-end; gap:10px; margin-top:23px; }
.inline-form .field { margin:0; flex:1; }
.inline-form .button { min-height:48px; }
.delivery-hint,.notice { font-size:.875rem; color:var(--green); background:var(--soft); border-radius:10px; padding:13px 15px; margin-top:15px; }
.notice { background:var(--yellow-soft); color:#796426; border:1px solid #eee1b5; margin:0 0 18px; }
.notice p { margin:0; }
.notice.green { background:var(--soft); color:var(--green); border-color:var(--line); }
.notice.error { background:#fff0ed; color:var(--red); border-color:#ecd0c8; }
.stepper { display:flex; gap:0; margin:0 0 22px; padding:0; list-style:none; }
.step { display:flex; align-items:center; gap:8px; flex:1; font-size:.875rem; color:var(--muted); }
.step>b,.step>span { display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:var(--soft); color:var(--green); font-size:.75rem; flex-shrink:0; }
.step.active { color:var(--ink); font-weight:700; }
.step.active>b,.step.active>span { background:var(--yellow); color:var(--ink); }
.step:not(:last-child)::after { content:''; height:1px; background:var(--line); flex:1; margin:0 10px; }
.receive-options,.choice-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:18px 0 22px; }
.receive-card,.choice-card { position:relative; display:flex; flex-direction:column; align-items:flex-start; gap:6px; padding:17px; background:white; border:1px solid var(--line); border-radius:12px; cursor:pointer; color:var(--ink); }
.receive-card.selected,.choice-card.selected { background:var(--yellow-soft); border-color:var(--yellow); }
.receive-card>input { position:absolute; right:13px; top:13px; }
.receive-card .icon-image,.choice-card .icon-image { width:40px; height:40px; margin-bottom:5px; }
.receive-card strong,.choice-card strong { font-size:.875rem; }
.receive-card>span,.receive-card small,.choice-card small { font-size:.875rem; color:var(--muted); }
.pickup-info,.review-details { background:var(--soft); padding:16px; border-radius:10px; margin:15px 0; }
.pickup-info p,.review-details p { color:var(--muted); font-size:.875rem; margin:5px 0 10px; }
.checkout-actions { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:16px 0; margin-top:20px; border-top:1px solid var(--line); }
.checkout-action-total>span { display:block; font-size:.875rem; color:var(--muted); }
.checkout-action-total strong { font-size:1.25rem; }
.payment-layout { max-width:700px; margin:0 auto; padding:30px; text-align:center; }
.payment-total { display:block; font-size:2rem; color:var(--ink); margin:18px 0; }
.payment-layout .action-row { justify-content:center; }
.payment-layout>.text-button { display:block; margin:15px auto 0; }
.demo-payment-symbol { display:flex; flex-direction:column; align-items:center; gap:8px; max-width:280px; margin:20px auto; background:var(--soft); border:1px dashed #c8d7bd; border-radius:13px; padding:22px; }
.demo-payment-symbol .icon-image { width:85px; height:85px; }
.demo-payment-symbol strong { font-size:1rem; }
.demo-payment-symbol span,.payment-timer { font-size:.875rem; color:var(--muted); }
.payment-timer strong { color:var(--ink); }
.order-card { border:1px solid var(--line); border-radius:var(--radius); padding:22px; background:white; margin-bottom:16px; }
.order-card>p { color:var(--muted); font-size:.875rem; }
.order-meta { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin:16px 0; font-size:.875rem; color:var(--muted); }
.order-meta strong { color:var(--ink); }
.order-meta .badge { margin-left:6px; }
.status-track { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin:18px 0; }
.status-track>div { position:relative; display:flex; flex-direction:column; align-items:center; gap:8px; text-align:center; color:var(--muted); }
.status-track>div>span { display:grid; place-items:center; background:#edf2e7; width:28px; height:28px; border-radius:50%; position:relative; z-index:2; font-size:.75rem; }
.status-track>div.active>span { background:var(--yellow); color:var(--ink); }
.status-track>div:not(:last-child)::after { content:''; height:2px; width:100%; position:absolute; top:13px; left:50%; background:var(--line); }
.status-track small { font-size:.75rem; }
.success-banner { display:flex; align-items:flex-start; gap:14px; background:var(--soft); border:1px solid var(--line); border-radius:var(--radius); padding:20px; margin-bottom:20px; }
.success-banner>span { display:grid; place-items:center; width:40px; height:40px; background:var(--yellow); border-radius:50%; font-size:1.3rem; flex-shrink:0; }
.success-banner h2 { font-size:1.25rem; margin-bottom:6px; }
.success-banner p { font-size:.875rem; color:var(--muted); margin:0; }
.review-saved,.review-note { padding:14px; background:var(--yellow-soft); border-radius:10px; color:#796426; font-size:.875rem; }
.review-note { margin:-4px 0 18px; }
.review-note p { margin:5px 0 0; }
.loyalty-card { padding:26px; background:var(--yellow-soft); border:1px solid #eee1b5; border-radius:17px; color:var(--ink); }
.loyalty-card h2 { font-size:1.6rem; }
.loyalty-card p { font-size:1rem; }
.loyalty-card small,.loyalty-card .eyebrow { color:#756b49; }
.points-track,.progress-bar { height:8px; background:#ede5c7; border-radius:8px; overflow:hidden; margin:19px 0 10px; }
.points-track span,.progress-bar>span { display:block; height:100%; background:var(--yellow); border-radius:inherit; }
.reward-card { display:flex; flex-direction:column; align-items:flex-start; }
.reward-card .icon-image { width:72px; height:72px; margin-bottom:16px; }
.reward-card p { font-size:.875rem; color:var(--muted); }
.reward-card .button { margin-top:auto; }
.staff-role-bar { display:flex; align-items:center; flex-wrap:wrap; gap:15px; background:var(--soft); border:1px solid var(--line); padding:17px 20px; border-radius:12px; margin-bottom:20px; }
.staff-role-bar>span { font-size:.875rem; }
.staff-role-bar .field { margin:0 0 0 auto; min-width:210px; }
.staff-role-bar>p { width:100%; color:var(--muted); font-size:.75rem; margin:-3px 0 0; }
.metric-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-bottom:21px; }
.metric-card { padding:19px; border:1px solid var(--line); border-radius:12px; background:white; min-width:0; }
.metric-card>span,.metric-card>p { display:block; font-size:.875rem; color:var(--muted); margin:0 0 9px; }
.metric-card>strong { display:block; color:var(--green); font-size:1.75rem; line-height:1.2; overflow-wrap:anywhere; margin-bottom:6px; }
.metric-card small { color:var(--muted); font-size:.75rem; }
.table-scroll,.table-wrap { width:100%; max-width:100%; overflow-x:auto; }
.data-table { width:100%; border-collapse:collapse; text-align:left; font-size:.875rem; }
.data-table th { color:var(--muted); font-size:.75rem; font-weight:700; padding:12px 10px; background:#fafcf7; border-bottom:1px solid var(--line); }
.data-table td { padding:14px 10px; border-bottom:1px solid var(--line); vertical-align:middle; }
.data-table tr:last-child td { border-bottom:0; }
.data-table small { display:block; font-size:.75rem; color:var(--muted); }
.data-table .button { white-space:nowrap; }
.report-row { display:grid; grid-template-columns:62px 1fr 95px; gap:12px; align-items:center; padding:13px 0; font-size:.875rem; }
.report-row strong { text-align:right; }
.report-track { height:8px; border-radius:5px; overflow:hidden; background:#edf2e7; }
.report-track i { display:block; height:100%; background:#77966a; border-radius:inherit; }
.employee-card { display:flex; flex-direction:column; align-items:flex-start; }
.employee-card .avatar { width:45px; height:45px; margin-bottom:15px; }
.profile-view { max-width:740px; margin:0 auto; }
.profile-summary { display:flex; align-items:center; gap:15px; padding:18px; background:var(--soft); border:1px solid var(--line); border-radius:12px; }
.profile-summary h2 { margin-bottom:4px; font-size:1.2rem; }
.profile-summary p { color:var(--muted); font-size:.875rem; margin:0; }
.profile-menu { display:flex; flex-direction:column; gap:10px; margin-top:20px; }
.profile-menu-item { display:flex; align-items:center; gap:13px; width:100%; min-height:68px; padding:15px 18px; border:1px solid var(--line); border-radius:12px; background:white; text-align:left; color:var(--green); font-size:1rem; }
.profile-menu-item .icon-image { width:32px; height:32px; }
.profile-menu-item strong,.profile-menu-item small { display:block; }
.profile-menu-item small { color:var(--muted); font-size:.875rem; }
.profile-menu-item>span:last-child { margin-left:auto; }
.profile-menu-item:hover { border-color:#bdcdb4; background:var(--soft); }
.empty-state { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:250px; padding:34px 22px; text-align:center; background:white; border:1px solid var(--line); border-radius:var(--radius); }
.empty-state>.icon-image { width:72px; height:72px; margin-bottom:17px; }
.empty-state h2 { font-size:1.3rem; }
.empty-state p { color:var(--muted); max-width:440px; font-size:1rem; }
.mobile-nav { display:none; }
.cart-dock { position:fixed; bottom:22px; left:50%; transform:translateX(-50%); width:calc(100% - 56px); max-width:1064px; z-index:35; }
.cart-dock-button { display:flex; align-items:center; justify-content:space-between; gap:13px; width:100%; min-height:56px; padding:13px 18px; border:1px solid #edba38; border-radius:12px; background:var(--yellow); color:var(--ink); font-size:1rem; font-weight:700; box-shadow:0 5px 22px rgba(57,60,34,.10); }
.cart-dock-button>span:first-child { display:inline-flex; align-items:center; gap:8px; }
.cart-dock-count { display:inline-grid; place-items:center; min-width:27px; padding:2px 6px; border-radius:6px; background:#f0bd40; }
body.has-cart-dock .main-content { padding-bottom:115px; }
.modal-overlay { position:fixed; inset:0; display:flex; align-items:center; justify-content:center; background:rgba(29,41,31,.42); padding:24px; z-index:100; }
.modal-dialog { width:100%; max-width:520px; max-height:calc(100dvh - 48px); overflow-y:auto; overscroll-behavior:contain; border-radius:18px; background:white; padding:26px; box-shadow:0 20px 70px rgba(20,40,24,.16); }
.modal-dialog.wide { max-width:740px; }
.modal-header { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-bottom:18px; }
.modal-header h2 { font-size:1.35rem; margin:0; }
.modal-dialog>p { font-size:1rem; }
.modal-actions { position:sticky; bottom:-26px; display:flex; justify-content:flex-end; gap:10px; margin-top:20px; padding:15px 0; border-top:1px solid var(--line); background:white; z-index:3; }
.product-modal-image { display:flex; align-items:center; justify-content:center; background:#fafbf8; border-radius:12px; height:185px; overflow:hidden; margin-bottom:18px; }
.product-modal-image .icon-image,.product-modal-image img { width:100%; height:185px; object-fit:contain; }
.product-modal-image img[src*='assets/products/'] { object-fit:cover; }
.toast { position:fixed; bottom:24px; left:50%; transform:translateX(-50%); z-index:150; width:max-content; max-width:calc(100vw - 32px); padding:13px 18px; border:1px solid #e9d8a0; border-radius:10px; background:var(--yellow-soft); color:var(--ink); font-size:.875rem; box-shadow:0 4px 20px rgba(36,53,36,.1); text-align:center; }
body.has-cart-dock .toast { bottom:90px; }
.cart-product-image { display:grid; place-items:center; width:58px; height:58px; border-radius:9px; overflow:hidden; background:#fafbf8; }
.cart-product-image img { width:100%; height:100%; object-fit:cover; }
.cart-product-image .icon-image { object-fit:contain; padding:3px; }
.cart-item-links { display:flex; gap:14px; flex-wrap:wrap; }
.payment-test-actions { display:flex; justify-content:center; gap:10px; flex-wrap:wrap; margin-top:18px; }
.receive-modal-fields { margin-top:18px; }
@media (max-width:1100px) {
  .main-content { padding-left:22px; padding-right:22px; }
  .product-card { padding:14px; gap:12px; }
  .grid-three { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .checkout-grid,.checkout-layout,.cart-layout { grid-template-columns:minmax(0,1.4fr) minmax(265px,1fr); gap:16px; }
  .store-identity { gap:10px; }
  .customer-topnav .nav-btn { padding-left:10px; padding-right:10px; }
}
@media (max-width:850px) {
  .app-shell,body[data-mode='gestao'] .app-shell { display:block; }
  .sidebar,body[data-mode='gestao'] .sidebar { display:none; }
  .main-content { display:block; max-width:760px; padding:18px 22px 115px; }
  .topbar { padding-bottom:13px; }
  .customer-topnav { display:none; }
  .mobile-nav { position:fixed; left:0; right:0; bottom:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); background:white; border-top:1px solid var(--line); padding:7px 10px calc(7px + env(safe-area-inset-bottom)); z-index:40; }
  body[data-mode='gestao'] .mobile-nav:has(>.nav-btn:nth-child(5)) { grid-template-columns:repeat(5,minmax(0,1fr)); }
  .mobile-nav .nav-btn { flex-direction:column; justify-content:center; gap:4px; text-align:center; font-size:.75rem; line-height:1.2; min-height:54px; padding:6px 4px; position:relative; }
  .mobile-nav .nav-btn.active { box-shadow:none; color:var(--ink); background:var(--yellow-soft); }
  .mobile-nav .nav-btn img { width:23px; height:23px; }
  .mobile-nav .nav-count { position:absolute; font-size:.75rem; margin:0; top:0; right:calc(50% - 24px); }
  .mobile-brand { display:inline-flex; margin-bottom:4px; }
  .mobile-brand img { width:110px; height:50px; object-fit:contain; }
  .demo-detail { display:none; }
  .cart-dock { left:16px; right:16px; bottom:calc(79px + env(safe-area-inset-bottom)); width:auto; max-width:728px; margin:0 auto; transform:none; }
  body.has-cart-dock .main-content { padding-bottom:calc(178px + env(safe-area-inset-bottom)); }
  .toast { bottom:calc(85px + env(safe-area-inset-bottom)); }
  body.has-cart-dock .toast { bottom:calc(148px + env(safe-area-inset-bottom)); }
  .checkout-grid,.checkout-layout,.cart-layout { grid-template-columns:1fr; }
  .summary-card { position:static; }
  body[data-view='carrinho'] .mobile-nav,body[data-view='checkout'] .mobile-nav,body[data-view='revisao'] .mobile-nav,body[data-view='pagamento'] .mobile-nav { display:none; }
  body[data-view='carrinho'] .main-content,body[data-view='checkout'] .main-content,body[data-view='revisao'] .main-content,body[data-view='pagamento'] .main-content { padding-bottom:var(--checkout-footer-space,calc(125px + env(safe-area-inset-bottom))); }
  .checkout-actions { position:fixed; bottom:0; left:0; right:0; z-index:40; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; margin:0; padding:13px 20px calc(13px + env(safe-area-inset-bottom)); background:white; border-top:1px solid var(--line); box-shadow:0 -4px 18px rgba(40,60,35,.035); }
  .checkout-actions .button.primary { margin-left:auto; min-width:160px; }
  .checkout-action-total { margin-right:auto; }
  .checkout-actions .action-row { margin:0; }
}
@media (max-width:620px) {
  .main-content { padding:14px 16px 110px; }
  .topbar { margin-bottom:12px; gap:10px; }
  .store-header { flex-wrap:wrap; gap:10px; }
  .store-identity { width:auto; gap:10px; }
  .store-identity>img,.store-identity .logo-lockup { width:110px; height:50px; }
  .store-identity h1,.store-identity h2 { font-size:1.05rem; }
  .store-identity p,.store-meta { font-size:.875rem; }
  .location-button { max-width:190px; padding:8px 10px; min-height:44px; font-size:.875rem; }
  .demo-notice { margin-bottom:12px; font-size:.75rem; }
  .view-heading { margin:16px 0; }
  .view-heading h1 { font-size:1.35rem; }
  .topbar-actions,.staff-header-actions { flex-wrap:wrap; gap:7px; }
  .topbar-actions .button { padding:8px 11px; }
  .store-summary { margin-bottom:12px; gap:12px; }
  .store-summary h2 { font-size:1.15rem; }
  .store-mascot { width:48px; height:58px; }
  .delivery-pills { gap:5px 10px; }
  .catalog-toolbar { flex-direction:column; align-items:stretch; gap:8px; }
  .category-tabs { margin-top:0; padding:8px 0; }
  .category-tabs .tab { padding-left:12px; padding-right:12px; }
  .section-head { gap:8px; margin-top:18px; }
  .section-head h2 { font-size:1.2rem; }
  .product-grid { grid-template-columns:1fr; gap:11px; }
  .product-card { grid-template-columns:minmax(0,1fr) 96px; gap:12px; padding:14px; }
  .product-info h3 { font-size:1rem; }
  .product-footer small { display:block; margin:2px 0 0; }
  .product-footer { gap:5px; }
  .fresh-banner,.subscription-banner { padding:16px; gap:11px; flex-wrap:wrap; }
  .fresh-banner>div:nth-child(2) { flex:1; }
  .fresh-banner .button,.subscription-banner .button { width:100%; margin:4px 0 0; }
  .grid-two,.grid-three { grid-template-columns:1fr; gap:15px; }
  .panel,.card,.summary-card,.order-card { padding:19px; }
  .form-grid { gap:0 12px; }
  .cart-row { grid-template-columns:48px minmax(0,1fr); align-items:start; }
  .cart-row>.icon-image,.cart-product-image { width:48px; height:48px; grid-row:1/3; }
  .cart-row>.quantity-control { grid-column:2; justify-self:start; }
  .cart-row>strong { grid-column:2; justify-self:end; margin:0; }
  .cart-row>.quantity-control+strong { margin-top:-39px; }
  .inline-form { gap:8px; }
  .inline-form .button { padding-left:12px; padding-right:12px; }
  .step { flex-direction:column; gap:5px; align-items:center; font-size:.75rem; position:relative; text-align:center; }
  .step:not(:last-child)::after { position:absolute; top:13px; left:calc(50% + 19px); width:calc(100% - 38px); margin:0; }
  .receive-card,.choice-card { padding:14px 12px; }
  .receive-card .icon-image { width:36px; height:36px; }
  .action-row>.button { flex:1; }
  .payment-layout { padding:24px 18px; }
  .payment-test-actions .button { flex:1; }
  .order-meta { flex-direction:column; align-items:flex-start; gap:8px; }
  .staff-role-bar { padding:16px; gap:12px; }
  .staff-role-bar .field { width:100%; min-width:0; margin:0; }
  .staff-role-bar>p { margin:0; }
  .metric-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .metric-card { padding:15px; }
  .metric-card>strong { font-size:1.5rem; }
  .data-table { min-width:540px; }
  .hero { grid-template-columns:minmax(0,1fr) 90px; padding:20px; gap:12px; }
  .hero h2 { font-size:1.4rem; }
  .hero-art img { width:85px; height:95px; }
  .loyalty-card { padding:22px; }
  .report-row { grid-template-columns:55px 1fr 92px; gap:10px; }
  .modal-overlay { padding:10px 8px; align-items:flex-end; }
  .modal-dialog { max-height:calc(100dvh - 20px); border-radius:18px; padding:22px 18px; }
  .modal-header h2 { font-size:1.25rem; }
  .modal-actions { bottom:-22px; padding-bottom:calc(16px + env(safe-area-inset-bottom)); }
  .modal-actions .button { flex:1; }
  .product-modal-image { height:165px; }
  .product-modal-image img { height:165px; }
  .page-footer { display:block; line-height:1.8; }
  .page-footer>span { display:block; }
}
@media (max-width:380px) {
  .main-content { padding-left:13px; padding-right:13px; }
  .product-card { grid-template-columns:minmax(0,1fr) 88px; padding:13px; gap:10px; }
  .product-image,.product-visual { width:88px; }
  .form-grid { grid-template-columns:1fr; }
  .receive-options { gap:9px; }
  .receive-card { padding:13px 10px; }
  .cart-dock { left:12px; right:12px; }
  .cart-dock-button { font-size:.9375rem; padding:13px 14px; }
  .checkout-actions { padding-left:13px; padding-right:13px; }
  .checkout-actions .button.primary { min-width:148px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { transition-duration:.01ms!important; animation-duration:.01ms!important; }
}
@media print {
  .sidebar,.topbar-actions,.staff-header-actions,.customer-topnav,.mobile-nav,.cart-dock,.checkout-actions,.modal-overlay,.toast,.demo-notice,.page-footer,.skip-link { display:none!important; }
  .app-shell,body[data-mode='gestao'] .app-shell { display:block; }
  .main-content { padding:0; max-width:none; }
  body { background:white; }
  .category-tabs { position:static; }
  .panel,.order-card,.product-card,.hero { break-inside:avoid; }
}
