/* Prizų sandėlis — tik žetonai, 360 px, lietimo zonos ≥ 44 px */
.shop-page {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 360px;
  width: 100%;
  margin: 0 auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

.shop-page *,
.shop-page *::before,
.shop-page *::after {
  box-sizing: border-box;
}

.shop-page h1,
.shop-page h2,
.shop-page h3,
.shop-page p {
  margin: 0;
}

.shop-page button,
.shop-reward__need {
  min-height: var(--touch-min);
  min-width: var(--touch-min);
}

.shop-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
}

.shop-title {
  font-family: var(--font-display);
  font-weight: var(--font-weight-display);
  font-size: var(--font-size-xl);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.shop-points {
  background: var(--color-nav);
  color: var(--color-on-nav);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.shop-points__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
}

.shop-points__label {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-sm);
}

.shop-points__value {
  font-weight: var(--font-weight-display);
  font-size: var(--font-size-2xl);
  line-height: 1;
  color: var(--color-on-nav);
}

.shop-savings {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.shop-savings__emoji {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.shop-savings__meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shop-savings__label {
  font-size: var(--fs-sm);
  font-weight: var(--font-weight-bold);
  line-height: 1.25;
}

.shop-savings__track {
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-2);
  overflow: hidden;
  opacity: 0.85;
}

.shop-savings__fill {
  height: 100%;
  width: 0;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  transition: width 0.25s ease;
}

.shop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.shop-reward {
  background: var(--color-mission);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.shop-reward__blob {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-pill);
  background: var(--color-points-soft);
  color: var(--color-points);
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  line-height: 1;
}

.shop-reward__title {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-md);
  line-height: 1.2;
}

.shop-reward__desc {
  font-size: var(--fs-xs);
  line-height: 1.35;
  color: var(--color-text-muted);
  min-height: 32px;
}

.shop-reward__cost {
  font-weight: var(--font-weight-display);
  color: var(--color-points);
}

.shop-reward__btn {
  width: 100%;
}

.shop-reward__short {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
}

.shop-reward__track {
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-2);
  overflow: hidden;
}

.shop-reward__fill {
  height: 100%;
  width: 0;
  border-radius: var(--radius-pill);
  background: var(--color-points);
  transition: width 0.25s ease;
}

.shop-reward__need {
  border-radius: var(--radius-pill);
  background: var(--color-surface-2);
  display: grid;
  place-items: center;
  font-weight: var(--font-weight-bold);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  padding: 0 var(--space-sm);
  text-align: center;
}

.shop-section-label {
  font-size: var(--fs-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.shop-requests {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.shop-request {
  background: var(--color-surface);
  border-radius: 20px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-width: 0;
}

.shop-request__icon {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}

.shop-request__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.shop-request__title {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-sm);
}

.shop-request__meta {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  font-weight: var(--font-weight-bold);
}

.shop-request__tag {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-weight: var(--font-weight-bold);
  font-size: var(--fs-xs);
  white-space: nowrap;
}

.shop-request__tag--pending {
  background: var(--color-warning-soft);
  color: var(--color-warning);
}

.shop-request__tag--approved {
  background: var(--color-success-soft);
  color: var(--color-success);
}

.shop-request__tag--rejected {
  background: var(--color-surface-2);
  color: var(--color-text-muted);
}

.shop-page .ui-btn:focus-visible,
.shop-page button:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .shop-savings__fill,
  .shop-reward__fill {
    transition: none !important;
  }
}

@media (max-width: 360px) {
  .shop-page {
    max-width: 100%;
  }
}
