/* WP Seafood Price — frontend styles */

/* ── Detail wrapper — breakout full width ── */
.wsp-detail {
  font-family: inherit;
  width: 100%;
  max-width: 100% !important;
  box-sizing: border-box;
  padding: 16px 0;
}

/* ── Title ── */
.wsp-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1e293b;
}

.wsp-item-info {
  margin-bottom: 12px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #334155;
}

.wsp-item-info p {
  margin: 0;
}

/* ── Meta info row ── */
.wsp-stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.wsp-stat {
  flex: 1 1 220px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px;
  min-width: 0;
}

.wsp-stat-label {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: capitalize;
  letter-spacing: 0.04em;
  font-weight: 700;
  margin-bottom: 4px;
}

.wsp-stat-value {
  font-size: 1rem;
  color: #0f172a;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Main layout: sidebar left + content right ── */
.wsp-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: flex-start;
}

/* ── Left sidebar: product list ── */
.wsp-sidebar {
  min-width: 0;
  border-radius: 6px;
  overflow: hidden;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.wsp-spec-box {
  padding: 14px 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  margin-bottom: 20px;
}

.wsp-spec-title {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 950;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wsp-spec-rows {
  display: grid;
  gap: 10px;
}

.wsp-spec-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: baseline;
}

.wsp-spec-label {
  color: #64748b;
  font-weight: 700;
	font-size: 14px;
}

.wsp-spec-value {
  color: #0f172a;
  font-weight: 900;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
	font-size: 14px;
}

.wsp-spec-value-italic {
  font-style: italic;
}

.wsp-spec-value-code,
.wsp-spec-value-link {
  color: #2563eb;
}

.wsp-sidebar-title {
  margin: 0;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #1e40af;
  color: #fff;
  text-align: center;
}

.wsp-product-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wsp-side-table-wrap {
  width: 100%;
  overflow: auto;
}

.wsp-side-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.wsp-side-size {
  color: #64748b;
  font-weight: 700;
  white-space: nowrap;
  text-align: left;
}

.wsp-side-change {
  text-align: right;
  white-space: nowrap;
}

.wsp-side-pct {
  font-weight: 950;
}

.wsp-side-pct.is-up {
  color: #16a34a;
}

.wsp-side-pct.is-down {
  color: #ef4444;
}

.wsp-side-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  color: #64748b;
  padding: 10px 12px;
  text-align: left;
  font-weight: 800;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
  text-transform: capitalize;
}

.wsp-side-table tbody td {
  padding: 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  white-space: nowrap;
}

.wsp-side-table tbody tr:nth-child(odd) {
  background: #fff;
}

.wsp-side-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.wsp-side-table tbody tr:hover {
  background: #fff7ed;
}

.wsp-side-table tbody tr.wsp-row-link {
  cursor: pointer;
}

.wsp-side-table tbody tr.wsp-row-link:focus {
  outline: 2px solid #93c5fd;
  outline-offset: -2px;
}

.wsp-side-name a {
  color: #0f172a;
  text-decoration: none;
  font-weight: 800;
}

.wsp-side-name a:hover {
  text-decoration: underline;
}

.wsp-side-current {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wsp-side-price {
  font-weight: 900;
  color: #0f172a;
}

.wsp-side-delta {
  font-weight: 900;
  color: #ef4444;
}

.wsp-side-delta.is-up {
  color: #10b981;
}

.wsp-product-item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  text-decoration: none;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.12s;
}

.wsp-product-item a:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

.wsp-product-item.active a {
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 600;
}

.wsp-product-name {
  font-size: 0.875rem;
  flex: 1;
}

.wsp-product-price {
  font-size: 0.78rem;
  color: #2563eb;
  white-space: nowrap;
  font-weight: 600;
}

/* ── Right main content ── */
.wsp-main {
  flex: 1;
  min-width: 0;
}

/* ── Chart panel ── */
.wsp-chart-panel {
  margin-bottom: 24px;
  padding: 14px 14px 6px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}

.wsp-chart-canvas {
  position: relative;
  width: 100%;
  height: 380px;
}

.wsp-chart-panel canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* ── Chart top UI (title + tabs + summary) ── */
.wsp-chart-top {
  margin-bottom: 10px;
}

.wsp-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.wsp-chart-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
}

.wsp-chart-summary {
  font-size: 0.9rem;
  color: #94a3b8;
  white-space: nowrap;
}

.wsp-period-tabs {
  display: inline-flex;
  gap: 6px;
  background: #f1f5f9;
  padding: 6px;
  border-radius: 10px;
  flex-wrap: wrap;
}

.wsp-period-tabs button {
  border: 1px solid transparent;
  background: transparent;
  color: #64748b;
  font-weight: 400;
  font-size: 12px;
  padding: 0 8px;
  margin: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  text-transform: capitalize;
}

.wsp-period-tabs button:hover {
  background: #e2e8f0;
  color: #334155;
}

.wsp-period-tabs button.active {
  background: #fff;
  border-color: #2563eb;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.wsp-change-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  margin-top: 10px;
  border-radius: 999px;
  background: #fff1f2;
  color: #ef4444;
  font-weight: 400;
  font-size: 14px;
}

.wsp-change-pill.is-up {
  background: #ecfdf5;
  color: #10b981;
}

.wsp-change-pill small {
  font-weight: 700;
  color: rgba(0, 0, 0, 0.55);
}

/* ── Price table (full width under chart) ── */
.wsp-price-table {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  max-height: 320px;
  overflow-y: auto;
}

.wsp-price-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.wsp-price-table thead th {
  position: sticky;
  top: 0;
  background: #1e40af;
  color: #fff;
  padding: 8px 10px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.wsp-price-table tbody tr:nth-child(even) {
  background: #f1f5f9;
}

.wsp-price-table tbody tr:hover {
  background: #dbeafe;
}

.wsp-price-table tbody td {
  padding: 6px 10px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
}

/* ── Filter buttons ── */
.wsp-filter-buttons {
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wsp-filter-buttons button {
  padding: 6px 14px;
  font-size: 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
  color: #475569;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}

.wsp-filter-buttons button:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.wsp-filter-buttons button.active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
  font-weight: 600;
}

/* ── List shortcode table ── */
.wsp-list-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.wsp-list-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.wsp-list-table thead th {
  background: #1e40af;
  color: #fff;
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
}

.wsp-list-table tbody tr:nth-child(even) {
  background: #f1f5f9;
}

.wsp-list-table tbody tr:hover {
  background: #dbeafe;
}

.wsp-list-table tbody td {
  padding: 8px 12px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
}

.wsp-list-table tbody td a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.wsp-list-table tbody td a:hover {
  text-decoration: underline;
}

/* ── Pagination ── */
.wsp-pagination {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.wsp-pagination .page-numbers {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  color: #2563eb;
  text-decoration: none;
  font-size: 0.875rem;
  background: #fff;
  transition: background 0.15s;
}

.wsp-pagination .page-numbers:hover {
  background: #eff6ff;
}

.wsp-pagination .page-numbers.current {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
  font-weight: 600;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .wsp-layout {
    grid-template-columns: 1fr;
  }


  .wsp-stat {
    flex-basis: 100%;
  }

  .wsp-chart-canvas {
    height: 260px;
  }

  .wsp-chart-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .wsp-chart-summary {
    white-space: normal;
  }

  .wsp-title {
    font-size: 1.35rem;
  }

  .wsp-list-table {
    font-size: 0.8rem;
  }

  .wsp-list-table thead th,
  .wsp-list-table tbody td {
    padding: 6px 8px;
  }
}

@media (max-width: 420px) {
  .wsp-stat {
    flex-basis: 100%;
  }
}

/* ── Cards list shortcode ── */
.wsp-cards-block {
  width: 100%;
}

.wsp-cat-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.wsp-cat-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 5px;
  background: #fff;
  padding: 10px;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  position: relative;
  transition: box-shadow 0.12s ease, transform 0.12s ease, border-color 0.12s ease;
}

.wsp-cat-card.wsp-cat-up {
  background: #f0fdf4;
}

.wsp-cat-card.wsp-cat-down {
  background: #fef2f3;
}

.wsp-cat-card:hover {
  transform: translateY(-1px);
  border-color: #cbd5e1;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.wsp-cat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.wsp-cat-thumb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  flex: 0 0 auto;
}

.wsp-cat-thumb img,
.wsp-cat-thumb-ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wsp-cat-name {
  font-size: 16px;
  font-weight: bold;
  color: #0f172a;
}

.wsp-cat-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #94a3b8;
  font-weight: 800;
}

.wsp-cat-spark {
  position: absolute;
  right: 10px;
  bottom: 10px;
  pointer-events: none;
  opacity: 0.95;
}

.wsp-cat-spark-svg {
  display: block;
}

.wsp-cat-count {
  font-size: 14px;
}

.wsp-cat-up {
  color: #16a34a;
}

.wsp-cat-down {
  color: #ef4444;
}

.wsp-cat-badge {
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 14px;
  white-space: nowrap;
}

.wsp-badge-up {
  background: #dcfce7;
  color: #16a34a;
}

.wsp-badge-down {
  background: #fee2e2;
  color: #ef4444;
}

.wsp-badge-flat {
  background: #f1f5f9;
  color: #64748b;
}

.wsp-cat-up {
  font-size: 14px;
}

.wsp-cat-down {
  font-size: 14px;
}

.wsp-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.wsp-cat-tab {
  margin: 0;
  padding: 7px 20px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-weight: 500;
  font-size: 14px;
  text-transform: capitalize;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.wsp-cat-tab:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.wsp-cat-tab.is-active {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.18);
}

.wsp-cards {
  display: grid;
  gap: 14px;
}

.wsp-cards-cols-1 {
  grid-template-columns: 1fr;
}

.wsp-cards-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wsp-cards-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wsp-cards-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wsp-cards-cols-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.wsp-cards-cols-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.wsp-item-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
  position: relative;
}

.wsp-item-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.14);
}

.wsp-item-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.wsp-item-card-left {
  display: flex;
  gap: 12px;
  min-width: 0;
  align-items: center;
}

.wsp-item-card-thumb {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.08);
  flex: 0 0 auto;
}

.wsp-item-card-thumb img,
.wsp-item-card-thumb-ph {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.wsp-item-card-title {
  min-width: 0;
}

.wsp-item-card-name {
  font-size: 16px;
  font-weight: 950;
  color: #0f172a;
  line-height: 1.15;
}

.wsp-item-card-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: bold;
  white-space: nowrap;
  flex: 0 0 auto;
  line-height: 1;
  font-size: 14px;
}

.wsp-item-card-pill.is-up {
  background: #dcfce7;
  color: #16a34a;
}

.wsp-item-card-pill.is-down {
  background: #fee2e2;
  color: #ef4444;
}

.wsp-item-card-divider {
  height: 1px;
  background: rgba(15, 23, 42, 0.06);
  margin: 14px 0;
}

.wsp-item-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.wsp-item-card-price-main {
  font-size: 18px;
  font-weight: bold;
  color: #0f172a;
  line-height: 1.05;
}

.wsp-item-card-price-delta {
  font-weight: 900;
  white-space: nowrap;
  font-size: 14px;
}

.wsp-item-card-price-delta.is-up {
  color: #16a34a;
}

.wsp-item-card-price-delta.is-down {
  color: #ef4444;
}

.wsp-item-card-cta {
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: rgba(15, 23, 42, 0.55);
  padding: 8px 10px;
  font-weight: normal;
  font-size: 14px;
  background: rgba(15, 23, 42, 0.02);
}

.wsp-item-card-cta-text {
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

.wsp-cards-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.wsp-items-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
  margin-bottom: 0;
}

.wsp-items-table thead th {
  background: #f8fafc;
  color: #222;
  font-size: 14px;
  font-weight: bold;
  text-transform: capitalize;
  padding: 15px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.wsp-items-table tbody td {
  padding: 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  vertical-align: middle;
}

.wsp-items-table tbody tr:last-child td {
  border-bottom: 0;
}

.wsp-items-table tbody tr:hover {
  background: #f8fafc;
}

.wsp-items-table-thumb {
  width: 40px;
  height: 40px;
  border-radius: 5px;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.wsp-items-table-thumb img,
.wsp-items-table-thumb-ph {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.wsp-items-table-species {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.wsp-items-table-species-text {
  min-width: 0;
}

.wsp-items-table-name {
  color: #0f172a;
  text-decoration: none;
  font-weight: 900;
  display: block;
  line-height: 1.2;
}

.wsp-items-table-name:hover {
  color: #1d4ed8;
}

.wsp-items-table-size {
  white-space: nowrap;
  color: #475569;
  font-weight: 700;
}

.wsp-items-table-price {
  white-space: nowrap;
  color: #0f172a;
  font-weight: 900;
}

.wsp-items-table-change {
  white-space: nowrap;
}

.wsp-items-table-change-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  white-space: nowrap;
}

.wsp-items-table-change-pill small {
  font-size: 0.82em;
  font-weight: 800;
  opacity: 0.8;
}

.wsp-items-table-change-pill.is-up {
  background: #dcfce7;
  color: #16a34a;
}

.wsp-items-table-change-pill.is-down {
  background: #fee2e2;
  color: #ef4444;
}

.wsp-items-table-change-pill.is-flat {
  background: #f1f5f9;
  color: #64748b;
}

.wsp-items-table-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  color: #0f172a;
  text-decoration: none;
  font-weight: normal;
  white-space: nowrap;
  background: #fff;
}

.wsp-items-table thead th:last-child,
.wsp-items-table-cta-cell {
  text-align: right;
}

.wsp-items-table-cta:hover {
  border-color: #1d4ed8;
  color: #1d4ed8;
}

@media (max-width: 768px) {
  .wsp-cat-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .wsp-cat-tabs {
    gap: 8px;
  }

  .wsp-cat-tab {
    padding: 8px 14px;
    font-size: 0.9rem;
  }

  .wsp-cards {
    grid-template-columns: 1fr !important;
  }

  .wsp-cards-table-wrap {
    border-radius: 12px;
    overflow-x: hidden;
  }

  .wsp-items-table {
    min-width: 0;
    table-layout: fixed;
  }

  .wsp-items-table-thumb {
    width: 32px;
    height: 32px;
  }

  .wsp-items-table-species {
    gap: 6px;
    align-items: flex-start;
  }

  .wsp-items-table thead th {
    font-size: 0.6rem;
    padding: 8px 4px;
    letter-spacing: 0.02em;
  }

  .wsp-items-table tbody td {
    padding: 8px 4px;
    font-size: 0.74rem;
  }

  .wsp-items-table-name {
    font-size: 0.72rem;
    line-height: 1.2;
    white-space: normal;
    word-break: break-word;
  }

  .wsp-items-table-size,
  .wsp-items-table-price,
  .wsp-items-table-change {
    font-size: 0.7rem;
    white-space: normal;
  }

  .wsp-items-table-change-pill {
    padding: 4px 6px;
    font-size: 0.64rem;
  }

  .wsp-items-table-cta {
    padding: 5px 6px;
    font-size: 0.62rem;
    white-space: normal;
    text-align: center;
    line-height: 1.15;
  }

  .wsp-items-table-cta-cell {
    text-align: right;
  }
}

.wsp-tax-description {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

.wsp-tax-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin: 14px 0 18px;
  align-items: stretch;
}

.wsp-tax-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.wsp-tax-col-keys {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wsp-tax-key-box {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  padding: 14px;
  text-decoration: none;
  color: inherit;
}

.wsp-tax-key-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.wsp-tax-key-left {
  display: flex;
  gap: 12px;
  min-width: 0;
  align-items: center;
}

.wsp-tax-key-title {
  font-weight: 950;
  color: #0f172a;
  line-height: 1.15;
}

.wsp-tax-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 950;
  white-space: nowrap;
}

.wsp-tax-pill.is-up {
  background: #dcfce7;
  color: #16a34a;
}

.wsp-tax-pill.is-down {
  background: #fee2e2;
  color: #ef4444;
}

.wsp-tax-key-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
  margin-top: 12px;
}

.wsp-tax-key-price {
  font-size: 1.4rem;
  font-weight: 950;
  color: #0f172a;
  white-space: nowrap;
}

.wsp-tax-key-spark svg {
  display: block;
}

.wsp-tax-list {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  flex: 1;
}

.wsp-tax-list-head {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.wsp-tax-list-title {
  font-weight: 950;
  color: #0f172a;
}

.wsp-tax-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.wsp-tax-row:last-child {
  border-bottom: 0;
}

.wsp-tax-row-left {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.wsp-tax-row-thumb {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.08);
  flex: 0 0 auto;
}

.wsp-tax-row-thumb img,
.wsp-tax-row-thumb-ph {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.wsp-tax-row-name {
  font-weight: 900;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wsp-tax-row-right {
  text-align: right;
  flex: 0 0 auto;
}

.wsp-tax-row-price {
  font-weight: 900;
  white-space: nowrap;
}

.wsp-tax-row-pct {
  font-weight: 950;
  white-space: nowrap;
  margin-top: 2px;
}

.wsp-tax-row-pct.is-up {
  color: #16a34a;
}

.wsp-tax-row-pct.is-down {
  color: #ef4444;
}

@media (max-width: 900px) {
  .wsp-tax-grid {
    grid-template-columns: 1fr;
  }
}

.wsp-breadcrumb {
  margin-bottom: 10px;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 600;
}

.wsp-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin: 8px 0 14px;
}

.wsp-hero-left {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
}

.wsp-hero-thumb {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.08);
  flex: 0 0 auto;
}

.wsp-hero-thumb img,
.wsp-hero-thumb-ph {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.wsp-hero-title {
  min-width: 0;
}

.wsp-hero-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.wsp-hero-title-row .wsp-title {
  margin-bottom: 0;
}

.wsp-hero-right {
  text-align: right;
  flex: 0 0 auto;
}

.wsp-hero-price {
  font-size: 20px;
  line-height: 1.1;
  font-weight: 950;
  color: #ef4444;
  white-space: nowrap;
}

.wsp-hero-meta {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

.wsp-hero-delta {
  font-weight: 900;
  white-space: nowrap;
}

.wsp-hero-delta.is-up {
  color: #16a34a;
}

.wsp-hero-delta.is-down {
  color: #ef4444;
}

.wsp-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 950;
  white-space: nowrap;
}

.wsp-hero-pill.is-up {
  background: #dcfce7;
  color: #16a34a;
}

.wsp-hero-pill.is-down {
  background: #fef2f3;
  color: #ef4444;
}

.wsp-hero-updated {
  margin-top: 6px;
  color: #555;
  font-weight: 500;
  white-space: nowrap;
  font-size: 14px;
}

@media (max-width: 768px) {
  .wsp-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .wsp-hero-right {
    text-align: left;
  }

  .wsp-hero-meta {
    justify-content: flex-start;
  }

  .wsp-hero-price {
    font-size: 1.8rem;
  }
	.wsp-cat-name {
		margin-bottom:8px;
		font-weight:600;
		font-size:15px;
	}
	.wsp-cat-meta {
		font-weight:600;
		gap:1px;
	}
	.wsp-cat-count, .wsp-cat-up, .wsp-cat-down {
		font-size:12px;
		font-weight:600;
	}
	.wsp-cat-spark-svg {
        width: 64px; 
        height: auto; 
    }
}
