/* Header styles for HomeShopPL */
.hs-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.hs-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.hs-header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.hs-header__logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.hs-header__logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #f3e6d3 0, #f3e6d3 40%, #c3b39a 70%, #7c6a55 100%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
}

.hs-header__logo-text {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2f2a24;
  white-space: nowrap;
}

.hs-header__nav {
  display: flex;
}

.hs-header__nav-list {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hs-header__nav-link {
  position: relative;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: #4a463f;
  padding: 0.35rem 0;
}

.hs-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #9fb49b, #c79c63);
  transition: width 0.2s ease-out;
}

.hs-header__nav-link:hover::after,
.hs-header__nav-link:focus-visible::after {
  width: 100%;
}

.hs-header__nav-link:focus-visible {
  outline: 2px solid #6c8a73;
  outline-offset: 3px;
}

/* Mobile toggle */
.hs-header__toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background-color: #ffffff;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.hs-header__toggle-bar {
  position: absolute;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background-color: #3b342d;
  transition: transform 0.18s ease-out, opacity 0.18s ease-out, top 0.18s ease-out, bottom 0.18s ease-out;
}

.hs-header__toggle-bar:nth-child(1) {
  top: 13px;
}

.hs-header__toggle-bar:nth-child(2) {
  top: 19px;
}

.hs-header__toggle-bar:nth-child(3) {
  bottom: 13px;
}

.hs-header__toggle[aria-expanded="true"] .hs-header__toggle-bar:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}

.hs-header__toggle[aria-expanded="true"] .hs-header__toggle-bar:nth-child(2) {
  opacity: 0;
}

.hs-header__toggle[aria-expanded="true"] .hs-header__toggle-bar:nth-child(3) {
  bottom: 19px;
  transform: rotate(-45deg);
}

/* Responsive layout */
@media (max-width: 768px) {
  .hs-header__inner {
    padding-inline: 1rem;
  }

  .hs-header__toggle {
    display: inline-flex;
  }

  .hs-header__nav {
    position: fixed;
    inset-inline: 0;
    top: 56px;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.2s ease-out, opacity 0.2s ease-out, visibility 0.2s ease-out;
  }

  .hs-header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1.25rem 1.25rem;
    gap: 0.75rem;
  }

  .hs-header__nav-link {
    font-size: 0.95rem;
  }

  /* JS-enhanced state */
  .js-nav-ready .hs-header__nav {
    display: block;
  }

  .hs-header__nav--open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
}

@media (min-width: 769px) {
  .hs-header__nav {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hs-header__nav,
  .hs-header__toggle-bar {
    transition: none !important;
  }
}
