/**
 * Tornado — Dealer Price List
 * Path: assets/css/pricing-table.css
 * Version: V25.12.24.1-seo1
 */

/* ======================================================================
 * SEO helpers (H1 hidden + short intro)
 * ====================================================================== */
.tnd-sr-only{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  padding:0!important;
  margin:-1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
  border:0!important;
}

.tnd-seo-intro{
  margin: 0 0 1rem;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.5;
  max-width: 88ch;
}

/* ====================================================================== */

.tnd-pricing {
  max-width: 1200px;
  margin: 0 auto 4rem;
  padding: 1.5rem 1rem 3rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

.tnd-pricing__heading {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.tnd-pricing__section {
  margin-bottom: 3rem;
}

.tnd-pricing__notice,
.tnd-pricing--restricted p,
.tnd-pricing--error p {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: #fff8e1;
  border: 1px solid #ffe0a3;
}

/* notice “limited” (public view) — fica mais consistente */
.tnd-pricing__notice--limited{
  border-radius: 12px;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #111827;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.tnd-pricing__welcome {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #f6f7fb;
  border: 1px solid #e1e4ea;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  margin-bottom: 1rem;
}

.tnd-pricing__welcome p {
  margin: 0.15rem 0;
}

/* ---------- Actions / Download ---------- */

.tnd-pricing-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
  flex-wrap: wrap;
}

.tnd-pricing-actions .tnd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #c9ced6;
  background: #ffffff;
  color: #111827;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.tnd-pricing-actions .tnd-btn:hover {
  background: #f6f7fb;
}

.tnd-pricing-actions .tnd-btn.is-disabled {
  opacity: 0.5;
  pointer-events: none;
  box-shadow: none;
}

/* ---------- Filter / toolbar ---------- */

.tnd-pricing__toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tnd-pricing__filter {
  position: relative;
}

.tnd-pricing__filter input {
  min-width: 220px;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  border: 1px solid #c9ced6;
  font-size: 13px;
}

.tnd-pricing__no-results {
  display: none;
  margin-top: 0.75rem;
  font-size: 13px;
  color: #666;
}

/* ======================================================================
 * 1) Models × Options — Matrix
 * ====================================================================== */

.tnd-pricing-matrix-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  background: #ffffff;
}

/* arredondar cantos da tabela dentro do wrapper */
.tnd-pricing-matrix {
  border-collapse: collapse;
  min-width: 680px;
  width: 100%;
  background: #ffffff;
  border: 1px solid #e1e4ea;
  table-layout: fixed;
}

.tnd-pricing-matrix th,
.tnd-pricing-matrix td {
  padding: 0.5rem 0.5rem;
  border-bottom: 1px solid #edf0f4;
  text-align: right;
  white-space: nowrap;
}

.tnd-pricing-matrix thead th {
  background: #f6f7fb;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  position: sticky;
  top: 0;
  z-index: 3;
  border-bottom: 1px solid #e1e4ea;
}

/* Coluna Boat model */

.tnd-pricing-matrix__col-model,
.tnd-pricing-matrix__model {
  text-align: left;
  background: #f9fafc;
  font-weight: 600;
  min-width: 220px;
}

/* Sticky primeira coluna em scroll horizontal */
.tnd-pricing-matrix__col-model,
.tnd-pricing-matrix__model {
  position: sticky;
  left: 0;
  z-index: 4; /* acima das células normais */
}

/* Canto superior esquerdo (header + primeira coluna) */
.tnd-pricing-matrix thead .tnd-pricing-matrix__col-model {
  z-index: 6;
}

/* Zebra só na coluna sticky */
.tnd-pricing-matrix tbody tr:nth-child(odd) .tnd-pricing-matrix__model {
  background: #f3f5f9;
}
.tnd-pricing-matrix tbody tr:nth-child(even) .tnd-pricing-matrix__model {
  background: #f9fafc;
}

/* Coluna Base price */

.tnd-pricing-matrix__col-model-price {
  min-width: 120px;
}

.tnd-pricing-matrix__cell--model-price {
  font-size: 13px;
}

.tnd-pricing-matrix__price--model {
  font-weight: 600;
}

/* model length */
.tnd-pricing-matrix__model-length {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 11px;
  color: #7b8190;
  font-weight: 600;
  text-transform: none;
}

/* Option headers */

.tnd-pricing-matrix__col-option {
  min-width: 170px;
}

.tnd-pricing-matrix__option-label {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.tnd-pricing-matrix__option-thumb {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  overflow: hidden;
  background: #e7eaf1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.1rem;
}

.tnd-pricing-matrix__option-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tnd-pricing-matrix__option-code {
  font-size: 11px;
  color: #7b8190;
  text-transform: uppercase;
}

.tnd-pricing-matrix__option-name {
  font-size: 12px;
  color: #24262c;
  text-align: center;
  line-height: 1.15;
}

/* Células */

.tnd-pricing-matrix__cell {
  font-size: 13px;
  transition: background-color 0.12s ease-out;
}

.tnd-pricing-matrix__cell.is-available {
  background-color: #ffffff;
}

.tnd-pricing-matrix__cell.is-not-available {
  background-color: #fafbfc;
}

.tnd-pricing-matrix__cell.is-available:hover {
  background-color: #f0f7ff;
}

.tnd-pricing-matrix__price {
  display: inline-block;
  min-width: 3.5ch;
  font-variant-numeric: tabular-nums;
}

.tnd-pricing-matrix__price--ask {
  font-size: 11px;
  color: #888ea0;
  padding: 0.15rem 0.45rem;
  border: 1px solid #e1e4ea;
  border-radius: 999px;
  background: #ffffff;
}

.tnd-pricing-matrix__price--na {
  color: #c3c7d0;
}

/* ======================================================================
 * 2) Parts by Type — cards grid (catálogo)
 * ====================================================================== */

.tnd-pricing__section--parts {
  margin-top: 3rem;
}

/* Wrapper de cada grupo (Consoles, Fuel Tanks, ...) */
.tnd-pricing-part-type {
  margin-bottom: 2.5rem;
}

.tnd-pricing-part-type__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #e1e4ea;
}

.tnd-pricing-part-type__title {
  font-size: 1.05rem;
  margin: 0;
  font-weight: 600;
}

.tnd-pricing-part-type__count {
  font-size: 11px;
  color: #7b8190;
  text-transform: uppercase;
}

/* Lista de cards (sempre 1 coluna) */

.tnd-pricing-part-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}

/* Card da part */

.tnd-part-card {
  border-radius: 12px;
  border: 1px solid #e1e4ea;
  background: #ffffff;
  padding: 0.6rem 0.8rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.tnd-part-card__thumb {
  flex: 0 0 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f4f8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tnd-part-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* tamanho uniforme, mesmo que corte um pouco */
}

.tnd-part-card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* linha principal: título+tipo à esquerda, preço à direita */

.tnd-part-card__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.tnd-part-card__title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

/* Título da peça */

.tnd-part-card__title {
  font-size: 13px;
  margin: 0;
  font-weight: 600;
  color: #1f2933;
}

/* Label com o tipo (Consoles, Fuel Tanks, ...) */

.tnd-part-card__type-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7b8190;
}

/* SKU + Notes */

.tnd-part-card__sku {
  font-size: 11px;
  color: #5b6473;
  font-weight: 600;
}

.tnd-part-card__notes {
  font-size: 12px;
  color: #6b7280;
  max-width: 72ch;
}

/* Preço (apenas quando $can_view_prices = true) */

.tnd-part-card__price {
  font-weight: 600;
  font-size: 13px;
  color: #111827;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ======================================================================
 * Responsive
 * ====================================================================== */

@media (min-width: 768px) {
  .tnd-pricing {
    padding: 2rem 1.5rem 3rem;
  }
}

/* Mantemos parts sempre em 1 coluna, por isso não há media query a mudar o grid */
