:root {
  --tg-theme-bg-color: #1a1a2e;
  --tg-theme-text-color: #eaeaea;
  --tg-theme-button-color: #6c5ce7;
  --tg-theme-button-text-color: #ffffff;
  --tg-theme-hint-color: #a0a0b0;
  --tg-theme-secondary-bg-color: #16213e;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--tg-theme-bg-color, #1a1a2e);
  color: var(--tg-theme-text-color, #eaeaea);
  min-height: 100vh;
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}

.hidden {
  display: none !important;
}

.loader {
  text-align: center;
  padding: 48px 16px;
  color: var(--tg-theme-hint-color, #a0a0b0);
}

.error {
  text-align: center;
  padding: 48px 16px;
  color: #ff6b6b;
}

.shop {
  max-width: 420px;
  margin: 0 auto;
}

.product-image-wrap {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--tg-theme-secondary-bg-color, #16213e);
  margin-bottom: 20px;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  opacity: 0.5;
}

.product-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-desc {
  font-size: 0.95rem;
  color: var(--tg-theme-hint-color, #a0a0b0);
  margin-bottom: 24px;
  line-height: 1.5;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 18px;
  border: none;
  border-radius: 12px;
  background: var(--tg-theme-button-color, #6c5ce7);
  color: var(--tg-theme-button-text-color, #fff);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}

.option-btn:active {
  transform: scale(0.98);
  opacity: 0.9;
}

.option-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.option-label {
  text-align: left;
}

.option-price {
  font-weight: 700;
  white-space: nowrap;
  margin-left: 12px;
}

.status {
  margin-top: 16px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--tg-theme-hint-color, #a0a0b0);
}

.status.success {
  color: #51cf66;
}

.status.error {
  color: #ff6b6b;
}

.empty-options {
  text-align: center;
  padding: 24px;
  color: var(--tg-theme-hint-color, #a0a0b0);
  background: var(--tg-theme-secondary-bg-color, #16213e);
  border-radius: 12px;
}
