:root {
  --bg-main: #05060a;
  --bg-elevated: #0e1118;
  --bg-elevated-soft: rgba(16, 20, 30, 0.9);
  --accent: #e1c46b;
  --accent-soft: rgba(225, 196, 107, 0.18);
  --accent-strong: #f0d273;
  --accent-red: #ff4b5c;
  --text-main: #f5f5f7;
  --text-muted: #9a9fb5;
  --text-soft: #70758a;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --shadow-soft: 0 30px 80px rgba(0, 0, 0, 0.75);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --blur-bg: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at 0% 0%, #171a26 0, #05060a 45%, #020308 100%);
  color: var(--text-main);
  min-height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
}

.noise-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image: url("https://grainy-gradients.vercel.app/noise.svg");
  opacity: 0.25;
  mix-blend-mode: soft-light;
  z-index: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 5vw;
  backdrop-filter: blur(20px);
  background: linear-gradient(
    to bottom,
    rgba(3, 5, 14, 0.96),
    rgba(3, 5, 14, 0.94),
    rgba(3, 5, 14, 0.86),
    transparent
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(225, 196, 107, 0.6);
  background: radial-gradient(circle at 30% 0%, #3b2b17, #05060a 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent-strong);
  box-shadow: 0 0 40px rgba(225, 196, 107, 0.6);
}

.logo-text h1 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.logo-text p {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  gap: 0.5rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: rgba(10, 13, 22, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-link {
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.nav-link.active,
.nav-link:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-wrapper input {
  width: 210px;
  padding: 0.5rem 2rem 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(7, 9, 16, 0.9);
  color: var(--text-main);
  font-size: 0.85rem;
}

.search-wrapper input::placeholder {
  color: var(--text-soft);
}

.search-icon {
  position: absolute;
  right: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.cart-button {
  border-radius: 999px;
  border: 1px solid rgba(225, 196, 107, 0.5);
  background: radial-gradient(circle at 0 0, #433011, #1a1111 40%, #05060a 100%);
  color: var(--text-main);
  padding: 0.4rem 0.9rem 0.4rem 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  font-size: 0.8rem;
  box-shadow: 0 0 0 1px rgba(225, 196, 107, 0.1), 0 18px 45px rgba(0, 0, 0, 0.8);
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #05060a;
  font-size: 0.7rem;
  font-weight: 600;
}

.page-content {
  position: relative;
  z-index: 1;
  padding: 1.5rem 5vw 4rem;
  max-width: 1240px;
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.3fr);
  gap: 2.5rem;
  padding: 2.7rem 2.2rem;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
  border-radius: 26px;
  background: radial-gradient(circle at 0% 0%, rgba(225, 196, 107, 0.11), transparent 55%),
    radial-gradient(circle at 110% 0%, rgba(133, 91, 255, 0.18), transparent 55%),
    rgba(4, 6, 14, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-soft);
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-tagline {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 520px;
}

.hero-eyebrow {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.hero h2 {
  margin: 0;
  font-size: clamp(1.9rem, 2.4vw, 2.4rem);
  letter-spacing: 0.03em;
}

.hero-subtitle {
  margin: 0.4rem 0 0.8rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.primary-btn,
.ghost-btn {
  border-radius: var(--radius-pill);
  padding: 0.7rem 1.3rem;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.primary-btn {
  background: radial-gradient(circle at 0 0, #f0d273, #e1c46b 30%, #b5853c 100%);
  color: #141108;
  box-shadow: 0 18px 40px rgba(225, 196, 107, 0.45);
}

.ghost-btn {
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.12);
}

.primary-btn:hover {
  filter: brightness(1.08);
}

.ghost-btn:hover {
  border-color: rgba(225, 196, 107, 0.7);
}

.affiliate-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-soft);
  max-width: 440px;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-card {
  width: min(320px, 100%);
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(145deg, rgba(225, 196, 107, 0.7), rgba(75, 50, 128, 0.6));
}

.hero-card-inner {
  border-radius: 21px;
  background: radial-gradient(circle at 10% 0%, #241c1b, #05060a 60%);
  padding: 1.4rem 1.3rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  position: relative;
  overflow: hidden;
}

.hero-card-inner::before {
  content: "";
  position: absolute;
  inset: -30%;
  background-image: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.04), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.02), transparent 55%);
  opacity: 0.4;
  mix-blend-mode: soft-light;
}

.hero-symbol {
  z-index: 1;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(225, 196, 107, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-strong);
  font-size: 1.8rem;
  box-shadow: 0 0 45px rgba(225, 196, 107, 0.65);
}

.hero-card p {
  z-index: 1;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.hero-metadata {
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.badge {
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.72rem;
}

.badge-dark {
  background: rgba(0, 0, 0, 0.7);
}

.badge-level {
  background: rgba(108, 94, 255, 0.22);
  border-color: rgba(108, 94, 255, 0.9);
}

.collection {
  margin-top: 1rem;
}

.collection-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.collection-header h3 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.collection-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}

.product-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 1.1rem 1rem;
  background: linear-gradient(145deg, rgba(13, 17, 26, 0.96), rgba(7, 9, 16, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease,
    background 0.18s ease;
}

.product-image-wrapper {
  position: relative;
  margin: -0.3rem -0.3rem 0.6rem;
  border-radius: calc(var(--radius-lg) - 6px);
  overflow: hidden;
  aspect-ratio: 8 / 3;
  background: radial-gradient(circle at 0 0, rgba(225, 196, 107, 0.2), transparent 60%);
}

.product-image-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0, rgba(0, 0, 0, 0.5), transparent 45%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.9) contrast(1.1);
}

.product-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 0 0, rgba(225, 196, 107, 0.15), transparent 60%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(225, 196, 107, 0.6);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.88);
}

.product-card:hover::before {
  opacity: 1;
}

.product-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.7rem;
}

.product-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.product-name {
  margin: 0;
  font-size: 0.98rem;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: var(--text-soft);
}

.tag {
  padding: 0.12rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.tag-category {
  border-color: rgba(108, 94, 255, 0.7);
  color: #a5a0ff;
}

.tag-difficulty {
  border-color: rgba(225, 196, 107, 0.7);
  color: var(--accent-strong);
}

.product-rating {
  text-align: right;
}

.stars {
  color: var(--accent);
  font-size: 0.82rem;
}

.rating-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-soft);
}

.product-description {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.product-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.product-pricing {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.85rem;
}

.product-price {
  color: var(--accent-strong);
  font-weight: 600;
}

.product-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-soft);
}

.product-details span::before {
  content: "• ";
  margin-right: 0.1rem;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-end;
}

.link-btn {
  border-radius: 999px;
  border: 1px solid rgba(225, 196, 107, 0.7);
  background: radial-gradient(circle at 0 0, #f0d273, #b5853c 80%);
  color: #141108;
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.select-btn {
  border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  background: transparent;
  color: var(--text-muted);
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  cursor: pointer;
}

.select-btn.selected {
  border-style: solid;
  border-color: rgba(225, 196, 107, 0.9);
  color: var(--accent-strong);
  background: rgba(225, 196, 107, 0.1);
}

.empty-state {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: rgba(7, 9, 14, 0.96);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, 100%);
  height: 100vh;
  background: var(--bg-elevated-soft);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  z-index: 50;
  backdrop-filter: blur(var(--blur-bg));
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  padding: 1.1rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.icon-button {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.4);
  color: var(--text-main);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.cart-item {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(7, 9, 16, 0.9);
  padding: 0.7rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.83rem;
}

.cart-item-header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.cart-item-title {
  font-weight: 500;
}

.cart-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  color: var(--text-soft);
  font-size: 0.75rem;
}

.cart-item-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.25rem;
}

.cart-footer {
  padding: 0.9rem 1.1rem 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(to top, rgba(3, 5, 13, 0.9), transparent);
}

.cart-note {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.full-width {
  width: 100%;
  justify-content: center;
}

.backdrop {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 0 0, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.85));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 30;
}

.backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 1.7rem 5vw 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at 50% 0%, rgba(24, 22, 38, 0.95), rgba(3, 4, 10, 0.96));
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.footer-small {
  margin-top: 0.4rem;
  font-size: 0.75rem;
}

@media (max-width: 960px) {
  .site-header {
    flex-wrap: wrap;
    row-gap: 0.8rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.3fr);
    padding: 1.9rem 1.6rem;
  }
}

@media (max-width: 780px) {
  .site-header {
    align-items: flex-start;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .search-wrapper input {
    width: 180px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    justify-content: flex-start;
  }

  .page-content {
    padding-inline: 4vw;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding-inline: 4vw;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .search-wrapper input {
    width: 100%;
  }

  .hero {
    padding: 1.5rem 1.3rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }
}

