/* ── hero ────────────────────────────────────────────────────────────────── */

.hero {
  background:
    radial-gradient(1200px 620px at 78% 8%, color-mix(in srgb, var(--sea) 26%, transparent), transparent 62%),
    linear-gradient(var(--cream), var(--cream-deep));
  padding-block: var(--sp-8) var(--sp-7);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  gap: var(--sp-7);
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  align-items: center;
}
/* The stage is the product demo — let it breathe wider than the copy. */
.hero__stage .stage { max-width: 600px; }
/* On one column the copy goes first. The stage is the better picture, but a
   visitor who lands on the phone has to be told what this is before being handed
   a toy: the promise, the two buttons and the reassurance line all fit above the
   fold, and the bag is the reward for the first scroll. */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { order: 0; text-align: center; }
  .hero__stage { order: 1; }
  .hero__copy .lede, .hero__copy .hero__actions { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__trust { justify-content: center; }
}

.hero h1 { font-size: var(--t-hero); margin-bottom: var(--sp-4); }
.hero h1 em { font-style: normal; color: var(--sea-deep); }
.hero__actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-5); }
.hero__trust { display: flex; gap: var(--sp-4); flex-wrap: wrap; margin-top: var(--sp-5); font-size: var(--t-xs); color: var(--ink-mute); }
.hero__trust span { display: flex; align-items: center; gap: 5px; }

/* Phone hero: title, two buttons, product. Nothing else.
   The paragraph and the trust line are the first things to go — on a 375px
   screen they cost about 200px between the headline and the bag, which is the
   difference between a shop and a wall of text. Neither is lost: the promise is
   repeated in "Três passos e está feito" and the specs in "As coisas que um pai
   quer saber", both a short scroll below.
   This block sits AFTER the base .hero rules on purpose: a media query adds no
   specificity, so a base rule written below would simply win. */
@media (max-width: 700px) {
  .hero { padding-block: var(--sp-6); }
  .hero__grid { gap: var(--sp-5); }
  .hero h1 { font-size: 2.05rem; margin-bottom: var(--sp-4); }
  .hero__copy .lede,
  .hero__trust { display: none; }
  .hero__actions { margin-top: 0; gap: var(--sp-2); flex-wrap: nowrap; }
  .hero__actions .btn { flex: 1 1 0; min-width: 0; padding-inline: var(--sp-3); font-size: var(--t-sm); }
}

/* ── how it works ────────────────────────────────────────────────────────── */

.steps-grid { display: grid; gap: var(--sp-6); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: step; }
.step { counter-increment: step; }
.step::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 42px; height: 42px; margin-bottom: var(--sp-4);
  border-radius: 50%;
  background: var(--ink); color: var(--cream);
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
}
.step h3 { margin-bottom: var(--sp-2); }
.step p { font-size: var(--t-sm); color: var(--ink-soft); }

/* ── theme cards ─────────────────────────────────────────────────────────── */

.theme-card { position: relative; }
.theme-card .card__media { aspect-ratio: 504 / 228; padding: 0; }
.theme-card .card__media img { object-fit: cover; }

/* ── trust strip ─────────────────────────────────────────────────────────── */

.spec-strip { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.spec { border-left: 3px solid var(--sea); padding-left: var(--sp-4); }
.spec dt { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--sea); font-weight: 700; margin-bottom: 4px; }
.spec dd { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }

/* ── product page ────────────────────────────────────────────────────────── */

.product { display: grid; gap: var(--sp-7); grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; } }

.gallery__main { background: var(--cream); border-radius: var(--r-lg); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumbs { display: flex; gap: var(--sp-2); margin-top: var(--sp-3); flex-wrap: wrap; }
.gallery__thumbs button {
  width: 68px; height: 68px; padding: 4px; cursor: pointer;
  background: var(--cream); border: 2px solid transparent; border-radius: var(--r-sm);
}
.gallery__thumbs button[aria-pressed='true'] { border-color: var(--ink); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }

.buy { position: sticky; top: calc(var(--header-h) + var(--sp-4)); }
.buy__price { display: flex; align-items: baseline; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.buy__price .price { font-size: 2rem; }

.specs { display: grid; gap: var(--sp-3); margin: var(--sp-5) 0; }
.specs div { display: grid; grid-template-columns: 130px 1fr; gap: var(--sp-3); font-size: var(--t-sm); padding-bottom: var(--sp-3); border-bottom: 1px solid var(--line-soft); }
.specs dt { color: var(--ink-mute); }
.specs dd { margin: 0; font-weight: 500; }

/* ── cart / checkout ─────────────────────────────────────────────────────── */

.checkout-grid { display: grid; gap: var(--sp-6); grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .checkout-grid { grid-template-columns: 1fr; } }
.summary { position: sticky; top: calc(var(--header-h) + var(--sp-4)); }
.summary__row { display: flex; justify-content: space-between; gap: var(--sp-3); font-size: var(--t-sm); padding-block: var(--sp-2); }
.summary__row--total { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; border-top: 1px solid var(--line); margin-top: var(--sp-3); padding-top: var(--sp-3); }

.line { display: grid; grid-template-columns: 84px 1fr auto; gap: var(--sp-4); align-items: center; padding-block: var(--sp-4); border-bottom: 1px solid var(--line-soft); }
.line__media { background: var(--cream); border-radius: var(--r-md); aspect-ratio: 1; display: grid; place-items: center; padding: 6px; }
.line__media img { width: 100%; height: 100%; object-fit: contain; }
.line__title { font-weight: 600; font-size: var(--t-sm); }
.line__meta { font-size: var(--t-xs); color: var(--ink-mute); }
.line__right { display: flex; flex-direction: column; align-items: flex-end; gap: var(--sp-2); }
@media (max-width: 560px) {
  .line { grid-template-columns: 64px 1fr; }
  .line__right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}

.pay-state { display: grid; gap: var(--sp-4); place-items: center; text-align: center; padding: var(--sp-6) 0; }
.spinner {
  width: 42px; height: 42px; border-radius: 50%;
  border: 4px solid var(--line); border-top-color: var(--sea-deep);
  animation: spin 900ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }

.mb-ref { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.mb-ref div { background: var(--cream); border-radius: var(--r-md); padding: var(--sp-4); text-align: center; }
.mb-ref dt { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-mute); }
.mb-ref dd { margin: 4px 0 0; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: .04em; }

/* ── account / admin ─────────────────────────────────────────────────────── */

.auth-card { max-width: 460px; margin-inline: auto; }
.auth-sep { display: flex; align-items: center; gap: var(--sp-3); color: var(--ink-mute); font-size: var(--t-xs); margin-block: var(--sp-5); }
.auth-sep::before, .auth-sep::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.btn-google {
  --btn-bg: #fff; --btn-fg: #1f1f1f;
  box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow-sm);
  width: 100%;
}
.btn-google svg { width: 18px; height: 18px; }

.tabs { display: flex; gap: var(--sp-1); border-bottom: 1px solid var(--line); margin-bottom: var(--sp-5); flex-wrap: wrap; }
.tab {
  border: 0; background: none; cursor: pointer;
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--t-sm); font-weight: 600; color: var(--ink-mute);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab[aria-selected='true'] { color: var(--ink); border-bottom-color: var(--ink); }

.order-card { border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: var(--sp-4); }
.order-card + .order-card { margin-top: var(--sp-4); }
.order-card__head { display: flex; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; align-items: center; margin-bottom: var(--sp-3); }
.order-card__ref { font-family: var(--font-display); font-weight: 800; }

.kpis { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: var(--sp-6); }
.kpi { background: var(--cream); border-radius: var(--r-md); padding: var(--sp-4); }
.kpi dt { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-mute); }
.kpi dd { margin: 6px 0 0; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; }

.empty { text-align: center; padding: var(--sp-8) var(--sp-4); color: var(--ink-mute); }
.empty img { width: 90px; margin: 0 auto var(--sp-4); opacity: .5; }

/* ── faq ─────────────────────────────────────────────────────────────────── */

details.faq { border-bottom: 1px solid var(--line-soft); padding-block: var(--sp-4); }
details.faq summary { cursor: pointer; font-weight: 600; font-family: var(--font-display); font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: var(--sp-3); }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--sea-deep); }
details.faq[open] summary::after { content: '−'; }
details.faq p { margin-top: var(--sp-3); font-size: var(--t-sm); color: var(--ink-soft); }

/* ── filters ─────────────────────────────────────────────────────────────── */

.filters { display: flex; gap: var(--sp-4); flex-wrap: wrap; align-items: center; margin-bottom: var(--sp-6); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--line-soft); }
.filters__group { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.filters__label { font-size: var(--t-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-mute); }

/* ── listing pages (mochilas, packs) ─────────────────────────────────────── */

/* On a phone the intro copy is a screenful of prose before the first product,
   and the page reads as a text site with the shop hidden underneath. The title
   stays put — it says where you are — and the explaining paragraphs move below
   the products, where someone who wants them will still find them. */
.listing { display: flex; flex-direction: column; }

@media (max-width: 700px) {
  .listing__intro { order: 90; margin-top: var(--sp-7); }
  .listing h1 { margin-bottom: var(--sp-5); }
  .section--shop { padding-block: var(--sp-5) var(--sp-7); }
}

/* ── tabs ────────────────────────────────────────────────────────────────── */
/* A filter that reads as a line of type, not as a row of buttons: no boxes, no
   borders, just weight and a hand-drawn-ish underline that grows from the left. */

.tabs { display: flex; align-items: baseline; gap: var(--sp-5); flex-wrap: wrap; }
.tabs__label {
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  color: var(--ink-mute);
}
.tab {
  position: relative; border: 0; background: none; padding: 0 0 8px; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
  color: var(--ink-mute); line-height: 1.2;
  transition: color var(--dur) var(--ease-out);
}
.tab em { font-style: normal; font-weight: 400; font-size: var(--t-sm); color: var(--ink-mute); }
.tab::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  border-radius: var(--r-pill); background: var(--sea-deep);
  transform: scaleX(0); transform-origin: left center;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
  opacity: .35;
}
.tab:hover { color: var(--ink-soft); }
.tab:hover::after { transform: scaleX(1); }
.tab[aria-pressed='true'] { color: var(--ink); }
.tab[aria-pressed='true']::after { transform: scaleX(1); opacity: 1; }
.tab[aria-pressed='true'] em { color: var(--sea-ink); }

/* On a phone the four items do not fit on one line, and left to itself the wrap
   strands the last model on a line of its own — which reads as a mistake. Give
   the label its own line on purpose and the three models stay together. */
@media (max-width: 460px) {
  .tabs { gap: var(--sp-2) var(--sp-4); }
  .tabs__label { flex: 0 0 100%; font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .08em; }
  .tab { font-size: 1.02rem; }
  /* The litres go: they are on both cards a few pixels below, and they are what
     pushes Teros onto a second line. */
  .tab em { display: none; }
}

/* ── model cards (mochilas listing) ──────────────────────────────────────── */

.model-card { padding-bottom: var(--sp-5); }
.model-card:hover { box-shadow: var(--shadow-md); border-color: var(--line); }
/* min-height:0 or the flex item falls back to the 577px source image and the
   card grows a head taller than the aspect-ratio asks for. */
.model-card__media { display: block; background: var(--cream); aspect-ratio: 4 / 3; min-height: 0; padding: var(--sp-5); }
.model-card__media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.model-card__body { padding: var(--sp-5) var(--sp-5) 0; gap: var(--sp-3); }
.model-card__name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.6rem;
  margin: 0; display: flex; align-items: baseline; gap: var(--sp-3);
}
.model-card__name a { text-decoration: none; color: inherit; }
.model-card__name a:hover { color: var(--sea-ink); }
.model-card__litres { font-size: var(--t-sm); font-weight: 600; color: var(--ink-mute); }
.model-card__blurb { font-size: var(--t-sm); color: var(--ink-soft); margin: 0; }
.model-card__colour { font-size: var(--t-xs); color: var(--ink-mute); margin: 0; }
.model-card__colour strong { color: var(--ink); font-weight: 600; }
.model-card__buy {
  margin-top: var(--sp-3); display: flex; align-items: center; gap: var(--sp-4);
  flex-wrap: wrap; justify-content: space-between;
}
.model-card__price { display: flex; flex-direction: column; gap: 2px; }
.model-card__kit { font-size: var(--t-xs); color: var(--ink-mute); }
