@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Caveat:wght@700&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --magic-blue: #9fe4ff;
  --deep-blue: #7ed0ff;
  --treasure-gold: #f6c85f;
  --rose-spark: #ff6fae;
  --mint-spark: #7ee2a8;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: #d7e6f2;
  background: #0d1117;
  overflow-x: hidden;
}

.container {
  width: 92%;
  max-width: 1120px;
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 12, 18, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(246, 200, 95, 0.1);
}

.header-inner {
  min-height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand-mark {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #dff8ff;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-shadow: 0 0 18px rgba(246, 200, 95, 0.12);
}

nav {
  flex-grow: 1;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 0.8rem;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}

.nav-list a {
  color: #c9dbea;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--treasure-gold);
  text-shadow: 0 0 14px rgba(246, 200, 95, 0.22);
}

.ebay-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0.28rem 0.55rem !important;
  border: 1px solid rgba(246, 200, 95, 0.24) !important;
  border-radius: 999px;
  background: rgba(19, 30, 42, 0.72) !important;
  color: var(--treasure-gold) !important;
  text-shadow: 0 0 12px rgba(246, 200, 95, 0.18);
}

.ebay-link img {
  display: none;
}

.ebay-link:hover,
.ebay-link:focus-visible {
  color: #08121b !important;
  background: linear-gradient(135deg, var(--treasure-gold), var(--magic-blue) 76%) !important;
}

section {
  padding: 4rem 0;
}

.hero {
  text-align: center;
  background:
    radial-gradient(circle at 72% 18%, rgba(246, 200, 95, 0.1), transparent 34%),
    radial-gradient(circle at 16% 76%, rgba(255, 111, 174, 0.07), transparent 34%),
    radial-gradient(circle at top, rgba(88, 182, 255, 0.16), transparent 46%),
    linear-gradient(to bottom, #0f1722, #0b1017);
}

.hero-inner {
  max-width: 760px;
}

.hero-title {
  margin-bottom: 1rem;
}

.hero-title-main {
  display: block;
  font-family: 'Caveat', cursive;
  font-size: clamp(4.2rem, 12vw, 7rem);
  font-weight: 700;
  color: #bdefff;
  text-shadow:
    0 0 24px rgba(126, 220, 255, 0.16),
    0 0 38px rgba(246, 200, 95, 0.12);
  letter-spacing: 0.01em;
  line-height: 0.95;
}

.hero p {
  color: #a9c4d8;
  margin: 1.5rem auto 0;
  max-width: 640px;
  font-size: clamp(1rem, 3.6vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
  font-weight: 800;
  text-decoration: none;
}

.primary-action {
  color: #08121b;
  background: linear-gradient(135deg, var(--treasure-gold), var(--magic-blue) 76%);
  box-shadow:
    0 14px 34px rgba(91, 190, 255, 0.2),
    0 0 24px rgba(246, 200, 95, 0.16);
}

.secondary-action {
  color: #dff6ff;
  border: 1px solid rgba(246, 200, 95, 0.26);
  background: rgba(19, 30, 42, 0.72);
}

.products-section {
  background:
    radial-gradient(circle at 82% 10%, rgba(246, 200, 95, 0.08), transparent 28%),
    radial-gradient(circle at 12% 72%, rgba(126, 226, 168, 0.06), transparent 30%),
    radial-gradient(circle at 50% 18%, rgba(88, 182, 255, 0.14), transparent 34%),
    #111827;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 2.5rem 0 4rem;
}

.home-backpack-section {
  min-height: min(72vh, 680px);
  display: grid;
  align-items: center;
  padding: 1.75rem 0 2rem;
}

.backpack-gate {
  text-align: center;
  padding: 0.5rem 0 1.5rem;
}

.backpack-instruction {
  color: #dff6ff;
  font-weight: 800;
  font-size: clamp(1.18rem, 3.8vw, 1.62rem);
  letter-spacing: 0.01em;
  margin: 0 auto 0.65rem;
  text-shadow:
    0 0 24px rgba(126, 220, 255, 0.22),
    0 0 22px rgba(246, 200, 95, 0.1);
}

.backpack-button {
  position: relative;
  display: inline-block;
  border: none;
  background: transparent;
  cursor: pointer;
  isolation: isolate;
  padding: 0.25rem;
  text-decoration: none;
}

.backpack-button::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(246,200,95,.24), rgba(120,220,255,.38) 32%, rgba(120,220,255,.10) 50%, rgba(120,220,255,0) 72%);
  filter: blur(22px);
  animation: backpackPulse 4.8s ease-in-out infinite;
  z-index: -1;
}

.backpack-button::after {
  content: "";
  position: absolute;
  inset: -8%;
  background:
    radial-gradient(circle at 42% 16%, rgba(246,200,95,.16), transparent 13%),
    radial-gradient(circle at 25% 22%, rgba(170,240,255,.16), transparent 14%),
    radial-gradient(circle at 78% 30%, rgba(130,210,255,.10), transparent 12%),
    radial-gradient(circle at 70% 80%, rgba(255,111,174,.09), transparent 16%);
  filter: blur(12px);
  opacity: .95;
  animation: ambientDrift 8s ease-in-out infinite;
  z-index: -2;
  pointer-events: none;
}

.backpack-button img {
  width: min(96vw, 598px);
  max-height: 621px;
  object-fit: contain;
  animation: backpackFloat 5.8s ease-in-out infinite;
  filter:
    drop-shadow(0 24px 42px rgba(0,0,0,.32))
    drop-shadow(0 0 42px rgba(110,210,255,.34))
    drop-shadow(0 0 18px rgba(246,200,95,.16));
}

.tap-pointer {
  position: absolute;
  top: 22%;
  right: -7%;
  width: 150px;
  height: 150px;
  transform: rotate(-18deg);
  transform-origin: 70% 70%;
  animation: tapNudge 2.4s ease-in-out infinite;
  pointer-events: none;
  z-index: 4;
}

.tap-finger {
  position: absolute;
  right: 45px;
  top: 8px;
  width: 28px;
  height: 96px;
  border: 2px solid rgba(218, 247, 255, 0.92);
  border-radius: 999px 999px 15px 15px;
  background: linear-gradient(160deg, rgba(235,248,255,0.95), rgba(142,220,255,0.18));
  box-shadow:
    0 12px 28px rgba(0,0,0,.24),
    0 0 20px rgba(120,220,255,.18);
  transform: rotate(34deg);
}

.tap-finger::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 7px;
  width: 12px;
  height: 10px;
  border-top: 2px solid rgba(8,18,27,0.34);
  border-radius: 50%;
}

.tap-finger::after {
  content: "";
  position: absolute;
  left: 5px;
  bottom: 17px;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: rgba(8,18,27,0.24);
  box-shadow: 0 9px 0 rgba(8,18,27,0.18);
}

.tap-ring {
  position: absolute;
  right: 74px;
  top: 93px;
  width: 38px;
  height: 38px;
  border: 2px solid rgba(191, 242, 255, 0.78);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(120,220,255,.26);
  animation: tapRipple 2.4s ease-out infinite;
}

.open-spark {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff7c4, var(--treasure-gold) 38%, var(--magic-blue) 76%);
  box-shadow:
    0 0 18px rgba(159, 228, 255, 0.9),
    0 0 18px rgba(246, 200, 95, 0.42);
  opacity: 0;
  pointer-events: none;
  z-index: 4;
}

.spark-one {
  --spark-x: -36px;
  --spark-y: -42px;
  top: 24%;
  left: 26%;
}

.spark-two {
  --spark-x: 44px;
  --spark-y: -26px;
  top: 44%;
  right: 18%;
}

.spark-three {
  --spark-x: 10px;
  --spark-y: 42px;
  bottom: 22%;
  left: 48%;
}

.backpack-gate.is-opening .backpack-button img {
  animation: backpackOpen 0.72s ease forwards;
}

.backpack-gate.is-opening .backpack-button::before {
  animation: backpackPortal 0.72s ease forwards;
}

.backpack-gate.is-opening .open-spark {
  animation: sparkPop 0.62s ease forwards;
}

.backpack-gate.is-opening .spark-two {
  animation-delay: 0.08s;
}

.backpack-gate.is-opening .spark-three {
  animation-delay: 0.16s;
}

.backpack-gate.opened {
  display: none;
}

.shop-interface {
  display: none;
}

.shop-interface.is-visible {
  display: block;
  animation: fadeRise 0.35s ease forwards;
}

.trust-strip {
  margin: 0 auto 2rem;
  padding: 0.8rem 1.1rem;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  background: rgba(19, 30, 42, 0.86);
  border: 1px solid rgba(246,200,95,0.18);
  color: #dce9f4;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
  box-shadow:
    0 10px 30px rgba(0,0,0,.16),
    0 0 24px rgba(246,200,95,.06);
}

.trust-strip span {
  color: var(--treasure-gold);
}

.trust-strip a {
  color: var(--magic-blue);
  text-decoration: none;
  font-weight: 800;
}

.trust-strip a:hover,
.trust-strip a:focus-visible {
  color: var(--treasure-gold);
}

.categories-page {
  min-height: calc(100vh - 78px);
  padding: 3rem 0 4rem;
}

.category-intro {
  text-align: center;
  margin: 0 auto 1.8rem;
  max-width: 720px;
}

.category-intro h2 {
  color: #bdefff;
  font-family: 'Caveat', cursive;
  font-size: clamp(3.6rem, 11vw, 6.6rem);
  font-weight: 700;
  line-height: 0.9;
  margin-bottom: 0.75rem;
  text-shadow:
    0 0 24px rgba(126, 220, 255, 0.18),
    0 0 36px rgba(246, 200, 95, 0.12);
}

.product-panel h2 {
  color: #eef8ff;
  font-size: clamp(2rem, 7vw, 3.5rem);
  line-height: 1;
  margin-bottom: 0.7rem;
}

.category-intro p,
.section-note {
  color: #abc6da;
  font-size: clamp(1rem, 3.4vw, 1.25rem);
}

.category-showcase {
  --wheel-size: min(88vw, 760px);
  --wheel-radius: calc(var(--wheel-size) * 0.38);
  --beam-angle: 0deg;
  position: relative;
  width: var(--wheel-size);
  height: var(--wheel-size);
  max-width: 100%;
  margin: 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(246, 200, 95, 0.09), transparent 23%),
    radial-gradient(circle at 72% 70%, rgba(255, 111, 174, 0.055), transparent 26%),
    radial-gradient(circle at 50% 50%, rgba(159, 228, 255, 0.13), transparent 22%),
    radial-gradient(circle at 50% 50%, transparent 47%, rgba(159, 228, 255, 0.08) 48%, transparent 50%),
    radial-gradient(circle at 50% 50%, transparent 65%, rgba(246,200,95,0.11) 66%, transparent 68%);
}

.category-showcase::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--wheel-radius);
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, rgba(246, 200, 95, 0.66), rgba(159, 228, 255, 0.22), transparent);
  box-shadow:
    0 0 22px rgba(126, 220, 255, 0.22),
    0 0 18px rgba(246, 200, 95, 0.16);
  opacity: 0;
  transform: rotate(var(--beam-angle)) translateX(34px) translateY(-50%);
  transform-origin: left center;
  transition: opacity 0.18s ease, transform 0.22s ease;
  pointer-events: none;
  z-index: 1;
}

.category-showcase.has-active-category::before {
  opacity: 0.72;
}

.category-wheel-center {
  --card-transform: translate(-50%, -50%);
  appearance: none;
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(34vw, 210px);
  aspect-ratio: 1;
  transform: var(--card-transform);
  display: grid;
  place-items: center;
  gap: 0.35rem;
  text-align: center;
  border: 0;
  background: transparent;
  box-shadow:
    0 20px 48px rgba(0,0,0,0.35),
    0 0 40px rgba(91, 190, 255, 0.16),
    0 0 26px rgba(246, 200, 95, 0.08);
  cursor: pointer;
  color: #effbff;
  font: inherit;
  z-index: 3;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.category-wheel-center::before {
  content: "";
  position: absolute;
  inset: 15% 12% 6%;
  border-radius: 48% 48% 34% 34%;
  background:
    radial-gradient(circle at 65% 20%, rgba(246,200,95,0.18), transparent 18%),
    radial-gradient(circle at 50% 14%, rgba(255,255,255,0.24), transparent 14%),
    linear-gradient(145deg, rgba(28,44,64,0.94), rgba(9,16,27,0.98));
  border: 1px solid rgba(246, 200, 95, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    inset 0 -12px 28px rgba(6,12,22,0.28);
  z-index: -1;
}

.category-wheel-center::after {
  content: "";
  position: absolute;
  top: 6%;
  left: 31%;
  width: 38%;
  height: 24%;
  border: 2px solid rgba(159, 228, 255, 0.48);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  z-index: -2;
}

.category-center-backpack {
  width: 58%;
  max-width: 132px;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.36)) drop-shadow(0 0 20px rgba(110,210,255,.22));
  pointer-events: none;
}

.category-wheel-title {
  display: block;
  margin-top: -0.1rem;
  padding: 0 0.7rem;
  font-family: 'Caveat', cursive;
  font-size: clamp(1.45rem, 3.7vw, 2.05rem);
  line-height: 0.95;
  color: #bdefff;
  text-shadow:
    0 0 16px rgba(126, 220, 255, 0.22),
    0 0 18px rgba(246, 200, 95, 0.12);
}

.category-wheel-center .category-count {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  transform: translateY(-0.12rem);
}

.category-wheel-center small {
  display: block;
  color: #abc6da;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.category-wheel-center:hover,
.category-wheel-center:focus-visible {
  transform: var(--card-transform) scale(1.045);
  box-shadow:
    0 24px 54px rgba(0,0,0,0.4),
    0 0 58px rgba(110,210,255,0.26),
    0 0 30px rgba(246,200,95,0.12);
  outline: none;
}

.category-card {
  --angle: 0deg;
  --reverse-angle: 0deg;
  --card-transform: translate(-50%, -50%) rotate(var(--angle)) translate(var(--wheel-radius)) rotate(var(--reverse-angle));
  appearance: none;
  position: absolute;
  top: 50%;
  left: 50%;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(246, 200, 95, 0.16);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.055), rgba(255,255,255,0.01) 32%, rgba(246,200,95,0.045) 58%, rgba(255,111,174,0.038)),
    radial-gradient(circle at 18% 14%, rgba(158, 232, 255, 0.16), transparent 34%),
    radial-gradient(circle at 88% 90%, rgba(246, 200, 95, 0.10), transparent 36%),
    linear-gradient(145deg, rgba(25,39,58,0.84), rgba(12,20,32,0.94));
  color: #e7f7ff;
  border-radius: 18px;
  padding: 1rem;
  width: clamp(145px, 19vw, 176px);
  min-height: 138px;
  text-align: center;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(126,208,255,0.05),
    0 16px 38px rgba(0,0,0,0.28),
    0 0 24px rgba(91, 190, 255, 0.055);
  backdrop-filter: blur(10px);
  transform: var(--card-transform);
  z-index: 2;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, background-position 0.24s ease;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.08) 32%, rgba(147,225,255,0.05) 48%, transparent 68%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.028) 0 1px, transparent 1px 14px);
  opacity: 0.42;
  transform: translateX(-8%);
  transition: opacity 0.24s ease, transform 0.6s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 23px;
  border: 1px solid rgba(255,255,255,0.045);
  pointer-events: none;
}

.category-card:hover,
.category-card:focus-visible {
  transform: var(--card-transform) scale(1.055);
  border-color: rgba(246, 200, 95, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 -1px 0 rgba(126,208,255,0.08),
    0 22px 52px rgba(0,0,0,0.36),
    0 0 34px rgba(110,210,255,0.16),
    0 0 22px rgba(246,200,95,0.1);
  outline: none;
}

.category-card:hover::before,
.category-card:focus-visible::before {
  opacity: 0.68;
  transform: translateX(5%);
}

.category-spark {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff7c4, var(--treasure-gold) 38%, var(--magic-blue) 76%);
  box-shadow:
    0 0 18px rgba(159, 228, 255, 0.9),
    0 0 18px rgba(246, 200, 95, 0.42);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}

.category-spark-one {
  --spark-x: -32px;
  --spark-y: -38px;
  top: 24%;
  left: 24%;
}

.category-spark-two {
  --spark-x: 38px;
  --spark-y: -24px;
  top: 38%;
  right: 18%;
}

.category-spark-three {
  --spark-x: 6px;
  --spark-y: 36px;
  bottom: 20%;
  left: 50%;
}

.category-showcase.is-opening::after {
  content: "";
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 200, 95, 0.24), rgba(159, 228, 255, 0.18) 38%, transparent 70%);
  filter: blur(18px);
  animation: categoryPortal 0.62s ease forwards;
  pointer-events: none;
  z-index: 1;
}

.category-open-effect {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(44vw, 330px);
  transform: translate(-50%, -50%) scale(0.75);
  opacity: 0;
  pointer-events: none;
  z-index: 8;
}

.category-open-effect::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(246,200,95,.24), rgba(120,220,255,.38) 32%, rgba(120,220,255,.10) 50%, rgba(120,220,255,0) 72%);
  filter: blur(22px);
  z-index: -1;
}

.category-open-effect img {
  display: block;
  width: 100%;
  filter:
    drop-shadow(0 24px 42px rgba(0,0,0,.32))
    drop-shadow(0 0 42px rgba(110,210,255,.34))
    drop-shadow(0 0 18px rgba(246,200,95,.16));
}

.category-showcase.is-opening .category-open-effect {
  opacity: 1;
}

.category-showcase.is-opening .category-open-effect img {
  animation: backpackOpen 0.72s ease forwards;
}

.category-showcase.is-opening .category-open-effect::before {
  animation: backpackPortal 0.72s ease forwards;
}

.category-showcase.is-opening .category-open-effect .open-spark {
  animation: sparkPop 0.62s ease forwards;
}

.category-showcase.is-opening .category-open-effect .spark-two {
  animation-delay: 0.08s;
}

.category-showcase.is-opening .category-open-effect .spark-three {
  animation-delay: 0.16s;
}

.category-showcase.is-opening .is-selected {
  animation: categoryOpen 0.72s ease forwards;
  z-index: 6;
}

.category-showcase.is-opening .is-selected .category-spark {
  animation: sparkPop 0.62s ease forwards;
}

.category-showcase.is-opening .is-selected .category-spark-two {
  animation-delay: 0.08s;
}

.category-showcase.is-opening .is-selected .category-spark-three {
  animation-delay: 0.16s;
}

.category-emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0 auto 0.58rem;
  color: #bff2ff;
  position: relative;
}

.category-card:nth-child(3n + 1) .category-emblem {
  color: #bff2ff;
}

.category-card:nth-child(3n + 2) .category-emblem {
  color: #f8d98a;
}

.category-card:nth-child(3n + 3) .category-emblem {
  color: var(--mint-spark);
}

.category-emblem::before,
.category-emblem::after {
  content: "";
  position: absolute;
  border-color: currentColor;
}

.category-icon-all::before {
  width: 8px;
  height: 8px;
  background: currentColor;
  box-shadow: 17px 0 0 currentColor, 8px 16px 0 currentColor, 24px 18px 0 currentColor;
  border-radius: 50%;
}

.category-icon-clothing::before {
  width: 24px;
  height: 24px;
  border: 2px solid currentColor;
  border-radius: 7px 7px 4px 4px;
}

.category-icon-clothing::after {
  width: 30px;
  height: 12px;
  border-top: 2px solid currentColor;
  top: 9px;
  left: 6px;
}

.category-icon-footwear::before {
  width: 30px;
  height: 15px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 4px 4px 14px 14px;
  transform: rotate(-8deg);
}

.category-icon-accessories::before {
  width: 25px;
  height: 21px;
  border: 2px solid currentColor;
  border-radius: 5px;
  top: 14px;
}

.category-icon-accessories::after {
  width: 14px;
  height: 10px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  top: 7px;
}

.category-icon-kitchen::before {
  width: 24px;
  height: 24px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.category-icon-kitchen::after {
  width: 10px;
  height: 16px;
  border: 2px solid currentColor;
  border-left: 0;
  border-radius: 0 10px 10px 0;
  right: 1px;
}

.category-icon-home::before {
  width: 24px;
  height: 20px;
  border: 2px solid currentColor;
  border-top: 0;
  top: 18px;
}

.category-icon-home::after {
  width: 22px;
  height: 22px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  top: 7px;
}

.category-icon-toys::before {
  width: 25px;
  height: 25px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.category-icon-toys::after {
  width: 16px;
  height: 7px;
  border-bottom: 2px solid currentColor;
  border-radius: 0 0 12px 12px;
  top: 21px;
}

.category-icon-crafts::before {
  width: 28px;
  height: 2px;
  background: currentColor;
  transform: rotate(-32deg);
}

.category-icon-crafts::after {
  width: 28px;
  height: 2px;
  background: currentColor;
  transform: rotate(32deg);
}

.category-icon-books::before {
  width: 28px;
  height: 24px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.category-icon-books::after {
  height: 24px;
  border-left: 2px solid currentColor;
}

.category-icon-collectibles::before {
  width: 25px;
  height: 25px;
  border: 2px solid currentColor;
  transform: rotate(45deg);
}

.category-icon-other::before {
  width: 27px;
  height: 27px;
  border: 2px dashed currentColor;
  border-radius: 50%;
}

.category-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1em;
  margin-left: 0.35rem;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  color: #08121b;
  background: linear-gradient(135deg, var(--treasure-gold), var(--magic-blue) 78%);
  box-shadow: 0 0 12px rgba(246, 200, 95, 0.16);
  font-size: 0.78rem;
  vertical-align: middle;
}

.category-title {
  display: block;
  color: #f3fbff;
  font-size: 0.98rem;
  font-weight: 800;
  margin-bottom: 0.42rem;
  letter-spacing: 0.01em;
}

.category-description {
  display: block;
  color: #b7ccdc;
  font-size: 0.78rem;
  line-height: 1.35;
  max-width: 22ch;
  margin: 0 auto;
}

.product-panel {
  max-width: 1120px;
  margin: 0 auto;
}

.product-panel[hidden],
.category-intro[hidden],
.category-showcase[hidden] {
  display: none !important;
}

.back-link {
  appearance: none;
  border: 1px solid rgba(246,200,95,0.24);
  background: rgba(19,30,42,0.86);
  color: #dff4ff;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  cursor: pointer;
}

.products-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px) auto;
  align-items: end;
  gap: 0.8rem;
  margin: 1rem 0 0.7rem;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--treasure-gold);
  box-shadow: 0 0 18px rgba(246, 200, 95, 0.12);
}

.inventory-search,
.inventory-sort {
  display: grid;
  gap: 0.35rem;
  color: #abc6da;
  font-size: 0.82rem;
  font-weight: 800;
}

.inventory-search input,
.inventory-sort select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(246,200,95,0.18);
  border-radius: 12px;
  padding: 0 0.8rem;
  background: rgba(10, 16, 24, 0.84);
  color: #eef8ff;
  font: inherit;
}

.inventory-search input:focus,
.inventory-sort select:focus {
  outline: none;
  border-color: rgba(246, 200, 95, 0.45);
  box-shadow: 0 0 0 3px rgba(246, 200, 95, 0.12);
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  white-space: nowrap;
  color: var(--treasure-gold);
  font-weight: 800;
  text-decoration: none;
  text-shadow: 0 0 12px rgba(246, 200, 95, 0.22);
}

.view-all-link:hover {
  color: #dffbff;
}

.result-summary {
  min-height: 1.5rem;
  margin-bottom: 1rem;
  color: #abc6da;
  font-weight: 700;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.product-status {
  grid-column: 1 / -1;
  color: #abc6da;
  background: rgba(19,30,42,0.82);
  border: 1px solid rgba(126,208,255,0.12);
  border-radius: 18px;
  padding: 1.2rem;
  text-align: center;
}

.product-card {
  background:
    radial-gradient(circle at 12% 8%, rgba(246, 200, 95, 0.06), transparent 32%),
    linear-gradient(145deg, #182230, #131d2a);
  border: 1px solid rgba(246,200,95,0.1);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
  padding: 0.72rem;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(246, 200, 95, 0.24);
  box-shadow:
    0 16px 38px rgba(0,0,0,0.28),
    0 0 18px rgba(246,200,95,0.08);
}

.product-image {
  display: grid;
  aspect-ratio: 1 / 1;
  place-items: center;
  background: #eef3f7;
  border-radius: 13px;
  overflow: hidden;
  text-decoration: none;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-image-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 1rem;
  color: #28465c;
  font-weight: 800;
}

.product-card h3 {
  color: #eef8ff;
  font-size: 0.95rem;
  line-height: 1.28;
  margin: 0.65rem 0 0.35rem;
}

.product-meta {
  width: fit-content;
  margin: 0.7rem auto 0;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  background: rgba(246,200,95,0.1);
  color: #f8d98a;
  font-size: 0.74rem;
  font-weight: 800;
}

.product-card .price {
  color: var(--treasure-gold);
  font-weight: 800;
  text-shadow: 0 0 12px rgba(246, 200, 95, 0.2);
}

.product-cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 36px;
  margin-top: 0.65rem;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  color: #08121b;
  background: linear-gradient(135deg, var(--treasure-gold), var(--magic-blue) 76%);
  font-size: 0.8rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(246, 200, 95, 0.13);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-cta:hover,
.product-cta:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    0 10px 22px rgba(246, 200, 95, 0.18),
    0 0 16px rgba(126, 208, 255, 0.14);
}

.review-carousel-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  margin: 2rem auto 0;
  padding: clamp(1rem, 3vw, 1.5rem);
  max-width: 860px;
  border: 1px solid rgba(246, 200, 95, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 8%, rgba(246, 200, 95, 0.08), transparent 30%),
    rgba(19, 30, 42, 0.82);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.24),
    0 0 26px rgba(246, 200, 95, 0.07);
}

.review-carousel-content blockquote {
  color: #eef8ff;
  text-shadow: 0 0 18px rgba(126, 208, 255, 0.13);
}

#reviewSource {
  color: #f8d98a;
  font-weight: 800;
}

.review-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(246, 200, 95, 0.28);
  border-radius: 999px;
  background: rgba(10, 16, 24, 0.84);
  color: var(--treasure-gold);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(246, 200, 95, 0.08);
}

.review-arrow:hover,
.review-arrow:focus-visible {
  color: #08121b;
  background: linear-gradient(135deg, var(--treasure-gold), var(--magic-blue) 76%);
  outline: none;
}

footer {
  background: #0a0f15;
  color: #89a7bc;
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid rgba(246, 200, 95, 0.08);
}

@keyframes fadeRise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes backpackPulse {
  0%,100% { opacity:.55; transform: translate(-50%, -50%) scale(.95); }
  50% { opacity:1; transform: translate(-50%, -50%) scale(1.16); }
}

@keyframes backpackFloat {
  0%,100% { transform: translateY(0px) rotate(-0.4deg) scale(1); }
  25% { transform: translateY(-8px) rotate(0.3deg) scale(1.01); }
  50% { transform: translateY(-16px) rotate(-0.3deg) scale(1.03); }
  75% { transform: translateY(-7px) rotate(0.25deg) scale(1.015); }
}

@keyframes backpackOpen {
  0% { transform: translateY(0) rotate(-0.4deg) scale(1); opacity: 1; }
  42% { transform: translateY(-12px) rotate(1.6deg) scale(1.06); opacity: 1; }
  100% { transform: translateY(-18px) rotate(-1deg) scale(0.9); opacity: 0; }
}

@keyframes categoryOpen {
  0% { opacity: 1; transform: var(--card-transform) scale(1); }
  42% { opacity: 1; transform: var(--card-transform) scale(1.12); }
  100% { opacity: 0.22; transform: var(--card-transform) scale(0.9); }
}

@keyframes categoryPortal {
  0% { opacity: 0.35; transform: scale(0.72); }
  100% { opacity: 1; transform: scale(1.65); }
}

@keyframes backpackPortal {
  0% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1.85); }
}

@keyframes sparkPop {
  0% { opacity: 0; transform: translate(0, 0) scale(0.35); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--spark-x, 18px), var(--spark-y, -34px)) scale(1.4); }
}

@keyframes ambientDrift {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(0,-12px,0) scale(1.04); }
}

@keyframes tapNudge {
  0%, 100% { transform: rotate(-18deg) translate3d(0, 0, 0); }
  48% { transform: rotate(-18deg) translate3d(-8px, 10px, 0); }
  62% { transform: rotate(-18deg) translate3d(-3px, 4px, 0); }
}

@keyframes tapRipple {
  0%, 38% { opacity: 0; transform: scale(0.55); }
  48% { opacity: 0.95; transform: scale(0.72); }
  100% { opacity: 0; transform: scale(1.7); }
}

@keyframes wheelDrift {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: no-preference) {
  .category-card {
    animation: categoryDrift 9s ease-in-out infinite;
  }

  .category-card:nth-child(2n) {
    animation-delay: -2.4s;
  }

  .category-card:nth-child(3n) {
    animation-delay: -4.6s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .backpack-button::before,
  .backpack-button::after,
  .backpack-button img,
  .tap-pointer,
  .tap-ring,
  .category-showcase::before,
  .category-showcase.is-opening::after,
  .category-showcase.is-opening .is-selected,
  .category-showcase.is-opening .is-selected .category-spark,
  .category-showcase.is-opening .category-open-effect img,
  .category-showcase.is-opening .category-open-effect::before,
  .category-showcase.is-opening .category-open-effect .open-spark {
    animation: none;
  }
}

@media (hover: none) {
  .category-showcase::before {
    display: none;
  }
}

@keyframes categoryDrift {
  0%, 100% { background-position: 0% 0%, 0% 0%, 100% 100%, 0% 0%; }
  50% { background-position: 8% 0%, 6% 4%, 94% 96%, 0% 0%; }
}

@media (max-width: 768px) {
  .container {
    width: 92%;
  }

  .header-inner {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 0 1rem;
  }

  nav {
    width: 100%;
  }

  .nav-list {
    justify-content: center;
    gap: 0.45rem;
  }

  .nav-list a {
    display: inline-flex;
    border: 1px solid rgba(126,208,255,0.16);
    border-radius: 999px;
    padding: 0.35rem 0.58rem;
    background: rgba(21,33,50,0.7);
    font-size: 0.78rem;
  }

  section {
    padding: 3rem 0;
  }

  .hero-title-main {
    font-size: clamp(4rem, 17vw, 5.5rem);
  }

  .home-backpack-section {
    min-height: 62vh;
    padding-top: 1.5rem;
  }

  .backpack-button img {
    width: min(98vw, 575px);
  }

  .tap-pointer {
    top: 20%;
    right: 2%;
    width: 112px;
    height: 112px;
  }

  .tap-finger {
    right: 32px;
    top: 5px;
    width: 22px;
    height: 76px;
  }

  .tap-ring {
    right: 52px;
    top: 72px;
    width: 30px;
    height: 30px;
  }

  .category-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    width: 100%;
    height: auto;
    border-radius: 0;
    background: none;
  }

  .category-showcase::before {
    display: none;
  }

  .category-wheel-center {
    --card-transform: none;
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: auto;
    min-height: 126px;
    grid-template-columns: auto 1fr;
    justify-items: start;
    padding: 1rem 1.15rem;
    transform: var(--card-transform);
    border-radius: 18px;
    text-align: left;
  }

  .category-wheel-center:hover,
  .category-wheel-center:focus-visible {
    transform: translateY(-3px);
  }

  .category-wheel-center::after {
    display: none;
  }

  .category-center-backpack {
    grid-row: 1 / span 2;
    width: 78px;
    margin-right: 0.85rem;
  }

  .category-wheel-title {
    margin: 0;
    padding: 0;
  }

  .category-wheel-center small {
    justify-self: start;
  }

  .category-card {
    --card-transform: none;
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    min-height: auto;
    padding: 1.15rem;
    text-align: left;
  }

  .category-card:hover,
  .category-card:focus-visible {
    transform: translateY(-3px);
  }

  .category-emblem {
    margin-left: 0;
  }

  .category-description {
    max-width: none;
    margin: 0;
    font-size: 0.9rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .products-toolbar {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    border-radius: 20px;
    line-height: 1.45;
  }

  .review-carousel-card {
    grid-template-columns: 1fr 1fr;
  }

  .review-carousel-content {
    grid-column: 1 / -1;
    order: -1;
  }

  .review-arrow {
    justify-self: center;
  }
}

@media (max-width: 430px) {
  .products-grid {
    gap: 0.75rem;
  }

  .product-card h3 {
    font-size: 0.86rem;
  }
}
