/* ============================================================
   WeBakeAtHome — workshop.css
   Industrial workshop homepage: dense, data-first, clean.
   ============================================================ */

/* ── Category Bar ─────────────────────────────────────────── */
.cat-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 64px;
  z-index: 90;
}
.cat-bar__scroll {
  display: flex;
  overflow-x: auto;
  gap: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cat-bar__scroll::-webkit-scrollbar { display: none; }

.cat-bar__item {
  flex-shrink: 0;
  display: inline-block;
  padding: 0.65rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color var(--transition), border-color var(--transition);
}
.cat-bar__item:hover {
  color: var(--color-text);
  border-bottom-color: var(--color-border);
}
.cat-bar__item--active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* ── Workshop Hero ────────────────────────────────────────── */
.workshop-hero {
  background: var(--color-bg);
  border-bottom: 2px solid var(--color-border);
  padding: var(--space-lg) 0 0;
}
.workshop-hero__main {
  max-width: 840px;
  padding-bottom: var(--space-lg);
}
.workshop-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}
.workshop-hero__title {
  font-family: var(--font-sans);
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}
.workshop-hero__sub {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}
.workshop-hero__body {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-md);
  max-width: 600px;
}
/* Hero search — full width of main column */
.home-search__form--hero {
  max-width: 100%;
  margin-bottom: 0;
}
.workshop-hero__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

/* Bottom bar — trust + quick links */
.hero-bottom-bar {
  border-top: 1px solid var(--color-border);
  padding: var(--space-md) 0;
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
}
.hero-trust-row {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-lg);
}
.hero-trust-row li {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.hero-trust-row li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-winner);
  flex-shrink: 0;
}
.hero-quick-links {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-left: auto;
}
.hero-quick-links__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.hero-quick-links a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  padding: 2px 8px;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  white-space: nowrap;
  transition: color var(--transition), border-color var(--transition);
}
.hero-quick-links a:hover { color: var(--color-primary); border-color: var(--color-primary); }

/* Kill unused sidebar styles */
.workshop-hero__grid,
.workshop-hero__aside,
.workshop-stats,
.ws-stat,
.ws-quick-links,
.ws-quick-links__label { display: none; }

/* ── Workshop Section wrapper ─────────────────────────────── */
.workshop-section {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--color-border);
}
.workshop-section--alt { background: var(--color-bg-alt); }

.ws-label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  border-left: 2px solid var(--color-primary);
  padding-left: 0.5rem;
  margin-bottom: var(--space-xs);
}
.ws-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}
.ws-section-head h2 { margin-bottom: 0; }
.ws-section-head__sub { color: var(--color-text-muted); font-size: 0.9rem; margin: 0; align-self: center; }

/* ── Rankings Table ───────────────────────────────────────── */
.rankings-table {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
}
.rankings-table__header {
  display: grid;
  grid-template-columns: 52px 1fr 120px 110px 140px 200px;
  gap: 0;
  padding: 0.6rem var(--space-xl);
  background: var(--color-bg-alt);
  border-bottom: 2px solid var(--color-border);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  align-items: center;
}
.rankings-row {
  display: grid;
  grid-template-columns: 52px 1fr 120px 110px 140px 200px;
  gap: 0;
  padding: var(--space-md) var(--space-xl);
  border-bottom: 1px solid var(--color-border);
  border-left: 3px solid transparent;
  align-items: center;
  transition: background-color var(--transition);
}
.rankings-row:last-child { border-bottom: none; }
.rankings-row:hover { background: var(--color-bg-alt); }
.rankings-row[data-href]:hover { background: var(--color-bg-alt); box-shadow: inset 3px 0 0 var(--color-primary); }

.rankings-row--winner {
  background: var(--color-winner-bg);
  border-left-color: var(--color-winner);
}
.rankings-row--runner { border-left-color: var(--color-runner-up); }
.rankings-row--value  { border-left-color: var(--color-primary); }

.rankings-row__rank {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-border);
  line-height: 1;
}
.rankings-row--winner .rankings-row__rank { color: var(--color-winner); }
.rankings-row--runner .rankings-row__rank { color: var(--color-runner-up); }
.rankings-row--value  .rankings-row__rank { color: var(--color-primary); }

.rankings-row__product { min-width: 0; }
.rankings-row__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rankings-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 3px;
}
.rankings-badge--winner { background: var(--color-winner); color: #fff; }
.rankings-badge--runner { background: var(--color-runner-up); color: #fff; }
.rankings-badge--value  { background: var(--color-primary); color: #fff; }
.rankings-badge--alt    { background: var(--color-premium-bg); color: var(--color-premium); }

.rankings-row__spec {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}
.rankings-row__actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
  flex-shrink: 0;
}
.rankings-empty {
  padding: var(--space-xl) var(--space-xl);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* ── Reviews Table ───────────────────────────────────────── */
.reviews-tbl-wrap {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  overflow-x: auto;
}
.reviews-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 540px;
}
.reviews-tbl thead th {
  background: var(--color-bg-alt);
  border-bottom: 2px solid var(--color-border);
  padding: 0.6rem var(--space-lg);
  text-align: left;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.reviews-tbl tbody td {
  padding: 0.85rem var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}
.reviews-tbl tbody tr:last-child td { border-bottom: none; }
.reviews-tbl tbody tr:hover { background: var(--color-bg-alt); }
.reviews-tbl__num {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-border);
  width: 44px;
}
.reviews-tbl__name a {
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
}
.reviews-tbl__name a:hover { color: var(--color-primary); }
.star-row { display: inline-flex; gap: 1px; }
.star-row .star { font-size: 0.85rem; color: var(--color-border); }
.star-row .star--filled { color: var(--color-star); }
.reviews-tbl__price { color: var(--color-text-muted); white-space: nowrap; }
.reviews-tbl__action { white-space: nowrap; }
.tbl-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}
.tbl-link:hover { text-decoration: underline; }

/* ── Guide list ──────────────────────────────────────────── */
.guide-list {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
}
.guide-list__item {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-md) var(--space-xl);
  text-decoration: none;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  transition: background-color var(--transition);
}
.guide-list__item:last-child { border-bottom: none; }
.guide-list__item:hover { background: var(--color-bg-alt); }
.guide-list__cat {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
}
.guide-list__title { font-size: 0.9rem; font-weight: 600; }
.guide-list__arrow { color: var(--color-text-muted); font-size: 0.9rem; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .rankings-table__header,
  .rankings-row {
    grid-template-columns: 44px 1fr 100px 90px 160px;
  }
  /* Hide capacity column on smaller screens */
  .rankings-table__header span:nth-child(5),
  .rankings-row .rankings-row__spec:nth-of-type(3) { display: none; }
}

@media (max-width: 768px) {
  .hero-bottom-bar { flex-direction: column; align-items: flex-start; gap: var(--space-md); }
  .hero-quick-links { margin-left: 0; }
  .rankings-table__header { display: none; }
  .rankings-row {
    grid-template-columns: 44px 1fr auto;
    grid-template-rows: auto auto;
    padding: var(--space-md) var(--space-lg);
    row-gap: var(--space-xs);
  }
  .rankings-row__spec { display: none; }
  .rankings-row__rank { grid-row: 1 / 3; }
  .rankings-row__actions { grid-column: 3; grid-row: 1 / 3; }
  .ws-section-head { flex-direction: column; gap: var(--space-sm); }
  .cat-bar { top: 64px; }
  .guide-list__item { grid-template-columns: 100px 1fr auto; }
}

@media (max-width: 480px) {
  .workshop-stats { grid-template-columns: 1fr 1fr; }
  .workshop-hero__links { flex-direction: column; align-items: flex-start; }
  .rankings-row__actions { flex-direction: column; }
}

/* ── Trust list + byline (replaces stats grid) ────────────── */
.ws-trust-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-xl);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
}
.ws-trust-list li {
  padding: 0.6rem var(--space-lg);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.ws-trust-list li:last-child { border-bottom: none; }
.ws-trust-list li::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-winner);
  flex-shrink: 0;
}

.ws-byline {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  border-left: 2px solid var(--color-primary);
  padding-left: var(--space-md);
  margin-bottom: var(--space-xl);
  font-style: italic;
}
