/* Top Navigation Bar - Canvaspop Style */
.top-nav-bar {
  display: flex;
  align-items: center;
  padding: 12px 40px;
  background-color: #ffffff;
  border-bottom: 1px solid #e8e8e8;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  gap: 40px;
}

/* Logo Container */
.nav-logo {
  flex-shrink: 0;
}

.nav-logo img {
  width: 200px;
  height: auto;
  display: block;
}

/* Navigation Links Container */
.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-grow: 1;
  justify-content: flex-start;
}

/* Right Navigation Container */
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

/* Navigation Links */
.top-nav-bar a {
  color: #333333;
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.3px;
  transition: color 0.2s ease;
}

.top-nav-bar a:hover {
  color: #000000;
}

/* Dropdown Container */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

/* Create invisible hover bridge for Products dropdown */
.nav-dropdown:first-child::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 30px;
  background: transparent;
  display: none;
}

.nav-dropdown:first-child:hover::before {
  display: block;
}

.nav-dropdown > a {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 0;
}

.nav-dropdown > a::after {
  content: '▾';
  font-size: 10px;
  color: #666;
}

/* Dropdown Content */
.nav-dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffffff;
  width: 100vw;
  left: 0;
  right: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  border-radius: 2px;
  padding: 10px 0;
  top: 100%;
}

/* Products dropdown specific styling */
.nav-dropdown:first-child .nav-dropdown-content {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 20px 0 20px 0;
  left: calc(-240px - 40px);
  background-color: #ffffff;
  top: calc(100% + 30px);
}

.nav-dropdown:first-child .nav-dropdown-content a {
  min-width: 200px;
  padding: 10px 15px;
  border-radius: 4px;
  transition: all 0.2s ease;
  margin-left: 280px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-dropdown:first-child .nav-dropdown-content a .product-text {
  flex: 1;
}

.nav-dropdown:first-child .nav-dropdown-content a .product-image {
  width: 120px;
  height: 80px;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-dropdown:first-child .nav-dropdown-content a:hover {
  background-color: #f8f8f8;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.nav-dropdown-content a {
  display: block;
  padding: 10px 18px;
  color: #333333;
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  transition: background-color 0.2s ease;
}

.nav-dropdown-content a:hover {
  background-color: #f8f8f8;
  color: #000000;
}

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

/* Cart Icon */
.cart-icon {
  display: inline-flex;
  align-items: center;
  color: #000000;
  font-size: 20px;
  cursor: pointer;
  padding: 5px;
}

.cart-icon:hover {
  opacity: 0.7;
}

/* Promotional Banner Below Nav */
.promo-banner {
  background-color: #60b5da;
  text-align: center;
  padding: 12px 20px;
  font-size: 14px;
  color: #fff;
  border-bottom: 1px solid #4a9bb8;
  position: fixed;
  top: 85px;
  left: 0;
  right: 0;
  z-index: 999;
}

.promo-banner strong {
  font-weight: 600;
  color: #fff;
}

/* Add padding to body to account for fixed navigation bars */
body {
  padding-top: 100px;
}

/* Adjust padding when there's no announcement banner */
body:has(.promo-banner:not(:empty)) {
  padding-top: 100px;
}

body:not(:has(.promo-banner:not(:empty))) {
  padding-top: 68px;
}
