/* =========================================================
   iFody — PLP (Listagem de Categoria) · Mobile-First
   ========================================================= */

body.has-plp-sticky {
  padding-bottom: calc(var(--bottombar-h) + 56px + var(--safe-bottom));
}

/* ============================================
   BREADCRUMB
   ============================================ */
.crumb {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-3);
}
.crumb__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
.crumb__row::-webkit-scrollbar { display: none; }
@media (min-width: 720px) {
  .crumb { font-size: 13px; }
  .crumb__row { padding: 16px 0; }
}
.crumb a {
  color: var(--text-2);
  text-decoration: none;
  transition: color .2s var(--ease);
}
.crumb a:hover { color: var(--pink-light); }
.crumb__sep { color: var(--text-3); opacity: .4; }
.crumb__current { color: var(--text); font-weight: 600; }
.crumb__home {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ============================================
   CAT HERO — banner da categoria (com imagem)
   ============================================ */
.cat-hero {
  position: relative;
  padding: 56px 0 36px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
@media (min-width: 720px) { .cat-hero { padding: 88px 0 56px; } }

.cat-hero__bg {
  position: absolute; inset: 0;
  z-index: -2;
  background: var(--bg);
  overflow: hidden;
}
.cat-hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: .55;
}
.cat-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 10, 26, .95) 0%, rgba(15, 10, 26, .55) 50%, rgba(15, 10, 26, .85) 100%),
    radial-gradient(circle at 20% 50%, rgba(255, 61, 138, .25) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(139, 60, 255, .25) 0%, transparent 50%);
}
.cat-hero__inner { position: relative; z-index: 1; }
.cat-hero__title {
  font-weight: 800;
  font-size: clamp(38px, 8vw, 64px);
  line-height: 1.05;
  letter-spacing: -.03em;
  margin: 10px 0 14px;
}
.cat-hero__lead {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 22px;
  max-width: 640px;
}
@media (min-width: 720px) { .cat-hero__lead { font-size: 17px; margin-bottom: 28px; } }
.cat-hero__lead strong { color: var(--text); font-weight: 700; }

.cat-hero__chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 0 6px;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.cat-hero__chips::-webkit-scrollbar { display: none; }
@media (min-width: 720px) {
  .cat-hero__chips { margin: 0; padding-left: 0; padding-right: 0; flex-wrap: wrap; overflow: visible; }
}

/* Layout do container quando os chips são cards vetoriais (vide .hcat-card
   em styles-extras.css — usado tanto no hero quanto na home). */
.cat-hero__chips--cards {
  gap: 10px;
  padding-top: 8px;
  padding-bottom: 14px;
  align-items: stretch;
}

/* Bloco "cabeçalho" do hero quando a categoria tem Miniatura: ícone à esquerda
   + kicker/título à direita. Sempre lado a lado (nowrap) — título reduz a
   fonte no mobile pra caber, em vez de quebrar o ícone pra cima. */
.cat-hero__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: nowrap;
}
@media (min-width: 720px) {
  .cat-hero__head { gap: 20px; margin-bottom: 18px; }
}
.cat-hero__head-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
}
.cat-hero__head-text .cat-hero__title {
  margin: 0;
  /* Título menor quando há ícone ao lado — caso contrário não cabe no mobile.
     Mantém o clamp grande do .cat-hero__title base só quando NÃO tem ícone. */
  font-size: clamp(24px, 6vw, 48px);
  line-height: 1.1;
}

/* Miniatura grande da categoria — disco circular dark translúcido com border
   gradient sutil (mesma estética .hcat-card dos chips logo abaixo). */
.cat-hero__cat-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 50%;
  background:
    linear-gradient(rgba(28, 20, 40, .85), rgba(28, 20, 40, .85)) padding-box,
    linear-gradient(135deg, rgba(255, 61, 138, .4), rgba(139, 60, 255, .25) 50%, rgba(255, 255, 255, .12)) border-box;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-sizing: border-box;
  flex-shrink: 0;
}
@media (min-width: 720px) {
  .cat-hero__cat-icon { width: 112px; height: 112px; padding: 14px; }
}
.cat-hero__cat-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .45));
}
@media (min-width: 720px) {
  .cat-hero__cat-icon img { filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .5)); }
}
.cat-hero__cat-icon-grad {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}

/* ============================================
   CAT HERO — variante de sub-marca (taxonomy-ifody_marca)
   ============================================ */
.cat-hero--brand {
  --brand-color: var(--brand);
}
.cat-hero--brand .cat-hero__bg::after {
  background:
    linear-gradient(90deg, rgba(15, 10, 26, .96) 0%, rgba(15, 10, 26, .65) 60%, rgba(15, 10, 26, .9) 100%),
    radial-gradient(circle at 25% 35%, color-mix(in srgb, var(--brand-color) 25%, transparent) 0%, transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(139, 60, 255, .22) 0%, transparent 50%);
}
.cat-hero__brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background: var(--brand-logo-bg, #fff);
  padding: 14px;
  margin-bottom: 18px;
  box-shadow: 0 12px 32px -16px color-mix(in srgb, var(--brand-color) 60%, transparent),
              0 0 0 1px rgba(255, 255, 255, .08) inset;
}
@media (min-width: 720px) {
  .cat-hero__brand-logo { width: 120px; height: 120px; border-radius: 28px; padding: 18px; margin-bottom: 22px; }
}
.cat-hero__brand-logo img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.cat-hero--brand .kicker--pink {
  color: var(--brand-color);
}
.cat-hero__tagline {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: -6px 0 14px;
  letter-spacing: -.01em;
}
@media (min-width: 720px) { .cat-hero__tagline { font-size: 18px; margin: -4px 0 18px; } }
.cat-hero__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid color-mix(in srgb, var(--brand-color) 35%, var(--line));
  border-radius: 999px;
  background: rgba(28, 20, 40, .55);
  color: var(--text-2);
  font-size: 13px;
  margin-top: 4px;
}
.cat-hero__meta strong {
  color: var(--text);
  font-weight: 700;
}

/* ============================================
   CAT INFO — bloco SEO/educativo
   ============================================ */
.cat-info {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 720px) { .cat-info { padding: 48px 0; } }
.cat-info__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}
@media (min-width: 880px) {
  .cat-info__grid { grid-template-columns: 1.3fr 1fr; gap: 56px; }
}
.cat-info__intro h2 {
  font-weight: 700;
  font-size: clamp(22px, 3.5vw, 30px);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 10px 0 14px;
}
.cat-info__intro h2 em {
  font-style: normal;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cat-info__intro p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 14px;
}
@media (min-width: 720px) { .cat-info__intro p { font-size: 15px; } }
.cat-info__intro p strong { color: var(--text); font-weight: 700; }

.cat-info__topics {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ctopic {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 0;
}
.ctopic summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  user-select: none;
}
.ctopic summary::-webkit-details-marker { display: none; }
.ctopic summary::after {
  content: '+';
  margin-left: auto;
  font-size: 20px;
  font-weight: 300;
  color: var(--pink-light);
  line-height: 1;
}
.ctopic[open] summary::after { content: '−'; }
.ctopic__icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ctopic__icon img { width: 20px; height: 20px; object-fit: contain; }
.ctopic p {
  padding: 0 16px 16px 56px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.6;
}

/* Variante "footer" — bloco SEO no fim, mais discreto */
.cat-info--footer {
  background: rgba(0, 0, 0, .15);
  padding: 40px 0;
  border-bottom: 0;
  border-top: 1px solid var(--line);
}
.cat-info--footer .cat-info__intro h2 {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 600;
}
.cat-info--footer .cat-info__intro p {
  font-size: 13px;
  line-height: 1.65;
}
.cat-info--footer .ctopic summary { font-size: 13px; padding: 12px 14px; }
.cat-info--footer .ctopic p { font-size: 12px; padding: 0 14px 14px 50px; }

/* ============================================
   TOOLBAR
   ============================================ */
.toolbar {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
/* Mobile: a toolbar primary fica escondida — filtros/ordenar vivem no .plp-mobile-sticky */
.toolbar__row { display: none; }
@media (min-width: 720px) {
  .toolbar__row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    flex-wrap: wrap;
  }
}
.toolbar__count {
  font-size: 13px;
  color: var(--text-3);
  display: none;
}
@media (min-width: 720px) {
  .toolbar__count { display: block; }
}
.toolbar__count strong { color: var(--text); font-weight: 700; }

.toolbar__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: all .25s var(--ease);
}
.filter-btn:hover { border-color: var(--pink); }
.filter-btn__count {
  background: var(--grad-primary);
  color: white;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
}
/* Filtros agora é offcanvas em qualquer tela — botão sempre visível */

.view-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
@media (min-width: 720px) { .view-toggle { display: inline-flex; } }
.view-toggle__btn {
  width: 36px; height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  transition: all .25s var(--ease);
}
.view-toggle__btn--on { background: var(--text); color: var(--bg); }

/* Density toggle (confortável / compacto) */
.density-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 0;
}
@media (min-width: 720px) { .density-toggle { display: inline-flex; } }
.density-toggle__btn {
  width: 34px; height: 30px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  cursor: pointer;
  transition: all .2s var(--ease);
}
.density-toggle__btn:hover { color: var(--text); }
.density-toggle__btn--on { background: var(--text); color: var(--bg); }

.sort {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.sort__label {
  display: none;
  font-size: 12px;
  color: var(--text-3);
  margin-right: 6px;
}
@media (min-width: 720px) { .sort__label { display: inline; } }
.sort__select {
  appearance: none;
  -webkit-appearance: none;
  padding: 10px 32px 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: border-color .25s var(--ease);
}
.sort__select:hover { border-color: var(--pink); }
.sort__caret {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-3);
}

/* Active filter chips */
.active-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  padding: 0 0 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.active-filters::-webkit-scrollbar { display: none; }
@media (max-width: 720px) {
  .active-filters {
    flex-wrap: nowrap;
    margin: 0 -20px;
    padding: 0 20px 12px;
  }
}
.active-filters__label {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.afilter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 61, 138, .12);
  border: 1px solid rgba(255, 61, 138, .3);
  font-size: 12px;
  color: var(--pink-light);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .25s var(--ease);
}
.afilter:hover { background: rgba(255, 61, 138, .2); }
.afilter span { font-size: 14px; line-height: 1; opacity: .7; }
.afilter--clear {
  background: transparent;
  border-color: var(--line);
  color: var(--text-3);
  margin-left: auto;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.afilter--clear:hover {
  background: transparent;
  border-color: var(--pink);
  color: var(--pink-light);
}

/* ============================================
   PLP LAYOUT
   ============================================ */
.plp { padding: 0 0 48px; }
@media (min-width: 720px) { .plp { padding: 0; } }

.plp__grid {
  display: block;
}

/* ============================================
   FILTERS SIDEBAR (desktop) / DRAWER (mobile)
   ============================================ */
.filters-sidebar {
  position: fixed;
  top: 0; left: 0;
  width: 88%;
  max-width: 360px;
  height: 100vh;        /* fallback para browsers sem dvh */
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;   /* trava o conteúdo do form ao viewport mesmo em flex */
  background: var(--bg-2);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform .35s var(--ease);
  box-shadow: 20px 0 50px rgba(0, 0, 0, .4);
}
.filters-sidebar.is-open { transform: translateX(0); }
@media (min-width: 1024px) {
  .filters-sidebar { max-width: 400px; }
}

.filters-sidebar__head {
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.filters-sidebar__head h3 { font-weight: 700; font-size: 18px; }
.filters-sidebar__close {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--text-2);
}

.filters-sidebar__form {
  display: flex;
  flex-direction: column;
  /* basis 0 (não auto) garante que o form não tente reservar a altura
     intrínseca dos <details open> antes do shrink — sem isso, em casos
     de muito conteúdo o flex container "esquece" de cortar e o overflow
     não dispara. */
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--pink-light) transparent;
}
.filters-sidebar__form::-webkit-scrollbar { width: 8px; }
.filters-sidebar__form::-webkit-scrollbar-thumb { background: var(--pink-light); border-radius: 999px; }

.filters-sidebar__foot {
  position: sticky;
  bottom: 0;
  padding: 16px 20px calc(20px + var(--safe-bottom));
  display: flex;
  gap: 10px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  margin-top: auto;
}
.filters-sidebar__foot .btn { flex: 1; }

.filters-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(6px);
  z-index: 190;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.filters-bg.is-open { opacity: 1; pointer-events: auto; }

/* Filter groups (acordeao nativo via <details>) */
.fgroup {
  border-bottom: 1px solid var(--line);
  padding: 0 20px;
}
@media (min-width: 1024px) {
  /* `.fgroup { padding: 0 4px }` removido — esses 4px aplicados nos dois
     lados do <details> empurravam os inputs do range para fora do sidebar
     (especialmente o input "max_price"). Agora o conteúdo do sidebar fica
     alinhado com a borda do grid sem necessidade de padding interno. */
  .fgroup:first-of-type { border-top: 0; }
}
.fgroup summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.fgroup summary::-webkit-details-marker { display: none; }
.fgroup summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--pink-light);
  transition: transform .25s var(--ease);
  line-height: 1;
}
.fgroup[open] summary::after { content: '−'; }
.fgroup__body { padding-bottom: 18px; }
.fgroup__list { display: flex; flex-direction: column; gap: 6px; }
.fgroup__more {
  font-size: 12px;
  color: var(--pink-light);
  font-weight: 600;
  margin-top: 8px;
  text-align: left;
}

/* Checkbox custom */
.fcheck {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-2);
  transition: color .2s var(--ease);
}
.fcheck:hover { color: var(--text); }
.fcheck input { position: absolute; opacity: 0; pointer-events: none; }
.fcheck__box {
  width: 18px; height: 18px;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  position: relative;
  flex-shrink: 0;
  transition: all .2s var(--ease);
}
.fcheck input:checked + .fcheck__box {
  background: var(--grad-primary);
  border-color: transparent;
}
.fcheck input:checked + .fcheck__box::after {
  content: '';
  position: absolute;
  left: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.fcheck__box--radio { border-radius: 50%; }
.fcheck input:checked + .fcheck__box--radio {
  background: var(--grad-primary);
  border-color: transparent;
}
.fcheck input:checked + .fcheck__box--radio::after {
  content: '';
  position: absolute;
  inset: 4px;
  background: white;
  border-radius: 50%;
  width: auto; height: auto;
  border: 0;
  transform: none;
  left: 4px; top: 4px;
}
.fcheck__label {
  flex: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.fcheck__label em {
  font-style: normal;
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
}
.fcheck__count {
  font-size: 11px;
  color: var(--text-3);
  background: var(--surface);
  padding: 2px 8px;
  border-radius: 999px;
}
.rstars { color: var(--yellow); letter-spacing: .04em; }
.rstars-dim { color: var(--text-3); letter-spacing: .04em; }

/* Toggle switch */
.ftoggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-2);
}
.ftoggle input { position: absolute; opacity: 0; pointer-events: none; }
.ftoggle__switch {
  width: 40px; height: 22px;
  background: var(--line);
  border-radius: 999px;
  position: relative;
  flex-shrink: 0;
  transition: background .25s var(--ease);
}
.ftoggle__switch::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: white;
  border-radius: 50%;
  transition: transform .25s var(--ease);
}
.ftoggle input:checked + .ftoggle__switch {
  background: var(--grad-primary);
}
.ftoggle input:checked + .ftoggle__switch::after { transform: translateX(18px); }

/* Price range slider */
.price-range { padding: 6px 0; }
.price-range__bar {
  position: relative;
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  margin-bottom: 14px;
}
.price-range__fill {
  position: absolute;
  height: 100%;
  background: var(--grad-primary);
  border-radius: 999px;
}
.price-range__handle {
  position: absolute;
  top: 50%;
  width: 18px; height: 18px;
  background: white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
  cursor: pointer;
}
.price-range__inputs {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}
.price-range__inputs label {
  flex: 1;
  display: inline-flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  color: var(--text-3);
  gap: 4px;
}
.price-range__inputs input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  outline: none;
  min-width: 0;
}

.price-quick {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.price-quick button {
  font-size: 11px;
  padding: 5px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-2);
  font-weight: 500;
  transition: all .25s var(--ease);
}
.price-quick button:hover { color: var(--text); border-color: var(--pink); }

/* Color swatches */
.color-swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.cswatch {
  aspect-ratio: 1/1;
  border-radius: 50%;
  border: 2px solid var(--line);
  transition: all .25s var(--ease);
  position: relative;
}
.cswatch:hover { transform: scale(1.1); }
.cswatch--on {
  border-color: white;
  transform: scale(1.1);
}
.cswatch--on::after {
  content: '';
  position: absolute;
  inset: -5px;
  border: 1.5px solid var(--pink);
  border-radius: 50%;
}

/* ============================================
   PLP CONTENT
   ============================================ */
.plp__content { min-width: 0; }

/* Inline promo */
.inline-promo {
  margin: 28px 0;
  background: linear-gradient(135deg, #2A1F38 0%, #1A0F24 100%);
  border: 1px solid rgba(255, 212, 133, .25);
  border-radius: var(--r-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 720px) {
  .inline-promo {
    flex-direction: row;
    align-items: center;
    gap: 32px;
    padding: 36px;
  }
}
.inline-promo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 50%, rgba(255, 212, 133, .15) 0%, transparent 60%);
  pointer-events: none;
}
.inline-promo__body { flex: 1; position: relative; z-index: 1; }
.inline-promo__body h3 {
  font-weight: 800;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 12px 0 10px;
}
.inline-promo__body h3 em {
  font-style: normal;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.inline-promo__body p {
  color: var(--text-2);
  font-size: 13px;
  margin-bottom: 18px;
}
.inline-promo__visual {
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
}
@media (min-width: 720px) { .inline-promo__visual { width: 240px; max-width: 240px; margin: 0; } }
.inline-promo__visual img {
  width: 100%;
  height: auto;
  border-radius: var(--r);
  background: white;
  padding: 18px;
  display: block;
}

/* Paginação: regras vivem em styles-extras.css (sempre carregada) — vide bug #006 */

.plp__info {
  margin-top: 16px;
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
}

/* ============================================
   MOBILE STICKY (filtros + ordenar fixos)
   ============================================ */
.plp-mobile-sticky {
  position: fixed;
  left: 0; right: 0;
  bottom: calc(var(--bottombar-h) + var(--safe-bottom));
  background: rgba(15, 10, 26, .98);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
  z-index: 70;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  padding: 8px 16px;
  font-size: 13px;
}
@media (min-width: 720px) { .plp-mobile-sticky { display: none; } }
.plp-mobile-sticky__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  color: var(--text);
}
.plp-mobile-sticky__btn:first-child { margin-right: 8px; }

/* Sort dropdown no mobile sticky — popover custom em dark mode,
   abre PRA CIMA (a barra fica fixa no rodapé). Mantém fidelidade ao
   design em vez de usar o <select> nativo do browser. */
.sortmenu { position: relative; }
.sortmenu__trigger { width: 100%; }
.sortmenu__list {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  left: 0;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
  list-style: none;
  margin: 0;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease);
  z-index: 80;
}
.sortmenu.is-open .sortmenu__list {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.sortmenu.is-open .sortmenu__trigger { border-color: var(--pink); }
.sortmenu__item {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: transparent;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2, #C9BED9);
  text-align: left;
  cursor: pointer;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.sortmenu__item:hover { background: var(--surface); color: var(--text); }
.sortmenu__item.is-active { color: var(--pink-light); }
.sortmenu__check { flex-shrink: 0; color: var(--pink); }
