@font-face {
  font-family: "SF Pro Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://workupy.s3.us-east-2.amazonaws.com/sites/6d223234-e726-4de4-bc6e-bd490edf7732/assets/assets/SFProDisplay-Regular-fd690a2b.woff2") format("woff2");
}
@font-face {
  font-family: "SF Pro Display";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("https://workupy.s3.us-east-2.amazonaws.com/sites/6d223234-e726-4de4-bc6e-bd490edf7732/assets/assets/SFProDisplay-Medium-4148f18e.woff2") format("woff2");
}
@font-face {
  font-family: "SF Pro Display";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("https://workupy.s3.us-east-2.amazonaws.com/sites/6d223234-e726-4de4-bc6e-bd490edf7732/assets/assets/SFProDisplay-Semibold-eb8c5083.woff2") format("woff2");
}
@font-face {
  font-family: "SF Pro Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("https://workupy.s3.us-east-2.amazonaws.com/sites/6d223234-e726-4de4-bc6e-bd490edf7732/assets/assets/SFProDisplay-Bold-7d5c4d77.woff2") format("woff2");
}
@font-face {
  font-family: "Franklin Gothic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://workupy.s3.us-east-2.amazonaws.com/sites/6d223234-e726-4de4-bc6e-bd490edf7732/assets/assets/FranklinGothic-78651211.woff2") format("woff2");
}

:root {
  --blue: #0051d7;
  --blue-hover: #1a73e8;
  --text: #000;
  --muted: #525252;
  --gray: #888;
  --bg: #f5f5f5;
  --white: #fff;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --max: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  border: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "SF Pro Display", "Franklin Gothic", system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
}

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

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

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.topbar {
  background: var(--white);
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  min-height: 72px;
}

.logo {
  flex-shrink: 0;
}

.logo img {
  width: 180px;
  height: auto;
}

.nav-cats {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 1rem;
  min-width: 0;
}

.nav-cats a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.nav-cats a:hover {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.nav-cats a.is-active {
  color: var(--blue);
  border-bottom-color: var(--blue);
  font-weight: 600;
}

.search {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
  gap: 0.5rem;
  width: 100%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.search:focus-within {
  border-color: #0051d7;
}

.search-block {
  margin-top: 2rem;
}

.search input {
  flex: 1;
  background: transparent;
  outline: none;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
}

.search input::placeholder {
  color: var(--gray);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: 0.2s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-primary {
  background: #0051d7;
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-hover);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}

.btn-outline:hover {
  background: #eef4ff;
}

/* Hero — mesma largura do header (.container) */
.hero {
  position: relative;
  background: var(--white);
  padding: 1.25rem 0 0;
}

.hero-inner {
  position: relative;
}

.hero-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #0b1b3a;
}

.hero-track {
  display: flex;
  transition: transform 0.5s ease;
}

.hero-slide {
  min-width: 100%;
}

.hero-slide img {
  width: 100%;
  height: clamp(200px, 36vw, 380px);
  object-fit: cover;
}

.hero-nav {
  position: absolute;
  inset: auto 1rem 1rem auto;
  display: flex;
  gap: 0.4rem;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.hero-dot.active {
  background: #fff;
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-alt {
  background: var(--bg);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-head-center {
  justify-content: center;
  text-align: center;
  align-items: center;
}

.section-head h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  color: #111;
}

.section-head h2.title-sm {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 600;
}

.section-head p {
  color: var(--muted);
  margin-top: 0.25rem;
}

/* Why cards — tamanho de exibição 140×40, sem distorção */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: center;
  justify-items: center;
}

.why-card {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 0;
}

.why-card:hover {
  transform: none;
}

.why-card img {
  /* sobrescreve img { max-width:100% } — senão a largura encolhe e a altura fica travada */
  width: 140px;
  height: 40px;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  display: block;
  flex: none;
}

/* Offer product cards (mais vendidos) */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.offer-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
}

.offer-card > img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #fafafa;
  padding: 0.75rem;
}

.offer-body {
  padding: 0.9rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.offer-title {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.35;
  min-height: 2.7em;
  color: #222;
}

.offer-sku {
  margin: 0;
  font-size: 0.8rem;
  color: #666;
}

.catalog-count {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

.catalog-pagination {
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;
}

.catalog-pagination-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.catalog-pagination-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: rgba(0, 0, 0, 0.87);
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.2s ease;
}

.catalog-pagination-btn:hover:not(:disabled) {
  background: rgba(0, 81, 215, 0.08);
}

.catalog-pagination-btn.is-current {
  background: #0051d7;
  color: #fff;
  font-weight: 500;
}

.catalog-pagination-btn:disabled {
  opacity: 0.38;
  cursor: default;
}

.btn-quote {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 999px;
  background: #0051d7;
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  transition: 0.2s ease;
}

.btn-quote:hover {
  background: var(--blue-hover);
}

.btn-quote svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

/* Promo banners (antes de produtos em destaque) */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.promo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius);
  background: #f7f9fc;
  aspect-ratio: 1748 / 1240;
}

.promo-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.promo-banner {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: var(--radius);
}

.promo-banner img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Catalog toolbar */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
  margin-top: 1.25rem;
}

.product-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.product-card .thumb {
  aspect-ratio: 1;
  background: #fafafa;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.product-card .thumb img {
  max-height: 180px;
  width: auto;
  object-fit: contain;
}

.product-card .body {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.product-card .sku {
  font-size: 0.75rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-card h3 {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
  min-height: 2.7em;
}

.price {
  margin-top: auto;
}

.price strong {
  display: block;
  color: var(--blue);
  font-size: 1.25rem;
}

.price span {
  font-size: 0.82rem;
  color: var(--muted);
}

.product-card .actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.product-card .actions .btn {
  flex: 1;
  padding: 0.65rem 0.5rem;
  font-size: 0.85rem;
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 2rem;
}

/* CTA */
.cta {
  background:
    linear-gradient(120deg, rgba(0, 81, 215, 0.92), rgba(11, 27, 58, 0.88)),
    url("https://workupy.s3.us-east-2.amazonaws.com/sites/6d223234-e726-4de4-bc6e-bd490edf7732/assets/assets/foto1.jpeg") center/cover;
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}

.cta h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 0.75rem;
}

.cta p {
  opacity: 0.92;
  margin-bottom: 1.4rem;
}

.cta .btn-primary {
  background: #fff;
  color: var(--blue);
}

.cta .btn-primary:hover {
  background: #eef4ff;
}

/* Footer */
.footer {
  background: #0b1b3a;
  color: #dce6ff;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
}

.footer h4 {
  color: #fff;
  margin-bottom: 0.85rem;
  font-size: 1rem;
}

.footer p,
.footer a {
  color: #b8c7ea;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  color: #90a3d4;
  text-align: center;
}

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

  .logo img {
    width: 140px;
  }
}

@media (max-width: 980px) {
  .nav-cats {
    display: none;
  }
}

@media (max-width: 640px) {
  .topbar-inner {
    flex-wrap: wrap;
  }

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

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

  .best-grid,
  .offer-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-slide img.desktop {
    display: none;
  }

  .hero-slide img.mobile {
    display: block;
    height: 200px;
  }
}

@media (min-width: 641px) {
  .hero-slide img.mobile {
    display: none;
  }
}

/* Product detail modal */
.catalog-modal[hidden] {
  display: none !important;
}

.catalog-modal:not([hidden]) {
  display: flex;
}

.catalog-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.catalog-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
}

.catalog-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(840px, 100%);
  max-height: min(90vh, 720px);
  overflow: hidden;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 16px;
  padding: 22px;
}

.catalog-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: #f3f3f3;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #333;
  z-index: 2;
}

.catalog-modal-media {
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  background: #fafafa;
  min-height: 240px;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  align-self: start;
}

.catalog-modal-media img {
  max-width: 100%;
  max-height: 280px;
  object-fit: contain;
}

.catalog-modal-content {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}

.catalog-modal-content h3 {
  margin: 0 0 10px;
  font-size: 21px;
  color: #222;
  flex-shrink: 0;
  padding-right: 2rem;
}

.catalog-modal-sku {
  margin: 0 0 6px;
  font-size: 13px;
  color: #666;
  font-weight: 600;
  flex-shrink: 0;
}

.catalog-modal-price {
  display: none;
}

.catalog-modal-description {
  margin: 0 0 12px;
  line-height: 1.5;
  color: #444;
  font-size: 14px;
  flex-shrink: 0;
  max-height: 7.5em;
  overflow-y: auto;
}

.catalog-modal-tecnico {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-top: 4px;
}

.catalog-modal-tecnico-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: #111;
  flex-shrink: 0;
}

.catalog-modal-tecnico-body {
  flex: 1 1 auto;
  min-height: 140px;
  max-height: min(45vh, 360px);
  overflow-y: auto;
  overflow-x: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  padding: 10px 12px;
  background: #fafafa;
  font-size: 11px;
  line-height: 1.45;
  color: #444;
}

.catalog-modal-tecnico-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.catalog-modal-tecnico-body span,
.catalog-modal-tecnico-body strong,
.catalog-modal-tecnico-body td,
.catalog-modal-tecnico-body th,
.catalog-modal-tecnico-body p {
  font-size: inherit !important;
}

.catalog-modal-tecnico-body td,
.catalog-modal-tecnico-body th {
  border: 1px solid #ddd;
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
}

.catalog-modal-tecnico-body tr:nth-child(even) {
  background: #f0f0f0;
}

.catalog-modal-tecnico-body p {
  margin: 0 0 8px;
}

.catalog-modal-tecnico-body hr {
  display: none;
}

@media (max-width: 760px) {
  .catalog-modal {
    padding: 10px;
  }

  .catalog-modal-dialog {
    grid-template-columns: 1fr;
    width: 100%;
    max-height: min(92vh, 720px);
    padding: 16px 14px 18px;
    gap: 12px;
    overflow-y: auto;
  }

  .catalog-modal-content h3 {
    font-size: 18px;
    line-height: 1.35;
  }

  .catalog-modal-media {
    min-height: 160px;
  }

  .catalog-modal-media img {
    max-height: 200px;
  }

  .catalog-modal-tecnico-body {
    min-height: 120px;
    max-height: min(40vh, 280px);
  }
}

