:root {
  --ink: #102033;
  --muted: #667181;
  --paper: #ffffff;
  --soft: #f4f7fb;
  --line: #dce4ef;
  --brand: #d71920;
  --brand-dark: #a70f15;
  --accent: #0f7a4f;
  --shadow: 0 18px 50px rgba(16, 32, 51, .13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 58px);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--brand);
  color: white;
  font-weight: 900;
  font-size: 24px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-weight: 700;
}

.main-nav a:not(.button) {
  color: #263447;
}

.nav-whatsapp {
  color: var(--accent) !important;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: white;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(215, 25, 32, .22);
}

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

.button-small {
  min-height: 38px;
  padding: 0 16px;
}

.button-secondary {
  background: #142337;
  box-shadow: none;
}

.button-secondary:hover {
  background: #24364f;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .75fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
  min-height: calc(100vh - 77px);
  padding: clamp(42px, 7vw, 92px) clamp(18px, 4vw, 58px);
  background:
    linear-gradient(110deg, rgba(16, 32, 51, .92), rgba(16, 32, 51, .78) 54%, rgba(16, 32, 51, .45)),
    url("https://images.unsplash.com/photo-1486262715619-67b85e0b08d3?auto=format&fit=crop&w=1800&q=80") center / cover;
  color: white;
}

.eyebrow {
  display: inline-flex;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #e8eef7;
  font-weight: 800;
}

.hero h1 {
  max-width: 820px;
  margin: 18px 0 18px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: .96;
  letter-spacing: 0;
}

.hero-text {
  max-width: 720px;
  color: #ecf1f7;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}

.hero-badges span {
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  font-weight: 800;
}

.call-link {
  display: inline-flex;
  color: white;
  font-weight: 900;
  font-size: 20px;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.quote-card {
  width: 100%;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.quote-card h2 {
  margin: 0 0 6px;
  font-size: 26px;
}

.quote-card p {
  margin: 0 0 20px;
  color: var(--muted);
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: #344154;
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(215, 25, 32, .15);
}

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

.quote-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.form-status {
  display: block;
  min-height: 22px;
  margin-top: 12px;
  color: var(--accent);
  font-weight: 800;
}

.catalog-section {
  padding: clamp(46px, 6vw, 78px) clamp(18px, 4vw, 58px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0 0 10px;
  font-size: clamp(32px, 4vw, 48px);
}

.section-heading p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(140px, 190px));
  gap: 12px;
  margin-bottom: 20px;
}

.results-count {
  color: var(--muted);
  font-size: 18px;
}

.results-count strong {
  color: var(--ink);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  overflow: hidden;
  border-radius: 8px;
  background: white;
  border: 1px solid #edf1f6;
  box-shadow: 0 10px 28px rgba(16, 32, 51, .08);
  transition: transform .18s ease, box-shadow .18s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(16, 32, 51, .13);
}

.product-image {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,.98) 0 26%, rgba(242,246,251,.96) 48%, rgba(222,230,240,.98) 100%),
    linear-gradient(135deg, rgba(16,32,51,.06) 25%, transparent 25% 50%, rgba(16,32,51,.06) 50% 75%, transparent 75%);
  background-size: auto, 22px 22px;
  padding: 16px;
}

.product-image::before {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: -1;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,.18)),
    radial-gradient(ellipse at center bottom, rgba(16,32,51,.20) 0 18%, transparent 55%);
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95);
}

.product-image::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 16px;
  height: 18px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(16,32,51,.28), transparent 70%);
  filter: blur(7px);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
  filter: saturate(1.04) contrast(1.03) drop-shadow(0 16px 18px rgba(16,32,51,.16));
}

.verified {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #0f7a4f;
  color: white;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(15, 122, 79, .24);
}

.product-body {
  padding: 17px 18px 18px;
}

.brand-pill {
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.product-body h3 {
  min-height: 52px;
  margin: 7px 0 8px;
  color: #12233a;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.code {
  color: var(--muted);
  font-weight: 800;
  margin: 0;
}

.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 35px;
  margin: 12px 0 10px;
}

.specs span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #4b596b;
  font-size: 13px;
  font-weight: 800;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 9px;
  min-height: 30px;
  margin: 6px 0 14px;
}

.price {
  color: #102033;
  font-size: 25px;
  font-weight: 950;
}

.old-price {
  color: #8792a1;
  text-decoration: line-through;
  font-weight: 800;
}

.discount {
  color: var(--accent);
  font-weight: 900;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.card-actions .button {
  min-height: 42px;
  padding: 0 10px;
  font-size: 14px;
  box-shadow: none;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 0;
}

.pagination button {
  min-width: 40px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-weight: 900;
}

.pagination .active {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}

.detail-page {
  padding: clamp(28px, 5vw, 58px) clamp(18px, 4vw, 58px) 18px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--muted);
  font-weight: 800;
}

.breadcrumb a {
  color: var(--brand);
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(320px, 1fr);
  gap: clamp(22px, 4vw, 50px);
  align-items: start;
}

.detail-gallery {
  position: sticky;
  top: 100px;
  overflow: hidden;
  border-radius: 8px;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 42%, rgba(255,255,255,.98) 0 28%, rgba(242,246,251,.96) 50%, rgba(222,230,240,.98) 100%),
    linear-gradient(135deg, rgba(16,32,51,.055) 25%, transparent 25% 50%, rgba(16,32,51,.055) 50% 75%, transparent 75%);
  background-size: auto, 28px 28px;
  box-shadow: var(--shadow);
  padding: 30px;
}

.detail-gallery::before {
  content: "";
  position: absolute;
  inset: 24px;
  z-index: -1;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.18)),
    radial-gradient(ellipse at center bottom, rgba(16,32,51,.22) 0 18%, transparent 56%);
  border: 1px solid rgba(255,255,255,.82);
}

.detail-gallery::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 30px;
  z-index: -1;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(16,32,51,.30), transparent 70%);
  filter: blur(9px);
}

.detail-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: saturate(1.05) contrast(1.04) drop-shadow(0 20px 22px rgba(16,32,51,.18));
}

.detail-badge {
  left: 18px;
  top: 18px;
}

.detail-summary {
  padding: clamp(24px, 4vw, 38px);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.eyebrow.dark {
  width: fit-content;
  margin: 0 0 14px;
  background: #eef3f8;
  color: #263447;
}

.detail-summary h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1;
}

.detail-lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.detail-price {
  margin: 20px 0;
}

.detail-price .price {
  font-size: clamp(32px, 4vw, 44px);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

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

.trust-strip span {
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 10px;
  border-radius: 8px;
  background: #f4f7fb;
  color: #344154;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
}

.detail-spec-section {
  margin-top: 34px;
}

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

.spec-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 12px;
  min-height: 54px;
  align-items: center;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.spec-row strong {
  color: #344154;
}

.spec-row span {
  color: var(--muted);
  line-height: 1.4;
}

.related-section {
  padding-top: 20px;
}

.content-page {
  padding: clamp(42px, 6vw, 78px) clamp(18px, 4vw, 58px);
}

.content-hero {
  max-width: 920px;
  margin: 0 auto 28px;
}

.content-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1;
}

.content-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.legal-card {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 38px);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.legal-card h2 {
  margin: 26px 0 10px;
  font-size: 24px;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p,
.legal-card li {
  color: #526071;
  line-height: 1.7;
}

.legal-card ul {
  padding-left: 20px;
}

.legal-card a {
  color: var(--brand);
  font-weight: 800;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(280px, .95fr) minmax(220px, .62fr) minmax(340px, .95fr);
  gap: clamp(28px, 5vw, 72px);
  padding: 48px clamp(18px, 4vw, 58px) 78px;
  background: #0d1827;
  color: white;
}

.site-footer > div:first-child {
  max-width: 520px;
}

.site-footer h2,
.site-footer h3 {
  margin-top: 0;
}

.site-footer p,
.site-footer a {
  color: #c8d3e1;
  line-height: 1.6;
}

.site-footer p {
  max-width: 540px;
}

.site-footer a {
  display: block;
  margin: 0;
}

.site-footer > div:last-child {
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.site-footer > div:last-child h3 {
  margin-bottom: 18px;
}

.site-footer > div:last-child a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 0 0 10px;
  white-space: nowrap;
}

.site-footer > div:last-child a:last-child {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--brand);
  color: white;
  font-weight: 900;
}

.bottom-bar {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 30;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: calc(100vw - 28px);
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow);
  color: #263447;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 900;
}

.bottom-bar a {
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--brand);
  color: white;
}

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

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .product-detail-layout,
  .spec-table {
    grid-template-columns: 1fr;
  }

  .detail-gallery {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    min-width: 0;
  }

  .main-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 34px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .form-grid,
  .quote-actions,
  .filters,
  .product-grid,
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .detail-summary h1 {
    font-size: 34px;
  }

  .spec-row {
    grid-template-columns: 1fr;
  }

  .bottom-bar {
    justify-content: space-between;
    width: calc(100vw - 20px);
    border-radius: 8px;
    overflow-x: auto;
  }
}
