/* ===== TOP BAR ===== */
.top-bar {
  background: #000;
  color: #f0f0f0;
  padding: 0.75rem 0;
  border-bottom: 2px solid #d4af37;
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* Override any container restrictions */
.top-bar .container {
  width: 100%;
  max-width: 100% !important; /* Force override */
  padding: 0 !important;
  margin: 0 !important;
}

.top-bar-scroll {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.top-bar-scroll-content {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 0 10px;
  will-change: transform;
}

.scroll-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
}

.scroll-item i {
  font-size: 0.9rem;
  color: #d4af37;
}

.scroll-dot {
  color: #d4af37;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 2rem;
  display: inline-block;
}

@keyframes scrollTopBar {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ==================== MAIN HEADER ==================== */

.main-header {
  background: #ffffff;
  padding: 0.6rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 2px solid #000;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.15);
}

.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
}

/* ==================== LOGO ==================== */

.logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: #000;
  text-decoration: none;
  text-transform: uppercase;
  line-height: 1;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo span {
  font-weight: 900;
  font-size: 1.8rem;
  color: #d4af37;
  margin-left: 2px;
  line-height: 1;
}

/* ==================== DESKTOP NAVIGATION ==================== */

.nav-menu {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-link {
  text-decoration: none;
  color: #1e1e1e;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.4rem 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: 0.2s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: #d4af37;
  border-bottom-color: #d4af37;
}

/* ==================== HEADER ICONS ==================== */

.header-icons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-left: auto;
}

.header-icons a {
  text-decoration: none;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==================== SEARCH ICON ==================== */

.search-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.search-icon i {
  font-size: 1.1rem;
  color: #000;
  transition: 0.2s ease;
}

.search-icon:hover {
  background: rgba(212, 175, 55, 0.1);
}

.search-icon:hover i {
  color: #d4af37;
}

/* ==================== PROFILE ICON ==================== */

.profile-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  position: relative;
}

.profile-icon i {
  font-size: 1.1rem;
  color: #000;
  transition: 0.2s ease;
}

.profile-icon:hover {
  background: rgba(212, 175, 55, 0.1);
}

.profile-icon:hover i {
  color: #d4af37;
}

.profile-icon.logged-in::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  background: #4CAF50;
  border: 2px solid #fff;
  border-radius: 50%;
}

/* ==================== CART ICON ==================== */

.cart-icon {
  display: inline-block;
}

.cart-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.cart-icon-wrapper i {
  font-size: 1.2rem;
  transition: 0.2s ease;
  color: #000;
}

.cart-icon-wrapper:hover {
  background: rgba(212, 175, 55, 0.1);
}

.cart-icon-wrapper:hover i {
  color: #d4af37;
}

.cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #d4af37;
  color: #000;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid #fff;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ==================== MOBILE MENU TOGGLE ==================== */

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 2px solid #000;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  color: #000;
  cursor: pointer;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
  margin-left: 0.5rem;
  z-index: 100;
}

.mobile-menu-toggle i {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.mobile-menu-toggle:hover {
  background: rgba(212, 175, 55, 0.1);
  color: #d4af37;
  border-color: #d4af37;
}

.mobile-menu-toggle.active {
  background: #d4af37;
  color: #000;
  border-color: #d4af37;
}

.mobile-menu-toggle.active i {
  transform: rotate(90deg);
}

/* ==================== MOBILE MENU CONTAINER ==================== */

.mobile-menu-container {
  position: relative;
  width: 100%;
  display: none;
}

/* ==================== MEDIA QUERIES - DESKTOP ==================== */

@media (min-width: 640px) {
  .top-bar .container {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none !important;
  }
  
  .mobile-menu-container {
    display: none !important;
  }
  
  .main-header .container {
    position: relative;
  }
  
  .nav-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
  }
}

@media (max-width: 768px) {
  /* INCREASE MAIN HEADER SIZE */
  .main-header {
    padding: 1rem 0;  /* Increased from 0.6rem to 1rem */
  }
  
  .main-header .container {
    flex-wrap: wrap;
    position: relative;
    z-index: 100;
  }

  /* INCREASE LOGO SIZE */
  .logo {
    order: 1;
    font-size: 1.6rem;  /* Increased from 1.3rem */
  }
  
  .logo span {
    font-size: 1.9rem;  /* Increased from 1.6rem */
  }

  .header-icons {
    order: 2;
    gap: 0.3rem;  /* Slightly increased gap */
    margin-left: 0;
  }

  .mobile-menu-toggle {
    display: flex;
    order: 3;
  }

  /* Hide desktop navigation on mobile */
  .nav-menu {
    display: none !important;
  }

  /* Show mobile menu container */
  .mobile-menu-container {
    display: block;
    position: relative;
    width: 100%;
    order: 4;
    z-index: 90;
  }

  /* Mobile dropdown menu - drops from behind header */
  .mobile-dropdown {
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    background: #fff;
    border: 2px solid #000;
    border-top: none;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 15px 20px rgba(0, 0, 0, 0.2);
    padding: 2rem 1rem 1.5rem;
    z-index: 80;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
  }

  .mobile-dropdown.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: all;
  }

  /* Gold gradient top border - creates depth effect */
  .mobile-dropdown::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #d4af37, #f3d77a, #d4af37);
    border-radius: 2px 2px 0 0;
  }

  /* Mobile menu header */
  .mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #000;
  }

  .mobile-menu-logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: #000;
    text-transform: uppercase;
  }

  .mobile-menu-logo span {
    color: #d4af37;
    font-weight: 900;
  }

  .mobile-menu-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    border: 2px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s ease;
  }

  .mobile-menu-close:hover {
    background: #d4af37;
    color: #fff;
    transform: rotate(90deg);
  }

  /* Mobile menu items */
  .mobile-menu-items {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    list-style: none;
    margin: 0 0 1.5rem 0;
    padding: 0;
  }

  .mobile-menu-item {
    width: 100%;
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .mobile-dropdown.show .mobile-menu-item {
    transform: translateY(0);
    opacity: 1;
  }

  /* Staggered animation for menu items */
  .mobile-dropdown.show .mobile-menu-item:nth-child(1) { transition-delay: 0.05s; }
  .mobile-dropdown.show .mobile-menu-item:nth-child(2) { transition-delay: 0.1s; }
  .mobile-dropdown.show .mobile-menu-item:nth-child(3) { transition-delay: 0.15s; }
  .mobile-dropdown.show .mobile-menu-item:nth-child(4) { transition-delay: 0.2s; }
  .mobile-dropdown.show .mobile-menu-item:nth-child(5) { transition-delay: 0.25s; }
  .mobile-dropdown.show .mobile-menu-item:nth-child(6) { transition-delay: 0.3s; }

  .mobile-menu-link {
    display: block;
    padding: 0.8rem 1.2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    text-decoration: none;
    color: #000;
    border: 2px solid #000;
    border-radius: 40px;
    transition: all 0.2s ease;
    text-align: center;
    background: #fff;
    box-shadow: 3px 3px 0 #000;
  }

  .mobile-menu-link:hover {
    background: #d4af37;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 5px 5px 0 #000;
  }

  .mobile-menu-link.active {
    background: #d4af37;
    color: #000;
    font-weight: 700;
    border-color: #d4af37;
  }

  /* Mobile menu footer with social icons */
  .mobile-menu-footer {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
  }

  .mobile-menu-footer a {
    color: #666;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f5;
    border: 1px solid #ddd;
  }

  .mobile-menu-footer a:hover {
    color: #d4af37;
    border-color: #d4af37;
    background: #fff;
    transform: translateY(-2px);
  }

  /* Body overlay when menu is open */
  body.menu-open {
    overflow: hidden;
  }

  body.menu-open::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 70;
    animation: overlayFade 0.3s ease;
    backdrop-filter: blur(2px);
  }

  @keyframes overlayFade {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  /* INCREASE ICON SIZES to match larger header */
  .search-icon,
  .profile-icon {
    width: 38px;  /* Increased from 32px */
    height: 38px;  /* Increased from 32px */
  }

  .search-icon i,
  .profile-icon i {
    font-size: 1.2rem;  /* Increased from 1rem */
  }

  .cart-icon-wrapper {
    width: 42px;  /* Increased from 36px */
    height: 42px;  /* Increased from 36px */
  }

  .cart-icon-wrapper i {
    font-size: 1.3rem;  /* Increased from 1.1rem */
  }

  .cart-count {
    min-width: 20px;  /* Increased from 18px */
    height: 20px;  /* Increased from 18px */
    font-size: 0.7rem;  /* Increased from 0.65rem */
    top: -3px;  /* Adjusted position */
    right: -3px;  /* Adjusted position */
  }

  .mobile-menu-toggle {
    width: 38px;  /* Increased from 32px */
    height: 38px;  /* Increased from 32px */
    margin-left: 0.5rem;
  }

  .mobile-menu-toggle i {
    font-size: 1.4rem;  /* Increased from 1.2rem */
  }
}

/* Also update the 480px breakpoint for consistency */
@media (max-width: 480px) {
  .main-header {
    padding: 0.8rem 0;  /* Slightly smaller than 768px but still larger than original */
  }
  
  .logo {
    font-size: 1.4rem;  /* Adjusted from 1.2rem */
  }
  
  .logo span {
    font-size: 1.7rem;  /* Adjusted from 1.4rem */
  }
  
  .top-bar-links {
    gap: 0.8rem;
  }
  
  .top-bar-links a {
    font-size: 0.6rem;
  }
  
  .trust-badge {
    font-size: 0.6rem;
    padding: 0.15rem 0.6rem;
  }

  .header-icons {
    gap: 0.15rem;
  }

  /* Slightly smaller icons on very small screens */
  .search-icon,
  .profile-icon {
    width: 34px;
    height: 34px;
  }
  
  .search-icon i,
  .profile-icon i {
    font-size: 1.1rem;
  }
  
  .cart-icon-wrapper {
    width: 38px;
    height: 38px;
  }
  
  .cart-icon-wrapper i {
    font-size: 1.2rem;
  }
  
  .mobile-menu-toggle {
    width: 34px;
    height: 34px;
    margin-left: 0.25rem;
  }

  .mobile-menu-toggle i {
    font-size: 1.2rem;
  }

  /* Adjust dropdown for smaller screens */
  .mobile-dropdown {
    padding: 1.5rem 0.8rem 1rem;
  }

  .mobile-menu-link {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
  }

  .mobile-menu-footer a {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .top-bar-links {
    gap: 0.8rem;
  }
  
  .top-bar-links a {
    font-size: 0.6rem;
  }
  
  .trust-badge {
    font-size: 0.6rem;
    padding: 0.15rem 0.6rem;
  }

  /* INCREASE MAIN HEADER SIZE FOR 480px */
  .main-header {
    padding: 0.9rem 0;  /* Added - slightly smaller than 768px but still larger */
  }

  .logo {
    font-size: 1.4rem;  /* Increased from 1.2rem */
  }
  
  .logo span {
    font-size: 1.7rem;  /* Increased from 1.4rem */
  }

  .header-icons {
    gap: 0.15rem;  /* Slightly increased from 0.1rem */
  }

  /* INCREASE ICON SIZES */
  .search-icon,
  .profile-icon {
    width: 34px;  /* Added - increased from default */
    height: 34px;  /* Added - increased from default */
  }

  .search-icon i,
  .profile-icon i {
    font-size: 1.1rem;  /* Added - increased from default */
  }

  .cart-icon-wrapper {
    width: 38px;  /* Added - increased from default */
    height: 38px;  /* Added - increased from default */
  }

  .cart-icon-wrapper i {
    font-size: 1.2rem;  /* Added - increased from default */
  }

  .cart-count {
    min-width: 19px;  /* Added - slightly smaller than 768px */
    height: 19px;  /* Added - slightly smaller than 768px */
    font-size: 0.68rem;  /* Added - adjusted */
    top: -3px;  /* Added - position adjustment */
    right: -3px;  /* Added - position adjustment */
  }

  .mobile-menu-toggle {
    width: 34px;  /* Increased from 28px */
    height: 34px;  /* Increased from 28px */
    margin-left: 0.25rem;
  }

  .mobile-menu-toggle i {
    font-size: 1.2rem;  /* Increased from 1.1rem */
  }

  /* Adjust dropdown for smaller screens */
  .mobile-dropdown {
    padding: 1.5rem 0.8rem 1rem;
  }

  .mobile-menu-link {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
  }

  .mobile-menu-footer a {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}
