.store-page {
	--accent: var(--primary);
	--border: rgba(255, 255, 255, 0.1);
	--text1: var(--title);
	--text2: var(--subtext);
	padding-bottom: 4rem;
}

body:has(.store-page) footer {
	position: relative;
}

.store-alert {
	margin-bottom: 1.5rem;
	padding: 1rem 1.25rem;
	border-radius: 0.75rem;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid var(--border);
	color: var(--text);
}

.store-alert-success {
	background: rgba(46, 204, 113, 0.12);
	border-color: var(--success);
}

.store-alert-error {
	background: rgba(231, 76, 60, 0.12);
	border-color: var(--error);
}

.store-login,
.store-empty {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 2rem;
	padding: 1.25rem 1.5rem;
	border-radius: 0.75rem;
	background: rgba(0, 0, 0, 0.3);
	border: 2px solid var(--border);
}

.store-empty {
	justify-content: center;
	text-align: center;
}

.store-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.75rem;
	border-bottom: 1px solid var(--border);
}

.store-tab {
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	color: var(--subtext);
	font-weight: 600;
	padding: 0.75rem 1rem;
	cursor: pointer;
	margin-bottom: -1px;
}

.store-tab.is-active,
.store-tab:hover {
	color: var(--primary);
	border-bottom-color: var(--primary);
}

.store-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.25rem;
}

.store-card {
	display: flex;
	flex-direction: column;
	border-radius: 0.75rem;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.3);
	border: 2px solid var(--border);
	transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.store-card:hover {
	transform: translateY(-4px);
	border-color: var(--primary);
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

.store-card-image {
	height: 180px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.35);
	border-bottom: 1px solid var(--border);
}

.store-card-image img {
	width: 80%;
	height: 80%;
	object-fit: contain;
}

.store-card-placeholder {
	width: 64px !important;
	height: 64px !important;
	object-fit: contain !important;
	opacity: 0.55;
}

.store-card-body {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1.25rem;
	flex: 1;
}

.store-card-title {
	font-size: 1.25rem !important;
	font-weight: 700 !important;
	color: var(--title);
}

.store-card-desc {
	font-size: 0.95rem;
	line-height: 1.45;
	color: var(--subtext) !important;
}

.store-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: auto;
	padding-top: 0.5rem;
}

.store-price {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.store-price-current {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--primary);
}

.store-price-old {
	font-size: 0.8rem;
	text-decoration: line-through;
	color: var(--subtext);
}

@media (max-width: 640px) {
	.store-login {
		flex-direction: column;
		align-items: flex-start;
	}
}