﻿/* =========================
   HEADER
========================= */

.ps-header {
  --ps-top-action-border: rgba(70, 142, 207, 0.36);
  --ps-top-action-border-strong: rgba(86, 160, 224, 0.62);
  --ps-top-action-surface: rgba(3, 8, 18, 0.88);
  --ps-top-action-surface-strong: rgba(4, 13, 28, 0.96);
  --ps-top-action-line: rgba(63, 137, 205, 0.78);
  --ps-top-action-line-strong: rgba(88, 167, 229, 0.84);
  --ps-top-action-glow: rgba(42, 119, 190, 0.16);
  --ps-top-action-text: rgba(238, 248, 255, 0.94);
  position: relative;
  top: clamp(8px, 0.9vw, 12px);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--ps-text-soft);
  font-size: 15px;
  line-height: 1;
  padding-top: 2px;
}

.ps-header-left,
.ps-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ps-header-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 8px;
  border: 1px solid var(--ps-top-action-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(21, 47, 78, 0.08) 43%, rgba(0, 0, 0, 0.26)),
    radial-gradient(105% 130% at 50% 0%, rgba(48, 123, 190, 0.15), transparent 66%),
    var(--ps-top-action-surface);
  color: var(--ps-top-action-text);
  cursor: pointer;
  opacity: 1;
  overflow: hidden;
  letter-spacing: 0;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    inset 0 -1px 0 rgba(45, 121, 188, 0.13),
    inset 0 -18px 28px rgba(0, 0, 0, 0.16),
    0 0 0 1px rgba(49, 153, 255, 0.06),
    0 14px 36px rgba(0, 0, 0, 0.32);
  transition:
    color 0.22s ease,
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.ps-header-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(31, 85, 145, 0.18), var(--ps-top-action-line) 16%, var(--ps-top-action-line-strong) 50%, var(--ps-top-action-line) 84%, rgba(31, 85, 145, 0.18)),
    linear-gradient(180deg, rgba(110, 187, 238, 0.12), transparent 42%);
  opacity: 0.82;
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% 1px no-repeat,
    linear-gradient(#000 0 0) bottom / 100% 1px no-repeat;
  mask:
    linear-gradient(#000 0 0) top / 100% 1px no-repeat,
    linear-gradient(#000 0 0) bottom / 100% 1px no-repeat;
  transition: opacity 0.22s ease;
  animation: ps-top-action-edge-idle 11s ease-in-out infinite;
  pointer-events: none;
}

.ps-header-link::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 7px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.13), transparent 36%),
    radial-gradient(80% 100% at 50% 0%, var(--ps-top-action-glow), transparent 64%);
  opacity: 0.18;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  animation: ps-top-action-surface-idle 13s ease-in-out infinite;
}

.ps-header-link > * {
  position: relative;
  z-index: 2;
}

.ps-header-link:hover {
  color: #ffffff;
  transform: translateY(-1px);
  border-color: var(--ps-top-action-border-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.115), rgba(28, 58, 92, 0.11) 43%, rgba(0, 0, 0, 0.22)),
    radial-gradient(105% 130% at 50% 0%, rgba(55, 135, 204, 0.22), transparent 66%),
    var(--ps-top-action-surface-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(78, 180, 255, 0.14),
    inset 0 -18px 28px rgba(0, 0, 0, 0.12),
    0 18px 40px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(74, 157, 224, 0.14),
    0 0 20px rgba(42, 119, 190, 0.1);
}

.ps-header-link:hover::before,
.ps-header-link.is-current::before,
.ps-header-link[aria-expanded='true']::before {
  opacity: 0.98;
  animation: none;
}

.ps-header-link:hover::after,
.ps-header-link.is-current::after,
.ps-header-link[aria-expanded='true']::after {
  opacity: 0.34;
  transform: translateY(-1px);
  animation: none;
}

.ps-header-link.is-current,
.ps-header-link[aria-expanded='true'] {
  color: var(--ps-text);
  border-color: var(--ps-top-action-border-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(28, 62, 98, 0.12) 43%, rgba(0, 0, 0, 0.21)),
    radial-gradient(105% 130% at 50% 0%, rgba(58, 142, 214, 0.24), transparent 66%),
    var(--ps-top-action-surface-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(78, 180, 255, 0.16),
    inset 0 -18px 28px rgba(0, 0, 0, 0.11),
    0 18px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(74, 157, 224, 0.16),
    0 0 24px rgba(42, 119, 190, 0.13);
}

.ps-header-divider {
  display: none;
}

.ps-browse-toggle {
  min-width: clamp(158px, 12.5vw, 196px);
  min-height: 50px;
  padding-inline: 24px;
  border-color: rgba(83, 157, 220, 0.58);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.17),
    inset 0 -1px 0 rgba(68, 154, 220, 0.16),
    0 0 0 1px rgba(54, 132, 205, 0.11),
    0 18px 42px rgba(0, 0, 0, 0.34),
    0 0 22px rgba(42, 119, 190, 0.08);
}

.ps-browse-toggle::before {
  background:
    linear-gradient(90deg, rgba(35, 94, 154, 0.2), rgba(86, 168, 232, 0.9) 18%, rgba(106, 184, 239, 0.92) 50%, rgba(86, 168, 232, 0.9) 82%, rgba(35, 94, 154, 0.2)),
    linear-gradient(180deg, rgba(114, 190, 240, 0.15), transparent 43%);
}

.ps-browse-toggle:hover,
.ps-browse-toggle[aria-expanded='true'] {
  transform: translateY(-1px);
}

.ps-cart-link {
  position: relative;
  gap: 9px;
  min-width: 116px;
}

.ps-cart-link.has-items {
  color: var(--ps-text);
}

.ps-cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 8px;
  border: 1px solid rgba(86, 160, 224, 0.42);
  background:
    linear-gradient(180deg, rgba(72, 146, 214, 0.24), rgba(20, 44, 78, 0.95)),
    rgba(9, 20, 40, 0.96);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 0 1px rgba(74, 157, 224, 0.12),
    0 8px 18px rgba(8, 14, 28, 0.24);
}

.ps-cart-link.is-updating .ps-cart-badge {
  animation: ps-cart-pulse 0.7s ease;
}

@keyframes ps-top-action-edge-idle {
  0%,
  100% {
    opacity: 0.72;
  }

  50% {
    opacity: 0.92;
  }
}

@keyframes ps-top-action-surface-idle {
  0%,
  100% {
    opacity: 0.16;
  }

  50% {
    opacity: 0.28;
  }
}

@media (max-width: 640px) {
  .ps-header {
    gap: 10px;
  }

  .ps-header-left,
  .ps-header-right {
    gap: 8px;
  }

  .ps-header-link {
    min-height: 42px;
    padding-inline: 14px;
    font-size: 13px;
  }

  .ps-browse-toggle {
    min-width: 132px;
    min-height: 44px;
    padding-inline: 14px;
  }

  .ps-cart-link {
    min-width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ps-header-link::before,
  .ps-header-link::after {
    animation: none;
  }
}

@keyframes ps-cart-pulse {
  0% {
    transform: scale(1);
  }

  35% {
    transform: scale(1.18);
  }

  100% {
    transform: scale(1);
  }
}

/* =========================
   HERO
========================= */

.ps-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin-top: -30px !important;
  padding: 0 0 34px;
  text-align: center;
}

@media (max-width: 900px) {
  .ps-hero {
    margin-top: -32px !important;
  }
}

@media (max-width: 640px) {
  .ps-hero {
    margin-top: -24px !important;
  }
}

@keyframes ps-float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }

  100% {
    transform: translateY(0);
  }
}

.ps-logo {
  display: block;
  position: relative;
  left: 0;
  z-index: 2;
  width: min(100%, 548px);
  height: auto;
  margin: 0 auto -28px;
  filter:
    brightness(1.06)
    contrast(1.08)
    saturate(1.02)
    drop-shadow(0 18px 34px rgba(0, 0, 0, 0.34))
    drop-shadow(0 0 34px rgba(143, 183, 255, 0.12));
  transition:
    width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease,
    margin 0.35s ease,
    filter 0.35s ease,
    transform 0.35s ease;
  animation: ps-float 7.2s ease-in-out infinite;
  user-select: none;
  pointer-events: none;
  will-change: transform;
}

.ps-logo-shell {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
}

.ps-logo-shell::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(560px, 66vw);
  height: 116px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(143, 183, 255, 0.18) 0%, rgba(56, 189, 248, 0.1) 28%, rgba(255, 255, 255, 0.03) 54%, transparent 74%);
  transform: translate(-50%, -50%);
  filter: blur(26px);
  opacity: 0.74;
  pointer-events: none;
}

.ps-app.ps-active .ps-logo {
  width: min(100%, 318px);
  margin-bottom: -10px;
  opacity: 0.97;
  filter:
    brightness(1.05)
    contrast(1.07)
    saturate(1.02)
    drop-shadow(0 14px 26px rgba(0, 0, 0, 0.28))
    drop-shadow(0 0 22px rgba(143, 183, 255, 0.1));
  animation-duration: 6.4s;
}

.ps-title {
  position: relative;
  z-index: 2;
  max-width: none;
  margin: 0 auto 16px;
  color: #edf2ff;
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.026em;
  white-space: nowrap;
  text-wrap: nowrap;
  transition:
    opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ps-app.ps-active .ps-title {
  opacity: 0;
  transform: translateY(-8px);
}
