/* ==========================================================================
   FIUZA MARINE — Seminovos | Frontend Premium (Identidade Náutica)
   ========================================================================== */

:root {
  --fms-navy: #031426;
  --fms-ocean: #061d35;
  --fms-blue: #007fa8;
  --fms-electric: #00bfff;
  --fms-red: #e50920;
  --fms-surface: #f4f7fa;
  --fms-border: #e2e8f0;
  --fms-text: #031426;
  --fms-muted: #475569;
  --fms-wa: #25d366;
  --fms-font: "Archivo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

.fms-container {
  width: 100%;
  max-width: 1380px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 3.5vw, 3.5rem);
  box-sizing: border-box;
}

.fms-single-page {
  overflow-x: clip;
}

.fms-kicker {
  display: inline-block;
  font-family: var(--fms-font);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fms-blue);
  margin-bottom: .5rem;
}

/* Cabeçalho do catálogo (quando usado via shortcode com cabecalho="sim") */
.fms-catalog-header {
  margin-bottom: 2rem;
}

.fms-catalog-title {
  font-family: var(--fms-font);
  font-size: clamp(1.85rem, 1.2rem + 2.2vw, 2.85rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--fms-navy);
  margin: 0 0 .5rem;
}

.fms-catalog-subtitle {
  font-size: 1rem;
  color: var(--fms-muted);
  max-width: 62ch;
  margin: 0;
}

/* Barra de Filtros Premium */
.fms-filters {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)) auto;
  gap: 1rem;
  align-items: end;
  padding: 1.35rem 1.5rem;
  background: var(--fms-surface);
  border: 1px solid var(--fms-border);
  border-radius: 14px;
  margin-bottom: 1.5rem;
}

.fms-filter-item {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.fms-filter-item label {
  font-family: var(--fms-font);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fms-muted);
}

.fms-filter-item select,
.fms-filter-item input[type="text"] {
  width: 100%;
  min-height: 44px;
  padding: 0 .85rem;
  background-color: #ffffff;
  color: var(--fms-navy);
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: var(--fms-font);
  font-size: .875rem;
  font-weight: 600;
  transition: border-color .16s ease, box-shadow .16s ease;
  box-sizing: border-box;
}

.fms-filter-item input[name="codigo"] {
  text-transform: uppercase;
  letter-spacing: .08em;
}

.fms-filter-item select:focus,
.fms-filter-item input[type="text"]:focus {
  outline: none;
  border-color: var(--fms-blue);
  box-shadow: 0 0 0 3px rgba(0, 191, 255, .18);
}

.fms-results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--fms-muted);
}

/* Grade de Cards */
.fms-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  transition: opacity .2s ease;
}

.fms-grid.is-loading {
  opacity: .45;
  pointer-events: none;
}

.fms-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--fms-border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .24s cubic-bezier(.22, 1, .36, 1),
              box-shadow .24s cubic-bezier(.22, 1, .36, 1),
              border-color .24s ease;
}

@media (hover: hover) and (pointer: fine) {
  .fms-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 127, 168, .45);
    box-shadow: 0 22px 46px rgba(3, 20, 38, .10);
  }
}

.fms-card__media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  background: var(--fms-navy);
  overflow: hidden;
}

.fms-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .65s cubic-bezier(.22, 1, .36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .fms-card:hover .fms-card__img {
    transform: scale(1.04);
  }
}

.fms-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--fms-navy) 0%, #0b2945 100%);
  color: rgba(255, 255, 255, .35);
  font-family: var(--fms-font);
  font-weight: 800;
  letter-spacing: .2em;
}

.fms-card__placeholder--lg {
  min-height: 420px;
}

.fms-card__badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.fms-tag {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: var(--fms-font);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.fms-tag--featured { background: var(--fms-navy); color: var(--fms-electric); border: 1px solid rgba(0, 191, 255, .45); }
.fms-tag--opp      { background: var(--fms-red); color: #ffffff; }
.fms-tag--sold     { background: #475569; color: #ffffff; }

.fms-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.4rem 1.5rem 1.5rem;
  gap: .5rem;
}

.fms-card__meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.fms-card__cat  { color: var(--fms-blue); }
.fms-card__year { color: #64748b; }

.fms-card__title {
  font-family: var(--fms-font);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin: .15rem 0 0;
}

.fms-card__title a {
  color: var(--fms-navy);
  text-decoration: none;
}

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

.fms-card__brand {
  margin: 0;
  font-size: .85rem;
  font-weight: 600;
  color: var(--fms-muted);
}

.fms-card__spec {
  margin: .2rem 0 0;
  padding: .45rem .75rem;
  background: var(--fms-surface);
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 600;
  color: #334e68;
}

.fms-card__footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--fms-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.fms-card__price-box {
  display: flex;
  flex-direction: column;
}

.fms-card__price-label {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #64748b;
}

.fms-card__price {
  font-family: var(--fms-font);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--fms-navy);
}

/* Botões do Plugin */
.fms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  padding: 0 1.25rem;
  border-radius: 8px;
  font-family: var(--fms-font);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .1s ease;
}

.fms-btn--dark {
  background: var(--fms-navy);
  color: #ffffff !important;
}

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

.fms-btn--primary {
  background: var(--fms-blue);
  color: #ffffff !important;
}

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

body .fms-catalog button[type="button"].fms-btn--ghost,
.fms-btn--ghost {
  background: #ffffff;
  color: var(--fms-navy);
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}

body .fms-catalog button[type="button"].fms-btn--ghost:hover,
.fms-btn--ghost:hover {
  background: var(--fms-navy);
  color: #ffffff;
  border-color: var(--fms-navy);
}

.fms-btn--outline {
  background: transparent;
  color: var(--fms-navy) !important;
  border-color: #cbd5e1;
}

.fms-btn--outline:hover {
  border-color: var(--fms-blue);
  color: var(--fms-blue) !important;
}

.fms-btn--whatsapp {
  background: linear-gradient(100deg, #00bfff 0%, #007fa8 100%);
  color: #ffffff !important;
  min-height: 52px;
  font-size: .85rem;
  box-shadow: 0 10px 24px rgba(0, 127, 168, .28);
}

.fms-btn--whatsapp:hover {
  background: var(--fms-navy);
}

body .fms-single-page button[type="button"].fms-btn--disabled,
.fms-btn--disabled {
  background: #e2e8f0;
  color: #64748b;
  border: 1px solid #cbd5e1;
  cursor: not-allowed;
  min-height: 50px;
  width: 100%;
}

.fms-btn--full {
  width: 100%;
}

/* Paginação & Estado Vazio */
.fms-pagination {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 2.5rem;
}

body .fms-catalog button[type="button"].fms-page-btn,
.fms-page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--fms-navy);
  font-weight: 700;
  cursor: pointer;
}

body .fms-catalog button[type="button"].fms-page-btn:hover,
.fms-page-btn:hover {
  border-color: var(--fms-blue);
  color: var(--fms-blue);
  background: #f8fafc;
}

body .fms-catalog button[type="button"].fms-page-btn.is-active,
.fms-page-btn.is-active {
  background: var(--fms-navy);
  border-color: var(--fms-navy);
  color: #ffffff;
}

.fms-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3.5rem 2rem;
  background: var(--fms-surface);
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
}

.fms-empty-state h3 { margin: 0 0 .5rem; color: var(--fms-navy); }
.fms-empty-state p  { margin: 0 auto 1.5rem; max-width: 52ch; color: var(--fms-muted); }

/* ==========================================================================
   Página Individual do Seminovo (/seminovos/produto/)
   ========================================================================== */

.fms-single-topbar {
  background: linear-gradient(135deg, var(--fms-navy) 0%, var(--fms-ocean) 100%);
  padding-top: clamp(6.5rem, 8.5vw, 8rem);
  padding-bottom: 1.75rem;
  color: #ffffff;
}

.fms-archive-hero-title {
  color: #ffffff;
  font-family: var(--fms-font);
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 .5rem;
}

.fms-archive-hero-sub {
  color: #b8c7d8;
  max-width: 60ch;
  margin: 0;
}

.fms-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .8rem;
  color: #b8c7d8;
}

.fms-breadcrumb a {
  color: #ffffff;
  text-decoration: none;
}

.fms-breadcrumb a:hover {
  color: var(--fms-electric);
}

.fms-single-main {
  background: #ffffff;
  padding-block: clamp(2.5rem, 4.5vw, 4rem);
}

.fms-single-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .85fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

.fms-single-gallery,
.fms-single-summary {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.fms-stage {
  position: relative;
  width: 100%;
  max-width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: var(--fms-navy);
  aspect-ratio: 3 / 2;
  border: 1px solid var(--fms-border);
  box-sizing: border-box;
}

.fms-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fms-stage--sold img {
  filter: grayscale(45%) brightness(.82);
}

.fms-sold-ribbon {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 8px 18px;
  background: rgba(3, 20, 38, .92);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  font-family: var(--fms-font);
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .18em;
}

.fms-stage-tag {
  position: absolute;
  top: 16px;
  left: 16px;
}

.fms-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: .65rem;
  margin-top: .85rem;
}

body .fms-single-page button[type="button"].fms-thumb-btn,
.fms-thumb-btn {
  padding: 0;
  margin: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: var(--fms-navy);
  color: transparent;
  cursor: pointer;
  aspect-ratio: 3 / 2;
  opacity: .68;
  box-shadow: none;
  transition: opacity .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

body .fms-single-page button[type="button"].fms-thumb-btn:hover,
.fms-thumb-btn:hover {
  opacity: 1;
  background: var(--fms-navy);
  border-color: rgba(0, 127, 168, .55);
  transform: translateY(-2px);
}

body .fms-single-page button[type="button"].fms-thumb-btn.is-active,
.fms-thumb-btn.is-active {
  opacity: 1;
  background: var(--fms-navy);
  border-color: var(--fms-blue);
  box-shadow: 0 6px 18px rgba(0, 127, 168, .28);
}

body .fms-single-page button[type="button"].fms-thumb-btn:focus-visible,
.fms-thumb-btn:focus-visible {
  outline: 2px solid var(--fms-electric);
  outline-offset: 2px;
}

.fms-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fms-single-summary {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 2rem;
  background: #ffffff;
  border: 1px solid var(--fms-border);
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(3, 20, 38, .07);
}

@media (min-width: 1121px) {
  .fms-single-summary {
    position: sticky;
    top: 104px;
  }
}

.fms-summary-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.fms-summary-cat   { color: var(--fms-blue); }
.fms-summary-brand { color: var(--fms-navy); }
.fms-summary-year  { color: #64748b; }

.fms-single-title {
  font-family: var(--fms-font);
  font-size: clamp(1.55rem, 1.2rem + 1.15vw, 2.1rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.015em;
  color: var(--fms-navy);
  margin: 0;
}

.fms-price-panel {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: 1.1rem 1.3rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f6fb 100%);
  border: 1px solid #dbe4ee;
  border-left: 4px solid var(--fms-blue);
  border-radius: 12px;
}

.fms-price-panel__label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #64748b;
}

.fms-price-panel__value {
  font-family: var(--fms-font);
  font-size: 1.9rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--fms-navy);
}

.fms-sold-box {
  padding: 1.15rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #475569;
  border-radius: 10px;
}

.fms-sold-box p {
  margin: .65rem 0 0;
  font-size: .9rem;
  color: #334e68;
}

.fms-trust-note {
  margin: 0;
  font-size: .8rem;
  color: #64748b;
  text-align: center;
}

.fms-specs-box h2 {
  font-family: var(--fms-font);
  font-size: .95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--fms-navy);
  margin: .5rem 0 .75rem;
}

.fms-specs-list {
  margin: 0;
}

.fms-specs-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--fms-border);
  font-size: .875rem;
}

.fms-specs-row:last-child { border-bottom: none; }
.fms-specs-row dt { color: var(--fms-muted); }
.fms-specs-row dd { margin: 0; font-weight: 700; color: var(--fms-navy); text-align: right; }

.fms-details-sections {
  margin-top: 3rem;
  display: grid;
  gap: 2rem;
  max-width: 860px;
}

.fms-detail-block h2 {
  font-family: var(--fms-font);
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--fms-navy);
  margin: 0 0 .85rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--fms-surface);
}

.fms-prose {
  font-size: .98rem;
  line-height: 1.75;
  color: #334e68;
}

/* Produtos Relacionados */
.fms-related-section {
  background: var(--fms-surface);
  padding-block: clamp(3rem, 5vw, 4.5rem);
  border-top: 1px solid var(--fms-border);
}

.fms-related-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.fms-related-header h2 {
  font-family: var(--fms-font);
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--fms-navy);
  margin: 0;
}

/* Responsivo */
@media (max-width: 1120px) {
  .fms-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fms-grid    { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fms-single-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 680px) {
  .fms-filters { grid-template-columns: minmax(0, 1fr); }
  .fms-grid    { grid-template-columns: minmax(0, 1fr); }
  .fms-card__footer { flex-direction: column; align-items: stretch; }
}

/* ==========================================================================
   Galeria Interativa (Setas, Swipe Mobile e Lightbox com Zoom)
   Especificidade blindada contra estilos globais de button do Hello Elementor
   ========================================================================== */

.fms-stage {
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 20px 50px rgba(3, 20, 38, .12);
}

/* Degradê sutil na base para contraste impecável do contador e botão Ampliar */
.fms-stage::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 24%;
  background: linear-gradient(180deg, rgba(3, 20, 38, 0) 0%, rgba(3, 20, 38, .48) 100%);
  pointer-events: none;
  z-index: 2;
}

.fms-stage img {
  cursor: zoom-in;
  transition: opacity .18s ease;
}

.fms-stage img.is-switching {
  opacity: .55;
}

body .fms-single-page button[type="button"].fms-nav-btn,
.fms-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(3, 20, 38, .74);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(3, 20, 38, .35);
  transition: background-color .18s ease, border-color .18s ease, transform .18s cubic-bezier(.22, 1, .36, 1), box-shadow .18s ease;
}

.fms-nav-btn--prev { left: 16px; }
.fms-nav-btn--next { right: 16px; }

body .fms-single-page button[type="button"].fms-nav-btn svg,
.fms-nav-btn svg {
  stroke: #ffffff;
  display: block;
}

body .fms-single-page button[type="button"].fms-nav-btn:hover,
body .fms-single-page button[type="button"].fms-nav-btn:focus-visible,
.fms-nav-btn:hover,
.fms-nav-btn:focus-visible {
  background: var(--fms-blue);
  border-color: var(--fms-electric);
  color: #ffffff;
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 10px 28px rgba(0, 127, 168, .44);
  outline: none;
}

body .fms-single-page button[type="button"].fms-nav-btn:active,
.fms-nav-btn:active {
  transform: translateY(-50%) scale(.95);
}

.fms-stage-counter {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(3, 20, 38, .78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #ffffff;
  font-family: var(--fms-font);
  font-size: .75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(3, 20, 38, .28);
}

body .fms-single-page button[type="button"].fms-expand-btn,
.fms-expand-btn {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 36px;
  margin: 0;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(3, 20, 38, .78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  font-family: var(--fms-font);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(3, 20, 38, .28);
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

body .fms-single-page button[type="button"].fms-expand-btn svg,
.fms-expand-btn svg {
  stroke: #ffffff;
  display: block;
}

body .fms-single-page button[type="button"].fms-expand-btn:hover,
body .fms-single-page button[type="button"].fms-expand-btn:focus-visible,
.fms-expand-btn:hover,
.fms-expand-btn:focus-visible {
  background: var(--fms-blue);
  border-color: var(--fms-electric);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 127, 168, .4);
  outline: none;
}

/* Miniaturas deslizáveis por dedo no mobile */
@media (max-width: 680px) {
  body .fms-single-page button[type="button"].fms-nav-btn,
  .fms-nav-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
  .fms-nav-btn--prev { left: 10px; }
  .fms-nav-btn--next { right: 10px; }
  .fms-expand-btn span { display: none; }
  body .fms-single-page button[type="button"].fms-expand-btn,
  .fms-expand-btn {
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    justify-content: center;
    right: 10px;
    bottom: 10px;
  }
  .fms-stage-counter {
    left: 10px;
    bottom: 10px;
    min-height: 34px;
    padding: 0 12px;
  }
  .fms-single-summary {
    padding: 1.4rem;
    border-radius: 16px;
  }
  .fms-thumbs {
    display: flex;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    gap: .55rem;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    box-sizing: border-box;
  }
  body .fms-single-page button[type="button"].fms-thumb-btn,
  .fms-thumb-btn {
    flex: 0 0 84px;
    scroll-snap-align: center;
  }
}

/* Lightbox Tela Cheia */
html.fms-lb-lock,
html.fms-lb-lock body {
  overflow: hidden;
}

.fms-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  background: rgba(3, 20, 38, .96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
}

.fms-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.fms-lb-topbar {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(16px, 3vw, 28px);
  color: #ffffff;
}

.fms-lb-counter {
  font-family: var(--fms-font);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: #cbd5e1;
}

.fms-lb-actions {
  display: flex;
  align-items: center;
  gap: .65rem;
}

body .fms-lightbox button[type="button"].fms-lb-btn,
.fms-lb-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 40px;
  margin: 0;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .26);
  background: rgba(255, 255, 255, .12);
  color: #ffffff;
  font-family: var(--fms-font);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease;
}

body .fms-lightbox button[type="button"].fms-lb-btn svg,
body .fms-lightbox button[type="button"].fms-lb-nav svg {
  stroke: #ffffff;
  display: block;
}

body .fms-lightbox button[type="button"].fms-lb-btn.fms-lb-close,
.fms-lb-btn.fms-lb-close {
  width: 40px;
  padding: 0;
  justify-content: center;
}

body .fms-lightbox button[type="button"].fms-lb-btn:hover,
body .fms-lightbox button[type="button"].fms-lb-btn:focus-visible,
.fms-lb-btn:hover,
.fms-lb-btn:focus-visible {
  background: var(--fms-blue);
  border-color: var(--fms-electric);
  color: #ffffff;
  outline: none;
}

.fms-lb-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px clamp(16px, 6vw, 84px) 16px;
  overflow: hidden;
  touch-action: pan-y;
}

.fms-lb-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .55);
  cursor: zoom-in;
  transition: transform .22s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.fms-lightbox.is-zoomed .fms-lb-stage {
  display: block;
  overflow: auto;
  padding: 16px;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
  text-align: center;
}

.fms-lightbox.is-zoomed .fms-lb-img {
  max-width: none;
  max-height: none;
  width: min(1900px, 185vw);
  cursor: zoom-out;
  border-radius: 6px;
}

body .fms-lightbox button[type="button"].fms-lb-nav,
.fms-lb-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  margin: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .26);
  background: rgba(3, 20, 38, .76);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .4);
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}

.fms-lb-nav--prev { left: clamp(10px, 2vw, 24px); }
.fms-lb-nav--next { right: clamp(10px, 2vw, 24px); }

body .fms-lightbox button[type="button"].fms-lb-nav:hover,
body .fms-lightbox button[type="button"].fms-lb-nav:focus-visible,
.fms-lb-nav:hover,
.fms-lb-nav:focus-visible {
  background: var(--fms-blue);
  border-color: var(--fms-electric);
  color: #ffffff;
  transform: translateY(-50%) scale(1.06);
  outline: none;
}

.fms-lb-hint {
  margin: 0;
  padding: 8px 16px 18px;
  text-align: center;
  font-size: .78rem;
  color: #94a3b8;
}

@media (max-width: 680px) {
  .fms-lb-stage { padding: 8px 12px 12px; }
  .fms-lb-nav { width: 40px; height: 40px; }
  .fms-lb-hint { font-size: .72rem; }
}

@media (prefers-reduced-motion: reduce) {
  .fms-lightbox,
  .fms-lb-img,
  .fms-stage img,
  .fms-nav-btn {
    transition: none !important;
  }
}

/* Código do Anúncio (Cards & Página Individual) */
.fms-card__meta-right {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.fms-card__code {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--fms-surface);
  border: 1px solid var(--fms-border);
  color: var(--fms-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
}

.fms-single-code {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin: -.35rem 0 .15rem;
  font-size: .8rem;
  color: var(--fms-muted);
}

.fms-single-code strong {
  padding: 2px 9px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid var(--fms-border);
  color: var(--fms-navy);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .82rem;
  letter-spacing: .08em;
}

/* ==========================================================================
   Vitrine Minimalista da Home ([fiuza_seminovos_home])
   Apenas Foto, Título, Ano e Preço — Tema Escuro Náutico (padrão) e Claro
   ========================================================================== */

.fms-home-showcase {
  width: 100%;
  box-sizing: border-box;
}

.fms-home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.2vw, 1.85rem);
}

a.fms-home-card {
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  border-radius: 16px;
  overflow: hidden;
  min-width: 0;
  transition: transform .28s cubic-bezier(.22, 1, .36, 1),
              border-color .24s ease,
              box-shadow .28s cubic-bezier(.22, 1, .36, 1);
}

.fms-home-showcase--dark a.fms-home-card {
  background: linear-gradient(180deg, rgba(11, 41, 69, .58) 0%, rgba(6, 29, 53, .92) 100%);
  border: 1px solid rgba(148, 163, 184, .18);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .28);
}

.fms-home-showcase--light a.fms-home-card {
  background: #ffffff;
  border: 1px solid var(--fms-border);
  box-shadow: 0 10px 28px rgba(3, 20, 38, .06);
}

@media (hover: hover) and (pointer: fine) {
  .fms-home-showcase--dark a.fms-home-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 191, 255, .55);
    box-shadow: 0 24px 52px rgba(0, 0, 0, .44), 0 0 0 1px rgba(0, 191, 255, .16);
  }
  .fms-home-showcase--light a.fms-home-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 127, 168, .45);
    box-shadow: 0 20px 44px rgba(3, 20, 38, .12);
  }
  a.fms-home-card:hover .fms-home-card__img {
    transform: scale(1.045);
  }
  a.fms-home-card:hover .fms-home-card__arrow {
    transform: translateX(4px);
    color: var(--fms-electric);
    border-color: rgba(0, 191, 255, .5);
    background: rgba(0, 191, 255, .12);
  }
  .fms-home-showcase--light a.fms-home-card:hover .fms-home-card__arrow {
    color: var(--fms-blue);
    border-color: var(--fms-blue);
    background: rgba(0, 127, 168, .08);
  }
}

a.fms-home-card:focus-visible {
  outline: 2px solid var(--fms-electric);
  outline-offset: 3px;
}

.fms-home-card__media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--fms-navy);
}

.fms-home-card__media::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 36%;
  background: linear-gradient(180deg, rgba(6, 29, 53, 0) 0%, rgba(6, 29, 53, .62) 100%);
  pointer-events: none;
}

.fms-home-showcase--light .fms-home-card__media::after {
  background: linear-gradient(180deg, rgba(3, 20, 38, 0) 0%, rgba(3, 20, 38, .22) 100%);
}

.fms-home-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .55s cubic-bezier(.22, 1, .36, 1);
}

.fms-home-card__year {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(3, 20, 38, .76);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #ffffff;
  font-family: var(--fms-font);
  font-size: .74rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
  line-height: 1;
}

.fms-home-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.35rem 1.45rem 1.4rem;
  gap: 1.15rem;
}

.fms-home-card__title {
  margin: 0;
  font-family: var(--fms-font);
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.fms-home-showcase--dark .fms-home-card__title {
  color: #ffffff;
}

.fms-home-showcase--light .fms-home-card__title {
  color: var(--fms-navy);
}

.fms-home-card__bottom {
  margin-top: auto;
  padding-top: .95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.fms-home-showcase--light .fms-home-card__bottom {
  border-top-color: var(--fms-border);
}

.fms-home-card__price {
  font-family: var(--fms-font);
  font-size: 1.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

.fms-home-showcase--dark .fms-home-card__price {
  color: var(--fms-electric);
}

.fms-home-showcase--light .fms-home-card__price {
  color: var(--fms-navy);
}

.fms-home-card__arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, .18);
  color: #cbd5e1;
  transition: transform .22s ease, color .22s ease, border-color .22s ease, background-color .22s ease;
}

.fms-home-showcase--light .fms-home-card__arrow {
  border-color: #cbd5e1;
  color: var(--fms-navy);
}

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

@media (max-width: 680px) {
  .fms-home-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .fms-home-card__title {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  a.fms-home-card,
  .fms-home-card__img,
  .fms-home-card__arrow {
    transition: none !important;
  }
}
