.menu-main { max-width: 900px; }
.menu-intro { padding: 30px 0 20px; }
.menu-intro h1 { font-size: clamp(2rem, 6vw, 3.25rem); margin-bottom: 10px; }
.menu-intro p { font-size: .75rem; color: var(--muted); margin: 0; }
.menu-intro .business-hours { margin-top: 16px; }
.menu-intro .service-notice { margin-top: 12px; }
.view-switch { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.view-switch button { flex: 1; background: transparent; border: 0; border-bottom: 3px solid transparent; padding: 12px; font-weight: 700; }
.view-switch button[aria-pressed="true"] { border-bottom-color: var(--orange); }
.viewer-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-bottom: 10px; }
.viewer-caption { margin-right: auto; color: var(--muted); font-size: .75rem; }
.viewer-toolbar button { background: transparent; border: 1px solid var(--line); min-width: 44px; padding-inline: 10px; }
.viewer-toolbar button:disabled { opacity: .4; cursor: default; }
.viewer-toolbar output { min-width: 40px; text-align: center; font-size: .75rem; }
.menu-viewport { max-height: 75svh; overflow: auto; border: 1px solid var(--line); background: #e9e0d4; }
.menu-sheet { width: 100%; }
.menu-sheet img { width: 100%; max-width: none; }
.categories { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.categories button { flex: 1 0 auto; padding: 8px 10px; background: transparent; border: 1px solid var(--line); border-radius: 2px; font-size: .8rem; }
.categories button[aria-pressed="true"] { background: var(--carbon); border-color: var(--carbon); color: var(--cream); }
.product-grid { display: grid; column-gap: 32px; }
.product--combo { border-top: 3px solid var(--orange); background: #f3e6d5; padding: 16px; }
.product--combo .add-button { background: var(--orange); border-color: var(--orange); }
.product { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.product-media img { aspect-ratio: 1; width: 100%; object-fit: cover; }
.photo-trigger { display: block; position: relative; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.product-media .image-fallback { aspect-ratio: 1; min-height: 0; padding: 8px; font-size: .7rem; }
.product h3 { margin: 0 0 6px; font-size: 1.05rem; line-height: 1.2; }
.product-description { color: var(--muted); font-size: .75rem; margin-bottom: 8px; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.product-price { font-size: .9rem; font-weight: 700; }
.add-button { border: 1px solid var(--carbon); padding: 7px 12px; background: transparent; font-weight: 700; font-size: .75rem; }
.add-button:hover:not(:disabled) { background: var(--yellow); }
.add-button:disabled { color: var(--muted); border-color: var(--line); cursor: default; }
.order-status { font-size: .85rem; margin-top: 16px; }
.terms { padding-block: 20px 28px; }
.terms details { border-top: 1px solid var(--line); padding-block: 12px; }
.terms summary { font-size: .85rem; font-weight: 700; min-height: 44px; align-content: center; }
.terms p, .terms li { font-size: .8rem; color: var(--muted); }
.terms li { margin-block: 8px; }
body.has-cart { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
.cart-bar { position: fixed; bottom: 0; inset-inline: 0; z-index: 90; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: var(--cream); border-top: 1px solid var(--line); }
.cart-bar button { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: min(100%, 900px); margin: auto; padding: 15px 20px; border: 0; background: var(--carbon); color: var(--cream); font-weight: 700; }
#cart-count { margin-left: 6px; color: var(--yellow); }
/* Diálogos nativos: foco contenido, cierre con Escape y fondo inerte. */
body.dialog-open { overflow: hidden; }
.sheet { width: min(560px, 100%); max-width: 100%; max-height: 92dvh; padding: 0; border: 0; background: var(--cream); color: var(--carbon); overscroll-behavior: contain; }
.sheet::backdrop { background: rgb(27 27 27 / .5); }
.sheet-header { position: sticky; top: 0; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 16px; border-bottom: 1px solid var(--line); background: var(--cream); }
.sheet-header h2 { font-size: 1.5rem; margin: 0; line-height: 1.15; }
.sheet-header .eyebrow { margin-bottom: 8px; color: var(--muted); }
.close-button { flex-shrink: 0; min-width: 44px; border: 1px solid var(--line); background: transparent; font-size: 1.5rem; }
.sheet-body { padding: 20px 24px; }
.sheet-body > .muted { margin-bottom: 20px; }
.option-section { border-bottom: 1px solid var(--line); padding-block: 8px 16px; }
.option-section > summary { min-height: 44px; align-content: center; font-weight: 700; }
.option-group { padding: 0; margin: 16px 0 22px; border: 0; min-width: 0; }
.option-group legend, .option-label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 8px; }
.option-group .muted { font-size: .75rem; margin-bottom: 8px; }
.option-group select { width: 100%; min-height: 46px; padding: 10px; border: 1px solid var(--line); border-radius: 0; background: var(--cream); color: var(--carbon); }
.option-choice { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding-block: 6px; font-size: .9rem; }
.option-choice input[type="checkbox"] { width: 20px; height: 20px; margin: 0; accent-color: var(--carbon); }
.option-choice:has(input:disabled) { color: var(--muted); }
.option-choice input[type="number"], #custom-quantity { width: 64px; min-height: 44px; padding: 6px; border: 1px solid var(--line); background: var(--cream); color: var(--carbon); }
.extras-group { margin-block: 16px; }
.extras-group > summary { font-size: .85rem; min-height: 44px; align-content: center; }
.sheet-actions, .cart-actions { position: sticky; bottom: 0; padding: 16px 24px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--cream); }
.sheet-actions { display: flex; align-items: end; gap: 16px; }
.sheet-actions .button { flex: 1; gap: 8px; flex-wrap: wrap; }
.quantity-label { font-size: .75rem; }
#custom-quantity { display: block; margin-top: 6px; }
.form-error { color: #9d2d0b; font-size: .85rem; margin: 0; }
.draft-items { list-style: none; padding: 0; margin: 0; }
.cart-tools { display: flex; justify-content: flex-end; margin-block: 14px; }
.cart-tools .button { background: transparent; padding: 8px 14px; font-size: .85rem; }
.promo-redemption, .order-estimate { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 20px; }
.promo-redemption summary { min-height: 44px; font-weight: 700; }
.promo-entry { display: flex; flex-wrap: wrap; gap: 10px; }
.promo-entry input { flex: 1 1 140px; width: 100%; min-width: 0; padding: 10px; border: 1px solid var(--line); background: var(--cream); }
.promo-entry .button { padding: 8px 12px; background: transparent; }
.order-estimate { font-size: .85rem; }
.order-estimate .muted { font-size: .75rem; }
#cart-shipping-summary { margin-bottom: 6px; }
.order-reference { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.order-reference p { margin-bottom: 8px; }
#order-folio { display: block; font-size: .95rem; letter-spacing: .03em; overflow-wrap: anywhere; user-select: all; }
.order-reference .muted { font-size: .75rem; margin-top: 8px; }
.draft-items > li { border-bottom: 1px solid var(--line); padding-block: 16px; }
.draft-heading, .draft-controls, .subtotal { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.draft-heading { align-items: flex-start; }
.draft-heading h3 { font-size: 1rem; margin-bottom: 10px; line-height: 1.3; }
.draft-heading strong { white-space: nowrap; font-size: .9rem; }
.draft-options { padding-left: 16px; margin-block: 6px 12px; color: var(--muted); font-size: .75rem; }
.draft-options li { margin-bottom: 3px; }
.draft-stepper { display: flex; align-items: center; gap: 10px; }
.draft-stepper button { min-width: 44px; border: 1px solid var(--line); background: transparent; }
.text-button { border: 0; background: transparent; padding: 4px; text-decoration: underline; text-underline-offset: 3px; font-size: .8rem; }
#cart-details label { display: block; margin-block: 20px 8px; font-size: .85rem; }
#order-notes, #delivery-address { display: block; width: 100%; padding: 12px; border: 1px solid var(--line); background: var(--cream); resize: vertical; }
.delivery-details { border-block: 1px solid var(--line); padding-block: 12px; margin-top: 16px; }
.delivery-details summary { min-height: 44px; align-content: center; font-weight: 700; font-size: .85rem; cursor: pointer; }
.location-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-block: 14px; }
.location-actions .button { background: transparent; font-size: .85rem; }
.location-actions .button:disabled { cursor: wait; opacity: .65; }
.delivery-details .muted { font-size: .75rem; margin-bottom: 8px; }
.delivery-details .text-link { display: inline-block; padding-block: 8px; }
.fulfillment-choice { border: 0; padding: 0; margin: 20px 0; }
.fulfillment-choice legend { font-size: .9rem; font-weight: 700; margin-bottom: 8px; }
#cart-details .fulfillment-choice label { display: flex; align-items: center; gap: 10px; margin: 0; min-height: 44px; }
.fulfillment-choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--carbon); }
#order-schedule { width: 100%; min-height: 46px; padding: 10px; border: 1px solid var(--line); background: var(--cream); color: var(--carbon); }
#schedule-note { font-size: .75rem; margin-top: 10px; }
#payment-method { width: 100%; min-height: 46px; padding: 10px; border: 1px solid var(--line); background: var(--cream); color: var(--carbon); }
#payment-help, .transfer-details .muted { font-size: .75rem; margin-top: 10px; }
.address-result { display: block; width: 100%; margin-block: 8px; padding: 12px; text-align: left; border: 1px solid var(--line); background: transparent; font-size: .85rem; }
.address-result[aria-pressed="true"] { border-color: var(--orange); background: #f3e6d5; }
.transfer-details { margin-block: 20px; padding: 16px; border: 1px solid var(--line); }
.transfer-details h3 { color: var(--orange); }
.transfer-row { padding-block: 10px; border-bottom: 1px solid var(--line); }
.transfer-row dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; }
.transfer-row dd { margin: 4px 0; font-weight: 700; overflow-wrap: anywhere; user-select: all; }
#customer-fields input { width: 100%; min-height: 44px; padding: 10px; border: 1px solid var(--line); background: var(--cream); }
#customer-fields .muted { font-size: .75rem; margin-top: 10px; }
.bot-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.pickup-details { border-block: 1px solid var(--line); padding-block: 16px; font-size: .85rem; }
.subtotal { margin-bottom: 8px; }
.cart-actions .muted { font-size: .75rem; margin-bottom: 12px; }
.cart-actions .button { width: 100%; font-size: .85rem; }
.cart-actions .backup-contact { display: block; padding-block: 12px 0; text-align: center; font-size: .75rem; }
@media (max-width: 599px) { .sheet { margin: auto 0 0; max-height: 94dvh; } .sheet-header, .sheet-body { padding-inline: 20px; } .sheet-actions, .cart-actions { padding-inline: 20px; } }
.photo-dialog { width: min(760px, 100%); }
.contact-trigger { padding: 8px 0 8px 12px; border: 0; background: transparent; text-decoration: underline; text-underline-offset: .22em; }
.contact-option { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; border-bottom: 1px solid var(--line); text-decoration: none; }
.contact-option:first-child { padding-top: 4px; }
.contact-option strong { display: block; margin-bottom: 6px; }
.contact-option [data-contact-number] { font-size: .95rem; color: var(--muted); }
.contact-option:hover { color: var(--orange); }
.photo-controls { display: flex; align-items: center; gap: 8px; padding: 12px 20px 0; }
.photo-controls button { min-width: 44px; padding-inline: 12px; background: transparent; border: 1px solid var(--line); }
.photo-controls button:disabled { opacity: .4; cursor: default; }
.photo-controls output { min-width: 48px; text-align: center; font-size: .8rem; }
.photo-instructions { margin: 8px 20px 12px; font-size: .75rem; color: var(--muted); }
.photo-viewport { overflow: auto; max-height: 65dvh; background: #e9e0d4; }
#photo-canvas { width: 100%; margin-inline: auto; }
#product-photo { display: block; width: 100%; max-width: none; height: auto; }
@media (min-width: 760px) {
  .product--combo { border-top: 3px solid var(--orange); background: #f3e6d5; padding: 16px; grid-template-columns: 110px minmax(0, 1fr); }
  .product--combo .add-button { background: var(--orange); border-color: var(--orange); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu-intro { padding-top: 40px; }
}
