/* ================================================================
   Atelier da Bárbara – Design System Premium v3.0
   ================================================================ */

/* =================================================================
   1. Variáveis e Configurações
   ================================================================= */
:root {
  --bg: #F9F7F2;
  --bg-alt: #F2EFE6;
  --text: #2B2B28;
  --text-muted: #6B6B63;
  --accent: #B8A88A;
  --accent-soft: #D9CFB0;
  --accent-light: #E8E0D0;
  --border: #E3DDD0;
  --card-bg: #FFFFFF;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.03);
  --card-hover-shadow: 0 12px 32px rgba(0, 0, 0, 0.07), 0 4px 8px rgba(0, 0, 0, 0.04);
  --nav-bg: rgba(249, 247, 242, 0.85);
  --nav-scrolled-bg: rgba(255, 255, 255, 0.92);
  --hero-glow: radial-gradient(circle at 50% 0%, rgba(184, 168, 138, 0.15) 0%, transparent 60%);
  --progress: var(--accent);
  --overlay: rgba(0, 0, 0, 0.92);
  --error: #C44536;
  --success: #5B8C5A;
  --warning: #D4A24E;
  --font-serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 50px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --bg: #1C1B17;
  --bg-alt: #25241E;
  --text: #E8E6DD;
  --text-muted: #A6A49A;
  --accent: #C4B393;
  --accent-soft: #5F5743;
  --accent-light: #4A4538;
  --border: #3A3830;
  --card-bg: #2A2922;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --card-hover-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  --nav-bg: rgba(28, 27, 23, 0.85);
  --nav-scrolled-bg: rgba(28, 27, 23, 0.95);
  --hero-glow: radial-gradient(circle at 50% 0%, rgba(196, 179, 147, 0.12) 0%, transparent 60%);
  --overlay: rgba(0, 0, 0, 0.96);
}

/* =================================================================
   2. Reset e Base
   ================================================================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility
}

body {
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition)
}

::selection {
  background: var(--accent);
  color: #fff
}

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem)
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem)
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem)
}

h4 {
  font-size: 1.1rem
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast)
}

img {
  display: block;
  max-width: 100%;
  height: auto
}

/* =================================================================
   3. Container
   ================================================================= */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem
}

@media(max-width:768px) {
  .container {
    padding: 0 1.25rem
  }
}

/* =================================================================
   4. Acessibilidade
   ================================================================= */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 9999;
  transition: top 0.2s;
  font-weight: 500
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--text);
  outline-offset: 2px
}

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

/* =================================================================
   5. Barra de Progresso
   ================================================================= */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--progress);
  z-index: 1001;
  transform-origin: left;
  transition: transform 0.1s linear;
  box-shadow: 0 0 8px rgba(184, 168, 138, 0.4)
}

/* =================================================================
   6. Navegação
   ================================================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: all var(--transition)
}

.nav.is-scrolled {
  background: var(--nav-scrolled-bg);
  border-bottom-color: var(--border);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06)
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px
}

.nav__mark {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text)
}

.nav__mark em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent)
}

.nav__links {
  display: flex;
  align-items: center
}

.nav__links a {
  margin-left: 2rem;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  opacity: 0.75;
  transition: all var(--transition-fast);
  position: relative
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition)
}

.nav__links a:hover {
  opacity: 1
}

.nav__links a:hover::after {
  width: 100%
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.25rem
}

.icon-btn {
  background: transparent;
  border: none;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text);
  transition: all var(--transition-fast);
  position: relative
}

.icon-btn:hover {
  background: var(--bg-alt);
  transform: scale(1.05)
}

.icon-btn:active {
  transform: scale(0.95)
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  transition: transform var(--transition-fast)
}

/* =================================================================
   7. Menu Mobile
   ================================================================= */
.mobile-menu {
  position: absolute;
  top: 72px;
  left: 0;
  width: 100%;
  background: var(--nav-scrolled-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
  display: none;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.3s ease
}

.mobile-menu.is-open {
  display: flex
}

.mobile-menu a {
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border)
}

.mobile-menu a:last-child {
  border-bottom: none
}

.mobile-menu a:hover {
  color: var(--accent)
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@media(min-width:768px) {
  #menu-toggle {
    display: none
  }

  .mobile-menu {
    display: none !important
  }
}

/* =================================================================
   8. Index Rail
   ================================================================= */
.index-rail {
  position: fixed;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-lr;
  font-family: var(--font-serif);
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.4;
  letter-spacing: 0.08em;
  z-index: 10;
  pointer-events: none
}

.index-rail__count {
  margin-top: 0.5rem;
  font-size: 0.65rem;
  font-weight: 600
}

@media(max-width:1024px) {
  .index-rail {
    display: none
  }
}

/* =================================================================
   9. Hero Section
   ================================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #1C1B17;
  /* fallback escuro */
}

/* Background com imagem */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.35) saturate(0.9);
  transform: scale(1.1);
  animation: heroZoomIn 10s ease-out forwards;
}

@keyframes heroZoomIn {
  from {
    transform: scale(1.15);
  }

  to {
    transform: scale(1.08);
  }
}

/* Overlay para melhorar legibilidade */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg,
      rgba(28, 27, 23, 0.85) 0%,
      rgba(28, 27, 23, 0.5) 35%,
      rgba(28, 27, 23, 0.3) 65%,
      rgba(28, 27, 23, 0.75) 100%);
}

/* Gradiente inferior para transição suave */
.hero__gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(to top, var(--bg, #F9F7F2) 0%, transparent 100%);
}

/* Glow decorativo */
.hero__glow {
  position: absolute;
  top: 20%;
  left: -5%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle at center,
      rgba(184, 168, 138, 0.12) 0%,
      transparent 70%);
  animation: heroGlow 6s ease-in-out infinite alternate;
  z-index: 1;
  pointer-events: none;
}

@keyframes heroGlow {
  0% {
    opacity: 0.3;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0.7;
    transform: translateY(-3%) scale(1.05);
  }
}

/* Conteúdo centralizado */
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  padding: clamp(100px, 15vh, 160px) 0 clamp(60px, 10vh, 100px);
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.hero__text-wrapper {
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

/* Eyebrow */
.hero__eyebrow {
  font-size: clamp(0.65rem, 1vw, 0.75rem);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent, #B8A88A);
  font-weight: 500;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Título */
.hero__title {
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}

.hero__title-line {
  display: block;
  opacity: 0;
  animation: fadeInUp 0.9s ease-out forwards;
}

.hero__title-line:first-child {
  animation-delay: 0.1s;
}

.hero__title-line--accent {
  color: var(--accent, #B8A88A);
  font-style: italic;
  font-weight: 500;
  animation-delay: 0.25s;
}

/* Subtítulo */
.hero__subtitle {
  font-size: clamp(0.9rem, 1.3vw, 1.15rem);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.65;
  max-width: 500px;
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
  animation-delay: 0.4s;
}

/* Botões */
.hero__actions {
  display: flex;
  gap: clamp(0.75rem, 1.5vw, 1rem);
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 1.1s ease-out forwards;
  animation-delay: 0.55s;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: clamp(0.75rem, 1.2vw, 1rem) clamp(1.25rem, 2vw, 2rem);
  border-radius: 50px;
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.hero__cta--primary {
  background: var(--accent, #B8A88A);
  color: #fff;
  box-shadow: 0 4px 20px rgba(184, 168, 138, 0.3);
}

.hero__cta--primary:hover {
  background: #C4B393;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(184, 168, 138, 0.45);
}

.hero__cta--secondary {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.hero__cta--secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.hero__cta svg {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.hero__cta:hover svg {
  transform: translateX(3px);
}

/* Estatísticas */
.hero__stats {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  opacity: 0;
  animation: fadeInUp 1.2s ease-out forwards;
  animation-delay: 0.7s;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero__stat-number {
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  color: #fff;
  line-height: 1;
}

.hero__stat-label {
  font-size: clamp(0.6rem, 0.8vw, 0.7rem);
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.hero__stat-divider {
  width: 1px;
  height: clamp(28px, 4vw, 36px);
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

/* Scroll Indicator */
.hero__scroll {
  position: absolute;
  bottom: clamp(70px, 10vh, 90px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  z-index: 3;
  opacity: 0;
  animation: fadeInUp 1.5s ease-out forwards;
  animation-delay: 1s;
}

.hero__scroll-text {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.4);
}

.hero__scroll-line {
  width: 1.5px;
  height: 35px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {

  0%,
  100% {
    transform: scaleY(0.3);
    opacity: 0.3;
  }

  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* Marquee */
.marquee {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: clamp(38px, 5vh, 48px);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  z-index: 3;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
  padding: 0 1.5rem;
  align-items: center;
  height: 100%;
  gap: 2.5rem;
}

.marquee__track span {
  font-size: clamp(0.6rem, 0.8vw, 0.7rem);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  font-weight: 500;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* =================================================================
   Responsivo - Hero
   ================================================================= */

/* Tablet */
@media (max-width: 1024px) {
  .hero__content {
    max-width: 700px;
    padding: 120px 0 80px;
  }

  .hero__title {
    font-size: clamp(2.2rem, 5vw, 4rem);
  }
}

/* Mobile Grande */
@media (max-width: 768px) {
  .hero {
    min-height: 100svh;
    /* svh para mobile */
    align-items: flex-start;
    padding-top: 72px;
    /* altura do header */
  }

  .hero__content {
    max-width: 100%;
    padding: clamp(2rem, 8vh, 4rem) 0 clamp(3rem, 10vh, 5rem);
    gap: 1.5rem;
    justify-content: center;
    min-height: calc(100svh - 72px);
  }

  .hero__text-wrapper {
    gap: 0.75rem;
  }

  .hero__title {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }

  .hero__subtitle {
    font-size: 0.9rem;
    max-width: 100%;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__cta {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero__stats {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero__stat-divider {
    display: none;
  }

  .hero__stat {
    align-items: center;
    text-align: center;
  }

  .hero__bg-img {
    object-position: center;
  }

  .hero__scroll {
    bottom: 65px;
  }

  .hero__scroll-text {
    font-size: 0.55rem;
  }
}

/* Mobile Pequeno */
@media (max-width: 480px) {
  .hero__content {
    padding: 1.5rem 0 3rem;
    gap: 1.25rem;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__subtitle {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .hero__cta {
    padding: 0.7rem 1.25rem;
    font-size: 0.85rem;
  }

  .hero__stats {
    gap: 0.75rem;
  }

  .hero__stat-number {
    font-size: 1.3rem;
  }

  .hero__stat-label {
    font-size: 0.6rem;
  }

  .hero__scroll {
    bottom: 58px;
  }

  .marquee {
    height: 34px;
  }

  .marquee__track span {
    font-size: 0.6rem;
  }
}

/* Tema escuro */
[data-theme="dark"] .hero__overlay {
  background: linear-gradient(160deg,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0.6) 35%,
      rgba(0, 0, 0, 0.4) 65%,
      rgba(0, 0, 0, 0.85) 100%);
}

/* =================================================================
   10. Marquee
   ================================================================= */
.marquee {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 48px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  z-index: 3
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 35s linear infinite;
  padding: 0 2rem;
  align-items: center;
  height: 100%;
  gap: 3rem
}

.marquee__track span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
  font-weight: 500
}

@keyframes marquee {
  0% {
    transform: translateX(0)
  }

  100% {
    transform: translateX(-50%)
  }
}

/* =================================================================
   11. Animações Globais
   ================================================================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes fadeIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0.3
  }
}

/* =================================================================
   12. Seções
   ================================================================= */
.section {
  padding: 100px 0
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1.5rem
}

.section-head h2 {
  margin-bottom: 0.5rem
}

.section-head h2 em {
  font-style: italic;
  color: var(--accent)
}

.section-head p {
  color: var(--text-muted);
  max-width: 400px;
  font-size: 0.95rem
}

.filters {
  display: flex;
  gap: 0.35rem;
  background: var(--bg-alt);
  padding: 0.3rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border)
}

.filters button {
  border: none;
  background: transparent;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap
}

.filters button:hover {
  color: var(--text)
}

.filters button.is-active {
  background: var(--card-bg);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06)
}

@media(max-width:768px) {
  .section {
    padding: 60px 0
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 2rem
  }

  .section-head h2 {
    font-size: 1.75rem
  }

  .filters {
    width: 100%;
    justify-content: center
  }

  .filters button {
    flex: 1;
    text-align: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem
  }
}

/* =================================================================
   13. Grid de Cards
   ================================================================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem
}

@media(max-width:768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important
  }
}

@media(max-width:380px) {
  .grid {
    gap: 0.4rem !important
  }
}

.card-wrapper {
  position: relative;
  display: block
}

.card {
  display: block;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow var(--transition);
  cursor: pointer;
  position: relative
}

.card.is-visible {
  opacity: 1;
  transform: translateY(0)
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow)
}

.card__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--bg-alt)
}

.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1)
}

.card:hover .card__img {
  transform: scale(1.03)
}

.card__sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.04) 45%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.04) 55%, transparent 60%);
  pointer-events: none;
  transition: transform 0.6s;
  transform: translateX(-100%)
}

.card:hover .card__sheen {
  transform: translateX(100%)
}

.card__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.02) 0%, transparent 30%);
  pointer-events: none
}

.card__info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.85rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.08) 45%, transparent 65%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none
}

.card:hover .card__info {
  opacity: 1
}

.card__info-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start
}

.card__number {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  letter-spacing: 0.1em;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm)
}

.card__size {
  font-size: 0.65rem;
  color: #fff;
  font-weight: 600;
  background: var(--accent);
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em
}

.card__info-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.5rem
}

.card__legend {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: #fff;
  font-weight: 400;
  font-style: italic;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden
}

.card__info .expand svg {
  width: 15px;
  height: 15px;
  stroke: #fff;
  stroke-width: 2;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
  flex-shrink: 0
}

/* Card Reservado */
.card--sold {
  pointer-events: none !important;
  opacity: 0.85
}

.card--sold .card__img {
  filter: grayscale(35%) brightness(0.75)
}

.card--sold .card__info,
.card--sold .card__sheen,
.card--sold .card__veil {
  display: none !important
}

.card__sold-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-15deg);
  background: var(--error);
  color: #fff;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  z-index: 10;
  box-shadow: 0 6px 20px rgba(196, 69, 54, 0.4);
  text-transform: uppercase;
  animation: soldPulse 2s ease-in-out infinite;
  border: 2px solid rgba(255, 255, 255, 0.3);
  pointer-events: none
}

@keyframes soldPulse {

  0%,
  100% {
    box-shadow: 0 6px 20px rgba(196, 69, 54, 0.4)
  }

  50% {
    box-shadow: 0 8px 30px rgba(196, 69, 54, 0.7)
  }
}

/* Card - Mobile */
@media(max-width:768px) {
  .card__info {
    opacity: 1 !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.1) 50%, transparent 100%) !important
  }

  .card__legend {
    font-size: 0.7rem !important
  }
}

/* Price Tag */
.card__price-tag {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: var(--accent);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(-5px);
  transition: all var(--transition)
}

.card:hover .card__price-tag {
  opacity: 1;
  transform: translateY(0)
}

@media(max-width:768px) {
  .card__price-tag {
    opacity: 1 !important;
    transform: translateY(0) !important;
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem
  }
}

/* Botão Compartilhar */
.card__share-btn {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  z-index: 5;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(5px);
  color: #fff
}

.card-wrapper:hover .card__share-btn {
  opacity: 1;
  transform: translateY(0)
}

.card__share-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px) scale(1.1) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2)
}

.card__share-btn:active {
  transform: scale(0.95) !important
}

.card__share-btn svg {
  stroke: #fff;
  transition: transform 0.2s ease
}

.card__share-btn:hover svg {
  transform: translateY(-2px)
}

@media(max-width:768px) {
  .card__share-btn {
    opacity: 0.9 !important;
    transform: translateY(0) !important;
    bottom: 0.5rem;
    right: 0.5rem;
    width: 34px;
    height: 34px;
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.4)
  }

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

@media(max-width:380px) {
  .card__share-btn {
    width: 30px;
    height: 30px;
    bottom: 0.35rem;
    right: 0.35rem
  }

  .card__share-btn svg {
    width: 13px;
    height: 13px
  }
}

/* =================================================================
   14. Skeleton Loader
   ================================================================= */
.skeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg-alt) 25%, var(--border) 50%, var(--bg-alt) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  display: none
}

@keyframes shimmer {
  0% {
    background-position: -200% 0
  }

  100% {
    background-position: 200% 0
  }
}

.card.is-loading .skeleton {
  display: block
}

/* =================================================================
   15. Loader e Sentinel
   ================================================================= */
.sentinel {
  height: 1px
}

.loader-row {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  padding: 2rem 0
}

.loader-row span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: loaderPulse 1.2s infinite ease-in-out both
}

.loader-row span:nth-child(2) {
  animation-delay: 0.2s
}

.loader-row span:nth-child(3) {
  animation-delay: 0.4s
}

@keyframes loaderPulse {

  0%,
  80%,
  100% {
    opacity: 0.3;
    transform: scale(0.8)
  }

  40% {
    opacity: 1;
    transform: scale(1)
  }
}

.end-of-list {
  text-align: center;
  padding: 3rem 0;
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-style: italic;
  letter-spacing: 0.05em;
  font-size: 0.9rem
}

/* =================================================================
   16. Sobre
   ================================================================= */
#sobre p {
  color: var(--text-muted);
  max-width: 500px;
  margin-top: 0.5rem;
  font-size: 1rem;
  line-height: 1.7
}

/* =================================================================
   17. Footer
   ================================================================= */
.footer {
  background: var(--bg-alt);
  padding: 80px 0 40px;
  border-top: 1px solid var(--border)
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem
}

.footer__mark {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 1rem
}

.footer__mark em {
  font-style: italic;
  color: var(--accent)
}

.footer h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-weight: 600
}

.footer ul {
  list-style: none
}

.footer li {
  margin-bottom: 0.6rem
}

.footer a {
  color: var(--text);
  opacity: 0.7;
  transition: all var(--transition-fast);
  font-size: 0.9rem
}

.footer a:hover {
  opacity: 1;
  color: var(--accent)
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 0.5rem
}

@media(max-width:768px) {
  .footer {
    padding: 50px 0 30px
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem
  }
}

@media(max-width:480px) {
  .footer {
    padding: 40px 0 20px
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.25rem
  }
}

/* =================================================================
   18. Botão Voltar ao Topo
   ================================================================= */
.to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 50
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0)
}

.to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: var(--accent)
}

.to-top svg {
  width: 20px;
  height: 20px;
  stroke: var(--text)
}

.to-top:hover svg {
  stroke: var(--accent)
}

@media(max-width:768px) {
  .to-top {
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px
  }

  .to-top svg {
    width: 18px;
    height: 18px
  }
}

/* =================================================================
   19. PhotoSwipe Customizações
   ================================================================= */
.pswp__bg {
  background: var(--overlay) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Reset do botão de fechar - CORRIGIDO */
.pswp__button {
  all: initial;
  /* Remove todas as propriedades herdadas */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  -webkit-appearance: none;
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
}

.pswp__button--close {
  position: relative;
  background-color: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border-radius: 50% !important;
  width: 44px !important;
  height: 44px !important;
  margin: 1rem !important;
  transition: all var(--transition-fast) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  order: 0;
}

.pswp__button--close:hover {
  background-color: rgba(255, 255, 255, 0.3) !important;
  transform: scale(1.05);
}

/* Ícone do botão fechar - CORRIGIDO */
.pswp__icn {
  position: static !important;
  width: 24px !important;
  height: 24px !important;
  overflow: visible !important;
  pointer-events: none;
  fill: #fff;
  color: #fff;
}

.pswp__icn-shadow {
  display: none;
}

/* Top bar */
.pswp__top-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.5rem;
}

/* Ajuste para mobile */
@media (max-width: 768px) {
  .pswp__button--close {
    width: 36px !important;
    height: 36px !important;
    margin: 0.5rem !important;
  }

  .pswp__icn {
    width: 20px !important;
    height: 20px !important;
  }

  .pswp__top-bar {
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.5rem;
  }
}

.modal-caption {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.5rem;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-full);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  letter-spacing: 0.02em;
  pointer-events: none;
  z-index: 10;
  max-width: 85vw;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

/* Botão Carrinho no PhotoSwipe */
.pswp__cart-btn {
  background: rgba(255, 255, 255, 0.18) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: var(--radius-full) !important;
  color: #fff !important;
  font-size: 0.82rem !important;
  padding: 0.5rem 1.2rem !important;
  margin-left: 0.5rem !important;
  cursor: pointer !important;
  transition: all var(--transition-fast) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  height: auto !important;
  width: auto !important;
  font-family: var(--font-sans) !important;
  font-weight: 500 !important;
  order: 100
}

.pswp__cart-btn:hover {
  background: var(--accent) !important;
  border-color: var(--accent) !important
}

.pswp__cart-btn.active {
  background: var(--accent) !important;
  border-color: var(--accent) !important
}

.pswp__cart-btn:disabled {
  opacity: 0.6;
  pointer-events: none
}

.pswp__cart-btn--sold {
  background: var(--error) !important;
  border-color: var(--error) !important;
  cursor: not-allowed !important;
  opacity: 0.85 !important
}

.pswp__cart-btn--sold:hover {
  background: var(--error) !important;
  transform: none !important
}

@media(max-width:768px) {
  .pswp__cart-btn {
    font-size: 0.75rem !important;
    padding: 0.4rem 0.9rem !important;
    margin-left: 0.25rem !important
  }

  .pswp__top-bar {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.25rem;
    padding: 0.5rem
  }

  .pswp__button--close {
    width: 36px !important;
    height: 36px !important;
    margin: 0.5rem !important
  }
}

/* Botão de Ação Rápida (Duplo Toque) */
@keyframes quickBtnPulse {

  0%,
  100% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3)
  }

  50% {
    box-shadow: 0 4px 30px rgba(184, 168, 138, 0.5)
  }
}


.pswp__quick-action-btn::after {
  content: 'Toque 2x para adicionar';
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.7rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.3s ease
}

.pswp__quick-action-btn:hover::after {
  opacity: 1;
  transform: translateY(0)
}

@media(max-width:768px) {
  .pswp__quick-action-btn {
    width: 52px !important;
    height: 52px !important;
    bottom: 90px !important;
    right: 12px !important;
    font-size: 1.3rem !important;
    opacity: 0.95 !important
  }

  .pswp__quick-action-btn::after {
    display: none
  }
}

.pswp__double-tap-hint {
  position: fixed;
  bottom: 160px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 0.8rem;
  z-index: 20;
  pointer-events: none;
  animation: hintFadeOut 3s ease-out forwards
}

@keyframes hintFadeOut {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0)
  }

  70% {
    opacity: 1
  }

  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px)
  }
}

/* =================================================================
   20. Modal do Carrinho
   ================================================================= */
.cart-modal-overlay {
  display: flex;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10001;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.3s ease
}

.cart-modal {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  max-width: 480px;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
  animation: cartSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1)
}

@keyframes cartSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95)
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1)
  }
}

.cart-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border)
}

.cart-modal-header h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin: 0
}

.cart-modal-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.5rem;
  line-height: 1;
  transition: color var(--transition-fast)
}

.cart-modal-close:hover {
  color: var(--error)
}

.cart-modal-body {
  padding: 1rem 1.5rem;
  overflow-y: auto;
  flex: 1
}

.cart-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted)
}

.cart-item-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-fast)
}

.cart-item-row:last-child {
  border-bottom: none
}

.cart-item-row:hover {
  background: var(--bg);
  margin: 0 -0.5rem;
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-md)
}

.cart-item-img {
  width: 52px;
  height: 69px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0
}

.cart-item-info {
  flex: 1;
  min-width: 0
}

.cart-item-info strong {
  display: block;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.15rem
}

.cart-item-info small {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
  margin-top: 0.1rem
}

.cart-remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text-muted);
  padding: 0.5rem;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  border-radius: 50%
}

.cart-remove-btn:hover {
  color: var(--error);
  background: rgba(196, 69, 54, 0.1);
  transform: scale(1.15)
}

.btn-clear-all {
  transition: all var(--transition-fast);
  font-family: var(--font-sans);
  font-size: 0.85rem
}

.btn-clear-all:hover {
  opacity: 0.85;
  transform: scale(1.02)
}

@media(max-width:480px) {
  .cart-modal {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 16px 16px 0 0;
    margin-top: auto
  }

  .cart-modal-overlay {
    align-items: flex-end;
    padding: 0
  }

  .cart-modal-header {
    padding: 1rem
  }

  .cart-modal-body {
    padding: 0.75rem 1rem
  }

  .cart-item-img {
    width: 44px;
    height: 58px
  }

  .cart-item-info strong {
    font-size: 0.8rem
  }
}

/* =================================================================
   21. Toast Notifications
   ================================================================= */
.cart-toast,
.share-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  white-space: nowrap
}

.cart-toast {
  background: var(--text)
}

.share-toast {
  background: var(--success)
}

.cart-toast.show,
.share-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0)
}

.cart-toast--success {
  background: var(--success)
}

.cart-toast--error {
  background: var(--error)
}

.cart-toast--warning {
  background: var(--warning);
  color: #2B2B28
}

.cart-toast--info {
  background: var(--accent)
}

@media(max-width:480px) {

  .cart-toast,
  .share-toast {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    transform: translateY(20px);
    text-align: center;
    font-size: 0.8rem;
    padding: 0.65rem 1rem;
    white-space: normal
  }
}

/* =================================================================
   22. Badge do Carrinho
   ================================================================= */
.cart-badge {
  position: absolute;
  top: 1px;
  right: 1px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2)
}

#cart-toggle {
  position: relative
}

/* =================================================================
   23. Modal de Redirecionamento
   ================================================================= */
.redirect-modal-overlay {
  display: flex;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10002;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease
}

.redirect-modal-overlay.show {
  opacity: 1
}

.redirect-modal {
  background: var(--card-bg);
  border-radius: 20px;
  max-width: 420px;
  width: 100%;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
  animation: redirectSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1)
}

@keyframes redirectSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95)
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1)
  }
}

.redirect-modal-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: redirectBounce 0.6s ease-out
}

@keyframes redirectBounce {
  0% {
    transform: scale(0)
  }

  50% {
    transform: scale(1.2)
  }

  100% {
    transform: scale(1)
  }
}

.redirect-modal h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  margin-bottom: 0.75rem
}

.redirect-product-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg);
  border-radius: 8px;
  display: inline-block
}

.redirect-message {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5
}

.redirect-countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem
}

.countdown-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: countdownPulse 1s ease-in-out infinite
}

@keyframes countdownPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(184, 168, 138, 0.4)
  }

  50% {
    box-shadow: 0 0 0 15px rgba(184, 168, 138, 0)
  }
}

.countdown-circle span {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  transition: transform 0.2s ease
}

.countdown-label {
  font-size: 0.8rem;
  color: var(--text-muted)
}

.redirect-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem
}

.redirect-btn {
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-family: var(--font-sans)
}

.redirect-btn--back {
  background: var(--accent);
  color: #fff
}

.redirect-btn--back:hover {
  background: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15)
}

.redirect-btn--stay {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border)
}

.redirect-btn--stay:hover {
  background: var(--bg-alt);
  border-color: var(--accent)
}

@media(max-width:480px) {
  .redirect-modal {
    padding: 2rem 1.5rem
  }

  .redirect-modal h3 {
    font-size: 1.5rem
  }

  .redirect-modal-icon {
    font-size: 3rem
  }
}

/* =================================================================
   24. Modal de Lead
   ================================================================= */
.lead-product-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border)
}

.lead-product-preview-image {
  width: 60px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-alt);
  position: relative
}

.lead-product-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.lead-product-preview-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--text-muted)
}

.lead-product-preview-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0
}

.lead-product-preview-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600
}

.lead-product-preview-name {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.lead-input-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease
}

.lead-input-wrapper:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(184, 168, 138, 0.1);
  background: #fff
}

.lead-input-icon {
  padding: 0 0 0 1rem;
  color: var(--text-muted);
  display: flex;
  align-items: center
}

.lead-input-wrapper input {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  flex: 1;
  padding: 0.85rem 1rem 0.85rem 0.5rem !important
}

.lead-input-wrapper input:focus {
  box-shadow: none !important
}

.required-mark {
  color: var(--error);
  font-weight: 700
}

.label-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0
}

.lead-modal-footer-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem
}

@media(max-width:480px) {
  .lead-modal {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 16px 16px 0 0;
    margin-top: auto
  }

  .lead-modal-overlay {
    align-items: flex-end;
    padding: 0
  }

  .lead-modal-content {
    padding: 1.5rem 1rem
  }

  .lead-modal-header h3 {
    font-size: 1.3rem
  }

  .lead-form-group input {
    font-size: 0.9rem;
    padding: 0.7rem 0.85rem
  }

  .lead-submit-btn {
    font-size: 0.9rem;
    padding: 0.85rem 1.5rem
  }

  .lead-product-preview {
    flex-direction: column;
    text-align: center
  }

  .lead-product-preview-image {
    width: 80px;
    height: 100px
  }

  .lead-product-preview-name {
    white-space: normal
  }
}

/* =================================================================
   25. Hero Mobile
   ================================================================= */
@media(max-width:768px) {
  .hero__content {
    padding: 80px 30px 70px;
  }

  .hero__actions {
    flex-direction: column
  }

  .hero__stats {
    gap: 1.5rem;
    flex-wrap: wrap
  }

  .hero__stat-divider {
    display: none
  }

  .hero__scroll {
    bottom: 80px
  }

  .hero__bg-img {
    object-position: center
  }

  .nav__links {
    display: none
  }
}

@media(max-width:480px) {
  .hero__content {
    padding: 80px 30px 70px;
  }

  .hero__title {
    font-size: 2.2rem
  }

  .hero__subtitle {
    font-size: 0.9rem;
    margin-bottom: 2rem
  }

  .hero__cta {
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    width: 100%;
    justify-content: center
  }

  .hero__stats {
    gap: 1rem
  }

  .hero__stat-number {
    font-size: 1.5rem
  }

  .hero__scroll {
    bottom: 60px
  }
}

/* =================================================================
   26. Utilitários
   ================================================================= */
.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
}

.text-center {
  text-align: center
}

.text-muted {
  color: var(--text-muted)
}

.hidden {
  display: none !important
}

::-webkit-scrollbar {
  width: 8px
}

::-webkit-scrollbar-track {
  background: var(--bg-alt)
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-soft)
}

/* Garantir que o botão do carrinho apareça no mobile */
@media (max-width: 768px) {
  #cart-toggle {
    display: flex !important;
    order: 1;
    /* Aparece antes do menu toggle */
  }

  #menu-toggle {
    order: 2;
  }

  #theme-toggle {
    order: 0;
  }

  .nav__actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
}

/* Botão de ação rápida - mais destacado */
.pswp__quick-action-btn {
  position: fixed !important;
  bottom: 100px !important;
  right: 16px !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  background: rgba(184, 168, 138, 0.85) !important;
  /* Cor do acento */
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 2px solid rgba(255, 255, 255, 0.5) !important;
  color: #fff !important;
  font-size: 1.5rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 20 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
  transition: all 0.3s ease !important;
  animation: quickBtnPulse 2s ease-in-out infinite;
  /* Área de toque maior */
  min-width: 56px !important;
  min-height: 56px !important;
}

@keyframes quickBtnPulse {

  0%,
  100% {
    box-shadow: 0 4px 20px rgba(184, 168, 138, 0.4);
  }

  50% {
    box-shadow: 0 4px 30px rgba(184, 168, 138, 0.7);
  }
}

.pswp__quick-action-btn:hover,
.pswp__quick-action-btn:active {
  background: var(--accent, #B8A88A) !important;
  transform: scale(1.1) !important;
}

.pswp__quick-action-btn.active {
  background: var(--success, #5B8C5A) !important;
}

/* Mobile: botão maior */
@media (max-width: 768px) {
  .pswp__quick-action-btn {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    bottom: 90px !important;
    right: 12px !important;
    font-size: 1.5rem !important;
    opacity: 0.95 !important;
  }
}

/* Estado inicial do botão - OCULTO */
.pswp__quick-action-btn {
  display: none !important;
  /* Começa oculto, o JS mostra se tiver lead */
}

/* Quando o JS definir display:flex, aplica os estilos */
.pswp__quick-action-btn[style*="display: flex"],
.pswp__quick-action-btn[style*="display:flex"] {
  position: fixed !important;
  bottom: 100px !important;
  right: 16px !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  background: rgba(184, 168, 138, 0.85) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 2px solid rgba(255, 255, 255, 0.5) !important;
  color: #fff !important;
  font-size: 1.5rem !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 20 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
  transition: all 0.3s ease !important;
  animation: quickBtnPulse 2s ease-in-out infinite;
}