:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-strong: #111114;
  --text: #17171a;
  --muted: #696972;
  --line: #d9d9df;
  --accent: #0071e3;
  --accent-dark: #005bb8;
  --green: #1c8f4d;
  --shadow: 0 22px 70px rgba(18, 18, 22, 0.13);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 52px;
  padding: 7px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(217, 217, 223, 0.7);
  background: rgba(245, 245, 247, 0.86);
  backdrop-filter: blur(18px);
}

.brand,
.top-nav,
.hero-actions,
.toolbar,
.segment-control,
.product-meta,
.price-row,
.card-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-logo {
  width: 42px;
  height: 32px;
  object-fit: contain;
}

.top-nav {
  gap: 22px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.top-nav a:hover {
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
  min-height: auto;
  padding: clamp(28px, 4vw, 46px) clamp(18px, 5vw, 72px) 28px;
  overflow: hidden;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 640px;
  margin-bottom: 16px;
  font-size: clamp(2.4rem, 4.8vw, 4.35rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero-text {
  max-width: 590px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions {
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 590px;
}

.button {
  min-height: 46px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease,
    border-color 160ms ease;
}

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

.button.primary {
  background: var(--accent);
  color: #fff;
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.hero-media {
  position: relative;
  min-height: 330px;
}

.hero-media::after {
  position: absolute;
  inset: auto 8% -26px 8%;
  height: 60px;
  border-radius: 50%;
  background: rgba(17, 17, 20, 0.18);
  filter: blur(22px);
  content: "";
}

.hero-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 330px;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.catalog-section,
.terms {
  padding: 52px clamp(18px, 5vw, 72px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.status-text {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.toolbar {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.search-field {
  display: grid;
  gap: 8px;
  width: min(480px, 100%);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.search-field input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.segment-control {
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.segment {
  height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
}

.segment.active {
  background: var(--surface-strong);
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 18px;
}

.product-card {
  display: grid;
  gap: 19px;
  min-height: 390px;
  padding: 22px;
  border: 1px solid rgba(217, 217, 223, 0.86);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 30px rgba(18, 18, 22, 0.06);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  animation: cardIn 360ms ease both;
}

.product-card:hover {
  border-color: rgba(0, 113, 227, 0.32);
  box-shadow: 0 18px 48px rgba(18, 18, 22, 0.11);
  transform: translateY(-3px);
}

.product-visual {
  display: grid;
  min-height: 142px;
  place-items: center;
  border-radius: var(--radius);
  background: #f7f7fa;
  overflow: hidden;
}

.product-visual img {
  width: 100%;
  height: 156px;
  object-fit: contain;
  mix-blend-mode: multiply;
  transform: scale(1.08);
  transition: transform 220ms ease;
}

.product-card:hover .product-visual img {
  transform: scale(1.13);
}

.product-content {
  display: grid;
  gap: 14px;
}

.product-title {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.15;
}

.variant-count {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

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

.variant-field-color {
  grid-column: 1 / -1;
}

.variant-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.variant-field span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.variant-field small {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
}

.variant-select {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.variant-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.11);
  outline: 0;
}

.variant-select:disabled {
  color: var(--muted);
  opacity: 1;
}

.product-meta {
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f0f1f4;
  color: #34343a;
  font-size: 0.82rem;
  font-weight: 800;
}

.pill.green {
  background: rgba(28, 143, 77, 0.11);
  color: var(--green);
}

.price-row {
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.price-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.cash-price {
  font-size: 1.55rem;
  font-weight: 900;
}

.installment-price {
  color: var(--muted);
  font-weight: 800;
  text-align: right;
}

.card-actions {
  align-self: end;
}

.whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  border-radius: 999px;
  background: #25d366;
  color: #07180e;
  font-weight: 900;
  transition: filter 160ms ease, transform 160ms ease;
}

.whatsapp-button:hover {
  filter: brightness(0.97);
  transform: translateY(-1px);
}

.empty-state {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.terms {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 32px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.terms-copy {
  display: grid;
  gap: 18px;
}

.terms-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
}

.whatsapp-footer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  background: #25d366;
  color: #07180e;
  font-weight: 900;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .hero {
    min-height: auto;
  }

  .hero-media,
  .hero-media img {
    min-height: auto;
    height: 260px;
  }

  .section-heading,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .site-header {
    position: sticky;
  }

  .top-nav {
    display: none;
  }

  .segment-control {
    align-self: stretch;
    overflow-x: auto;
  }

  .segment {
    flex: 1 0 auto;
  }

  .price-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .installment-price {
    text-align: left;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .variant-selectors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .variant-field-color {
    grid-column: 1 / -1;
  }

  .hero {
    padding-top: 22px;
  }

  .hero-media,
  .hero-media img {
    height: 170px;
  }

  .catalog-section,
  .terms {
    padding-top: 38px;
    padding-bottom: 38px;
  }
}
