/* Unified Header Styling for Dogs Dog Co. Website */

/* Header container */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    padding: 15px 0;
    overflow: visible;
  }
  
  .header-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
  }
  
  /* Logo styling */
  .header-container .logo,
  .header-container .logo-link img {
    height: 90px;
    width: auto;
    margin: 0;
    padding: 0;
    object-fit: contain;
  }
  
  .main-nav {
    display: flex;
    gap: 40px; /* Keep the existing spacing between items */
    position: absolute; /* Position it absolutely */
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content; /* Make it only as wide as needed */
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Perfect vertical centering */
    justify-content: center;
  }
  
  .nav-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    padding: 10px;
    transition: color 0.3s ease;
  }
  
  .nav-link:hover {
    color: var(--primary);
  }
  
  .nav-link.active {
    color: var(--primary);
    font-weight: 700;
  }
  
  /* Position the Shop Now button on the right */
  .nav-cta {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary);
    color: var(--light);
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 10;
  }
  
  .nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  
  /* Mobile menu styling */
  .hamburger-menu {
    display: none;
    cursor: pointer;
    z-index: 1000;
  }
  
  .hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--dark);
    transition: all 0.3s ease;
  }
  
  .mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: var(--light);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    padding: 80px 20px 20px;
    transition: right 0.3s ease;
    z-index: 900;
  }
  
  .mobile-menu.active {
    right: 0;
  }
  
  .mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .mobile-nav-link {
    color: var(--dark);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: color 0.3s ease;
  }
  
  .mobile-nav-link:hover {
    color: var(--primary);
  }
  
  .mobile-nav-cta {
    display: inline-block;
    padding: 12px 24px;
    margin-top: 30px;
    background-color: var(--primary);
    color: var(--light);
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    text-align: center;
  }
  
  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 800;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  
  .menu-overlay.active {
    opacity: 1;
    pointer-events: all;
  }
  
  /* Responsive adjustments */
  @media (max-width: 920px) {
    .hamburger-menu {
      display: block;
      position: absolute;
      right: 20px;
      top: 35px;
    }
    
    .main-nav, .nav-cta {
      display: none;
    }
    
    .header-container {
      justify-content: center;
      padding-bottom: 0;
    }
    
    .header-container .logo,
    .header-container .logo-link img {
      height: 50px;
      margin: 0 auto;
    }
  }
  
  @media (max-width: 480px) {
    .header-container {
      padding: 10px 0;
    }
    
    .hamburger-menu {
      top: 30px;
    }
  }