/* ============================================================================
   LOJA SSLOW — vitrine de produtos, na linguagem visual da capa Halide
   (#work): fundo #0a0a0a, prata #e0e0e0, acento #b4ff3c, Syncopate +
   monospace, cantos retos. Tokens de halide-portfolio.css, carregado antes.

   Formato de loja: vitrine, barra de catálogo com contagem e uma grade de
   cards com categoria, nome, descrição e ação de compra.
   ========================================================================== */

.shop-page {
  min-height: 100vh;
  background: var(--halide-bg);
  color: var(--halide-silver);
  font-family: "Syncopate", sans-serif;
}

/* Fundo interativo (loja.js) — grid de pontos que acende perto do ponteiro. */
.shop-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

.shop-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: var(--halide-grain-opacity);
  background-image: url("../assets/grain-tile.png?v=2");
  background-repeat: repeat;
  background-size: 128px 128px;
}

.shop {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 128px 2rem 90px;
}

/* ===================== VITRINE ===================== */

.shop-hero {
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.shop-hero__eyebrow {
  margin: 0 0 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--halide-mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--halide-accent);
}

.shop-hero__eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--halide-accent);
}

.shop-hero h1 {
  margin: 0 0 1.3rem;
  font-family: "Syncopate", sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 5.4vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  color: var(--halide-silver);
}

.shop-hero__lead {
  margin: 0;
  max-width: 56ch;
  font-family: var(--halide-mono);
  font-size: 0.8rem;
  line-height: 1.9;
  color: #9c9c9c;
}

/* Garantias da loja — o que vale para qualquer assinatura. */
.shop-hero__perks {
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.6rem;
}

.shop-hero__perks li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--halide-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: rgba(224, 224, 224, 0.6);
}

.shop-hero__perks li::before {
  content: "✓";
  color: var(--halide-accent);
}

/* ===================== BARRA DE CATÁLOGO ===================== */

.shop-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.9rem 0;
  border-top: 1px solid rgba(224, 224, 224, 0.14);
  border-bottom: 1px solid rgba(224, 224, 224, 0.14);
  font-family: var(--halide-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shop-bar__count {
  color: var(--halide-silver);
}

.shop-bar__meta {
  color: rgba(224, 224, 224, 0.45);
}

/* ===================== GRADE ===================== */

/* 2 colunas: são 4 produtos, e 3 deixariam o último sozinho numa linha. */
.shop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  margin-top: 2.2rem;
}

@media (min-width: 860px) {
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.shop-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid rgba(224, 224, 224, 0.12);
  transition: border-color 0.4s ease, background-color 0.4s ease,
    transform 0.4s var(--ease, cubic-bezier(0.2, 0.9, 0.1, 1));
}

.shop-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid rgba(224, 224, 224, 0.12);
}

.shop-card__shot {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  transform: scale(1.01);
  transition: transform 1s var(--ease, cubic-bezier(0.2, 0.9, 0.1, 1));
}

/* Selo sobre a imagem — só onde há algo a destacar. */
.shop-card__badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.34rem 0.62rem;
  background: var(--halide-accent);
  color: var(--halide-bg);
  font-family: var(--halide-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (hover: hover) and (pointer: fine) {
  .shop-card:hover {
    border-color: rgba(180, 255, 60, 0.42);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-4px);
  }

  .shop-card:hover .shop-card__shot {
    transform: scale(1.055);
  }
}

.shop-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem 1.5rem 1.4rem;
}

.shop-card__cat {
  margin: 0 0 0.8rem;
  font-family: var(--halide-mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--halide-accent);
}

.shop-card__name {
  margin: 0 0 0.7rem;
  font-family: "Syncopate", sans-serif;
  font-weight: 700;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--halide-silver);
}

.shop-card__desc {
  margin: 0 0 1.6rem;
  font-family: var(--halide-mono);
  font-size: 0.73rem;
  line-height: 1.75;
  color: #9c9c9c;
}

/* Linha de compra: preço/plano à esquerda, ação à direita. */
.shop-card__buy {
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(224, 224, 224, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.shop-card__price {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.shop-card__price em {
  font-family: "Syncopate", sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: -0.01em;
  color: var(--halide-silver);
}

.shop-card__price span {
  font-family: var(--halide-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  color: rgba(224, 224, 224, 0.42);
}

/* ===================== AÇÃO DE COMPRA ===================== */

.shop-buy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.35rem;
  background: var(--halide-accent);
  color: var(--halide-bg);
  font-family: "Syncopate", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.shop-buy:hover {
  background: #c9ff6b;
  transform: translateY(-2px);
}

.shop-buy__arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease-snap, cubic-bezier(0.16, 1, 0.22, 1));
}

.shop-buy:hover .shop-buy__arrow {
  transform: translate(3px, -3px);
}

.shop-buy--ghost {
  background: transparent;
  color: var(--halide-accent);
  border: 1px solid rgba(180, 255, 60, 0.45);
}

.shop-buy--ghost:hover {
  background: var(--halide-accent);
  color: var(--halide-bg);
}

@media (prefers-reduced-motion: reduce) {
  .shop-card,
  .shop-card__shot,
  .shop-buy,
  .shop-buy__arrow {
    transition: none;
  }
  .shop-card:hover,
  .shop-buy:hover {
    transform: none;
  }
}

/* ===================== FECHAMENTO ===================== */

.shop-outro {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-top: clamp(2rem, 5vw, 3rem);
  border-top: 1px solid rgba(224, 224, 224, 0.12);
}

.shop-outro p {
  margin: 0 0 1.4rem;
  max-width: 46ch;
  font-family: var(--halide-mono);
  font-size: 0.76rem;
  line-height: 1.85;
  color: #9c9c9c;
}

/* ===================== MOBILE ===================== */

@media (max-width: 680px) {
  .shop {
    padding: 106px 1.25rem 70px;
  }

  .shop-card__body {
    padding: 1.3rem 1.2rem 1.2rem;
  }

  /* Preço acima da ação: lado a lado, o botão espremia o texto do plano. */
  .shop-card__buy {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .shop-buy {
    justify-content: center;
  }
}
