/* Category, sub-category and search listing pages. Uses tokens from site.css. */
.list-hero { background: linear-gradient(180deg, #eef3fa 0%, #fff 100%); border-bottom: 1px solid var(--line); padding: 18px 0 22px; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 4px; color: #b3bfcf; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs li[aria-current] { color: var(--ink); font-weight: 600; }
.list-hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.list-hero h1 { font-size: 32px; font-weight: 800; color: var(--ink); letter-spacing: -.3px; margin: 0 0 8px; }
.list-intro { max-width: 760px; color: var(--muted); font-size: 15.5px; line-height: 1.6; margin: 0 0 10px; }
.list-count { display: inline-block; font-size: 13px; font-weight: 700; color: var(--brand); background: #e3ecf8; border-radius: 14px; padding: 3px 12px; }
.list-hero-cta { display: flex; gap: 10px; flex-shrink: 0; }

.chip-nav { display: flex; gap: 8px; margin-top: 18px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.chip-nav a { white-space: nowrap; border: 1px solid var(--line); background: #fff; border-radius: 20px; padding: 6px 14px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.chip-nav a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }

.list-body { padding-top: 26px; padding-bottom: 50px; }
.list-tools { display: flex; justify-content: flex-end; margin-bottom: 18px; }
.list-filter { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 360px; border: 2px solid var(--line); border-radius: 10px; padding: 0 12px; margin: 0; background: #fff; }
.list-filter:focus-within { border-color: var(--brand); }
.list-filter i { color: var(--muted); }
.list-filter input { flex: 1; border: 0; outline: 0; padding: 10px 0; font-size: 15px; min-width: 0; }

/* Product cards */
.list-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.list-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.list-card[hidden] { display: none; }
.list-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.list-card-img { display: block; aspect-ratio: 1 / 1; padding: 14px; background: #fff; }
.list-card-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.list-card:hover .list-card-img img { transform: scale(1.04); }
.list-card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.list-card h3 { font-size: 14.5px; font-weight: 700; line-height: 1.4; margin: 0; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.list-card h3 a { color: var(--ink); }
.list-card h3 a:hover { color: var(--brand); text-decoration: none; }
.list-empty { text-align: center; color: var(--muted); padding: 30px 0; }
.list-empty-state { text-align: center; padding: 50px 20px; border: 2px dashed var(--line); border-radius: 14px; }
.list-empty-state i { font-size: 44px; color: #b8c6d9; }
.list-empty-state h2 { font-size: 22px; font-weight: 800; margin: 10px 0 6px; }
.list-empty-state p { color: var(--muted); }

/* Sub-category cards (category page) */
.sub-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.sub-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); transition: box-shadow .2s, transform .2s; }
.sub-card:hover { color: var(--ink); text-decoration: none; box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.sub-card-img { display: block; aspect-ratio: 4 / 3; padding: 14px; }
.sub-card-img img { width: 100%; height: 100%; object-fit: contain; }
.sub-card-body { display: block; padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.sub-card-body strong { display: block; font-size: 16px; line-height: 1.3; }
.sub-card-body small { display: block; color: var(--accent); font-weight: 700; font-size: 13px; margin-top: 4px; }
.sub-card-body small i { font-size: 11px; margin-left: 3px; transition: margin-left .2s; }
.sub-card:hover small i { margin-left: 7px; }
.ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--soft); color: #b8c6d9; font-size: 40px; border-radius: 8px; }

/* Call to action */
.list-cta { margin-top: 40px; background: var(--brand); color: #fff; border-radius: 14px; padding: 26px 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.list-cta h2 { font-size: 21px; font-weight: 800; margin: 0 0 4px; }
.list-cta p { margin: 0; color: #d6e2f3; font-size: 15px; max-width: 620px; }
.list-cta-buttons { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }

@media (max-width: 1199px) {
  .list-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sub-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .list-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .list-hero-row { flex-direction: column; align-items: flex-start; }
  .list-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 767px) {
  .list-hero { padding: 14px 0 18px; }
  .list-hero h1 { font-size: 24px; }
  .list-intro { font-size: 14.5px; }
  .list-hero-cta { width: 100%; }
  .list-hero-cta .btn { flex: 1; }
  .list-tools { justify-content: stretch; }
  .list-filter { max-width: none; }
  .list-grid, .sub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .list-card-img { padding: 10px; }
  .list-card-body { padding: 10px; gap: 8px; }
  .list-card h3 { font-size: 13.5px; }
  .list-card .btn { font-size: 12.5px; padding: .35rem .4rem; }
  .sub-card-body { padding: 10px 12px 12px; }
  .sub-card-body strong { font-size: 14.5px; }
  .list-cta { padding: 20px; text-align: left; }
  .list-cta-buttons, .list-cta-buttons .btn { width: 100%; }
}

/* Search page */
form.list-filter { padding-right: 4px; }
.list-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 30px; }
.list-pages a { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; font-weight: 700; color: var(--ink); }
.list-pages a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.list-pages a.current { background: var(--brand); border-color: var(--brand); color: #fff; }
