/* === NAVBAR PREMIUM GLASS === */
.premium-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-navbar::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
}

/* === BRAND SECTION === */
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.brand-link:hover {
  transform: translateY(-1px);
}

.logo-container {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.brand-link:hover .brand-logo {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.brand-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.verified-badge {
  width: 18px;
  height: 18px;
  filter: invert(32%) sepia(98%) saturate(1799%) hue-rotate(202deg) brightness(97%) contrast(101%);
  flex-shrink: 0;
}

/* === SEARCH SECTION === */
.search-zone-premium {
  flex: 1;
  max-width: 500px;
  position: relative;
}

.search-field-glass {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.search-field-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

.search-field-glass:focus-within {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
}

.search-icon-wrapper {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}

.search-icon {
  width: 18px;
  height: 18px;
  transition: all 0.3s ease;
}

.search-field-glass:focus-within .search-icon {
  color: rgba(99, 102, 241, 0.8);
  transform: scale(1.1);
}

.search-input-premium {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.9rem;
  font-weight: 500;
  min-width: 0;
}

.search-input-premium::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* === ACTION BUTTONS === */
.action-zone-premium {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.support-btn-glass, .cart-btn-glass {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(15px) saturate(150%);
  -webkit-backdrop-filter: blur(15px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-height: 44px;
  white-space: nowrap;
}

.support-btn-glass {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
  color: rgba(16, 185, 129, 1);
}

.cart-btn-glass {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.2);
  color: rgba(99, 102, 241, 1);
}

.support-btn-glass:hover, .support-btn-glass:active {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
}

.cart-btn-glass:hover, .cart-btn-glass:active {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.2);
}

.support-icon, .cart-icon {
  width: 18px;
  height: 18px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.support-label, .cart-label {
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* === MOBILE MENU === */
.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
  min-width: 44px;
  flex-shrink: 0;
}

.mobile-menu-btn:hover, .mobile-menu-btn:active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.menu-icon {
  width: 20px;
  height: 20px;
}

/* === RESPONSIVIDADE MOBILE === */
@media (max-width: 768px) {
  .premium-navbar {
    padding: 0.5rem 0;
  }
  
  .navbar-container {
    padding: 0 1rem;
  }
  
  .navbar-content {
    gap: 0.75rem;
    min-height: 56px;
  }
  
  /* === BRAND MOBILE === */
  .brand-link {
    gap: 0.5rem;
  }
  
  .logo-container {
    width: 36px;
    height: 36px;
  }
  
  .brand-name {
    font-size: 1rem;
  }
  
  .verified-badge {
    width: 16px;
    height: 16px;
  }
  
  /* === SEARCH MOBILE (OCULTO) === */
  .search-zone-premium {
    display: none;
  }
  
  /* === BUTTONS MOBILE === */
  .action-zone-premium {
    gap: 0.5rem;
  }
  
  .support-btn-glass, .cart-btn-glass {
    padding: 0.75rem;
    min-width: 44px;
    min-height: 44px;
    border-radius: 10px;
  }
  
  .support-label, .cart-label {
    display: none;
  }
  
  .support-icon, .cart-icon {
    width: 20px;
    height: 20px;
  }
  
  /* === MOBILE MENU VISIBLE === */
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .navbar-container {
    padding: 0 0.75rem;
  }
  
  .navbar-content {
    gap: 0.5rem;
    min-height: 52px;
  }
  
  .brand-link {
    gap: 0.4rem;
  }
  
  .logo-container {
    width: 32px;
    height: 32px;
  }
  
  .brand-name {
    font-size: 0.9rem;
  }
  
  .verified-badge {
    width: 14px;
    height: 14px;
  }
  
  .action-zone-premium {
    gap: 0.4rem;
  }
  
  .support-btn-glass, .cart-btn-glass {
    padding: 0.625rem;
    min-width: 40px;
    min-height: 40px;
  }
  
  .support-icon, .cart-icon {
    width: 18px;
    height: 18px;
  }
  
  .mobile-menu-btn {
    padding: 0.625rem;
    min-width: 40px;
    min-height: 40px;
  }
  
  .menu-icon {
    width: 18px;
    height: 18px;
  }
}

/* === MOBILE SEARCH DROPDOWN === */
.mobile-search-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
  z-index: 999;
}

.mobile-search-dropdown.active {
  display: block;
  animation: slideDown 0.3s ease-out;
}

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

.mobile-search-field {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
  font-weight: 500;
}

.mobile-search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* === BACKGROUND EFFECTS === */
.navbar-bg-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.navbar-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.3;
  animation: navbarOrbFloat 8s ease-in-out infinite;
}

.navbar-orb-1 {
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.4), transparent);
  top: -60px;
  left: 20%;
  animation-delay: 0s;
}

.navbar-orb-2 {
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.4), transparent);
  top: -50px;
  right: 20%;
  animation-delay: 2s;
}

@keyframes navbarOrbFloat {
  0%, 100% { transform: translateX(0px); }
  50% { transform: translateX(20px); }
}

/* === SCROLL EFFECT === */
.premium-navbar.scrolled {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(30px) saturate(250%);
  -webkit-backdrop-filter: blur(30px) saturate(250%);
  border-bottom-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* === BODY PADDING ADJUSTMENT === */
body {
  padding-top: 80px;
}

@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 65px;
  }
}

/* === TOUCH OPTIMIZATIONS === */
@media (hover: none) and (pointer: coarse) {
  .support-btn-glass:hover,
  .cart-btn-glass:hover,
  .mobile-menu-btn:hover,
  .brand-link:hover {
    transform: none;
  }
  
  .support-btn-glass:active,
  .cart-btn-glass:active,
  .mobile-menu-btn:active {
    transform: scale(0.95);
  }
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* === FOCUS STATES === */
.support-btn-glass:focus,
.cart-btn-glass:focus,
.mobile-menu-btn:focus,
.search-input-premium:focus {
  outline: 2px solid rgba(99, 102, 241, 0.5) !important;
  outline-offset: 2px !important;
}

/* Ajustando o botão para que o contador seja posicionado fora */
#cart-button {
    position: relative;  /* Necessário para o posicionamento absoluto do badge */
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 1.5rem;  /* Adiciona espaço à direita para o contador */
}

/* Estilo para o contador (badge) fora do botão */
#cart-button .cart-badge {
    position: absolute;
    top: -5px;         /* Ajuste a posição vertical conforme necessário */
    right: -5px;       /* Ajuste a posição horizontal conforme necessário */
    background-color: #6112f3;  /* Cor de fundo do contador (amarelo) */
    color: white;        /* Cor do texto */
    font-weight: bold;
    padding: 0.3rem 0.6rem;
    border-radius: 50%;  /* Faz o contador ser redondo */
    font-size: 0.8rem;
    z-index: 10;         /* Garante que o contador fique sobre o botão */
}
