/* ==================================================
   NORLO STORE
================================================== */

.store-section {
  margin: 28px 0 40px;

  padding: 32px;
  border-radius: 32px;

  background: rgba(255, 255, 255, 0.88);

  border: 1px solid rgba(18, 34, 56, 0.08);

  box-shadow:
    0 28px 60px rgba(18, 34, 56, 0.10);
}

.store-section-header {
  margin-bottom: 24px;
}

.store-section-header .eyebrow {
  color: var(--accent-fuel);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.store-section-header h2 {
  margin: 6px 0 8px;

  font-size: 2rem;
  letter-spacing: -0.03em;
}

.store-section-header p {
  margin: 0;
  color: var(--muted);
}

/* Gems */

.gems-card {
  position: relative;
  overflow: hidden;
}

.gems-card::after {
  content: "";

  position: absolute;

  width: 90px;
  height: 90px;

  right: -35px;
  top: -35px;

  border-radius: 50%;

  background: rgba(15, 98, 254, 0.08);
}

.metric-value {
  display: flex;
  align-items: center;
  gap: 7px;
}

.metric-value strong {
  font-size: 1.7rem;
}

.gem-symbol {
  font-size: 1.1rem;
  color: var(--accent-fuel);
  font-weight: 800;
}

/* Categories */

.store-grid {
  display: block;
}

.store-categories {
  display: flex;
  gap: 8px;

  margin-bottom: 18px;

  flex-wrap: wrap;
}

.store-categories button {
  flex: 0 0 auto;

  border-radius: 999px;

  padding: 10px 16px;

  font-size: 0.85rem;
  font-weight: 700;
}

.store-categories button.active-category {
  background: linear-gradient(
    135deg,
    var(--accent-fuel),
    #5c78ff
  );

  color: white;

  border-color: transparent;

  box-shadow:
    0 10px 24px rgba(15, 98, 254, 0.18);
}

/* Products */

.store-products {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 22px;

  margin-top: 20px;
}

.store-item {
  position: relative;

  min-height: 310px;
  padding: 0;

  overflow: hidden;

  display: flex;
  flex-direction: column;

  background: rgba(255, 255, 255, 0.98);

  border: 1px solid rgba(18, 34, 56, 0.08);
  border-radius: 24px;

  box-shadow:
    0 12px 30px rgba(18, 34, 56, 0.06);

  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.store-item:hover {
  transform: translateY(-5px);

  box-shadow:
    0 20px 45px rgba(18, 34, 56, 0.11);

  border-color:
    rgba(15, 98, 254, 0.18);
}

/* Default product visual */

.store-item::before {
  content: "";

  display: block;

  height: 145px;

  background:
    radial-gradient(
      circle at 50% 45%,
      rgba(15, 98, 254, 0.20),
      transparent 55%
    ),
    linear-gradient(
      135deg,
      #edf4ff,
      #f7faff
    );

  border-bottom:
    1px solid rgba(18, 34, 56, 0.06);
}

/* Product visuals */

.store-item.product-theme-midnight::before {
  background:
    radial-gradient(
      circle at 50% 45%,
      rgba(72, 101, 190, 0.45),
      transparent 50%
    ),
    linear-gradient(
      135deg,
      #172554,
      #314b8f
    );
}

.store-item.product-theme-spring::before {
  background:
    radial-gradient(
      circle at 50% 45%,
      rgba(74, 170, 105, 0.30),
      transparent 50%
    ),
    linear-gradient(
      135deg,
      #e5f6e9,
      #cdebd5
    );
}

.store-item.product-decor-fountain::before {
  background:
    radial-gradient(
      circle at 50% 45%,
      rgba(70, 150, 220, 0.35),
      transparent 45%
    ),
    linear-gradient(
      135deg,
      #dcefff,
      #b9daf2
    );
}

.store-item.product-tree::before {
  background:
    radial-gradient(
      circle at 50% 35%,
      rgba(50, 150, 80, 0.35),
      transparent 45%
    ),
    linear-gradient(
      135deg,
      #e3f3e5,
      #c9e5cd
    );
}

.store-item.product-bush::before {
  background:
    radial-gradient(
      circle at 50% 45%,
      rgba(65, 150, 90, 0.30),
      transparent 45%
    ),
    linear-gradient(
      135deg,
      #e7f5e9,
      #d0ead5
    );
}

.store-item.product-rock::before {
  background:
    radial-gradient(
      circle at 50% 45%,
      rgba(100, 110, 125, 0.25),
      transparent 45%
    ),
    linear-gradient(
      135deg,
      #edf0f3,
      #d9dee4
    );
}

.store-item.product-badge-earner::before {
  background:
    radial-gradient(
      circle at 50% 45%,
      rgba(245, 190, 70, 0.40),
      transparent 45%
    ),
    linear-gradient(
      135deg,
      #fff5d6,
      #f9e7a8
    );
}

.store-item.product-avatar-fox::before {
  background:
    radial-gradient(
      circle at 50% 45%,
      rgba(230, 120, 55, 0.35),
      transparent 45%
    ),
    linear-gradient(
      135deg,
      #fff0e5,
      #f8d8c2
    );
}

/* Product content */

.store-item > div:first-child {
  padding: 18px 20px 0;
}

.store-item > div:last-child {
  margin-top: auto;
  padding: 0 20px 18px;
}

/* Product text */

.store-item .challenge-title {
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--text);
}

.store-item .challenge-description {
  margin-top: 6px;

  color: var(--muted);

  font-size: 0.9rem;
  line-height: 1.5;
}

/* Price */

.store-item .price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

/* Badge */

.store-item .badge {
  display: inline-flex;
  align-items: center;

  padding: 5px 9px;

  border-radius: 999px;

  background: rgba(18, 34, 56, 0.06);
  color: var(--muted);

  font-size: 0.72rem;
  font-weight: 700;
}

.store-item .badge.owned {
  background: rgba(22, 163, 74, 0.12);
  color: var(--accent-grow);
}

/* Buttons */

.store-item button {
  border-radius: 12px;

  padding: 9px 16px;

  font-size: 0.85rem;
  font-weight: 700;

  background: var(--accent-fuel);
  color: white;

  border: none;

  cursor: pointer;

  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    opacity 160ms ease;

  box-shadow:
    0 8px 20px rgba(15, 98, 254, 0.16);
}

.store-item button:hover {
  transform: translateY(-1px);

  box-shadow:
    0 12px 25px rgba(15, 98, 254, 0.22);
}

.store-item button:disabled {
  opacity: 0.7;
  cursor: default;

  transform: none;

  box-shadow: none;
}

/* Responsive */

@media (max-width: 900px) {
  .store-products {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .store-section {
    padding: 22px;
    border-radius: 26px;
  }

  .store-section-header h2 {
    font-size: 1.65rem;
  }

  .store-products {
    grid-template-columns: 1fr;
  }
}