/* 3pito Shop — tienda: categorías, filtros, inicio, landing, footer, cajón y consentimiento. */
/* Categorías, chips y filtros */
.cat-grid,
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cat-tile,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--cat, var(--line));
  background: color-mix(in srgb, var(--cat, var(--surface-2)) 14%, var(--surface));
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.chip[aria-current="page"] {
  outline: 2px solid var(--cat, var(--brand));
}
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
}
.filters label {
  display: grid;
  gap: 4px;
  flex: 1 1 140px;
  min-width: 0;
  font-weight: 600;
}
.ranges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Inicio, landing y secciones */
.hero {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  align-items: center;
}
.trust,
.guarantees,
.eta {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.cod {
  background: var(--navy);
  color: var(--on-navy);
  border-radius: var(--r-lg);
}
.cod .eyebrow {
  color: var(--sun);
}
.product-top {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
}
.gallery {
  display: grid;
  gap: 10px;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.gallery-empty {
  aspect-ratio: 1;
  place-items: center;
  font-size: 5rem;
  background: color-mix(in srgb, var(--cat) 20%, var(--surface));
}
.price-lg {
  font-size: 1.8rem;
}
.packs,
.swatches {
  border: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.pack,
.swatch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.swatch::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--swatch);
  border: 1px solid var(--line);
}
.stock {
  color: var(--warn-text);
  font-weight: 700;
}
.stock-out {
  color: var(--bad);
}
.specs table {
  width: 100%;
  border-collapse: collapse;
}
.specs th,
.specs td {
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid var(--line);
}
.rcard,
.testimonials blockquote {
  margin: 0 0 12px;
  padding: 16px;
  background: var(--surface);
  border-radius: var(--r-md);
}
.sticky-cta {
  position: sticky;
  bottom: 12px;
  display: flex;
  justify-content: center;
}

/* Footer, flotante, cajón y consentimiento */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 32px var(--gutter);
}
.footer-cols {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}
.footer-col h2 {
  font-size: 1.1rem;
}
.footer-col ul {
  list-style: none;
  padding: 0;
}
.legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: var(--wa);
  color: #fff;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(420px, 100%);
  background: var(--surface);
  padding: 24px;
  transform: translateX(100%);
  transition: transform 250ms ease-out;
  z-index: 20;
}
.cart-drawer[data-open] {
  transform: none;
}
.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  box-shadow: var(--shadow);
  z-index: 30;
}

@media (max-width: 600px) {
  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }
}

/* Ayuda, políticas y rastreo (paso 11) */
.zones {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
.zones th,
.zones td {
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  /* Sin scroll horizontal a 320 px: las listas largas de provincias parten donde haga falta. */
  overflow-wrap: anywhere;
}
.track-steps li.done {
  color: var(--ok);
  font-weight: 700;
}
.policy-updated {
  color: var(--muted);
}

/* Contador público de vistas reales de hoy (paso 32; oculto si el ajuste está apagado o no llega al mínimo). */
.views-today {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
}
