/* Общая шапка магазина (static/site-header.js): закреплена при прокрутке, цвета сайта. */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  margin: 0 0 20px; padding: 12px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff;
  border-radius: 0 0 10px 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.3;
}
.site-logo { color: #fff; font-size: 22px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.site-logo:hover { text-decoration: underline; }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.site-nav a, .site-nav summary, .nav-toggle {
  display: inline-block; color: #fff; text-decoration: none; cursor: pointer;
  padding: 8px 14px; border: 0; border-radius: 20px; background: rgba(255, 255, 255, .2); font-size: 15px;
}
.site-nav a:hover, .site-nav summary:hover, .nav-toggle:hover { background: rgba(255, 255, 255, .3); }
.site-nav [hidden], .nav-toggle[hidden] { display: none !important; }
.site-nav summary { list-style: none; }
.site-nav summary::-webkit-details-marker { display: none; }
.cart-count {
  display: inline-block; min-width: 20px; margin-left: 4px; padding: 0 6px; border-radius: 10px;
  background: #fff; color: #764ba2; font-size: 13px; font-weight: 700; text-align: center;
}
.profile-menu { position: relative; }
.profile-links {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 101;
  display: flex; flex-direction: column; min-width: 210px; padding: 6px;
  background: #fff; border-radius: 10px; box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
}
.site-nav .profile-links a { color: #333; background: none; border-radius: 6px; }
.site-nav .profile-links a:hover { background: #f0f2ff; }
.nav-toggle { display: none; font-family: inherit; }

@media (max-width: 768px) {
  .site-header { border-radius: 0; padding: 10px 16px; }
  .site-logo { font-size: 19px; }
  .nav-toggle { display: inline-block; }
  .site-nav.nav-collapsible { display: none; width: 100%; flex-direction: column; align-items: stretch; }
  .site-nav.nav-collapsible.open { display: flex; }
  .profile-links { position: static; margin-top: 6px; box-shadow: none; }
}
