@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --cream: #fbf5e8;
  --cream-dark: #efe3ca;
  --paper: #fffdf7;
  --pine: #063d2b;
  --forest: #075d38;
  --leaf: #0b7a4b;
  --mint: #cfe6d6;
  --orange: #ef8d09;
  --orange-soft: #ffc870;
  --ink: #12372b;
  --muted: #7c8b83;
  --line: rgba(6, 61, 43, .12);
  --price: #e07a00;
  --star: #f5a623;
  --shadow-card: 0 10px 30px rgba(6, 61, 43, .08);
  --nav-h: 68px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  color: var(--ink);
  background: var(--cream);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: "Fraunces", Georgia, serif; letter-spacing: -.02em; line-height: 1.12; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* ---------- Phone frame ---------- */
.app-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 440px);
  height: 100dvh;
  margin-inline: auto;
  overflow: hidden;
  background: var(--cream);
}
/* Tablet: sem moldura de celular, so um respiro nas laterais */
@media (min-width: 480px) {
  body { background: var(--cream); }
  .app-frame { width: min(100%, 560px); }
}

/* ---------- Header ---------- */
.app-header {
  flex: none;
  padding: 14px 16px 14px;
  color: #fff;
  background: linear-gradient(160deg, var(--forest), var(--pine));
}
.app-header-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.app-brand { display: flex; align-items: center; gap: 9px; margin-right: auto; }
.app-brand img { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .35); object-fit: cover; }
.app-brand strong { font-family: "Fraunces", Georgia, serif; font-size: 18px; }
.app-brand span { display: block; font-size: 8.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.app-icon-btn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.app-icon-btn svg { width: 21px; height: 21px; }
.app-badge { position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; padding: 0 5px; display: grid; place-items: center; border-radius: 999px; background: var(--orange); color: var(--pine); font-size: 10px; font-weight: 800; border: 2px solid var(--forest); }
.app-badge.is-empty { display: none; }
.app-search { display: flex; align-items: center; gap: 9px; width: 100%; padding: 11px 15px; border-radius: 999px; background: var(--paper); color: var(--muted); text-align: left; font-size: 14px; }
.app-search svg { width: 18px; height: 18px; flex: none; color: var(--forest); }
.app-search input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}
.app-search input::placeholder { color: var(--muted); opacity: 1; }
.app-search input:focus { outline: none; }
.app-search input::-webkit-search-cancel-button,
.app-search input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.app-search-clear {
  flex: none;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--pine);
  font-size: 15px;
  line-height: 1;
}

/* ---------- Main / screens ---------- */
.app-main { position: relative; flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.screen { display: none; padding: 16px 16px calc(var(--nav-h) + 24px); }
.screen.is-active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 2px 12px; }
.section-title h2 { color: var(--pine); font-size: 21px; }
.section-title button { color: var(--forest); font-size: 12px; font-weight: 700; }

/* ---------- Banner ---------- */
.banner { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 2px -16px 4px; padding: 0 16px; scrollbar-width: none; }
.banner::-webkit-scrollbar { display: none; }
.banner-card { position: relative; flex: 0 0 84%; scroll-snap-align: start; height: 158px; border-radius: 20px; overflow: hidden; color: #fff; }
.banner-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(6, 61, 43, .82) 8%, rgba(6, 61, 43, .1) 78%); }
.banner-copy { position: absolute; z-index: 1; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 20px; max-width: 74%; }
.banner-copy span { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-soft); }
.banner-copy strong { font-family: "Fraunces", Georgia, serif; font-size: 22px; font-weight: 600; line-height: 1.08; }
.banner-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.banner-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: width .2s, background .2s; }
.banner-dots i.on { width: 18px; background: var(--forest); }

/* ---------- Category quick grid ---------- */
.cat-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 4px; margin-top: 6px; }
.cat-quick button { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 6px 2px; }
.cat-quick .emoji { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 18px; background: var(--paper); box-shadow: var(--shadow-card); font-size: 24px; }
.cat-quick small { font-size: 10.5px; font-weight: 600; color: var(--ink); text-align: center; line-height: 1.15; }

/* ---------- Trust row ---------- */
.trust-row { display: flex; gap: 8px; margin: 16px 0 2px; }
.trust-pill { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 11px 6px; border-radius: 15px; background: var(--paper); box-shadow: var(--shadow-card); text-align: center; }
.trust-pill span { font-size: 17px; }
.trust-pill small { font-size: 9.5px; font-weight: 700; color: var(--forest); line-height: 1.15; }

/* ---------- Horizontal product rail ---------- */
.rail { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 6px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail .product-card { flex: 0 0 152px; }

/* ---------- Product grid + card ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.product-card { position: relative; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--paper); box-shadow: var(--shadow-card); }
.product-thumb { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--mint); }
.product-thumb img { width: 170%; height: 100%; max-width: none; object-fit: cover; }
.disc-tag { position: absolute; top: 8px; left: 8px; padding: 3px 7px; border-radius: 8px; background: var(--orange); color: var(--pine); font-size: 10px; font-weight: 800; }
.fav-btn { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .82); backdrop-filter: blur(4px); }
.fav-btn svg { width: 17px; height: 17px; color: var(--pine); }
.fav-btn.on svg { color: #e23b3b; fill: #e23b3b; }
.product-info { display: flex; flex-direction: column; gap: 4px; padding: 10px 11px 12px; }
.product-info .cat { font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--forest); }
.product-info h3 { font-family: "Manrope", sans-serif; font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 33px; }
.price-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: 1px; }
.price-row .now { font-size: 16px; font-weight: 800; color: var(--price); }
.price-row .old { font-size: 11px; color: var(--muted); text-decoration: line-through; }
.meta-row { display: flex; align-items: center; gap: 5px; font-size: 10px; color: var(--muted); }
.stars { color: var(--star); letter-spacing: -1px; }
.card-add { position: absolute; bottom: 10px; right: 10px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 12px; background: var(--leaf); color: #fff; font-size: 20px; line-height: 1; box-shadow: 0 6px 14px rgba(11, 122, 75, .35); transition: transform .15s, background .2s; }
.card-add:active { transform: scale(.9); background: var(--pine); }
.ship-chip { display: inline-flex; align-items: center; gap: 3px; align-self: flex-start; margin-top: 2px; padding: 2px 6px; border-radius: 6px; background: var(--mint); color: var(--forest); font-size: 9px; font-weight: 700; }

/* ---------- Categorias screen ---------- */
.cat-chips { display: flex; gap: 8px; overflow-x: auto; margin: 2px -16px 14px; padding: 2px 16px; scrollbar-width: none; }
.cat-chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--paper); box-shadow: var(--shadow-card); font-size: 12px; font-weight: 700; color: #3a5b4e; }
.chip.on { background: var(--forest); color: #fff; }
.screen-head { margin: 4px 2px 14px; }
.screen-head h1 { color: var(--pine); font-size: 27px; }
.screen-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.result-count { margin: 0 2px 12px; font-size: 12px; color: var(--muted); }

/* ---------- Product detail sheet ---------- */
.detail { position: absolute; inset: 0; z-index: 40; display: flex; flex-direction: column; background: var(--cream); transform: translateX(100%); transition: transform .28s cubic-bezier(.22,1,.36,1); }
.detail.is-open { transform: none; }
.detail-scroll { flex: 1; overflow-y: auto; padding-bottom: 96px; }
.detail-hero { position: relative; aspect-ratio: 1 / 1; background: var(--mint); overflow: hidden; }
.detail-hero img { width: 150%; height: 100%; max-width: none; object-fit: cover; }
.detail-back { position: absolute; top: 14px; left: 14px; z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .9); backdrop-filter: blur(4px); font-size: 20px; box-shadow: var(--shadow-card); }
.detail-fav { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .9); backdrop-filter: blur(4px); box-shadow: var(--shadow-card); }
.detail-fav svg { width: 20px; height: 20px; color: var(--pine); }
.detail-fav.on svg { color: #e23b3b; fill: #e23b3b; }
.detail-body { padding: 18px 18px 10px; }
.detail-body .cat { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--forest); }
.detail-body h1 { margin: 6px 0 10px; color: var(--pine); font-size: 26px; }
.detail-price { display: flex; align-items: baseline; gap: 9px; margin-bottom: 4px; }
.detail-price .now { font-size: 28px; font-weight: 800; color: var(--price); }
.detail-price .old { font-size: 15px; color: var(--muted); text-decoration: line-through; }
.detail-price .off { padding: 3px 8px; border-radius: 8px; background: var(--orange); color: var(--pine); font-size: 11px; font-weight: 800; }
.detail-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 12px; color: var(--muted); }
.detail-meta .stars { font-size: 14px; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.detail-body h4 { color: var(--pine); font-size: 15px; margin-bottom: 7px; }
.detail-body p.desc { color: #4c6156; font-size: 14px; }
.spec-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 9px; }
.spec-list li { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: #4c6156; }
.spec-list li::before { content: "🌿"; font-size: 13px; }
.detail-cta { position: absolute; bottom: 0; left: 0; right: 0; display: flex; align-items: center; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--cream); }
.qty button { width: 38px; height: 44px; font-size: 18px; color: var(--pine); }
.qty span { min-width: 26px; text-align: center; font-weight: 800; font-size: 15px; }
.btn-buy { flex: 1; height: 48px; border-radius: 14px; background: var(--leaf); color: #fff; font-weight: 800; font-size: 15px; display: grid; place-items: center; box-shadow: 0 10px 22px rgba(11, 122, 75, .3); }
.btn-buy:active { background: var(--pine); }

/* ---------- Cart screen ---------- */
.cart-list { display: grid; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; padding: 12px; border-radius: 16px; background: var(--paper); box-shadow: var(--shadow-card); align-items: center; }
.cart-item .thumb { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; background: var(--mint); }
.cart-item .thumb img { width: 160%; height: 100%; max-width: none; object-fit: cover; }
.cart-item .cat { font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--forest); }
.cart-item h3 { font-family: "Manrope", sans-serif; font-size: 14px; font-weight: 700; color: var(--ink); margin: 2px 0 4px; }
.cart-item .now { font-size: 15px; font-weight: 800; color: var(--price); }
.cart-item .qty { border-radius: 10px; }
.cart-item .qty button { width: 30px; height: 34px; font-size: 16px; }
.cart-remove { margin-top: 8px; font-size: 11px; color: var(--muted); text-decoration: underline; }
.cart-summary { margin-top: 18px; padding: 16px; border-radius: 18px; background: var(--paper); box-shadow: var(--shadow-card); }
.cart-summary .line { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.cart-summary .total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; border-top: 1px dashed var(--line); }
.cart-summary .total span { font-size: 13px; font-weight: 700; color: var(--pine); text-transform: uppercase; }
.cart-summary .total strong { font-family: "Fraunces", Georgia, serif; font-size: 26px; color: var(--price); }
.btn-checkout { width: 100%; height: 52px; margin-top: 14px; border-radius: 15px; background: var(--orange); color: var(--pine); font-weight: 800; font-size: 15px; display: grid; place-items: center; }
.btn-checkout:active { background: var(--orange-soft); }
.checkout-note { margin: 10px 2px 0; text-align: center; font-size: 10.5px; color: var(--muted); }

/* ---------- Empty states ---------- */
.empty { display: grid; place-items: center; gap: 6px; padding: 70px 24px; text-align: center; }
.empty .ico { font-size: 46px; }
.empty h3 { color: var(--pine); font-size: 20px; }
.empty p { color: var(--muted); font-size: 13px; max-width: 240px; }
.empty .btn-buy { margin-top: 8px; padding: 0 22px; height: 46px; flex: none; }

/* ---------- Account screen ---------- */
.account-hero { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 20px; color: #fff; background: linear-gradient(150deg, var(--forest), var(--pine)); }
.account-hero .avatar { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .16); font-size: 26px; }
.account-hero h2 { font-size: 20px; }
.account-hero p { margin: 3px 0 0; font-size: 12px; color: rgba(255, 255, 255, .75); }
.btn-login { width: 100%; height: 50px; margin-top: 14px; border-radius: 15px; background: var(--leaf); color: #fff; font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.soon-flag { margin-left: 4px; padding: 2px 7px; border-radius: 7px; background: rgba(255, 255, 255, .22); font-size: 9.5px; font-weight: 800; letter-spacing: .04em; }
.account-menu { margin-top: 18px; border-radius: 18px; overflow: hidden; background: var(--paper); box-shadow: var(--shadow-card); }
.account-menu button { display: flex; align-items: center; gap: 13px; width: 100%; padding: 15px 16px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink); }
.account-menu button:last-child { border-bottom: 0; }
.account-menu .mi-ico { font-size: 19px; width: 24px; text-align: center; }
.account-menu .chev { margin-left: auto; color: var(--muted); }
.account-menu .tag-soon { margin-left: auto; font-size: 10px; font-weight: 800; color: var(--orange); }
.account-foot { margin: 18px 2px 4px; text-align: center; font-size: 11px; color: var(--muted); line-height: 1.6; }

/* ---------- Dicas cards ---------- */
.tips-rail { display: flex; gap: 12px; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 6px; scrollbar-width: none; }
.tips-rail::-webkit-scrollbar { display: none; }
.tip-card { flex: 0 0 210px; border-radius: 16px; overflow: hidden; background: var(--paper); box-shadow: var(--shadow-card); }
.tip-card .img { height: 100px; overflow: hidden; }
.tip-card .img img { width: 100%; height: 100%; object-fit: cover; }
.tip-card .body { padding: 11px 12px 13px; }
.tip-card .body span { font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--orange); }
.tip-card .body h4 { margin: 4px 0 0; font-family: "Manrope", sans-serif; font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Bottom nav ---------- */
.app-nav { flex: none; display: grid; grid-template-columns: repeat(5, 1fr); height: var(--nav-h); padding-bottom: env(safe-area-inset-bottom); background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(6, 61, 43, .05); }
.app-nav button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 10px; font-weight: 700; }
.app-nav button svg { width: 23px; height: 23px; }
.app-nav button.on { color: var(--forest); }
.app-nav .nav-badge { position: absolute; top: 6px; left: 54%; min-width: 17px; height: 17px; padding: 0 4px; display: grid; place-items: center; border-radius: 999px; background: var(--orange); color: var(--pine); font-size: 9px; font-weight: 800; }
.app-nav .nav-badge.is-empty { display: none; }

/* ---------- Toast ---------- */
.toast { position: absolute; left: 50%; bottom: calc(var(--nav-h) + 18px); z-index: 60; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 8px; max-width: 84%; padding: 11px 16px; border-radius: 13px; background: var(--pine); color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 14px 30px rgba(3, 42, 30, .3); transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .ico { color: var(--orange-soft); }

/* ---------- Busca inline ---------- */
/* Os resultados cobrem so a area de conteudo: o cabecalho com o campo e a
   barra de abas continuam visiveis, e o cliente nunca sai da tela em que estava. */
.search-inline {
  position: absolute;
  inset: 0;
  z-index: 30;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--cream);
  padding: 16px 16px calc(var(--nav-h) + 24px);
}
.search-hint { margin: 6px 2px 12px; font-size: 12px; color: var(--muted); }
.search-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.search-tags button { padding: 8px 13px; border-radius: 999px; background: var(--paper); box-shadow: var(--shadow-card); font-size: 12px; font-weight: 600; color: #3a5b4e; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ==========================================================================
   DESKTOP  (>= 900px)
   O app vira a loja do site: a barra de 5 abas sobe para o topo, as trilhas
   horizontais viram grade e o conteudo ganha uma largura de leitura.
   ========================================================================== */
@media (min-width: 900px) {
  :root { --app-max: 1180px; }

  .app-frame { width: 100%; max-width: none; height: 100dvh; }

  /* ordem: cabecalho, menu, conteudo */
  .app-header { order: 1; }
  .app-nav    { order: 2; }
  .app-main   { order: 3; }

  /* ---- Cabecalho: marca | busca | sacola numa linha so ---- */
  .app-header {
    display: flex;
    align-items: center;
    gap: 22px;
    padding-block: 15px;
    padding-inline: max(28px, calc((100% - var(--app-max)) / 2));
  }
  .app-header-top { display: contents; }
  .app-brand { order: 1; margin-right: 0; }
  .app-brand img { width: 42px; height: 42px; }
  .app-brand strong { font-size: 22px; }
  .app-brand span { font-size: 9.5px; }
  .app-search {
    order: 2;
    flex: 1 1 auto;
    max-width: 520px;
    margin-right: auto;
    padding: 12px 18px;
    font-size: 14.5px;
  }
  .app-icon-btn { width: 44px; height: 44px; }
  .app-icon-btn[data-go="carrinho"] { order: 3; }

  /* ---- Menu no topo ---- */
  .app-nav {
    height: auto;
    padding: 0;
    grid-template-columns: none;
    display: flex;
    justify-content: center;
    gap: 6px;
    border-top: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 6px 20px rgba(6, 61, 43, .05);
  }
  .app-nav button {
    flex-direction: row;
    gap: 9px;
    padding: 14px 22px;
    font-size: 13.5px;
    border-bottom: 2.5px solid transparent;
  }
  .app-nav button svg { width: 19px; height: 19px; }
  .app-nav button.on { border-bottom-color: var(--forest); }
  .app-nav .nav-badge { position: static; margin-left: -4px; }

  /* ---- Conteudo ---- */
  .screen { padding: 26px 28px 60px; }
  .screen.is-active { max-width: var(--app-max); margin: 0 auto; }
  .search-inline { padding: 26px 28px 60px; }
  .search-inline > [data-search-results] { max-width: var(--app-max); margin: 0 auto; }
  .screen-head h1 { font-size: 34px; }
  .section-title { margin: 34px 2px 16px; }
  .section-title h2 { font-size: 26px; }
  .section-title button { font-size: 13px; }

  /* trilhas horizontais viram grade */
  .rail, .tips-rail {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 18px;
    margin: 0;
    padding: 4px 0 6px;
    overflow: visible;
  }
  .rail .product-card { flex: initial; }
  .tips-rail > * { width: auto !important; flex: initial; }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 18px;
  }

  .cat-quick { grid-template-columns: repeat(8, 1fr); gap: 14px 6px; }
  .cat-quick .emoji { width: 62px; height: 62px; font-size: 28px; }
  .cat-quick small { font-size: 12px; }

  /* banner deixa de ser carrossel e mostra os destaques lado a lado */
  .banner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
    margin: 2px 0 6px;
    padding: 0;
    overflow: visible;
  }
  .banner-card { flex: initial; height: 210px; }
  .banner-copy strong { font-size: 26px; }
  .banner-dots { display: none; }
  .trust-row { gap: 14px; margin: 22px 0 4px; }
  .cat-chips { margin: 2px 0 18px; flex-wrap: wrap; overflow: visible; }

  /* ---- Ficha do produto vira modal ---- */
  .detail {
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(3, 42, 30, .45);
    backdrop-filter: blur(3px);
    transform: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
  }
  .detail.is-open { opacity: 1; pointer-events: auto; }
  .detail-scroll {
    position: relative;
    flex: initial;
    width: min(880px, 92vw);
    max-height: 88dvh;
    padding-bottom: 0;
    border-radius: 24px;
    background: var(--cream);
    box-shadow: 0 40px 90px rgba(3, 42, 30, .35);
  }
  .detail-hero { aspect-ratio: 16 / 9; border-radius: 24px 24px 0 0; }
  .detail-hero img { width: 100%; }
  /* a barra de compra gruda no rodape do card, nao da janela */
  .detail-cta {
    position: sticky;
    inset: auto 0 0 0;
    border-radius: 0 0 24px 24px;
    padding: 14px 18px;
  }

  /* o aviso sobe acima do conteudo, nao acima da barra de abas */
  .toast { bottom: 26px; }
}
