/* Updated header styles */
.site-header {
  width: 100%;
  background: #FFFFFF;
  border-bottom: 1px solid #e8eef5;
}

.container.hdr {
  width: min(1400px, 95%);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand img {
  height: 50px;
  width: auto;
  vertical-align: middle;
}

/* Centered navigation */
.nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.nav-center a {
  color: #7d8aa3;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.2s ease;
}

.nav-center a:hover {
  background: rgba(91,45,140,0.06);
  color: #0D2B4D;
  text-decoration: none;
}

/* Active nav state - gradient text */
.nav-center a.active {
  background: linear-gradient(135deg, #5B2D8C 0%, #26C1C9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

/* Right nav icons */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-icon {
  width: 36px;
  height: 36px;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.nav-icon:hover {
  opacity: 1;
}

/* Cart badge styling */
.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: linear-gradient(90deg, #1A8599 0%, #26C1C9 100%);
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  box-shadow: 0 2px 8px rgba(26,133,153,0.35);
}

/* Mobile menu button */
.mobile-menu-button {
  display: none;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--vp-navy);
  margin: 5px 0;
  transition: transform 0.3s ease;
}

.mobile-menu-button.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-button.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-button.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile navigation */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 24px rgba(0,0,0,0.1);
  padding: 80px 24px 24px;
  transition: right 0.3s ease;
  z-index: 1001;
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: #0D2B4D;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.mobile-nav-close:hover {
  background: rgba(91,45,140,0.08);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-links a {
  font-size: 1.1em;
  padding: 14px 18px;
  display: block;
  color: #0D2B4D;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.mobile-nav-links a:hover {
  background: linear-gradient(90deg, rgba(91,45,140,0.06), rgba(38,193,201,0.06));
}

/* Active state in mobile nav - gradient text */
.mobile-nav-links a.active {
  background: linear-gradient(135deg, rgba(91,45,140,0.1) 0%, rgba(38,193,201,0.1) 100%);
  font-weight: 600;
}

.mobile-nav-links a.active span,
.mobile-nav-links a.active {
  background-image: linear-gradient(135deg, #5B2D8C 0%, #26C1C9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Responsive design */
@media (max-width: 768px) {
  .container.hdr {
    padding: 12px 16px;
  }

  .brand img {
    height: 60px;
  }

  .nav-left {
    display: none;
  }

  /* Hide navigation links on mobile - show only logo + icons */
  .nav-center {
    display: none !important;
  }

  .mobile-menu-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    order: 10; /* Ensure it's last */
  }

  .mobile-nav {
    display: block;
  }

  .nav-right {
    margin-left: auto;
  }

  .nav-icon {
    width: 32px;
    height: 32px;
  }
}

/* Dark overlay for mobile menu */
.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11,21,31,0.4);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-overlay.open {
  display: block;
  opacity: 1;
}

/* ============================================
   SEARCH MODAL STYLES
   ============================================ */
.search-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11,21,31,0.5);
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.search-overlay.open {
  display: block;
  opacity: 1;
}

.search-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 90%;
  max-width: 540px;
  max-height: 80vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(11,21,31,0.25);
  z-index: 2001;
  opacity: 0;
  transition: all 0.3s ease;
  overflow: hidden;
}

.search-modal.open {
  display: block;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.search-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line, #e8eef5);
}

.search-modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--vp-navy, #0D2B4D);
}

.search-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted, #7d8aa3);
  padding: 8px;
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease;
}

.search-modal-close:hover {
  background: rgba(91,45,140,0.08);
  color: var(--vp-navy, #0D2B4D);
}

.search-modal-body {
  padding: 20px 24px 24px;
}

.search-input-wrapper {
  position: relative;
  margin-bottom: 16px;
}

.search-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted, #7d8aa3);
  pointer-events: none;
}

.search-modal input[type="text"],
.shop-search-input {
  width: 100%;
  padding: 14px 14px 14px 44px;
  border: 2px solid var(--line, #e8eef5);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--vp-navy, #0D2B4D);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-modal input[type="text"]:focus,
.shop-search-input:focus {
  outline: none;
  border-color: var(--vp-teal-dark, #1A8599);
  box-shadow: 0 0 0 4px rgba(26,133,153,0.12);
}

.search-results {
  max-height: 320px;
  overflow-y: auto;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--vp-navy, #0D2B4D);
  transition: background 0.15s ease;
}

.search-result-item:hover {
  background: linear-gradient(90deg, rgba(91,45,140,0.04), rgba(38,193,201,0.04));
}

.search-result-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line, #e8eef5);
}

.search-result-info {
  flex: 1;
}

.search-result-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.search-result-price {
  font-size: 0.85rem;
  background: linear-gradient(90deg, #1A8599 0%, #26C1C9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.search-no-results {
  text-align: center;
  padding: 24px;
  color: var(--muted, #7d8aa3);
}

/* Shop page search bar */
.shop-search-wrapper {
  position: relative;
  max-width: 400px;
  margin-bottom: 24px;
}

.shop-search-wrapper .search-input-icon {
  left: 14px;
}

.shop-search-input {
  padding-left: 44px;
}