/* ---------------------------------------------------------------------------
   /store — hand-authored, unlike the rest of the site.

   The other 18 pages are Framer SSR output kept verbatim (see build/transform.mjs).
   That markup is ~140 KB per page and opaque; reproducing it for 90 product pages
   would be absurd. So this section is written directly against the design tokens,
   matching the site's visual language rather than its markup: black ground,
   Maxeville, glass chrome (same recipe as framer-runtime.css), generous
   negative space, no rounded corners, image-first grid.

   Motion lives in motion.css (tokens + nav + reveals); this file is layout and
   colour only, plus the one store-specific motion hook (.st-filter follows the
   nav). Specificity rule: resets are wrapped in :where() so every component
   works with a single class — a (0,1,1) reset once silently swallowed the CTA
   colour, and prefix patches are how that bug reproduces.
   --------------------------------------------------------------------------- */

:root {
  /* Nav stays 3px from the glass chrome. Content sits a step further in
     so the catalogue tiles read as blocks, not one flush mosaic. */
  --store-pad: 8px;
  --store-gap: 8px;
  --store-rule: #232323;
  --store-plate: #111;
  --store-side: min(360px, 38vw);
  --glass-blur: blur(60px);
  --glass-face: rgba(245, 245, 245, 0.2);
  --glass-face-hover: rgb(0, 0, 0);
  --glass-ease: cubic-bezier(.44, 0, .56, 1);
}

html { scrollbar-gutter: stable; overflow-y: scroll; }

body.store {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.45;
  background: var(--c-black);
  color: var(--c-off-white);
  -webkit-font-smoothing: antialiased;
  padding-top: 56px;
  margin: 0;
}

:where(.store) a { color: inherit; text-decoration: none; }

/* --- chrome ------------------------------------------------------------- */
/* Site nav is glass Construct pills. Store used to be a solid sticky bar —
   that alone made /loja feel like another product. */

.st-nav {
  position: fixed; top: 3px; left: 3px; right: 3px;
  z-index: 50;
  display: flex; align-items: center; gap: 3px;
  padding: 0;
  background: transparent;
  border: none;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
  view-transition-name: site-nav;
}
.st-nav a, .st-nav span.here {
  padding: 6px 10px;
  background: var(--glass-face);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: var(--c-off-white);
  transition: background-color 400ms var(--glass-ease), color 400ms var(--glass-ease);
}
.st-nav a:hover {
  background: var(--glass-face-hover);
  color: var(--c-off-white);
}
.st-nav span.here {
  background: var(--c-off-white);
  color: var(--c-black);
}
.st-nav .spacer { flex: 1; }

/* --- hero --------------------------------------------------------------- */
/* Image first. One short kicker — no marketing essay. */

.st-hero {
  position: relative;
  padding: 0;
  max-width: none;
  display: block;
}
.st-hero-shot { display: block; background: var(--c-near-black); }
.st-hero-shot img {
  width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; display: block;
}
.st-kicker {
  margin: 0;
  padding: 10px var(--store-pad) 14px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(18px, 2.6vw, 28px);
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.st-btn {
  display: inline-block;
  padding: 8px 14px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
  background: var(--glass-face);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: var(--c-off-white);
  border: none;
  transition: background-color 400ms var(--glass-ease), color 400ms var(--glass-ease);
}
.st-btn:hover { background: var(--glass-face-hover); color: var(--c-off-white); }
.st-btn.ghost {
  background: transparent;
  color: var(--c-off-white);
  border: 1px solid var(--store-rule);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.st-btn.ghost:hover {
  border-color: var(--c-grey-82);
  background: var(--glass-face);
}
.st-btn.forte {
  background: var(--c-off-white);
  color: var(--c-black);
}
.st-btn.forte:hover { background: var(--c-white, #fff); color: var(--c-black); }
.st-btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* --- section head ------------------------------------------------------- */

.st-head { padding: clamp(28px, 5vh, 56px) var(--store-pad) 12px; }
.st-head h2 {
  margin: 0;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(18px, 2.8vw, 32px); line-height: 1.05;
  text-transform: uppercase;
}
.st-head a { color: inherit; }
.st-head a:hover { color: var(--c-grey-82); }

/* --- filter ------------------------------------------------------------- */

.st-filter {
  position: sticky; top: 0; z-index: 15;
  display: flex; flex-wrap: wrap; gap: 3px;
  padding: 10px var(--store-pad);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: none;
  transition: top var(--m-dur-2, 420ms) var(--m-ease, ease);
}
html.m-nav-hidden .st-filter {
  opacity: 0;
  pointer-events: none;
}

.st-filter button {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
  padding: 6px 10px;
  cursor: pointer;
  background: var(--glass-face);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: var(--c-off-white);
  border: none;
  transition: background-color 400ms var(--glass-ease), color 400ms var(--glass-ease);
}
.st-filter button:hover { background: var(--glass-face-hover); }
.st-filter button[aria-pressed="true"] {
  background: var(--c-off-white);
  color: var(--c-black);
}
.st-filter button .c {
  opacity: .55;
  margin-left: 5px;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-body);
}

/* --- grid --------------------------------------------------------------- */
/* Four tiles, 3:2 like the photographs. A dark plate + 8px gap so each
   mockup reads as a block instead of a flush mosaic. */

.st-grid {
  display: grid; gap: var(--store-gap);
  grid-template-columns: repeat(4, 1fr);
  padding: var(--store-pad);
}
.st-card {
  display: block;
  position: relative;
  background: var(--store-plate);
}
.st-card img {
  width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; display: block;
  transition: opacity .18s ease;
}
.st-card:hover img { opacity: .82; }
.st-card .meta {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 10px 10px 12px;
  font-size: 12px;
  color: var(--c-grey-82);
}
.st-card .meta .id {
  font-family: var(--font-display);
  letter-spacing: 0;
  color: var(--c-off-white);
  text-transform: uppercase;
}
.st-card[hidden] { display: none; }

/* --- product ------------------------------------------------------------ */
/* Shot hugs the 3:2 photo. The old 100dvh stage left a black pit between
   the image and “Também na loja” / the footer. Side stretches with the
   shot so the plate doesn’t float in an empty column. */

.st-product {
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr var(--store-side);
  align-items: stretch;
}

.st-product .shot {
  box-sizing: border-box;
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 12px;
  background: var(--c-black);
}
.st-product .shot::before {
  content: "";
  display: block;
  padding-top: 66.666%;
}
.st-product .shot img {
  position: absolute;
  inset: 12px;
  display: block;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  object-fit: cover;
  object-position: top center;
}

.st-product .side {
  box-sizing: border-box;
  position: sticky;
  top: 56px;
  align-self: stretch;
  max-height: calc(100dvh - 56px);
  overflow-y: auto;
  width: 100%;
  padding: 12px 24px 28px;
  border-left: 1px solid var(--store-rule);
  background: var(--store-plate);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.st-product-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--store-rule);
}
.st-product .g {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--store-rule);
}
.st-product h1 {
  margin: 0;
  font-family: var(--font-display); font-weight: 400;
  font-size: 18px; line-height: 1.1;
  text-transform: uppercase;
}
.st-product .cat { color: var(--c-grey-82); margin: 0; }

.st-specs {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  padding: 4px 0 18px;
}
.st-specs th, .st-specs td {
  text-align: left; font-weight: 400; padding: 12px 0;
  border-bottom: 1px solid var(--store-rule); vertical-align: top;
}
.st-specs tr:first-child th,
.st-specs tr:first-child td { padding-top: 16px; }
.st-specs tr:last-child th,
.st-specs tr:last-child td { padding-bottom: 16px; }
.st-specs th { color: var(--c-grey-82); width: 42%; }

.st-h {
  margin: 0;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--c-grey-82);
}

.st-includes { list-style: none; margin: 0; padding: 0; color: var(--c-grey-dbd); }
.st-includes li { padding: 6px 0 6px 16px; position: relative; }
.st-includes li::before { content: "→"; position: absolute; left: 0; color: var(--c-grey-82); }

.st-buy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px 0 0;
}
.st-product .st-btn { display: block; text-align: center; }

.st-product-meta {
  margin-top: 0;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.st-lic { margin: 0; font-size: 12px; }
.st-lic a { color: var(--c-grey-82); text-decoration: underline; text-underline-offset: 3px; }
.st-lic a:hover { color: var(--c-off-white); }

.st-product-foot {
  margin: 0;
  font-size: 12px;
  color: var(--c-grey-82);
}
.st-product-foot a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.st-product-foot a:hover { color: var(--c-off-white); }

body.store-produto .st-mais-head {
  border-top: 1px solid var(--store-rule);
  padding-top: clamp(40px, 7vh, 72px);
}
body.store-produto .st-grid {
  padding-bottom: clamp(40px, 7vh, 72px);
}

@media (max-width: 1100px) {
  .st-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .st-product {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .st-product .shot {
    overflow: visible;
  }
  .st-product .side {
    position: relative;
    top: auto;
    height: auto;
    overflow: visible;
    border-left: none;
    border-top: 1px solid var(--store-rule);
  }
}

@media (max-width: 560px) {
  .st-grid { grid-template-columns: 1fr; }
}

/* --- licence page -------------------------------------------------------- */

.st-licenca { max-width: 760px; }
.st-lic-sec { padding: 10px var(--store-pad) 26px; }
.st-lic-sec h2 {
  margin: 0 0 10px;
  font-family: var(--font-display); font-weight: 400; font-size: 19px;
}
.st-lic-sec p { margin: 0 0 10px; color: var(--c-grey-dbd); max-width: 68ch; }
.st-lic-back { padding: 8px var(--store-pad) clamp(40px, 7vh, 72px); }

/* --- proof -------------------------------------------------------------- */
/* Faixa contínua — drag + auto-scroll pra esquerda.
   Altura fixa nas imagens: o acervo mistura paisagem e retrato; forçar 3/2
   cortava Sebrae/Noon. Ponto zero = o mesmo --store-pad do título. */

.st-casos {
  position: relative;
  padding: 0 0 clamp(40px, 7vh, 72px);
  overflow: hidden;
}
/* Só a saída à direita: blur curto, sem vinheta. A esquerda é corte seco
   — o ponto zero precisa nascer limpo, alinhado ao título. */
.st-casos::after {
  content: "";
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 48px; z-index: 2; pointer-events: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  mask-image: linear-gradient(270deg, #000 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(270deg, #000 0%, transparent 100%);
}
.st-casos-track {
  display: flex;
  align-items: flex-start;
  gap: var(--store-gap);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 var(--store-pad);
  scroll-snap-type: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.st-casos-track::-webkit-scrollbar { display: none; }
.st-casos-track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}
.st-casos-track:focus { outline: none; }
.st-casos-track:focus-visible {
  outline: 1px solid var(--c-off-white);
  outline-offset: -1px;
}
.st-casos-track figure {
  margin: 0;
  flex: 0 0 auto;
  width: auto;
  background: transparent;
  pointer-events: none;
}
.st-casos-track img {
  display: block;
  height: min(42vh, 380px);
  width: auto;
  max-width: none;
}
.st-casos-track figcaption {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 2px 0;
  font-size: 11px;
  letter-spacing: .02em;
  color: var(--c-grey-82);
}
.st-casos-track figcaption .who {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.st-casos-track figcaption b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--c-off-white);
}
.st-casos-track figcaption .sep {
  opacity: .35;
  user-select: none;
}
.st-casos-track figcaption .studio { opacity: .85; }
.st-casos-track figcaption .m {
  opacity: .5;
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .st-casos-track img { height: min(38vh, 280px); }
  .st-casos::after { width: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .st-casos-track { cursor: default; }
  .st-casos::after { display: none; }
}

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

.st-faq { border-top: 1px solid var(--store-rule); }
.st-faq details { border-bottom: 1px solid var(--store-rule); }
.st-faq summary {
  padding: 16px var(--store-pad); cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--font-display); font-size: 15px;
}
.st-faq summary::-webkit-details-marker { display: none; }
.st-faq summary::after { content: "+"; color: var(--c-grey-82); }
.st-faq details[open] summary::after { content: "–"; }
.st-faq .a { padding: 0 var(--store-pad) 18px; color: var(--c-grey-dbd); max-width: 68ch; }

.st-foot {
  box-sizing: border-box;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 20px var(--store-pad);
  background: var(--c-black);
  color: var(--c-off-white);
}
.st-foot-kicker {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 7.6vw, 160px);
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
}
.st-foot-mid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.st-foot-cta {
  font-family: var(--font-display);
  font-size: 13px;
  text-transform: uppercase;
  color: var(--c-grey-82);
}
.st-foot-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--c-grey-82);
}
.st-foot-social { display: flex; gap: 3px; }
.st-foot-social a {
  padding: 6px 10px;
  font-family: var(--font-display);
  font-size: 13px;
  text-transform: uppercase;
  color: var(--c-off-white);
  background: var(--glass-face);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: background-color 400ms var(--glass-ease);
}
.st-foot-social a:hover { background: var(--glass-face-hover); }
.st-foot-end {
  display: flex; align-items: center; gap: 16px;
  text-transform: uppercase;
}
.st-foot-end a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.st-foot-end a:hover { color: var(--c-off-white); }

@media (max-width: 720px) {
  .st-foot-kicker { white-space: normal; }
  .st-foot-bar { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .st-card img { transition: none; }
  .st-filter { transition: none; }
  .st-nav a, .st-nav span.here, .st-btn, .st-filter button, .st-foot-social a { transition: none; }
  .st-casos-track { cursor: default; }
}
