/* ============================================================
   FELTONI LOJA / CATALOGO — feltoni-shop.css
   Escopo: .fp-shop (funciona em /loja/ e na pagina de teste)
   Vars herdadas do tema (--feltoni-*). V11 fiel.
   ============================================================ */

.fp-shop {
  --s-pink: #ff1f8f;
  --s-pink-deep: #c01473;
  --s-green: #25e562;
  --s-bg: #050507;
  --s-bg-card: #16161b;
  --s-border: #1f1f26;
  --s-border-strong: #2a2a33;
  --s-text: #f5f5f7;
  --s-text-dim: #a1a1a8;
  --s-text-mute: #6e6e76;
  --s-radius: 14px;
  --s-radius-lg: 24px;
  --s-maxw: 1280px;
  --s-ease: cubic-bezier(0.22, 1, 0.36, 1);

  background: var(--s-bg);
  font-family: 'Archivo', system-ui, -apple-system, sans-serif;
  color: var(--s-text);
  padding: 0 0 100px;
  overflow-x: clip;
}

.fp-shop *,
.fp-shop *::before,
.fp-shop *::after { box-sizing: border-box; }

/* ============================================================
   HERO
   ============================================================ */
.fp-shop-hero {
  position: relative;
  max-width: var(--s-maxw);
  margin: 0 auto;
  padding: 24px 32px 24px;
  text-align: center;
  overflow: visible;
}

.fp-shop-hero__glow {
  position: absolute !important;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 300px;
  max-width: 100%;
  background:
    radial-gradient(ellipse at center, rgba(255, 31, 143, 0.20) 0%, rgba(37, 229, 98, 0.10) 45%, transparent 72%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

.fp-shop-hero > * { position: relative; z-index: 1; }

.fp-shop-hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--s-pink);
  margin-bottom: 20px;
}

.fp-shop-hero__title {
  font-family: 'Anton', 'Archivo Narrow', Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 20px;
  color: var(--s-text);
}

.fp-shop-hero__title .fp-grad {
  background: linear-gradient(100deg, var(--s-pink) 0%, var(--s-green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.fp-shop-hero__lede {
  font-size: 17px;
  line-height: 1.7;
  color: var(--s-text-dim);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   FILTROS (pilulas)
   ============================================================ */
.fp-shop-filters {
  max-width: var(--s-maxw);
  margin: 0 auto 56px;
  padding: 0 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.fp-shop-pill {
  display: inline-flex;
  align-items: center;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--s-bg-card);
  border: 1px solid var(--s-border-strong);
  color: var(--s-text-dim);
  font-family: 'Archivo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s var(--s-ease);
  line-height: 1;
  white-space: nowrap;
}

.fp-shop-pill:hover {
  border-color: var(--s-pink);
  color: var(--s-text);
}

.fp-shop-pill.is-active {
  background: var(--s-pink);
  border-color: var(--s-pink);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(255, 31, 143, 0.30);
}

/* ============================================================
   SECOES
   ============================================================ */
.fp-shop-section {
  max-width: var(--s-maxw);
  margin: 0 auto;
  padding: 0 32px;
  margin-bottom: 72px;
}

.fp-shop-section__title {
  font-family: 'Anton', 'Archivo Narrow', Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 32px;
  color: var(--s-text);
  display: flex;
  align-items: center;
  gap: 16px;
}

.fp-shop-section__title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--s-border-strong);
}

/* Esconde secao inteira quando o JS marca como vazia */
.fp-shop-section.is-empty { display: none; }

/* ============================================================
   GRID 3 COLUNAS
   ============================================================ */
.fp-shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ============================================================
   CARD — vertical alto, imagem dominante (V11)
   ============================================================ */
.fp-shop-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--s-bg-card);
  border: 1px solid var(--s-border);
  border-radius: var(--s-radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.4s var(--s-ease),
              transform 0.4s var(--s-ease),
              box-shadow 0.4s var(--s-ease);
}

/* Mata sublinhado em TODOS os filhos do card (card e' um <a>) */
.fp-shop-card,
.fp-shop-card:hover,
.fp-shop-card *,
.fp-shop-card *:hover {
  text-decoration: none !important;
}

/* Excecao: mantem o risco do preco antigo (del) */
.fp-shop-card .fp-shop-card__price del,
.fp-shop-card .fp-shop-card__price del * {
  text-decoration: line-through !important;
}

/* Card escondido pelo filtro */
.fp-shop-card.is-hidden { display: none; }

/* Glow neutro padrao (ecossistema) */
.fp-shop-card:hover {
  transform: translateY(-6px);
  border-color: var(--s-border-strong);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

/* Glow por categoria via data-cats */
.fp-shop-card[data-cats~="pre-treino"]:hover {
  border-color: var(--s-pink);
  box-shadow: 0 24px 48px rgba(255, 31, 143, 0.20);
}

.fp-shop-card[data-cats~="pos-treino"]:hover {
  border-color: var(--s-green);
  box-shadow: 0 24px 48px rgba(37, 229, 98, 0.18);
}

/* Visual / imagem dominante */
.fp-shop-card__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--s-bg);
  overflow: hidden;
}

/* Grade quadriculada sutil (igual ao .fh-cta do V11) */
.fp-shop-card__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 0;
}

/* Glow radial colorido por categoria (sobre a grade) */
.fp-shop-card__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  /* padrao = ecossistema: uniao rosa + verde */
  background:
    radial-gradient(ellipse 60% 55% at 35% 42%, rgba(255, 31, 143, 0.16), transparent 65%),
    radial-gradient(ellipse 55% 50% at 68% 60%, rgba(37, 229, 98, 0.14), transparent 65%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, black 30%, transparent 80%);
}

/* Pre-treino: glow rosa (mais forte) */
.fp-shop-card[data-cats~="pre-treino"] .fp-shop-card__visual::after {
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 31, 143, 0.42), transparent 70%),
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(255, 31, 143, 0.20), transparent 60%);
}

/* Pos-treino: glow verde (mais forte) */
.fp-shop-card[data-cats~="pos-treino"] .fp-shop-card__visual::after {
  background:
    radial-gradient(circle at 50% 40%, rgba(37, 229, 98, 0.38), transparent 70%),
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(37, 229, 98, 0.18), transparent 60%);
}

/* Garante a imagem ACIMA da grade e do glow */
.fp-shop-card__img {
  position: relative;
  z-index: 1;
}

.fp-shop-card__img {
  max-width: 100%;
  max-height: 320px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.55));
  transition: transform 0.5s var(--s-ease);
}

.fp-shop-card:hover .fp-shop-card__img {
  transform: scale(1.05);
}

/* Badge categoria (canto sup esq) */
.fp-shop-card__cat {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(5, 5, 7, 0.7);
  border: 1px solid var(--s-border-strong);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: 'Archivo', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--s-text-dim);
}

/* Badge estado (canto sup dir) */
.fp-shop-card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: 'Archivo', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.fp-shop-card__badge--sale {
  background: var(--s-pink);
  color: #ffffff;
}

.fp-shop-card__badge--out {
  background: rgba(255, 77, 77, 0.15);
  border: 1px solid rgba(255, 77, 77, 0.40);
  color: #ff8a8a;
}

/* Card esgotado: imagem dessaturada */
.fp-shop-card--out .fp-shop-card__img {
  filter: grayscale(0.7) drop-shadow(0 16px 32px rgba(0, 0, 0, 0.55));
  opacity: 0.7;
}

/* Corpo — clona o .fh-rotina do cross-sell */
.fp-shop-card__body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--s-border);
}

/* Tag de categoria (rosa, pequena) — igual fh-rotina__tag */
.fp-shop-card__tag {
  font-family: 'Archivo', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--s-pink);
}

/* Esconde a tag antiga sobreposta na imagem (migrou pro corpo) */
.fp-shop-card__cat { display: none; }

/* Nome — Anton, SEM sublinhado, 2 linhas com reticencias */
.fp-shop-card__name {
  font-family: 'Anton', 'Archivo Narrow', Impact, sans-serif;
  font-weight: 400;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-decoration: none;
  margin: 0;
  color: var(--s-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Descricao — 3 linhas com reticencias, igual fh-rotina__desc */
.fp-shop-card__desc {
  font-family: 'Archivo', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: var(--s-text-dim);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fp-shop-card__desc p { margin: 0; color: inherit; }
.fp-shop-card__desc strong { color: var(--s-text); font-weight: 600; }

/* Footer (preco + cta) empurrado pra base */
.fp-shop-card__footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--s-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Preco — Anton grande, herda markup do Woo */
.fp-shop-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.fp-shop-card__price .woocommerce-Price-amount {
  font-family: 'Anton', sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  color: var(--s-text);
}

.fp-shop-card__price del {
  text-decoration: line-through;
  opacity: 1;
  order: -1;
}

.fp-shop-card__price del .woocommerce-Price-amount {
  font-size: 14px;
  color: var(--s-text-mute);
}

.fp-shop-card__price ins {
  text-decoration: none;
}

.fp-shop-card__price ins .woocommerce-Price-amount {
  color: var(--s-pink);
}

/* Fardo-info (Fardo . 12 latas / aprox R$ X cada lata) */
.fp-shop-card__price .feltoni-fardo-info {
  flex-basis: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 2px;
}

.fp-shop-card__price .feltoni-fardo-badge {
  font-family: 'Archivo', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--s-pink);
}

.fp-shop-card__price .feltoni-fardo-unit {
  font-family: 'Archivo', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--s-text-mute);
}

.fp-shop-card__price .feltoni-fardo-unit .woocommerce-Price-amount {
  font-family: 'Archivo', sans-serif;
  font-size: 12px;
  color: var(--s-text-dim);
}

/* ============================================================
   PRECO .fp-preco — mesmo padrao do cross-sell
   (card agora chama feltoni_crosssell_preco_html / feltoni_render_preco)
   ============================================================ */
.fp-shop-card__price .fp-preco {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
}

/* preco cheio riscado (so em oferta) */
.fp-shop-card__price .fp-preco__old {
  font-family: 'Archivo', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--s-text-mute);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 31, 143, 0.6);
}
.fp-shop-card__price .fp-preco__old .woocommerce-Price-amount {
  font-family: 'Archivo', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: inherit;
}

/* preco grande (por lata no Pre/Pos; por unidade/kit no resto) */
.fp-shop-card__price .fp-preco__now {
  font-family: 'Anton', sans-serif;
  font-size: 26px;
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--s-text);
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.fp-shop-card__price .fp-preco__now .woocommerce-Price-amount {
  font: inherit;
  color: inherit;
}

/* sufixo "/ lata", "/ unidade", "/ kit" */
.fp-shop-card__price .fp-preco__unit {
  font-family: 'Archivo', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--s-text-dim);
  text-transform: lowercase;
}

/* linha do fardo (so Pre/Pos) */
.fp-shop-card__price .fp-preco__fardo {
  font-family: 'Archivo', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--s-text-mute);
  margin-top: 2px;
}
.fp-shop-card__price .fp-preco__fardo .woocommerce-Price-amount {
  font: inherit;
  color: inherit;
}

/* parcelamento 4x (verde) */
.fp-shop-card__price .fp-preco__inst {
  font-family: 'Archivo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--s-green);
  margin-top: 4px;
}
.fp-shop-card__price .fp-preco__inst .woocommerce-Price-amount {
  font: inherit;
  color: inherit;
}

.fp-shop-card__cta {
  font-family: 'Archivo', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--s-text-dim);
  transition: color 0.3s var(--s-ease);
}

.fp-shop-card:hover .fp-shop-card__cta {
  color: var(--s-pink);
}

.fp-shop-card[data-cats~="pos-treino"]:hover .fp-shop-card__cta {
  color: var(--s-green);
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 1024px) {
  .fp-shop-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .fp-shop-hero { padding: 56px 20px 40px; }
  .fp-shop-filters { padding: 0 20px; margin-bottom: 40px; }
  .fp-shop-section { padding: 0 20px; margin-bottom: 56px; }
  .fp-shop-pill { padding: 9px 16px; font-size: 12px; }
}

@media (max-width: 560px) {
  .fp-shop-grid { grid-template-columns: 1fr; gap: 18px; }
  .fp-shop-card__visual { aspect-ratio: 1 / 1; }
}