/* ============================================================
   CATALOG.CSS — Full Product Catalog (white, premium)
   ============================================================ */

.catalog-section {
  background: var(--white);
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border);
}

.catalog-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.catalog-header-left {}
.catalog-header-left .section-title { margin-bottom: 10px; }
.catalog-header-left p {
  font-size: var(--text-base);
  color: var(--text-soft);
  max-width: 480px;
  line-height: 1.6;
}

/* Filter tabs */
.catalog-filters {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}
.catalog-filter-btn {
  padding: 8px 18px;
  font-family: var(--font);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-soft);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--t-fast);
}
.catalog-filter-btn:hover,
.catalog-filter-btn.is-active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

/* Product catalog grid */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.catalog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--t-base), transform var(--t-base), border-color var(--t-base);
}
.catalog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--border-mid);
}

/* Image zone */
.catalog-card-img-wrap {
  height: 260px;
  overflow: hidden;
  background: var(--bg);
  position: relative;
}
.catalog-card-img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: var(--white);
  padding: 12px;
  /* No zoom on hover — product images are technical, not decorative */
}

.catalog-card-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--blue);
  color: var(--white);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}
.catalog-card-badge.badge-new { background: #0e7a3f; }
.catalog-card-badge.badge-popular { background: #b45309; }

/* Body */
.catalog-card-body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.catalog-card-category {
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}
.catalog-card-name {
  font-size: var(--text-md);
  font-weight: var(--fw-bold);
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}
.catalog-card-desc {
  font-size: var(--text-sm);
  color: var(--text-soft);
  line-height: 1.6;
  flex: 1;
  margin-bottom: var(--space-md);
}

/* Specs mini-list */
.catalog-card-specs {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: var(--space-md);
  padding: var(--space-sm);
  background: var(--bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.catalog-spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs);
  font-size: var(--text-xs);
}
.catalog-spec-key { color: var(--text-soft); }
.catalog-spec-val { font-weight: var(--fw-semibold); color: var(--text); text-align: right; }

/* Actions */
.catalog-card-actions {
  display: flex;
  gap: var(--space-xs);
  margin-top: auto;
}
.catalog-card-actions .btn {
  flex: 1;
  justify-content: center;
  padding: 10px 12px;
  font-size: var(--text-xs);
}

/* Bottom CTA */
.catalog-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.catalog-footer p {
  font-size: var(--text-sm);
  color: var(--text-soft);
}

/* ============================================================
   PRODUCT MODAL — pmodal
   Clean technical layout
   ============================================================ */

.pmodal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.pmodal[hidden] { display: none; }

.pmodal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 31, 58, 0.60);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.pmodal-container {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 820px;
  max-height: 88vh;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(11, 31, 58, 0.22);
  display: flex;
  flex-direction: column;
}

/* ── Close button ─────────────────────────────────────── */
.pmodal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 32px;
  height: 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.pmodal-close:hover {
  background: var(--border);
  border-color: var(--border-mid);
}
.pmodal-close svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-soft);
  flex-shrink: 0;
}

/* ── Inner: 2 columns desktop ────────────────────────── */
.pmodal-inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}

/* ── Image column ────────────────────────────────────── */
.pmodal-img-wrap {
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  border-right: 1px solid var(--border);
  min-height: 320px;
}

.pmodal-img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  display: block;
}

/* ── Info column ─────────────────────────────────────── */
.pmodal-body {
  padding: 32px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.pmodal-cat {
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--blue);
}

.pmodal-name {
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  color: var(--text);
  line-height: 1.2;
  margin: 0;
}

/* ── Description ─────────────────────────────────────── */
.pmodal-desc {
  font-size: var(--text-sm);
  color: var(--text-soft);
  line-height: 1.65;
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

/* ── Specs label ─────────────────────────────────────── */
.pmodal-specs-label {
  font-size: 10px;
  font-weight: var(--fw-bold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Specs list ──────────────────────────────────────── */
.pmodal-specs {
  flex: 1;
}

.pmodal-spec-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pmodal-spec-item {
  font-size: var(--text-sm);
  color: var(--text);
  line-height: 1.5;
  padding: 9px 0 9px 16px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.pmodal-spec-item:last-child {
  border-bottom: none;
}

.pmodal-spec-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue);
}

/* ── Actions ─────────────────────────────────────────── */
.pmodal-actions {
  display: flex;
  gap: var(--space-xs);
  padding-top: 4px;
  flex-wrap: wrap;
}

.pmodal-wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.pmodal-wa-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.pmodal-form-btn {
  flex: 1;
  text-align: center;
  justify-content: center;
  min-width: 0;
}