/* ==========================================================================
   Catálogo y detalle de producto
   ========================================================================== */

.page-hero-compact { padding-block: clamp(32px, 4vw, 52px); }

/* ── Barra de filtros ───────────────────────────────────────────────── */
.catalog-toolbar { display: grid; gap: 16px; margin-bottom: 20px; }

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.chip {
  flex-shrink: 0;
  padding: 10px 18px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-head);
  font-size: .88rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }

.catalog-filters { display: flex; gap: 12px; flex-wrap: wrap; }
.catalog-search { position: relative; flex: 1 1 320px; }
.catalog-search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 20px; height: 20px; }
.catalog-search input, .catalog-select select {
  width: 100%;
  height: 50px;
  border: 1px solid var(--gray-300);
  border-radius: 999px;
  background: var(--white);
  font-size: 1rem;
}
.catalog-search input { padding: 0 18px 0 46px; }
.catalog-select { flex: 0 1 240px; }
.catalog-select select { padding: 0 18px; cursor: pointer; }
.catalog-search input:focus, .catalog-select select:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(22, 58, 140, .15);
}
@media (max-width: 560px) { .catalog-select { flex: 1 1 100%; } }

.catalog-status {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 20px;
  font-size: .9rem;
}
.catalog-status p { margin: 0; }
.catalog-count { font-weight: 600; color: var(--navy); }
.catalog-lock { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.catalog-lock .icon { color: var(--orange-600); width: 18px; height: 18px; }

[data-catalog-grid] { transition: opacity .2s; }
[data-catalog-grid].is-loading { opacity: .45; }

.catalog-empty {
  display: grid; justify-items: center; gap: 6px;
  padding: 56px 20px;
  text-align: center;
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius-lg);
}
.catalog-empty > .icon { width: 44px; height: 44px; color: var(--gray-300); }
.catalog-empty-title { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 1.3rem; margin: 6px 0 0; }
.catalog-empty p { color: var(--muted); }
.catalog-seo {
  margin-top: 48px;
  padding: 28px clamp(20px, 3vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--gray-50);
}
.catalog-seo h2 { font-size: 1.25rem; margin-bottom: .5em; }
.catalog-seo p { margin: 0; color: var(--muted); max-width: 900px; }
.catalog-more { display: flex; justify-content: center; margin-top: 36px; }

/* ── Detalle de producto ────────────────────────────────────────────── */
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.pd-media {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
}
.pd-media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pd-media .badge { position: absolute; top: 16px; left: 16px; }
.pd-media figcaption { padding: 10px 16px; font-size: .8rem; color: var(--muted); background: var(--white); border-top: 1px solid var(--gray-100); }
@media (max-width: 860px) {
  .product-detail { grid-template-columns: 1fr; }
  .pd-media { position: relative; top: 0; }
}

.pd-info .breadcrumb { margin-bottom: 18px; }
.pd-brand { font-family: var(--font-head); font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-600); }
.pd-info h1 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); margin: 6px 0 4px; }
.pd-ref { color: var(--muted); margin-bottom: 20px; }
.pd-desc { font-size: 1.05rem; }

.pd-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 24px 0;
}
.pd-specs div { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--gray-50); }
.pd-specs dt { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.pd-specs dd { margin: 2px 0 0; font-weight: 600; color: var(--navy); }

.price-box {
  padding: 20px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--white), var(--gray-50));
  margin-bottom: 20px;
}
.price-label { font-size: .85rem; color: var(--muted); margin: 0; }
.price-value { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; color: var(--navy); margin: 2px 0 6px; }
.price-value .icon { width: 22px; height: 22px; color: var(--orange-600); }
.price-note { font-size: .85rem; color: var(--muted); margin: 0; }
.pd-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .pd-actions { grid-template-columns: 1fr; } }
.pd-actions .btn { width: 100%; }
