#store-screen {
  padding-bottom: calc(118px + var(--safe-bottom, 0px));
}

#store-screen .cards-stack.redesign-inner-stack {
  min-height: calc(100% - 6px);
}

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

.store-panel {
  padding: 8px;
  border-radius: 20px;
  min-height: 140px;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 7px;
}

.store-card {
  min-width: 0;
}

.store-card-main {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.store-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(31, 68, 119, 0.92), rgba(17, 37, 72, 0.98));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(154, 196, 255, 0.14);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.store-card.is-active .store-card-media {
  border-color: rgba(255, 194, 91, 0.58);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 194, 91, 0.14) inset;
}

.store-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.store-card-badge {
  position: absolute;
  left: 6px;
  bottom: 6px;
  min-height: 24px;
  max-width: calc(100% - 12px);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(11, 43, 38, 0.92);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
}

.store-card-fallback {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.store-card-title {
  min-height: 26px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.1;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.store-card-actions {
  margin-top: 2px;
  display: flex;
  justify-content: center;
}

.store-card-actions.hidden {
  display: none !important;
}

.store-buy-btn {
  width: auto !important;
  min-width: 72px;
  max-width: 100%;
  min-height: 28px;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.store-empty {
  padding: 28px 14px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.68);
}
