﻿:root {
  --bg: #0b0b0d;
  --bg-soft: #14161a;
  --surface: #ffffff;
  --surface-2: #f6f7f9;
  --text: #17181b;
  --text-soft: #5b616b;
  --line: #e8eaee;
  --primary: #d32f2f;
  --primary-dark: #a91f1f;
  --white: #ffffff;
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.16);
  --shadow-md: 0 14px 35px rgba(0, 0, 0, 0.10);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: 1240px;
  --header-h: 88px;
}

.maquina-detalhe-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(211, 47, 47, 0.12), transparent 24%),
    linear-gradient(180deg, #ffffff, #f6f7f9);
}

.maquina-header-space {
  height: var(--header-h);
}

.maquina-detalhe-main {
  padding: 34px 0 90px;
}

.machine-breadcrumb {
  margin-bottom: 22px;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.machine-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.machine-breadcrumb a:hover {
  color: var(--primary);
}

.machine-hero {
  display: grid;
  grid-template-columns: minmax(320px, 1.08fr) minmax(320px, 0.92fr);
  gap: 28px;
  margin-bottom: 34px;
  padding: 26px;
  border: 1px solid rgba(17, 18, 20, 0.08);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.machine-gallery-panel,
.machine-info-panel {
  border-radius: 22px;
}

.machine-gallery-panel {
  padding: 24px;
  background:
    linear-gradient(180deg, #f9fafb, #f2f4f7);
  border: 1px solid rgba(17, 18, 20, 0.07);
}

.machine-main-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(17, 18, 20, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.7);
  cursor: zoom-in;
}

.machine-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.28s ease;
  transform-origin: center center;
  will-change: transform;
}

.machine-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.machine-thumb {
  padding: 8px;
  border: 1px solid rgba(17, 18, 20, 0.1);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.machine-thumb:hover,
.machine-thumb.is-active {
  transform: translateY(-2px);
  border-color: rgba(211, 47, 47, 0.4);
  box-shadow: 0 12px 24px rgba(211, 47, 47, 0.12);
}

.machine-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.machine-info-panel {
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(17, 18, 20, 0.96), rgba(30, 31, 35, 0.94)),
    radial-gradient(circle at top right, rgba(211, 47, 47, 0.24), transparent 34%);
  color: #fff;
}

.machine-kicker {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 8px 12px;
  border: 1px solid rgba(211, 47, 47, 0.32);
  border-radius: 999px;
  background: rgba(211, 47, 47, 0.12);
  color: #ffd8d8;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.machine-info-panel h1 {
  margin-bottom: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.04;
}

.machine-subtitle {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.02rem;
  line-height: 1.72;
}

.machine-highlight-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 28px;
}

.machine-highlight-item {
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.86);
}

.machine-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.machine-btn,
.machine-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.22s ease;
}

.machine-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 16px 30px rgba(211, 47, 47, 0.24);
}

.machine-btn:hover,
.machine-btn-outline:hover {
  transform: translateY(-2px);
}

.machine-btn-outline {
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);
}

.machine-sections {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 24px;
}

.machine-stack {
  display: grid;
  gap: 22px;
}

.machine-card {
  padding: 26px;
  border: 1px solid rgba(17, 18, 20, 0.08);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.machine-card h2 {
  margin-bottom: 14px;
  color: #16181b;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.35rem;
}

.machine-card p {
  color: var(--text-soft);
  line-height: 1.78;
}

.machine-list {
  display: grid;
  gap: 12px;
  list-style: none;
}

.machine-list li {
  padding-left: 18px;
  position: relative;
  color: var(--text-soft);
  line-height: 1.7;
}

.machine-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.machine-specs {
  display: grid;
  gap: 12px;
}

.machine-spec-item {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(17, 18, 20, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #fafbfc);
}

.machine-spec-item strong {
  color: #16181b;
  font-size: 0.96rem;
}

.machine-spec-item span {
  color: var(--text-soft);
}

.machine-related-links {
  display: grid;
  gap: 12px;
}

.machine-related-link {
  display: block;
  padding: 14px 16px;
  border: 1px solid rgba(17, 18, 20, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #fafbfc);
  color: #16181b;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.machine-related-link:hover {
  transform: translateY(-2px);
  border-color: rgba(211, 47, 47, 0.3);
  box-shadow: 0 12px 24px rgba(17, 18, 20, 0.08);
}

@media (max-width: 980px) {
  .machine-hero,
  .machine-sections {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .machine-hero,
  .machine-card,
  .machine-info-panel,
  .machine-gallery-panel {
    padding: 20px;
  }

  .machine-actions {
    flex-direction: column;
  }

  .machine-btn,
  .machine-btn-outline {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .maquina-detalhe-main {
    padding: 22px 0 76px;
  }

  .machine-hero {
    padding: 14px;
    border-radius: 20px;
  }

  .machine-gallery-panel,
  .machine-info-panel,
  .machine-card {
    border-radius: 18px;
  }
}
