:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  color: #22343e;
  background: var(--brand-bg);
  color-scheme: light;
  --brand: #246c9a;
  --on-brand: #ffffff;
  --brand-bg: #d5e5ee;
  --brand-soft: #edf4f8;
  --brand-line: #b7d0df;
  --brand-hover: #1d577c;
  --focus-brand: #134767;
  --blue: var(--brand);
  --navy: #263e4c;
  --ink: #22343e;
  --muted: #526772;
  --border: #d5dfe5;
  --shadow: 0 8px 24px #19313f10;
  --red: #ac3843;
  --green: #23744f;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; background: var(--brand-bg); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 0; background: none; color: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: var(--brand); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--focus-brand); outline-offset: 3px; }
svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
button svg { pointer-events: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.025em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.65rem; }
p { line-height: 1.55; }
.hidden, [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -80px; background: white; color: var(--ink); z-index: 100; padding: 12px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.header { position: sticky; top: 0; z-index: 20; background: var(--brand); color: var(--on-brand); min-height: 90px; display: flex; align-items: center; gap: 28px; padding: 15px max(24px, calc((100vw - 1232px) / 2)); box-shadow: 0 3px 14px #152d3c12; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0; text-align: left; flex-shrink: 0; max-width: 42%; color: var(--on-brand); }
.brand > span:last-child { min-width: 0; }
.brand-symbol { width: 58px; height: 58px; flex: 0 0 58px; display: grid; place-items: center; }
.brand-symbol:has(img[hidden]) { display: none; }
.brand-symbol img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand strong { display: block; font-size: 1.65rem; letter-spacing: -.035em; font-weight: 750; line-height: 1.15; overflow-wrap: anywhere; }
.brand small { font-size: .78rem; font-weight: 500; display: block; margin-top: 5px; }
.nav { display: flex; justify-content: center; gap: 6px; margin-left: auto; flex: 1; }
.nav-item { padding: 12px 16px; font-weight: 600; font-size: .94rem; border-radius: 10px; white-space: nowrap; display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--on-brand); border: 1px solid transparent; }
.nav-item:hover { background: color-mix(in srgb, var(--on-brand) 12%, transparent); }
.nav-item.active { background: var(--on-brand); color: var(--brand); border-color: var(--on-brand); }
.header :focus-visible, footer :focus-visible { outline-color: var(--on-brand); }
.header .nav-item.active:focus-visible { outline-color: var(--on-brand); outline-offset: 4px; }
.small-count { background: #aa3040; color: white; min-width: 22px; height: 22px; border-radius: 7px; font-size: .78rem; display: inline-grid; place-items: center; }
.cart-button { background: var(--on-brand); color: var(--brand); padding: 12px 15px; border-radius: 11px; display: flex; align-items: center; gap: 9px; min-height: 47px; font-size: .92rem; font-weight: 650; white-space: nowrap; }
.cart-button:hover { box-shadow: inset 0 0 0 2px var(--brand-line); }
.cart-button svg { width: 22px; height: 22px; }
#cart-count { background: var(--brand); color: var(--on-brand); min-width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-size: .82rem; }
.customer-link { color: var(--on-brand); text-underline-offset: 4px; font-size: .88rem; font-weight: 600; padding: 10px 0; white-space: nowrap; }
main { flex: 1; width: 100%; min-height: 60vh; }
main:focus { outline: 0; }
.view { max-width: 1280px; margin: auto; padding: 31px 24px 42px; }
.catalogue { padding-top: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 23px; }
.section-heading h1, .section-heading h2 { margin: 0; font-size: 1.85rem; }
.reference-note { font-size: .88rem; color: var(--muted); max-width: 270px; text-align: right; margin: 0; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; display: block; }
.search-row { display: flex; gap: 13px; }
.search-box { display: flex; align-items: center; gap: 11px; flex: 1; background: white; border: 1px solid var(--brand-line); border-radius: 13px; padding: 0 16px; min-height: 54px; box-shadow: 0 2px 6px #19313f04; }
.search-box > span { color: var(--muted); }
.search-box input { border: 0; background: none; width: 100%; min-width: 0; font-size: 1rem; padding: 15px 0; color: var(--ink); }
.search-box input:focus-visible { outline: 0; }
.search-box:focus-within { outline: 3px solid var(--focus-brand); outline-offset: 2px; }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-box button { font-size: 1.5rem; color: var(--muted); padding: 0 3px; min-width: 30px; }
.sort-box { position: relative; flex: 0 0 250px; }
.sort-box:after { content: ""; position: absolute; right: 18px; top: 21px; width: 7px; height: 7px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); pointer-events: none; }
.sort-box select { appearance: none; width: 100%; height: 54px; border: 1px solid var(--brand-line); background: white; border-radius: 13px; padding: 0 38px 0 15px; font-size: .88rem; color: var(--ink); }
.categories { display: flex; gap: 9px; overflow-x: auto; padding: 21px 2px 15px; scrollbar-width: thin; scrollbar-color: var(--brand-line) transparent; align-items: center; }
.category-chip { display: flex; align-items: center; gap: 8px; white-space: nowrap; background: white; color: var(--ink); border: 1px solid #ffffff; border-radius: 11px; padding: 11px 13px; font-size: .88rem; font-weight: 600; min-height: 45px; box-shadow: 0 5px 12px #19313f12; }
.category-chip svg { width: 19px; height: 19px; }
.category-chip small { font-size: .78rem; font-weight: 500; color: var(--muted); margin-left: 1px; }
.category-chip:hover { border-color: var(--brand); }
.category-chip.active { color: var(--ink); border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 5px 12px #19313f12; }
.category-chip.active svg { color: var(--brand); }
.results-row { display: flex; align-items: center; justify-content: space-between; margin: 9px 0 20px; gap: 15px; }
.results-row p { font-size: .88rem; color: var(--muted); margin: 0; }
.weight-filter { display: flex; align-items: center; gap: 7px; font-size: .88rem; color: var(--ink); cursor: pointer; white-space: nowrap; }
.weight-filter input { width: 18px; height: 18px; accent-color: var(--brand); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.product-card { padding: 0; text-align: left; background: white; color: var(--ink); border: 1px solid #ffffff; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 5px 16px #19313f0b; transition: transform .15s, box-shadow .15s; width: 100%; min-width: 0; }
.product-card:hover { box-shadow: 0 10px 24px #19313f19; transform: translateY(-2px); }
.product-art { height: 152px; position: relative; display: grid; place-items: center; overflow: hidden; width: 100%; padding: 0; background: var(--cat-bg, #edf4f7); color: var(--cat-color, #43788e); }
.product-art:after { content: ""; position: absolute; width: 145px; height: 145px; border: 1px solid #ffffffbb; border-radius: 50%; right: -31px; bottom: -33px; }
.product-art > svg { width: 73px; height: 73px; stroke-width: 1.3; opacity: .88; }
.weight-tag { position: absolute; left: 11px; top: 11px; background: #ffffffed; color: #385668; border-radius: 6px; font-size: .78rem; font-weight: 650; padding: 5px 7px; z-index: 1; }
.art-label { position: absolute; bottom: 9px; left: 11px; color: var(--cat-color); font-size: .78rem; }
.product-info { padding: 17px; flex: 1; display: flex; flex-direction: column; width: 100%; }
.product-category { color: var(--muted); font-size: .78rem; font-weight: 600; margin-bottom: 7px; }
.product-name { display: block; font-size: 1rem; line-height: 1.4; font-weight: 650; text-align: left; padding: 0; letter-spacing: -.015em; margin: 0 0 17px; min-height: 45px; overflow-wrap: anywhere; }
.product-price-row { display: flex; justify-content: space-between; gap: 7px; align-items: flex-end; margin-top: auto; }
.product-price { font-size: 1.3rem; letter-spacing: -.03em; font-weight: 750; color: var(--ink); }
.product-unit { font-size: .78rem; color: var(--muted); margin-top: 3px; display: block; }
.product-cart-quantity, .in-cart { font-size: .78rem; font-weight: 600; color: var(--ink); background: var(--brand-soft); border-radius: 7px; padding: 6px 8px; }
.add-button { display: flex; align-items: center; gap: 5px; background: var(--brand-soft); color: var(--ink); border: 1px solid var(--brand-line); border-radius: 10px; font-size: .88rem; padding: 10px 12px; min-height: 42px; font-weight: 700; }
.add-button svg { width: 16px; height: 16px; }
.add-button:hover { background: var(--brand-bg); }
.quantity-control { display: flex; align-items: center; justify-content: space-between; background: var(--brand-soft); border: 1px solid var(--brand-line); border-radius: 10px; min-height: 44px; overflow: hidden; flex-shrink: 0; color: var(--ink); }
.quantity-control button { width: 43px; height: 44px; display: grid; place-items: center; padding: 0; color: var(--ink); }
.quantity-control button:hover { background: var(--brand-bg); }
.quantity-control button:focus-visible { outline-offset: -4px; }
.quantity-control button svg { width: 17px; height: 17px; }
.quantity-control output { min-width: 26px; text-align: center; font-size: 1rem; font-weight: 700; color: var(--ink); }
.more-wrap { text-align: center; margin-top: 29px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; border-radius: 11px; font-size: .94rem; font-weight: 650; min-height: 47px; border: 1px solid transparent; text-decoration: none; }
.button.primary { background: var(--brand); color: var(--on-brand); }
.button.primary:hover { background: var(--brand-hover); }
.button.secondary { background: white; color: var(--ink); border-color: var(--brand-line); }
.button.secondary:hover { background: var(--brand-soft); }
.button.soft { background: var(--brand-soft); color: var(--ink); border-color: var(--brand-line); }
.button.success { background: #eaf6ee; color: #21623d; border-color: #bddcc9; }
.button.warning { background: #fff2df; color: #855013; border-color: #e4c79d; }
.button.small { padding: 10px 13px; font-size: .88rem; min-height: 43px; }
.button.full { width: 100%; }
.text-button { font-size: .88rem; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; padding: 9px 0; }
.empty-state { background: white; border: 1px solid var(--border); border-radius: 18px; text-align: center; padding: 46px 25px; grid-column: 1 / -1; }
.empty-state > svg { width: 58px; height: 58px; margin: 0 auto 18px; color: var(--muted); }
.empty-state h2, .empty-state h3 { margin-bottom: 11px; }
.empty-state p { color: var(--muted); font-size: 1rem; max-width: 450px; margin: 0 auto 22px; }
.empty-state .button { margin-top: 3px; }
.loading-box { grid-column: 1 / -1; text-align: center; background: white; padding: 40px; border-radius: 16px; color: var(--muted); }
footer { background: var(--brand); color: var(--on-brand); width: 100%; margin-top: auto; padding: 24px max(24px, calc((100vw - 1232px) / 2)); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.footer-brand img { width: 44px; height: 38px; object-fit: contain; }
.footer-brand strong { font-size: 1rem; font-weight: 650; overflow-wrap: anywhere; }
footer > button { color: var(--on-brand); font-size: .88rem; padding: 7px 0; text-decoration: underline; text-underline-offset: 3px; }
.page-heading { padding: 4px 0 26px; }
.page-heading h1 { font-size: 2rem; margin-bottom: 10px; }
.page-heading > p, .page-heading > div > p { color: var(--muted); margin-bottom: 0; }
.store-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.store-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 28px; }
.summary-card { background: white; border: 1px solid #ffffff; border-radius: 14px; padding: 20px; text-align: left; position: relative; min-height: 105px; box-shadow: 0 4px 12px #19313f0b; }
.summary-card.selected { outline: 2px solid var(--focus-brand); outline-offset: 1px; }
.summary-card strong { display: block; font-size: 1.85rem; letter-spacing: -.035em; margin-top: 8px; }
.summary-card > span { font-size: .9rem; font-weight: 650; display: flex; align-items: center; gap: 7px; }
.summary-card.new { color: #a73540; }
.summary-card.prep { color: #21658d; }
.summary-card.ready { color: #236846; }
.summary-card.done { color: #56656e; }
.store-toolbar { display: flex; justify-content: space-between; gap: 13px; align-items: center; margin-bottom: 18px; }
.store-toolbar h2 { font-size: 1.25rem; margin: 0; }
.store-orders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
#customer-orders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.order-card { --order-bg: #89666b; --order-active: #b62f40; display: flex; flex-direction: column; position: relative; overflow: hidden; width: 100%; min-width: 0; padding: 21px 57px 22px 20px; border: 1px solid #0000000d; border-radius: 15px; background: var(--order-bg); color: white; text-align: left; box-shadow: 0 5px 15px #19313f10; transition: background-color .15s, box-shadow .15s; }
.order-card.status-nuevo, .order-card.stage-nuevo { --order-bg: #93636a; --order-active: #b32b3d; }
.order-card.status-preparando, .order-card.stage-preparando { --order-bg: #51728a; --order-active: #17699e; }
.order-card.status-listo, .order-card.stage-listo { --order-bg: #547b65; --order-active: #19834d; }
.order-card.status-entregado, .order-card.stage-entregado { --order-bg: #67747c; --order-active: #445b68; }
.order-card.status-incident, .order-card.status-incidencia, .order-card.has-incident { --order-bg: #956d48; --order-active: #b75b00; }
.order-card:hover, .order-card.selected, .order-card[aria-pressed="true"], .order-card:focus-visible { background: var(--order-active); box-shadow: 0 7px 19px #19313f22; }
.order-card:focus-visible { outline: 3px solid var(--focus-brand); outline-offset: 3px; }
.order-card-top, .customer-order-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; width: 100%; }
.order-card-top > :first-child, .customer-order-top > :first-child { min-width: 0; }
.order-card-meta { display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 8px; flex-shrink: 0; }
.order-status-text { display: block; font-size: .8rem; font-weight: 750; line-height: 1.25; text-transform: uppercase; letter-spacing: .025em; color: inherit; }
.order-total { display: block; font-size: 1.3rem; font-weight: 750; line-height: 1.15; white-space: nowrap; }
.order-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 15px; }
.order-customer { display: block; font-size: 1.12rem; font-weight: 700; margin-bottom: 9px; line-height: 1.3; overflow-wrap: anywhere; }
.pickup { display: flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--muted); line-height: 1.5; }
.pickup svg { width: 17px; height: 17px; flex-shrink: 0; }
.order-card .pickup { color: inherit; }
.order-card .order-customer { color: inherit; }
.order-mini-items { display: block; list-style: none; padding: 14px 0 0; margin: 14px 0 0; border-top: 1px solid #ffffff4d; font-size: .88rem; color: inherit; line-height: 1.5; }
.order-mini-items li + li { margin-top: 5px; }
.order-mini-item { display: block; }
.order-mini-item + .order-mini-item { margin-top: 5px; }
.order-mini-items strong { color: inherit; }
.order-small-list { display: block; margin: 16px 0 0; color: inherit; font-size: .88rem; line-height: 1.55; }
.order-small-list span { display: inline-block; margin-right: 12px; }
.order-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.order-actions { margin-top: 18px; display: flex; flex-direction: column; gap: 9px; }
.cliente-band { position: absolute; right: 0; top: 0; bottom: 0; width: 34px; display: flex; align-items: center; justify-content: center; background: #557a8f; color: #ffffff; writing-mode: vertical-rl; text-orientation: mixed; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; font-size: .75rem; line-height: 1; padding: 12px 0; }
.cliente-band.particular, .cliente-band.type-particular { background: #557a8f; }
.cliente-band.profesional, .cliente-band.type-profesional { background: #233c4b; }
.status-pill { font-size: .8rem; font-weight: 700; border-radius: 6px; padding: 6px 8px; white-space: nowrap; background: #fff0f1; color: #a12e3c; }
.status-pill.preparando { background: #eaf5fc; color: #21638d; }
.status-pill.listo { background: #eaf7ef; color: #23683e; }
.status-pill.entregado { background: #edf1f3; color: #526772; }
.status-pill.incidencia { background: #fff0df; color: #8c4e12; }
.incident-strip { background: #fff3e2; color: #7e4b1d; border: 1px solid #e7cca6; padding: 12px; border-radius: 9px; font-size: .88rem; margin: 16px 0 0; line-height: 1.45; overflow-wrap: anywhere; }
.order-card .incident-strip { background: #00000010; color: inherit; border-color: #ffffff4d; }
.steps { display: flex; margin: 22px 0 0; gap: 8px; }
.step { flex: 1; color: inherit; font-size: .78rem; border-top: 3px solid #ffffff4d; padding-top: 8px; }
.step.done, .step.current { border-color: white; }
.step.current { font-weight: 750; }
.orders-explain { font-size: .88rem; color: var(--muted); padding-top: 10px; }
.dialog-head, .drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.dialog-head h2, .drawer-head h2 { margin: 0; font-size: 1.6rem; }
.drawer-head { padding: 24px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.drawer-head .eyebrow { margin: 0 0 5px; font-size: .8rem; }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--ink); font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.icon-button:hover { background: var(--brand-bg); }
dialog { color: var(--ink); border: 1px solid var(--border); border-radius: 21px; padding: 0; max-height: 90svh; max-width: calc(100vw - 28px); box-shadow: 0 30px 90px #112a3b40; background: white; }
dialog::backdrop { background: #142d40a6; backdrop-filter: blur(3px); }
dialog[open] { animation: appear .16s ease-out; }
.product-dialog { width: 600px; }
.detail-art { height: 205px; display: grid; place-items: center; position: relative; background: var(--cat-bg); color: var(--cat-color); }
.detail-art > svg { width: 110px; height: 110px; stroke-width: 1.3; }
.detail-art > .icon-button { position: absolute; top: 14px; right: 14px; background: #ffffffed; }
.detail-art > .weight-tag { top: 17px; left: 17px; }
.detail-content { padding: 25px; }
.detail-content h2 { font-size: 1.65rem; line-height: 1.2; margin: 8px 0 17px; }
.detail-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.detail-meta span { padding: 7px 10px; border-radius: 7px; background: var(--brand-soft); font-size: .88rem; color: var(--ink); }
.detail-price { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin: 21px 0; }
.detail-price strong { font-size: 1.9rem; }
.detail-price > span { font-size: .88rem; color: var(--muted); text-align: right; max-width: 165px; }
.detail-note { font-size: .94rem; color: var(--muted); line-height: 1.55; background: #f4f7f8; border-radius: 10px; padding: 13px 15px; margin-bottom: 21px; }
.cart-dialog { width: 480px; max-width: 100vw; height: 100svh; max-height: 100svh; margin: 0 0 0 auto; border-radius: 20px 0 0 20px; border-right: 0; overflow: hidden; }
.cart-dialog[open] { display: flex; flex-direction: column; }
.cart-dialog #cart-content { overflow: auto; overscroll-behavior: contain; flex: 1; }
.cart-items { padding: 3px 24px 12px; }
.cart-item { padding: 19px 0; display: grid; grid-template-columns: 49px 1fr; gap: 12px; border-bottom: 1px solid var(--border); }
.cart-item-art { height: 53px; border-radius: 11px; background: var(--cat-bg); color: var(--cat-color); display: grid; place-items: center; }
.cart-item-art svg { width: 32px; height: 32px; }
.cart-item-name { font-size: 1rem; font-weight: 650; line-height: 1.4; margin: 0 0 5px; }
.cart-item-unit { font-size: .8rem; color: var(--muted); line-height: 1.4; }
.cart-item-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; }
.cart-item-bottom strong { font-size: 1rem; white-space: nowrap; }
.cart-line-controls { display: flex; align-items: center; gap: 10px; }
.remove-item { font-size: .8rem; color: var(--muted); padding: 9px 0; text-decoration: underline; }
.cart-clear { display: flex; justify-content: flex-end; padding: 0 24px; }
.cart-summary { padding: 20px 24px; border-top: 1px solid var(--border); background: var(--brand-soft); margin-top: 10px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; font-size: .94rem; margin-bottom: 12px; }
.summary-row.muted { color: var(--muted); font-size: .88rem; }
.summary-row.total { font-size: 1.15rem; font-weight: 750; border-top: 1px solid var(--border); padding-top: 16px; margin-top: 14px; margin-bottom: 0; }
.checkout-form { padding: 24px; }
.checkout-form h3 { font-size: 1.1rem; margin: 0 0 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field > span { font-size: .94rem; font-weight: 650; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #bbcbd5; border-radius: 10px; padding: 12px; background: white; color: var(--ink); font-size: 1rem; min-width: 0; }
.field textarea { resize: vertical; min-height: 80px; }
.field select { padding-right: 8px; }
.field-help { font-size: .88rem; color: var(--muted); margin: -6px 0 16px; }
.demo-checkout-note { font-size: .88rem; color: var(--muted); background: var(--brand-soft); padding: 13px; border-radius: 10px; line-height: 1.5; margin: 6px 0 16px; }
.cart-empty { padding: 50px 30px; text-align: center; }
.cart-empty svg { width: 64px; height: 64px; margin: 0 auto 22px; color: var(--muted); }
.cart-empty h3 { font-size: 1.4rem; }
.cart-empty p { color: var(--muted); font-size: 1rem; }
.order-dialog { width: 660px; padding: 26px; }
.order-dialog .order-card-head { margin-top: 22px; }
.order-detail-items { margin: 21px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 4px 0; }
.order-detail-item { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; font-size: .94rem; line-height: 1.4; }
.order-detail-item strong { white-space: nowrap; }
.order-detail-item small { display: block; color: var(--muted); font-size: .8rem; margin-top: 4px; }
.order-note { background: #f3f6f8; padding: 13px 15px; border-radius: 10px; font-size: .94rem; color: var(--muted); overflow-wrap: anywhere; }
.incident-form { margin-top: 22px; border-top: 1px solid var(--border); padding-top: 20px; }
.incident-form h3 { font-size: 1.05rem; }
.incident-form .field { margin-bottom: 12px; }
.incident-dialog .incident-form { border-top: 0; padding-top: 0; }
.history { padding-top: 17px; margin-top: 22px; border-top: 1px solid var(--border); }
.history h3 { font-size: 1rem; }
.history p { font-size: .88rem; color: var(--muted); margin-bottom: 10px; overflow-wrap: anywhere; }
.about-dialog { width: 600px; padding: 28px; }
.about-dialog .dialog-head { margin-bottom: 23px; }
.about-dialog p { font-size: 1rem; color: var(--muted); }
.about-dialog h3 { font-size: 1.1rem; margin: 23px 0 10px; }
.about-callout { background: var(--brand-soft); color: var(--ink); border: 1px solid var(--brand-line); padding: 16px; border-radius: 11px; font-size: .94rem; line-height: 1.55; }
.about-dialog .button { margin-top: 13px; }
.appearance-card { background: white; border: 1px solid #ffffff; border-radius: 18px; padding: 28px; max-width: 690px; box-shadow: var(--shadow); }
.color-setting { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 5px 0 24px; padding: 17px 0 23px; border-bottom: 1px solid var(--border); }
.color-setting label { cursor: pointer; }
.color-setting label strong { display: block; font-size: .94rem; font-weight: 650; margin-bottom: 7px; }
.color-setting label span { display: block; font-size: .88rem; color: var(--muted); line-height: 1.4; }
#brand-color { appearance: none; -webkit-appearance: none; width: 44px; height: 44px; flex: 0 0 44px; padding: 3px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
#brand-color::-webkit-color-swatch-wrapper { padding: 0; }
#brand-color::-webkit-color-swatch { border: 1px solid #00000026; border-radius: 50%; }
#brand-color::-moz-color-swatch { border: 1px solid #00000026; border-radius: 50%; }
.logo-setting { margin-top: 8px; }
#brand-logo { font-size: .88rem; padding: 9px; }
#brand-logo::file-selector-button { font: inherit; font-weight: 600; color: var(--ink); background: var(--brand-soft); border: 1px solid var(--brand-line); border-radius: 7px; padding: 10px 12px; margin-right: 12px; cursor: pointer; }
.logo-preview { padding: 16px; margin: 13px 0 3px; border: 1px solid var(--border); border-radius: 12px; max-width: 240px; background: #ffffff; }
.logo-preview:has(img[hidden]) { display: none; }
.logo-preview img { display: block; max-width: 100%; width: auto; height: 100px; object-fit: contain; margin: auto; }
.appearance-note { margin: 23px 0 18px; font-size: .94rem; color: var(--muted); }
.appearance-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 13px 18px; border-top: 1px solid var(--border); padding-top: 21px; }
#brand-save-state { font-size: .88rem; color: var(--muted); margin: 0; }
.toast { position: fixed; bottom: max(24px, env(safe-area-inset-bottom)); left: 50%; transform: translate(-50%, 25px); opacity: 0; pointer-events: none; background: var(--brand); color: var(--on-brand); border-radius: 12px; padding: 14px 20px; font-size: .94rem; box-shadow: 0 9px 30px #19313f40; max-width: calc(100% - 32px); z-index: 100; transition: opacity .18s, transform .18s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.storage-notice { max-width: 1232px; width: calc(100% - 48px); margin: 18px auto 0; border: 1px solid #dec394; background: #fff6e6; color: #795015; border-radius: 12px; padding: 13px 16px; font-size: .94rem; }
.fatal-error { padding: 32px; border: 1px solid #e8bbc1; background: #fff2f3; border-radius: 15px; color: #833142; grid-column: 1 / -1; }
.dialog-feedback { position: sticky; top: 0; z-index: 5; flex-shrink: 0; margin: 0; padding: 12px 16px; background: var(--brand); color: var(--on-brand); border-bottom: 1px solid var(--brand-line); border-radius: 10px; font-size: .94rem; line-height: 1.45; overflow-wrap: anywhere; box-shadow: 0 4px 12px #19313f12; }
.dialog-feedback.error { background: #fff1e2; color: #77421e; border-color: #e7c89f; }
@keyframes appear { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1100px) {
  .header { gap: 17px; }
  .brand strong { font-size: 1.5rem; }
  .nav-item { padding: 12px 13px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .store-orders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand { max-width: 38%; }
}
@media (max-width: 760px) {
  .header { padding: 15px 17px 0; gap: 13px 10px; flex-wrap: wrap; min-height: 112px; }
  .brand { flex: 1; max-width: calc(100% - 82px); min-width: 0; gap: 9px; }
  .brand strong { font-size: 1.5rem; }
  .brand small { font-size: .75rem; }
  .brand-symbol { width: 44px; height: 44px; flex-basis: 44px; }
  .cart-button { min-height: 44px; padding: 10px 11px; border-radius: 10px; gap: 7px; }
  .cart-word { display: none; }
  #cart-count { min-width: 22px; height: 22px; }
  .nav { order: 3; flex-basis: 100%; justify-content: stretch; margin: 0; gap: 4px; }
  .nav-item { flex: 1; padding: 13px 8px; border-radius: 10px 10px 0 0; font-size: .9rem; border-bottom: 3px solid transparent; }
  .nav-item.active { background: var(--brand-bg); color: var(--ink); border-color: transparent; border-bottom-color: var(--on-brand); }
  .owner-header .brand { max-width: calc(100% - 123px); }
  .customer-link { font-size: .8rem; max-width: 120px; text-align: right; white-space: normal; line-height: 1.4; }
  .view { padding: 25px 17px 31px; }
  .section-heading { align-items: flex-start; gap: 12px; margin-bottom: 19px; }
  .section-heading h1, .section-heading h2 { font-size: 1.5rem; }
  .reference-note { font-size: .8rem; max-width: 143px; }
  .search-row { gap: 10px; flex-wrap: wrap; }
  .search-box { min-height: 52px; flex-basis: 100%; border-radius: 11px; padding: 0 13px; }
  .search-box input { font-size: 1rem; padding: 14px 0; }
  .sort-box { flex-basis: 100%; }
  .sort-box select { height: 45px; font-size: .88rem; border-radius: 10px; }
  .sort-box:after { top: 17px; }
  .categories { padding-top: 17px; padding-bottom: 14px; gap: 8px; }
  .category-chip { padding: 10px 12px; font-size: .88rem; min-height: 43px; gap: 6px; }
  .category-chip svg { width: 18px; height: 18px; }
  .category-chip small { font-size: .78rem; }
  .results-row { margin: 8px 0 18px; align-items: flex-start; gap: 10px; }
  .results-row p { font-size: .8rem; max-width: 55%; }
  .weight-filter { font-size: .8rem; gap: 5px; }
  .weight-filter input { width: 17px; height: 17px; margin: 1px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-card { border-radius: 14px; }
  .product-art { height: 125px; }
  .product-art > svg { width: 58px; height: 58px; }
  .art-label { font-size: .75rem; left: 9px; bottom: 8px; }
  .weight-tag { font-size: .75rem; left: 8px; top: 8px; padding: 4px 6px; }
  .product-info { padding: 13px; }
  .product-category { font-size: .75rem; line-height: 1.3; margin-bottom: 7px; }
  .product-name { font-size: .9rem; line-height: 1.4; min-height: 60px; margin-bottom: 14px; }
  .product-price-row { display: block; }
  .product-price { font-size: 1.23rem; }
  .product-unit { font-size: .75rem; margin-top: 3px; }
  .product-cart-quantity, .in-cart { display: inline-block; margin-top: 9px; font-size: .75rem; }
  .add-button { margin-top: 11px; width: 100%; justify-content: center; min-height: 43px; padding: 9px; font-size: .88rem; }
  .product-price-row .quantity-control { margin-top: 10px; width: 100%; }
  .more-wrap { margin-top: 23px; }
  .more-wrap .button { width: 100%; }
  .page-heading { padding: 2px 0 23px; }
  .page-heading h1 { font-size: 1.8rem; }
  .page-heading p { font-size: .94rem; }
  .store-summary { grid-template-columns: repeat(2, 1fr); gap: 11px; margin-bottom: 25px; }
  .summary-card { padding: 16px; min-height: 93px; border-radius: 12px; }
  .summary-card strong { font-size: 1.75rem; }
  .summary-card > span { font-size: .88rem; }
  .store-orders, #customer-orders { grid-template-columns: 1fr; gap: 15px; }
  .order-card { padding: 20px 52px 21px 17px; border-radius: 14px; }
  .order-card-top, .customer-order-top { gap: 12px; }
  .order-status-text { font-size: .75rem; }
  .order-total { font-size: 1.2rem; }
  .order-customer { font-size: 1.05rem; }
  .order-card .pickup { font-size: .8rem; }
  .steps { gap: 6px; }
  .step { font-size: .75rem; }
  .store-toolbar h2 { font-size: 1.15rem; }
  .product-dialog, .about-dialog, .order-dialog { max-width: calc(100vw - 24px); max-height: 92svh; border-radius: 18px; }
  .detail-art { height: 165px; }
  .detail-art > svg { width: 87px; height: 87px; }
  .detail-content { padding: 21px; }
  .detail-content h2 { font-size: 1.45rem; }
  .detail-meta { margin-bottom: 16px; }
  .detail-price { margin: 19px 0; }
  .detail-price strong { font-size: 1.7rem; }
  .detail-price > span { font-size: .8rem; }
  .detail-note { font-size: .88rem; }
  .cart-dialog { width: 100%; border-radius: 0; max-width: 100%; border: 0; }
  .drawer-head { padding: 20px; }
  .cart-items { padding-left: 18px; padding-right: 18px; }
  .cart-item { grid-template-columns: 42px 1fr; gap: 10px; }
  .cart-summary { padding: 19px 20px; }
  .checkout-form { padding: 22px 20px max(28px, env(safe-area-inset-bottom)); }
  .cart-line-controls { gap: 9px; }
  .cart-line-controls .quantity-control button { width: 35px; }
  .cart-line-controls .quantity-control output { min-width: 23px; }
  .order-dialog, .about-dialog { padding: 22px; }
  .dialog-head h2 { font-size: 1.4rem; }
  .about-dialog p { font-size: .94rem; }
  .about-callout { font-size: .94rem; padding: 14px; }
  .empty-state { padding: 37px 20px; }
  .empty-state p { font-size: .94rem; }
  .empty-state h2 { font-size: 1.4rem; }
  .appearance-card { padding: 21px; border-radius: 15px; }
  .appearance-actions { align-items: flex-start; flex-direction: column; }
  .appearance-actions .button { width: 100%; }
  .color-setting { gap: 12px; }
  #brand-logo { font-size: .8rem; }
  #brand-logo::file-selector-button { padding: 10px 8px; margin-right: 8px; }
  .storage-notice { width: calc(100% - 34px); margin: 14px auto 0; font-size: .88rem; }
  footer { padding: 23px 17px max(25px, env(safe-area-inset-bottom)); gap: 12px; }
  .footer-brand strong { font-size: .94rem; }
  footer > button { font-size: .8rem; }
  .toast { font-size: .88rem; padding: 13px 16px; bottom: 20px; }
}
@media (max-width: 360px) {
  .section-heading { flex-direction: column; gap: 8px; }
  .reference-note { text-align: left; max-width: none; }
  .results-row { flex-wrap: wrap; }
  .results-row p { max-width: none; }
  .cart-item-bottom { flex-wrap: wrap; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .order-card-top { gap: 9px; }
  .order-card-meta { gap: 6px; }
  .order-status-text { font-size: .75rem; letter-spacing: 0; }
  .order-total { font-size: 1.12rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* FRIAPP 0.2.1: customer interface refinements based on approved sketches. */
html[data-experience="customer"] .header { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 14px; padding-bottom: 0; }
html[data-experience="customer"] .header .brand { max-width: 100%; }
html[data-experience="customer"] .header .nav { grid-column: 1 / -1; grid-row: 2; display: flex; width: 100%; gap: 8px; margin: 8px 0 0; }
html[data-experience="customer"] .nav-item { flex: 1; background: color-mix(in srgb, var(--brand) 13%, #dddddd); color: var(--ink); border: 1px solid var(--brand-line); border-radius: 16px 16px 0 0; padding: 14px 8px; }
html[data-experience="customer"] .nav-item.active { background: var(--brand-bg); color: var(--ink); border-bottom-color: var(--brand-bg); box-shadow: 0 -3px 9px #19313f11; }
html[data-experience="customer"] .cart-button { grid-column: 2; grid-row: 1; border: 1px solid var(--brand-line); border-radius: 13px; }
html[data-experience="customer"] .cart-button svg { width: 25px; height: 25px; }
html[data-experience="customer"] .customer-filters { display: grid; gap: 12px; margin-bottom: 20px; }
html[data-experience="customer"] .customer-search { width: 100%; }
html[data-experience="customer"] .customer-search input { font-size: 1rem; }
html[data-experience="customer"] .customer-search #search-icon,html[data-experience="customer"] .customer-search .search-symbol { order: 2; }
html[data-experience="customer"] .customer-search button { order: 3; }
html[data-experience="customer"] .filter-select { display: block; position: relative; }
html[data-experience="customer"] .filter-select:after { content: ''; position: absolute; right: 20px; top: 45%; border: solid var(--ink); border-width: 0 2px 2px 0; width: 8px; height: 8px; transform: translateY(-50%) rotate(45deg); pointer-events: none; }
html[data-experience="customer"] .filter-select select { appearance: none; -webkit-appearance: none; width: 100%; height: 54px; padding: 0 45px 0 16px; border: 1px solid var(--brand-line); border-radius: 13px; background: #fff; color: var(--ink); font-size: 1rem; }
html[data-experience="customer"] .results-row { margin: 0; }
html[data-experience="customer"] .section-heading { display: none; }
html[data-experience="customer"] #customer-orders { grid-template-columns: 1fr; }
html[data-experience="customer"] #customer-orders .order-card { background: white; color: #17212b; border-radius: 18px; padding: 20px 58px 18px 19px; box-shadow: 0 5px 14px #19313f20; }
html[data-experience="customer"] #customer-orders .order-card:hover,html[data-experience="customer"] #customer-orders .order-card.selected { background: white; color: #17212b; }
html[data-experience="customer"] #customer-orders .customer-order-number { display: block; font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
html[data-experience="customer"] #customer-orders .order-customer { font-size: 1.12rem; }
html[data-experience="customer"] #customer-orders .order-card-top { flex-direction: row; }
html[data-experience="customer"] #customer-orders .order-card-meta .order-status-text { display: none; }
html[data-experience="customer"] #customer-orders .order-small-list { display: none; }
html[data-experience="customer"] #customer-orders .steps { margin-top: 15px; }
html[data-experience="customer"] #customer-orders .cliente-band { border-radius: 0 17px 17px 0; }
@media (max-width:760px){
  html[data-experience="customer"] .header { padding: 15px 15px 0; min-height: 0; gap: 12px; }
  html[data-experience="customer"] .brand { max-width: none; }
  html[data-experience="customer"] .nav { margin-top: 10px; }
  html[data-experience="customer"] .nav-item { font-size: 1.15rem; }
  html[data-experience="customer"] .view { padding-top: 19px; }
  html[data-experience="customer"] .customer-filters { gap: 10px; }
  html[data-experience="customer"] #customer-orders .order-card { border-radius: 17px; padding: 15px 44px 16px 14px; }
  html[data-experience="customer"] #customer-orders .order-customer { font-size: .99rem; }
  html[data-experience="customer"] #customer-orders .order-total { font-size: 1.05rem; }
  html[data-experience="customer"] #customer-orders .steps { gap: 4px; }
  html[data-experience="customer"] #customer-orders .step { font-size: .65rem; padding: 5px 3px; }
}
/* Customer status phases use the sketch's compact, color-coded progression. */
html[data-experience="customer"] #customer-orders .steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
html[data-experience="customer"] #customer-orders .step { border: 0; border-radius: 6px; padding: 7px 3px; text-align: center; background: #d3d5d7; color: #333; font-size: .73rem; white-space: nowrap; }
html[data-experience="customer"] #customer-orders .step:nth-child(2) { background: #f5df62; }
html[data-experience="customer"] #customer-orders .step:nth-child(3),html[data-experience="customer"] #customer-orders .step:nth-child(4) { background: #b6d9bb; }
html[data-experience="customer"] #customer-orders .step.current { outline: 2px solid #263e4c; outline-offset: -2px; font-weight: 750; }
html[data-experience="customer"] #customer-orders .step.done { opacity: .7; }
@media (max-width: 420px) { html[data-experience="customer"] #customer-orders .step { font-size: .62rem; } }

/* FRIAPP 0.2.2 proposal: current page and selected tab share the same background. */
html[data-experience="customer"] .nav-item.active {
  background: var(--brand-bg);
  border-color: var(--brand-line);
  border-bottom-color: var(--brand-bg);
  box-shadow: none;
  position: relative;
  z-index: 1;
}
html[data-experience="customer"] main, html[data-experience="customer"] .view { background: var(--brand-bg); }
html[data-experience="customer"] .nav-item:not(.active) { opacity: .8; }
html[data-experience="customer"] .product-card { display:flex; flex-direction:column; border-radius:16px; }
html[data-experience="customer"] .product-open { padding:0; width:100%; text-align:left; display:flex; flex-direction:column; flex:1; min-height:0; }
html[data-experience="customer"] .product-open:focus-visible { outline:3px solid var(--focus-brand); outline-offset:-3px; }
html[data-experience="customer"] .product-card .product-info { width:100%; flex:1; }
html[data-experience="customer"] .product-card-bottom { display:flex; align-items:flex-end; justify-content:space-between; gap:9px; padding:0 12px 14px; }
html[data-experience="customer"] .product-card-bottom .quantity-control { flex-shrink:0; }
html[data-experience="customer"] .product-card-bottom .quantity-control button { width:30px; min-width:30px; height:32px; border-radius:8px; }
html[data-experience="customer"] .product-card-bottom .quantity-control output { min-width:19px; text-align:center; }
html[data-experience="customer"] .product-card-bottom .product-price { font-size:1.04rem; }
html[data-experience="customer"] .product-card-bottom .product-unit { font-size:.65rem; }
html[data-experience="customer"] .detail-follow { display:flex; justify-content:flex-end; margin-top:17px; }
html[data-experience="customer"] .detail-follow button { min-width:120px; }
html[data-experience="customer"] footer.customer-footer { min-height:42px; background:var(--brand-bg); border-top:1px solid var(--brand-line); padding:0; }
#customer-orders .step.done { opacity:.13; filter:grayscale(1); font-weight:400; }
#customer-orders .step.pending { opacity:.85; font-weight:400; }
#customer-orders .step.current { opacity:1; font-weight:800; outline:2px solid currentColor; outline-offset:1px; }
.order-dialog .receipt { border-radius:12px; border:1px solid #e3e3df; box-shadow:0 4px 20px #0000000b; overflow:hidden; background:#fffefa; color:#232323; padding:6px 21px; }
.order-dialog .receipt-section { padding:20px 0; border-top:2px dashed #bdbdb7; }
.order-dialog .receipt-section:first-child { border-top:0; }
.order-dialog .receipt-top { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.order-dialog .receipt-top strong { font-size:1.14rem; }
.order-dialog .receipt-close { font-size:.83rem; color:#333; border:1px solid #aaa; padding:7px 12px; border-radius:8px; }
.order-dialog .receipt-heading h2 { font-size:1.27rem; margin:14px 0 8px; word-break:break-word; }
.order-dialog .receipt-heading p { font-size:.9rem; margin:0; }
.order-dialog .receipt-status { margin-top:14px; }
.order-dialog .receipt-line { display:flex; justify-content:space-between; align-items:baseline; gap:14px; padding:7px 0; font-size:.95rem; line-height:1.4; }
.order-dialog .receipt-line span { overflow-wrap:anywhere; }
.order-dialog .receipt-line strong { white-space:nowrap; font-variant-numeric:tabular-nums; }
.order-dialog .receipt-subtotal { border-top:1px dotted #aaa; margin-top:15px; padding-top:16px; }
.order-dialog .receipt-grand { font-size:1.14rem; border-top:1px solid #333; margin-top:9px; font-weight:800; }
.order-dialog footer.receipt-foot { display:flex; flex-direction:column; align-items:stretch; gap:8px; width:auto; color:#232323; background:transparent; padding:20px 0; margin:0; }
.order-dialog .receipt-foot span { font-size:.93rem; }
.order-dialog .receipt-foot p { margin:6px 0 0; }
@media (max-width:760px) {
  html[data-experience="customer"] .product-card-bottom { padding:0 9px 10px; gap:3px; }
  html[data-experience="customer"] .product-card-bottom .quantity-control { gap:2px; }
  html[data-experience="customer"] .product-card-bottom .quantity-control button { width:28px; min-width:28px; height:30px; }
  html[data-experience="customer"] .product-card-bottom .product-price { font-size:.92rem; }
  .order-dialog .receipt { padding:4px 15px; }
}
