/* Header styles for BeautyCarre */

.bc-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: radial-gradient(circle at top left, rgba(241, 217, 194, 0.55), transparent 50%),
              rgba(248, 243, 238, 0.96);
  border-bottom: 1px solid rgba(217, 168, 124, 0.18);
}

.bc-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
  gap: var(--space-4);
}

/* Brand */
.bc-header__brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.bc-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-text);
  font-family: var(--font-serif-accent);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bc-header__logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: conic-gradient(from 160deg, #f1d9c2, #e2b887, #f8f3ee, #f1d9c2);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.bc-header__logo-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
}

.bc-header__logo-text {
  white-space: nowrap;
}

/* Navigation */

.bc-header__nav {
  flex: 1 1 auto;
}

.bc-header__nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}

.bc-header__nav-item {
  list-style: none;
}

.bc-header__nav-link {
  font-size: var(--font-size-sm);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  position: relative;
  padding-bottom: 0.25rem;
}

.bc-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #e2b887, #d9a87c);
  transition: width var(--transition-base);
}

.bc-header__nav-link:hover,
.bc-header__nav-link:focus-visible {
  color: var(--color-text);
}

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

/* Header actions */

.bc-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.bc-header__icon-link {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(217, 168, 124, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-xs);
  font-size: 0.9rem;
}

.bc-header__icon-link:hover,
.bc-header__icon-link:focus-visible {
  background-color: #f7efe7;
}

/* Mobile toggle */

.bc-header__toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(217, 168, 124, 0.4);
  background-color: rgba(255, 255, 255, 0.9);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.bc-header__toggle-bar {
  position: absolute;
  width: 18px;
  height: 1.6px;
  border-radius: 999px;
  background-color: var(--color-gray-800);
  transition: transform var(--transition-base), opacity var(--transition-base), top var(--transition-base), bottom var(--transition-base);
}

.bc-header__toggle-bar:first-child {
  top: 16px;
}

.bc-header__toggle-bar:last-child {
  bottom: 16px;
}

.bc-header__toggle[aria-expanded="true"] .bc-header__toggle-bar:first-child {
  top: 50%;
  transform: translateY(-50%) rotate(40deg);
}

.bc-header__toggle[aria-expanded="true"] .bc-header__toggle-bar:last-child {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-40deg);
}

/* Mobile layout */

@media (max-width: 768px) {
  .bc-header__inner {
    padding-top: var(--space-2);
    padding-bottom: var(--space-2);
  }

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

  .bc-header__nav {
    position: fixed;
    inset-inline: 0;
    top: 64px;
    background: rgba(248, 243, 238, 0.98);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(217, 168, 124, 0.16);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
  }

  .bc-header__nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-4) var(--space-4) var(--space-5);
    gap: var(--space-3);
  }

  .bc-header__nav-link {
    padding-block: 0.4rem;
  }

  .bc-header__nav-link::after {
    display: none;
  }

  .bc-header__nav-link:hover,
  .bc-header__nav-link:focus-visible {
    background-color: rgba(217, 168, 124, 0.09);
    border-radius: var(--radius-md);
    padding-inline: 0.4rem;
  }

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

  .bc-header__nav--open .bc-header__nav-list {
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }

  .bc-header__inner {
    gap: var(--space-2);
  }

  .bc-header__nav {
    order: 3;
  }
}

/* Medium screens adjustments */

@media (max-width: 1024px) {
  .bc-header__nav-list {
    gap: var(--space-3);
  }
}
