/* ========== HEADER POLISH ========== */
.global-search-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 280px;
  max-width: 480px;
  width: 100%;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  color: var(--gray-600);
  transition: all 0.2s ease;
}

.global-search-header:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(11, 93, 59, 0.1);
  background: white;
}

.global-search-header svg {
  flex-shrink: 0;
  color: var(--green);
  width: 20px;
  height: 20px;
}

.global-search-header input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: #101820;
  font-size: 0.95rem;
  font-family: 'Poppins', system-ui, sans-serif;
  outline: none;
}

.global-search-header input::placeholder {
  color: var(--gray-500);
}

.global-search-header button {
  display: none;
}

@media (min-width: 640px) {
  .global-search-header button {
    display: inline-flex;
    background: var(--green);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
  }

  .global-search-header button:hover {
    background: var(--green-dark);
  }
}

.global-search-suggestions {
  position: fixed;
  top: 72px;
  right: 16px;
  width: min(420px, calc(100vw - 32px));
  background: white;
  border: 1px solid var(--gray-200);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  border-radius: 0.75rem;
  overflow: hidden;
  display: none;
  z-index: 1100;
}

.global-search-suggestions.visible {
  display: block;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-suggestion-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 0.95rem;
  color: #101820;
  cursor: pointer;
  transition: all 0.15s ease;
}

.search-suggestion-item:hover {
  background: var(--gray-50);
}

.search-suggestion-icon {
  flex-shrink: 0;
  font-size: 1.25rem;
}

.search-suggestion-text {
  flex: 1;
  font-weight: 500;
}

.search-suggestion-source {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green);
  font-weight: 700;
}

/* ========== PRICING NOTICE POLISH ========== */
.pricing-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: #fffbeb;
  color: #92400e;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  text-align: center;
}

.pricing-notice-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.7rem;
  border-radius: 9999px;
  background: #F26804;
  color: white;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}

/* ========== MOBILE NAVIGATION POLISH ========== */
.mobile-nav {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--gray-100);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 40;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mobile-nav-inner {
  background: white;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.5rem;
  color: var(--gray-700);
  font-weight: 600;
  transition: all 0.2s ease;
  min-height: 48px;
  font-size: 1rem;
}

.mobile-nav-link:active {
  background: rgba(11, 93, 59, 0.1);
  color: var(--green);
  transform: translateX(4px);
}

.mobile-nav-link:hover {
  background: rgba(11, 93, 59, 0.05);
  color: var(--green);
}

.mobile-nav-icon {
  color: var(--orange);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ========== RESPONSIVE SEARCH ========== */
@media (max-width: 767px) {
  .header-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.75rem 0.875rem;
  }

  .logo {
    flex: 1 1 auto;
    min-width: 0;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  .header-actions {
    margin-left: auto;
    flex-shrink: 0;
  }

  .global-search-header {
    order: 99;
    flex-basis: 100%;
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 0.65rem 0.8rem;
    gap: 0.5rem;
    border-radius: 0.75rem;
  }

  .global-search-header svg {
    width: 16px;
    height: 16px;
  }

  .global-search-header input {
    font-size: 0.8rem;
  }

  .global-search-suggestions {
    left: 0.75rem;
    right: 0.75rem;
    top: 112px;
    width: auto;
  }
}

@media (max-width: 768px) {
  .global-search-header {
    max-width: 100%;
    min-width: auto;
  }

  .global-search-header input {
    font-size: 0.875rem;
  }
}

/* ========== AUTH DROPDOWN POLISH ========== */
.auth-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  min-width: 200px;
  z-index: 1000;
  margin-top: 0.5rem;
  overflow: hidden;
  animation: slideDown 0.2s ease;
}

.auth-dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  color: var(--gray-700);
  font-weight: 500;
  border-bottom: 1px solid var(--gray-100);
  transition: all 0.2s ease;
}

.auth-dropdown-link:last-child {
  border-bottom: none;
}

.auth-dropdown-link:hover {
  background: var(--gray-50);
  color: var(--green);
}

.auth-dropdown-link.logout {
  color: #dc2626;
}

.auth-dropdown-link.logout:hover {
  background: rgba(220, 38, 38, 0.05);
}

/* ========== CART BUTTON POLISH ========== */
.cart-count {
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--orange);
  color: white;
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(255, 122, 0, 0.3);
  font-family: 'Montserrat', sans-serif;
  animation: cartPulse 0.4s ease;
}

@keyframes cartPulse {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
