.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 10px 20px;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
}

.logo img {
  height: 50px;
  width: auto;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
}

.main-nav a {
  color: #000;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: #f04; /* Accent color */
}

.cart-container {
  position: relative;
  display: inline-block;
  margin-left: 20px;
}

.cart-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.cart-link:hover {
  background-color: rgba(0, 0, 0, 0.1);
  color: inherit;
  text-decoration: none;
}

.cart-icon {
  position: relative;
  font-size: 1.2em;
  margin-right: 8px;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #e74c3c;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.7em;
  min-width: 18px;
  text-align: center;
  font-weight: bold;
}

.cart-text {
  font-size: 0.9em;
}

.track-order-link {
  margin-left: 15px;
  font-size: 0.85em;
  color: #666;
  text-decoration: none;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.track-order-link:hover {
  background-color: #f8f9fa;
  color: #333;
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .cart-text {
    display: none;
  }

  .track-order-link {
    margin-left: 10px;
    font-size: 0.8em;
    padding: 4px 8px;
  }

  .header-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
  }
}

/* Flash messages styling */
.flash-messages {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 400px;
}

.alert {
  padding: 12px 16px;
  margin-bottom: 10px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.alert-close {
  float: right;
  background: none;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
  margin-left: 10px;
}
