/* ============================================
   BÖHM Electronics - Product Listing Pages
   ============================================ */

/* --- Page Hero Banner --- */
.pl-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: #fff;
  padding: 80px 0 60px;
  text-align: center;
  margin-top: calc(var(--header-height));
}

.pl-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.pl-hero p {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
}

.pl-hero .pl-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.pl-hero .pl-stat {
  text-align: center;
}

.pl-hero .pl-stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
}

.pl-hero .pl-stat-label {
  font-size: 0.85rem;
  opacity: 0.75;
}

/* --- Toolbar --- */
.pl-toolbar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: var(--header-height);
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.pl-toolbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.pl-search {
  flex: 1;
  min-width: 240px;
  max-width: 400px;
  position: relative;
}

.pl-search input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font-main);
  transition: var(--transition);
  background: var(--bg-light);
}

.pl-search input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(10,61,124,0.1);
}

.pl-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
}

.pl-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.pl-filter select {
  padding: 9px 32px 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-family: var(--font-main);
  background: var(--bg-light);
  color: var(--text-dark);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a7a8a' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: var(--transition);
}

.pl-filter select:focus {
  outline: none;
  border-color: var(--primary);
}

.pl-result-count {
  font-size: 13px;
  color: var(--text-light);
  white-space: nowrap;
}

.pl-result-count strong {
  color: var(--primary);
  font-weight: 600;
}

/* --- Tabs --- */
.pl-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 4px;
}

.pl-tab {
  padding: 8px 20px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-main);
  color: var(--text-medium);
  cursor: pointer;
  border-radius: 6px;
  transition: var(--transition);
  white-space: nowrap;
}

.pl-tab:hover {
  color: var(--primary);
}

.pl-tab.active {
  background: var(--primary);
  color: #fff;
}

/* --- Table --- */
.pl-table-wrap {
  overflow-x: auto;
  margin: 0 -24px;
  padding: 0 24px;
}

.pl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  white-space: nowrap;
}

.pl-table thead th {
  background: var(--bg-light);
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--text-medium);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: var(--transition);
}

.pl-table thead th:hover {
  color: var(--primary);
  background: var(--bg-section);
}

.pl-table thead th .sort-arrow {
  display: inline-block;
  margin-left: 4px;
  opacity: 0.3;
  font-size: 10px;
}

.pl-table thead th.sorted .sort-arrow {
  opacity: 1;
  color: var(--primary);
}

.pl-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.pl-table tbody tr:hover {
  background: rgba(10,61,124,0.03);
}

.pl-table tbody td {
  padding: 11px 14px;
  color: var(--text-dark);
  vertical-align: middle;
}

.pl-table .part-number {
  font-weight: 600;
  color: var(--primary);
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 12.5px;
}

.pl-table .brand-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-murata { background: #e3f0ff; color: #1565c0; }
.brand-fh { background: #e8f5e9; color: #2e7d32; }
.brand-yageo { background: #fff3e0; color: #e65100; }
.brand-samsung { background: #e8eaf6; color: #283593; }

.pl-table .stock-tag {
  font-size: 12px;
  color: #2e7d32;
  font-weight: 500;
}

.pl-table .inquiry-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.pl-table .polarity-n { color: var(--primary); font-weight: 600; }
.pl-table .polarity-p { color: #c62828; font-weight: 600; }

/* --- Pagination --- */
.pl-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 32px 0 48px;
  flex-wrap: wrap;
}

.pl-page-btn {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--bg-white);
  border-radius: var(--radius);
  font-size: 13px;
  font-family: var(--font-main);
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-medium);
  padding: 0 8px;
}

.pl-page-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
}

.pl-page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}

.pl-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pl-page-info {
  font-size: 13px;
  color: var(--text-light);
  margin: 0 12px;
}

/* --- No Results --- */
.pl-no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

.pl-no-results svg {
  margin-bottom: 16px;
  opacity: 0.3;
}

.pl-no-results h3 {
  font-size: 1.1rem;
  color: var(--text-medium);
  margin-bottom: 8px;
}

.pl-no-results p {
  font-size: 14px;
}

/* --- Section Layout --- */
.pl-section {
  padding: 32px 0 0;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .pl-hero {
    padding: 60px 0 40px;
  }

  .pl-hero h1 {
    font-size: 1.6rem;
  }

  .pl-hero .pl-stats {
    gap: 20px;
  }

  .pl-toolbar .container {
    flex-direction: column;
    align-items: stretch;
  }

  .pl-search {
    max-width: none;
  }

  .pl-filter {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .pl-table {
    font-size: 12px;
  }

  .pl-table thead th,
  .pl-table tbody td {
    padding: 8px 10px;
  }
}

@media (max-width: 480px) {
  .pl-hero h1 {
    font-size: 1.3rem;
  }

  .pl-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }
}
