/* Header Styles with Updated Theme */
:root {
  --primary-color: #9e6d4e;
  --secondary-color: #e8d5c0;
  --accent-color: #c7a17a;
  --dark-color: #333;
  --text-color: #444;
  --border-color: #ddd;
  --light-bg: #f9f4f1;
  --white: #ffffff;
  --black: #000;
  --font-primary: 'Playfair Display', serif;
  --font-secondary: 'Poppins', sans-serif;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 1px;
  z-index: 101;
  font-family: var(--font-primary);
}

.main-nav {
  display: flex;
}

.main-nav a {
  margin: 0 15px;
  font-family: var(--font-secondary);
  font-weight: 500;
  position: relative;
  color: var(--text-color);
}

.main-nav a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  bottom: -5px;
  left: 0;
  transition: width 0.3s ease;
}

.main-nav a:hover:after {
  width: 100%;
}

.auth-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-family: var(--font-secondary);
}

.desktop-icons {
  display: flex;
  align-items: center;
  gap: 20px;
}

.icon-link {
  color: var(--text-color);
  font-size: 1.2rem;
  transition: all 0.3s ease;
  position: relative;
}

.icon-link:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 10px;
  z-index: 102;
}

.hamburger {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--primary-color);
  position: relative;
  transition: all 0.3s ease;
}

.hamburger:before,
.hamburger:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
  left: 0;
  transition: all 0.3s ease;
}

.hamburger:before {
  top: -8px;
}

.hamburger:after {
  bottom: -8px;
}

.menu-toggle.active .hamburger {
  background: transparent;
}

.menu-toggle.active .hamburger:before {
  transform: rotate(45deg);
  top: 0;
}

.menu-toggle.active .hamburger:after {
  transform: rotate(-45deg);
  bottom: 0;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 350px;
  height: 100vh;
  background: var(--white);
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  padding: 100px 30px 30px;
  transition: right 0.3s ease;
  z-index: 99;
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
}

.mobile-nav-link {
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-family: var(--font-secondary);
  font-weight: 500;
  color: var(--dark-color);
  transition: color 0.3s ease;
}

.mobile-nav-link:hover {
  color: var(--primary-color);
}

.mobile-auth-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-auth-btn {
  display: block;
  width: 100%;
  padding: 12px;
  text-align: center;
  border-radius: 8px;
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.mobile-auth-btn.login-btn {
  border: 1px solid var(--primary-color, #9e6d4e);
  color: var(--primary-color, #9e6d4e);
  background: transparent;
}

.mobile-auth-btn.login-btn:hover {
  background-color: var(--light-bg, #f9f4f1);
}

.mobile-auth-btn.signup-btn {
  background-color: var(--primary-color, #9e6d4e);
  color: var(--white, #ffffff);
  border: 1px solid var(--primary-color, #9e6d4e);
  box-shadow: 0 4px 10px rgba(158, 109, 78, 0.15);
}

.mobile-auth-btn.signup-btn:hover {
  background-color: #8c5d41;
  border-color: #8c5d41;
}

body.mobile-menu-open::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 98;
}

body.no-scroll {
  overflow: hidden;
}

.profile-card-container {
  position: relative;
}

.profile-card {
  display: none;
  position: absolute;
  top: 40px;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  z-index: 100;
  min-width: 160px;
  padding: 12px 0;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  font-family: var(--font-secondary);
}

.profile-card.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.profile-card .card-link {
  display: block;
  padding: 10px 15px;
  font-size: 14px;
  color: var(--text-color);
  text-decoration: none;
}

.profile-card .card-link:hover {
  background-color: var(--light-bg);
  color: var(--primary-color);
}

.cart-icon {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wishlist-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #e3c67e;
  color: #1f1f1f;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wishlist-icon {
  position: relative;
}

@media (max-width: 768px) {
  .main-nav,
  .auth-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .navbar {
    padding: 15px 20px;
  }

  .mobile-menu {
    padding-top: 80px;
  }

  .profile-card {
    position: fixed;
    top: 60px;
    right: 20px;
    left: 20px;
    width: auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .profile-card .card-link {
    padding: 12px 18px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 20px;
  }

  .mobile-menu {
    width: 85%;
  }
}
.card-greeting {
  padding: 12px 15px;
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 15px;
  color: var(--primary-color);
  border-bottom: 1px solid var(--border-color);
  background-color: var(--light-bg);
  text-align: left;
}
