:root {
  --red: #e4232b;
  --red-dark: #b8151c;
  --yellow: #ffd131;
  --ink: #151515;
  --muted: #6c6865;
  --line: #e9e5e2;
  --paper: #ffffff;
  --soft: #f6f4f2;
  --green: #18a85b;
  --shadow: 0 18px 55px rgba(30, 20, 15, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--soft);
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--soft); }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

.shell { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.topbar__inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; box-shadow: 0 5px 16px rgba(228,35,43,.2); }
.brand span { display: grid; line-height: 1; }
.brand strong { font-size: 1.05rem; letter-spacing: -.02em; }
.brand small { margin-top: 5px; font-size: .82rem; color: var(--muted); font-weight: 700; }
.topbar__actions { display: flex; align-items: center; gap: 12px; }
.service-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 13px; border-radius: 999px; background: #effaf4; color: #137642; font-size: .88rem; font-weight: 750; }
.service-pill span { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(24,168,91,.12); }
.cart-button { border: 0; min-height: 45px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; border-radius: 14px; background: var(--ink); color: white; font-weight: 800; }
.cart-button svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.cart-button b { display: grid; place-items: center; min-width: 23px; height: 23px; padding-inline: 5px; border-radius: 50%; background: var(--red); font-size: .76rem; }

.intro { margin-top: 26px; min-height: 355px; display: grid; grid-template-columns: 1.15fr .85fr; overflow: hidden; border-radius: 30px; background: #171110; box-shadow: var(--shadow); }
.intro__image { min-height: 355px; overflow: hidden; }
.intro__image img { width: 100%; height: 100%; object-fit: cover; }
.intro__copy { padding: 48px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; color: white; }
.eyebrow { margin: 0 0 8px; color: var(--red); font-size: .78rem; line-height: 1.3; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.intro .eyebrow { color: var(--yellow); }
.intro h1 { max-width: 520px; margin: 0; font-size: clamp(2.5rem, 5vw, 4.6rem); line-height: .96; letter-spacing: -.055em; }
.intro__copy > p:not(.eyebrow) { max-width: 470px; margin: 20px 0 26px; color: #e6dddd; font-size: 1.05rem; line-height: 1.55; }
.primary-link { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 20px; border-radius: 14px; color: #1d1714; background: var(--yellow); text-decoration: none; font-weight: 900; }

.menu { padding-block: 56px 120px; }
.menu__heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.menu h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; letter-spacing: -.045em; }
.category-tabs { display: inline-flex; gap: 7px; padding: 6px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.category-tabs button { min-height: 42px; padding: 0 17px; border: 0; border-radius: 11px; color: #4f4a46; background: transparent; font-weight: 850; }
.category-tabs button.is-active { color: white; background: var(--red); box-shadow: 0 7px 18px rgba(228,35,43,.22); }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-card { min-width: 0; display: grid; grid-template-rows: 210px 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(44,27,19,.1); }
.product-card__image { position: relative; display: grid; place-items: center; overflow: hidden; background: #fff; }
.product-card__image img { width: 100%; height: 100%; object-fit: contain; }
.product-card__category { position: absolute; top: 12px; left: 12px; padding: 7px 10px; border-radius: 999px; color: #5b504d; background: rgba(255,255,255,.94); border: 1px solid #eee8e4; font-size: .74rem; font-weight: 850; box-shadow: 0 5px 16px rgba(0,0,0,.06); }
.product-card__body { padding: 18px; display: flex; flex-direction: column; }
.product-card h3 { margin: 0; font-size: 1.15rem; line-height: 1.25; letter-spacing: -.02em; }
.product-card p { margin: 9px 0 18px; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.product-card__footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-card__price { font-size: 1.15rem; font-weight: 950; }
.add-button { min-height: 42px; padding: 0 15px; border: 0; border-radius: 12px; color: white; background: var(--red); font-weight: 850; transition: background .2s, transform .1s; }
.add-button:hover { background: var(--red-dark); }
.add-button:active { transform: scale(.97); }

@media (min-width: 721px) {
  .product-card__image img {
    width: auto;
    height: 88%;
    max-width: 88%;
    object-fit: contain !important;
    object-position: center;
  }
}

.mobile-cart { display: none; position: fixed; left: 16px; right: 16px; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 18; min-height: 58px; padding: 0 18px; border: 0; border-radius: 18px; color: white; background: var(--red); box-shadow: 0 14px 35px rgba(151,13,20,.35); align-items: center; justify-content: space-between; font-weight: 900; }
.mobile-cart span { display: flex; align-items: center; gap: 9px; }
.mobile-cart b { min-width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: var(--red); background: white; font-size: .8rem; }

.cart-dialog { width: min(500px, calc(100% - 20px)); max-height: min(820px, calc(100dvh - 20px)); margin: auto; padding: 0; overflow: hidden; border: 0; border-radius: 24px; background: var(--paper); box-shadow: 0 30px 90px rgba(0,0,0,.32); }
.cart-dialog::backdrop { background: rgba(20,13,10,.62); backdrop-filter: blur(4px); }
.cart-panel { max-height: min(820px, calc(100dvh - 20px)); display: flex; flex-direction: column; }
.cart-panel__header { padding: 22px 22px 17px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.cart-panel__header h2 { margin: 0; font-size: 1.65rem; letter-spacing: -.035em; }
.icon-button { width: 42px; height: 42px; border: 0; border-radius: 50%; color: var(--ink); background: var(--soft); font-size: 1.75rem; line-height: 1; }
.cart-empty { padding: 54px 28px 44px; display: grid; justify-items: center; text-align: center; }
.cart-empty > span { font-size: 3.5rem; }
.cart-empty h3 { margin: 14px 0 7px; font-size: 1.25rem; }
.cart-empty p { max-width: 310px; margin: 0 0 22px; color: var(--muted); line-height: 1.5; }
.secondary-button { min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 13px; background: white; font-weight: 850; }
.cart-content { min-height: 0; overflow-y: auto; padding: 0 22px 24px; overscroll-behavior: contain; }
.cart-items { display: grid; gap: 0; }
.cart-item { padding: 16px 0; display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); }
.cart-item img { width: 64px; height: 64px; object-fit: contain; border-radius: 13px; background: white; border: 1px solid var(--line); }
.cart-item h3 { margin: 0 0 5px; font-size: .97rem; }
.cart-item__price { color: var(--muted); font-size: .88rem; }
.quantity { display: inline-flex; align-items: center; gap: 9px; margin-top: 9px; }
.quantity button { width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 9px; background: white; font-size: 1.1rem; font-weight: 850; }
.quantity b { min-width: 16px; text-align: center; }
.cart-item > strong { font-size: .92rem; }
.cart-total-row { padding: 19px 0; display: flex; justify-content: space-between; font-size: 1.2rem; border-bottom: 1px solid var(--line); }
.cart-total-row strong { font-size: 1.4rem; }
#checkout-form { padding-top: 19px; display: grid; gap: 16px; }
#checkout-form > label { display: grid; gap: 8px; font-size: .9rem; font-weight: 820; }
#checkout-form label span { color: var(--muted); font-weight: 500; }
input, textarea { width: 100%; padding: 13px 14px; border: 1px solid #d9d3cf; border-radius: 12px; color: var(--ink); background: white; font-size: 1rem; outline: none; resize: vertical; }
input:focus, textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(228,35,43,.11); }
fieldset { margin: 0; padding: 0; border: 0; }
legend { margin-bottom: 8px; font-size: .9rem; font-weight: 820; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.choice { display: flex; align-items: center; gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; font-weight: 750; }
.choice input { width: 18px; height: 18px; accent-color: var(--red); }
.form-error { min-height: 0; margin: -4px 0 0; color: var(--red-dark); font-size: .88rem; font-weight: 750; }
.form-error:empty { display: none; }
.whatsapp-button { min-height: 54px; border: 0; border-radius: 15px; display: flex; align-items: center; justify-content: center; gap: 10px; color: white; background: #18a957; font-weight: 900; }
.whatsapp-button:hover { background: #128a46; }
.whatsapp-button svg { width: 22px; fill: currentColor; }
.toast { position: fixed; left: 50%; bottom: 90px; z-index: 40; padding: 11px 16px; border-radius: 999px; color: white; background: var(--ink); box-shadow: var(--shadow); font-size: .9rem; font-weight: 800; opacity: 0; transform: translate(-50%, 10px); pointer-events: none; transition: .22s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 940px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro { grid-template-columns: 1fr 1fr; }
  .intro__copy { padding: 34px; }
  .intro h1 { font-size: 3.25rem; }
}

@media (max-width: 720px) {
  .shell { width: min(100% - 24px, 620px); }
  .topbar__inner { min-height: 68px; }
  .brand img { width: 47px; height: 47px; }
  .brand strong { font-size: .98rem; }
  .service-pill, .cart-button span { display: none; }
  .cart-button { width: 48px; padding: 0; justify-content: center; position: relative; }
  .cart-button b { position: absolute; top: -5px; right: -5px; }
  .intro { margin-top: 12px; min-height: 0; grid-template-columns: 1fr; border-radius: 22px; }
  .intro__image { min-height: 220px; max-height: 260px; }
  .intro__copy { padding: 26px 23px 30px; }
  .intro h1 { font-size: clamp(2.45rem, 13vw, 3.7rem); }
  .intro__copy > p:not(.eyebrow) { margin: 16px 0 22px; font-size: 1rem; }
  .menu { padding: 42px 0 110px; }
  .menu__heading { align-items: stretch; flex-direction: column; gap: 18px; }
  .category-tabs { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); }
  .category-tabs button { padding-inline: 6px; font-size: .8rem; }
  .product-grid { grid-template-columns: 1fr; gap: 13px; }
  .product-card { grid-template-columns: 125px 1fr; grid-template-rows: minmax(172px, auto); border-radius: 18px; }
  .product-card__image { min-height: 172px; }
  .product-card__category { top: 8px; left: 8px; padding: 5px 8px; }
  .product-card__body { padding: 15px 14px; }
  .product-card h3 { font-size: 1.02rem; }
  .product-card p { margin: 7px 0 13px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: .82rem; line-height: 1.4; }
  .product-card__footer { align-items: end; }
  .product-card__price { font-size: 1rem; }
  .add-button { min-width: 44px; padding-inline: 12px; }
  .mobile-cart { display: flex; }
  .cart-dialog { width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .cart-panel { max-height: 92dvh; padding-bottom: env(safe-area-inset-bottom); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
