/* ==========================================================================
   Óptica Central — Brand & Header Luxury Style (Boodles Edition)
   ========================================================================== */

:root {
  --header-h: 126px;
}

@media (max-width: 900px) {
  :root {
    --header-h: 75px;
  }
}

/* ==========================================================================
   Barra Superior de Avisos & Serviços (Announcement Bar)
   Opacidade reduzida, efeito translúcido e tipografia serif itálica
   ========================================================================== */
.top-bar {
  background: rgba(239, 235, 226, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(217, 217, 206, 0.45);
  padding: 8px 4.3%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--muted);
  position: relative;
  z-index: 25;
  transition: background .3s ease, border-color .3s ease;
}

.top-bar-left,
.top-bar-right {
  flex: 0 0 auto;
}

.top-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s ease, transform .2s ease;
  font-size: 11px;
}

.top-bar-link:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.top-bar-link svg {
  display: inline-block;
  vertical-align: middle;
}

/* Nova fonte refinada para o aviso central (Serif Itálica estilo Haute Joaillerie) */
.top-bar-center {
  text-align: center;
  flex: 1;
}

.top-bar-center a {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14.5px;
  letter-spacing: .06em;
  text-transform: none;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  color: var(--ink);
  opacity: .88;
  display: inline-block;
  transition: opacity .25s ease, color .25s ease, transform .25s ease;
}

.top-bar-center a:hover {
  opacity: 1;
  color: var(--gold);
  transform: scale(1.01);
}

/* ==========================================================================
   Cabeçalho Principal
   ========================================================================== */
.header {
  position: relative;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  height: auto;
  padding: 0;
  gap: 0;
}

.header-main {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 4.3% 9px;
  width: 100%;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 2;
}

.market-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: .12em;
  font-family: var(--sans);
  color: var(--ink);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: none;
  padding: 0;
  transition: color .2s ease;
}

.market-select:hover {
  color: var(--gold);
}

.market-select svg {
  width: 13px;
  height: 13px;
}

/* Logo Perfeitamente Centralizado */
.header .header-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  text-align: center;
  z-index: 1;
  pointer-events: auto;
}

.header .wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0;
  background: none;
}

.header .brand-name {
  font: 400 24px/1.08 var(--serif);
  letter-spacing: .16em;
  color: #34362d;
  text-transform: uppercase;
  margin: 0;
  display: block;
}

.header .brand-year {
  font: 400 10px/1.2 var(--serif);
  letter-spacing: .35em;
  color: #7a6845;
  margin-top: 4px;
  display: block;
}

/* Ações e Ícones à Direita */
.header-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 2;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.action-btn {
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border: none;
  background: none;
  cursor: pointer;
  transition: color .2s ease, transform .2s ease;
  position: relative;
}

.action-btn svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.25px;
  transition: transform .25s ease, stroke .25s ease;
}

.action-btn:hover {
  color: var(--gold);
  transform: translateY(-1.5px);
}

.action-btn:hover svg {
  transform: scale(1.08);
}

/* ==========================================================================
   Animações Especiais e Indicador do Botão de Localização
   ========================================================================== */
@keyframes pin-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes pulse-dot {
  0% { transform: scale(0.8); opacity: 0.9; }
  50% { transform: scale(1.3); opacity: 0.35; }
  100% { transform: scale(0.8); opacity: 0.9; }
}

.location-btn {
  position: relative;
}

.location-btn:hover svg {
  animation: pin-float 0.8s ease infinite;
  stroke: var(--gold);
}

/* Ponto pulsante sutil que convida o usuário a clicar */
.location-btn::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  top: 5px;
  right: 5px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse-dot 2.2s infinite ease-in-out;
  pointer-events: none;
}

/* Barra de Navegação Horizontal Centralizada */
.header .desktop-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  padding: 9px 4.3% 12px;
  border-top: 1px solid rgb(217 217 206 / 50%);
  width: 100%;
}

.header .desktop-nav a {
  font-size: 11.5px;
  letter-spacing: .17em;
  text-transform: uppercase;
  font-family: var(--sans);
  color: var(--ink);
  font-weight: 500;
  padding: 3px 0;
  position: relative;
  transition: color .2s ease;
}

.header .desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}

.header .desktop-nav a:hover {
  color: var(--gold);
}

.header .desktop-nav a:hover::after {
  transform: scaleX(1);
}

/* Brilho dourado no texto do Logo */
@media (prefers-reduced-motion: no-preference) {
  @supports (background-clip: text) or (-webkit-background-clip: text) {
    .header .brand-name {
      background: linear-gradient(110deg, #34362d 40%, #ac9054 47%, #dcc68b 50%, #ac9054 53%, #34362d 60%);
      background-size: 300% 100%;
      background-position: 0% 50%;
      background-clip: text;
      -webkit-background-clip: text;
      color: transparent;
      animation: brand-shine 2.4s ease-in-out 2.5s both;
    }

    .header .wordmark:hover .brand-name,
    .header .wordmark:focus-visible .brand-name {
      animation: brand-shine-hover 1.6s ease-in-out both;
    }
  }
}

@keyframes brand-shine {
  from { background-position: 100% 50%; }
  to { background-position: 0% 50%; }
}

@keyframes brand-shine-hover {
  from { background-position: 100% 50%; }
  to { background-position: 0% 50%; }
}

/* ==========================================================================
   Carrossel de Categorias Interativo — Boodles Edition (4 Categorias)
   ========================================================================== */
.collection-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 35px;
  width: 100%;
}

.section-heading-left h2 {
  font: 400 48px/1.05 var(--serif);
  margin: 0;
  color: var(--ink);
}

.slider-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.slider-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all .28s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(217, 217, 206, 0.95);
  background: #ffffff;
  color: var(--ink);
  padding: 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.slider-arrow.next {
  background: #faf8f3;
  border-color: rgba(217, 217, 206, 1);
}

.slider-arrow:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.06);
  border-color: var(--gold);
  color: var(--gold);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(176, 149, 89, 0.22);
}

.slider-arrow:active:not(:disabled) {
  transform: translateY(0) scale(0.94);
}

.slider-arrow:disabled {
  opacity: 0.28;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

.category-slider-wrapper {
  position: relative;
  width: 100%;
}

.category-slider-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 12px 4px 28px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  scroll-behavior: smooth;
}

.category-slider-track::-webkit-scrollbar {
  display: none;
}

.category-slider-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.category-slide {
  flex: 0 0 calc((100% - 64px) / 3.3);
  min-width: 290px;
  max-width: 370px;
  scroll-snap-align: start;
}

.category-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.34;
  overflow: hidden;
  background: #f7f5f0;
  border: 1px solid rgba(217, 217, 206, 0.7);
  padding: 0;
  cursor: pointer;
  text-align: center;
  display: block;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: transform .45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .45s cubic-bezier(0.16, 1, 0.3, 1), border-color .35s ease;
}

.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 62%, rgba(20, 20, 20, 0.12) 100%);
  pointer-events: none;
  transition: opacity .35s ease;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(22, 22, 22, 0.12), 0 0 0 1px rgba(176, 149, 89, 0.35);
  border-color: rgba(176, 149, 89, 0.7);
}

.category-card:hover::after {
  opacity: 0.85;
}

.category-card:active {
  transform: translateY(-2px) scale(0.985);
}

.category-img-box {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.category-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .95s cubic-bezier(0.16, 1, 0.3, 1), filter .45s ease;
  pointer-events: none;
  user-drag: none;
  -webkit-user-drag: none;
  filter: brightness(0.99) contrast(1.01);
}

.category-card:hover .category-img-box img {
  transform: scale(1.07);
  filter: brightness(1.02) contrast(1.02);
}

.category-label-box {
  position: absolute;
  bottom: 26px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

.category-clean-btn {
  font: 400 18px/1.2 var(--serif);
  color: var(--ink);
  letter-spacing: .08em;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 10px 28px;
  border: 1px solid rgba(217, 217, 206, 0.9);
  border-radius: 40px;
  transition: all .35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.category-clean-btn::after {
  content: '↗';
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transform: translate(-4px, 3px);
  transition: all .3s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--gold);
}

.category-card:hover .category-clean-btn {
  background: #ffffff;
  color: #111111;
  border-color: var(--gold);
  box-shadow: 0 10px 28px rgba(176, 149, 89, 0.25);
  transform: translateY(-3px);
}

.category-card:hover .category-clean-btn::after {
  opacity: 1;
  transform: translate(0, 0);
}

.slider-progress-track {
  width: 260px;
  max-width: 65%;
  height: 3px;
  background: rgba(217, 217, 206, 0.55);
  margin: 32px auto 0;
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  transition: height .2s ease, background-color .2s ease;
}

.slider-progress-track:hover {
  height: 4px;
  background: rgba(217, 217, 206, 0.85);
}

.slider-progress-thumb {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 35%;
  background: var(--ink);
  border-radius: 3px;
  transition: transform .12s cubic-bezier(0, 0, 0.2, 1);
}

@media (max-width: 900px) {
  .section-heading-left h2 {
    font-size: 34px;
  }
  .category-slide {
    flex: 0 0 76%;
    min-width: 240px;
  }
  .category-card {
    aspect-ratio: 1 / 1.3;
  }
  .category-clean-btn {
    font-size: 17px;
    padding: 8px 22px;
  }
  .slider-arrow {
    width: 42px;
    height: 42px;
  }
}

/* ==========================================================================
   Novo Rodapé Completo com Boutique, Endereço, Horários e Contatos
   ========================================================================== */
.site-footer {
  display: flex;
  flex-direction: column;
  gap: 45px;
  padding: 75px 4.3% 40px;
  background: #ede9df;
  border-top: 1px solid var(--line);
  scroll-margin-top: 30px;
}

.footer-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 28px;
  padding-bottom: 10px;
}

.footer-col {
  background: rgba(247, 245, 239, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 30px 28px;
  border: 1px solid rgba(217, 217, 206, 0.7);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.footer-col:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
  border-color: var(--gold);
}

.footer-col-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.footer-icon {
  color: var(--gold);
  flex-shrink: 0;
}

.footer-col-header h3 {
  font: 400 24px/1.2 var(--serif);
  letter-spacing: .06em;
  margin: 0;
  color: var(--ink);
}

.footer-col p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

.footer-map-link,
.footer-link {
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-top: 6px;
  font-weight: 500;
  display: inline-block;
  transition: color .2s ease, transform .2s ease;
}

.footer-map-link:hover,
.footer-link:hover {
  color: var(--ink);
  transform: translateX(3px);
}

.footer-badge {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8c7b57;
  margin-top: 6px;
  font-weight: 500;
}

.footer-divider {
  height: 1px;
  background: rgba(217, 217, 206, 0.75);
  width: 100%;
}

.footer-main-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-main-row nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.footer-main-row nav a {
  transition: color .2s ease;
}

.footer-main-row nav a:hover {
  color: var(--gold);
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
}

.footer-bottom-row p {
  font: 22px var(--serif);
  color: var(--ink);
}

/* Efeito de Destaque Animado ao navegar pelo botão de Localização */
#contato-rodape:target .footer-address-card {
  border-color: var(--gold);
  box-shadow: 0 0 28px rgba(172, 148, 96, 0.38);
  animation: address-pulse 2.8s ease-out;
}

@keyframes address-pulse {
  0% {
    background: rgba(172, 148, 96, 0.22);
    transform: scale(1.02);
  }
  100% {
    background: rgba(247, 245, 239, 0.75);
    transform: scale(1);
  }
}

/* ==========================================================================
   Responsividade Mobile & Tablet
   ========================================================================== */
@media (max-width: 900px) {
  .top-bar {
    padding: 7px 16px;
    justify-content: center;
  }

  .top-bar-center a {
    font-size: 12px;
    letter-spacing: .03em;
  }

  .header-main {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
  }

  .header .header-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .header-left {
    gap: 10px;
    z-index: 2;
  }

  .header-right {
    z-index: 2;
  }

  .market-select {
    display: none;
  }

  .header .brand-name {
    font-size: 18px;
    letter-spacing: .1em;
  }

  .header .brand-year {
    font-size: 8.5px;
    letter-spacing: .22em;
  }

  .header .desktop-nav {
    display: none;
  }

  .header-actions {
    gap: 12px;
  }

  .action-btn svg {
    width: 15px;
    height: 15px;
  }

  /* Garante que no mobile o botão de localização continue visível! */
  .action-btn.desktop-only {
    display: none !important;
  }

  .action-btn.location-btn {
    display: inline-flex !important;
  }

  .menu-toggle {
    display: block;
    width: 38px;
    height: 38px;
  }

  /* Rodapé Responsivo */
  .site-footer {
    padding: 50px 20px 30px;
    gap: 35px;
  }

  .footer-contact-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-main-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .footer-main-row nav {
    flex-wrap: wrap;
    gap: 14px 20px;
    font-size: 13px;
  }

  .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
