/* Header styles for Fashionweario */

.fw-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.fw-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;
}

.fw-header__brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.fw-header__logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #ffffff;
  letter-spacing: 0.04em;
}

.fw-header__logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #ec4899);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Playfair Display", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #0a0a0a;
}

.fw-header__logo-text {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
}

/* Navigation */

.fw-header__nav {
  margin-left: auto;
}

.fw-header__nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.fw-header__nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #f3f4f6;
}

.fw-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #f97316, #ec4899);
  transition: width 160ms ease-out;
}

.fw-header__nav-link:focus-visible,
.fw-header__nav-link:hover {
  color: #ffffff;
}

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

.fw-header__nav-item--highlight .fw-header__nav-link {
  padding-inline: 0.9rem;
  padding-block: 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(249, 115, 22, 0.4);
  background: radial-gradient(circle at 0 0, rgba(249, 115, 22, 0.14), transparent 55%),
              radial-gradient(circle at 100% 100%, rgba(236, 72, 153, 0.16), transparent 55%);
}

.fw-header__nav-item--highlight .fw-header__nav-link::after {
  display: none;
}

.fw-header__nav-link--cta {
  gap: 0.4rem;
}

.fw-header__cart-icon {
  font-size: 0.9rem;
}

.fw-header__cart-label {
  font-size: 0.8rem;
}

.fw-header__cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background-color: #f97316;
  color: #0a0a0a;
  font-size: 0.7rem;
  font-weight: 600;
  padding-inline: 0.25rem;
}

/* Mobile toggle */

.fw-header__toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  cursor: pointer;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.fw-header__toggle-bar {
  position: absolute;
  width: 18px;
  height: 1.5px;
  background-color: #e5e7eb;
  transition: transform 160ms ease-out, opacity 160ms ease-out, top 160ms ease-out, bottom 160ms ease-out;
}

.fw-header__toggle-bar:first-child {
  top: 11px;
}

.fw-header__toggle-bar:last-child {
  bottom: 11px;
}

.fw-header__toggle:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 3px;
}

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

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

/* Responsive layout */

@media (max-width: 768px) {
  .fw-header__inner {
    padding-block: 0.6rem;
  }

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

  .fw-header__nav {
    position: fixed;
    inset-inline: 0;
    top: 56px;
    background-color: rgba(10, 10, 10, 0.98);
    border-bottom: 1px solid rgba(148, 163, 184, 0.24);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 160ms ease-out, opacity 160ms ease-out, visibility 160ms ease-out;
  }

  .fw-header__nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1rem;
    gap: 0.35rem;
  }

  .fw-header__nav-link {
    width: 100%;
    padding-block: 0.55rem;
    font-size: 0.9rem;
  }

  .fw-header__nav-item--highlight .fw-header__nav-link {
    justify-content: center;
  }

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

  body.fw-header--nav-open {
    overflow: hidden;
  }
}

@media (min-width: 769px) {
  .fw-header__nav {
    display: block;
  }
}

/* High contrast focus for keyboard users (relies on base.css for :focus-visible reset) */

.fw-header__nav-link:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 4px;
}
