* {
	border-radius: 0 !important;
}

#column-left .list-group {
	border: 1px solid #ddd !important;
	border-top: none !important;
	border-radius: 0 !important;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
	margin: 0 !important;
}

#column-left .list-group-item {
	border: none !important;
	border-bottom: 1px solid #eee !important;
	background: #fff !important;
	padding: 12px 20px !important;
	font-size: 14px;
	font-weight: 400;
	color: #333 !important;
	transition: all 0.2s ease !important;
	display: block !important;
	width: 100% !important;
	position: relative;
	border-radius: 0 !important;
	text-decoration: none !important;
}

#column-left .list-group-item:last-child {
	border-bottom: none !important;
}

#column-left .list-group-item:hover {
	background: #f0f7fd !important;
	color: #00509d !important;
	text-decoration: none !important;
	padding-left: 25px !important;
	font-weight: 600;
}

#column-left .list-group-item .fa {
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 12px;
	color: #ccc;
	transition: color 0.3s ease;
}

#column-left .list-group-item:hover .fa {
	color: #00509d;
}

#column-left h3,
#column-left .box-heading,
#column-left .list-group-item.active,
#column-left>div>strong {
	display: none !important;
}

.product-thumb {
	background: #fff !important;
	border: 1px solid #e5e5e5 !important;
	padding: 15px;
	transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
	box-shadow: none !important;
	border-radius: 4px !important;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	position: relative;
	height: 100%;
}

.product-thumb:hover {
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
	border-color: #00509d !important;
	transform: translateY(-3px);
}

.btn-primary,
.primary-button,
#cart .btn-primary {
	background-color: #00509d !important;
	border: none !important;
	border-radius: 0 !important;
	text-transform: uppercase;
	font-weight: 700;
	font-size: 13px;
	padding: 10px 20px;
	letter-spacing: 1px;
	box-shadow: none !important;
}

.btn-primary:hover {
	background-color: #003d7a !important;
}

.checkout-cart .table {
	border: 1px solid #eee;
}

.checkout-cart .table thead td {
	background: #f5f5f5;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 12px;
}

.checkout-cart .input-group input {
	border-radius: 0 !important;
	text-align: center;
}

.checkout-cart .btn-danger {
	background-color: #ff4d4f !important;
	border: none;
}

.mini-cart-total {
	background: #f9f9f9;
	padding: 10px;
	border-top: 1px solid #eee;
}

#cart {
	position: relative;
	z-index: 10005 !important;
}

#cart .dropdown-menu {
	display: block !important;
	visibility: hidden;
	opacity: 0;
	transform: translateY(15px);
	border: 1px solid #00509d !important;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
	padding: 0 !important;
	min-width: 350px !important;
	max-width: 500px !important;
	width: 500px !important;
	border-radius: 0 !important;
	background: #fff;
	z-index: 10005 !important;
	transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	top: 100%;
	right: 0;
	left: auto;
	margin-top: -5px;
	pointer-events: none;
}

@media (max-width: 768px) {
	#cart .dropdown-menu {
		right: 0 !important;
		left: auto !important;
		width: calc(100vw - 20px);
		max-width: none;
	}
}

#cart.open .dropdown-menu {
	visibility: visible;
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

#cart .dropdown-menu li:first-child {
	max-height: 250px;
	overflow-y: auto;
	overflow-x: hidden;
}

#cart .dropdown-menu table {
	margin-bottom: 0;
	width: 100%;
}

#cart .dropdown-menu table td {
	padding: 8px !important;
	font-size: 12px;
	vertical-align: middle;
}

#cart .dropdown-menu img {
	max-width: 80px !important;
	height: auto;
	border: 1px solid #eee;
	padding: 2px;
	min-width: 60px;
}

#cart .dropdown-menu::before {
	content: "";
	position: absolute;
	top: -25px;
	left: 0;
	width: 100%;
	height: 25px;
	background: transparent;
}

#cart.open .dropdown-menu::before {
	display: block;
}

.cart-count-mobile {
	position: absolute;
	top: -5px;
	right: -8px;
	background: #ffcc00;
	color: #000;
	font-size: 10px;
	font-weight: bold;
	border-radius: 50% !important;
	width: 16px;
	height: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.min-order-warning {
	margin: 10px 0;
	padding: 12px;
	font-size: 13px;
	border-radius: 0 !important;
	background-color: #fffaf0;
	border: 1px solid #ffeeba;
	color: #856404;
	text-align: center;
}

.cart-buttons {
	margin-top: 15px;
	padding-top: 10px;
	border-top: 1px solid #eee;
}

.cart-static-warning {
	padding: 10px;
	background: #fffaf0;
	border-bottom: 1px solid #ffeeba;
	color: #856404;
	font-size: 12px;
	text-align: center;
}

.product-page {
	margin-top: 20px;
	margin-bottom: 40px;
}

.product-page .breadcrumb {
	margin-bottom: 20px;
}

.product-gallery {
	text-align: center;
}

.product-gallery .main-image {
	width: 100%;
	max-width: 500px;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product-gallery .thumbnails {
	display: flex;
	gap: 10px;
	justify-content: center;
	margin-top: 20px;
	flex-wrap: wrap;
}

.product-gallery .thumbnail {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border: 2px solid #ddd;
	cursor: pointer;
	border-radius: 4px;
	transition: all 0.3s ease;
}

.product-gallery .thumbnail:hover {
	border-color: #00509d;
	transform: scale(1.05);
}

.product-gallery .thumbnail.active {
	border-color: #00509d;
	box-shadow: 0 0 0 3px rgba(0, 80, 157, 0.2);
}

.product-info {
	padding-left: 20px;
}

.product-info .sku {
	color: #999;
	font-size: 13px;
	margin-bottom: 8px;
}

.product-info h1 {
	font-size: 32px;
	font-weight: 700;
	color: #333;
	margin-bottom: 15px;
	line-height: 1.2;
}

.status-block {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 25px;
	flex-wrap: wrap;
}

.stock-badge {
	background: #52c41a;
	color: #fff;
	padding: 6px 16px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
	display: inline-block;
}

.stock-badge.out-of-stock {
	background: #999;
}

.rating {
	color: #faad14;
	font-size: 18px;
}

.rating .fa-star-o {
	color: #ddd;
}

.product-price-main {
	font-size: 36px;
	font-weight: 800;
	color: #00509d;
	margin-bottom: 5px;
}

.product-price-main .price-old {
	font-size: 24px;
	font-weight: 400;
	color: #999;
	text-decoration: line-through;
	margin-right: 10px;
}

.product-price-main .price-new {
	font-size: 36px;
	font-weight: 800;
}

.price-note {
	font-size: 12px;
	color: #999;
	margin-bottom: 25px;
}

.product-options {
	background: #f9f9f9;
	padding: 20px;
	border-radius: 8px;
	margin-bottom: 20px;
}

.product-options .form-group {
	margin-bottom: 15px;
}

.product-options .control-label {
	font-weight: 600;
	font-size: 14px;
	color: #333;
}

.product-options .radio,
.product-options .checkbox {
	display: block;
	margin-bottom: 10px;
}

.product-options .radio label,
.product-options .checkbox label {
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
}

.product-options .img-thumbnail {
	max-width: 50px;
	margin-right: 10px;
	border-radius: 4px;
}

.qty-inputs {
	gap: 5px;
}

.qty-inputs .qty-input {
	width: 70px;
	text-align: center;
	border-radius: 0 !important;
}

.qty-inputs .btn-qty-minus,
.qty-inputs .btn-qty-plus {
	width: 40px;
	height: 40px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	border: 1px solid #ddd;
	background: #fff;
	color: #333;
	border-radius: 0 !important;
}

.qty-inputs .btn-qty-minus:hover,
.qty-inputs .btn-qty-plus:hover {
	background: #f5f5f5;
}

/* Marketplace button container — see .marketplace-widget in catalog.css */

.delivery-info {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 25px;
	padding: 18px;
	background: #f0f7ff;
	border-radius: 8px;
	border: 1px solid #d6e4ff;
}

.delivery-info i {
	color: #00509d;
	font-size: 22px;
}

.delivery-info span {
	font-weight: 500;
	color: #333;
}

.product-description h2,
.product-specs h2,
.related-products h2 {
	font-size: 24px;
	font-weight: 700;
	color: #333;
	margin-bottom: 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid #00509d;
}

.description-content {
	color: #555;
	line-height: 1.7;
	font-size: 15px;
}

.table-specs {
	border: none;
	margin-top: 10px;
}

.table-specs tr {
	border-bottom: none;
}

.table-specs tr:nth-of-type(odd) {
	background: #f9f9f9;
}

.table-specs tr:nth-of-type(even) {
	background: #fff;
}

.table-specs th {
	border: none;
	padding: 15px 20px;
	width: 40%;
	font-weight: 600;
	text-align: left;
	background: none;
	color: #333;
	font-size: 14px;
}

.table-specs td {
	border: none;
	padding: 15px 20px;
	color: #555;
	font-size: 14px;
}

.table-specs tr:hover {
	background: #f0f7ff;
}

.related-products .product-thumb {
	height: 100%;
}

.related-products .product-thumb .button-group-wrap {
	flex-wrap: wrap;
}

.related-products .product-thumb .quantity-selector {
	flex-shrink: 0;
}

@media (max-width: 768px) {
	.product-info {
		padding-left: 0;
		margin-top: 30px;
	}

	.product-info h1 {
		font-size: 26px;
	}

	.product-price-main {
		font-size: 30px;
	}

	.marketplace-buttons {
		flex-direction: column;
	}

	.btn-marketplace {
		width: 100%;
	}

	.table-specs th,
	.table-specs td {
		padding: 10px 15px;
		font-size: 13px;
	}
}

/* Premium Marketplace Widget - Solid CTA Style */
.marketplace-widget {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	margin-top: 15px;
	background: transparent;
	padding: 0;
	border: none;
	box-shadow: none;
}

.marketplace-widget .widget-title {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #777;
	margin-bottom: 5px;
	font-weight: 700;
	text-align: left;
}

.btn-market-premium {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 48px;
	padding: 0 16px;
	border-radius: 4px;
	text-decoration: none !important;
	color: #fff !important;
	font-weight: 600;
	font-size: 15px;
	transition: opacity 0.2s ease, transform 0.1s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	position: relative;
	overflow: hidden;
	cursor: pointer;
	border: none !important;
	margin-bottom: 0;
}

.btn-market-premium:hover {
	opacity: 0.9;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
	text-decoration: none !important;
}

/* Icons */
.market-icon {
	width: 24px;
	height: 24px;
	margin-right: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.market-icon svg {
	width: 100%;
	height: 100%;
	display: block;
	fill: #fff;
	/* Force white fill */
}

/* Label */
.market-label {
	font-size: 15px;
	font-weight: 600;
	color: #fff !important;
	white-space: nowrap;
}

.brand-name {
	font-weight: 700;
	color: #fff !important;
}

/* Brand Specifics */
.btn-avito-p {
	background-color: #00AAFF !important;
}

.btn-ozon-p {
	background-color: #005BFF !important;
}

.btn-yandex-p {
	background-color: #FC3F1D !important;
}

.btn-wb-p {
	background-color: #CB11AB !important;
}

/* === Subcategories Grid (Old DNS Style) === */
.subcategories-grid {
	margin-bottom: 30px;
}

.category-card {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	overflow: hidden;
	transition: all 0.3s ease;
	height: 100%;
}

.category-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	transform: translateY(-2px);
	border-color: #00509d;
}

.category-link {
	display: block;
	text-decoration: none;
	color: inherit;
	height: 100%;
}

.category-image {
	height: 140px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f8f9fa;
}

.category-img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	padding: 10px;
}

.category-info {
	padding: 12px;
	text-align: center;
}

.category-title {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: #333;
	line-height: 1.4;
	transition: color 0.2s ease;
}

.category-card:hover .category-title {
	color: #00509d;
}

/* Mobile: 2 columns */
@media (max-width: 767px) {
	.subcategories-grid .col-6 {
		flex: 0 0 50%;
		max-width: 50%;
	}

	.category-image {
		height: 100px;
	}

	.category-title {
		font-size: 12px;
	}
}

/* Кнопки корзины - минималистичные */
.cart-btn-link {
	color: #00509d;
	text-decoration: underline;
	font-size: 14px;
	padding: 12px 20px;
	display: inline-block;
}

.cart-btn-link:hover {
	color: #003d7a;
}

.cart-btn-primary {
	background-color: transparent;
	color: #00509d;
	border: 1px solid #00509d;
	padding: 10px 30px;
	font-size: 14px;
	border-radius: 4px;
}

.cart-btn-primary:hover {
	background-color: #00509d;
	color: #fff;
}

/* Селектор количества товаров */
.quantity-selector {
	max-width: 150px;
	display: inline-flex !important;
	border: 1px solid #ddd !important;
	border-radius: 4px !important;
	overflow: hidden;
}

/* Simplecheckout buttons - minimilastic */
.simplecheckout-button-right .cart-btn-primary,
.simplecheckout-button-left .cart-btn-primary,
#simplecheckout_button_confirm,
#simplecheckout_button_next,
#simplecheckout_button_prev,
#simplecheckout_button_back,
#simplecheckout_button_login,
#simplecheckout_button_cart {
	background-color: transparent;
	color: #00509d;
	border: 1px solid #00509d;
	padding: 10px 30px;
	font-size: 14px;
	border-radius: 4px;
	text-transform: none;
	font-weight: 400;
	letter-spacing: normal;
	box-shadow: none !important;
}

.simplecheckout-button-right .cart-btn-primary:hover,
.simplecheckout-button-left .cart-btn-primary:hover,
#simplecheckout_button_confirm:hover,
#simplecheckout_button_next:hover,
#simplecheckout_button_prev:hover,
#simplecheckout_button_back:hover,
#simplecheckout_button_login:hover,
#simplecheckout_button_cart:hover {
	background-color: #00509d;
	color: #fff;
	text-decoration: none;
}

.quantity-selector .form-control {
	border: none !important;
	padding: 5px !important;
	text-align: center;
	background: #f8f9fa;
	border-radius: 0 !important;
	box-shadow: none !important;
}

.quantity-selector .btn {
	border: none !important;
	background: #f8f9fa;
	border-radius: 0 !important;
	padding: 5px 10px !important;
}

.quantity-selector .btn:hover {
	background: #e9ecef;
}

/* === Cart Async Update Styles === */

/* Loading state for quantity selector */
.quantity-selector.loading {
	pointer-events: none;
	position: relative;
}

.quantity-selector.loading .btn,
.quantity-selector.loading .form-control {
	opacity: 0.5;
	cursor: not-allowed;
}

.quantity-selector.loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 16px;
	margin: -8px 0 0 -8px;
	border: 2px solid #00509d;
	border-top-color: transparent;
	border-radius: 50% !important;
	animation: cart-spinner 0.8s linear infinite;
}

@keyframes cart-spinner {
	to {
		transform: rotate(360deg);
	}
}

/* Row update highlight animation */
.cart-row-updated {
	animation: cart-row-flash 0.5s ease-out;
}

@keyframes cart-row-flash {
	0% {
		background-color: #fffbcc;
	}

	100% {
		background-color: transparent;
	}
}

/* Toast notifications */
.cart-toast {
	position: fixed;
	bottom: 20px;
	right: 20px;
	padding: 15px 25px;
	border-radius: 4px !important;
	font-size: 14px;
	font-weight: 500;
	z-index: 99999;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	transform: translateX(120%);
	transition: transform 0.3s ease-out;
}

.cart-toast.show {
	transform: translateX(0);
}

.cart-toast-success {
	background: #52c41a;
	color: #fff;
}

.cart-toast-error {
	background: #ff4d4f;
	color: #fff;
}

.cart-toast i {
	margin-right: 8px;
}

/* Mobile toast positioning */
@media (max-width: 768px) {
	.cart-toast {
		left: 20px;
		right: 20px;
		bottom: 15px;
		text-align: center;
	}
}

/* === Mobile Cart Page Responsive Styles === */
@media (max-width: 767px) {

	/* Title smaller */
	.checkout-cart h1 {
		font-size: 22px;
		margin-bottom: 15px;
	}

	/* Remove min-width - let table fit naturally */
	.checkout-cart .table-responsive {
		border: none;
		overflow-x: visible;
	}

	.checkout-cart .table {
		min-width: auto !important;
		width: 100%;
	}

	/* Smaller table cells */
	.checkout-cart .table td,
	.checkout-cart .table th,
	.checkout-cart .table thead td {
		padding: 8px 5px;
		font-size: 12px;
	}

	/* HIDE columns on mobile: image (1), model (3), unit price (5) */
	.checkout-cart .table thead td:nth-child(1),
	.checkout-cart .table tbody td:nth-child(1),
	.checkout-cart .table thead td:nth-child(3),
	.checkout-cart .table tbody td:nth-child(3),
	.checkout-cart .table thead td:nth-child(5),
	.checkout-cart .table tbody td:nth-child(5) {
		display: none;
	}

	/* Name column - wider */
	.checkout-cart .table td:nth-child(2) {
		max-width: 120px;
		word-wrap: break-word;
	}

	/* Quantity column - compact inline */
	.checkout-cart .table td:nth-child(4) {
		white-space: nowrap;
	}

	.checkout-cart .quantity-selector {
		display: inline-flex !important;
		max-width: 90px;
		margin-bottom: 5px;
	}

	.checkout-cart .quantity-selector .btn {
		padding: 3px 7px !important;
		font-size: 11px;
		min-width: 24px;
	}

	.checkout-cart .quantity-selector .form-control {
		width: 28px !important;
		min-width: 28px !important;
		padding: 3px !important;
		font-size: 12px;
	}

	/* Remove button - small inline */
	.checkout-cart .btn-danger.btn-sm {
		padding: 3px 6px !important;
		margin-left: 5px !important;
		margin-top: 0 !important;
		display: inline-block;
		width: auto;
	}

	/* Total column */
	.checkout-cart .table td:nth-child(6) {
		font-weight: 600;
		white-space: nowrap;
	}

	/* Totals section */
	.checkout-cart .col-sm-4.col-sm-offset-8 {
		width: 100%;
		margin-left: 0;
		padding: 0 15px;
	}

	#cart-totals {
		width: 100%;
		margin-top: 10px;
	}

	#cart-totals td {
		padding: 8px 10px;
		font-size: 13px;
	}

	/* Buttons full width stacked */
	.checkout-cart .buttons {
		padding: 15px 0;
	}

	.checkout-cart .buttons .pull-left,
	.checkout-cart .buttons .pull-right {
		float: none !important;
		text-align: center;
		margin-bottom: 10px;
	}

	.checkout-cart .cart-btn-primary {
		display: block;
		width: 100%;
		padding: 14px;
		font-size: 15px;
	}

	.checkout-cart .cart-btn-link {
		display: block;
		width: 100%;
		text-align: center;
		padding: 10px;
	}
}

/* Very small screens */
@media (max-width: 400px) {
	.checkout-cart h1 {
		font-size: 18px;
	}

	.checkout-cart .table td,
	.checkout-cart .table thead td {
		padding: 6px 3px;
		font-size: 11px;
	}

	.checkout-cart .table td:nth-child(2) {
		max-width: 90px;
	}

	.checkout-cart .quantity-selector .btn {
		padding: 2px 5px !important;
		min-width: 20px;
	}

	.checkout-cart .quantity-selector .form-control {
		width: 24px !important;
		min-width: 24px !important;
	}
}

/* ============================================================
   MARKETPLACE BUTTONS — solid branded CTAs
   ============================================================ */
.btn-marketplace {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	padding: 10px 20px !important;
	border: none !important;
	border-radius: 4px !important;
	text-decoration: none !important;
	font-weight: bold !important;
	font-size: 15px !important;
	color: #ffffff !important;
	box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
	transition: background-color 0.2s ease !important;
	cursor: pointer !important;
}
.btn-marketplace:hover,
.btn-marketplace:focus {
	text-decoration: none !important;
	color: #ffffff !important;
}
.btn-marketplace i {
	margin-right: 8px !important;
	font-size: 16px !important;
	color: #ffffff !important;
}
/* Brand colors */
.btn-avito  { background-color: #00AAFF !important; }
.btn-ozon   { background-color: #005BFF !important; }
.btn-wb     { background-color: #CB11AB !important; }
.btn-yandex { background-color: #F33335 !important; }
/* Hover — slightly darker */
.btn-avito:hover  { background-color: #0090D9 !important; }
.btn-ozon:hover   { background-color: #004ADD !important; }
.btn-wb:hover     { background-color: #A20E90 !important; }
.btn-yandex:hover { background-color: #D42B2D !important; }

/* ===== Messenger Hub Buttons (Header + Footer) ===== */
.messenger-hub-link {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50% !important;
    margin: 0 3px;
    text-decoration: none !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.12);
    transition: all 0.25s ease;
    font-size: 15px;
    line-height: 1;
    overflow: hidden;
}
.messenger-hub-link:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    filter: brightness(1.15);
    text-decoration: none !important;
}
.messenger-hub-link img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 0 !important;
}

/* Header: slightly bigger on desktop */
.messenger-hub-link.hub-desktop {
    width: 30px;
    height: 30px;
    font-size: 14px;
}
.messenger-hub-link.hub-mobile {
    width: 26px;
    height: 26px;
    font-size: 13px;
}
.messenger-hub-link.hub-mobile img {
    width: 16px;
    height: 16px;
}

/* Footer: uses footer-socials container styles */
.footer-socials .messenger-hub-link {
    width: 36px;
    height: 36px;
    font-size: 16px;
}
.footer-socials .messenger-hub-link img {
    width: 22px;
    height: 22px;
}