:root {
  --ap-navy: #1e3a5f;
  --ap-navy-soft: #274a73;
  --ap-red: #a62130;
  --ap-ink: #1a1f2e;
  --ap-muted: #5b6475;
  --ap-line: #d9dee8;
  --ap-bg: #f7f8fb;
  --ap-white: #ffffff;
  --ap-shadow: 0 18px 50px rgba(20, 33, 61, 0.08);
  --ap-radius: 22px;
  --ap-font: "Source Sans 3", sans-serif;
  --ap-display: "Barlow Condensed", sans-serif;
  --ap-header-h: 5.75rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ap-font);
  color: var(--ap-ink);
  background:
    radial-gradient(circle at 10% -10%, rgba(193, 18, 31, 0.08), transparent 35%),
    radial-gradient(circle at 90% 0%, rgba(20, 33, 61, 0.08), transparent 40%),
    linear-gradient(180deg, #ffffff 0%, var(--ap-bg) 42%, #eef1f7 100%);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.ap-card__img,
.ap-product__img { max-width: 100%; height: 100%; }

.ap-wrap {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  max-width: 100%;
  box-sizing: border-box;
}

.ap-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(20, 33, 61, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow .25s ease, background .25s ease;
  overflow: visible;
}

.ap-header.is-slim {
  box-shadow: 0 10px 30px rgba(20, 33, 61, 0.08);
  background: rgba(255, 255, 255, 0.98);
}

/* Home: banner começa abaixo do header (não por baixo dele) */
body.is-home .ap-brand-slider,
body.is-home .ap-hero {
  margin-top: 0;
}

body.is-home .ap-brand-slider__viewport,
body.is-home .ap-brand-slide__inner,
body.is-home .ap-hero {
  min-height: calc(100vh - var(--ap-header-h));
  min-height: calc(100dvh - var(--ap-header-h));
  height: calc(100vh - var(--ap-header-h));
  height: calc(100dvh - var(--ap-header-h));
}

body.is-home .ap-brand-slide__inner,
body.is-home .ap-hero {
  padding-top: 2.5rem;
  padding-bottom: 3.25rem;
  box-sizing: border-box;
}

.ap-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  min-height: 76px;
  padding: 0.65rem 0;
  transition: min-height .28s ease, padding .28s ease, gap .28s ease;
  overflow: visible;
}

.ap-header.is-slim .ap-header__inner {
  min-height: 60px;
  padding: 0.35rem 0;
  gap: 1rem;
}

.ap-logo {
  justify-self: start;
  display: flex;
  align-items: center;
  padding: 0;
}

.ap-logo img {
  width: clamp(108px, 12vw, 138px);
  height: auto;
  mix-blend-mode: multiply;
  transition: width .28s ease;
}

.ap-header.is-slim .ap-logo img {
  width: clamp(92px, 10vw, 112px);
}

.ap-header.is-slim .ap-icon-btn {
  width: 36px;
  height: 36px;
}

.ap-nav {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 1.35rem;
  font-weight: 600;
  color: var(--ap-navy);
  overflow: visible;
}

.ap-nav__link {
  position: relative;
  padding: 0.4rem 0;
  color: var(--ap-navy);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color .18s ease;
}
.ap-nav__link:hover {
  color: var(--ap-red);
}

.ap-menu {
  position: relative;
  z-index: 45;
  overflow: visible;
}

.ap-menu__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 0;
  background: transparent;
  color: var(--ap-navy);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.4rem 0;
  transition: color .18s ease;
}
.ap-menu__btn:hover {
  color: var(--ap-red);
}

.ap-menu__chev {
  width: 0.42rem;
  height: 0.42rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform .2s ease;
  opacity: 0.75;
  flex-shrink: 0;
}

.ap-menu.is-open .ap-menu__chev {
  transform: rotate(225deg) translateY(-1px);
}

.ap-menu__panel {
  position: absolute;
  top: calc(100% + 0.85rem);
  left: 0;
  transform: none;
  min-width: 250px;
  padding: 0.45rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(20, 33, 61, 0.08);
  box-shadow: 0 18px 40px rgba(15, 28, 46, 0.14);
  display: grid;
  gap: 0.15rem;
  z-index: 60;
}

.ap-menu__panel[hidden] {
  display: none;
}

.ap-menu__link {
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  color: var(--ap-navy);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
}

.ap-menu__link:hover {
  background: var(--ap-navy);
  color: #fff;
}

.ap-menu__link.is-active {
  background: rgba(30, 58, 95, 0.08);
  color: var(--ap-red);
}

.ap-menu__link.is-active:hover {
  background: var(--ap-navy);
  color: #fff;
}

.ap-header__burger {
  display: none !important;
}
.ap-header__burger-lines {
  display: grid;
  gap: 4px;
  width: 16px;
}
.ap-header__burger-lines span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .22s ease, opacity .18s ease;
  transform-origin: center;
}
body.ap-drawer-open .ap-header__burger-lines span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
body.ap-drawer-open .ap-header__burger-lines span:nth-child(2) {
  opacity: 0;
}
body.ap-drawer-open .ap-header__burger-lines span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Drawer mobile */
.ap-drawer {
  position: fixed;
  inset: 0;
  z-index: 85;
  pointer-events: none;
}
.ap-drawer[hidden] {
  display: none !important;
}
.ap-drawer.is-open {
  pointer-events: auto;
}
.ap-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 32, 0.48);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .28s ease;
}
.ap-drawer.is-open .ap-drawer__backdrop {
  opacity: 1;
}
.ap-drawer__panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(86vw, 320px);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.05rem 1.05rem 1.15rem;
  background: #fff;
  box-shadow: 18px 0 48px rgba(10, 18, 32, 0.18);
  transform: translateX(-104%);
  transition: transform .3s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}
.ap-drawer.is-open .ap-drawer__panel {
  transform: translateX(0);
}
.ap-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(20, 33, 61, 0.08);
  flex-shrink: 0;
}
.ap-drawer__brand {
  margin: 0;
  font-family: var(--ap-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ap-navy);
  line-height: 1.2;
}
.ap-drawer__nav {
  display: grid;
  gap: 0.15rem;
  align-content: start;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 0.1rem;
}
.ap-drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
  padding: 0.8rem 0.85rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ap-navy);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}
.ap-drawer__link:hover,
.ap-drawer__link:focus-visible {
  background: rgba(30, 58, 95, 0.07);
  color: var(--ap-red);
}
.ap-drawer__link--toggle[aria-expanded="true"] {
  background: rgba(30, 58, 95, 0.07);
  color: var(--ap-navy);
}
.ap-drawer__chev {
  flex-shrink: 0;
  opacity: 0.65;
  transition: transform .2s ease;
}
.ap-drawer__link--toggle[aria-expanded="true"] .ap-drawer__chev {
  transform: rotate(180deg);
}
.ap-drawer__group {
  display: grid;
  gap: 0.1rem;
}
.ap-drawer__submenu {
  display: grid;
  gap: 0.08rem;
  margin: 0.1rem 0 0.35rem;
  padding: 0.25rem 0 0.25rem 0.55rem;
  border-left: 2px solid rgba(30, 58, 95, 0.12);
}
.ap-drawer__submenu[hidden] {
  display: none !important;
}
.ap-drawer__sublink {
  display: block;
  padding: 0.58rem 0.75rem;
  border-radius: 10px;
  color: var(--ap-navy);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.ap-drawer__sublink:hover,
.ap-drawer__sublink:focus-visible {
  background: rgba(30, 58, 95, 0.06);
  color: var(--ap-red);
}

.ap-drawer__foot {
  margin-top: auto;
  flex-shrink: 0;
  display: grid;
  gap: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(20, 33, 61, 0.08);
}
.ap-drawer__lang {
  margin: 0;
  padding: 0;
  border: 0;
}
.ap-drawer__label {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ap-muted);
}
.ap-drawer__flags {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}
.ap-drawer__flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  min-height: 2.45rem;
  padding: 0.4rem 0.35rem;
  border: 1px solid rgba(20, 33, 61, 0.1);
  border-radius: 999px;
  background: #fff;
  color: var(--ap-navy);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.ap-drawer__flag img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(20, 33, 61, 0.12);
  flex-shrink: 0;
}
.ap-drawer__flag-code {
  line-height: 1;
}
.ap-drawer__flag:hover {
  background: #f4f6fa;
}
.ap-drawer__flag.is-active {
  border-color: rgba(30, 58, 95, 0.28);
  background: rgba(30, 58, 95, 0.08);
  box-shadow: 0 6px 14px rgba(15, 28, 46, 0.08);
}
.ap-drawer__cta {
  padding: 0;
}
.ap-drawer__cta .ap-btn {
  width: 100%;
  justify-content: center;
  text-align: center;
  min-height: 3rem;
  box-shadow: 0 12px 28px rgba(20, 33, 61, 0.2);
}
body.ap-drawer-open {
  overflow: hidden;
}

.ap-header__tools {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.ap-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(20, 33, 61, 0.12);
  border-radius: 999px;
  background: #fff;
  color: var(--ap-navy);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.ap-icon-btn:hover {
  border-color: rgba(30, 58, 95, 0.28);
  background: #f5f7fb;
  box-shadow: 0 6px 16px rgba(15, 28, 46, 0.08);
}

.ap-lang {
  position: relative;
  z-index: 50;
}
.ap-lang__toggle.is-open,
.ap-lang.is-open .ap-lang__toggle {
  border-color: rgba(30, 58, 95, 0.28);
  background: #f5f7fb;
  box-shadow: 0 6px 16px rgba(15, 28, 46, 0.08);
}
.ap-lang__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 70;
  width: auto;
  min-width: 0;
  padding: 0.45rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(20, 33, 61, 0.1);
  box-shadow: 0 18px 40px rgba(15, 28, 46, 0.16);
  transform-origin: top right;
  animation: ap-lang-in .16s ease;
}
.ap-lang__menu[hidden] {
  display: none;
}
.ap-lang__grid {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.ap-lang__option {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 36px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.ap-lang__option:hover {
  background: #f0f3f8;
  border-color: rgba(30, 58, 95, 0.12);
  transform: translateY(-1px);
}
.ap-lang__option.is-active {
  background: rgba(30, 58, 95, 0.08);
  border-color: rgba(30, 58, 95, 0.22);
}
.ap-lang__flag {
  width: 28px;
  height: 19px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(20, 33, 61, 0.12);
  display: block;
}

@keyframes ap-lang-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ap-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;
}

.ap-search-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: start center;
  padding: 8vh 1rem 2rem;
}
.ap-search-modal[hidden] { display: none !important; }
.ap-search-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 32, 0.55);
  backdrop-filter: blur(4px);
}
.ap-search-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  animation: apBrandIn .25s ease both;
}
.ap-search-modal__bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid rgba(20, 33, 61, 0.08);
}
.ap-search-modal__icon { color: var(--ap-muted); }
.ap-search-modal__form { min-width: 0; }
.ap-search-modal__form input {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1.05rem;
  color: var(--ap-ink);
  outline: none;
}
.ap-search-modal__close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #eef1f7;
  color: var(--ap-navy);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.ap-search-modal__body {
  padding: 0.75rem 0.75rem 1rem;
  max-height: min(52vh, 420px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(30, 58, 95, 0.35) transparent;
}
.ap-search-modal__body::-webkit-scrollbar {
  width: 8px;
}
.ap-search-modal__body::-webkit-scrollbar-track {
  background: transparent;
  margin: 6px 0;
}
.ap-search-modal__body::-webkit-scrollbar-thumb {
  background: rgba(30, 58, 95, 0.28);
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.ap-search-modal__body::-webkit-scrollbar-thumb:hover {
  background: rgba(30, 58, 95, 0.48);
  border: 2px solid transparent;
  background-clip: padding-box;
}
.ap-search-modal__hint {
  margin: 0 0.5rem 0.55rem;
  color: var(--ap-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ap-search-modal__list {
  display: grid;
  gap: 0.25rem;
}
.ap-search-modal__item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 0.6rem;
  border-radius: 12px;
  color: inherit;
}
.ap-search-modal__item:hover,
.ap-search-modal__item.is-active {
  background: #f0f3f8;
}
.ap-search-modal__thumb {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(20, 33, 61, 0.08);
}
.ap-search-modal__thumb--empty {
  display: block;
  background: linear-gradient(135deg, #eef2f8, #dde4f0);
}
.ap-search-modal__meta {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.ap-search-modal__meta strong {
  color: var(--ap-navy);
  font-size: 0.98rem;
  line-height: 1.25;
}
.ap-search-modal__meta span {
  color: var(--ap-muted);
  font-size: 0.84rem;
}
.ap-search-modal__empty {
  margin: 1rem 0.5rem;
  color: var(--ap-muted);
}
body.ap-search-open { overflow: hidden; }

.ap-hero {
  padding: 3.5rem 0 2.25rem;
}

.ap-hero__inner {
  max-width: 720px;
}

/* Brand category slider */
.ap-brand-slider {
  position: relative;
  margin: 0;
}

/* Espaço lateral para as setas — dentro do wrap centralizado */
.ap-brand-slider:has(.ap-brand-slider__nav) .ap-brand-slide__inner {
  padding-left: 0;
  padding-right: 0;
  /* setas ficam fora do wrap; wrap já tem margem lateral via ap-wrap */
  width: min(1120px, calc(100% - clamp(5.5rem, 9vw, 7.5rem)));
}

.ap-brand-slider__viewport {
  position: relative;
  min-height: calc(100vh - var(--ap-header-h));
  min-height: calc(100dvh - var(--ap-header-h));
  height: calc(100vh - var(--ap-header-h));
  height: calc(100dvh - var(--ap-header-h));
  overflow: hidden;
  background: #0f1c2e;
}

.ap-brand-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease, visibility .7s ease;
  pointer-events: none;
}

.ap-brand-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ap-brand-slide[hidden] {
  display: block;
}

.ap-brand-slide__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 78% 20%, rgba(166, 33, 48, 0.28), transparent 42%),
    radial-gradient(ellipse at 12% 80%, rgba(39, 74, 115, 0.55), transparent 48%),
    linear-gradient(135deg, #0d1a2c 0%, #1e3a5f 48%, #152a45 100%);
}

.ap-brand-slide__media img,
.ap-brand-slide__media picture {
  width: 100%;
  height: 100%;
  display: block;
}
.ap-brand-slide__media picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}

.ap-brand-slide__media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}

/* Parallax: camada de fundo um pouco maior para deslocar no scroll */
.ap-brand-slider[data-brand-parallax] .ap-brand-slide__media > img,
.ap-brand-slider[data-brand-parallax] .ap-brand-slide__media picture {
  position: absolute;
  left: 0;
  top: -8%;
  width: 100%;
  height: 116%;
}
.ap-brand-slider[data-brand-parallax] .ap-brand-slide__media > img,
.ap-brand-slider[data-brand-parallax] .ap-brand-slide__media picture img {
  transform: translate3d(0, 0, 0) scale(1.04);
  will-change: transform;
  backface-visibility: hidden;
}
.ap-brand-slider[data-brand-parallax] .ap-brand-slide__media picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: translate3d(0, 0, 0) scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .ap-brand-slider[data-brand-parallax] .ap-brand-slide__media > img,
  .ap-brand-slider[data-brand-parallax] .ap-brand-slide__media picture {
    top: 0;
    height: 100%;
  }
  .ap-brand-slider[data-brand-parallax] .ap-brand-slide__media > img,
  .ap-brand-slider[data-brand-parallax] .ap-brand-slide__media picture img {
    transform: none;
    will-change: auto;
  }
}

.ap-brand-slide__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(12, 22, 38, 0.88) 0%, rgba(12, 22, 38, 0.62) 42%, rgba(12, 22, 38, 0.28) 68%, rgba(12, 22, 38, 0.45) 100%),
    linear-gradient(180deg, rgba(12, 22, 38, 0.18) 0%, rgba(12, 22, 38, 0.55) 100%);
}

.ap-brand-slide--category .ap-brand-slide__veil {
  background:
    linear-gradient(110deg, rgba(10, 18, 32, 0.55) 0%, rgba(10, 18, 32, 0.2) 55%, rgba(10, 18, 32, 0.45) 100%);
}

.ap-brand-slide--category.has-product .ap-brand-slide__inner {
  grid-template-columns: none;
}

.ap-brand-slide__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 1.75rem;
  min-height: calc(100vh - var(--ap-header-h));
  min-height: calc(100dvh - var(--ap-header-h));
  height: 100%;
  padding: 2.5rem 0 3.25rem;
  box-sizing: border-box;
}

/* Container no centro do banner; conteúdo alinhado à esquerda do wrap */
body.is-home .ap-brand-slide.has-product .ap-brand-slide__inner,
.ap-brand-slide.has-product .ap-brand-slide__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  align-content: center;
  gap: clamp(1.35rem, 3.2vw, 2.5rem) clamp(1.5rem, 3.8vw, 2.85rem);
  grid-template-columns: none;
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
}

.ap-brand-slide.has-product .ap-brand-mini,
.ap-brand-slide.has-product .ap-brand-slide__product,
.ap-brand-slide.has-product .ap-brand-slide__copy {
  align-self: center;
}

.ap-brand-slide__copy {
  max-width: 48rem;
  color: #fff;
}

.ap-brand-slide.has-product .ap-brand-slide__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  flex: 1 1 18rem;
  max-width: none;
  min-width: min(14rem, 100%);
  width: auto;
}

/* Entrada em cascata: título → texto → CTA / card */
.ap-brand-slide.is-active.is-anim .ap-brand-slide__eyebrow {
  animation: apBrandIn .55s ease both;
}
.ap-brand-slide.is-active.is-anim .ap-brand-slide__title {
  animation: apBrandIn .7s cubic-bezier(.22, .61, .36, 1) .06s both;
}
.ap-brand-slide.is-active.is-anim .ap-brand-slide__html {
  animation: apBrandIn .7s cubic-bezier(.22, .61, .36, 1) .14s both;
}
.ap-brand-slide.is-active.is-anim .ap-brand-slide__copy .ap-btn {
  animation: apBrandIn .65s cubic-bezier(.22, .61, .36, 1) .24s both;
}
.ap-brand-slide.is-active.is-anim .ap-brand-mini,
.ap-brand-slide.is-active.is-anim .ap-brand-slide__product {
  animation: apBrandCardIn .8s cubic-bezier(.22, .61, .36, 1) .04s both;
}

.ap-brand-slide.is-leaving .ap-brand-slide__copy,
.ap-brand-slide.is-leaving .ap-brand-mini,
.ap-brand-slide.is-leaving .ap-brand-slide__product {
  animation: apBrandOut .35s ease both;
}

/* Com card ao lado, em telas médias permite quebra natural */
@media (max-width: 960px) {
  .ap-brand-slide.has-product .ap-brand-slide__title {
    white-space: normal;
  }
}

.ap-brand-slide__eyebrow {
  color: #f0b7be;
}

.ap-brand-slide__title {
  margin: 0 0 1rem;
  font-family: var(--ap-display);
  font-size: clamp(2.2rem, 5.2vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: 0.03em;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

.ap-brand-slide__html {
  margin: 0 0 1.4rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: none;
  text-wrap: wrap;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

.ap-brand-slide.has-product .ap-brand-slide__html {
  max-width: none;
}

.ap-brand-slide__html p { margin: 0 0 0.75rem; }
.ap-brand-slide__html p:last-child { margin-bottom: 0; }
.ap-brand-slide__html a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ap-brand-slide__html ul,
.ap-brand-slide__html ol {
  margin: 0.4rem 0 0.9rem;
  padding-left: 1.15rem;
}

.ap-brand-slide__copy .ap-btn {
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.ap-brand-slide__product {
  justify-self: start;
  display: grid;
  gap: 0.85rem;
  justify-items: center;
  width: min(100%, 280px);
  color: #fff;
}

.ap-brand-mini {
  justify-self: start;
  flex: 0 0 auto;
  width: min(100%, 280px);
  color: #fff;
}

.ap-brand-slide.has-product .ap-brand-slide__product {
  flex: 0 0 auto;
  width: min(280px, 100%);
}

.ap-brand-mini__viewport {
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.ap-brand-mini__item {
  display: grid;
  gap: 0.85rem;
  justify-items: center;
  width: 100%;
  color: #fff;
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(112%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    transform .55s cubic-bezier(.22, .61, .36, 1),
    opacity .4s ease,
    visibility .4s ease;
}

.ap-brand-mini__item.is-active {
  position: relative;
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ap-brand-mini__item.is-enter {
  transform: translateY(112%);
  opacity: 0;
  visibility: visible;
}

.ap-brand-mini__item.is-exit {
  position: absolute;
  transform: translateY(-112%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ap-brand-mini__item[hidden] {
  display: grid !important;
}

.ap-brand-mini__item[hidden]:not(.is-active):not(.is-exit):not(.is-enter) {
  visibility: hidden;
  pointer-events: none;
}

.ap-brand-mini__frame {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  padding: 1.1rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  transition: opacity .3s ease, transform .3s ease;
}

.ap-brand-mini__frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ap-brand-mini__placeholder {
  color: var(--ap-navy);
  font-family: var(--ap-display);
  text-align: center;
  padding: 1rem;
}

.ap-brand-mini__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.65rem;
  text-align: center;
  transition: opacity .28s ease, transform .28s ease;
  will-change: opacity, transform;
}

/* Nome + mg saem primeiro; entram depois do card */
.ap-brand-mini__item.is-meta-out .ap-brand-mini__meta {
  opacity: 0;
  transform: translateY(-10px);
}
.ap-brand-mini__item.is-meta-out .ap-brand-mini__frame {
  opacity: 0.55;
  transform: scale(0.97);
}
.ap-brand-mini__item.is-enter .ap-brand-mini__meta,
.ap-brand-mini__item.is-active.is-meta-in .ap-brand-mini__meta {
  opacity: 0;
  transform: translateY(10px);
}
.ap-brand-mini__item.is-active:not(.is-meta-in) .ap-brand-mini__meta {
  opacity: 1;
  transform: translateY(0);
}

.ap-brand-mini__meta .ap-chip {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.ap-brand-mini__meta strong {
  font-family: var(--ap-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.ap-brand-mini__dots {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.85rem;
  justify-content: center;
}

.ap-brand-mini__dot {
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}

.ap-brand-mini__dot.is-active {
  width: 1.25rem;
  background: #fff;
}

.ap-brand-slide__product-frame {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 1.1rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.ap-brand-slide__product-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ap-brand-slide__product-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.65rem;
  text-align: center;
}

.ap-brand-slide__product-meta .ap-chip {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.ap-brand-slide__product-meta strong {
  font-family: var(--ap-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.ap-brand-slide__hit {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.ap-brand-slider__nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(12, 22, 38, 0.42);
  color: #fff;
  line-height: 0;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transform: translate3d(0, -50%, 0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: background .2s ease, opacity .22s ease, visibility .22s ease, transform .22s ease;
}
.ap-brand-slider__nav--prev {
  left: clamp(0.65rem, 1.6vw, 1.25rem);
}
.ap-brand-slider__nav--next {
  right: clamp(0.65rem, 1.6vw, 1.25rem);
}
.ap-brand-slider:hover .ap-brand-slider__nav,
.ap-brand-slider:focus-within .ap-brand-slider__nav {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.ap-brand-slider__nav svg {
  display: block;
  width: 18px;
  height: 18px;
}

.ap-brand-slider__nav:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translate3d(0, calc(-50% - 1px), 0);
}
.ap-brand-slider__nav:focus-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}

.ap-brand-slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.35rem;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  pointer-events: none;
}

.ap-brand-slider__dot {
  pointer-events: auto;
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}

.ap-brand-slider__dot.is-active {
  width: 1.55rem;
  background: #fff;
}

@media (hover: none) {
  .ap-brand-slider__nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

@media (max-width: 759px) {
  .ap-brand-slider__nav {
    display: none !important;
  }
}

@keyframes apBrandIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes apBrandOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-12px); }
}

@keyframes apBrandCardIn {
  from { opacity: 0; transform: translateY(28px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes apBrandProductIn {
  from { opacity: 0; transform: translateY(22px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .ap-brand-slide.is-active.is-anim .ap-brand-slide__eyebrow,
  .ap-brand-slide.is-active.is-anim .ap-brand-slide__title,
  .ap-brand-slide.is-active.is-anim .ap-brand-slide__html,
  .ap-brand-slide.is-active.is-anim .ap-brand-slide__copy .ap-btn,
  .ap-brand-slide.is-active.is-anim .ap-brand-mini,
  .ap-brand-slide.is-active.is-anim .ap-brand-slide__product {
    animation: none;
  }
}

@media (max-width: 759px) {
  :root {
    --ap-header-h: 3.85rem;
    --ap-banner-mobile-h: clamp(300px, 58vw, 360px);
  }

  body.is-home .ap-brand-slide__inner,
  body.is-home .ap-hero {
    padding-top: 1.1rem;
  }

  /* Altura compacta no mobile — não ocupa a tela inteira */
  body.is-home .ap-brand-slider__viewport,
  body.is-home .ap-brand-slide__inner,
  .ap-brand-slider__viewport {
    min-height: var(--ap-banner-mobile-h);
    height: var(--ap-banner-mobile-h);
    touch-action: pan-y;
  }

  body.is-home .ap-brand-slide__inner,
  .ap-brand-slide__inner {
    min-height: var(--ap-banner-mobile-h);
    height: 100%;
    width: min(1120px, calc(100% - 2rem)) !important;
    padding: 1.5rem 0 2.75rem;
  }

  .ap-brand-slider:has(.ap-brand-slider__nav) .ap-brand-slide__inner {
    width: min(1120px, calc(100% - 2rem));
    padding-left: 0;
    padding-right: 0;
  }

  .ap-brand-slider__nav {
    display: none !important;
  }

  /* Mobile: banner limpo sem o mini-slider de produto */
  .ap-brand-mini,
  .ap-brand-slide__product {
    display: none !important;
  }

  body.is-home .ap-brand-slide.has-product .ap-brand-slide__inner,
  .ap-brand-slide.has-product .ap-brand-slide__inner,
  body.is-home .ap-brand-slide__inner,
  .ap-brand-slide__inner {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    align-content: center;
    justify-content: center;
    gap: 0;
    text-align: center;
  }

  .ap-brand-slide.has-product .ap-brand-slide__copy,
  .ap-brand-slide__copy {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    max-width: 22rem;
    min-width: 0;
    width: 100%;
    order: 0;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .ap-brand-slide.has-product .ap-brand-slide__title,
  .ap-brand-slide__title {
    font-size: clamp(1.7rem, 7.5vw, 2.2rem);
    margin-bottom: 0.55rem;
    white-space: normal;
    letter-spacing: 0.01em;
    text-shadow: 0 10px 36px rgba(0, 0, 0, 0.35);
    text-align: center;
    width: 100%;
  }

  .ap-brand-slide.has-product .ap-brand-slide__html,
  .ap-brand-slide__html {
    display: none !important;
  }

  .ap-brand-slide__copy .ap-btn,
  .ap-brand-slide.has-product .ap-brand-slide__copy .ap-btn {
    align-self: center;
    margin-left: auto;
    margin-right: auto;
    min-height: 2.7rem;
    padding: 0.7rem 1.25rem;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
  }

  /* Fundo: menos zoom/crop; foco ao centro */
  .ap-brand-slider[data-brand-parallax] .ap-brand-slide__media > img,
  .ap-brand-slider[data-brand-parallax] .ap-brand-slide__media picture {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  .ap-brand-slide__media picture {
    display: block;
    width: 100%;
    height: 100%;
  }
  .ap-brand-slide__media > img,
  .ap-brand-slide__media picture img,
  .ap-brand-slider[data-brand-parallax] .ap-brand-slide__media > img,
  .ap-brand-slider[data-brand-parallax] .ap-brand-slide__media picture img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: scale(1.03);
    will-change: transform;
  }
  .ap-brand-slide.is-active .ap-brand-slide__media > img,
  .ap-brand-slide.is-active .ap-brand-slide__media picture img {
    animation: apBrandKen 9s ease-out both;
  }

  .ap-brand-slide__veil {
    background:
      linear-gradient(180deg, rgba(10, 18, 32, 0.35) 0%, rgba(10, 18, 32, 0.45) 40%, rgba(10, 18, 32, 0.78) 100%),
      radial-gradient(ellipse at 50% 60%, rgba(166, 33, 48, 0.14), transparent 60%);
  }

  .ap-brand-slider__dots {
    bottom: 0.85rem;
    gap: 0.5rem;
  }
  .ap-brand-slider__dot {
    width: 0.48rem;
    height: 0.48rem;
    background: rgba(255, 255, 255, 0.38);
  }
  .ap-brand-slider__dot.is-active {
    width: 1.7rem;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
  }
}

@keyframes apBrandKen {
  from { transform: scale(1.08); }
  to { transform: scale(1.02); }
}

@media (prefers-reduced-motion: reduce) {
  .ap-brand-slide.is-active .ap-brand-slide__media > img,
  .ap-brand-slide.is-active .ap-brand-slide__media picture img {
    animation: none;
  }
}

/* Telas estreitas */
@media (max-width: 480px) {
  :root {
    --ap-banner-mobile-h: clamp(280px, 62vw, 340px);
  }

  .ap-brand-slide.has-product .ap-brand-slide__copy,
  .ap-brand-slide__copy {
    width: 100%;
    max-width: 100%;
  }

  .ap-brand-slide.has-product .ap-brand-slide__title,
  .ap-brand-slide__title {
    font-size: clamp(1.55rem, 8vw, 2rem);
  }
}

.ap-kicker {
  margin: 0 0 0.75rem;
  color: var(--ap-red);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.ap-hero h1,
.ap-product h1,
.ap-section h2 {
  font-family: var(--ap-display);
  color: var(--ap-navy);
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0 0 1rem;
  font-weight: 600;
  text-transform: none;
}

.ap-hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.ap-product h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
.ap-section h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.ap-lead {
  margin: 0 0 1.5rem;
  color: var(--ap-muted);
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 54ch;
}

.ap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.35rem;
  border-radius: 999px;
  background: var(--ap-navy);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--ap-shadow);
  transition: transform .2s ease, background .2s ease;
}

.ap-btn:hover { background: var(--ap-red); transform: translateY(-1px); }

.ap-section { padding: 2.5rem 0 3.5rem; }

/* Home folds */
.ap-fold {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  position: relative;
  scroll-margin-top: 5.5rem;
}
.ap-fold--soft {
  background:
    radial-gradient(ellipse at 12% 20%, rgba(166, 33, 48, 0.06), transparent 42%),
    linear-gradient(180deg, #f5f7fb 0%, #eef2f8 100%);
}
.ap-fold--plain {
  background: #fff;
}
.ap-fold__inner {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.ap-fold__head {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
}
.ap-fold__head .ap-kicker {
  margin-left: auto;
  margin-right: auto;
}
.ap-fold__head h2 {
  font-family: var(--ap-display);
  color: var(--ap-navy);
  letter-spacing: 0.02em;
  line-height: 1.08;
  margin: 0 0 0.85rem;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 600;
  text-wrap: balance;
}
.ap-fold__inner > .ap-fold__lead {
  margin-inline: auto;
  text-align: center;
}
.ap-fold__lead,
.ap-fold__lead p {
  color: var(--ap-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 52ch;
}
.ap-fold__head .ap-fold__lead,
.ap-fold__head .ap-fold__lead p {
  margin-inline: auto;
}
.ap-fold__lead p { margin: 0 0 0.85rem; }
.ap-fold__lead p:last-child { margin-bottom: 0; }
.ap-fold__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  text-align: center;
}
.ap-fold__note {
  margin: 0;
  color: var(--ap-muted);
  font-size: 0.92rem;
  max-width: 42ch;
}

.ap-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
.ap-feature {
  padding: 1.35rem 1.25rem 1.5rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(20, 33, 61, 0.08);
  box-shadow: 0 10px 30px rgba(15, 28, 46, 0.05);
  text-align: center;
}
.ap-fold--plain .ap-feature {
  background: #f7f9fc;
}
.ap-feature__key {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--ap-red);
  font-family: var(--ap-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.ap-feature h3 {
  margin: 0 0 0.55rem;
  color: var(--ap-navy);
  font-size: 1.05rem;
  line-height: 1.25;
}
.ap-feature p {
  margin: 0;
  color: var(--ap-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.ap-cat-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}
.ap-cat-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 calc((100% - 2.55rem) / 4);
  width: calc((100% - 2.55rem) / 4);
  max-width: 100%;
  min-height: 132px;
  padding: 1.1rem 1.15rem;
  border-radius: 16px;
  overflow: hidden;
  background: var(--ap-navy);
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.01em;
  isolation: isolate;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 10px 28px rgba(15, 28, 46, 0.12);
  text-align: center;
  box-sizing: border-box;
}
.ap-cat-card.has-bg {
  background-color: #0f1c2e;
  background-image: none;
}
.ap-cat-card__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--ap-cat-bg);
  background-size: cover;
  background-position: center;
  transform: scale(1.001);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  pointer-events: none;
}
.ap-cat-card.has-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 18, 32, 0.42) 0%, rgba(10, 18, 32, 0.58) 50%, rgba(10, 18, 32, 0.7) 100%),
    radial-gradient(ellipse at 50% 50%, rgba(10, 18, 32, 0.15), rgba(10, 18, 32, 0.55) 75%);
  transition: background 0.35s ease;
  pointer-events: none;
}
.ap-cat-card__label {
  position: relative;
  z-index: 2;
  font-family: var(--ap-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-align: center;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}
.ap-cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(15, 28, 46, 0.2);
  color: #fff;
}
.ap-cat-card.has-bg:hover .ap-cat-card__media {
  transform: scale(1.1);
}
.ap-cat-card.has-bg:hover::before {
  background:
    linear-gradient(180deg, rgba(10, 18, 32, 0.36) 0%, rgba(10, 18, 32, 0.5) 50%, rgba(10, 18, 32, 0.64) 100%),
    radial-gradient(ellipse at 50% 50%, rgba(10, 18, 32, 0.1), rgba(10, 18, 32, 0.48) 75%);
}
.ap-cat-card:not(.has-bg):hover {
  background: var(--ap-red);
}

@media (prefers-reduced-motion: reduce) {
  .ap-cat-card,
  .ap-cat-card__media,
  .ap-cat-card.has-bg::before {
    transition: none;
  }
  .ap-cat-card.has-bg:hover .ap-cat-card__media {
    transform: none;
  }
}

.ap-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.ap-steps__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  align-items: start;
  padding: 1.15rem 1.25rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(20, 33, 61, 0.08);
}
.ap-fold--plain .ap-steps__item { background: #f7f9fc; }
.ap-steps__num {
  display: inline-grid;
  place-items: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  background: var(--ap-navy);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
}
.ap-steps__item h3 {
  margin: 0 0 0.35rem;
  color: var(--ap-navy);
  font-size: 1.05rem;
}
.ap-steps__item p {
  margin: 0;
  color: var(--ap-muted);
  line-height: 1.6;
}

.ap-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.ap-stats__item {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 18px;
  background: var(--ap-navy);
  color: #fff;
}
.ap-stats__item strong {
  display: block;
  font-family: var(--ap-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.55rem;
}
.ap-stats__item span {
  color: rgba(255,255,255,0.78);
  font-weight: 600;
  font-size: 0.95rem;
}

.ap-page {
  padding-top: 3rem;
  padding-bottom: 4rem;
}
.ap-page h1 {
  font-family: var(--ap-display);
  color: var(--ap-navy);
  font-size: clamp(2.15rem, 4.2vw, 3.2rem);
  letter-spacing: 0.02em;
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 1.25rem;
  max-width: 20ch;
}
.ap-page__body {
  color: var(--ap-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 68ch;
}
.ap-page__body p { margin: 0 0 1rem; }
.ap-page__body ol,
.ap-page__body ul { margin: 0 0 1.25rem; padding-left: 1.2rem; }
.ap-page__body li { margin-bottom: 0.65rem; }
.ap-page__body a { color: var(--ap-navy); text-decoration: underline; text-underline-offset: 3px; }
.ap-page__cta { margin-top: 1.75rem; }

/* Cotação — dobra full-bleed na home */
.ap-quote-fold {
  padding: clamp(4.5rem, 10vw, 7.5rem) 0 clamp(2.75rem, 5.5vw, 4rem);
  overflow: hidden;
  color: #fff;
  scroll-margin-top: 5.25rem;
}
.ap-quote-fold__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #0d1a2c;
}
.ap-quote-fold__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  transform: scale(1.04);
}
.ap-quote-fold__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(10, 18, 32, 0.94) 0%, rgba(10, 18, 32, 0.82) 38%, rgba(10, 18, 32, 0.48) 68%, rgba(10, 18, 32, 0.62) 100%),
    linear-gradient(180deg, rgba(12, 22, 38, 0.18) 0%, rgba(12, 22, 38, 0.5) 100%),
    radial-gradient(ellipse at 82% 22%, rgba(166, 33, 48, 0.18), transparent 44%);
}
.ap-quote-fold__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: center;
}
.ap-quote-fold__copy {
  max-width: 34rem;
  animation: apBrandIn .7s ease both;
}
.ap-quote-fold__kicker {
  color: #f0b7be;
}
.ap-quote-fold__copy h2 {
  margin: 0 0 1rem;
  font-family: var(--ap-display);
  font-size: clamp(2.15rem, 4.8vw, 3.45rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  font-weight: 600;
  color: #fff;
  text-wrap: balance;
  max-width: none;
}
.ap-quote-fold__lead,
.ap-quote-fold__lead p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 48ch;
}
.ap-quote-fold__lead p { margin: 0 0 0.85rem; }
.ap-quote-fold__lead p:last-child { margin-bottom: 0; }
.ap-quote-fold__note {
  margin: 1.35rem 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  max-width: 42ch;
  backdrop-filter: blur(8px);
}
.ap-quote-fold__panel {
  animation: apBrandProductIn .85s ease .06s both;
}
.ap-quote-fold .ap-contact {
  margin: 0;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}
.ap-quote-fold .ap-contact__actions {
  justify-content: flex-start;
}
.ap-quote-fold .ap-contact__legal,
.ap-quote-fold .ap-contact__hint {
  text-align: left;
}

/* Lead / Cotação — estilo legado (página) */
.ap-lead-page {
  min-height: calc(100vh - 5.5rem);
  display: flex;
  align-items: center;
}
.ap-lead-page__inner {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
}
.ap-lead-page__head {
  text-align: center;
  margin-bottom: 1.75rem;
}
.ap-lead-page__head h1 {
  font-family: var(--ap-display);
  color: var(--ap-navy);
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  letter-spacing: 0.02em;
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.75rem;
  max-width: none;
}
.ap-lead-page__lead {
  margin: 0 auto;
  max-width: 36ch;
  color: var(--ap-muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.ap-contact {
  margin-top: 0;
  padding: 1.6rem 1.5rem 1.4rem;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(20, 33, 61, 0.08);
  box-shadow: 0 18px 48px rgba(15, 28, 46, 0.1);
}
.ap-contact__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.ap-contact__form { position: relative; }
.ap-contact__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1rem;
}
.ap-field {
  display: grid;
  gap: 0.35rem;
}
.ap-field--full { grid-column: 1 / -1; }
.ap-field label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ap-navy);
}
.ap-field input,
.ap-field textarea {
  width: 100%;
  border: 1px solid rgba(20, 33, 61, 0.14);
  border-radius: 12px;
  background: #f8fafc;
  color: var(--ap-ink);
  font: inherit;
  padding: 0.78rem 0.9rem;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.ap-field textarea { resize: vertical; min-height: 100px; }
.ap-field input:focus,
.ap-field textarea:focus {
  outline: none;
  background: #fff;
  border-color: rgba(30, 58, 95, 0.45);
  box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.1);
}
.ap-contact__captcha-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.ap-contact__captcha-media {
  position: relative;
  flex: 0 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(20, 33, 61, 0.12);
  background: #eef2f7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.ap-contact__captcha-img {
  display: block;
  width: 180px;
  height: 58px;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}
.ap-contact__captcha-refresh {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: inline-grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(30, 58, 95, 0.88);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(15, 28, 46, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: background .18s ease, transform .18s ease, opacity .18s ease, visibility .18s ease;
}
.ap-contact__captcha-media:hover .ap-contact__captcha-refresh,
.ap-contact__captcha-media:focus-within .ap-contact__captcha-refresh {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.ap-contact__captcha-refresh:hover {
  background: var(--ap-navy);
  transform: translateY(-1px);
}
.ap-contact__captcha-refresh:focus-visible {
  outline: 2px solid rgba(30, 58, 95, 0.45);
  outline-offset: 2px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.ap-contact__captcha-row input {
  flex: 1 1 8rem;
  min-width: 8rem;
  max-width: 12rem;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.ap-contact__captcha-hint {
  margin: 0.4rem 0 0;
  color: var(--ap-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}
.ap-contact__legal {
  margin: 0.85rem 0 0;
  color: var(--ap-muted);
  font-size: 0.8rem;
  line-height: 1.45;
  text-align: center;
}
.ap-contact__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.1rem;
  margin-top: 1.25rem;
}
.ap-contact__actions .ap-btn {
  position: relative;
  min-width: 200px;
  justify-content: center;
}
.ap-contact__actions .ap-btn .ap-btn__spinner {
  display: none;
  width: 1.05rem;
  height: 1.05rem;
  margin-left: 0.55rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: apContactSpin .7s linear infinite;
}
.ap-contact__actions .ap-btn.is-loading {
  cursor: wait;
  opacity: 0.92;
  pointer-events: none;
}
.ap-contact__actions .ap-btn.is-loading .ap-btn__spinner {
  display: inline-block;
  vertical-align: -0.15em;
}
@keyframes apContactSpin {
  to { transform: rotate(360deg); }
}

/* Modal feedback — sucesso / erro do formulário */
body.ap-feedback-open {
  overflow: hidden;
}
.ap-feedback {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}
.ap-feedback[hidden] {
  display: none !important;
}
.ap-feedback__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(30, 58, 95, 0.28), transparent 55%),
    rgba(10, 16, 28, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .28s ease;
}
.ap-feedback.is-open .ap-feedback__backdrop {
  opacity: 1;
}
.ap-feedback.is-closing .ap-feedback__backdrop {
  opacity: 0;
}
.ap-feedback__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 26.5rem);
  padding: 2.1rem 1.75rem 1.6rem;
  border-radius: 22px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  border: 1px solid rgba(30, 58, 95, 0.1);
  box-shadow:
    0 28px 80px rgba(8, 16, 32, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  text-align: center;
  transform: translateY(18px) scale(0.96);
  opacity: 0;
  transition: transform .36s cubic-bezier(.22, .61, .36, 1), opacity .28s ease;
}
.ap-feedback.is-open .ap-feedback__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.ap-feedback.is-closing .ap-feedback__dialog {
  transform: translateY(10px) scale(0.97);
  opacity: 0;
}
.ap-feedback__x {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(20, 33, 61, 0.06);
  color: var(--ap-muted);
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.ap-feedback__x:hover {
  background: rgba(20, 33, 61, 0.12);
  color: var(--ap-ink);
}
.ap-feedback__icon {
  position: relative;
  width: 5.25rem;
  height: 5.25rem;
  margin: 0.15rem auto 1.15rem;
  display: grid;
  place-items: center;
}
.ap-feedback__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(30, 58, 95, 0.14), transparent 68%);
  transform: scale(0.7);
  opacity: 0;
}
.ap-feedback.is-open .ap-feedback__ring {
  animation: apFeedbackPulse .9s ease .08s both;
}
.ap-feedback__ring--err {
  background: radial-gradient(circle at 50% 45%, rgba(166, 33, 48, 0.16), transparent 68%);
}
.ap-feedback__svg {
  width: 4.35rem;
  height: 4.35rem;
  position: relative;
  z-index: 1;
}
.ap-feedback.is-ok .ap-feedback__svg { color: var(--ap-navy); }
.ap-feedback.is-err .ap-feedback__svg { color: var(--ap-red); }
.ap-feedback__circle {
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  opacity: 0.95;
}
.ap-feedback.is-open .ap-feedback__circle {
  animation: apFeedbackDraw .7s ease forwards;
}
.ap-feedback__check {
  stroke-dasharray: 56;
  stroke-dashoffset: 56;
}
.ap-feedback.is-open.is-ok .ap-feedback__check {
  animation: apFeedbackDraw .45s ease .35s forwards;
}
.ap-feedback__bang,
.ap-feedback__dot {
  opacity: 0;
  transform-origin: center;
}
.ap-feedback.is-open.is-err .ap-feedback__bang {
  animation: apFeedbackBang .4s ease .3s forwards;
}
.ap-feedback.is-open.is-err .ap-feedback__dot {
  animation: apFeedbackDot .35s ease .48s forwards;
}
.ap-feedback.is-open.is-err .ap-feedback__icon {
  animation: apFeedbackShake .55s ease .55s both;
}
.ap-feedback__title {
  margin: 0 0 0.65rem;
  font-family: var(--ap-display);
  font-size: clamp(1.55rem, 3.5vw, 1.9rem);
  letter-spacing: 0.02em;
  font-weight: 600;
  color: var(--ap-navy);
  line-height: 1.15;
}
.ap-feedback.is-err .ap-feedback__title {
  color: #7d1824;
}
.ap-feedback__body {
  margin: 0 0 1.35rem;
  color: var(--ap-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}
.ap-feedback__body p {
  margin: 0;
}
.ap-feedback__body ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}
.ap-feedback__body li {
  position: relative;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: rgba(166, 33, 48, 0.06);
  color: #7d1824;
  font-size: 0.92rem;
  font-weight: 600;
  animation: apFeedbackItem .4s ease both;
}
.ap-feedback.is-open .ap-feedback__body li:nth-child(1) { animation-delay: .42s; }
.ap-feedback.is-open .ap-feedback__body li:nth-child(2) { animation-delay: .5s; }
.ap-feedback.is-open .ap-feedback__body li:nth-child(3) { animation-delay: .58s; }
.ap-feedback.is-open .ap-feedback__body li:nth-child(4) { animation-delay: .66s; }
.ap-feedback.is-ok .ap-feedback__body p {
  animation: apFeedbackItem .45s ease .4s both;
}
.ap-feedback__cta {
  min-width: 8.5rem;
}
.ap-feedback.is-err .ap-feedback__cta {
  background: var(--ap-red);
}
.ap-feedback.is-err .ap-feedback__cta:hover {
  background: #8f1b28;
}

@keyframes apFeedbackPulse {
  0% { transform: scale(0.55); opacity: 0; }
  55% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 0.85; }
}
@keyframes apFeedbackDraw {
  to { stroke-dashoffset: 0; }
}
@keyframes apFeedbackBang {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes apFeedbackDot {
  from { opacity: 0; transform: scale(0.4); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes apFeedbackShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}
@keyframes apFeedbackItem {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.ap-contact__hint {
  color: var(--ap-muted);
  font-size: 0.88rem;
  font-weight: 600;
}
@media (max-width: 720px) {
  .ap-lead-page { align-items: flex-start; }
  .ap-contact { padding: 1.2rem 1rem 1.1rem; }
  .ap-contact__grid { grid-template-columns: 1fr; }
  .ap-contact__actions { flex-direction: column; }
  .ap-contact__actions .ap-btn { width: 100%; }
  .ap-quote-fold {
    padding: 3.5rem 0 3.75rem;
  }
  .ap-quote-fold__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .ap-quote-fold__copy {
    max-width: none;
  }
  .ap-quote-fold__lead,
  .ap-quote-fold__lead p {
    max-width: none;
  }
  .ap-quote-fold__note {
    max-width: none;
  }
  .ap-quote-fold .ap-contact__actions {
    align-items: stretch;
  }
  .ap-quote-fold .ap-contact__actions .ap-btn {
    width: 100%;
  }
  .ap-quote-fold__veil {
    background:
      linear-gradient(180deg, rgba(10, 18, 32, 0.55) 0%, rgba(10, 18, 32, 0.82) 38%, rgba(10, 18, 32, 0.94) 100%);
  }
}

@media (max-width: 980px) {
  .ap-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-cat-card {
    flex: 0 0 calc((100% - 0.85rem) / 2);
    width: calc((100% - 0.85rem) / 2);
  }
}
@media (max-width: 640px) {
  .ap-feature-grid,
  .ap-stats { grid-template-columns: 1fr; }
  .ap-cat-card {
    flex: 0 0 100%;
    width: 100%;
  }
  .ap-fold__foot { flex-direction: column; align-items: center; }
}

.ap-about {
  padding: 1.75rem;
  border-radius: var(--ap-radius);
  background: linear-gradient(135deg, #fff, #f3f5fa);
  border: 1px solid rgba(20, 33, 61, 0.08);
  box-shadow: var(--ap-shadow);
}

.ap-about .ap-kicker { margin-bottom: 0.5rem; }
.ap-about h2 { margin-bottom: 0.75rem; }
.ap-about > p {
  margin: 0;
  color: var(--ap-muted);
  line-height: 1.7;
  max-width: 62ch;
}

.ap-card__img,
.ap-product__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  display: block;
}

.ap-product__visual {
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(20, 33, 61, 0.06);
  box-shadow: var(--ap-shadow);
  overflow: hidden;
}

.ap-product__zoom {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.ap-product__zoom:focus-visible {
  outline: 2px solid var(--ap-navy);
  outline-offset: 3px;
}

.ap-product__img {
  max-height: 100%;
}

.ap-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.ap-badges li,
.ap-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(20, 33, 61, 0.06);
  color: var(--ap-navy);
  font-size: 0.8rem;
  font-weight: 700;
}

.ap-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

/* Hero da página de categoria */
.ap-cat-hero {
  position: relative;
  overflow: hidden;
  min-height: 0;
  display: flex;
  align-items: center;
  color: #fff;
  background: #0d1a2c;
}
.ap-cat-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 78% 20%, rgba(166, 33, 48, 0.18), transparent 46%),
    linear-gradient(135deg, #0d1a2c 0%, #1e3a5f 52%, #152a45 100%);
}
.ap-cat-hero__media img {
  position: absolute;
  left: 0;
  top: -10%;
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center;
  transform: translate3d(0, 0, 0) scale(1.03);
  will-change: transform;
  backface-visibility: hidden;
}
.ap-cat-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 18, 32, 0.62) 0%, rgba(10, 18, 32, 0.72) 100%),
    linear-gradient(100deg, rgba(10, 18, 32, 0.45) 0%, rgba(10, 18, 32, 0.35) 100%);
}
.ap-cat-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  text-align: left;
  min-height: 0;
  padding: 1.65rem 0;
}
.ap-cat-hero__copy {
  min-width: 0;
  flex: 1 1 auto;
  max-width: none;
  margin: 0;
  padding-inline: 0;
}
.ap-cat-hero__kicker {
  color: #f0b7be;
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}
.ap-cat-hero__title {
  margin: 0;
  font-family: var(--ap-display);
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  font-weight: 600;
  color: #fff;
}
.ap-cat-hero__meta {
  position: static;
  transform: none;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  flex: 0 0 auto;
  align-self: flex-end;
  padding-bottom: 0.15rem;
}

@media (prefers-reduced-motion: reduce) {
  .ap-cat-hero__media img {
    top: 0;
    height: 100%;
    transform: none !important;
    will-change: auto;
  }
}

@media (max-width: 759px) {
  .ap-cat-hero__inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.35rem;
    padding: 1.5rem 0 1.65rem;
  }
  .ap-cat-hero__copy {
    width: 100%;
    text-align: center;
  }
  .ap-cat-hero__title {
    font-size: clamp(1.45rem, 6.5vw, 1.9rem);
  }
  .ap-cat-hero__meta {
    align-self: center;
    padding-bottom: 0;
  }
  .ap-cat-hero__media img {
    top: 0;
    height: 100%;
    object-position: center 30%;
    transform: none;
    will-change: auto;
  }
}

.ap-cat-hero + .ap-section {
  padding-top: 1.75rem;
}

/* Hero /catalogo — mosaico contextual das categorias */
.ap-cat-hero--catalog .ap-cat-hero__media {
  background: #0d1a2c;
}
.ap-cat-hero__mosaic {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(var(--ap-mosaic-cols, 7), minmax(0, 1fr));
  gap: 0;
  transform: translate3d(0, 0, 0) scale(1.04);
  will-change: transform;
  backface-visibility: hidden;
}
.ap-cat-hero__mosaic-cell {
  position: relative;
  overflow: hidden;
  min-width: 0;
}
.ap-cat-hero__mosaic-cell img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: none;
  filter: saturate(0.92) brightness(0.92);
}
.ap-cat-hero--catalog .ap-cat-hero__veil {
  background:
    linear-gradient(100deg, rgba(8, 14, 26, 0.82) 0%, rgba(10, 18, 32, 0.58) 42%, rgba(10, 18, 32, 0.7) 100%),
    linear-gradient(180deg, rgba(10, 18, 32, 0.35) 0%, rgba(10, 18, 32, 0.72) 100%);
}
.ap-cat-hero--catalog .ap-cat-hero__inner {
  min-height: 6.25rem;
  padding: 1.85rem 0;
}

@media (prefers-reduced-motion: reduce) {
  .ap-cat-hero__mosaic {
    transform: none !important;
    will-change: auto;
  }
}

@media (max-width: 759px) {
  .ap-cat-hero__mosaic {
    grid-template-columns: repeat(min(4, var(--ap-mosaic-cols, 4)), minmax(0, 1fr));
  }
  .ap-cat-hero__mosaic-cell:nth-child(n+5) {
    display: none;
  }
  .ap-cat-hero--catalog .ap-cat-hero__inner {
    min-height: 0;
    padding: 1.45rem 0;
  }
}

/* Layout catálogo: filtro + grid */
.ap-catalog-layout {
  display: grid;
  grid-template-columns: 15.5rem minmax(0, 1fr);
  gap: 1.75rem 2rem;
  align-items: start;
  min-width: 0;
  box-sizing: border-box;
}
/* Mantém o container do .ap-wrap (não esticar full-bleed) */
.ap-wrap.ap-catalog-layout {
  width: min(1120px, calc(100% - 2rem));
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.ap-catalog-layout__main {
  min-width: 0;
  width: 100%;
}
.ap-catalog-layout .ap-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ap-cat-filter-backdrop {
  display: none;
}
.ap-cat-toolbar {
  display: none;
}
.ap-cat-filter {
  position: sticky;
  top: 5.5rem;
  padding: 1rem 1.05rem 1.15rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(20, 33, 61, 0.08);
  box-shadow: 0 12px 32px rgba(15, 28, 46, 0.05);
  min-width: 0;
  max-width: 100%;
}
.ap-cat-filter__head {
  display: block;
}
.ap-cat-filter__close {
  display: none;
}
.ap-cat-filter__label {
  margin: 0 0 0.75rem;
  padding: 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ap-muted);
}
.ap-cat-filter__nav {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}
.ap-cat-filter__link {
  display: block;
  padding: 0.62rem 0.9rem;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--ap-navy);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.ap-cat-filter__link:hover {
  color: var(--ap-red);
  background: rgba(20, 33, 61, 0.04);
}
.ap-cat-filter__link.is-active {
  color: var(--ap-red);
  background: rgba(166, 33, 48, 0.08);
  border-color: rgba(166, 33, 48, 0.14);
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(166, 33, 48, 0.08);
}

@media (max-width: 900px) {
  .ap-catalog-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .ap-cat-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
  .ap-cat-toolbar__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.55rem;
    padding: 0.55rem 1rem;
    border: 1px solid rgba(20, 33, 61, 0.12);
    border-radius: 999px;
    background: #fff;
    color: var(--ap-navy);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(15, 28, 46, 0.06);
    transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
  }
  .ap-cat-toolbar__btn:hover,
  .ap-cat-toolbar__btn[aria-expanded="true"] {
    background: var(--ap-navy);
    border-color: var(--ap-navy);
    color: #fff;
    box-shadow: 0 10px 24px rgba(20, 33, 61, 0.18);
  }

  .ap-cat-filter-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 86;
    background: rgba(10, 18, 32, 0.48);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease;
  }
  .ap-cat-filter-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }
  .ap-cat-filter-backdrop[hidden] {
    display: none !important;
  }

  .ap-cat-filter {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 87;
    width: min(86vw, 320px);
    max-width: none;
    margin: 0;
    padding: 1.05rem 1.05rem 1.25rem;
    border-radius: 0;
    border: 0;
    border-right: 1px solid rgba(20, 33, 61, 0.08);
    box-shadow: 18px 0 48px rgba(10, 18, 32, 0.18);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transform: translateX(-104%);
    transition: transform .3s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
  }
  .ap-cat-filter.is-open {
    transform: translateX(0);
    pointer-events: auto;
  }
  .ap-cat-filter__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(20, 33, 61, 0.08);
    flex-shrink: 0;
  }
  .ap-cat-filter__label {
    margin: 0;
    padding: 0;
  }
  .ap-cat-filter__close {
    display: inline-grid;
    flex-shrink: 0;
  }
  .ap-cat-filter__nav {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.25rem;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-width: none;
    padding: 0.15rem 0;
    margin: 0;
    scroll-snap-type: none;
    flex: 1 1 auto;
    min-height: 0;
  }
  .ap-cat-filter__link {
    flex: 0 0 auto;
    padding: 0.72rem 0.85rem;
    border-radius: 12px;
    background: transparent;
    white-space: normal;
    font-size: 0.95rem;
    scroll-snap-align: none;
  }
  .ap-cat-filter__link:hover {
    background: rgba(20, 33, 61, 0.04);
  }
  .ap-cat-filter__link.is-active {
    background: rgba(166, 33, 48, 0.08);
    border-color: rgba(166, 33, 48, 0.14);
    color: var(--ap-red);
    box-shadow: 0 6px 16px rgba(166, 33, 48, 0.08);
  }

  .ap-catalog-layout .ap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }
  .ap-catalog-layout__main {
    min-width: 0;
  }
  .ap-catalog-layout .ap-card {
    padding: 0.75rem 0.75rem 0.9rem;
  }
  .ap-catalog-layout .ap-card__visual {
    aspect-ratio: 1 / 1;
    margin-bottom: 0.7rem;
    padding: 0.55rem;
    background: #f3f5f9;
  }
  .ap-catalog-layout .ap-card h3 {
    font-size: 1rem;
  }
  .ap-catalog-layout .ap-card p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.84rem;
  }

  body.ap-cat-filter-open {
    overflow: hidden;
  }
}

@media (max-width: 559px) {
  .ap-catalog-layout .ap-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
  }
  .ap-cat-hero + .ap-section.ap-catalog-layout {
    padding-top: 1.15rem;
    padding-bottom: 1.75rem;
  }
}

.ap-section__head .ap-kicker { margin-bottom: 0.4rem; }
.ap-section__head h2 { margin: 0; }

.ap-section__head > p {
  margin: 0;
  color: var(--ap-muted);
  font-weight: 600;
}

.ap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.15rem;
}

.ap-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1rem 1rem 1.15rem;
  border-radius: var(--ap-radius);
  background: #fff;
  border: 1px solid rgba(20, 33, 61, 0.08);
  box-shadow: var(--ap-shadow);
  overflow: visible;
  transition: transform .2s ease, border-color .2s ease;
}

.ap-card:hover {
  transform: translateY(-4px);
  border-color: rgba(193, 18, 31, 0.22);
}

.ap-card__visual {
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem;
  margin-bottom: 0.95rem;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(20, 33, 61, 0.06);
  overflow: hidden;
}

.ap-card__img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.ap-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
  min-width: 0;
}

.ap-card h3 {
  margin: 0;
  font-family: var(--ap-display);
  color: var(--ap-navy);
  font-size: 1.15rem;
  line-height: 1.15;
}

.ap-card p {
  margin: 0;
  color: var(--ap-muted);
  line-height: 1.5;
  font-size: 0.9rem;
}

.ap-card .ap-chip {
  align-self: flex-start;
  background: rgba(193, 18, 31, 0.08);
  color: var(--ap-red);
}

.ap-vial {
  position: relative;
  min-height: 180px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.9), rgba(238,241,247,0.95)),
    radial-gradient(circle at 50% 20%, rgba(193,18,31,0.12), transparent 45%);
  border: 1px solid var(--ap-line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  color: var(--ap-navy);
}

.ap-vial--sm { min-height: 150px; }
.ap-vial strong {
  font-family: var(--ap-display);
  font-size: 0.95rem;
  line-height: 1.2;
}
.ap-vial__dose {
  display: inline-flex;
  margin-bottom: 0.55rem;
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
  background: var(--ap-navy);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.ap-product { padding: 2.5rem 0 2.5rem; }
.ap-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--ap-muted);
  font-weight: 600;
}
.ap-product__grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
.ap-dose {
  display: inline-flex;
  margin: 0 0 1rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(193, 18, 31, 0.08);
  color: var(--ap-red);
  font-weight: 700;
}
.ap-sku {
  margin-top: 1.5rem;
  color: var(--ap-muted);
  font-size: 0.9rem;
  font-weight: 600;
}
.ap-product__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.ap-product__actions .ap-btn {
  min-width: 11rem;
}

.ap-related {
  margin-top: 2.5rem;
  padding: clamp(2.5rem, 5vw, 3.75rem) 0;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(166, 33, 48, 0.05), transparent 42%),
    radial-gradient(ellipse at 88% 100%, rgba(30, 58, 95, 0.08), transparent 48%),
    linear-gradient(180deg, #e8edf5 0%, #e2e8f2 55%, #dde4f0 100%);
  border-top: 1px solid rgba(20, 33, 61, 0.07);
}
.ap-related__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}
.ap-related__head {
  margin: 0;
  text-align: left;
  min-width: 0;
}
.ap-related__head .ap-kicker {
  margin: 0 0 0.4rem;
}
.ap-related__head h2 {
  margin: 0;
  font-family: var(--ap-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: 0.02em;
  font-weight: 600;
  color: var(--ap-navy);
  line-height: 1.15;
}
.ap-related__nav {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}
.ap-related__nav .ap-carousel__nav {
  position: static;
  transform: none;
  top: auto;
  left: auto;
  right: auto;
  width: 2.45rem;
  height: 2.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(30, 58, 95, 0.12);
  border-radius: 999px;
  background: #fff;
  color: var(--ap-navy);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 28, 46, 0.08);
  transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.ap-related__nav .ap-carousel__nav:hover {
  background: var(--ap-navy);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 28, 46, 0.14);
}

/* Carousel de relacionados: 4 cards visíveis */
.ap-carousel--related {
  --ap-carousel-gap: 0.9rem;
  --ap-carousel-cols: 4;
  display: block !important;
  position: relative;
  width: 100%;
  max-width: none;
  padding: 0;
  box-sizing: border-box;
}
.ap-carousel--related .ap-carousel__viewport {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.15rem 0 0.65rem;
  display: flex;
  gap: var(--ap-carousel-gap);
}
.ap-carousel--related .ap-carousel__viewport::-webkit-scrollbar { display: none; }
.ap-carousel--related .ap-carousel__track {
  display: contents;
}
.ap-carousel--related .ap-carousel__slide {
  flex: 0 0 calc((100% - (var(--ap-carousel-cols) - 1) * var(--ap-carousel-gap)) / var(--ap-carousel-cols));
  width: calc((100% - (var(--ap-carousel-cols) - 1) * var(--ap-carousel-gap)) / var(--ap-carousel-cols));
  max-width: none;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  box-sizing: border-box;
}
.ap-carousel--related .ap-carousel__slide .ap-card {
  height: 100%;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 28, 46, 0.08);
}

@media (max-width: 1100px) {
  .ap-carousel--related {
    --ap-carousel-cols: 3;
  }
}

@media (max-width: 900px) {
  .ap-carousel--related {
    --ap-carousel-cols: 2;
  }
}

@media (max-width: 640px) {
  .ap-related {
    margin-top: 1.75rem;
    padding: 2rem 0 2.5rem;
  }
  .ap-related__top {
    margin-bottom: 1rem;
  }
  .ap-related__nav {
    display: none;
  }
  .ap-carousel--related {
    --ap-carousel-cols: 1;
    --ap-carousel-gap: 0.85rem;
  }
}

/* Modal RFQ (página de produto) */
.ap-rfq-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}
.ap-rfq-modal[hidden] { display: none !important; }
.ap-rfq-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 32, 0.62);
  backdrop-filter: blur(3px);
}
.ap-rfq-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  max-height: min(92vh, 860px);
  overflow: auto;
  padding: 1.6rem 1.45rem 1.45rem;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(10, 18, 32, 0.35);
  -webkit-overflow-scrolling: touch;
}
.ap-rfq-modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(20, 33, 61, 0.06);
  color: var(--ap-navy);
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.ap-rfq-modal__close:hover {
  background: var(--ap-navy);
  color: #fff;
}
.ap-rfq-modal__intro {
  margin: 0 2rem 1.15rem 0;
}
.ap-rfq-modal__intro .ap-kicker {
  margin: 0 0 0.35rem;
}
.ap-rfq-modal__intro h2 {
  margin: 0 0 0.45rem;
  font-family: var(--ap-display);
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  line-height: 1.15;
  color: var(--ap-navy);
}
.ap-rfq-modal__lead {
  margin: 0;
  color: var(--ap-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.ap-rfq-modal .ap-contact__grid {
  gap: 0.85rem;
}
.ap-rfq-modal .ap-field input[readonly] {
  background: rgba(20, 33, 61, 0.04);
  color: var(--ap-navy);
  font-weight: 600;
  cursor: default;
}
body.ap-rfq-open { overflow: hidden; }

.ap-footer {
  margin-top: 0;
  background: var(--ap-navy);
  color: rgba(255,255,255,0.88);
  padding: 2.75rem 0 2.25rem;
}

/* Última dobra da home encosta no footer (sem faixa clara) */
body.is-home main > .ap-fold:last-child {
  padding-bottom: clamp(2.5rem, 5vw, 3.75rem);
}
body.is-home main > .ap-quote-fold:last-child {
  padding-bottom: clamp(2.75rem, 5.5vw, 4rem);
}

/* Catálogo / páginas: menos ar sob o grid de cards */
main > .ap-section:last-child,
main > .ap-product:last-child,
main > .ap-page:last-child {
  padding-bottom: 2rem;
}
.ap-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1.75rem 2.5rem;
  align-items: center;
}
.ap-footer__brand {
  justify-self: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.95rem;
  max-width: 16rem;
}
.ap-footer__logo {
  display: block;
  width: 128px;
  height: auto;
  margin: 0;
  filter: brightness(0) invert(1);
}
.ap-footer__tagline {
  margin: 0;
  max-width: 26ch;
  line-height: 1.45;
  color: rgba(255,255,255,0.78);
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
.ap-footer__badge {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
}
.ap-footer__badge img {
  width: 78px;
  height: auto;
  display: block;
  filter: none;
}
.ap-footer__meta {
  justify-self: end;
  display: grid;
  gap: 0.55rem;
  text-align: right;
  font-weight: 600;
  font-size: 0.9rem;
  max-width: 28rem;
}
.ap-footer__meta span {
  color: rgba(255,255,255,0.72);
  font-weight: 500;
  font-size: 0.82rem;
  max-width: 32ch;
  justify-self: end;
  line-height: 1.45;
}
.ap-footer__copy {
  display: grid;
  gap: 0.2rem;
  justify-items: end;
  color: rgba(255,255,255,0.72);
  font-weight: 500;
  font-size: 0.82rem;
  line-height: 1.45;
}
.ap-footer__copy span {
  max-width: none;
  color: inherit;
  font: inherit;
}
.ap-footer a { color: #fff; }
.ap-footer a:hover { color: rgba(255,255,255,0.85); }

.ap-btn--sm {
  padding: 0.65rem 1.1rem;
  font-size: 0.86rem;
}

.ap-carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
}

.ap-carousel__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.35rem 0.15rem 0.85rem;
}

.ap-carousel__viewport::-webkit-scrollbar { display: none; }

.ap-carousel__track {
  display: flex;
  gap: 1rem;
}

.ap-carousel__slide {
  flex: 0 0 min(78vw, 260px);
  scroll-snap-align: start;
}

.ap-carousel__slide .ap-card {
  height: 100%;
}

.ap-carousel__nav {
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(30, 58, 95, 0.14);
  border-radius: 999px;
  background: #fff;
  color: var(--ap-navy);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--ap-shadow);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.ap-carousel__nav:hover {
  background: var(--ap-navy);
  color: #fff;
  transform: translateY(-1px);
}

.ap-carousel__cta {
  display: flex;
  justify-content: center;
  margin-top: 1.35rem;
}

.ap-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.ap-lightbox[hidden] { display: none; }

.ap-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 32, 0.72);
  backdrop-filter: blur(2px);
}

.ap-lightbox__figure {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(92vw, 960px);
  max-height: 88vh;
}

.ap-lightbox__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 88vh;
  object-fit: contain;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.ap-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ap-navy);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--ap-shadow);
}

.ap-lightbox__close:hover {
  background: var(--ap-navy);
  color: #fff;
}

body.ap-lightbox-open { overflow: hidden; }

@media (min-width: 760px) {
  .ap-carousel:not(.ap-carousel--related) .ap-carousel__slide { flex-basis: 240px; }
}

@media (min-width: 1020px) {
  .ap-carousel:not(.ap-carousel--related) .ap-carousel__slide { flex-basis: 260px; }
}

@media (max-width: 559px) {
  .ap-carousel:not(.ap-carousel--related) {
    grid-template-columns: 1fr;
  }
  .ap-carousel:not(.ap-carousel--related) .ap-carousel__nav { display: none; }
}

@media (min-width: 760px) {
  .ap-header__burger {
    display: none !important;
  }
  .ap-header__inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: none;
  }
  .ap-logo {
    grid-area: auto;
    justify-self: start;
  }
  .ap-nav {
    display: flex;
    grid-area: auto;
    justify-self: center;
  }
  .ap-header__tools {
    display: flex;
    grid-area: auto;
    justify-self: end;
  }
  .ap-lang--desktop {
    display: block;
  }
  .ap-product__grid { grid-template-columns: 320px 1fr; gap: 2.5rem; }
  .ap-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 759px) {
  .ap-header__inner {
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "menu logo tools";
    align-items: center;
    gap: 0.35rem;
    min-height: 56px;
    padding: 0.4rem 0;
  }
  .ap-header.is-slim .ap-header__inner {
    min-height: 52px;
    padding: 0.3rem 0;
    gap: 0.3rem;
  }
  .ap-header__burger {
    grid-area: menu;
    display: inline-grid !important;
    justify-self: start;
  }
  .ap-logo {
    grid-area: logo;
    justify-self: center;
  }
  .ap-logo img {
    width: 104px;
  }
  .ap-header.is-slim .ap-logo img {
    width: 94px;
  }
  .ap-nav {
    display: none !important;
  }
  .ap-header__tools {
    grid-area: tools;
    justify-self: end;
    gap: 0.35rem;
  }
  .ap-lang--desktop {
    display: none !important;
  }
  .ap-icon-btn {
    width: 40px;
    height: 40px;
  }
  .ap-footer__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1.6rem;
    padding-block: 0.15rem;
  }
  .ap-footer__brand,
  .ap-footer__badge,
  .ap-footer__meta {
    justify-self: center;
    text-align: center;
  }
  .ap-footer__brand {
    max-width: 18rem;
    gap: 1rem;
  }
  .ap-footer__tagline {
    max-width: 28ch;
  }
  .ap-footer__meta {
    max-width: 36rem;
  }
  .ap-footer__meta span {
    justify-self: center;
    max-width: 40ch;
  }
  .ap-footer__copy {
    justify-items: center;
  }
}
