/* =========================================================
   REFRIAR — Ar-condicionado
   Hero foto + índice lateral + painel modelo (quadrados estáveis)
   ========================================================= */

body:has(.rfr-ac) {
  --rfr-ink: #071525;
  --rfr-navy: #0A2540;
  --rfr-blue: #1E77AB;
  --rfr-gold: #CA9E67;
  --rfr-paper: #F4F8FC;
  --rfr-mute: #556575;
  --rfr-font: "Plus Jakarta Sans", "Mosk", "Montserrat", sans-serif;
}

/* Sem zerar padding dos containers Elementor — o catálogo vive em seções nativas. */

.rfr-ac { color: var(--rfr-ink); font-family: var(--rfr-font); overflow-x: clip; width: 100%; max-width: 100%; }
.rfr-ac * { box-sizing: border-box; }
.rfr-ac a { color: inherit; text-decoration: none; }
.rfr-ac h1,.rfr-ac h2,.rfr-ac h3,.rfr-ac p,.rfr-ac span,.rfr-ac strong,.rfr-ac li,.rfr-ac button, .rfr-ac figcaption {
  font-family: var(--rfr-font);
}

.rfr-ac button, .rfr-ac button:hover, .rfr-ac button:focus {
  background: transparent !important; border-color: transparent !important;
  color: inherit !important; box-shadow: none !important; outline: none !important;
}

.rfr-ac .rfr-wrap {
  width: 100%; max-width: 1240px; margin-left: auto !important; margin-right: auto !important;
  padding-left: 20px; padding-right: 20px; box-sizing: border-box;
}

/* HERO */
.rfr-ac-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  min-height: 320px;
}

.rfr-ac-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.rfr-ac-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.rfr-ac-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(7, 21, 37, 0.88) 0%, rgba(7, 21, 37, 0.72) 48%, rgba(7, 21, 37, 0.45) 100%),
    linear-gradient(0deg, rgba(7, 21, 37, 0.55) 0%, transparent 55%);
}

.rfr-ac-hero__inner {
  position: relative;
  z-index: 1;
  padding: 80px 20px 44px;
}

.rfr-ac-hero__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
}

.rfr-ac-hero__eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 10px;
  border: 1px solid rgba(229, 181, 70, 0.55);
  border-radius: 6px;
  color: var(--rfr-gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(7, 21, 37, 0.35);
}

.rfr-ac-hero h1 {
  margin: 0 0 12px;
  max-width: none;
  white-space: nowrap !important;
  font-weight: 800;
  font-size: clamp(1.55rem, 2.9vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: #fff;
  hyphens: none;
  -webkit-hyphens: none;
}

.rfr-ac-hero h1 span {
  color: var(--rfr-gold);
  white-space: nowrap;
}

.rfr-ac-hero__lead {
  margin: 0;
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.6;
}

.rfr-ac-hero__meta {
  display: grid;
  gap: 10px;
  min-width: 180px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  backdrop-filter: blur(6px);
}

.rfr-ac-hero__meta strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.rfr-ac-hero__meta span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 600;
}

/* CATALOG */
.rfr-ac-catalog {
  padding: 40px 0 72px;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(30, 119, 171, 0.08), transparent 60%),
    linear-gradient(180deg, #F7FBFE 0%, #FFFFFF 42%);
}

.rfr-ac-catalog__grid {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.rfr-ac-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 4px;
  padding: 10px;
  background: #fff;
  border: 1px solid #DCE8F3;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(10, 37, 64, 0.04);
}

.rfr-ac-side button {
  text-align: left !important;
  padding: 11px 12px !important;
  border-radius: 10px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--rfr-navy) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.rfr-ac-side button.is-active,
.rfr-ac-side button:hover {
  background: var(--rfr-paper) !important;
  color: var(--rfr-blue) !important;
}

.rfr-ac-side button.is-active {
  box-shadow: inset 3px 0 0 var(--rfr-gold) !important;
}

/* PANEL — altura estável ao trocar modelo */
.rfr-ac-main {
  min-width: 0;
}

.rfr-ac-panel {
  display: none;
  min-height: 560px;
}

.rfr-ac-panel.is-active {
  display: grid;
  gap: 20px;
  animation: rfr-ac-in 0.28s ease;
}

@keyframes rfr-ac-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rfr-ac-panel__stage {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 22px;
  background: #fff;
  border: 1px solid #DCE8F3;
  border-radius: 18px;
  box-shadow: 0 10px 36px rgba(10, 37, 64, 0.05);
}

.rfr-ac-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% 62%, rgba(30, 119, 171, 0.14), transparent 70%),
    linear-gradient(180deg, #F8FBFE 0%, #E4EFF7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.rfr-ac-cover img {
  width: 92%;
  height: 92%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 14px 28px rgba(7, 21, 37, 0.18));
}

.rfr-ac-panel__info {
  min-width: 0;
  padding: 4px 4px 4px 0;
}

.rfr-ac-panel__kicker {
  margin-bottom: 8px;
  color: var(--rfr-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rfr-ac-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 2.8vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--rfr-navy);
  line-height: 1.1;
}

.rfr-ac-btu {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 12px;
  background: rgba(30, 119, 171, 0.08);
  border-radius: 8px;
  color: var(--rfr-blue);
  font-weight: 800;
  font-size: 14px;
}

.rfr-ac-btu small { font-weight: 600; opacity: 0.85; }

.rfr-ac-features,
.rfr-ac-features-wrap ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
}

.rfr-ac-features li,
.rfr-ac-features-wrap li {
  position: relative;
  padding-left: 16px;
  color: var(--rfr-mute);
  font-size: 13.5px;
  line-height: 1.45;
}

.rfr-ac-features li::before,
.rfr-ac-features-wrap li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rfr-gold);
}

/* SHOTS — 5 quadrados iguais, contain, sem salto */
.rfr-ac-shots-label {
  margin: 0 0 10px;
  color: var(--rfr-mute);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rfr-ac-shots {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.rfr-ac-shots__item {
  position: relative;
  padding: 10px !important;
  border: 1px solid #D7E4F0 !important;
  border-radius: 12px !important;
  overflow: hidden;
  cursor: zoom-in;
  background: linear-gradient(180deg, #F8FBFE 0%, #E7F2F9 100%) !important;
  aspect-ratio: 1;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.rfr-ac-shots__item img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.rfr-ac-shots__item:hover,
.rfr-ac-shots__item:focus-visible {
  border-color: var(--rfr-blue) !important;
  transform: translateY(-2px);
  background: linear-gradient(180deg, #EEF6FC 0%, #DCECF6 100%) !important;
}

/* LIGHTBOX */
.rfr-ac-lightbox[hidden] { display: none !important; }

.rfr-ac-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.rfr-ac-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 21, 37, 0.86);
  cursor: zoom-out;
}

.rfr-ac-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  display: flex;
  align-items: center;
  gap: 10px;
}

.rfr-ac-lightbox__figure {
  margin: 0;
  flex: 1;
  background:
    radial-gradient(ellipse 60% 50% at 50% 55%, rgba(30, 119, 171, 0.2), transparent 70%),
    #0f2438;
  border-radius: 16px;
  overflow: hidden;
  padding: 28px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.rfr-ac-lightbox__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(62vh, 560px);
  object-fit: contain;
  background: transparent;
}

.rfr-ac-lightbox__caption {
  margin: 14px 0 0;
  padding: 0;
  text-align: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  background: transparent;
}

.rfr-ac-lightbox__close,
.rfr-ac-lightbox__nav {
  width: 44px !important;
  height: 44px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
  font-size: 28px !important;
  cursor: pointer;
  flex-shrink: 0;
}

.rfr-ac-lightbox__close {
  position: absolute;
  top: -48px;
  right: 0;
}

.rfr-ac-lightbox__close:hover,
.rfr-ac-lightbox__nav:hover {
  background: rgba(30, 119, 171, 0.95) !important;
}

body.rfr-ac-lb-open { overflow: hidden; }

.rfr-ac-cta {
  margin-top: 28px;
  padding: 28px;
  border-radius: 16px;
  background: var(--rfr-navy);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.rfr-ac-cta h3 { margin: 0 0 6px; font-size: 1.35rem; font-weight: 800; }
.rfr-ac-cta p { margin: 0; color: rgba(255,255,255,0.72); font-size: 14px; }

/* .rfr-btn padronizado em assets/css/buttons.css */

@media (max-width: 980px) {
  .rfr-ac-hero h1 { white-space: normal; }
  .rfr-ac-hero__row { grid-template-columns: 1fr; }
  .rfr-ac-catalog__grid { grid-template-columns: 1fr; }
  .rfr-ac-side {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .rfr-ac-side button.is-active {
    box-shadow: none !important;
    background: rgba(30, 119, 171, 0.1) !important;
  }
  .rfr-ac-panel { min-height: 0; }
  .rfr-ac-panel__stage { grid-template-columns: 1fr; }
  .rfr-ac-cover { max-width: 360px; margin: 0 auto; }
  .rfr-ac-features { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .rfr-ac-shots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rfr-ac-lightbox__dialog { flex-direction: column; }
  .rfr-ac-lightbox__figure { aspect-ratio: auto; min-height: 280px; }
}
