/* ==========================================================================
   ZAROCHK - ATELIER DE MODA MASCULINA & ALFAIATARIA
   Design System & Estilos Globais
   Tipografia: DM Sans (Headings), Manrope (Especificações), Nunito (Corpo)
   Paleta: Silver, Gold, Black, Rosé, White, Grey
   Acabamento: Glassmorphism Refinado | Bordas: 4px - 8px
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Manrope:wght@300;400;500;600;700&family=Nunito:ital,wght@0,300;0,400;500;600;700;1,400&display=swap');

:root {
  /* Cores Base - Preto & Grafite */
  --color-black-deep: #09090c;
  --color-black-surface: #101116;
  --color-black-elevated: #161820;
  --color-black-card: rgba(18, 19, 25, 0.72);
  
  /* Cores de Acento Nobre - Ouro & Rosé */
  --color-gold: #c5a059;
  --color-gold-light: #dfbf76;
  --color-gold-hover: #b08d48;
  --color-gold-glow: rgba(197, 160, 89, 0.22);
  --color-rose: #c98a90;
  --color-rose-light: #d8a2a8;
  --color-rose-glow: rgba(201, 138, 144, 0.18);
  
  /* Metais & Tons Neutros - Prata & Branco */
  --color-silver: #e2e4e9;
  --color-silver-muted: #9ca3af;
  --color-silver-dark: #64748b;
  --color-white: #ffffff;
  --color-white-off: #f8f9fa;
  --color-grey-line: rgba(255, 255, 255, 0.08);
  --color-grey-line-hover: rgba(255, 255, 255, 0.16);

  /* Tipografia */
  --font-heading: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-sub: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Bordas Levemente Arredondadas (4px - 8px) conforme briefing */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;

  /* Glassmorphism */
  --glass-bg: rgba(16, 17, 23, 0.75);
  --glass-bg-hover: rgba(22, 24, 32, 0.85);
  --glass-border: 1px solid rgba(255, 255, 255, 0.08);
  --glass-border-gold: 1px solid rgba(197, 160, 89, 0.35);
  --glass-blur: blur(14px);
  --glass-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.55);

  /* Transições Suaves */
  --ease-sartorial: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s var(--ease-sartorial);
  --transition-normal: 0.35s var(--ease-sartorial);
  --transition-slow: 0.65s var(--ease-sartorial);
}

/* Reset Moderno */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--color-black-deep);
  color: var(--color-white-off);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  background-color: var(--color-black-deep);
  color: var(--color-silver);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-white);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

p {
  margin-bottom: 1rem;
}

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Utilitários de Layout & Contêineres */
.container {
  width: 100%;
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 960px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }
}

/* Acabamento Glassmorphism */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--glass-shadow);
  transition: all var(--transition-normal);
}

.glass-panel:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(255, 255, 255, 0.14);
}

.glass-card-gold {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(197, 160, 89, 0.25);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.6);
}

/* Botões Sartoriais */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.85rem;
  font-family: var(--font-sub);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-xs);
  transition: all var(--transition-normal);
  text-align: center;
  user-select: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gold) 0%, #aa843f 100%);
  color: #0c0d10;
  box-shadow: 0 4px 18px var(--color-gold-glow);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
  box-shadow: 0 6px 24px rgba(197, 160, 89, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-white);
  border: 1px solid var(--color-silver-muted);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--color-white);
  color: var(--color-white);
}

.btn-outline-gold {
  background: transparent;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
}

.btn-outline-gold:hover {
  background: var(--color-gold);
  color: #0c0d10;
  box-shadow: 0 4px 16px var(--color-gold-glow);
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.775rem;
}

/* Badges e Selos */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-xs);
  font-family: var(--font-sub);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-gold {
  background: rgba(197, 160, 89, 0.15);
  color: var(--color-gold-light);
  border: 1px solid rgba(197, 160, 89, 0.35);
}

.badge-silver {
  background: rgba(226, 228, 233, 0.12);
  color: var(--color-silver);
  border: 1px solid rgba(226, 228, 233, 0.25);
}

.badge-rose {
  background: rgba(201, 138, 144, 0.15);
  color: var(--color-rose-light);
  border: 1px solid rgba(201, 138, 144, 0.3);
}

/* ==========================================================================
   HEADER & NAVEGAÇÃO SARTORIAL
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(9, 9, 12, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: all var(--transition-normal);
}

.site-header.header-scrolled {
  background: rgba(8, 8, 11, 0.96);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  border-bottom-color: rgba(197, 160, 89, 0.2);
}

.top-bar {
  background: #060608;
  font-size: 0.75rem;
  color: var(--color-silver-muted);
  font-family: var(--font-sub);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding: 0.4rem 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-logo-text {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--color-white);
  text-transform: uppercase;
}

.brand-logo-sub {
  font-family: var(--font-sub);
  font-size: 0.55rem;
  letter-spacing: 0.42em;
  color: var(--color-gold);
  text-transform: uppercase;
  margin-top: 2px;
}

.main-nav {
  display: none;
}

@media (min-width: 992px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
}

.nav-link {
  font-family: var(--font-sub);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-silver);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-gold);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--color-gold);
  transition: width var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-xs);
  color: var(--color-silver);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  color: var(--color-gold);
  border-color: rgba(197, 160, 89, 0.4);
  background: rgba(197, 160, 89, 0.08);
}

.cart-count-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--color-gold);
  color: #0c0d10;
  font-family: var(--font-sub);
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.cart-count-badge.hidden {
  display: none;
}

/* ==========================================================================
   HERO BANNER COM 5 SLIDES
   ========================================================================== */
.zarochk-hero-slider {
  position: relative;
  width: 100%;
  height: calc(100vh - 110px);
  min-height: 600px;
  max-height: 860px;
  overflow: hidden;
  background-color: #060608;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.72) contrast(1.08);
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg, 
    rgba(9, 9, 12, 0.94) 0%, 
    rgba(9, 9, 12, 0.7) 45%, 
    rgba(9, 9, 12, 0.3) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 720px;
  padding: 2rem 0;
}

.hero-tag {
  font-family: var(--font-sub);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1rem;
  display: inline-block;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.12;
  margin-bottom: 1.25rem;
}

.hero-desc {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--color-silver);
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Controles do Slider */
.hero-controls {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  right: 0;
  z-index: 5;
}

.hero-controls-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-indicators {
  display: flex;
  gap: 0.75rem;
}

.hero-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sub);
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
  background: rgba(16, 17, 23, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xs);
  color: var(--color-silver-muted);
  transition: all var(--transition-fast);
}

.hero-indicator.active {
  border-color: var(--color-gold);
  color: var(--color-gold-light);
  background: rgba(197, 160, 89, 0.12);
}

.hero-nav-arrows {
  display: flex;
  gap: 0.5rem;
}

.hero-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 6;
}

.hero-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
}

/* ==========================================================================
   CARDS DE PRODUTOS & VITRINES
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

@media (min-width: 1200px) {
  .product-grid-5 {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
  }
}

.product-card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(197, 160, 89, 0.35);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.7);
}

.product-thumb-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #121319;
  overflow: hidden;
}

.product-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s var(--ease-sartorial);
}

.product-card:hover .product-thumb {
  transform: scale(1.05);
}

.product-badge-float {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
}

.product-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category-meta {
  font-family: var(--font-sub);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.35rem;
}

.product-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.35;
  margin-bottom: 0.65rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-title a:hover {
  color: var(--color-gold-light);
}

.product-price-row {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.product-price {
  font-family: var(--font-sub);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-white);
}

.product-installments {
  font-size: 0.75rem;
  color: var(--color-silver-muted);
}

.product-action-btn {
  margin-top: 0.85rem;
  width: 100%;
}

/* ==========================================================================
   SEÇÕES EDITORIAIS & DESTAQUES
   ========================================================================== */
.section {
  padding: 5rem 0;
  position: relative;
}

@media (min-width: 960px) {
  .section {
    padding: 6.5rem 0;
  }
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-tag {
  font-family: var(--font-sub);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
}

.section-subtitle {
  color: var(--color-silver-muted);
  font-size: 1.05rem;
  margin-top: 0.75rem;
  max-width: 650px;
}

/* ==========================================================================
   RODAPÉ SARTORIAL DE ALTA COSTURA
   ========================================================================== */
.site-footer {
  background: #060608;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 5rem 0 2rem;
  color: var(--color-silver-muted);
  font-size: 0.875rem;
  margin-top: auto;
}

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

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

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1.2fr 1.2fr 1.6fr;
    gap: 3.5rem;
  }
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: var(--color-silver-muted);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-gold);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* ==========================================================================
   FORMULÁRIOS & CAMPOS
   ========================================================================== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-family: var(--font-sub);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-silver);
  margin-bottom: 0.45rem;
}

.form-control {
  width: 100%;
  background: rgba(18, 19, 25, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xs);
  padding: 0.85rem 1rem;
  color: var(--color-white);
  font-size: 0.925rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 2px var(--color-gold-glow);
  background: rgba(24, 25, 33, 0.9);
}

.form-control::placeholder {
  color: #52525b;
}

/* ==========================================================================
   MODAIS & MENUS LATERAIS (DRAWER)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-content {
  background: var(--color-black-surface);
  border: 1px solid rgba(197, 160, 89, 0.3);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
}

/* Utilitários Essenciais de Controle de Estado */
.hidden {
  display: none !important;
}

.opacity-0 {
  opacity: 0 !important;
}

.opacity-100 {
  opacity: 1 !important;
}

.pointer-events-none {
  pointer-events: none !important;
}

.pointer-events-auto {
  pointer-events: auto !important;
}

.translate-x-full {
  transform: translateX(100%) !important;
}

.translate-x-0 {
  transform: translateX(0) !important;
}

.mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 380px;
  background: #0c0d12;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1050;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

@media (min-width: 992px) {
  .mobile-menu-btn {
    display: none !important;
  }
}

@media (max-width: 991px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-btn {
    display: flex !important;
  }
}

/* Acessibilidade: Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Revelação Tipográfica de Títulos (Palavra por Palavra) */
.reveal-word-wrapper {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.reveal-word {
  display: inline-block;
  will-change: transform, opacity;
}
