/* =========================================================
   REFRIAR — Página Produtos
   Fontes: apenas o padrão do site (Plus Jakarta Sans / Mosk)
   Conteúdo no container 1240px; BG/imagens podem ser full-bleed
   ========================================================= */

body:has(.rfr-produtos) {
  --rfr-ink: #071525;
  --rfr-navy: #0A2540;
  --rfr-blue: #1E77AB;
  --rfr-gold: #CA9E67;
  --rfr-fog: #E8F1F8;
  --rfr-paper: #F7FAFE;
  --rfr-mute: #556575;
  --rfr-font: "Plus Jakarta Sans", "Mosk", "Montserrat", sans-serif;
  --rfr-container: 1240px;
}

/* Não zerar padding/max-width dos containers Elementor:
   o catálogo agora vive dentro de seções boxed nativas. */

.rfr-produtos {
  --rfr-container: 1240px;
  color: var(--rfr-ink);
  font-family: var(--rfr-font);
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
}

.rfr-produtos * {
  box-sizing: border-box;
}

.rfr-produtos a {
  color: inherit;
  text-decoration: none;
}

.rfr-produtos .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rfr-produtos h1,
.rfr-produtos h2,
.rfr-produtos h3,
.rfr-produtos p,
.rfr-produtos span,
.rfr-produtos strong,
.rfr-produtos li,
.rfr-produtos button,
.rfr-produtos input,
.rfr-produtos label {
  font-family: var(--rfr-font);
}

/* Neutraliza reset rosa (#c36) do Hello Elementor em todos os buttons da página */
.rfr-produtos button,
.rfr-produtos button:hover,
.rfr-produtos button:focus,
.rfr-produtos button:active,
.rfr-produtos button:focus-visible {
  background-color: transparent !important;
  border-color: transparent !important;
  color: inherit !important;
  border-radius: 0;
  box-shadow: none !important;
  outline: none !important;
  text-decoration: none !important;
}

.rfr-produtos .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-p-hero {
  position: relative;
  min-height: 520px;
  background: var(--rfr-ink);
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}

.rfr-p-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.rfr-p-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(7, 21, 37, 0.92) 0%, rgba(7, 21, 37, 0.7) 48%, rgba(7, 21, 37, 0.4) 100%),
    linear-gradient(0deg, rgba(7, 21, 37, 0.75) 0%, rgba(7, 21, 37, 0.2) 55%, transparent 100%);
}

.rfr-p-hero__mark {
  position: absolute;
  right: -2%;
  bottom: -8%;
  z-index: 1;
  font-size: clamp(5rem, 18vw, 12rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.85;
  color: rgba(255, 255, 255, 0.04);
  pointer-events: none;
  user-select: none;
}

.rfr-p-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(200px, 260px);
  align-items: end;
  gap: 32px;
  min-height: 520px;
  padding-top: 96px;
  padding-bottom: 52px;
}

.rfr-p-hero .rfr-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--rfr-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rfr-p-hero h1 {
  margin: 0 0 14px;
  max-width: 14ch;
  font-weight: 800;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.rfr-p-hero h1 em {
  font-style: normal;
  color: var(--rfr-gold);
}

.rfr-p-hero__lead {
  margin: 0 0 22px;
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.55;
}

.rfr-p-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

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

.rfr-produtos .rfr-link-ghost {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1px solid rgba(229, 181, 70, 0.7);
  padding-bottom: 2px;
}

.rfr-produtos .rfr-link-ghost:hover {
  color: #fff;
}

.rfr-p-hero__stats {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rfr-p-stat {
  padding: 14px 0;
  border-top: 1px solid rgba(229, 181, 70, 0.45);
}

.rfr-p-stat:last-child {
  border-bottom: 1px solid rgba(229, 181, 70, 0.45);
}

.rfr-p-stat strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.rfr-p-stat span {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  font-weight: 500;
}

/* ---- MARQUEE ---- */
.rfr-p-marquee {
  background: var(--rfr-navy);
  color: rgba(255, 255, 255, 0.72);
  overflow: hidden;
  border-top: 1px solid rgba(229, 181, 70, 0.25);
  border-bottom: 1px solid rgba(229, 181, 70, 0.25);
}

.rfr-p-marquee__track {
  display: flex;
  gap: 48px;
  width: max-content;
  padding: 12px 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  animation: rfr-p-marquee 28s linear infinite;
}

@keyframes rfr-p-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---- CATALOG ---- */
.rfr-p-catalog {
  padding: clamp(48px, 7vw, 72px) 0 40px;
  background: var(--rfr-paper);
}

.rfr-p-catalog__head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

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

.rfr-p-catalog__head h2 {
  margin: 0 0 10px;
  max-width: 18ch;
  font-weight: 800;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--rfr-navy);
}

.rfr-p-catalog__head h2 span {
  color: var(--rfr-blue);
}

.rfr-p-catalog__head p {
  margin: 0;
  max-width: 48ch;
  color: var(--rfr-mute);
  font-size: 15px;
  line-height: 1.6;
}

.rfr-p-search {
  position: relative;
  display: block;
  width: 100%;
  max-width: 360px;
  justify-self: end;
}

.rfr-produtos .rfr-p-search input[type="search"],
.rfr-produtos .rfr-p-search input {
  width: 100%;
  padding: 14px 16px 14px 46px !important;
  border: 1px solid #D5E2EE !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: var(--rfr-navy) !important;
  font-size: 14px !important;
  font-weight: 500;
  line-height: 1.4;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.rfr-produtos .rfr-p-search input::placeholder {
  color: #8A9AAB !important;
  opacity: 1;
}

.rfr-produtos .rfr-p-search input:focus {
  border-color: var(--rfr-blue) !important;
  box-shadow: 0 0 0 3px rgba(30, 119, 171, 0.15) !important;
}

.rfr-produtos .rfr-p-search > svg {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #8A9AAB;
  pointer-events: none;
  z-index: 1;
}

/* Filters */
.rfr-p-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  padding-bottom: 4px;
}

.rfr-produtos .rfr-p-filter {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #D5E2EE !important;
  background: #fff !important;
  color: var(--rfr-navy) !important;
  padding: 9px 14px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  cursor: pointer;
  box-shadow: none !important;
  outline: none !important;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.rfr-produtos .rfr-p-filter:hover,
.rfr-produtos .rfr-p-filter:focus {
  border-color: var(--rfr-blue) !important;
  color: var(--rfr-blue) !important;
  background: #fff !important;
}

.rfr-produtos .rfr-p-filter.is-active,
.rfr-produtos .rfr-p-filter.is-active:hover,
.rfr-produtos .rfr-p-filter.is-active:focus {
  background: var(--rfr-navy) !important;
  border-color: var(--rfr-navy) !important;
  color: #fff !important;
}

.rfr-p-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.rfr-p-meta__count {
  color: var(--rfr-mute);
  font-size: 13px;
  font-weight: 600;
}

.rfr-p-meta__count strong {
  color: var(--rfr-navy);
}

/* Grid */
.rfr-p-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  align-items: stretch;
}

.rfr-p-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  border: 1px solid #E4EDF5;
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.rfr-p-card:hover {
  transform: translateY(-4px);
  border-color: #C9DBEA;
  box-shadow: 0 14px 28px rgba(10, 37, 64, 0.08);
}

.rfr-p-card.is-hidden {
  display: none !important;
}

.rfr-produtos .rfr-p-card__media {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  margin: 0;
  border: 0 !important;
  border-radius: 0 !important;
  width: 100%;
  cursor: zoom-in;
  background: linear-gradient(180deg, #F8FBFE 0%, #E7F2F9 100%) !important;
  color: var(--rfr-navy) !important;
  transition: background 0.2s ease;
}

.rfr-produtos .rfr-p-card__media:hover,
.rfr-produtos .rfr-p-card__media:focus,
.rfr-produtos .rfr-p-card__media:focus-visible {
  background: linear-gradient(180deg, #EEF6FC 0%, #DCECF6 100%) !important;
  border: 0 !important;
  color: var(--rfr-navy) !important;
  outline: none !important;
  box-shadow: none !important;
}

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

.rfr-p-card__zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 37, 64, 0.88);
  color: #fff;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.rfr-p-card__zoom svg {
  width: 16px;
  height: 16px;
}

.rfr-p-card__media:hover .rfr-p-card__zoom,
.rfr-p-card__media:focus-visible .rfr-p-card__zoom {
  opacity: 1;
  transform: translateY(0);
}

.rfr-p-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 16px;
  flex: 1;
}

.rfr-p-card__cat {
  color: var(--rfr-blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rfr-p-card__title {
  margin: 0;
  color: var(--rfr-navy);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  flex: 1;
}

.rfr-p-card__sku {
  color: var(--rfr-mute);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.rfr-produtos .rfr-p-card__cta,
.rfr-produtos .rfr-p-card__cta:visited {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: #1E77AB !important;
  font-size: 13px;
  font-weight: 700;
}

.rfr-produtos .rfr-p-card__cta:hover,
.rfr-produtos .rfr-p-card__cta:focus,
.rfr-produtos .rfr-p-card:hover .rfr-p-card__cta {
  color: #186694 !important;
}

.rfr-p-empty {
  display: none !important;
  grid-column: 1 / -1;
  padding: 48px 20px;
  text-align: center;
  color: var(--rfr-mute);
  font-size: 15px;
}

.rfr-p-empty.is-visible {
  display: block !important;
}

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

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

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

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

.rfr-lightbox__figure {
  margin: 0;
  width: 100%;
  max-width: 600px;
  background: #F4F8FC;
  border-radius: 18px;
  padding: 28px 28px 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.rfr-lightbox__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.rfr-lightbox__caption {
  margin: 14px 0 0;
  text-align: center;
  color: var(--rfr-navy);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

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

.rfr-produtos .rfr-lightbox__close {
  position: absolute;
  top: -46px;
  right: 0;
  width: 40px;
  height: 40px;
}

.rfr-produtos .rfr-lightbox__close:hover,
.rfr-produtos .rfr-lightbox__close:focus,
.rfr-produtos .rfr-lightbox__nav:hover,
.rfr-produtos .rfr-lightbox__nav:focus {
  background: rgba(30, 119, 171, 0.95) !important;
  color: #fff !important;
  border: 0 !important;
}

body.rfr-lightbox-open {
  overflow: hidden;
}

@media (max-width: 767px) {
  .rfr-lightbox {
    padding: 16px;
  }

  .rfr-lightbox__dialog {
    flex-direction: column;
    gap: 12px;
  }

  .rfr-lightbox__nav {
    position: static;
  }

  .rfr-lightbox__close {
    top: -8px;
    right: -4px;
  }

  .rfr-lightbox__figure {
    padding: 18px 18px 12px;
  }

  .rfr-p-card__zoom {
    opacity: 1;
    transform: none;
  }
}

/* ---- CTA ---- */
.rfr-p-cta {
  padding: clamp(48px, 7vw, 72px) 0;
  background: #fff;
  border-top: 1px solid #E8F0F7;
}

.rfr-p-cta__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}

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

.rfr-p-cta h2 {
  margin: 0 0 12px;
  max-width: 16ch;
  font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--rfr-navy);
}

.rfr-p-cta h2 span {
  color: var(--rfr-blue);
}

.rfr-p-cta p {
  margin: 0;
  max-width: 42ch;
  color: var(--rfr-mute);
  font-size: 15px;
  line-height: 1.6;
}

.rfr-p-cta__side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.rfr-p-cta__contacts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.rfr-p-cta__contacts a {
  font-weight: 700;
  color: var(--rfr-navy);
  font-size: 14px;
}

.rfr-p-cta__contacts a:hover {
  color: var(--rfr-blue);
}

/* ---- REVEAL ---- */
.rfr-produtos .rfr-reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .rfr-p-marquee__track {
    animation: none;
  }

  .rfr-p-card:hover {
    transform: none;
  }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1100px) {
  .rfr-p-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .rfr-p-hero__inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 96px;
    padding-bottom: 40px;
  }

  .rfr-p-hero h1 {
    max-width: none;
  }

  .rfr-p-hero__stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0 20px;
  }

  .rfr-p-stat {
    flex: 1 1 140px;
    border-bottom: 1px solid rgba(229, 181, 70, 0.45);
  }

  .rfr-p-catalog__head {
    grid-template-columns: 1fr;
  }

  .rfr-p-search {
    max-width: none;
    justify-self: stretch;
  }

  .rfr-p-cta__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .rfr-p-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .rfr-p-card__body {
    padding: 12px;
  }

  .rfr-p-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .rfr-p-filters::-webkit-scrollbar {
    display: none;
  }

  .rfr-p-filter {
    flex: 0 0 auto;
  }
}

@media (max-width: 420px) {
  .rfr-p-grid {
    grid-template-columns: 1fr;
  }
}

/* Catálogo embutido sob headings/busca nativos do Elementor */
.rfr-p-catalog--embedded {
  padding-top: 0;
  padding-bottom: 8px;
  background: transparent;
}

.rfr-p-catalog--embedded .rfr-wrap {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

/* Busca solta (widget separado) — estilos sem depender de .rfr-produtos pai */
.rfr-produtos-search-widget {
  width: 100%;
  overflow: visible;
}

.rfr-produtos-search-widget .rfr-p-search {
  position: relative;
  display: block;
  max-width: 360px;
  width: 100%;
  margin-left: auto;
}

.rfr-produtos-search-widget .rfr-p-search input[type="search"],
.rfr-produtos-search-widget .rfr-p-search input {
  width: 100%;
  padding: 14px 16px 14px 46px !important;
  border: 1px solid #D5E2EE !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: var(--rfr-navy, #0A2540) !important;
  font-size: 14px !important;
  font-weight: 500;
  line-height: 1.4;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
}

.rfr-produtos-search-widget .rfr-p-search > svg {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #8A9AAB;
  pointer-events: none;
  z-index: 1;
}

.rfr-p-card__title a {
  color: inherit;
  text-decoration: none;
}

.rfr-p-card__title a:hover {
  color: var(--rfr-blue);
}

@media (max-width: 767px) {
  .rfr-produto-single .rfr-p-single {
    grid-template-columns: 1fr !important;
  }
}
