.rcon-shop-product {
	background-color: var(--bg-card);
	border: 1px solid var(--bg-card-light);
	border-radius: 12px;
	padding: 0;
  overflow: hidden;
	transition: all 0.3s ease;
}

.rcon-shop-product .image {
      height: 200px;
    width: 100%;
    background-size: cover;
	background-position: center;
	transition: all 0.3s ease;
    position: relative;
	border-radius: 12px 12px 0 0;
}

.rcon-shop-product .image .price {
    position: absolute;
	right: 15px;
	top: 15px;
	background: linear-gradient(135deg, var(--color-red-light), var(--color-red));
	color: var(--text-light);
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 14px;
    font-weight: 600;
	border: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.rcon-shop-product .image .title {
    position: absolute;
	left: 15px;
	top: 15px;
	background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
	color: var(--text-light);
    font-weight: 600;
	font-size: 14px;
	padding: 8px 16px;
	border-radius: 20px;
    cursor: default;
    max-width: 60%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.rcon-shop-product:hover .image {
	filter: brightness(1.1);
}

.rcon-shop-product .actions {
	background-color: var(--bg-card-light);
	padding: 15px;
    display: flex;
	gap: 10px;
	border-radius: 0 0 12px 12px;
}

.rcon-shop-product .actions .btn {
	flex: 1;
	padding: 10px 20px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 14px;
	transition: all 0.3s ease;
	border: none;
}

.rcon-shop-product .actions .btn.buy-btn {
	background: linear-gradient(135deg, var(--color-red-light), var(--color-red));
	color: var(--text-light);
}

.rcon-shop-product .actions .btn.buy-btn:hover {
	background: linear-gradient(135deg, var(--color-red), var(--color-red-light));
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(215, 31, 44, 0.3);
}

.rcon-shop-product .actions .btn.description-btn {
	background-color: var(--bg-card);
	color: var(--text-light);
	border: 1px solid var(--bg-card-light);
}

.rcon-shop-product .actions .btn.description-btn:hover {
	background-color: var(--color-red-light);
	border-color: var(--color-red-light);
	color: var(--text-light);
}

/* Детальный вид продукта */
.rcon-shop-product-in-detail {
	background-color: var(--bg-card);
	border: 1px solid var(--bg-card-light);
	border-radius: 12px;
	padding: 30px;
	margin-bottom: 20px;
}

.rcon-shop-product-in-detail .image {
  display: block;
  max-height: 300px;
	margin: 0 auto 20px;
}

.rcon-shop-product-in-detail .image img {
  margin: 0 auto;
  max-height: 300px;
  max-width: 100%;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.rcon-shop-product-in-detail .product-info {
	padding-left: 20px;
}

.rcon-shop-product-in-detail .product-title {
	color: var(--text-light);
	font-size: 28px;
	font-weight: 700;
	margin-bottom: 25px;
	border-bottom: 2px solid var(--color-red-light);
	padding-bottom: 15px;
}

.rcon-shop-product-in-detail .product-description {
	margin-bottom: 30px;
}

.rcon-shop-product-in-detail .product-description h4 {
	color: var(--text-light);
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 15px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.rcon-shop-product-in-detail .product-description h4 i {
	color: var(--color-red-light);
}

.rcon-shop-product-in-detail .tarifs-section {
	margin-bottom: 30px;
}

.rcon-shop-product-in-detail .tarifs-section h4 {
	color: var(--text-light);
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.rcon-shop-product-in-detail .tarifs-section h4 i {
	color: var(--color-red-light);
}

.rcon-shop-product-in-detail .tarifs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 15px;
}

.rcon-shop-product-in-detail .tarif-option {
	background-color: var(--bg-card-light);
	border: 2px solid var(--bg-card-light);
	border-radius: 8px;
	padding: 15px;
	cursor: pointer;
	transition: all 0.3s ease;
	text-align: center;
}

.rcon-shop-product-in-detail .tarif-option:hover {
	border-color: var(--color-red-light);
	background-color: var(--bg-card);
}

.rcon-shop-product-in-detail .tarif-option.active {
	background-color: var(--color-red-light);
}

.rcon-shop-product-in-detail .tarif-option input {
	display: none;
}

.rcon-shop-product-in-detail .tarif-content {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.rcon-shop-product-in-detail .tarif-price {
	color: var(--text-light);
	font-size: 20px;
	font-weight: 700;
}

.rcon-shop-product-in-detail .tarif-title {
	color: var(--text-muted);
	font-size: 14px;
}

.rcon-shop-product-in-detail .tarif-option.active .tarif-title {
	color: var(--text-light);
}

.rcon-shop-product-in-detail .purchase-section {
	background-color: var(--bg-card-light);
	border-radius: 8px;
	padding: 20px;
}

.rcon-shop-product-in-detail .purchase-section h4 {
	color: var(--text-light);
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.rcon-shop-product-in-detail .purchase-section h4 i {
	color: var(--color-red-light);
}

.rcon-shop-product-in-detail .purchase-info {
	margin-bottom: 20px;
}

.rcon-shop-product-in-detail .purchase-info p {
	color: var(--text-light);
	margin-bottom: 15px;
	line-height: 1.5;
}

.rcon-shop-product-in-detail .price-info {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background-color: var(--bg-card);
	padding: 15px;
	border-radius: 8px;
	border: 1px solid var(--bg-card-light);
}

.rcon-shop-product-in-detail .price-info span:first-child {
	color: var(--text-muted);
	font-size: 16px;
}

.rcon-shop-product-in-detail .price-info .price_price_rcon {
	color: var(--color-red-light);
	font-size: 20px;
	font-weight: 700;
}

.rcon-shop-product-in-detail .params-section {
	margin-bottom: 20px;
}

.rcon-shop-product-in-detail .params-section h5 {
	color: var(--text-light);
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 15px;
}

.rcon-shop-product-in-detail .params-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 15px;
}

.rcon-shop-product-in-detail .param-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.rcon-shop-product-in-detail .param-group label {
	color: var(--text-light);
	font-size: 14px;
	font-weight: 500;
}

.rcon-shop-product-in-detail .param-group .form-control {
	background-color: var(--bg-card);
	border: 1px solid var(--bg-card-light);
	border-radius: 6px;
	padding: 12px 15px;
	color: var(--text-light);
	font-size: 14px;
	transition: all 0.3s ease;
}

.rcon-shop-product-in-detail .param-group .form-control:focus {
	border-color: var(--color-red-light);
	box-shadow: 0 0 0 2px rgba(215, 31, 44, 0.2);
	outline: none;
}

.rcon-shop-product-in-detail .param-group .form-control::placeholder {
	color: var(--text-muted);
}

.rcon-shop-product-in-detail .error-message {
	background-color: rgba(215, 31, 44, 0.1);
	border: 1px solid var(--color-red-light);
	border-radius: 6px;
	padding: 12px 15px;
	color: var(--color-red-light);
	font-size: 14px;
	margin-bottom: 15px;
}

.rcon-shop-product-in-detail .success-message {
	background-color: rgba(107, 183, 82, 0.1);
	border: 1px solid var(--color-green);
	border-radius: 6px;
	padding: 12px 15px;
	color: var(--color-green);
	font-size: 14px;
	margin-top: 20px;
}

.rcon-shop-product-in-detail .btn {
	padding: 12px 30px;
	font-size: 16px;
	font-weight: 600;
	border-radius: 8px;
	transition: all 0.3s ease;
	background-color: var(--color-red-light);
	color: #fff;
}

.rcon-shop-product-in-detail .btn.disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

.form-check {
    display: flex !important;
    align-items: center;
	margin: 15px 0;
	background-color: var(--bg-card-light);
	border-radius: 12px;
	border: 1px solid var(--bg-card-light);
	transition: all 0.3s ease;
	cursor: pointer;
}

.form-check-input {
	position: relative;
	width: 20px;
	height: 20px;
	margin-right: 15px;
	appearance: none;
	background-color: var(--bg-card);
	border: 2px solid var(--bg-card-light);
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.3s ease;
}

.form-check-input:checked {
	background-color: var(--color-red-light);
	border-color: var(--color-red-light);
}

.form-check-input:checked::after {
	content: '';
	position: absolute;
	left: 4px;
	top: 0px;
	width: 6px;
	height: 10px;
	border: solid white;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
	animation: checkmark 0.3s ease;
}

.form-check-input:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(215, 31, 44, 0.2);
}

.form-check-label {
	color: var(--text-light);
	font-weight: 500;
	font-size: 14px;
	line-height: 1.4;
	cursor: pointer;
}

.form-check-label a {
	color: var(--color-red-light);
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
}

.form-check-label a:hover {
	color: var(--color-red);
	text-decoration: underline;
}

@keyframes checkmark {
	0% {
		opacity: 0;
		transform: rotate(45deg) scale(0);
	}
	50% {
		opacity: 1;
		transform: rotate(45deg) scale(1.2);
	}
	100% {
		opacity: 1;
		transform: rotate(45deg) scale(1);
	}
}

.modal {
	background-color: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(5px);
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1040;
	padding: 20px;
	overflow-y: auto;
}

.modal.show {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: 50px;
}

.modal-dialog {
	margin: 0 auto;
	max-width: 800px;
	width: 100%;
	position: relative;
	z-index: 1050;
}

.modal-dialog-centered {
	margin: 0 auto;
	display: flex;
	align-items: flex-start;
	/* padding-top: 50px; */
	max-width: 800px;
	width: 100%;
}

.modal-content {
	background-color: var(--bg-card);
	border: 1px solid var(--bg-card-light);
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
	overflow: hidden;
	position: relative;
	width: 100%;
	display: flex;
	flex-direction: column;
}

.modal-header {
	border-bottom: 1px solid var(--bg-card-light);
	padding: 25px 30px;
	position: relative;
}

.modal-title {
	color: var(--text-light);
	font-weight: 700;
	font-size: 24px;
	margin: 0;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.close {
	position: absolute;
	top: 20px;
	right: 25px;
	background: rgba(255, 255, 255, 0.1);
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-light);
	font-size: 20px;
	font-weight: 700;
	opacity: 0.9;
	transition: all 0.3s ease;
	cursor: pointer;
	z-index: 10;
}

.close:hover {
	background: rgba(255, 255, 255, 0.2);
	border-color: rgba(255, 255, 255, 0.5);
	color: var(--text-light);
	opacity: 1;
	transform: scale(1.1);
}

.close span {
	line-height: 1;
}

.modal-body {
	padding: 30px;
	color: var(--text-light);
	font-size: 16px;
	line-height: 1.6;
	overflow-y: auto;
}

.modal-body.with_code {
	background-color: var(--bg-card-light);
	border-radius: 12px;
	margin-top: 20px;
	padding: 25px;
	border: 1px solid var(--bg-card-light);
	word-wrap: break-word;
}

.modal-body.with_code h1,
.modal-body.with_code h2,
.modal-body.with_code h3,
.modal-body.with_code h4,
.modal-body.with_code h5,
.modal-body.with_code h6 {
	color: var(--text-light);
	margin-bottom: 15px;
}

.modal-body.with_code p {
	margin-bottom: 15px;
}

.modal-body.with_code ul,
.modal-body.with_code ol {
	margin-bottom: 15px;
	padding-left: 25px;
}

.modal-body.with_code li {
	margin-bottom: 8px;
}

.modal-body.with_code code {
	background-color: var(--bg-card);
	color: var(--color-red-light);
	padding: 2px 6px;
	border-radius: 4px;
	font-family: 'Courier New', monospace;
}

.modal-body.with_code pre {
	background-color: var(--bg-card);
	border: 1px solid var(--bg-card-light);
	border-radius: 8px;
	padding: 15px;
	overflow-x: auto;
	margin: 15px 0;
}

.modal-body.with_code pre code {
	background: none;
	padding: 0;
	color: var(--text-light);
}

@keyframes modalFadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes modalSlideIn {
	from {
		transform: translateY(-50px) scale(0.9);
		opacity: 0;
	}
	to {
		transform: translateY(0) scale(1);
		opacity: 1;
	}
}

.modal.fade .modal-dialog {
	animation: modalSlideIn 0.3s ease-out;
}

.modal.fade {
	animation: modalFadeIn 0.3s ease-out;
}

@media (max-width: 768px) {
	.modal {
		padding: 10px;
	}
	
	.modal-dialog {
		max-width: 100%;
	}
	
	.modal-header {
		padding: 20px;
	}
	
	.modal-title {
		font-size: 20px;
	}
	
	.modal-body {
		padding: 20px;
		font-size: 14px;
	}
	
	.close {
		width: 35px;
		height: 35px;
		font-size: 18px;
		top: 15px;
		right: 20px;
	}
}

.empty-element {
	text-align: center;
	padding: 40px 20px;
	color: var(--text-muted);
	font-size: 16px;
	background-color: var(--bg-card);
	border: 1px solid var(--bg-card-light);
	border-radius: 12px;
}

.rcon-shop-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin-bottom: 30px;
}

.rcon-shop-category {
	background-color: var(--bg-card);
	border: 1px solid var(--bg-card-light);
	border-radius: 8px;
	padding: 15px 20px;
	text-decoration: none;
	color: var(--text-light);
	transition: all 0.3s ease;
	font-weight: 500;
}

.rcon-shop-category:hover {
	background-color: var(--color-red-light);
	border-color: var(--color-red-light);
	color: var(--text-light);
	text-decoration: none;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(215, 31, 44, 0.3);
}

.rcon-shop-category.active {
	background-color: var(--color-red);
	border-color: var(--color-red);
	color: var(--text-light);
}

@media (max-width: 768px) {
	.rcon-shop-product .actions {
		flex-direction: column;
		gap: 8px;
	}
	
	.rcon-shop-product .actions .btn {
		width: 100%;
	}
	
	.rcon-shop-product-in-detail .image {
		max-width: 100%;
	}
	
	.rcon-shop-categories {
		flex-direction: column;
	}
	
	.rcon-shop-category {
		text-align: center;
	}
}