/* =========================================================================
   Catálogo de Armações — Óticas Gassi
   Paleta navy/dourado; display em Playfair Display (mesmo espírito do
   logotipo GASSI, serifa didone) e dados em Jost.
   ========================================================================= */

:root {
  --navy-900: #0A1B33;
  --navy-800: #0E2445;
  --navy-700: #17355C;
  --navy-600: #23477A;

  --gold:     #C9963F;
  --gold-lt:  #E2BC72;
  --gold-dp:  #A9752A;

  --paper:    #F4F3F0;
  --paper-2:  #FAF9F6;
  --white:    #FFFFFF;

  --line:     #DAD7CE;
  --line-soft:#E8E6DF;

  --ink:      #1B2430;
  --ink-soft: #6B7686;
  --ink-mute: #9AA3B0;

  --gold-txt: #8A5E1E;   /* dourado escurecido: contraste AA sobre papel */

  --erro:     #B3261E;
  --erro-bg:  #FDECEA;

  --shadow-sm: 0 1px 2px rgba(10, 27, 51, 0.06), 0 2px 8px rgba(10, 27, 51, 0.05);
  --shadow-md: 0 8px 24px rgba(10, 27, 51, 0.10);
  --shadow-lg: 0 24px 60px rgba(10, 27, 51, 0.18);

  --serif: 'Playfair Display', 'Times New Roman', Georgia, serif;
  --sans:  'Jost', 'Century Gothic', 'Futura', 'Segoe UI', sans-serif;

  --radius: 2px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  /* rodape colado no fim: coluna flex com o <main> absorvendo a sobra */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--gold-dp); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.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;
}

/* ---------------------------------------------------------------- tipografia */

.eyebrow {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-txt);
}

.titulo-serif {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.12;
  margin: 0;
}

/* ------------------------------------------------------------------ topbar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(201, 150, 63, 0.28);
}

.topbar__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.brand img { width: 38px; height: 38px; object-fit: contain; flex-shrink: 0; }

.brand__txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand__nome {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--white);
  white-space: nowrap;
}

.brand__sub {
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.22em;
  color: var(--gold);
  white-space: nowrap;
}

.topbar__spacer { flex-grow: 1; }

.userchip {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 6px 6px 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.userchip__txt { display: flex; flex-direction: column; line-height: 1.25; }
.userchip__nome { font-size: 12.5px; font-weight: 400; color: var(--white); }
.userchip__lugar { font-size: 10px; font-weight: 300; letter-spacing: 0.08em; color: rgba(220, 230, 244, 0.62); }

.userchip__av {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--gold-lt), var(--gold-dp));
  color: var(--navy-900);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.sair {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: rgba(226, 234, 246, 0.9);
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.sair:hover { background: rgba(201, 150, 63, 0.14); border-color: var(--gold); color: var(--white); }

/* -------------------------------------------------------------- layout base */

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

.page-head {
  padding: 46px 0 26px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.page-head h1 { font-size: clamp(30px, 4vw, 44px); }

.page-head__meta {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.regua {
  height: 1px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(201, 150, 63, 0.18) 42%, rgba(201, 150, 63, 0) 100%);
}

/* ---------------------------------------------------------------- botões */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}

.btn--primario {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
}
.btn--primario:hover { background: var(--navy-700); border-color: var(--navy-700); color: var(--white); }

.btn--ouro {
  background: linear-gradient(160deg, var(--gold-lt) 0%, var(--gold) 55%, var(--gold-dp) 100%);
  color: var(--navy-900);
}
.btn--ouro:hover { filter: brightness(1.06); color: var(--navy-900); }

.btn--linha {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--line);
}
.btn--linha:hover { border-color: var(--navy-800); color: var(--navy-900); background: var(--white); }

.btn--bloco { width: 100%; }

/* ---------------------------------------------------------------- filtros */

.barra-filtros {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 30px;
}

.filtros {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  flex-grow: 1;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.campo > label {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.campo input,
.campo select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  transition: border-color .15s ease, background .15s ease;
}

.campo input:hover, .campo select:hover { border-color: var(--ink-mute); }
.campo input:focus, .campo select:focus { border-color: var(--navy-700); background: var(--white); outline: none; }

.busca-box { position: relative; width: 100%; }
.busca-box input { padding-right: 44px; }

/* dica da tecla de atalho — some quando o campo tem foco ou conteúdo */
.busca-atalho {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  display: none;
  min-width: 22px;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink-mute);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.3;
  pointer-events: none;
}

.js .busca-atalho { display: block; }
.busca-box input:focus ~ .busca-atalho,
.busca-box input:not(:placeholder-shown) ~ .busca-atalho { display: none; }

.js .filtros__enviar { display: none; }
.filtros__acoes { display: flex; gap: 8px; }

.limpar {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 14px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid transparent;
}
.limpar:hover { color: var(--navy-900); border-color: var(--line); }

/* alternador grade / lista */

.vista {
  display: flex;
  flex-shrink: 0;
  padding: 4px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.vista__bt {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 0;
  background: transparent;
  color: var(--ink-mute);
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}

.vista__bt:hover { color: var(--navy-800); background: var(--paper-2); }
.vista__bt[aria-pressed="true"] { background: var(--navy-900); color: #FFFFFF; }

/* fichas de filtro ativo */

.filtro-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -14px 0 24px; }
.filtro-chips:empty { display: none; }

.filtro-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px 7px 13px;
  border: 1px solid rgba(201, 150, 63, 0.42);
  border-radius: 999px;
  background: rgba(201, 150, 63, 0.09);
  color: var(--gold-txt);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease;
}

.filtro-chip:hover { background: rgba(201, 150, 63, 0.2); border-color: var(--gold); }
.filtro-chip b { font-weight: 500; }
.filtro-chip svg { opacity: .7; }

/* ------------------------------------------------------------------ grade */

.grade {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 26px;
  padding-bottom: 64px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .24s cubic-bezier(.2, .7, .2, 1), box-shadow .24s ease, border-color .24s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 150, 63, 0.55);
}

.card.oculto { display: none; }

/* entrada escalonada, uma orquestração só */
.js .card {
  animation: card-sobe .5s cubic-bezier(.2, .8, .25, 1) backwards;
  animation-delay: calc(var(--i, 0) * 65ms);
}

@keyframes card-sobe {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* foto sobre um halo da própria imagem: tira o vazio branco sem cortar o produto */
.card__foto {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--white);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
  isolation: isolate;
}

.card__ambiente { position: absolute; inset: -22%; z-index: -2; }

.card__ambiente img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(46px) saturate(1.8);
  transform: scale(1.15);
  opacity: .5;
  transition: opacity .4s ease;
}

.card__foto::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.62) 100%);
}

.card:hover .card__ambiente img { opacity: .74; }

.card__foto > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}

.card:hover .card__foto > img { transform: scale(1.045); }

.card__num {
  position: absolute;
  left: 0; top: 0;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy-800);
  color: var(--white);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
}

.card__lupa {
  position: absolute;
  right: 14px; bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(10, 27, 51, 0.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  backdrop-filter: blur(14px) saturate(1.6);
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity .24s ease, transform .24s ease;
  pointer-events: none;
}

.card:hover .card__lupa,
.card__foto:focus-visible .card__lupa { opacity: 1; transform: none; }

.card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }

.card__ident { min-width: 0; }

.card__modelo {
  margin: 0;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--navy-900);
  line-height: 1.05;
}

.card__linha {
  margin: 4px 0 0;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.chips { display: flex; flex-wrap: wrap; gap: 7px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.chip strong { font-weight: 500; color: var(--ink); letter-spacing: 0.02em; }

.chip--ouro { background: rgba(201, 150, 63, 0.10); border-color: rgba(201, 150, 63, 0.4); color: var(--gold-txt); }
.chip--ouro strong { color: var(--gold-txt); }

.card__pe {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card__pe > span {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy-800);
}

.card__link svg { transition: transform .18s ease; }
.card__link:hover svg { transform: translateX(4px); }

/* ------------------------------------------------------------------ lista */

.grade--lista { grid-template-columns: minmax(0, 1fr); gap: 12px; }

.grade--lista .card { flex-direction: row; align-items: stretch; }
.grade--lista .card:hover { transform: translateX(4px); }

.grade--lista .card__foto {
  flex: 0 0 200px;
  aspect-ratio: 3 / 2;
  border-bottom: 0;
  border-right: 1px solid var(--line-soft);
}

.grade--lista .card__foto > img { padding: 12px; }
.grade--lista .card__num { width: 34px; height: 34px; font-size: 14px; }
.grade--lista .card__lupa { display: none; }

.grade--lista .card__body {
  flex-direction: row;
  align-items: center;
  gap: 28px;
  padding: 16px 24px;
}

.grade--lista .card__ident { flex: 1 1 auto; }
.grade--lista .card__modelo { font-size: 22px; }
.grade--lista .chips { flex: 0 0 auto; }

.grade--lista .card__pe {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border-top: 0;
  gap: 24px;
}

/* ------------------------------------------------------------------- vazio */

.vazio {
  padding: 72px 24px;
  text-align: center;
  background: var(--white);
  border: 1px dashed var(--line);
  margin-bottom: 64px;
}

.vazio.oculto { display: none; }
.vazio h2 { font-family: var(--serif); font-size: 24px; font-weight: 500; margin: 16px 0 8px; color: var(--navy-900); }
.vazio p { margin: 0 0 22px; color: var(--ink-soft); font-size: 14px; }

/* ------------------------------------------------------------------- ficha */

.voltar {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 26px 0 0;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.voltar:hover { color: var(--navy-900); }
.voltar svg { transition: transform .18s ease; }
.voltar:hover svg { transform: translateX(-4px); }

.ficha {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 44px;
  padding: 26px 0 72px;
  align-items: start;
}

.galeria { display: flex; flex-direction: column; gap: 14px; }

/* --- palco: painel claro, para a armação aparecer sem interferência --- */

.palco {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  cursor: zoom-in;
}

.palco__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 26px;
  transition: transform .55s cubic-bezier(.2, .7, .2, 1), opacity .26s ease;
}

.palco:hover .palco__img { transform: scale(1.022); }
.palco.is-trocando .palco__img { opacity: 0; transform: scale(.982); }

.palco__canto { position: absolute; background: var(--gold); pointer-events: none; }
.palco__canto--a { left: 0; top: 0; width: 30px; height: 1px; }
.palco__canto--b { left: 0; top: 0; width: 1px; height: 30px; }
.palco__canto--c { right: 0; bottom: 0; width: 30px; height: 1px; }
.palco__canto--d { right: 0; bottom: 0; width: 1px; height: 30px; }

.palco__tag {
  position: absolute;
  left: 0; bottom: 0;
  padding: 6px 13px;
  background: var(--navy-800);
  color: #E9EFF7;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.palco__lupa {
  position: absolute;
  right: 16px; bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(10, 27, 51, 0.46);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  backdrop-filter: blur(14px) saturate(1.6);
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity .26s ease, transform .26s ease;
  pointer-events: none;
}

.palco:hover .palco__lupa,
.palco:focus-visible .palco__lupa { opacity: 1; transform: none; }

/* --- carrossel: vidro fosco sobre o ambiente desfocado da foto ativa --- */

.carrossel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy-900);
  border: 1px solid rgba(201, 150, 63, 0.24);
}

.carrossel__ambiente { position: absolute; inset: -20%; z-index: -2; }

.carrossel__ambiente img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(40px) saturate(1.9) brightness(.86);
  transform: scale(1.2);
  transition: opacity .55s ease;
}

.carrossel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(130% 120% at 50% 40%, rgba(23, 53, 92, 0.24), rgba(8, 23, 44, 0.8)),
    linear-gradient(180deg, rgba(10, 27, 51, 0.34) 0%, rgba(8, 23, 44, 0.66) 100%);
}

.carrossel__trilho {
  display: flex;
  gap: 12px;
  padding: 15px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.carrossel__trilho::-webkit-scrollbar { display: none; }
.carrossel__trilho.centrado { justify-content: center; }

.slide {
  position: relative;
  flex: 0 0 auto;
  width: 178px;
  aspect-ratio: 3 / 2;
  padding: 0;
  scroll-snap-align: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(252, 251, 249, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  cursor: pointer;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), border-color .25s ease,
              box-shadow .25s ease, background .25s ease;
}

.slide img { width: 100%; height: 100%; object-fit: contain; padding: 11px; }

.slide:hover { transform: translateY(-4px); background: rgba(252, 251, 249, 0.86); }

.slide[aria-selected="true"] {
  border-color: var(--gold);
  background: rgba(252, 251, 249, 0.92);
  box-shadow: 0 0 0 1px var(--gold), 0 14px 30px rgba(4, 12, 24, 0.42);
}

.slide__rotulo {
  position: absolute;
  left: 0; bottom: 0;
  padding: 4px 10px;
  background: rgba(10, 27, 51, 0.66);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.carrossel__seta {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 40px; height: 40px;
  display: none;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(10, 27, 51, 0.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
  color: #FFFFFF;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, opacity .2s ease;
}

.carrossel.tem-overflow .carrossel__seta { display: flex; }
.carrossel__seta:hover { background: rgba(201, 150, 63, 0.5); border-color: var(--gold); }
.carrossel__seta[disabled] { opacity: .28; cursor: default; }
.carrossel__seta--ant { left: 12px; }
.carrossel__seta--prox { right: 12px; }

/* --- lightbox --- */

.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
  color: #FFFFFF;
}

.lightbox::backdrop {
  background: rgba(6, 17, 33, 0.76);
  -webkit-backdrop-filter: blur(26px) saturate(1.35);
  backdrop-filter: blur(26px) saturate(1.35);
}

.lightbox__caixa {
  position: relative;
  isolation: isolate;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.lightbox__ambiente { position: absolute; inset: -12%; z-index: -2; }

.lightbox__ambiente img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: blur(60px) saturate(1.8) brightness(.6);
  transform: scale(1.14);
  opacity: .85;
  transition: opacity .5s ease;
}

.lightbox__caixa::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(110% 90% at 50% 0%, rgba(23, 53, 92, 0.34), rgba(5, 14, 28, 0.9));
}

.lightbox__topo {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px clamp(18px, 4vw, 40px);
  flex-shrink: 0;
}

.lightbox__id { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lightbox__id b { font-family: var(--serif); font-size: 25px; font-weight: 500; letter-spacing: .03em; }
.lightbox__id span { font-size: 9.5px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-lt); }

.lightbox__contador {
  margin-left: auto;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 10.5px;
  letter-spacing: .16em;
  font-variant-numeric: tabular-nums;
}

.lightbox__fechar {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #FFFFFF;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.lightbox__fechar:hover { background: rgba(201, 150, 63, 0.52); border-color: var(--gold); transform: rotate(90deg); }

.lightbox__palco {
  position: relative;
  flex-grow: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(18px, 7vw, 96px);
}

.lightbox__quadro {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  padding: 14px;
  background: #FBFAF8;
  border: 1px solid rgba(201, 150, 63, 0.55);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  cursor: zoom-in;
  animation: lb-entra .34s cubic-bezier(.2, .8, .25, 1);
}

.lightbox__quadro img {
  max-width: min(1100px, 82vw);
  max-height: calc(100dvh - 300px);
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform .38s cubic-bezier(.2, .7, .2, 1), opacity .24s ease;
  transform-origin: center;
}

.lightbox__quadro.is-zoom { cursor: zoom-out; }
.lightbox__quadro.is-zoom img { transform: scale(2.1); }
.lightbox__quadro.is-trocando img { opacity: 0; }

@keyframes lb-entra {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to   { opacity: 1; transform: none; }
}

.lightbox__seta {
  position: absolute;
  top: 50%;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  background: rgba(10, 27, 51, 0.44);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  color: #FFFFFF;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.lightbox__seta:hover { background: rgba(201, 150, 63, 0.5); border-color: var(--gold); }
.lightbox__seta--ant { left: clamp(10px, 2.4vw, 30px); }
.lightbox__seta--prox { right: clamp(10px, 2.4vw, 30px); }

.lightbox__tiras {
  display: flex;
  justify-content: center;
  gap: 11px;
  padding: 20px clamp(18px, 4vw, 40px) 26px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}

.lightbox__tiras::-webkit-scrollbar { display: none; }

.lightbox__tira {
  position: relative;
  flex: 0 0 auto;
  width: 108px;
  aspect-ratio: 3 / 2;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(252, 251, 249, 0.66);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  cursor: pointer;
  transition: transform .25s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.lightbox__tira img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.lightbox__tira:hover { transform: translateY(-3px); background: rgba(252, 251, 249, 0.84); }

.lightbox__tira[aria-selected="true"] {
  border-color: var(--gold);
  background: rgba(252, 251, 249, 0.92);
  box-shadow: 0 0 0 1px var(--gold);
}

/* navegadores sem backdrop-filter: opacidade maior, para manter a legibilidade */
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .slide, .lightbox__tira { background: rgba(252, 251, 249, 0.93); }
  .palco__lupa, .carrossel__seta, .lightbox__seta { background: rgba(10, 27, 51, 0.86); }
  .lightbox__contador, .lightbox__fechar { background: rgba(255, 255, 255, 0.2); }
  .lightbox::backdrop { background: rgba(6, 17, 33, 0.95); }
}

.ficha__info { display: flex; flex-direction: column; gap: 22px; }

.ficha__cabeca { display: flex; align-items: flex-start; gap: 18px; }

.ficha__num {
  width: 58px; height: 58px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy-800);
  color: var(--white);
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
}

.ficha__modelo {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--navy-900);
  margin: 0;
}

.ficha__linha {
  margin-top: 7px;
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-txt);
}

/* tabela de especificações */

.spec { border: 1px solid var(--line); background: var(--white); }

.spec__linha { display: grid; grid-template-columns: minmax(140px, 40%) minmax(0, 1fr); }
.spec__linha + .spec__linha .spec__rot,
.spec__linha + .spec__linha .spec__val { border-top-width: 1px; }

.spec__rot {
  display: flex; align-items: center;
  min-height: 46px;
  padding: 10px 18px;
  background: var(--navy-800);
  border-top: 0 solid rgba(255, 255, 255, 0.10);
  color: #E9EFF7;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.spec__val {
  display: flex; align-items: center;
  min-height: 46px;
  padding: 10px 18px;
  border-top: 0 solid var(--line);
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
}

.spec__linha:nth-child(even) .spec__val { background: var(--paper-2); }

.ficha__acoes { display: flex; gap: 12px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ rodapé */

main { flex: 1 0 auto; }

.rodape {
  flex-shrink: 0;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.rodape__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 26px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.rodape img { width: 30px; height: 30px; object-fit: contain; }

.rodape__txt {
  flex-grow: 1;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------------- login */

.login {
  flex: 1 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.login__marca {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 78% at 50% 6%, var(--navy-700) 0%, var(--navy-800) 42%, #08172C 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 48px;
  color: var(--white);
  text-align: center;
}

.login__aro {
  position: absolute;
  border: 1px solid rgba(201, 150, 63, 0.13);
  border-radius: 50%;
  pointer-events: none;
}
.login__aro--a { width: 620px; height: 620px; left: -180px; top: -140px; }
.login__aro--b { width: 540px; height: 540px; right: -220px; bottom: -80px; }

.login__moldura {
  position: absolute;
  inset: 26px;
  border: 1px solid rgba(201, 150, 63, 0.32);
  pointer-events: none;
}

.login__conteudo { position: relative; display: flex; flex-direction: column; align-items: center; }

.login__logo { width: 168px; height: auto; }

.login__div { display: flex; align-items: center; gap: 12px; margin: 30px 0 16px; }
.login__div span { width: 54px; height: 1px; background: linear-gradient(90deg, rgba(201,150,63,0) 0%, var(--gold) 100%); }
.login__div span:last-child { background: linear-gradient(90deg, var(--gold) 0%, rgba(201,150,63,0) 100%); }
.login__div i { width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); }

.login__titulo {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.16;
  margin: 0;
}

.login__titulo strong {
  display: block;
  font-weight: 600;
  background: linear-gradient(180deg, #F0D69B 0%, var(--gold) 52%, var(--gold-dp) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.login__ano {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
}

/* a armacao flutua direto no painel: o fundo da imagem e o mesmo navy,
   entao nada de moldura ou passe-partout. Tres camadas, uma transformacao
   em cada, para entrada / flutuacao / inclinacao nao brigarem entre si. */
.login__foto {
  position: relative;
  margin-top: 30px;
  width: min(330px, 72%);
  perspective: 950px;
}

.login__foto__flutua {
  display: block;
  animation: capa-flutua 8s ease-in-out 2.2s infinite;
}

.login__foto img {
  display: block;
  width: 100%;
  height: auto;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--s, 1));
  transition: transform .55s cubic-bezier(.2, .7, .2, 1),
              filter .55s ease;
  will-change: transform;
}

/* enquanto o ponteiro esta em cima, a inclinacao acompanha de perto */
.login__foto.is-perto img { transition: transform .11s ease-out, filter .3s ease; }

.login__foto:hover .login__foto__flutua { animation-play-state: paused; }
.login__foto:hover img { filter: drop-shadow(0 26px 34px rgba(3, 10, 22, 0.55)); }

@keyframes capa-flutua {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* entrada: cada peca do painel sobe na sua vez */
.revela { animation: revela .72s cubic-bezier(.2, .8, .25, 1) backwards; animation-delay: var(--d, 0s); }

@keyframes revela {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

.login__foto.revela { animation-duration: .95s; }

.login__form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px clamp(28px, 6vw, 84px);
  background: var(--paper);
}

.login__form-inner { width: 100%; max-width: 400px; margin: 0 auto; }

.login__saudacao { font-family: var(--serif); font-size: 32px; font-weight: 500; color: var(--navy-900); margin: 10px 0 8px; }
.login__ajuda { margin: 0 0 30px; font-size: 14px; color: var(--ink-soft); line-height: 1.6; }

.login__campos { display: flex; flex-direction: column; gap: 18px; }

.login__campos .campo input { height: 50px; font-size: 15px; background: var(--white); }

.senha-box { position: relative; width: 100%; }
.senha-box input { padding-right: 52px; }

.senha-olho {
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 0;
  color: var(--ink-soft);
  cursor: pointer;
}
.senha-olho:hover { color: var(--navy-800); }

.alerta {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  margin-bottom: 22px;
  background: var(--erro-bg);
  border-left: 3px solid var(--erro);
  color: #7A1A15;
  font-size: 13.5px;
  line-height: 1.5;
}

.alerta svg { flex-shrink: 0; margin-top: 2px; }

.login__rodape {
  margin-top: 40px;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ------------------------------------------------------------------- 404 */

.erro404 { padding: 96px 0 120px; text-align: center; }
.erro404 .num { font-family: var(--serif); font-size: 92px; font-weight: 500; color: var(--navy-800); line-height: 1; }
.erro404 h1 { font-family: var(--serif); font-size: 30px; font-weight: 500; margin: 14px 0 10px; }
.erro404 p { color: var(--ink-soft); margin: 0 0 28px; }

/* =========================================================================
   Administração do estoque
   ========================================================================= */

.badge-admin {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid rgba(201, 150, 63, 0.45);
  background: rgba(201, 150, 63, 0.13);
  color: var(--gold-lt);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.badge-admin:hover { background: rgba(201, 150, 63, 0.26); border-color: var(--gold); color: #FFFFFF; }

/* ------------------------------------------------------------------ flash */

.flash {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 18px;
  margin-bottom: 26px;
  border-left: 3px solid var(--navy-700);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  line-height: 1.5;
  animation: flash-entra .34s cubic-bezier(.2, .8, .25, 1);
}

.flash svg { flex-shrink: 0; margin-top: 1px; }
.flash--ok   { border-left-color: #1E7A4B; color: #14512F; background: #F2FAF5; }
.flash--erro { border-left-color: var(--erro); color: #7A1A15; background: var(--erro-bg); }

@keyframes flash-entra {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------- cabeçalho */

.adm-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 46px 0 26px;
}

.adm-head h1 { font-size: clamp(28px, 3.6vw, 40px); }
.adm-head__meta { margin-top: 8px; font-size: 12.5px; color: var(--ink-soft); }

/* ---------------------------------------------------------------- listagem */

.adm-lista { display: flex; flex-direction: column; gap: 10px; padding-bottom: 96px; }

.adm-linha {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) minmax(300px, auto) auto;
  align-items: center;
  gap: 22px;
  padding: 0 20px 0 0;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.adm-linha:hover {
  border-color: rgba(201, 150, 63, 0.5);
  box-shadow: var(--shadow-md);
  transform: translateX(3px);
}

.adm-foto {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--white);
  border-right: 1px solid var(--line-soft);
  overflow: hidden;
  isolation: isolate;
}

.adm-foto img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }

.adm-foto__ambiente { position: absolute; inset: -25%; z-index: -2; }
.adm-foto__ambiente img {
  width: 100%; height: 100%; object-fit: cover; padding: 0;
  filter: blur(30px) saturate(1.8);
  opacity: .45;
}
.adm-foto::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, 0.7);
}

.adm-foto--vazia {
  display: flex; align-items: center; justify-content: center;
  background: var(--paper-2);
  color: var(--ink-mute);
}

.adm-num {
  position: absolute;
  left: 0; top: 0;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy-800);
  color: var(--white);
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 500;
}

.adm-ident { padding: 16px 0; min-width: 0; }

.adm-ident b {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--navy-900);
  line-height: 1.1;
}

.adm-ident span {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.adm-meta { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.adm-acoes { display: flex; align-items: center; gap: 8px; }

.acao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--navy-800);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.acao:hover { border-color: var(--navy-800); background: var(--paper-2); color: var(--navy-900); }
.acao--risco { color: #8A2019; }
.acao--risco:hover { border-color: var(--erro); background: var(--erro-bg); color: #7A1A15; }
.acao--icone { width: 40px; padding: 0; }

/* ----------------------------------------------------------- formulário */

.adm-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 30px; padding-bottom: 132px; align-items: start; }

.secao {
  padding: 26px 28px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.secao + .secao { margin-top: 18px; }

.secao__topo { display: flex; align-items: baseline; gap: 12px; margin-bottom: 22px; }

.secao__num {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  color: var(--gold-txt);
}

.secao__topo h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy-900);
}

.secao__topo p { margin: 0 0 0 auto; font-size: 11.5px; color: var(--ink-mute); }

.adm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.adm-grid .largo { grid-column: 1 / -1; }

.campo--erro input,
.campo--erro select { border-color: var(--erro); background: var(--erro-bg); }

.campo__erro {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #8A2019;
}

.campo__dica { font-size: 11.5px; color: var(--ink-mute); }

/* dropzones */

.dropzone {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  border: 1px dashed var(--line);
  background: var(--paper-2);
  cursor: pointer;
  overflow: hidden;
  transition: border-color .18s ease, background .18s ease;
}

.dropzone:hover,
.dropzone.arrastando { border-color: var(--gold); background: rgba(201, 150, 63, 0.07); }
.dropzone.arrastando { border-style: solid; }

.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dropzone__vazio {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  text-align: center;
  color: var(--ink-mute);
  pointer-events: none;
}

.dropzone__vazio b {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.dropzone__vazio span { font-size: 11.5px; }

.dropzone__preview {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 14px;
  background: var(--white);
  display: none;
}

.dropzone.tem-foto .dropzone__preview { display: block; }
.dropzone.tem-foto .dropzone__vazio { display: none; }
.dropzone.tem-foto { border-style: solid; border-color: var(--line); }

.dropzone__tag {
  position: absolute;
  left: 0; top: 0;
  z-index: 2;
  padding: 5px 11px;
  background: var(--navy-800);
  color: #E9EFF7;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  pointer-events: none;
}

.dropzone__trocar {
  position: absolute;
  right: 10px; bottom: 10px;
  z-index: 2;
  display: none;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(10, 27, 51, 0.5);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
  backdrop-filter: blur(12px) saturate(1.5);
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  pointer-events: none;
}

.dropzone.tem-foto:hover .dropzone__trocar { display: inline-flex; }

.fotos-lado { display: flex; flex-direction: column; gap: 16px; }

/* barra fixa de ações */

.barra-acoes {
  position: sticky;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  margin: 0 -24px;
  background: rgba(244, 243, 240, 0.86);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-top: 1px solid var(--line);
}

.barra-acoes__nota { flex-grow: 1; font-size: 11.5px; color: var(--ink-soft); }

/* diálogo de confirmação */

.confirma {
  width: min(440px, calc(100vw - 40px));
  max-width: none;
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}

.confirma::backdrop {
  background: rgba(6, 17, 33, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.confirma h2 { margin: 14px 0 8px; font-family: var(--serif); font-size: 23px; font-weight: 500; color: var(--navy-900); }
.confirma p { margin: 0 0 24px; font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.confirma__acoes { display: flex; gap: 10px; justify-content: flex-end; }

.btn--risco { background: var(--erro); color: #FFFFFF; border-color: var(--erro); }
.btn--risco:hover { background: #8A2019; border-color: #8A2019; color: #FFFFFF; }

@media (max-width: 1080px) {
  .adm-form { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .adm-linha { grid-template-columns: 100px minmax(0, 1fr); padding: 0 16px 16px 0; gap: 16px; }
  .adm-meta, .adm-acoes { grid-column: 1 / -1; padding-left: 16px; }
  .adm-acoes { justify-content: flex-start; }
  .adm-grid { grid-template-columns: minmax(0, 1fr); }
  .barra-acoes { margin: 0 -18px; padding: 14px 18px; flex-wrap: wrap; }
  .barra-acoes__nota { flex-basis: 100%; order: -1; }
}

/* -------------------------------------------------------------- responsivo */

@media (max-width: 1080px) {
  .filtros { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filtros .campo--busca { grid-column: 1 / -1; }
  .filtros__acoes { grid-column: 1 / -1; }
  .ficha { grid-template-columns: minmax(0, 1fr); gap: 34px; }
}

@media (max-width: 900px) {
  .login { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .login__marca { padding: 44px 28px 40px; }
  .login__moldura { inset: 16px; }
  .login__logo { width: 118px; }
  .login__foto { display: none; }
  .login__ano { margin-top: 12px; font-size: 24px; }
  .login__form { padding: 40px 24px 56px; }
}

@media (max-width: 720px) {
  .topbar__inner { height: auto; padding: 14px 18px; flex-wrap: wrap; gap: 12px; }
  .userchip__txt { display: none; }
  .brand { flex: 1 1 auto; }
  .brand__txt { min-width: 0; }
  .brand__nome, .brand__sub { overflow: hidden; text-overflow: ellipsis; }
  .topbar__spacer { flex-basis: 0; }
  .wrap { padding: 0 18px; }
  .page-head { padding: 32px 0 22px; }
  .filtros { grid-template-columns: minmax(0, 1fr); }
  .barra-filtros { flex-direction: column; align-items: stretch; }
  .vista { align-self: flex-end; }
  .grade { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .grade--lista .card,
  .grade--lista .card__body { flex-direction: column; }
  .grade--lista .card__foto { flex: none; aspect-ratio: 16 / 10; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .grade--lista .card__body { align-items: stretch; gap: 12px; padding: 20px 22px 22px; }
  .grade--lista .card__pe { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-soft); justify-content: space-between; }
  .brand__nome { letter-spacing: 0.22em; }
  .slide { width: 138px; }
  .lightbox__quadro img { max-height: calc(100dvh - 250px); }
  .lightbox__id b { font-size: 19px; }
  .lightbox__tira { width: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  .topbar, .filtros, .rodape, .voltar, .ficha__acoes, .carrossel, .palco__lupa,
  .barra-acoes, .adm-acoes, .flash { display: none !important; }
}

@media (max-width: 480px) {
  .brand__sub { display: none; }
  .brand img { width: 32px; height: 32px; }
  .page-head { align-items: flex-start; }
  .filtro-chips { margin-top: -8px; }
  .card__body { padding: 18px 18px 20px; }
  .card__modelo { font-size: 24px; }
  .vazio { padding: 54px 18px; }
}
