@font-face {
    font-family: 'AgileJewelry'; /* Name you'll use in CSS */
    src: url('../fonts/Agile\ Jewelry.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Body background */
body {
    background-color: #f9f9f9;
}


/* Header container */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* When scrolled */
.header.scrolled {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}


.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 5%;
}

.logo img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    margin-left: 5%;
}

.name-header {
    font-size: 1.5rem;
    color: #0a1a44;
    font-family: 'AgileJewelry';
    white-space: nowrap; 
}

.nav-links {
    display: flex;
    gap: 1.75rem;
}

.nav-links a {
    position: relative;
    text-decoration: none;
    font-size: 1.15rem;
    color: #0a1a44;
    font-weight: bold;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background-color: #f9a44c;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-links a:hover {
    color: #f9a44c;
}

.nav-links a:hover::after {
    transform: scaleX(1);
}


.right-header {
    display: flex;
    align-items: center;
    gap: 2rem; /* space between nav-links and icons */
    margin-right: 5%;
}

/* Icons (Favorites & User) */
.icons {
    display: flex;
    align-items: center; /* vertically aligns the heart and user icon */
    gap: 15px;
    font-size: 30px;
    color: #0a1a44;
    cursor: pointer;
    margin-right: 5%;
}

.icons a {
    text-decoration: none;
    color: #0a1a44;
    transition: color 0.3s;
}

.icons i:hover {
    color: #ff6600;
}



/* Font Import */
@font-face {
    font-family: 'Agile Jewelry';
    src: url('../fonts/Agile Jewelry.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .container {
        width: 95%;
        padding: 20px;
    }

    button {
        font-size: 14px;
        padding: 8px;
    }

    .nav-links {
        position: static;
        transform: none;
        flex-direction: column;
        gap: 10px;
    }

    .icons {
        gap: 15px;
        font-size: 18px;
    }
}

.user-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}


.user-dropdown #userIcon {
    cursor: pointer;
    padding: 10px;
}

/* Dropdown menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #ffffff;
    color: #333;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    min-width: 150px;
    z-index: 100;
    flex-direction: column;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    opacity: 0;
    visibility: hidden;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: background 0.3s;
}

.dropdown-menu a:hover {
    background-color: #f2f2f2;
}

/* Show dropdown when hovering over the container */
.user-dropdown:hover .dropdown-menu {
    display: flex;
    opacity: 1;
    visibility: visible;
}

#userIcon,
.profile-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

#userIcon:hover {
    transform: scale(1.08);
}

.menu-toggle {
  display: none;
  font-size: 28px;
  color: #0a1a44;
  cursor: pointer;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Hide full menu by default on mobile */
@media screen and (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .header {
    flex-direction: column;
    align-items: stretch;
    margin: auto;
  }

  .logo-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .nav-wrapper {
    display: none;
    flex-direction: column;
    background-color: white;
    padding: 1rem;
    width: 100%;
  }

  .nav-wrapper.active {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    gap: 12px;
  }

  .icons {
    margin-top: 1rem;
    font-size: 24px;
  }
}
