/*
 * Karta koloru katalogowego.
 * Ujednolica hero, karty treści, tabelę i panel boczny z kartami klocków,
 * zestawów i minifigurek. Wszystkie selektory są ograniczone do color-v90-page.
 */
.color-v90-page,
.color-v90-page * {
  box-sizing: border-box;
}

.color-v90-page {
  width: 100%;
  max-width: 1350px;
  min-width: 0;
  margin: 0 auto 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.color-v90-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: center;
  padding: 24px;
  border: 1px solid #cbdcf1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 35, 70, .06);
  overflow: hidden;
}

.color-v90-hero-main,
.color-v90-hero-side,
.color-v90-main,
.color-v90-sidebar {
  min-width: 0;
}

.color-v90-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid #bcd4f4;
  border-radius: 999px;
  background: #f4f8ff;
  color: #1461d2;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.color-v90-hero-main h1 {
  margin: 12px 0 8px;
  color: #082452;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.color-v90-alt-name {
  margin: -1px 0 10px;
  color: #526b89;
  font-size: 17px;
  font-weight: 800;
}

.color-v90-hero-main p {
  max-width: 760px;
  margin: 0;
  color: #526b89;
  font-size: 15px;
  line-height: 1.6;
}

.color-v90-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.color-v90-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #d5e3f4;
  border-radius: 999px;
  background: #f8fbff;
  color: #0a2856;
  font-size: 13px;
  font-weight: 800;
}

.color-v90-hero-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.color-v90-swatch-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 180px;
  padding: 18px;
  border: 1px solid #dbe7f5;
  border-radius: 16px;
  background: #f8fbff;
}

.color-v90-swatch {
  flex: 0 0 auto;
  width: 132px;
  height: 132px;
  border: 1px solid rgba(15, 23, 42, .15);
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 22px rgba(15, 23, 42, .1);
}

.color-v90-swatch.is-light,
.color-v90-summary-swatch-box.is-light {
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .08);
}

.color-v90-swatch-caption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.color-v90-swatch-caption strong {
  color: #082452;
  font-size: 18px;
}

.color-v90-swatch-caption span {
  color: #60758f;
  font-size: 13px;
}

.color-v90-hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.color-v90-page .color-v90-hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #bcd4f4;
  border-radius: 10px;
  background: #fff;
  color: #145bd7;
  box-shadow: none;
  text-align: center;
  line-height: 1.25;
}

.color-v90-page .color-v90-hero-button:hover {
  border-color: #85afe9;
  background: #f3f7ff;
}

.color-v90-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 330px);
  gap: 18px;
  align-items: start;
}

.color-v90-main,
.color-v90-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.color-v90-sidebar {
  position: sticky;
  top: 18px;
}

.color-v90-overview,
.color-v90-sidebar-card,
.color-v90-table-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid #cbdcf1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 35, 70, .06);
}

.color-v90-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.color-v90-section-head.compact {
  margin-bottom: 12px;
}

.color-v90-section-head h2 {
  margin: 0;
  color: #082452;
  font-size: 24px;
  line-height: 1.2;
}

.color-v90-section-head p {
  margin: 6px 0 0;
  color: #60758f;
  line-height: 1.5;
}

.color-v90-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.color-v90-stat,
.color-v90-detail {
  min-width: 0;
  padding: 14px;
  border: 1px solid #dbe7f5;
  border-radius: 14px;
  background: #f8fbff;
}

.color-v90-stat span,
.color-v90-detail > span,
.color-v90-summary-row span {
  display: block;
  margin-bottom: 7px;
  color: #60758f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.color-v90-stat strong {
  display: block;
  color: #082452;
  font-size: 20px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.color-v90-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.color-v90-detail {
  background: #fff;
}

.color-v90-detail strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #082452;
  font-size: 16px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.color-v90-mini {
  display: inline-block;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 1px solid #cbd8e9;
  border-radius: 5px;
}

.color-v90-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #c7dcf5;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 900;
  white-space: nowrap;
}

.color-v90-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #c9d7e8;
  border-radius: 14px;
  background: #fff;
}

.color-v90-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.color-v90-table .color-v90-col-photo { width: 132px; }
.color-v90-table .color-v90-col-number { width: 112px; }
.color-v90-table .color-v90-col-name { width: auto; }
.color-v90-table .color-v90-col-category { width: 180px; }
.color-v90-table .color-v90-col-manufacturer { width: 118px; }
.color-v90-table th {
  padding: 13px 11px;
  border-bottom: 1px solid #c9d7e8;
  background: #e6eef7;
  color: #003b7a;
  font-weight: 900;
  text-align: left;
  white-space: nowrap;
}
.color-v90-table td { padding: 12px 11px; border-bottom: 1px solid #dbe5f0; vertical-align: middle; }
.color-v90-table tbody tr:hover { background: #f8fbff; }
.color-v90-table tbody tr:last-child td { border-bottom: 0; }
.color-v90-table .thumb-cell { width: 132px; text-align: center; }
.color-v90-table .thumb-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #dbe8f6;
  border-radius: 14px;
  background: #f8fbff;
}
.color-v90-table .thumb-link img,
.color-v90-table .set-v42-thumb {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 88px !important;
  max-height: 88px !important;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
}
.color-v90-number-cell { font-variant-numeric: tabular-nums; }
.color-v90-name-cell,
.color-v90-category-cell { line-height: 1.35; overflow-wrap: anywhere; }
.color-v90-manufacturer-cell { color: #0a2856; font-weight: 800; white-space: nowrap; }
.color-v90-name-link,
.color-v90-category-link { color: #0059b3; font-weight: 800; text-decoration: none; }
.color-v90-name-link:hover,
.color-v90-category-link:hover { text-decoration: underline; }

.color-v90-summary-swatch {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
  padding: 12px 0 14px;
  border-bottom: 1px solid #e1e9f3;
}
.color-v90-summary-swatch-box {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(15, 23, 42, .12);
  border-radius: 14px;
}
.color-v90-summary-swatch-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.color-v90-summary-swatch-copy strong { color: #082452; font-size: 18px; line-height: 1.25; overflow-wrap: anywhere; }
.color-v90-summary-swatch-copy span { color: #60758f; font-weight: 700; }
.color-v90-summary-list { display: flex; flex-direction: column; gap: 10px; }
.color-v90-summary-row { display: flex; flex-direction: column; gap: 4px; padding-top: 10px; border-top: 1px solid #e1e9f3; }
.color-v90-summary-row:first-child { padding-top: 0; border-top: 0; }
.color-v90-summary-row span { margin-bottom: 0; }
.color-v90-summary-row strong { color: #082452; font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }

.color-v90-action-list { display: flex; flex-direction: column; gap: 8px; }
.color-v90-action-tile {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid #dbe8f6;
  border-radius: 14px;
  background: #f8fbff;
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.color-v90-action-tile strong { color: #082452; font-size: 16px; }
.color-v90-action-tile span { color: #60758f; font-size: 13px; line-height: 1.45; }
.color-v90-action-tile:hover { transform: translateY(-1px); border-color: #a9c8ee; background: #f2f7ff; }
.color-v90-action-tile.admin { border-color: #f2c178; background: #fff8ed; }

@media (max-width: 1100px) {
  .color-v90-layout { grid-template-columns: 1fr; }
  .color-v90-sidebar { position: static; }
  .color-v90-sidebar-card { width: 100%; }
}

@media (max-width: 820px) {
  .color-v90-hero { grid-template-columns: 1fr; }
  .color-v90-hero-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 280px); }
  .color-v90-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .color-v90-details { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .color-v90-page { gap: 14px; margin-bottom: 24px; }
  .color-v90-hero,
  .color-v90-overview,
  .color-v90-sidebar-card,
  .color-v90-table-card { padding: 16px; border-radius: 16px; }
  .color-v90-hero-side { display: flex; }
  .color-v90-swatch-wrap { min-height: 156px; }
  .color-v90-swatch { width: 112px; height: 112px; border-radius: 18px; }
  .color-v90-section-head { flex-direction: column; }
  .color-v90-pill { align-self: flex-start; }
  .color-v90-hero-actions { grid-template-columns: 1fr; }
  .color-v90-table-scroll { overflow: visible; border: 0; background: transparent; }
  .color-v90-table { min-width: 0; border-spacing: 0 10px; }
  .color-v90-table colgroup,
  .color-v90-table thead { display: none; }
  .color-v90-table,
  .color-v90-table tbody,
  .color-v90-table tr,
  .color-v90-table td { display: block; width: 100%; }
  .color-v90-table tr { overflow: hidden; border: 1px solid #c9d7e8; border-radius: 14px; background: #fff; }
  .color-v90-table td { padding: 11px 13px; border-bottom: 1px solid #e5edf6; }
  .color-v90-table td:last-child { border-bottom: 0; }
  .color-v90-table .thumb-cell { width: 100%; padding-top: 15px; }
  .color-v90-table .thumb-link { width: 140px; height: 116px; }
  .color-v90-table .thumb-link img,
  .color-v90-table .set-v42-thumb { max-width: 120px !important; max-height: 98px !important; }
}

@media (max-width: 480px) {
  .color-v90-stats { grid-template-columns: 1fr; }
  .color-v90-swatch-wrap { flex-direction: column; text-align: center; }
}
