
:root {
  --z-index-nav: 999999;
}

/* Navigation structure */
header {
  position: relative;
  z-index: var(--z-index-nav);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: white;
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-right: auto;  /* This pushes everything else to the right */
}

.logo-img {
  width: 40px;
  height: 40px;
}

.site-title {
  font-size: 1.5rem;
  margin: 0;
  color: #d6d9da; 
  font-weight: 600;
}

.nav-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
}

nav {
  position: relative;
  z-index: var(--z-index-nav);
  flex: 1;
  display: flex;
  justify-content: center;
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 1rem;
  list-style: none;
  padding: 0;
  position: relative;
}

/* Navigation Links */
nav a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  display: block;
}

/* Dropdown Links */
.submenu a {
  color: #333;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  text-align: left;
  transition: background-color 0.2s;
}

.submenu a:hover {
  background-color: #f5f5f5;
}

nav ul li {
  position: relative;
}

/* Dropdown menus */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  min-width: 220px;
  z-index: var(--z-index-nav);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
  border-radius: 8px;
  padding: 0.5rem 0;
  text-align: left;
}

.submenu a {
  padding: 0.5rem 1rem;
  display: block;
  text-align: left;
  white-space: nowrap;
}



/* Nested dropdowns (right-aligned) */
.submenu .submenu {
  position: absolute;
  left: 100%;
  top: 0;
  transform: none;
}  header {
    position: relative;
    z-index: var(--z-index-nav);
  }
  
  nav {
    position: relative;
    z-index: var(--z-index-nav);
  }
  
  nav ul .submenu {
    position: fixed;
    display: none;
    top: 4rem;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    min-width: 220px;
    z-index: var(--z-index-nav);
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
    border-radius: 8px;
    backdrop-filter: blur(10px);
  }
  
  nav ul .submenu.right {
    position: absolute;
    top: 0;
    left: 100%;
    transform: none;
  }  header {
    position: relative;
    z-index: var(--z-index-nav);
  }
  
  nav {
    position: relative;
    z-index: var(--z-index-nav);
  }
  
  nav ul .submenu {
    position: fixed;
    display: none;
    top: 4rem;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    min-width: 220px;
    z-index: var(--z-index-nav);
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
    border-radius: 8px;
    backdrop-filter: blur(10px);
  }
  
  nav ul .submenu.right {
    position: absolute;
    top: 0;
    left: 100%;
    transform: none;
  }  header {
    position: relative;
    z-index: var(--z-index-nav);
  }
  
  nav {
    position: relative;
    z-index: var(--z-index-nav);
  }
  
  nav ul .submenu {
    position: fixed;
    display: none;
    top: 4rem;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    min-width: 220px;
    z-index: var(--z-index-nav);
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
    border-radius: 8px;
    backdrop-filter: blur(10px);
  }
  
  nav ul .submenu.right {
    position: absolute;
    top: 0;
    left: 100%;
    transform: none;
  }


/* Logo and Title styles moved from HTML */
.logo-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.site-title {
  margin: 0;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #e0e7ef 0%, #c9d6ff 100%);
  min-height: 100vh;
}

/* Ensure proper stacking context */
main {
  position: relative;
  z-index: 1;
}

nav {
  position: relative;
  z-index: 1000000;
}

header {
  background: rgba(45, 45, 45, 0.5);
  color: white;
  padding: 1rem;
  text-align: center;
  border-radius: 20px;
  margin: 1rem auto 2rem auto;
  max-width: 900px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
  position: relative;
  z-index: 10;
}

/* Navigation */
nav {
  position: relative;
  z-index: 1000;
}

nav ul {
  position: relative;
  z-index: 1000;
}

nav ul li {
  position: relative;
}

nav ul li:hover {
  z-index: 1001;
}

.submenu {
  position: absolute;
  display: none;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: white;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  border-radius: 4px;
  z-index: 1002;
}

nav ul li:hover > .submenu {
  display: block;
}

.submenu.right {
  top: 0;
  left: 100%;
  margin-left: 1px;
}

nav {
  position: relative;
  z-index: 100000;
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 1rem;
  list-style: none;
  padding: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 16px;
  box-shadow: 0 4px 24px 0 rgba(31, 38, 135, 0.17);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.12);
}

nav a {
  color: white;
  text-decoration: none;
}

nav ul li {
  position: relative;
  overflow: visible;
}

nav ul li a {
  color: #222;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  display: block;
}

nav ul .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  min-width: 200px;
  z-index: 1000000;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

nav ul .submenu li {
  position: relative;
}
nav ul .submenu.right {
  left: 100%;
  top: 0;
}
nav ul .submenu li a {
  color: #222;
  padding: 0.5rem 1rem;
  white-space: nowrap;
}
nav ul .submenu li a:hover {
  background: #eee;
  border-radius: 4px;
}

.products {
  display: flex;
  justify-content: center;
  padding: 2rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.product-card {
  background: rgba(255,255,255,0.25);
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.17);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 1rem;
  max-width: 200px;
  text-align: center;
  transition: box-shadow 0.3s;
}
.product-card:hover {
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.25);
}
/* Glassmorphism for filters section */
.filters {
  background: rgba(255,255,255,0.25);
  border-radius: 16px;
  box-shadow: 0 4px 24px 0 rgba(31, 38, 135, 0.13);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 1rem 2rem;
  margin: 2rem auto;
  max-width: 900px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.product-card img {
  max-width: 100%;
}
/* Removed unused .menu styles and inline <style> block. All navigation is handled by nav ul and .submenu classes. */