/* ============================================================
   CATALOG.CSS — Estilos del catálogo de productos
   YEYSON INOX PERU S.A.C.
   ============================================================ */

/* ── CATALOG HERO ────────────────────────────────────────────── */
.catalog-hero { padding: 72px 0 64px; }

/* SVG decoration inside hero */
.cat-hero-deco {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0; display: block; overflow: visible;
}

/* Quick stats row in hero */
.cat-hero-stats {
  display: flex; align-items: center; gap: 0;
  margin: 28px 0 0; flex-wrap: wrap; gap: 0;
}
.cat-stat {
  display: flex; flex-direction: column; gap: 2px;
  padding: 0 28px 0 0;
}
.cat-stat:first-child { padding-left: 0; }
.cat-stat strong {
  font-family: 'Bebas Neue', 'Barlow Condensed', sans-serif;
  font-size: 2rem; font-weight: 400; color: #fff; line-height: 1;
  letter-spacing: 1px;
}
.cat-stat span {
  font-family: 'Barlow', 'Inter', sans-serif;
  font-size: 0.7rem; font-weight: 600; color: rgba(200,208,216,0.60);
  text-transform: uppercase; letter-spacing: 0.8px;
}
.cat-stat-sep {
  width: 1px; height: 36px; background: rgba(255,255,255,0.15);
  margin: 0 28px 0 0; flex-shrink: 0;
}

/* ── LAYOUT ──────────────────────────────────────────────────── */
.catalog-wrap  { display: grid; grid-template-columns: 264px 1fr; gap: 28px; align-items: start; }
.catalog-section { padding: 40px 0 64px; position: relative; overflow: hidden; }
.catalog-section .container { position: relative; z-index: 1; }

/* SVG de fondo de la sección catálogo */
.cat-section-deco {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0; display: block;
}

/* ── SIDEBAR ─────────────────────────────────────────────────── */
.filter-sidebar { position: sticky; top: 88px; }
.filter-card {
  background: var(--white); border-radius: var(--rl); padding: 20px;
  box-shadow: var(--shadow); margin-bottom: 16px;
}
.filter-card-title {
  font-size: 11px; font-weight: 700; color: var(--navy-dark);
  text-transform: uppercase; letter-spacing: .6px;
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
}
.filter-card-title i { color: var(--orange); font-size: 11px; }

.filter-search { position: relative; }
.filter-search input {
  width: 100%; border: 1.5px solid var(--border); border-radius: var(--r);
  padding: 9px 12px 9px 34px; font-size: 13px; color: var(--text);
  outline: none; transition: border-color var(--t); background: #fff;
  box-sizing: border-box;
}
.filter-search input:focus { border-color: var(--orange); }
.filter-search i {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  color: var(--text-lt); font-size: 11px; pointer-events: none;
}

.cat-filter-list { display: flex; flex-direction: column; gap: 2px; }
.cat-filter-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border-radius: var(--r); cursor: pointer; transition: all var(--t);
  font-size: 13px; color: var(--text-mid);
}
.cat-filter-item:hover { background: rgba(26,47,94,.06); color: var(--navy); font-weight: 600; }
.cat-filter-item.active { background: var(--navy); color: #fff; }
.cat-fi-icon {
  width: 28px; height: 28px; border-radius: 6px; flex-shrink: 0;
  background: rgba(26,47,94,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--navy);
}
.cat-filter-item.active .cat-fi-icon { background: rgba(255,255,255,.15); color: #fff; }
.cat-fi-label { flex: 1; }
.cat-fi-count {
  background: var(--bg-mid); color: var(--text-lt);
  font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 50px;
}
.cat-filter-item.active .cat-fi-count { background: rgba(255,255,255,.2); color: #fff; }

/* Price filter */
.price-inputs { display: flex; gap: 8px; }
.price-inputs input {
  width: 0; flex: 1 1 0; min-width: 0;
  border: 1.5px solid var(--border); border-radius: var(--r);
  padding: 8px 8px; font-size: 13px; color: var(--text);
  outline: none; transition: border-color var(--t);
  box-sizing: border-box;
}
.price-inputs input:focus { border-color: var(--orange); }

.tag-filter-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-filter-btn {
  padding: 5px 12px; border: 1.5px solid var(--border); border-radius: 50px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: all var(--t); color: var(--text-mid); background: #fff;
}
.tag-filter-btn:hover                 { border-color: var(--navy); color: var(--navy); }
.tag-filter-btn.active                { background: var(--navy); border-color: var(--navy); color: #fff; }
.tag-filter-btn.nuevo.active          { background: #27AE60; border-color: #27AE60; }
.tag-filter-btn.oferta.active         { background: var(--orange); border-color: var(--orange); }
.tag-filter-btn.destacado.active      { background: #8E44AD; border-color: #8E44AD; }

.btn-clear-filters {
  width: 100%; background: transparent; border: 1.5px solid var(--border);
  border-radius: var(--r); padding: 9px; font-size: 13px; color: var(--text-mid);
  cursor: pointer; transition: all var(--t);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-clear-filters:hover { border-color: var(--orange); color: var(--orange); }

/* Sidebar CTA */
.sidebar-cta {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  border-radius: var(--rl); padding: 22px 20px; text-align: center;
  margin-top: 16px; position: relative; overflow: hidden;
}
.sidebar-cta::before {
  content: ''; position: absolute; top: -30px; right: -30px;
  width: 100px; height: 100px; border-radius: 50%;
  background: rgba(212,105,30,.18);
}
.sidebar-cta > i { font-size: 32px; color: var(--whatsapp); margin-bottom: 10px; display: block; }
.sidebar-cta p { font-size: 13px; color: rgba(200,208,216,.85); margin-bottom: 14px; line-height: 1.5; position: relative; z-index: 1; }
.sidebar-cta-btn {
  display: block; background: var(--whatsapp); color: #fff;
  border-radius: 50px; padding: 10px 20px; font-size: 13px; font-weight: 700;
  transition: all var(--t); position: relative; z-index: 1;
}
.sidebar-cta-btn:hover { background: var(--whatsapp-dark); transform: translateY(-2px); }

/* ── CATALOG TOOLBAR ─────────────────────────────────────────── */
.catalog-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--white); border-radius: var(--rl); padding: 14px 20px;
  box-shadow: var(--shadow); margin-bottom: 20px;
}
.toolbar-left  { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-mid); font-weight: 600; }
.toolbar-right { display: flex; align-items: center; gap: 10px; }
.sort-select {
  border: 1.5px solid var(--border); border-radius: var(--r);
  padding: 7px 12px; font-size: 13px; color: var(--text);
  outline: none; background: #fff; cursor: pointer;
  transition: border-color var(--t);
}
.sort-select:focus { border-color: var(--orange); }
.view-toggle { display: flex; gap: 4px; }
.view-btn {
  width: 32px; height: 32px; border: 1.5px solid var(--border);
  border-radius: var(--r); background: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--text-lt); transition: all var(--t);
}
.view-btn.active, .view-btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ── PRODUCT CARDS ───────────────────────────────────────────── */
.products-catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.pc-card {
  background: var(--white); border-radius: var(--rll);
  overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--border); transition: all .3s ease;
  cursor: pointer; display: flex; flex-direction: column;
}
.pc-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg);
  border-color: rgba(212,105,30,.35);
}

/* Imagen grande del producto */
.pc-image {
  height: 260px; position: relative; overflow: hidden;
  background: #f4f6f9;
  display: flex; align-items: center; justify-content: center;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform .4s ease;
}
.pc-card:hover .pc-image { transform: scale(1.02); }
.pc-image i { font-size: 64px; color: #d1d9e0; z-index: 1; }

.pc-badges {
  position: absolute; top: 12px; left: 12px;
  display: flex; flex-direction: column; gap: 5px; z-index: 3;
}

/* Overlay con botones al hacer hover */
.pc-overlay {
  position: absolute; inset: 0; z-index: 4;
  background: rgba(0,0,0,.28);
  display: flex; align-items: center; justify-content: center;
  gap: 8px; padding: 16px;
  opacity: 0; transition: opacity .25s ease;
}
.pc-card:hover .pc-overlay { opacity: 1; }

.pc-view-btn, .pc-wa-btn {
  padding: 5px 14px; border-radius: 50px; font-size: 12px; font-weight: 500;
  border: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  transition: all .2s; white-space: nowrap; line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.pc-view-btn { background: rgba(255,255,255,.90); color: #1a2f5e; }
.pc-view-btn:hover { background: #fff; }
.pc-wa-btn  { background: #25D366; color: #fff; }
.pc-wa-btn:hover  { background: #1ebe5d; }

/* Mobile WA button — shown only on mobile */
.pc-wa-mobile {
  display: none;
  width: 100%; margin-top: 12px;
  background: var(--whatsapp); color: #fff;
  border-radius: 50px; padding: 10px 16px; font-size: 13px; font-weight: 700;
  text-align: center; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; transition: background .2s;
}
.pc-wa-mobile:hover { background: var(--whatsapp-dark); color: #fff; }

/* Body */
.pc-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }

.pc-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pc-sku  { font-size: 10px; color: var(--text-lt); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.pc-cat  { font-size: 10px; color: var(--orange); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }

.pc-name {
  font-size: 16px; font-weight: 800; color: var(--navy-dark);
  margin-bottom: 8px; line-height: 1.3;
}
.pc-desc {
  font-size: 13px; color: var(--text-lt); line-height: 1.65;
  margin-bottom: 12px; flex: 1;
}
.pc-desc ul { padding-left: 4px; display: flex; flex-direction: column; gap: 3px; list-style: none; }
.pc-desc ul li { display: flex; align-items: flex-start; gap: 6px; }
.pc-desc ul li::before { content: '—'; color: var(--orange); flex-shrink: 0; font-size: 11px; margin-top: 2px; }
.pc-specs { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 16px; }

.pc-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid var(--border); gap: 10px;
}
.pc-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pc-old   { font-size: 12px; color: var(--text-lt); text-decoration: line-through; }
.pc-current { font-size: 22px; font-weight: 800; color: var(--navy); line-height: 1; }
.pc-price small { font-size: 11px; color: var(--text-lt); }
.pc-price.pc-consult {
  font-size: 12px !important; color: var(--text-lt) !important;
  font-style: italic; display: flex; align-items: center; gap: 5px;
}

.pc-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--navy); color: #fff; border-radius: 50px;
  padding: 9px 18px; font-size: 12px; font-weight: 700;
  transition: all var(--t); white-space: nowrap;
}
.pc-btn:hover { background: var(--orange); transform: translateY(-1px); }

/* ── LIST VIEW ───────────────────────────────────────────────── */
.products-catalog-grid.list-view { grid-template-columns: 1fr; }
.products-catalog-grid.list-view .pc-card {
  flex-direction: row;
}
.products-catalog-grid.list-view .pc-image {
  width: 200px; flex-shrink: 0; height: auto; min-height: 160px;
  border-radius: 16px 0 0 16px; transform: none !important;
}
.products-catalog-grid.list-view .pc-body { padding: 22px; }

/* ── CTA BANNER (override para catalogo) ─────────────────────── */
.cta-banner h2 {
  font-family: 'Bebas Neue', 'Barlow Condensed', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400; letter-spacing: 2px; line-height: 1.0;
}
.cta-banner p {
  font-family: 'Barlow', 'Inter', sans-serif;
  font-size: 1rem; line-height: 1.8;
  max-width: 520px; margin-left: auto; margin-right: auto;
}
/* Líneas de acento top/bottom */
.cta-banner::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(-55deg, transparent, transparent 32px, rgba(255,255,255,0.016) 32px, rgba(255,255,255,0.016) 33px);
}
/* Botones CTA del catálogo */
.cta-banner .btn-wa {
  background: linear-gradient(135deg, #25d366 0%, #1aab52 100%);
  font-family: 'Barlow', 'Inter', sans-serif;
  font-weight: 700; letter-spacing: 0.5px;
  box-shadow: 0 6px 22px rgba(37,211,102,0.30);
  transition: transform 0.2s, box-shadow 0.2s;
  border-radius: 4px !important;
}
.cta-banner .btn-wa:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(37,211,102,0.45); }
.cta-banner .btn-outline {
  font-family: 'Barlow', 'Inter', sans-serif; font-weight: 700; letter-spacing: 0.5px;
  border-radius: 4px !important; transition: border-color 0.25s, color 0.25s, transform 0.2s;
}
.cta-banner .btn-outline:hover { border-color: #f5821f; color: #f5821f; transform: translateY(-3px); }

/* ── RESPONSIVE CATALOG ───────────────────────────────────────── */
@media (max-width: 1100px) {
  .products-catalog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .catalog-wrap          { grid-template-columns: 1fr; }
  .filter-sidebar        { position: static; }
  .products-catalog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  /* 2 products per row on mobile — shows full card, not cut off */
  .products-catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .catalog-toolbar       { flex-direction: column; align-items: flex-start; gap: 10px; }
  .pc-overlay            { display: none !important; }
  .pc-wa-mobile          { display: flex; }
  /* Compact card on small screens */
  .pc-image              { height: 160px; }
  .pc-body               { padding: 12px; }
  .pc-name               { font-size: 13px; }
  .pc-current            { font-size: 17px; }
  .pc-btn                { padding: 7px 12px; font-size: 11px; }
  /* Hero stats compact */
  .cat-hero-stats        { gap: 0; }
  .cat-stat              { padding-right: 16px; }
  .cat-stat-sep          { margin-right: 16px; }
  .cat-stat strong       { font-size: 1.5rem; }
}
