/* ============================================
   VERSÃO 2 - DESIGN VIVARA (Clean & Minimalista)
   ============================================ */

:root {
  --bg: #ffffff;
  --bg-muted: #fafafa;
  --card: #ffffff;
  --text: #1a1a1a;
  --muted: #666666;
  --border: #e5e5e5;
  --shadow: none;
  --primary: #1a1a1a;
  --primary-700: #000000;
  --accent: #111111;
  --transition: all 0.2s ease;
}

* { 
  box-sizing: border-box; 
  margin: 0;
  padding: 0;
}

html, body { 
  height: 100%; 
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  padding-top: 96px;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 14px;
}

@media (max-width: 768px) {
  body {
    font-size: 14px;
    line-height: 1.7;
  }
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

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

/* ============================================
   HEADER - Estilo Vivara
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
  box-shadow: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 48px;
  position: relative;
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--text);
}

.brand-name {
  font-weight: 300;
  font-size: 18px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
}

.logo-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: #000000;
  border-radius: 4px;
  padding: 4px;
  flex-shrink: 0;
}

.logo-container-small {
  width: 32px;
  height: 32px;
  padding: 2px;
}

.logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.logo.small {
  width: 28px;
  height: 28px;
}

.header-search-container {
  flex: 1;
  max-width: 500px;
  position: relative;
}

@media (max-width: 1024px) {
  .header-search-container {
    display: none;
  }
}

.nav {
  display: none;
  gap: 0;
  align-items: center;
  position: absolute;
  top: 80px;
  right: 0;
  left: 0;
  padding: 0;
  flex-direction: column;
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.nav[data-open="true"] {
  display: flex;
  max-height: 500px;
  opacity: 1;
}

.nav .nav-link {
  width: 100%;
  text-align: left;
  padding: 20px 40px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s ease;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
}

.nav .nav-link:hover {
  background: #fafafa;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  padding: 0;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  opacity: 1;
}

.nav-toggle {
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 24px;
  display: inline-flex;
  cursor: pointer;
  padding: 8px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle:hover {
  opacity: 0.7;
}

.nav-toggle:active {
  transform: scale(0.95);
}

@media (min-width: 1024px) {
  .nav {
    display: inline-flex !important;
    position: static;
    padding: 0;
    flex-direction: row;
    background: transparent;
    border: 0;
    box-shadow: none;
    gap: 40px;
    max-height: none !important;
    opacity: 1 !important;
  }
  
  .nav .nav-link {
    width: auto;
    text-align: left;
    padding: 0;
    border-bottom: none;
    font-size: 13px;
  }
  
  .nav-toggle {
    display: none;
  }
}

/* ============================================
   BUTTONS - Minimalistas
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  background: transparent;
  min-height: 44px;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-700);
  border-color: var(--primary-700);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.btn-ghost {
  border: 1px solid #dcdcdc;
  color: var(--accent);
  background: transparent;
}

.btn-ghost:hover {
  background: #f5f5f5;
  color: var(--accent);
}

.btn.is-disabled,
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  padding: 32px 0 40px; /* espaço mínimo abaixo do menu fixo */
  background: #ffffff;
}

/* Quando hero tem classe section, sobrescreve o padding padrão de section */
.hero.section {
  padding: 32px 0 40px;
}

.trust-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  padding: 18px 24px;
  margin-top: 24px;
  background: #f8f8f8;
  border: 1px solid #eee;
  border-radius: 0;
}

.trust-item {
  font-weight: 600;
  color: #1f1f1f;
  font-size: 14px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--text);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-inner {
  display: grid;
  gap: 56px;
  grid-template-columns: 1fr;
  align-items: center;
}

.hero-copy {
  text-align: left;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 16px;
  display: block;
}

.hero-copy h1 {
  margin: 0 0 32px;
  font-size: 48px;
  font-weight: 300;
  letter-spacing: -1px;
  line-height: 1.2;
  color: var(--text);
}

.hero-subtitle {
  margin-bottom: 24px;
}

.section-sub {
  margin: 0 0 40px;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.8;
  font-size: 16px;
  font-weight: 300;
}

.hero-highlights {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 300;
}

.hero-highlights li {
  padding-left: 0;
}

.hero-media {
  order: -1;
}

@media (min-width: 1024px) {
  .hero {
    padding: 48px 0 56px; /* topo bem compacto no desktop */
  }
  
  .hero.section {
    padding: 48px 0 56px; /* garante que section não sobrescreva no desktop */
  }
  
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: end; /* mantém alinhamento do fim do carrossel com o fim dos destaques */
  }
  
  .hero-copy h1 {
    font-size: 64px;
  }
  
  .hero-media {
    order: 0;
  }
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
  padding: 100px 0;
  background: #ffffff;
}

.section-tight-top {
  padding-top: 8px; /* aproxima a linha do catálogo do fim do hero */
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 60px;
}

.section h2 {
  margin: 0;
  font-size: 36px;
  font-weight: 300;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: var(--text);
}

.link {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.link:hover {
  border-bottom-color: var(--text);
}

/* ============================================
   CARDS & GRID
   ============================================ */

.grid {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cards {
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--card);
  border: none;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  transition: opacity 0.3s ease;
  border-bottom: 1px solid #f0f0f0;
  border-right: 1px solid #f0f0f0;
}

.card:hover {
  opacity: 0.7;
  transform: none;
}

.card-media {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: #fafafa;
}

.card-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-body h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
}

.card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .card-body p {
    font-size: 14px;
    line-height: 1.8;
  }
}

/* ============================================
   PORTFOLIO
   ============================================ */

.section-portfolio {
  background: #ffffff;
  border-top: 1px solid #f0f0f0; /* linha divisória entre topo e catálogo */
}

.portfolio-area {
  display: grid;
  gap: 16px; /* menos espaço entre filtros e início do catálogo */
}

.section-portfolio .section-head {
  display: block;          /* subtítulo ocupa toda a largura */
  margin-bottom: 16px;     /* menos espaço até os filtros */
}

.section-portfolio .section-sub {
  max-width: 100%;
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
  margin-bottom: 8px;
  padding-bottom: 0;
  border-bottom: none;     /* remove a linha sob os filtros */
}

.portfolio-filters label {
  display: grid;
  gap: 8px;
  min-width: 180px;
}

.portfolio-filters label span {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}

.search-input,
.select {
  border: 1px solid #e5e5e5;
  padding: 12px 16px;
  border-radius: 0;
  background: #ffffff;
  font-size: 16px;
  font-family: inherit;
  font-weight: 300;
  color: var(--text);
  width: 100%;
  transition: border-color 0.2s ease;
  min-height: 44px;
}

.search-input:focus,
.select:focus {
  outline: none;
  border-color: var(--text);
}

.search-input::placeholder {
  color: var(--muted);
}

.portfolio-grid {
  display: grid;
  gap: 4px; /* espaçamento bem fino entre as fotos */
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* fotos um pouco maiores */
}

.portfolio-card {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid #e8e8e8; /* borda fina em cinza claro contornando imagem + legenda */
  background: var(--card);
  box-shadow: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.portfolio-card:hover {
  transform: translateY(-2px);
  border-color: #d0d0d0;
}

.portfolio-card img {
  width: 100%;
  aspect-ratio: 4 / 5; /* ligeiramente mais alta para destacar a foto */
  object-fit: cover;
  background: #ffffff;
}

.portfolio-card figcaption,
.portfolio-card .product-title {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 400;
  color: #1a1a1a;
  text-align: center;
  background: #ffffff;
  border-top: 1px solid #e8e8e8; /* linha fina separando foto e legenda */
  margin-top: 0; /* unido à foto */
  box-shadow: none; /* sem sombra */
  position: relative;
}

.result-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.portfolio-load-more {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.portfolio-load-more .btn {
  min-width: 180px;
}

#portfolioInfiniteSentinel {
  height: 1px;
}

/* ============================================
   PROCESS SECTION
   ============================================ */

.section-process {
  background: #fafafa;
}

.process-steps {
  list-style: none;
  padding: 0;
  margin: 60px 0;
  display: grid;
  gap: 60px;
}

@media (min-width: 1024px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 80px;
  }
}

.process-step {
  border-radius: 0;
  border: none;
  background: transparent;
  padding: 0;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 32px;
  box-shadow: none;
}

.step-number {
  width: 60px;
  height: 60px;
  border-radius: 0;
  background: var(--text);
  color: #ffffff;
  font-weight: 300;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-step h3 {
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.process-step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  font-weight: 300;
}

.process-tools {
  display: grid;
  gap: 60px;
  margin-top: 80px;
}

@media (min-width: 1024px) {
  .process-tools {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .process-tools .tool-card-full {
    grid-column: 1 / -1;
  }
}

.tool-card {
  border-radius: 0;
  border: 1px solid #e5e5e5;
  background: #ffffff;
  padding: 40px;
  box-shadow: none;
  display: grid;
  gap: 24px;
}

.tool-card h3 {
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0;
}

.tool-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  font-weight: 300;
}

/* Seção de Instagram na home */
.section-instagram {
  padding-top: 40px;
  padding-bottom: 40px; /* reduz espaço antes do footer */
}

.insta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.insta-card {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  background: #111827;
}

.insta-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.insta-card a {
  position: absolute;
  inset: 0;
}

.insta-card:hover img {
  transform: scale(1.05);
  opacity: 0.9;
}

.insta-fallback {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #6b7280;
}

/* ============================================
   FORMS
   ============================================ */

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  border: 1px solid #e5e5e5;
  background: #ffffff;
  color: var(--text);
  padding: 12px 16px;
  border-radius: 0;
  font-size: 16px;
  font-family: inherit;
  font-weight: 300;
  transition: border-color 0.2s ease;
  min-height: 44px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--text);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
}

.calc-form {
  display: grid;
  gap: 20px;
}

.calc-row {
  display: grid;
  gap: 20px;
}

@media (min-width: 640px) {
  .calc-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.calculator-result {
  border-radius: 0;
  border: 1px solid #e5e5e5;
  background: #fafafa;
  padding: 20px;
  color: var(--muted);
  font-weight: 300;
  font-size: 14px;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: #ffffff;
  color: var(--text);
  border-top: 1px solid #f0f0f0;
  margin-top: 0;
  padding: 48px 0 36px;
}

.footer-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid #f0f0f0;
}

@media (min-width: 1024px) {
  .footer-main {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand span {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-ctas {
  display: inline-flex;
  gap: 20px;
  align-items: center;
}

.footer-ig,
.footer-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-decoration: none;
  transition: opacity 0.2s ease;
  border: 1px solid #e5e5e5;
  border-radius: 0;
}

.footer-ig:hover,
.footer-wa:hover {
  opacity: 0.6;
}

.footer-ig .ig-icon,
.footer-wa .wa-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.footer-secondary {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: none;
  padding-top: 0;
}

@media (min-width: 1024px) {
  .footer-secondary {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-links {
  display: inline-flex;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* footer-version-selector removido das páginas públicas */

/* ============================================
   UTILITIES
   ============================================ */

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

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

/* ============================================
   HERO SLIDER
   ============================================ */

.hero-slider {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  border: none;
  box-shadow: none;
  background: #fafafa;
  height: auto;
  aspect-ratio: 4 / 3;
}

.slider-track {
  position: relative;
  height: 100%;
}

.slider-slide {
  display: none;
  margin: 0;
  position: relative;
  background: #fafafa;
  height: 100%;
}

.slider-slide.is-active {
  display: block;
}

.slider-slide img,
.slider-slide video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.slider-slide figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 32px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.95);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.slider-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #e5e5e5;
  color: var(--text);
  font-size: 24px;
  width: 50px;
  height: 50px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 2;
}

.slider-control:hover {
  background: var(--text);
  color: #ffffff;
  border-color: var(--text);
}

.slider-control.prev {
  left: 0;
}

.slider-control.next {
  right: 0;
}

.slider-dots {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 8px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 0;
  border: 1px solid var(--text);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transform: rotate(45deg);
}

.slider-dot.is-active {
  background: var(--text);
}

/* ============================================
   LAPIDATION & STONES
   ============================================ */

.lapidation-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
}

.lapidation-card {
  border-radius: 0;
  border: 1px solid #e5e5e5;
  background: #ffffff;
  padding: 20px;
  font-weight: 300;
  cursor: pointer;
  transition: border-color 0.2s ease;
  text-align: center;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.lapidation-card.is-active {
  border-color: var(--text);
  background: var(--text);
  color: #ffffff;
}

.lapidation-card:hover {
  border-color: var(--text);
}

.lapidation-detail {
  display: grid;
  gap: 32px;
  align-items: center;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .lapidation-detail {
    grid-template-columns: 1fr 1.2fr;
  }
}

.lapidation-detail img {
  width: 100%;
  border-radius: 0;
  object-fit: cover;
  max-height: 300px;
}

.stone-selector {
  display: grid;
  gap: 20px;
}

@media (min-width: 640px) {
  .stone-selector {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stone-viewer {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .stone-viewer {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stone-viewer > div {
  border-radius: 0;
  border: 1px solid #e5e5e5;
  padding: 40px;
  background: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stone-viewer img {
  border-radius: 0;
  object-fit: contain;
  max-height: 200px;
  max-width: 200px;
  width: auto;
  height: auto;
  margin-bottom: 24px;
}

/* ============================================
   BUDGET FORM
   ============================================ */

.section-budget {
  background: #fafafa;
}

.selected-product {
  margin-bottom: 32px;
  max-width: 100%;
}

.selected-product-content {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 0;
}

.selected-product-img {
  width: 200px;
  height: 200px;
  max-width: 100%;
  max-height: 200px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  border-radius: 0;
  background: #fafafa;
}

.selected-product-content > div {
  flex: 1;
  min-width: 0;
}

.selected-product-content h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
}

.selected-product-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

@media (max-width: 768px) {
  .selected-product-content {
    flex-direction: column;
    padding: 20px;
  }
  
  .selected-product-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1;
    max-height: none;
  }
}

.budget-form-wrapper {
  padding: 60px;
  border-radius: 0;
  border: 1px solid #e5e5e5;
  background: #ffffff;
  max-width: 800px;
  margin: 0 auto;
}

.budget-form {
  margin-top: 0;
  display: grid;
  gap: 32px;
}

.form-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.metal-options-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.metal-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e5e5e5;
  border-radius: 0;
  cursor: pointer;
  transition: border-color 0.2s ease;
  background: #ffffff;
}

.metal-option:hover {
  border-color: var(--text);
}

.metal-option input[type="radio"] {
  margin: 0;
  accent-color: var(--text);
}

.metal-option:has(input[type="radio"]:checked) {
  border-color: var(--text);
  background: #fafafa;
}

/* ============================================
   BLOG STYLES (mantendo compatibilidade)
   ============================================ */

.blog-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  margin-top: 60px;
}

@media (min-width: 1200px) {
  .blog-layout {
    grid-template-columns: 2fr 1fr;
    gap: 80px;
  }
}

.blog-featured-post {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

.blog-featured-header {
  padding: 60px;
  border-bottom: 1px solid #f0f0f0;
}

.blog-featured-title {
  font-size: 32px;
  font-weight: 300;
  letter-spacing: -0.5px;
  margin: 0 0 24px;
  line-height: 1.3;
}

.blog-featured-image {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  background: #fafafa;
}

.blog-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.blog-featured-body {
  padding: 60px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  font-weight: 300;
}

/* ============================================
   GLOBAL SEARCH
   ============================================ */

.global-search-input {
  width: 100%;
  padding: 12px 16px 12px 48px;
  border: 1px solid #e5e5e5;
  border-radius: 0;
  background: #ffffff;
  color: var(--text);
  font-size: 13px;
  transition: border-color 0.2s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cpath d='m21 21-4.35-4.35'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 16px center;
  background-size: 16px;
}

.global-search-input::placeholder {
  color: var(--muted);
}

.global-search-input:focus {
  outline: none;
  border-color: var(--text);
}

.global-search-results {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 500px;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  z-index: 200;
  border: 1px solid #e5e5e5;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

/* Mobile pequeno (até 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .header-inner {
    gap: 12px;
  }
  
  .logo {
    width: 40px;
    height: 40px;
  }
  
  .brand-name {
    font-size: 14px;
    letter-spacing: 1px;
  }
  
  .nav-toggle {
    font-size: 20px;
    padding: 6px;
    min-width: 44px;
    min-height: 44px;
  }
  
  .nav .nav-link {
    padding: 16px 20px;
    font-size: 12px;
  }
  
  .hero {
    padding: 40px 0 30px;
  }
  
  .hero-copy h1 {
    font-size: 28px;
    line-height: 1.3;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .section h2 {
    font-size: 24px;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  .cards {
    grid-template-columns: 1fr;
  }
  
  .card-body {
    padding: 24px 20px;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .portfolio-filters {
    flex-direction: column;
    gap: 16px;
  }
  
  .portfolio-filters label {
    min-width: 100%;
  }
  
  .trust-bar {
    grid-template-columns: 1fr;
    padding: 16px 20px;
    gap: 12px;
  }
  
  .hero-ctas {
    flex-direction: column;
    gap: 12px;
  }
  
  .hero-ctas .btn {
    width: 100%;
    min-height: 44px;
  }
  
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
  }
  
  .blog-featured-header,
  .blog-featured-body {
    padding: 30px 20px;
  }
  
  .blog-featured-title {
    font-size: 24px;
  }
  
  .footer-main {
    gap: 30px;
  }
  
  .footer-ctas {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  
  .footer-ig,
  .footer-wa {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 16px;
  }
  
  .tool-card {
    padding: 30px 20px;
  }
  
  .budget-form-wrapper {
    padding: 30px 16px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .calc-row {
    grid-template-columns: 1fr;
  }
  
  .stone-selector {
    grid-template-columns: 1fr;
  }
  
  .stone-viewer {
    grid-template-columns: 1fr;
  }
  
  .lapidation-detail {
    grid-template-columns: 1fr;
  }
  
  .insta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .breadcrumb {
    font-size: 12px;
    margin-bottom: 12px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 80px;
  }
  
  .header-inner {
    height: 80px;
    gap: 20px;
  }
  
  .logo {
    width: 45px;
    height: 45px;
  }
  
  .brand-name {
    font-size: 16px;
  }
  
  .nav-toggle {
    min-width: 44px;
    min-height: 44px;
  }
  
  .hero {
    padding: 60px 0 40px;
  }
  
  .hero-copy h1 {
    font-size: 32px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section h2 {
    font-size: 28px;
  }
  
  .container {
    padding: 0 20px;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  .cards {
    grid-template-columns: 1fr;
  }
  
  .card-body {
    padding: 28px 24px;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .portfolio-filters {
    flex-direction: column;
    gap: 16px;
  }
  
  .portfolio-filters label {
    min-width: 100%;
  }
  
  .trust-bar {
    grid-template-columns: 1fr;
    padding: 16px 20px;
  }
  
  .hero-ctas {
    flex-direction: column;
    gap: 12px;
  }
  
  .hero-ctas .btn {
    width: 100%;
    min-height: 44px;
  }
  
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 40px;
  }
  
  .blog-featured-header,
  .blog-featured-body {
    padding: 40px 30px;
  }
  
  .blog-featured-title {
    font-size: 28px;
  }
  
  .footer-main {
    gap: 30px;
  }
  
  .footer-ctas {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  
  .footer-ig,
  .footer-wa {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 20px;
  }
  
  .tool-card {
    padding: 30px 24px;
  }
  
  .budget-form-wrapper {
    padding: 40px 20px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .calc-row {
    grid-template-columns: 1fr;
  }
  
  .stone-selector {
    grid-template-columns: 1fr;
  }
  
  .stone-viewer {
    grid-template-columns: 1fr;
  }
  
  .lapidation-detail {
    grid-template-columns: 1fr;
  }
  
  .insta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   PRODUCT PAGE & GALLERY
   ============================================ */

.section-product {
  padding: 40px 0;
}

.product-layout {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .product-layout {
    grid-template-columns: 1.2fr 1fr;
  }
}

.product-gallery {
  display: grid;
  gap: 16px;
  max-width: 100%;
  width: 100%;
}

.gallery-main {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  background: #000;
  aspect-ratio: 1;
  max-width: 100%;
  width: 100%;
}

.product-main-image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-zoom {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0,0,0,0.6);
  border: 0;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 20px;
  transition: var(--transition);
  z-index: 10;
}

.gallery-zoom:hover {
  background: rgba(0,0,0,0.8);
  transform: scale(1.05);
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery-thumb {
  border: 2px solid transparent;
  border-radius: 0;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  padding: 0;
  aspect-ratio: 1;
  transition: var(--transition);
}

.gallery-thumb:hover {
  border-color: var(--text);
  transform: translateY(-2px);
}

.gallery-thumb.is-active {
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.2);
}

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

.product-info h1 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .product-info h1 {
    font-size: 32px;
  }
}

.product-description {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.7;
}

.product-story {
  color: var(--text);
  line-height: 1.8;
  margin: 0 0 24px;
  font-size: 14px;
}

.product-specs {
  margin: 24px 0;
  padding: 20px;
  background: var(--bg-muted);
  border-radius: 0;
  border: 1px solid var(--border);
}

.product-specs dt {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 13px;
}

.product-specs dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.product-type-style {
  margin: 24px 0;
}

.product-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-type,
.product-style {
  padding: 8px 14px;
  border: 1px solid var(--border);
  background: var(--bg-muted);
  border-radius: 999px;
  font-weight: 500;
  font-size: 13px;
  color: var(--text);
  display: inline-block;
}

.product-metals {
  margin: 24px 0;
}

.product-metals .label {
  display: block;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 13px;
}

.metal-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-stones {
  margin: 24px 0;
}

.product-stones .label {
  display: block;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 13px;
}

.product-stones-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-stone-chip {
  padding: 8px 14px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  font-weight: 500;
  font-size: 13px;
  color: var(--text);
  display: inline-block;
}

.metal-chip {
  padding: 10px 16px;
  border: 2px solid var(--border);
  background: #fff;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  font-size: 13px;
}

.metal-chip:hover {
  border-color: var(--text);
  transform: translateY(-2px);
}

.metal-chip.is-active {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

.product-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.product-actions .btn {
  flex: 1;
  min-width: 160px;
  justify-content: center;
}

@media (max-width: 480px) {
  .product-actions {
    flex-direction: column;
  }
  
  .product-actions .btn {
    width: 100%;
    min-width: auto;
  }

  .product-badges {
    gap: 8px;
  }

  .product-type,
  .product-style,
  .product-stone-chip {
    font-size: 12px;
    padding: 6px 12px;
  }

  .product-stones-list {
    gap: 8px;
  }

  .product-type-style,
  .product-metals,
  .product-stones {
    margin: 20px 0;
  }
}

/* ============================================
   MODAL DE ZOOM
   ============================================ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 0;
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 24px 48px rgba(0,0,0,0.4);
}

.modal-zoom {
  padding: 0;
  background: #000;
  max-width: 100vw;
  max-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-zoom img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 0;
  background: rgba(255,255,255,0.9);
  border: 0;
  font-size: 24px;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
  transition: var(--transition);
  color: #111;
}

.modal-close:hover {
  background: #fff;
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .modal {
    padding: 10px;
  }
  
  .modal-content {
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }
  
  .modal-zoom {
    max-width: 100vw;
    max-height: 100vh;
  }
  
  .modal-zoom img {
    max-width: 100%;
    max-height: 100vh;
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  
  .modal-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .gallery-thumbs {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .product-info h1 {
    font-size: 24px;
  }
  
  .product-description {
    font-size: 15px;
  }
  
  .product-story {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .modal {
    padding: 0;
  }
  
  .modal-zoom img {
    max-width: 100vw;
    max-height: 100vh;
  }
  
  .gallery-thumbs {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .gallery-zoom {
    width: 40px;
    height: 40px;
    font-size: 18px;
    top: 10px;
    right: 10px;
  }
  
  .product-specs {
    padding: 16px;
    margin: 20px 0;
  }

  .product-description {
    font-size: 14px;
    margin: 0 0 16px;
    line-height: 1.6;
  }

  .product-story {
    font-size: 13px;
    margin: 0 0 20px;
    line-height: 1.7;
  }

  .product-specs dt {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .product-specs dd {
    font-size: 13px;
    line-height: 1.6;
  }
}
