/**
 * AiStros Cross-Domain Shop Styles
 * Version: 1.0.0
 */

.aistros-crossdomain-shop {
	max-width: 1200px;
	margin: 40px auto;
	padding: 20px;
}

.aistros-crossdomain-shop h2 {
	text-align: center;
	margin-bottom: 30px;
	font-size: 2em;
	color: #333;
}

/* Баланс токенов */
.token-balance {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 20px;
	border-radius: 12px;
	text-align: center;
	margin-bottom: 40px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.balance-label {
	font-size: 14px;
	opacity: 0.9;
	display: block;
	margin-bottom: 8px;
}

.balance-value {
	font-size: 32px;
	font-weight: bold;
	display: block;
}

/* Сетка продуктов */
.shop-products-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
	margin-bottom: 40px;
}

.product-card {
	background: white;
	border: 2px solid #e0e0e0;
	border-radius: 12px;
	padding: 24px;
	text-align: center;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.product-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
	border-color: #667eea;
}

.product-card.featured {
	border-color: #f59e0b;
	border-width: 3px;
}

.product-card.featured::before {
	content: "⭐ Популярный";
	position: absolute;
	top: 10px;
	right: -30px;
	background: #f59e0b;
	color: white;
	padding: 4px 40px;
	transform: rotate(45deg);
	font-size: 12px;
	font-weight: bold;
}

.product-token-icon {
	font-size: 48px;
	margin-bottom: 12px;
}

.product-title {
	font-size: 18px;
	font-weight: 600;
	margin: 12px 0;
	color: #333;
}

.product-token-amount {
	font-size: 32px;
	font-weight: bold;
	color: #667eea;
	margin: 12px 0;
}

.product-token-amount small {
	font-size: 14px;
	color: #666;
	font-weight: normal;
	display: block;
	margin-top: 4px;
}

.product-price {
	font-size: 24px;
	font-weight: bold;
	color: #10b981;
	margin: 16px 0;
}

.product-per-token {
	font-size: 12px;
	color: #999;
	margin-bottom: 20px;
}

.product-buy-btn {
	display: inline-block;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 12px 32px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
	width: 100%;
}

.product-buy-btn:hover {
	transform: scale(1.05);
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
	color: white;
	text-decoration: none;
}

.product-card.featured .product-buy-btn {
	background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
}

/* Уведомление */
.shop-notice {
	background: #f3f4f6;
	border-left: 4px solid #667eea;
	padding: 20px;
	border-radius: 8px;
	margin-top: 40px;
}

.shop-notice strong {
	display: block;
	margin-bottom: 12px;
	font-size: 16px;
}

.shop-notice ul {
	margin: 0;
	padding-left: 20px;
}

.shop-notice li {
	margin-bottom: 8px;
	color: #666;
}

/* Загрузка */
.loading {
	text-align: center;
	padding: 60px 20px;
	color: #999;
	font-size: 18px;
}

.loading::before {
	content: "⏳";
	display: block;
	font-size: 48px;
	margin-bottom: 16px;
	animation: spin 2s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Кнопка в меню */
.menu-item-buy-tokens .buy-tokens-link {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white !important;
	padding: 8px 16px;
	border-radius: 6px;
	font-weight: 600;
	transition: all 0.3s ease;
}

.menu-item-buy-tokens .buy-tokens-link:hover {
	transform: scale(1.05);
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
	.shop-products-grid {
		grid-template-columns: 1fr;
	}

	.aistros-crossdomain-shop {
		padding: 10px;
	}

	.balance-value {
		font-size: 24px;
	}
}
