/* Header styles for Fresh Petal Store */

.fps-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffffd9;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

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

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

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

.fps-header__logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #ffc7de 0, #f8a7c9 35%, #f0749b 70%, #f06374 100%);
  position: relative;
  box-shadow: 0 6px 14px rgba(240, 99, 116, 0.35);
}

.fps-header__logo-mark::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: inherit;
  background: conic-gradient(from 140deg, #ffffff 0, #ffeef6 40%, #f8b6d1 65%, #ffffff 100%);
  mix-blend-mode: screen;
  opacity: 0.75;
}

.fps-header__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.fps-header__brand-name {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #2a1b23;
}

.fps-header__brand-tagline {
  font-family: "Work Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.75rem;
  color: #7a6470;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Navigation */

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

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

.fps-header__nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-family: "Work Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #4b3742;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.fps-header__nav-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(240, 99, 116, 0.25);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.fps-header__nav-link:hover,
.fps-header__nav-link:focus-visible {
  background-color: rgba(240, 99, 116, 0.08);
  color: #e05572;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.fps-header__nav-link:hover::after,
.fps-header__nav-link:focus-visible::after {
  opacity: 1;
  transform: scale(1);
}

.fps-header__nav-link:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

/* Mobile toggle */

.fps-header__toggle {
  display: none;
  position: relative;
  z-index: 1001;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #ffffff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.fps-header__toggle:focus-visible {
  outline: 2px solid #f06374;
  outline-offset: 2px;
}

.fps-header__toggle-bar {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #2a1b23;
  transition: transform 0.18s ease, opacity 0.18s ease, background-color 0.18s ease;
}

.fps-header__toggle-bar + .fps-header__toggle-bar {
  margin-top: 4px;
}

/* Mobile layout */

@media (max-width: 768px) {
  .fps-header__inner {
    padding: 0.7rem 1rem;
  }

  .fps-header__brand-name {
    font-size: 1.1rem;
  }

  .fps-header__brand-tagline {
    display: none;
  }

  .fps-header__toggle {
    display: inline-flex;
    flex-direction: column;
  }

  .fps-header__nav {
    position: fixed;
    inset: 0;
    top: 64px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  }

  .fps-header__nav-list {
    flex-direction: column;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.25rem 1.75rem;
    gap: 0.25rem;
    background-color: #fff;
  }

  .fps-header__nav-link {
    justify-content: space-between;
    padding: 0.75rem 1rem;
    font-size: 0.98rem;
  }

  .fps-header__nav-link::before {
    content: "";
  }

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

  .fps-header--nav-open .fps-header__toggle-bar:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
  }

  .fps-header--nav-open .fps-header__toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .fps-header--nav-open .fps-header__toggle-bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
  }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  .fps-header,
  .fps-header * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
