/* ===================================
   SMA Boutique - Header Adobe XD Specs
   Especificações extraídas do Adobe XD
   ================================== */

/* Importar Design Tokens */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400&display=swap');
@import url('design-tokens.css');

:root {
  --header-top-strip-height: 42px;
  --header-top-strip-height-tablet: 32px;
  --header-top-strip-height-mobile: 28px;
  --header-main-height: 126px;
  --header-main-height-tablet: 96px;
  --header-main-height-mobile: 82px;
  --header-accent-color: #8C6D3A;
  --header-line-color: #D7CFBA;
  --header-divider-color: #E6B5C8;
}

/* ===================================
   HEADER PRINCIPAL - ADOBE XD SPECS
   ================================== */

.header-top-strip {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  height: var(--header-top-strip-height);
  margin: 0;
  background: #8C6D3A 0% 0% no-repeat padding-box;
  opacity: 1;
  z-index: 1040;
}

.navbar-gradient {
  height: var(--header-main-height);
  position: fixed;
  top: var(--header-top-strip-height);
  left: var(--header-position);
  background: #F2EEDD 0% 0% no-repeat padding-box;
  border-top: 1px solid var(--header-divider-color);
  right: 0;
  z-index: 1030;

  /* Responsivo - manter proporções do design */
  max-width: 100vw;
  width: 100%;

  /* Gradiente existente - aguardando especificações de cor do XD */
  /*background: var(--gradient-navbar, linear-gradient(135deg, #d3c1c3 0%, #f1dfe0 100%));*/

  box-shadow: none;
  transition: var(--transition-normal, 0.3s ease);
}

.navbar-gradient .container {
  max-width: 1400px;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 0 1.5rem 1.15rem;
  position: relative;
}

.navbar-collapse {
  align-items: flex-end;
  gap: 2.25rem;
}

/* ===================================
   LOGO - ESPECIFICAÇÕES XD
   ================================== */

.header-brand {
  position: absolute;
  left: 50%;
  top: 26px;
  transform: translateX(-50%);
  width: 274px;
  height: 80px;
  margin: 0;
  padding: 0;
  z-index: 2;
}

.header-brand .logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  transition: var(--transition-normal, 0.3s ease);
}

/* ===================================
   NAVEGAÇÃO - LAYOUT XD
   ================================== */

.navbar-nav {
  height: auto;
  align-items: center;
  gap: 2rem;
}

.header-nav-left {
  flex: 0 0 499px;
  width: 499px;
  max-width: 499px;
  justify-content: flex-start;
  gap: 29px;
  border-bottom: 3px solid #8C6D3A29;
  padding-bottom: 0.8rem;
}

.nav-link {
  min-height: auto;
  display: block;
  padding: 0;
  text-align: left;
  font-family: "Poppins", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 17px;
  line-height: 26px;
  letter-spacing: 0;
  color: #8C6D3A;
  opacity: 1;
  transition: var(--transition-normal, 0.3s ease);
  border-radius: 0;
}

.header-nav-left .nav-item:first-child .nav-link {
  width: 51px;
  height: 24px;
}

.header-nav-left .nav-item:nth-child(2) .nav-link {
  width: 75px;
  height: 24px;
}

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

/* ===================================
   ELEMENTOS DE AÇÃO - SEARCH & CART
   ================================== */

.header-actions {
  flex: 0 0 499px;
  width: 499px;
  max-width: 499px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.2rem;
  border-bottom: 3px solid #8C6D3A29;
  padding-bottom: 0.8rem;
}

.header-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--header-accent-color);
  text-decoration: none;
  font-size: 2rem;
  line-height: 1;
  padding: 0;
  border: none;
  background: transparent;
}

.header-icon-link:hover {
  color: var(--header-accent-color);
  opacity: 0.8;
}

.header-icon-button.dropdown-toggle::after {
  display: none;
}

.header-mini-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #C6AF62;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===================================
   CART NOTIFICATION BADGE
   ================================== */

.cart-notification-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--brand-accent, #ffc107);
  color: var(--text-on-brand, #fff);
  font-size: 0.75rem;
  font-weight: var(--font-weight-bold, 700);
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  animation: pulse 2s infinite;
}

/* ===================================
   DROPDOWN MENU - USER ACCOUNT
   ================================== */

.dropdown-menu {
  border-radius: var(--border-radius-lg, 12px);
  border: none;
  box-shadow: var(--shadow-lg, 0 8px 24px rgba(0, 0, 0, 0.15));
  padding: var(--spacing-md, 1rem);
  margin-top: var(--spacing-sm, 0.5rem);
}

.dropdown-item {
  border-radius: var(--border-radius-sm, 6px);
  padding: var(--spacing-sm, 0.5rem) var(--spacing-md, 1rem);
  transition: var(--transition-normal, 0.3s ease);
  font-weight: var(--font-weight-medium, 500);
}

.dropdown-item:hover {
  background: var(--bg-secondary, #f8f9fa);
  color: var(--brand-primary);
}

/* ===================================
   MOBILE RESPONSIVO
   ================================== */

@media (max-width: 991px) {
  .header-top-strip {
    height: var(--header-top-strip-height-tablet);
  }

  .navbar-gradient {
    top: var(--header-top-strip-height-tablet);
    height: var(--header-main-height-tablet);
  }

  .navbar-gradient .container {
    align-items: center;
    padding: 0 1rem;
  }

  .header-brand {
    position: static;
    transform: none;
    width: 212px;
    height: 62px;
    margin-right: auto;
    flex-shrink: 0;
  }

  .header-brand .logo-img {
    width: 100%;
    height: 100%;
    max-height: 62px;
  }

  .navbar-collapse {
    gap: 1rem;
    margin-top: 0.8rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg, 12px);
    padding: 1rem;
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0, 0, 0, 0.15));
  }

  .header-nav-left,
  .header-actions {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    border-bottom: none;
    padding-bottom: 0;
  }

  .header-nav-left {
    gap: 0.75rem;
  }

  .nav-link {
    font-size: 1.15rem;
  }

  .header-actions {
    justify-content: flex-start;
  }

  .header-icon-link {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .header-top-strip {
    height: var(--header-top-strip-height-mobile);
  }

  .navbar-gradient {
    top: var(--header-top-strip-height-mobile);
    height: var(--header-main-height-mobile);
  }

  .header-brand {
    width: 178px;
    height: 52px;
  }

  .header-brand .logo-img {
    width: 100%;
    height: 100%;
    max-height: 52px;
  }

  .navbar-gradient .container {
    padding: 0 0.8rem;
  }

  .header-actions {
    gap: 0.9rem;
  }

  .header-icon-link {
    font-size: 1.35rem;
  }

  .header-mini-badge {
    top: -6px;
    right: -8px;
  }
}

/* ===================================
   AJUSTE DO BODY PARA HEADER FIXO
   ================================== */

body {
  padding-top: calc(var(--header-main-height) + var(--header-top-strip-height));
}

@media (max-width: 991px) {
  body {
    padding-top: calc(var(--header-main-height-tablet) + var(--header-top-strip-height-tablet));
  }
}

@media (max-width: 576px) {
  body {
    padding-top: calc(var(--header-main-height-mobile) + var(--header-top-strip-height-mobile));
  }
}

/* ===================================
   ANIMAÇÕES E MICRO-INTERAÇÕES
   ================================== */

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Smooth scroll quando links internos são clicados */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-main-height) + var(--header-top-strip-height));
}

@media (max-width: 991px) {
  html {
    scroll-padding-top: calc(var(--header-main-height-tablet) + var(--header-top-strip-height-tablet));
  }
}

@media (max-width: 576px) {
  html {
    scroll-padding-top: calc(var(--header-main-height-mobile) + var(--header-top-strip-height-mobile));
  }
}

/* ===================================
   NOTAS PARA PRÓXIMAS ATUALIZAÇÕES:

   🔄 AGUARDANDO ESPECIFICAÇÕES DO ADOBE XD:
   - Cores exatas do gradiente do header
   - Tipografia específica (font-family, sizes)
   - Espaçamentos internos precisos
   - Cores dos textos e links
   - Efeitos hover específicos

   ✅ APLICADO NO HEADER:
   - Faixa superior fixa: 42px (desktop), 32px (tablet), 28px (mobile)
   - Barra principal fixa: 126px (desktop), 96px (tablet), 82px (mobile)
   - Layout desktop com links à esquerda, logo centralizada e ícones à direita
   - Largura máxima da faixa: 1920px
   ================================== */
