:root {
  --primary: #c6b49b;
  --secondary: #1b1b1b;
  --accent1: #979E7A;
  --accent2: #4A593D;
  --gold: #6a5d3e;
  --accent3: #F1F0E8;
  --accent4: #D15910;
  --text-light: #333;
  --text-dark: #f8f8f8;
  --bg-light: #ffffff;
  --bg-dark: #1b1b1b;
  --card-bg-light: #f9f9f9;
  --card-bg-dark: #2a2a2a;
  --blue: #2b394f;
  --transition: all 0.3s ease;
  --bg: var(--bg-light);
  --text: var(--text-light);
  --card-bg: var(--card-bg-light);
}

.dark-mode {
  --bg: var(--bg-dark);
  --text: var(--text-dark);
  --card-bg: var(--card-bg-dark);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  background-color: var(--primary);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  padding: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 100;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  color: #1b1b1b;
}

.bold-heading {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #f1f1f1;
  font-size: 4rem;
}

.mid-heading {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  color: #f1f1f1;
  font-size: 2rem;
}

p {
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
}

a {
  text-decoration: none;
  color: #f1f1f1;
}

/* Header */
header {
  height: 80px;
  width: 100%;
  background-color: var(--accent2);
  padding: 0 5%;
  /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo img {
  width: 100px;
  height: auto;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

/* Navigation Container */
.nav-container {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Desktop Navigation */
.desktop-nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

.desktop-nav a {
  font-weight: 500;
  position: relative;
  color: #f1f1f1;
  padding: 5px 0;
}

.desktop-nav a:hover {
  color: var(--primary);
}

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

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

/* Mobile Navigation Toggle */
.hamburger {
  display: none;
  cursor: pointer;
  font-size: 24px;
  color: #f1f1f1;
  z-index: 1001;
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--accent2);
  z-index: 999;
  padding: 100px 20px 20px;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  overflow-y: auto;
}

.mobile-nav.active {
  transform: translateX(0);
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.mobile-nav a {
  display: block;
  padding: 12px 15px;
  border-radius: 5px;
  font-size: 18px;
  transition: background-color 0.3s ease;
}

.mobile-nav a:hover {
  background-color: var(--primary);
  color: var(--text-dark);
}

/* Header Icons */
.header-icons {
  display: flex;
  align-items: center;
  gap: 15px;
}

.icon {
  font-size: 20px;
  cursor: pointer;
  position: relative;
  color: #f1f1f1;
}

.icon:hover {
  color: var(--primary);
}

.icon-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--accent4);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* User Dropdown */
.user-dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background-color: #2a2a2a;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  z-index: 1001;
  padding: 10px 0;
}

.dropdown-content a {
  padding: 10px 20px;
  display: block;
  color: #f1f1f1;
}

.dropdown-content a:hover {
  background-color: var(--accent3);
  color: #1b1b1b;
}

.user-dropdown:hover .dropdown-content {
  display: block;
}

/* Search Bar */
.search-bar {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-items: center;
  background-color: var(--accent1);
  /* border-radius: 25px; */
  padding: 5px; /* Left padding for icon */
  /* margin: 0 10px; */
  max-width: 250px;
  height: 36px; /* Fixed height */
  flex-grow: 1;
}

.search-bar i {
  position: absolute;
  left: 4px;
  top: 12px;
  color: #1b1b1b;
  font-size: 14px;
}

.search-bar input {
  border: none;
  background: var(--accent1);
  outline: none;
  width: 100%;
  color: #1b1b1b;
  font-size: 14px;
  padding: 5px 0;
}
.search-bar::placeholder {
  color: #000;
  /* opacity: 1; */
  padding: 5px 0;
}
/* Footer */
.main-footer {
  background-color: var(--blue);
  color: var(--text-dark);
  padding: 3rem 0 1.5rem;
}

.footer-container {
  /* max-width: 1200px; */
  margin: 0 auto;
  /* padding: 0 20px; */
  display: flex;
  flex-direction: column;
  width: 80%;
  justify-content: flex-start;
  align-items: center;
}

.footer-newsletter {
  width: 80%;
  margin: 0 auto 2rem;
  padding: 0 20px;

}

.footer-newsletter p {
  font-size: 1rem;
  margin-bottom: 0.8rem;
  color: #d1d1d1;
  text-align: left;
}

.update-msg {
  font-size: 14px;
  padding: 6px;
  background-color: var(--accent4);
  color: #1b1b1b;
  width: fit-content;
  margin-top: 10px;
  border-radius: 4px;
}

.footer-newsletter-form {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.footer-newsletter-form input {
  flex: 1;
  height: 40px;
  padding: 0 15px;
  border: none;
  border-radius: 4px;
  background-color: var(--primary);
  color: var(--accent4);
  font-size: 20px;
}

.footer-newsletter-form button {
  height: 40px;
  padding: 0 20px;
  background-color: var(--primary);
  color: var(--accent4);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s ease;
  font-size: 14px;
}

.footer-newsletter-form button:hover {
  background-color: #e0c9a8;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 0 20px;
}

.footer-column {
  text-align: left;
}

.footer-column h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--primary);
  position: relative;
  padding-bottom: 8px;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary);
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.6rem;
}

.footer-column a {
  font-size: 0.85rem;
  color: var(--text-dark);
  opacity: 0.8;
  transition: var(--transition);
}

.footer-column a:hover {
  opacity: 1;
  color: var(--primary);
  padding-left: 5px;
}

.country-display {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.country-flag {
  width: 16px;
  height: 12px;
}

.country-name {
  font-size: 0.85rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-dark);
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary);
  color: var(--text-dark);
  transform: translateY(-3px);
}

.footer-bottom p {
  font-size: 0.9rem;
  color: var(--text-dark);
  opacity: 0.7;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: var(--text-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 99;
  transition: var(--transition);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--accent2);
}

/* Install Button */
#installBtn {
  display: none;
  position: fixed;
  bottom: 90px;
  right: 20px;
  padding: 10px 15px;
  background: var(--accent4);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.5s;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .desktop-nav ul {
    gap: 15px;
  }
  
   .search-bar {
    max-width: 200px;
  }
}

@media (max-width: 768px) {
  header {
    height: 80px;
    padding: 0 20px;
  }

  .logo img {
    width: 80px;
  }

  .hamburger {
    display: block;
  }

  .desktop-nav {
    display: none;
  }

  .nav-container {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .header-icons {
    margin-left: auto;
  }
  .footer-container{
    width: 100%;
   justify-items: flex-start;
  }

  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
    width: 95%;
    justify-items: center;
    margin-left: -21px;    
  }
.footer-newsletter-form {
    flex-direction: column;
    gap: 8px;
  }
  
  .footer-newsletter-form input,
  .footer-newsletter-form button {
    height: 48px;
    font-size: 16px;
  }
  
  .footer-newsletter-form input {
    padding: 0 15px;
    font-size: 20px;
  }
  .search-bar {
    order: 1;
    width: 100%;
    max-width: 100%;
    margin: 15px 0;
  }

  
}

@media (max-width: 480px) {
  header {
    padding: 0 15px;
  }

  .logo img {
    width: 70px;
  }

  .icon {
    font-size: 18px;
  }

   .search-bar i {
    left: 10px;
    font-size: 12px;
  }
   .footer-container{
    width: 100%;
    justify-content: center;
  }

  .footer-links-grid {
    grid-template-columns: 1fr;
    width: 100%;
    
  }
}



/* Add this to your CSS file */
.ui-autocomplete {
  position: absolute;
  z-index: 1001 !important; /* Higher than header's z-index */
  background-color: var(--card-bg);
  border: 1px solid var(--primary);
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  margin: 0;
  list-style: none;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.ui-autocomplete li {
  padding: 8px 12px;
  cursor: pointer;
  color: var(--text);
  border-bottom: 1px solid var(--primary);
}

.ui-autocomplete li:hover {
  background-color: var(--primary);
  color: var(--text-dark);
}

.ui-autocomplete li:last-child {
  border-bottom: none;
}

.ui-autocomplete .ui-state-focus {
  background-color: var(--primary);
  color: var(--text-dark);
}

/* Notofications */
/* .notification-container {
  position: relative;
  display: inline-block;
}

.notification-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: red;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.8rem;
  visibility: hidden;
}

.notification-panel {
  position: absolute;
  right: 0;
  width: 350px;
  max-height: 500px;
  overflow-y: auto;
  background: white;
  border: 1px solid #ddd;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: none;
  z-index: 1000;
}

.notification-panel.visible {
  display: block;
}

.notification-item {
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.notification-item.unread {
  background: #f8f9fa;
}

.notification-header {
  padding: 10px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vendor-notification {
    border-left: 4px solid #4CAF50;
}

.vendor-badge {
    background: #4CAF50;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8em;
    display: inline-block;
    margin-bottom: 5px;
} */
.notification-panel {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    width: 350px;
    max-height: 500px;
    overflow-y: auto;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 4px;
    z-index: 1000;
    padding: 10px;
}

.notification-panel.visible {
    display: block;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.close-panel {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    padding: 0 10px;
}

.notification-item {
    padding: 10px;
    border-bottom: 1px solid #f5f5f5;
}

.notification-item.unread {
    background-color: #f8f9fa;
}

.vendor-badge {
    background: #ffc107;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.8em;
    margin-right: 5px;
}


/* Enhanced Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--accent2);
  z-index: 999;
  padding: 20px;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mobile-nav.active {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}

.mobile-nav-close {
  color: #f1f1f1;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
}

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

.mobile-nav-main {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.mobile-nav-main li a {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  color: #f1f1f1;
  font-weight: 500;
}

.mobile-nav-main li a i {
  margin-right: 15px;
  width: 20px;
  text-align: center;
  font-size: 18px;
}

.mobile-nav-main li a:hover {
  background-color: var(--primary);
  color: var(--text-dark);
  transform: translateX(5px);
}

/* Mobile Navigation Actions */
.mobile-nav-actions {
  margin-bottom: 20px;
}

.mobile-user-section,
.mobile-auth-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-nav-actions a,
.mobile-nav-logout {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  color: #f1f1f1;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.mobile-nav-actions a i,
.mobile-nav-logout i {
  margin-right: 15px;
  width: 20px;
  text-align: center;
  font-size: 18px;
}

.mobile-nav-actions a:hover,
.mobile-nav-logout:hover {
  background-color: var(--primary);
  color: var(--text-dark);
  transform: translateX(5px);
}

.mobile-nav-sell {
  background-color: var(--accent4) !important;
  color: #1b1b1b !important;
  font-weight: 600 !important;
}

.mobile-nav-sell:hover {
  background-color: #e65100 !important;
  color: #1b1b1b !important;
}

/* Mobile Badges */
.mobile-badge {
  background-color: var(--accent4);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

/* Mobile Navigation Footer */
.mobile-nav-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-cart {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  color: #f1f1f1;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 15px;
}

.mobile-nav-cart i {
  margin-right: 15px;
  width: 20px;
  text-align: center;
  font-size: 18px;
}

.mobile-nav-cart:hover {
  background-color: var(--primary);
  color: var(--text-dark);
}

/* Mobile Currency Selector */
.mobile-currency-selector {
  margin-bottom: 20px;
}

.mobile-currency-selector label {
  display: flex;
  align-items: center;
  color: #f1f1f1;
  margin-bottom: 10px;
  font-weight: 500;
}

.mobile-currency-selector label i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

.mobile-currency-selector select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #f1f1f1;
  font-size: 14px;
  font-family: inherit;
}

.mobile-currency-selector select option {
  background: var(--accent2);
  color: #f1f1f1;
}

/* Mobile Social Links */
.mobile-social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding-top: 20px;
}

.mobile-social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #f1f1f1;
  transition: all 0.3s ease;
}

.mobile-social-links a:hover {
  background-color: var(--primary);
  color: var(--text-dark);
  transform: translateY(-3px);
}

/* Update hamburger menu to close when mobile nav is active */
.hamburger.active {
  color: var(--primary);
}