/* Список товаров RCON-магазина (rcon_shop/index.tpl). Префикс rsl- и классы rcon-shop-*.
   Палитра — как в шапке (css/header.css) и на странице товара (product.css): тёмные панели, один акцент #da9256.
   Кнопки-ссылки сделаны БЕЗ класса .btn: у «a.btn» в старых стилях сайта !important на font-size 11px, opacity .7 и padding. */

.rsl {
	--rsl-panel: #232327;
	--rsl-inner: rgba(255, 255, 255, .04);
	--rsl-line: rgba(255, 255, 255, .07);
	--rsl-accent: #da9256;
	--rsl-accent-hi: #eda162;
	--rsl-text: #d4d4dc;
	--rsl-muted: #8e8e98;
	color: var(--rsl-text);
}

.rsl,
.rsl * { box-sizing: border-box; }

.rcon-shop-layout {
	display: grid;
	grid-template-columns: 270px minmax(0, 1fr);
	gap: 20px;
	width: 100%;
	align-items: start;
}

.rcon-shop-content { min-width: 0; }

/* ---------- серверы слева ---------- */

.rcon-shop-sidebar {
	position: sticky;
	top: 96px;
	min-width: 0;
	padding: 14px;
	border: 1px solid var(--rsl-line);
	border-radius: 18px;
	background: var(--rsl-panel);
}

.rcon-shop-server-heading {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	margin-bottom: 10px;
	padding: 4px 8px 10px;
	border-bottom: 1px solid var(--rsl-line);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
}

.rcon-shop-server-heading i { color: var(--rsl-accent); font-size: 16px; }

.rsl .serversList {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 100%;
	max-height: calc(100vh - 220px);
	margin: 0;
	padding: 0 4px 0 0;
	overflow-x: hidden;
	overflow-y: auto;
	background: none;
	scrollbar-width: thin;
	scrollbar-color: rgba(218, 146, 86, .5) transparent;
}

.rsl .serversList::-webkit-scrollbar { width: 4px; }
.rsl .serversList::-webkit-scrollbar-track { background: transparent; }
.rsl .serversList::-webkit-scrollbar-thumb { border-radius: 10px; background: rgba(218, 146, 86, .5); }

.rsl .serversList a {
	display: flex;
	flex: none;
	align-items: center;
	width: 100%;
	min-width: 0;
	min-height: 46px;
	height: auto;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid transparent;
	border-radius: 12px;
	background: var(--rsl-inner);
	color: var(--rsl-muted);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: .02em;
	text-align: left;
	text-decoration: none !important;
	text-transform: uppercase;
	white-space: normal;
	word-break: break-word;
	transition: color .15s ease, background .15s ease, border-color .15s ease;
}

.rsl .serversList a:hover {
	border-color: rgba(218, 146, 86, .3);
	background: rgba(218, 146, 86, .08);
	color: #fff;
}

.rsl .serversList a.active {
	border-color: rgba(218, 146, 86, .45);
	background: rgba(218, 146, 86, .14);
	color: var(--rsl-accent-hi);
	box-shadow: none;
}

.rcon-shop-servers-more { display: none; }

/* ---------- вкладки категорий ---------- */

.rsl .rcon-shop-category-tabs {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	margin: 0 0 20px;
	padding: 8px;
	overflow-x: auto;
	border: 1px solid var(--rsl-line);
	border-radius: 16px;
	background: var(--rsl-panel);
	scrollbar-width: thin;
	scrollbar-color: rgba(218, 146, 86, .5) transparent;
}

.rsl .rcon-shop-category-tabs::-webkit-scrollbar { height: 4px; }
.rsl .rcon-shop-category-tabs::-webkit-scrollbar-track { background: transparent; }
.rsl .rcon-shop-category-tabs::-webkit-scrollbar-thumb { border-radius: 10px; background: rgba(218, 146, 86, .5); }

.rsl .rcon-shop-category-tab {
	display: inline-flex;
	flex: 1 1 0;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-width: max-content;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid transparent;
	border-radius: 12px;
	background: var(--rsl-inner);
	color: var(--rsl-muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .02em;
	text-decoration: none !important;
	text-transform: uppercase;
	white-space: nowrap;
	transition: color .15s ease, background .15s ease, border-color .15s ease;
}

.rsl .rcon-shop-category-tab:hover {
	border-color: rgba(218, 146, 86, .3);
	background: rgba(218, 146, 86, .08);
	color: #fff;
}

.rsl .rcon-shop-category-dot {
	width: 10px;
	height: 10px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .18);
	transition: background .15s ease, box-shadow .15s ease;
}

.rsl .rcon-shop-category-tab[aria-current="page"] {
	border-color: rgba(218, 146, 86, .35);
	background: rgba(218, 146, 86, .12);
	color: var(--rsl-accent-hi);
	box-shadow: none;
}

.rsl .rcon-shop-category-tab[aria-current="page"] .rcon-shop-category-dot {
	border: 0;
	background: var(--rsl-accent);
	box-shadow: 0 0 10px rgba(218, 146, 86, .6);
}

/* ---------- карточки товаров ---------- */

.rsl-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 16px;
}

.rsl-empty {
	padding: 40px 20px;
	border: 1px dashed var(--rsl-line);
	border-radius: 16px;
	color: var(--rsl-muted);
	text-align: center;
}

.rsl-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--rsl-line);
	border-radius: 18px;
	background: var(--rsl-panel);
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.rsl-card:hover {
	border-color: rgba(218, 146, 86, .4);
	box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
	transform: translateY(-2px);
}

.rsl-media {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: radial-gradient(ellipse at 50% 45%, #34343a 0%, #1d1d21 75%);
}

.rsl-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform .25s ease;
}

.rsl-card:hover .rsl-media img { transform: scale(1.04); }

.rsl-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 6px;
	padding: 14px 16px 4px;
}

.rsl-name {
	margin: 0;
	overflow: hidden;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rsl-price {
	color: var(--rsl-accent-hi);
	font-size: 18px;
	font-weight: 800;
}

.rsl-actions {
	display: flex;
	gap: 8px;
	padding: 12px 16px 16px;
}

.rsl .rsl-buy,
.rsl .rsl-info {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	border-radius: 12px;
	text-decoration: none !important;
	cursor: pointer;
	transition: filter .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.rsl .rsl-buy {
	flex: 1 1 auto;
	gap: 8px;
	padding: 0 16px;
	background: linear-gradient(180deg, #e9a265, #bd7332);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
	color: #fff !important;
	font-size: 14px;
	font-weight: 800;
	text-shadow: 0 1px 2px rgba(60, 30, 5, .35);
}

.rsl .rsl-buy i { font-size: 19px; line-height: 1; }

.rsl .rsl-buy:hover {
	filter: brightness(1.08);
	box-shadow: 0 6px 18px rgba(218, 146, 86, .35), inset 0 1px 0 rgba(255, 255, 255, .3);
}

.rsl .rsl-info {
	flex: 0 0 44px;
	border: 1px solid var(--rsl-line);
	background: var(--rsl-inner);
	color: var(--rsl-muted) !important;
}

.rsl .rsl-info i { font-size: 20px; line-height: 1; }

.rsl .rsl-info:hover {
	border-color: rgba(218, 146, 86, .4);
	background: rgba(218, 146, 86, .08);
	color: var(--rsl-accent-hi) !important;
}

/* ---------- планшет и телефон ---------- */

@media (max-width: 991.98px) {
	.rcon-shop-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.rcon-shop-sidebar { position: static; }
	.rsl .serversList {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		max-height: none;
		padding-right: 0;
		overflow: visible;
	}
}

@media (max-width: 575.98px) {
	.rsl { padding-right: 8px; padding-left: 8px; }
	.rcon-shop-sidebar { padding: 12px; border-radius: 16px; }
	.rsl .serversList { display: flex; grid-template-columns: none; }
	.rsl .serversList a:nth-child(n+4) { display: none; }
	.rcon-shop-sidebar.mobile-servers-open .serversList a { display: flex; }

	.rcon-shop-servers-more {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		width: 100%;
		min-height: 44px;
		margin-top: 10px;
		padding: 0 14px;
		border: 1px solid var(--rsl-line);
		border-radius: 12px;
		background: var(--rsl-inner);
		color: var(--rsl-accent-hi);
		font-family: inherit;
		font-size: 12px;
		font-weight: 700;
		cursor: pointer;
		transition: background .15s ease, border-color .15s ease;
	}

	.rcon-shop-servers-more:hover { border-color: rgba(218, 146, 86, .4); background: rgba(218, 146, 86, .08); }
	.rcon-shop-servers-more i { transition: transform .2s ease; }
	.rcon-shop-sidebar.mobile-servers-open .rcon-shop-servers-more i { transform: rotate(180deg); }

	.rsl .rcon-shop-category-tabs { gap: 6px; margin-bottom: 14px; padding: 6px; border-radius: 14px; }
	.rsl .rcon-shop-category-tab { flex: 0 0 auto; min-height: 40px; padding: 0 14px; font-size: 11px; }

	.rsl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.rsl-body { padding: 10px 12px 2px; }
	.rsl-name { font-size: 13px; }
	.rsl-price { font-size: 15px; }
	.rsl-actions { padding: 10px 12px 12px; }
	.rsl .rsl-buy { padding: 0 10px; font-size: 13px; }
}

@media (max-width: 399.98px) {
	.rsl-grid { grid-template-columns: minmax(0, 1fr); }
}
