﻿/* ===== Products list (PLP) ===== */
.plp {
  --plp-navy: #15306b;
  --plp-ink: #0f172a;
  --plp-muted: #64748b;
  --plp-line: #e6e9f0;
  --plp-soft: #f4f7fc;
  --plp-r: 10px;
  --plp-r-sm: 6px;
  --plp-r-lg: 12px;
  padding-bottom: 48px;
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(37, 99, 235, .06), transparent 55%),
    #f8fafc;
}
.plp .container { max-width: var(--shop-wrap); }
.plp-crumb { padding: 16px 0 14px; }
.plp-crumb .sep { opacity: .4; }

.plp-seo {
  margin-top: 36px;
  --ink: var(--plp-ink);
  --ink-2: #334155;
  --navy: var(--plp-navy);
  --primary: #2563eb;
  --primary-700: #1d4ed8;
  --line: var(--plp-line);
  --shadow-sm: 0 8px 22px rgba(15, 48, 107, .05);
}
.plp-seo .seo-block { padding-top: 0; }
.plp-seo .seo-more {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  padding: 18px 20px 14px;
}
.plp-seo .seo-more-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.015em;
  margin: 0 0 12px;
}
.plp-seo .seo-more-clip {
  position: relative;
  max-height: 160px;
  overflow: hidden;
  transition: max-height .45s ease;
}
.plp-seo .seo-more-clip::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 64px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 85%);
  pointer-events: none;
  transition: opacity .25s;
}
.plp-seo .seo-more.is-open .seo-more-clip::after { opacity: 0; }
.plp-seo .seo-more-btn[hidden] { display: none !important; }
.plp-seo .seo-more-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
}
.plp-seo .seo-more-body h2 {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  margin: 20px 0 8px;
  letter-spacing: -.015em;
}
.plp-seo .seo-more-body h2:first-child { margin-top: 0; }
.plp-seo .seo-more-body p { margin: 0 0 12px; }
.plp-seo .seo-more-body a { color: var(--primary); font-weight: 700; }
.plp-seo .seo-more-body a:hover { color: var(--primary-700); }
.plp-seo .seo-more-body strong { color: var(--ink); font-weight: 700; }
.plp-seo .seo-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px auto 2px;
  padding: 8px 4px;
  width: 100%;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--primary);
  font-size: 13.5px;
  font-weight: 800;
  font-family: inherit;
}
.plp-seo .seo-more-btn svg {
  width: 16px;
  height: 16px;
  transition: transform .2s;
}
.plp-seo .seo-more-btn:hover { color: var(--primary-700); }
.plp-seo .seo-more.is-open .seo-more-btn svg { transform: rotate(180deg); }

.list-page {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

/* Filters */
.filters {
  background: #fff;
  border: 1px solid rgba(21, 48, 107, .08);
  border-radius: var(--plp-r-lg);
  overflow: hidden;
  position: sticky;
  top: 72px;
  box-shadow: 0 8px 22px rgba(15, 48, 107, .04);
}
.filters-head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--plp-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, #f8fafc, #fff);
}
.filters-head h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.filters-head h3 svg { width: 14px; height: 14px; color: #2563eb; }
.filters-head .clear {
  font-size: 12px;
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
}
.filters-head .clear:hover { text-decoration: underline; }
.filter-group { padding: 12px 14px; border-bottom: 1px solid #eef2f7; }
.filter-group:last-child { border-bottom: 0; }
.filter-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--plp-ink);
  margin-bottom: 10px;
  letter-spacing: .01em;
}

.cat-list { display: flex; flex-direction: column; gap: 2px; }
.cat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--plp-r-sm);
  font-size: 12.5px;
  font-weight: 650;
  color: #334155;
  text-decoration: none;
  transition: background .12s ease, color .12s ease;
}
.cat-row:hover { background: var(--plp-soft); color: var(--plp-navy); }
.cat-row.is-on {
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 800;
}
.cat-row .count,
.check-row .count {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  background: #f1f5f9;
  padding: 1px 7px;
  border-radius: 999px;
}
.cat-row.is-on .count { background: #dbeafe; color: #1d4ed8; }

.check-list { display: flex; flex-direction: column; gap: 4px; }
.check-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #334155;
  cursor: pointer;
  padding: 6px 4px;
  border-radius: var(--plp-r-sm);
}
.check-row:hover { background: #f8fafc; }
.check-row.is-on { color: #1d4ed8; font-weight: 700; }
.check-row .box {
  width: 16px; height: 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 4px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.check-row input { position: absolute; opacity: 0; pointer-events: none; }
.check-row input:checked + .box {
  background: #2563eb;
  border-color: #2563eb;
}
.check-row input:checked + .box::after {
  content: "";
  width: 8px; height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}
.check-row .lbl { flex: 1; min-width: 0; }
.filter-reset {
  display: inline-block;
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
}
.filter-reset:hover { text-decoration: underline; }

.range {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 6px;
  align-items: center;
}
.range input {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid var(--plp-line);
  border-radius: var(--plp-r-sm);
  padding: 8px 10px;
  font: inherit;
  font-size: 12.5px;
}
.range input:focus { outline: none; border-color: #2563eb; }
.range-sep { color: #94a3b8; font-weight: 700; }
.filter-apply {
  margin-top: 10px;
  width: 100%;
  border: 0;
  border-radius: var(--plp-r-sm);
  background: var(--plp-navy);
  color: #fff;
  font: inherit;
  font-size: 12.5px;
  font-weight: 750;
  padding: 9px 12px;
  cursor: pointer;
}
.filter-apply:hover { filter: brightness(1.08); }

/* Main */
.plp-main { min-width: 0; }
.list-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 14px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid rgba(21, 48, 107, .08);
  border-radius: var(--plp-r);
}
.list-count { font-size: 13px; color: var(--plp-muted); }
.list-count strong { color: var(--plp-ink); font-weight: 800; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
}
.chip:hover { background: #dbeafe; }
.list-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.filter-toggle {
  display: none;
  border: 1.5px solid var(--plp-line);
  background: #fff;
  border-radius: var(--plp-r-sm);
  padding: 7px 12px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.sort-select {
  border: 1.5px solid var(--plp-line);
  border-radius: var(--plp-r-sm);
  padding: 7px 28px 7px 10px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 650;
  background: #fff;
  color: var(--plp-ink);
  cursor: pointer;
}
.plp-search-note {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--plp-muted);
}

/* Product grid — edge-to-edge images */
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.pcard {
  background: #fff;
  border: 1px solid rgba(21, 48, 107, .08);
  border-radius: var(--plp-r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.pcard:hover {
  border-color: #93c5fd;
  box-shadow: 0 12px 28px rgba(15, 48, 107, .08);
  transform: translateY(-2px);
}
.pcard-img {
  aspect-ratio: 1;
  background: #eef2f7;
  position: relative;
  overflow: hidden;
  padding: 0;
}
.pcard-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pcard-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  opacity: .7;
}
.pcard-ph svg { width: 36px; height: 36px; }
.pcard-badges {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 1;
}
.pcard-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f59e0b;
  color: #fff;
}
.pcard-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.pcard-cat {
  font-size: 11px;
  color: var(--plp-muted);
  font-weight: 650;
}
.pcard-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--plp-ink);
  line-height: 1.3;
  letter-spacing: -.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.pcard-specs span {
  font-size: 10.5px;
  color: var(--plp-muted);
  background: var(--plp-soft);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.pcard-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #eef2f7;
  gap: 8px;
}
.pcard-price small {
  display: block;
  font-size: 10px;
  color: var(--plp-muted);
  font-weight: 650;
}
.pcard-price strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--plp-navy);
  letter-spacing: -.02em;
}
.pcard-cta {
  background: #eff6ff;
  color: #1d4ed8;
  padding: 6px 10px;
  border-radius: var(--plp-r-sm);
  font-size: 11.5px;
  font-weight: 750;
  white-space: nowrap;
}
.pcard:hover .pcard-cta { background: #2563eb; color: #fff; }

.plp-empty {
  padding: 40px 20px;
  text-align: center;
  background: #fff;
  border: 1px dashed var(--plp-line);
  border-radius: var(--plp-r-lg);
}
.plp-empty p { margin: 0 0 10px; color: var(--plp-muted); }
.plp-empty a { color: #2563eb; font-weight: 750; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .list-page { grid-template-columns: 1fr; }
  .filters {
    position: static;
    display: none;
  }
  .filters.is-open { display: block; }
  .filter-toggle { display: inline-flex; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
}
