:root {
  /* paleta tirada da capa: rosa #e3225a, creme #fef3ef, marrom #371506, dourado */
  --cream: #fef3ef;
  --cream-2: #fbe6e4;
  --ink: #371506;
  --ink-2: #71483a;
  --ink-3: #a88476;
  --pink: #e3225a;
  --pink-deep: #b8154a;
  --pink-soft: #fde7ee;
  --gold: #c9a24a;
  --gold-deep: #a5822f;
  --wa: #1fa855;
  --wa-deep: #178a45;
  --line: #f5dedb;
  --line-soft: #fbeee9;
  --white: #fff;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(55, 21, 6, 0.04), 0 10px 26px -20px rgba(55, 21, 6, 0.45);
  --shadow-lg: 0 30px 70px -40px rgba(55, 21, 6, 0.5);
  --font: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Playfair Display", Georgia, serif;
  --header-h: 66px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

::selection { background: var(--pink-soft); color: var(--pink-deep); }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(115% 46% at 8% -8%, #fde2e9 0%, rgba(253, 226, 233, 0) 62%),
    radial-gradient(90% 40% at 100% 0%, #fdeee7 0%, rgba(253, 238, 231, 0) 55%),
    linear-gradient(180deg, #fef6f3 0%, #fef3ef 52%, #fef7f4 100%);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.5;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
  -webkit-tap-highlight-color: transparent;
}

img { max-width: 100%; display: block; }

button { font: inherit; cursor: pointer; }

.wrap { width: min(1120px, 100%); margin-inline: auto; padding-inline: 18px; }

.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;
}

/* ------------------------------ header ----------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--header-h);
  padding-block: 9px;
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid var(--line);
  object-fit: cover;
  background: #fff;
  flex: none;
}
.brand div { min-width: 0; }
.brand strong {
  display: block;
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: -0.2px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand span { display: none; font-size: 11.5px; color: var(--ink-3); font-weight: 600; }

.cart-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  min-height: 40px;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 700;
  flex: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cart-btn:active { transform: scale(0.97); }
.cart-btn span { display: none; }
.cart-btn b {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 11.5px;
  padding: 0 5px;
}

/* ------------------------------ cover ------------------------------ */

.cover {
  position: relative;
  margin: 14px 0 4px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--cream-2);
  box-shadow: 0 18px 40px -34px rgba(55, 21, 6, 0.55);
}
.cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 1774 / 887;
  object-fit: cover;
}

/* ------------------------------- tabs ------------------------------ */

.tabs {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin: 0 -18px;
  padding: 12px 18px 24px;
  /* força a barra a ser composta acima dos cards (senão o fundo some no scroll) */
  will-change: transform;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #ffffff 74%,
    rgba(255, 255, 255, 0.94) 86%,
    rgba(255, 255, 255, 0) 100%
  );
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar { display: none; }
.tab-short { display: none; }

.tab {
  flex: none;
  border: 1px solid rgba(227, 34, 90, 0.12);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink-2);
  border-radius: 999px;
  min-height: 36px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 6px 14px -12px rgba(55, 21, 6, 0.7);
  transition: background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.tab.active {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
  box-shadow: 0 10px 20px -14px rgba(227, 34, 90, 0.95);
}

/* ----------------------------- catalog ----------------------------- */

.catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.loading { grid-column: 1 / -1; padding: 60px 20px; text-align: center; color: var(--ink-3); }

.category-title {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  margin: 0 0 -2px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
  scroll-margin-top: 146px;
}
#catalog > .category-title:first-child {
  margin-top: 6px;
  padding-top: 0;
  border-top: 0;
}
.category-title h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -0.4px;
  white-space: nowrap;
  position: relative;
  padding-bottom: 5px;
}
.category-title h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 34px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(201, 162, 74, 0));
}
.category-title p { margin: 0; font-size: 12.5px; color: var(--ink-3); }

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.16s, box-shadow 0.16s;
}
.card:active { transform: scale(0.995); }

.card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--cream-2);
  cursor: pointer;
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
@media (hover: hover) {
  .card:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -24px rgba(44, 24, 16, 0.5); }
  .card:hover .card-media img { transform: scale(1.035); }
}

.badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--pink-deep);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(227, 34, 90, 0.16);
  box-shadow: 0 2px 8px -3px rgba(55, 21, 6, 0.45);
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 3px;
  padding: 10px 11px 11px;
}
.card-body h3 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.1px;
  cursor: pointer;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-body p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--ink-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-foot {
  margin-top: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 6px;
  padding-top: 9px;
}
.price {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.price small {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.1px;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.add {
  margin-left: 0;
  border: 0;
  border-radius: 9px;
  background: var(--pink);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  min-height: 32px;
  padding: 6px 10px;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}
.add:active { transform: scale(0.96); }
@media (hover: hover) { .add:hover { background: var(--pink-deep); } }

/* ---------------------------- info strip --------------------------- */

.info-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px 18px;
  margin: 30px 0 6px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.info-strip div { display: flex; flex-direction: column; gap: 1px; }
.info-strip b {
  font-size: 11px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--pink-deep);
}
.info-strip span { font-size: 13px; color: var(--ink-2); }

/* ----------------------------- footer ------------------------------ */

.site-footer {
  margin-top: 34px;
  padding: 26px 0 calc(30px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, #fdeaea 100%);
}
.site-footer .wrap { display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
.site-footer img { width: 36px; height: 36px; border-radius: 10px; }
.site-footer p { margin: 0; font-size: 12.5px; color: var(--ink-2); }
.site-footer .tiny { font-size: 11.5px; color: var(--ink-3); }

/* ----------------------------- drawers ----------------------------- */

.drawer { position: fixed; inset: 0; z-index: 80; }
.drawer-backdrop, .modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 20, 12, 0.45);
  backdrop-filter: blur(3px);
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(410px, 92vw);
  background: var(--cream);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px -30px rgba(0, 0, 0, 0.45);
  animation: slideIn 0.22s ease-out;
}
@keyframes slideIn { from { transform: translateX(26px); opacity: 0.7; } }

.drawer-panel header {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.drawer-panel header h2 { margin: 0; font-family: var(--display); font-size: 19px; }
.drawer-panel header .icon-btn { margin-left: auto; }

.drawer-body { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.drawer-foot {
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
}
.drawer-foot .tiny { margin: 8px 0 0; text-align: center; }

.total-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.total-row span { font-size: 12px; font-weight: 800; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.6px; }
.total-row b { font-size: 22px; letter-spacing: -0.7px; }

.cart-line {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 11px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}
.cart-line img { width: 56px; height: 56px; border-radius: 9px; object-fit: cover; background: var(--cream-2); }
.cart-line .info { min-width: 0; }
.cart-line b { font-size: 13.5px; display: block; line-height: 1.25; }
.cart-line .flavor { font-size: 11.5px; color: var(--pink-deep); font-weight: 600; }
.cart-line .price-line { font-size: 12px; color: var(--ink-3); margin-top: 1px; }

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  margin-top: 6px;
  background: #fff;
}
.qty button { width: 30px; height: 30px; border: 0; background: #fff; font-size: 16px; color: var(--ink-2); }
.qty button:active { background: var(--cream-2); }
.qty span { min-width: 26px; text-align: center; font-size: 13px; font-weight: 700; }

.remove {
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: underline;
  min-height: 30px;
  padding: 0 2px;
}

.empty-cart { text-align: center; padding: 44px 10px; color: var(--ink-3); font-size: 13.5px; }

/* ------------------------------ buttons ---------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-weight: 700;
  font-size: 14.5px;
  min-height: 48px;
  padding: 12px 18px;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
}
.btn:active { transform: scale(0.99); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.pink { background: var(--pink); border-color: var(--pink-deep); color: #fff; }
.btn.wa { background: var(--wa); border-color: var(--wa-deep); color: #fff; }
.btn.gold { background: var(--gold); border-color: var(--gold-deep); color: #2c1810; }
.btn.full { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 15px;
  display: grid;
  place-items: center;
  flex: none;
}

/* ------------------------------ modals ----------------------------- */

.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; }
.modal-card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(90vh, 860px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--cream);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  animation: pop 0.2s ease-out;
}
@keyframes pop { from { transform: translateY(12px) scale(0.985); opacity: 0; } }

.modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(255, 255, 255, 0.92); }

.product-media { position: relative; aspect-ratio: 1 / 1; background: var(--cream-2); overflow: hidden; }
.product-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 16px 18px 20px; }
.product-body h2 { margin: 0 0 3px; font-family: var(--display); font-size: 23px; letter-spacing: -0.4px; line-height: 1.2; }
.product-body .desc { margin: 0 0 12px; color: var(--ink-2); font-size: 13.5px; }

.includes { margin: 0 0 14px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.includes li { font-size: 13px; color: var(--ink-2); padding-left: 19px; position: relative; }
.includes li::before { content: "✓"; position: absolute; left: 0; color: var(--wa); font-weight: 800; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 13px; }
.field > label { font-size: 11.5px; font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase; color: var(--ink-3); }
.field input, .field select, .field textarea {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px 13px;
  font-size: 16px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid rgba(226, 58, 114, 0.35); outline-offset: 1px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #d64545; background: #fff7f7; }
.field small { font-size: 11.5px; color: var(--ink-3); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  min-height: 36px;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.product-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.product-foot .price { font-size: 20px; }
.product-foot .btn { margin-left: auto; min-height: 46px; padding-inline: 20px; }

.checkout-summary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 13px;
}
.checkout-summary div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.checkout-summary .sum-total { border-top: 1px dashed var(--line); margin-top: 7px; padding-top: 7px; font-weight: 800; font-size: 14.5px; }

.form-title { font-family: var(--display); font-size: 22px; margin: 0 0 3px; }
.form-sub { margin: 0 0 16px; font-size: 12.5px; color: var(--ink-3); }
.form-section-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--pink-deep);
  margin: 16px 0 9px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }

/* ------------------------------ thanks ----------------------------- */

.thanks { padding: 30px 22px 24px; text-align: center; }
.thanks .check {
  width: 62px;
  height: 62px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #e7f7ee;
  color: var(--wa);
  display: grid;
  place-items: center;
  font-size: 28px;
}
.thanks h2 { margin: 0 0 5px; font-family: var(--display); font-size: 25px; }
.thanks p { margin: 0 auto 7px; max-width: 40ch; font-size: 13.5px; color: var(--ink-2); }
.thanks .order-code {
  display: inline-block;
  margin: 10px 0 4px;
  padding: 6px 15px;
  border-radius: 999px;
  background: #fff;
  border: 1px dashed var(--pink);
  font-family: ui-monospace, Menlo, monospace;
  font-size: 14.5px;
  font-weight: 700;
}
.thanks .next { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 13px 15px; margin: 16px 0; }
.thanks .next > b {
  display: block;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--pink-deep);
  margin-bottom: 5px;
}
.thanks .next ol b { display: inline; font-size: inherit; letter-spacing: 0; text-transform: none; color: var(--ink); }
.thanks .next ol { margin: 0; padding-left: 17px; font-size: 13px; color: var(--ink-2); }
.thanks .next li { margin-bottom: 3px; }
.thanks .actions { display: flex; flex-direction: column; gap: 8px; }

/* ------------------------------ toast ------------------------------ */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(88px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  z-index: 120;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
  max-width: 90vw;
  text-align: center;
}
.toast.error { background: #8c2b2b; }
.toast.ok { background: #3a1a0d; }

/* ---------------------------- sticky bar --------------------------- */

.sticky-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(12px + env(safe-area-inset-bottom));
  width: min(520px, calc(100% - 20px));
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 16px;
  border-radius: 15px;
  background: var(--ink);
  color: #fff;
  z-index: 60;
  box-shadow: 0 22px 46px -22px rgba(0, 0, 0, 0.75);
  animation: rise 0.2s ease-out;
}
@keyframes rise { from { transform: translate(-50%, 14px); opacity: 0; } }
.sticky-bar b { display: block; font-size: 11.5px; color: rgba(255, 255, 255, 0.6); font-weight: 700; }
.sticky-bar span { font-size: 15.5px; font-weight: 800; letter-spacing: -0.3px; }
.sticky-bar .btn { margin-left: auto; min-height: 42px; padding: 9px 16px; font-size: 13.5px; }

/* ---------------------------- responsive --------------------------- */

@media (min-width: 700px) {
  .brand span { display: block; }
  .cart-btn span { display: inline; }
  .cover { margin-top: 20px; }
  .tabs { padding-top: 16px; }
}

@media (max-width: 820px) {
  .wrap { padding-inline: 14px; }

  /* capa: no celular aparece inteira, de ponta a ponta, sem corte */
  .cover {
    margin: 0 -14px 0;
    aspect-ratio: 1774 / 887;
    border-radius: 0;
    border: 0;
    box-shadow: none;
  }
  .cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
  }
  /* categorias: todas visíveis, em um controle segmentado */
  .tabs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 5px;
    overflow: visible;
    margin: 0 -14px;
    padding: 12px 14px 20px;
    background: linear-gradient(
      180deg,
      #ffffff 0%,
      #ffffff 72%,
      rgba(255, 255, 255, 0.94) 86%,
      rgba(255, 255, 255, 0) 100%
    );
  }
  .tab {
    border: 1px solid rgba(227, 34, 90, 0.12);
    background: rgba(255, 255, 255, 0.96);
    color: var(--ink-2);
    border-radius: 999px;
    min-height: 34px;
    padding: 6px 4px;
    font-size: 12px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 6px 14px -12px rgba(55, 21, 6, 0.6);
  }
  .tab.active {
    background: var(--pink);
    border-color: var(--pink);
    color: #fff;
    box-shadow: 0 8px 18px -12px rgba(227, 34, 90, 0.9);
  }
  .tab-full { display: none; }
  .tab-short { display: inline; }

  .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .category-title { scroll-margin-top: 152px; padding-top: 22px; }
  .card { border-radius: 12px; }
  .card-body { padding: 8px 9px 9px; gap: 2px; }
  .card-body h3 { font-size: 12.5px; }
  .card-body p { font-size: 10.5px; -webkit-line-clamp: 2; }
  .price { font-size: 14.5px; }
  .price small { display: none; }
  .add { min-height: 30px; padding: 5px 8px; font-size: 10.5px; border-radius: 8px; }
  .badge { font-size: 8px; padding: 2px 6px; bottom: 6px; right: 6px; }
  .category-title h2 { font-size: 19px; }

  /* modais viram folhas que sobem da base */
  .modal { align-items: end; padding: 0; }
  .modal-card {
    width: 100%;
    max-height: 92dvh;
    border-radius: 20px 20px 0 0;
    animation: sheetUp 0.24s ease-out;
  }
  @keyframes sheetUp { from { transform: translateY(30px); opacity: 0.8; } }
  .modal-close {
    top: 10px;
    right: 10px;
    background: rgba(44, 24, 16, 0.6);
    color: #fff;
    border-color: transparent;
    backdrop-filter: blur(4px);
  }
  .product-media {
    aspect-ratio: auto;
    height: min(34dvh, 300px);
  }
  .product-media img { object-fit: contain; }
  .product-body { padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); }
  .product-body h2 { font-size: 21px; }
  .product-foot { position: sticky; bottom: 0; background: var(--cream); padding-bottom: 2px; }

  /* carrinho vira folha inferior */
  .drawer-panel {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    max-height: 88dvh;
    border-radius: 20px 20px 0 0;
    animation: sheetUp 0.24s ease-out;
  }
  .drawer-panel header { border-radius: 20px 20px 0 0; }
  .drawer-body { max-height: 52dvh; }

  /* aviso sobe para o topo para não cobrir os botões */
  .toast {
    top: calc(var(--header-h) + 10px);
    bottom: auto;
    animation: toastDown 0.2s ease-out;
  }
  @keyframes toastDown { from { transform: translate(-50%, -8px); opacity: 0; } }

  .info-strip { grid-template-columns: 1fr; gap: 10px; padding: 14px; }
  .form-row { grid-template-columns: 1fr; }
  .thanks { padding: 26px 18px 20px; }
}

@media (max-width: 360px) {
  .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .card-body h3 { font-size: 12px; }
  .price { font-size: 13.5px; }
  .add { font-size: 10px; padding: 5px 7px; }
}

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