:root {
  --catalog-night: #052b63;
  --catalog-blue: #087fd1;
  --catalog-ink: #12233d;
  --catalog-muted: #5c6b80;
  --catalog-line: rgba(5, 43, 99, .14);
  --catalog-paper: #fcfcfb;
}

.catalog-page {
  min-height: 100vh;
  color: var(--catalog-ink);
  background: var(--catalog-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.catalog-page { margin: 0; }

.catalog-whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 10px 24px rgba(3, 15, 29, .24);
}

.catalog-whatsapp-float:hover { background: #1fba59; }
.catalog-whatsapp-float:focus-visible { outline: 3px solid #8edcff; outline-offset: 4px; }
.catalog-whatsapp-float img { display: block; width: 31px; height: 31px; object-fit: contain; }

.catalog-page *,
.catalog-page *::before,
.catalog-page *::after { box-sizing: border-box; }

.catalog-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

.catalog-header {
  border-bottom: 1px solid rgba(5, 43, 99, .1);
  background: rgba(252, 252, 251, .94);
}

.catalog-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 86px;
}

.catalog-brand { display: inline-flex; align-items: center; }
.catalog-brand img { display: block; width: 174px; height: auto; }

.catalog-header-nav { display: flex; align-items: center; gap: 24px; }
.catalog-header-nav a,
.catalog-back {
  color: var(--catalog-night);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.catalog-header-nav a:hover,
.catalog-back:hover { color: var(--catalog-blue); }

.catalog-main { padding: 86px 0 104px; }

.catalog-hero { max-width: 760px; margin-bottom: 54px; }
.catalog-eyebrow {
  margin: 0 0 16px;
  color: var(--catalog-blue);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.catalog-hero h1 {
  max-width: 700px;
  margin: 0;
  color: var(--catalog-night);
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: .98;
}

.catalog-hero p {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--catalog-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

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

.catalog-card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border: 1px solid var(--catalog-line);
  background: #fff;
}

.catalog-card-body { flex: 1; }

.catalog-model-media {
  display: block;
  width: calc(100% + 56px);
  aspect-ratio: 4 / 3;
  margin: -28px -28px 24px;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #eef4f7;
  cursor: pointer;
  font: inherit;
  text-align: inherit;
  appearance: none;
}

.catalog-model-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.catalog-card h2 {
  margin: 0;
  color: var(--catalog-night);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -.025em;
}

.catalog-card p {
  max-width: 29ch;
  color: var(--catalog-muted);
  font-size: .96rem;
  line-height: 1.6;
}

.catalog-card .catalog-dimensions {
  max-width: none;
  margin: 14px 0 0;
  color: var(--catalog-blue);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.5;
}

.catalog-card .catalog-description { margin: 14px 0 0; }

.catalog-empty {
  padding-top: 44px;
  border-top: 1px solid var(--catalog-line);
  color: var(--catalog-muted);
  font-size: .9rem;
  line-height: 1.6;
}

.catalog-model-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 28px;
  padding: 11px 16px;
  border: 1px solid var(--catalog-night);
  color: var(--catalog-night);
  background: transparent;
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
}

.catalog-model-action:hover { color: #fff; background: var(--catalog-night); }

body.catalog-modal-open { overflow: hidden; }

.catalog-modal[hidden] { display: none; }

.catalog-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 15, 29, .88);
}

.catalog-modal-panel {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 1220px);
  max-height: 100%;
}

.catalog-modal-image {
  display: block;
  width: auto;
  max-width: 92vw;
  height: auto;
  max-height: 88vh;
  object-fit: contain;
}

.catalog-modal-close {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 1;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 50%;
  color: #fff;
  background: rgba(3, 15, 29, .28);
  cursor: pointer;
  font: inherit;
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
}

.catalog-modal-close:hover,
.catalog-modal-close:focus-visible { background: rgba(8, 127, 209, .78); }

.catalog-footer {
  padding: 24px 0 32px;
  border-top: 1px solid rgba(5, 43, 99, .1);
  color: var(--catalog-muted);
  font-size: .78rem;
}

@media (max-width: 900px) {
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .catalog-shell { width: min(100% - 32px, 560px); }
  .catalog-header-inner { align-items: flex-start; flex-direction: column; gap: 18px; padding: 20px 0; }
  .catalog-header-nav { flex-wrap: wrap; gap: 12px 18px; }
  .catalog-main { padding: 58px 0 72px; }
  .catalog-hero { margin-bottom: 36px; }
  .catalog-hero h1 { font-size: clamp(2.4rem, 13vw, 3.6rem); }
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-card { min-height: 250px; padding: 24px; }
  .catalog-model-media { width: calc(100% + 48px); margin: -24px -24px 24px; }
  .catalog-modal { padding: 16px; }
  .catalog-modal-image { max-width: 94vw; max-height: 82vh; }
  .catalog-modal-close { top: 12px; right: 12px; }
  .catalog-whatsapp-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .catalog-whatsapp-float img { width: 29px; height: 29px; }
}
