/* Components: buttons, forms, cards, hero pieces */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast), border-color var(--dur-fast), box-shadow var(--dur-fast), color var(--dur-fast);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--cb-yellow);
  color: var(--cb-on-accent);
  box-shadow: 0 8px 28px var(--cb-yellow-glow);
}

.btn--primary:hover {
  background: #ffd84a;
  box-shadow: var(--shadow-glow);
}

.btn--ghost {
  background: transparent;
  border-color: var(--cb-border-strong);
  color: var(--cb-text);
}

.btn--ghost:hover {
  border-color: var(--cb-silver);
  background: rgba(255, 255, 255, 0.04);
}

.btn--silver {
  background: var(--cb-chrome);
  color: #0c0e11;
  font-weight: 800;
}

.btn--silver:hover {
  filter: brightness(1.08);
}

.btn--block {
  width: 100%;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Form controls */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: var(--space-md);
}

.field label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cb-text-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--cb-surface);
  border: 1px solid var(--cb-border);
  border-radius: var(--radius-sm);
  color: var(--cb-text);
  transition: border-color var(--dur-fast);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cb-red);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

/* Stats strip */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--cb-border);
  border: 1px solid var(--cb-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.stat {
  background: var(--cb-surface);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--cb-text);
  line-height: 1;
}

.stat__value span {
  color: var(--cb-red);
}

.stat__label {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cb-text-muted);
}

@media (max-width: 720px) {
  .stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* Product line tiles (not heavy cards) */
.lines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--cb-border);
  border: 1px solid var(--cb-border);
}

.line-tile {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  background: var(--cb-surface);
  isolation: isolate;
}

.line-tile__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.line-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
  filter: brightness(0.55);
}

.line-tile:hover .line-tile__media img {
  transform: scale(1.08);
  filter: brightness(0.7);
}

.line-tile__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-lg);
  background: linear-gradient(transparent, rgba(6, 7, 8, 0.92));
}

.line-tile__body h3 {
  margin-bottom: 0.35rem;
}

.line-tile__body p {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.line-tile__link {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cb-red);
}

.line-tile__link:hover {
  color: #ff3b57;
}

@media (max-width: 900px) {
  .lines-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .lines-grid {
    grid-template-columns: 1fr;
  }
  .line-tile {
    min-height: 220px;
  }
}

/* Feature list */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.feature {
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--cb-border);
}

.feature__icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-sm);
  color: var(--cb-red);
}

.feature h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

@media (max-width: 700px) {
  .features {
    grid-template-columns: 1fr;
  }
}

/* Page hero (inner pages) */
.page-hero {
  padding-top: calc(var(--header-h) + 4rem);
  padding-bottom: var(--space-xl);
  position: relative;
}

.page-hero__title {
  max-width: 16ch;
}

.page-hero__lead {
  margin-top: var(--space-md);
  font-size: 1.1rem;
}

/* Split content */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.split__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 3;
  background: var(--cb-surface);
}

.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 800px) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* CTA band */
.cta-band {
  position: relative;
  padding-block: var(--space-2xl);
  overflow: hidden;
  isolation: isolate;
}

.cta-band__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.cta-band__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.3);
}

.cta-band__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 7, 8, 0.95) 0%, rgba(6, 7, 8, 0.55) 100%);
}

.cta-band h2 {
  max-width: 14ch;
  margin-bottom: var(--space-md);
}

/* News list */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--cb-border);
}

.news-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: var(--space-lg);
  align-items: center;
  padding-block: var(--space-lg);
  border-bottom: 1px solid var(--cb-border);
  transition: background var(--dur-fast);
}

.news-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.news-item__date {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cb-red);
}

.news-item h3 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.news-item p {
  font-size: 0.9rem;
}

.news-item__arrow {
  color: var(--cb-text-dim);
  font-size: 1.5rem;
  transition: transform var(--dur-fast), color var(--dur-fast);
}

.news-item:hover .news-item__arrow {
  transform: translateX(6px);
  color: var(--cb-red);
}

@media (max-width: 700px) {
  .news-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .news-item__arrow {
    display: none;
  }
}

/* Contact grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-xl);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-block h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.contact-block a {
  color: var(--cb-silver-bright);
}

.contact-block a:hover {
  color: var(--cb-red);
}

@media (max-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Disclaimer */
.disclaimer {
  font-size: 0.8rem;
  color: var(--cb-text-dim);
  margin-top: var(--space-sm);
}

/* Qty control */
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--cb-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty button {
  width: 40px;
  height: 40px;
  color: var(--cb-text);
  background: var(--cb-surface-2);
  transition: background var(--dur-fast);
}

.qty button:hover {
  background: var(--cb-elevated);
}

.qty input {
  width: 48px;
  height: 40px;
  text-align: center;
  border: none;
  background: var(--cb-surface);
  border-left: 1px solid var(--cb-border);
  border-right: 1px solid var(--cb-border);
  -moz-appearance: textfield;
}

.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
