/* Shared blog header */
.site-header {
  background: #f8f8f8;
  border-bottom: 1px solid #ddd;
  padding: 20px;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0;
}

.header-inner img {
  height: 80px;
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.site-nav li,
.has-dropdown {
  position: relative;
}

.has-dropdown > a::after {
  content: ' ▾';
  font-size: 0.8rem;
  margin-left: 0.3rem;
}

.site-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  min-width: 220px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
  margin-top: 0.5rem;
}

.site-nav .has-dropdown:hover > .dropdown-menu,
.has-dropdown:focus-within > .site-nav .dropdown-menu {
  display: flex;
  flex-direction: column;
}

.dropdown-menu li {
  margin: 0;
  border-bottom: 1px solid #f0f0f0;
}

.dropdown-menu li:last-child {
  border-bottom: none;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: #333;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.dropdown-menu a:hover {
  background: #A4343A;
  color: white;
}

.site-nav li + li {
  margin-left: 1.5rem;
}

.site-nav a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s;
  font-weight: 500;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cart-icon {
  position: relative;
  cursor: pointer;
  font-size: 1.5rem;
  color: #333;
  transition: transform 0.2s;
}

.cart-icon:hover {
  transform: scale(1.1);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #A4343A;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}

@media (max-width: 868px) {
  .site-nav li + li { margin-left: 0; }
  .site-nav .dropdown-menu {
    position: static;
    box-shadow: none;
    width: 100%;
  }
}

/* Keep navigation labels in their written case on article pages */
.site-header .site-nav a {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}

.site-header .site-nav .dropdown-menu a:hover,
.site-header .site-nav .dropdown-menu a:focus-visible {
  background: #A4343A;
  color: white;
}
