/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s var(--ease-standard), background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { transform: translateY(-2px); }

.btn--red {
  background: var(--color-accent-red);
  color: var(--color-text-inverse);
}
.btn--red:hover { background: var(--color-accent-yellow); color: var(--color-bg); }

.btn--outline {
  background: transparent;
  border-color: var(--color-text-inverse);
  color: var(--color-text-inverse);
}
.btn--outline:hover { border-color: var(--color-accent-yellow); color: var(--color-accent-yellow); }

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--color-accent-yellow);
  color: var(--color-bg);
}
.badge--red { background: var(--color-accent-red); color: var(--color-text-inverse); }

/* Image slot: aspect-ratio fixed, asset-agnostic. Product photos are
   background-removed cutouts, so this is just a subtle dark "well", not a
   white card - the product floats directly on it. */
.image-slot {
  position: relative;
  overflow: hidden;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 3;
}
.image-slot--square { aspect-ratio: 1 / 1; }
.image-slot--wide { aspect-ratio: 16 / 10; }
.image-slot--portrait { aspect-ratio: 3 / 4; }

.image-slot > img,
.image-slot > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6%;
  filter: hue-rotate(90deg) saturate(0.65) brightness(1.05);
}

/* Card */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--color-accent-red); transform: translateY(-4px); }

.card h3 { margin: 0; color: var(--color-text-inverse); }
.card .card__link {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-accent-yellow);
}

/* Breadcrumb */
.breadcrumb {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-accent-yellow); }

/* Price disclaimer */
.price-disclaimer {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 0.5rem;
  font-style: italic;
}

/* Spec table */
.spec-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  position: relative;
}
.spec-table-wrap.has-overflow::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 28px;
  background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.5));
  pointer-events: none;
}

.spec-table {
  width: 100%;
  min-width: max-content;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: var(--text-sm);
}

.spec-table th,
.spec-table td {
  padding: 0.65rem 1rem;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--color-border);
}

.spec-table thead th {
  background: var(--color-accent-red);
  color: var(--color-text-inverse);
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: var(--text-xs);
  position: sticky;
  top: 0;
  z-index: 2;
}

.spec-table tbody tr:nth-child(even) { background: var(--color-surface-alt); }
.spec-table tbody tr:hover { background: #232020; }

.spec-table__sticky-col {
  position: sticky;
  left: 0;
  z-index: 1;
  background: inherit;
  box-shadow: 2px 0 6px rgb(0 0 0 / 0.4);
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--color-text-inverse);
}

.spec-table thead .spec-table__sticky-col { background: var(--color-accent-red); }

.spec-table__price { font-family: var(--font-ui); font-weight: 700; color: var(--color-accent-yellow); }

/* Sub-family nav (desbrozadoras/rotovator/astilladores) */
.subnav {
  position: sticky;
  top: 84px;
  z-index: 10;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: var(--space-sm) 0;
  margin-bottom: var(--space-lg);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.subnav a {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
}
.subnav a:hover { color: var(--color-bg); background: var(--color-accent-yellow); border-color: var(--color-accent-yellow); }

/* Cross-sell strip */
.cross-sell {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.cross-sell a {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  color: var(--color-text);
}
.cross-sell a:hover { border-color: var(--color-accent-red); color: var(--color-accent-yellow); }

/* Family block */
.family-block {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: var(--space-lg);
  align-items: start;
  padding-block: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}
.family-block:last-child { border-bottom: none; }

@media (max-width: 800px) {
  .family-block { grid-template-columns: 1fr; }
}
