:root {
  --bg: #0f1216;
  --panel: rgba(27, 33, 40, 0.92);
  --panel-strong: #1a2128;
  --line: rgba(255, 255, 255, 0.08);
  --text: #eef3f7;
  --muted: #aeb8c3;
  --brand: #7f8f9d;
  --brand-strong: #b7c4cf;
  --accent: #8ea1b8;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--brand) 18%, transparent), transparent 32%),
    radial-gradient(circle at 85% 18%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 22%),
    linear-gradient(180deg, color-mix(in srgb, var(--panel-strong) 92%, black) 0%, #12171c 42%, #0c1014 100%);
  font-family: "Manrope", sans-serif;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.shell {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.hero {
  position: relative;
  padding: 28px 0 24px;
}

.hero-panel {
  position: relative;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--brand) 20%, transparent), transparent 34%),
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 12%, transparent), color-mix(in srgb, var(--panel-strong) 92%, black) 36%),
    color-mix(in srgb, var(--panel-strong) 94%, black);
  box-shadow: var(--shadow);
}

.hero-watermark {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
}

.hero-watermark img {
  width: min(620px, 72vw);
  max-width: 82%;
  opacity: 0.07;
  filter: blur(7px) grayscale(1);
  transform: scale(1.05);
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% auto;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 34%, transparent), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}

.hero-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px 0;
  position: relative;
  z-index: 1;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-lockup > div {
  display: flex;
  align-items: center;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.social-link {
  min-height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 18px;
}

.social-link:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: color-mix(in srgb, var(--brand) 60%, white 10%);
  background: color-mix(in srgb, var(--brand) 18%, rgba(255, 255, 255, 0.04));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.brand-lockup img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel) 80%, white 4%);
  padding: 10px;
}

.brand-lockup p,
.hero-search-copy p,
.filter-card p,
.results-bar p,
.empty-state p,
.product-topline p,
.product-subtitle,
.product-meta span,
.product-list,
.details-block p,
summary {
  color: var(--muted);
}

.brand-lockup strong,
.hero-search-copy h1,
.results-bar strong,
.product-card h3 {
  font-family: "Space Grotesk", sans-serif;
}

.brand-lockup strong {
  display: block;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-search {
  display: grid;
  gap: 22px;
  padding: 26px 28px 28px;
  position: relative;
  z-index: 1;
}

.hero-search-copy {
  text-align: center;
}

.hero-search-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.hero-search-copy p {
  margin: 12px auto 0;
  max-width: 42ch;
  font-size: 1rem;
  line-height: 1.6;
}

.hero-search-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.hero-search-bar input,
.hero-search-bar select {
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.hero-search-bar input {
  width: min(100%, 620px);
  flex: 1 1 520px;
}

.vehicle-dropdown {
  width: min(100%, 280px);
  flex: 0 1 280px;
  position: relative;
}

.vehicle-trigger {
  position: relative;
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 46px 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-transform: uppercase;
  font-weight: 800;
  cursor: pointer;
}

.vehicle-trigger::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  transform: translateY(-65%) rotate(45deg);
}

.vehicle-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: min(92vw, 320px);
  max-height: 320px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: #eef2f5;
  box-shadow: var(--shadow);
  z-index: 20;
}

.vehicle-option {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #111111;
  cursor: pointer;
}

.vehicle-option:hover,
.vehicle-option.is-active {
  background: color-mix(in srgb, var(--brand) 20%, transparent);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--brand);
  color: #10161b;
  font-weight: 800;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.filters {
  padding: 14px 0 8px;
}

.filter-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.filter-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr auto;
  gap: 12px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label,
.toggle {
  font-size: 0.88rem;
  color: var(--muted);
}

.field input,
.field select {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.results {
  padding: 12px 0 48px;
}

.results-bar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.back-button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
}

.featured-stage {
  margin-bottom: 20px;
}

.featured-shell {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--brand) 18%, transparent), transparent 30%),
    linear-gradient(180deg, color-mix(in srgb, var(--panel) 92%, #222a31), color-mix(in srgb, var(--panel-strong) 96%, black));
  box-shadow: var(--shadow);
}

.featured-slider {
  position: relative;
  overflow: hidden;
}

.featured-slide {
  opacity: 0;
  transform: translateY(16px) scale(0.988);
  animation: featuredFadeIn 560ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes featuredFadeIn {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.988);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.featured-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--brand-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.featured-shell h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 0.98;
}

.featured-copy p,
.featured-subtitle,
.featured-vehicle,
.featured-meta span {
  color: var(--muted);
}

.featured-copy p {
  margin: 10px 0 0;
  max-width: 52ch;
}

.featured-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: stretch;
}

.featured-image-wrap {
  padding: 0;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  background: transparent;
  cursor: zoom-in;
}

.featured-image {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.featured-body {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 8px 4px;
}

.featured-body-button {
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.featured-body h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
}

.featured-vehicle,
.featured-subtitle,
.featured-meta {
  margin: 0;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.featured-meta strong {
  color: var(--brand-strong);
  font-size: 1.2rem;
}

.featured-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.featured-arrow {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.featured-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
}

.featured-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.featured-dot.is-active {
  width: 34px;
  background: var(--brand);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--panel) 90%, #20262d) 0%,
    color-mix(in srgb, var(--panel-strong) 96%, black) 100%
  );
  box-shadow: var(--shadow);
}

.product-card-modal {
  max-width: min(900px, 78vw);
  margin: 0 auto;
}

.product-media {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 16px 16px 0;
}

.gallery-main {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 18px;
}

.gallery-zoom,
.gallery-thumb {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.gallery-main img,
.gallery-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.gallery-thumb {
  border-radius: 14px;
  overflow: hidden;
}

.gallery-strip img {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
}

.gallery-empty {
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 24px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  text-align: center;
}

.product-chip {
  position: absolute;
  top: 30px;
  left: 30px;
  padding: 8px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel-strong) 86%, black);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.8rem;
}

.product-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.product-topline,
.product-meta,
.product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.product-topline strong {
  color: var(--brand-strong);
}

.product-card h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.08;
}

.product-subtitle {
  margin: 0;
  line-height: 1.6;
}

.product-meta {
  font-size: 0.88rem;
}

.product-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.7;
}

.compact {
  margin-bottom: 12px;
}

.visible-block p {
  margin: 0 0 8px;
}

details {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

summary {
  cursor: pointer;
}

.details-block {
  padding-top: 10px;
}

.product-actions {
  padding: 0 18px 18px;
}

.product-actions .button {
  flex: 1 1 160px;
}

.empty-state {
  margin-top: 18px;
  padding: 24px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 8, 12, 0.86);
  backdrop-filter: blur(6px);
  z-index: 100;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox-image {
  max-width: min(92vw, 1400px);
  max-height: 88vh;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.product-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 8, 12, 0.82);
  backdrop-filter: blur(8px);
  z-index: 95;
}

.product-modal[hidden] {
  display: none !important;
}

.product-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 920px;
  max-height: 84vh;
  overflow: auto;
}

.product-modal-content {
  padding: 8px 0 0;
}

.product-modal .product-card {
  border-radius: 24px;
}

.product-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.floating-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 6px;
  justify-items: end;
  z-index: 90;
}

.floating-whatsapp-label {
  padding: 10px 14px;
  border-radius: 16px 16px 4px 16px;
  background: color-mix(in srgb, var(--panel-strong) 92%, black);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-size: 0.92rem;
  box-shadow: var(--shadow);
}

.floating-whatsapp-badge {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 999px;
  background: #25d366;
  color: #0b2514;
  font-weight: 800;
  box-shadow: 0 20px 40px rgba(37, 211, 102, 0.28);
}

@media (max-width: 960px) {
  .filter-grid,
  .results-grid,
  .featured-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(calc(100% - 20px), var(--container));
  }

  .hero-topbar,
  .hero-search,
  .filter-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .brand-lockup {
    width: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    display: grid;
    grid-template-columns: 64px auto;
    justify-content: center;
  }

  .brand-lockup > div {
    min-height: 64px;
    display: grid;
    align-items: center;
  }

  .hero-topbar {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }

  .social-links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .social-link {
    width: 100%;
    min-height: 40px;
    padding: 0 10px;
    gap: 6px;
    font-size: 0.85rem;
  }

  .social-link svg {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }

  .hero-search-copy h1 {
    font-size: 2.2rem;
  }

  .brand-lockup strong {
    font-size: 2rem;
    letter-spacing: 0.06em;
    display: block;
    line-height: 0.92;
    padding-top: 6px;
    transform: translateY(0);
  }

  .brand-lockup img {
    width: 64px;
    height: 64px;
  }

  .hero-search-bar {
    gap: 12px;
  }

  .hero-search-bar .button,
  .hero-search-bar input,
  .vehicle-dropdown {
    width: 100%;
  }

  .hero-search {
    gap: 16px;
    padding-top: 20px;
  }

  .results-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .featured-image {
    min-height: 260px;
  }
}
