.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.menu-page { min-height: 100vh; background: var(--paper); }
.menu-header { position: sticky; top: 0; z-index: 80; border-bottom: 1px solid var(--line); background: rgba(244,240,232,.96); backdrop-filter: blur(14px); }
.menu-header-inner { min-height: 74px; display: flex; align-items: center; gap: 1rem; }
.menu-header .brand img { width: 90px; }
.back-home { display: inline-flex; align-items: center; gap: .45rem; margin-left: auto; color: var(--ink); font-weight: 800; text-decoration: none; }
.back-home:hover { color: var(--red); }
.cart-trigger { min-height: 46px; display: inline-flex; align-items: center; gap: .75rem; padding: .5rem .55rem .5rem 1rem; border: 0; border-radius: 999px; background: var(--ink); color: var(--white); font-weight: 850; cursor: pointer; }
.cart-trigger b { min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--red); font-size: .78rem; }

.menu-hero { padding: clamp(3.5rem, 7vw, 7rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.menu-hero-grid { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2rem; }
.menu-hero h1 { max-width: 900px; font-size: clamp(4rem, 10vw, 8.5rem); }
.menu-hero p:not(.eyebrow) { max-width: 690px; margin: 1.6rem 0 0; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.2rem); }
.menu-hero-badge { width: 145px; aspect-ratio: 1; display: grid; place-content: center; border-radius: 50%; background: var(--red); color: var(--white); text-align: center; transform: rotate(5deg); }
.menu-hero-badge strong { display: block; font-family: var(--display); font-size: 3.3rem; line-height: .9; }
.menu-hero-badge span { max-width: 85px; display: block; margin: .5rem auto 0; font-size: .68rem; font-weight: 850; letter-spacing: .07em; line-height: 1.25; text-transform: uppercase; }

.menu-catalog { padding-bottom: 6rem; }
.menu-toolbar { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; }
.search-box { min-height: 52px; flex: 1; display: flex; align-items: center; gap: .75rem; padding: 0 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--muted); }
.search-box:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(199,25,32,.13); }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 1rem; }
.search-box input::placeholder { color: #77726a; opacity: 1; }
.results-count { min-width: 150px; margin: 0; color: var(--muted); font-size: .86rem; text-align: right; }
.category-tabs { position: sticky; top: 74px; z-index: 60; display: flex; gap: .55rem; margin: 0 calc(50% - 50vw) 2rem; padding: .8rem max(1rem, calc((100vw - var(--content)) / 2)); overflow-x: auto; scrollbar-width: thin; background: rgba(244,240,232,.97); border-block: 1px solid var(--line); backdrop-filter: blur(14px); }
.category-tab { min-height: 43px; flex: none; padding: .65rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font-size: .84rem; font-weight: 820; cursor: pointer; }
.category-tab:hover { border-color: var(--red); }
.category-tab[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--white); }

.menu-group { margin-top: 2.4rem; scroll-margin-top: 145px; }
.menu-group-head { min-height: 190px; display: grid; grid-template-columns: 1fr minmax(230px, .7fr); align-items: center; overflow: hidden; margin-bottom: 1rem; border-radius: var(--radius); background: var(--ink); color: var(--white); }
.menu-group-title { padding: clamp(1.5rem, 4vw, 3rem); }
.menu-group-title p { margin: 0 0 .45rem; color: #ff969a; font-size: .72rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.menu-group-title h2 { font-size: clamp(2.6rem, 5vw, 4.8rem); }
.menu-group-head img { width: 100%; height: 100%; min-height: 190px; max-height: 250px; object-fit: contain; padding: 1rem; background: var(--white); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.product-card { min-height: 100%; display: flex; flex-direction: column; padding: 1.35rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--white); }
.product-card h3 { font-family: var(--body); font-size: 1.05rem; letter-spacing: -.015em; line-height: 1.25; text-transform: none; }
.product-category { margin: 0 0 .5rem; color: var(--red); font-size: .68rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.product-description { margin: .8rem 0 1.2rem; color: var(--muted); font-size: .86rem; line-height: 1.5; }
.product-options { margin-top: auto; }
.variant-label { display: block; margin-bottom: .35rem; color: var(--muted); font-size: .72rem; font-weight: 750; }
.variant-select { width: 100%; min-height: 44px; padding: .55rem 2.25rem .55rem .7rem; border: 1px solid var(--line); border-radius: .6rem; background: var(--paper); color: var(--ink); }
.product-action { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .9rem; }
.product-price { flex: none; font-size: 1.05rem; font-weight: 900; }
.add-product { min-height: 43px; padding: .55rem .95rem; border: 0; border-radius: 999px; background: var(--red); color: var(--white); font-size: .8rem; font-weight: 850; cursor: pointer; }
.add-product:hover { background: var(--red-dark); }
.add-product:active { transform: scale(.98); }
.empty-menu { padding: 5rem 1rem; text-align: center; }
.empty-menu h3 { font-size: clamp(2rem, 5vw, 3.5rem); }
.empty-menu p { margin: 1rem 0 1.5rem; color: var(--muted); }
.menu-disclaimer { max-width: 820px; margin: 2rem 0 0; color: var(--muted); font-size: .78rem; }

.cart-overlay { position: fixed; z-index: 190; inset: 0; background: rgba(0,0,0,.58); opacity: 0; transition: opacity .2s ease; }
.cart-overlay.visible { opacity: 1; }
.order-panel { position: fixed; z-index: 200; inset: 0 0 0 auto; width: min(480px, 100%); display: flex; flex-direction: column; padding: 1.25rem; background: var(--paper); box-shadow: -20px 0 60px rgba(0,0,0,.22); transform: translateX(105%); visibility: hidden; transition: transform .25s ease, visibility .25s; overflow-y: auto; }
.order-panel.open { transform: none; visibility: visible; }
.order-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.order-head .eyebrow { margin-bottom: .4rem; }
.order-head h2 { font-size: 2.8rem; }
.icon-button { width: 46px; height: 46px; flex: none; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--ink); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.cart-empty { padding: 3rem .5rem; text-align: center; }
.cart-empty p { color: var(--muted); }
.text-button { padding: .5rem; border: 0; background: transparent; color: var(--red); font-weight: 850; text-decoration: underline; text-underline-offset: .3rem; cursor: pointer; }
.cart-list { display: grid; gap: .75rem; padding: 1rem 0; }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: .65rem; padding: 1rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--white); }
.cart-item h3 { font-family: var(--body); font-size: .94rem; letter-spacing: 0; line-height: 1.3; text-transform: none; }
.cart-item p { margin: .25rem 0 0; color: var(--muted); font-size: .75rem; }
.cart-line-total { font-size: .88rem; font-weight: 900; }
.cart-controls { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.quantity-control { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.quantity-control button { width: 36px; height: 34px; border: 0; background: transparent; color: var(--ink); font-size: 1.1rem; cursor: pointer; }
.quantity-control span { min-width: 28px; text-align: center; font-size: .82rem; font-weight: 850; }
.remove-item { border: 0; background: transparent; color: #9a161b; font-size: .74rem; font-weight: 800; text-decoration: underline; text-underline-offset: .2rem; cursor: pointer; }
.order-details { display: grid; gap: .9rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.order-details fieldset { display: flex; gap: 1rem; margin: 0; padding: .8rem; border: 1px solid var(--line); border-radius: .7rem; }
.order-details legend { padding-inline: .3rem; font-size: .76rem; font-weight: 850; }
.order-details label { display: grid; gap: .35rem; font-size: .78rem; font-weight: 800; }
.order-details fieldset label { display: flex; align-items: center; }
.order-details input[type="text"], .order-details textarea { width: 100%; padding: .75rem; border: 1px solid var(--line); border-radius: .6rem; background: var(--white); color: var(--ink); font-size: .94rem; resize: vertical; }
.order-details label small { color: var(--muted); font-weight: 650; text-align: right; }
.order-footer { position: sticky; bottom: -1.25rem; margin: auto -1.25rem -1.25rem; padding: 1rem 1.25rem 1.25rem; border-top: 1px solid var(--line); background: var(--paper); }
.order-footer > p { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 .8rem; }
.order-footer > p strong { font-size: 1.15rem; }
.whatsapp-order { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: center; gap: .5rem; border: 0; border-radius: 999px; background: #137a3d; color: var(--white); font-weight: 900; cursor: pointer; }
.whatsapp-order:hover { background: #0f6331; }
.order-footer > small { display: block; margin-top: .6rem; color: var(--muted); font-size: .7rem; text-align: center; }
.toast { position: fixed; z-index: 250; left: 50%; bottom: 1.2rem; width: min(390px, calc(100% - 2rem)); padding: .85rem 1rem; border-radius: .7rem; background: var(--ink); color: var(--white); box-shadow: var(--shadow); text-align: center; transform: translateX(-50%); font-size: .85rem; font-weight: 800; }
.menu-footer { padding: 2.5rem 0; background: var(--ink); color: rgba(255,255,255,.8); }
.menu-footer p { margin: 0; font-size: .84rem; }

@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 680px) {
  .menu-page { padding-bottom: 0; }
  .menu-header-inner { min-height: 66px; }
  .menu-header .brand img { width: 80px; }
  .back-home { font-size: .8rem; }
  .cart-trigger { min-height: 44px; }
  .cart-trigger span { display: none; }
  .menu-hero { padding: 1.8rem 0; }
  .menu-hero-grid { grid-template-columns: 1fr; }
  .menu-hero h1 { font-size: clamp(3.25rem, 16vw, 4.8rem); }
  .menu-hero p:not(.eyebrow) { margin-top: .85rem; font-size: .94rem; }
  .menu-hero-badge { display: none; }
  .menu-toolbar { align-items: stretch; flex-direction: column; }
  .results-count { min-width: 0; text-align: left; }
  .category-tabs { top: 66px; }
  .menu-group-head { min-height: 116px; grid-template-columns: 1fr 105px; }
  .menu-group-head img { min-height: 116px; padding: .4rem; }
  .menu-group-title { padding: 1.25rem; }
  .menu-group-title h2 { font-size: clamp(2rem, 10vw, 3rem); }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { padding: 1.15rem; }
  .order-panel { padding: 1rem; }
  .order-footer { margin-inline: -1rem; margin-bottom: -1rem; padding-inline: 1rem; padding-bottom: 1rem; }
}

@media (max-width: 680px) {
  .menu-page { width: 100%; max-width: 100%; overflow-x: hidden; }
  .menu-header { width: 100%; max-width: 100vw; }
  .menu-header-inner { width: 100%; min-width: 0; gap: .65rem; }
  .menu-header .brand, .cart-trigger { flex: none; }
  .back-home { min-width: 0; white-space: nowrap; }
  .cart-trigger { padding: .35rem .4rem; }
  .menu-hero, .menu-catalog, .menu-groups, .menu-group,
  .menu-group-head, .menu-group-title, .product-grid, .product-card,
  .product-options, .product-action { width: 100%; max-width: 100%; min-width: 0; }
  .menu-hero h1 {
    max-width: 100%;
    font-size: clamp(2.8rem, 14vw, 4.2rem);
    overflow-wrap: break-word;
  }
  .menu-toolbar, .search-box, .search-box input { width: 100%; min-width: 0; }
  .category-tabs {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: calc(.8rem + env(safe-area-inset-left));
    padding-right: calc(.8rem + env(safe-area-inset-right));
    overscroll-behavior-inline: contain;
  }
  .menu-group-head { grid-template-columns: minmax(0, 1fr) 92px; }
  .menu-group-title { padding: 1rem; }
  .menu-group-title h2 { max-width: 100%; font-size: clamp(1.75rem, 9vw, 2.7rem); overflow-wrap: anywhere; }
  .menu-group-head img { width: 100%; min-width: 0; height: 100%; object-fit: contain; }
  .product-card h3, .product-description { max-width: 100%; overflow-wrap: anywhere; }
  .variant-select { max-width: 100%; }
  .product-action { flex-wrap: wrap; }
  .order-panel { width: 100vw; max-width: 100%; padding: 1rem; padding-bottom: calc(1rem + env(safe-area-inset-bottom)); }
  .order-head, .cart-item, .cart-controls, .order-details { min-width: 0; }
  .cart-item { grid-template-columns: minmax(0, 1fr) auto; }
  .cart-item h3 { overflow-wrap: anywhere; }
  .order-details fieldset { flex-wrap: wrap; }
  .order-footer { padding-bottom: calc(1rem + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(1rem + env(safe-area-inset-bottom)); max-width: calc(100vw - 1.25rem); }
}

@media (max-width: 380px) {
  .menu-header .brand img { width: 70px; }
  .back-home { font-size: .74rem; }
  .menu-group-head { grid-template-columns: minmax(0, 1fr) 78px; }
  .menu-group-title { padding: .85rem; }
  .product-action { align-items: stretch; }
  .add-product { flex: 1; }
}
