/* Otopars B2B catalog archive shell */
body.otopars-catalog-archive .mr_blog-sidebar,
body.otopars-catalog-archive .shop-list-content,
body.otopars-catalog-archive .wps_product_list_button {
	display: none !important;
}

.otopars-catalog-shell {
	display: grid;
	grid-template-columns: minmax(220px, 280px) 1fr;
	grid-template-rows: auto 1fr;
	gap: 1.5rem;
	max-width: 1400px;
	margin: 0 auto;
	padding: 1.5rem 1rem 3rem;
}

.otopars-catalog-sidebar {
	grid-column: 1;
	grid-row: 1 / -1;
	background: #f6f7f8;
	border-radius: 8px;
	padding: 1rem 1.1rem;
}

.otopars-catalog-toolbar {
	grid-column: 2;
	grid-row: 1;
}

.otopars-catalog-main {
	grid-column: 2;
	grid-row: 2;
}

.otopars-catalog-filters-toggle {
	display: none;
}

.otopars-catalog-sidebar__block {
	margin-bottom: 1.25rem;
}

.otopars-catalog-sidebar__block h3 {
	margin: 0 0 0.6rem;
	font-size: 0.95rem;
}

.otopars-catalog-sidebar input[type="search"],
.otopars-catalog-sidebar input[type="text"] {
	width: 100%;
	padding: 0.55rem 0.7rem;
	border: 1px solid #cfd4da;
	border-radius: 6px;
}

.otopars-catalog-stock-radios {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.otopars-catalog-stock-radios label {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.9rem;
	cursor: pointer;
}

.otopars-catalog-filter-list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.otopars-catalog-filter-list > input[data-role="list-filter"] {
	margin: 0;
}

.otopars-catalog-filter-list__scroll {
	max-height: 240px;
	overflow-y: auto;
	overflow-x: hidden;
	border: 1px solid #e2e5e9;
	border-radius: 6px;
	background: #fff;
	padding: 0.35rem 0.45rem;
}

.otopars-catalog-filter-list__empty {
	margin: 0.4rem 0;
	font-size: 0.85rem;
	color: #666;
}

.otopars-catalog-filter-row {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0;
	padding: 0.28rem 0.15rem;
	font-size: 0.88rem;
	cursor: pointer;
}

.otopars-catalog-filter-row--child {
	padding-left: 1.1rem;
}

.otopars-catalog-filter-row__name {
	flex: 1 1 auto;
	min-width: 0;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	color: #1a1a1a;
}

.otopars-catalog-filter-row__count {
	flex: 0 0 auto;
	min-width: 1.5rem;
	padding: 0.1rem 0.45rem;
	border-radius: 999px;
	background: #4a4f55;
	color: #fff;
	font-size: 0.72rem;
	font-weight: 600;
	text-align: center;
	line-height: 1.35;
}

.otopars-catalog-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.75rem 1.25rem;
	margin-bottom: 1rem;
}

.otopars-catalog-title {
	flex: 1 1 auto;
	margin: 0;
	font-size: 1.5rem;
}

.otopars-catalog-count {
	margin: 0;
	color: #666;
}

.otopars-catalog-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
}

/* Anasayfa slider_path kart stilleri catalog grid’de de geçerli; sütun sarmalayıcı */
.otopars-catalog-grid.slider_path .otopars-catalog-card.wps_product_column,
.otopars-catalog-grid.slider_path .wps_product_column {
	width: 100% !important;
	max-width: 100% !important;
	flex: none !important;
	margin: 0 !important;
	float: none !important;
}

.otopars-catalog-grid.slider_path .mr_product_block.product-block_hr_001 {
	height: 100%;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Başlık ekran görüntüsündeki gibi ortalı */
html body .otopars-catalog-grid.slider_path .product-block_hr_001 .mr_product_title,
html body .otopars-catalog-grid.slider_path .product-block_hr_001 .mr_product_title a {
	text-align: center !important;
}

@media (max-width: 991px) {
	.otopars-catalog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 575px) {
	.otopars-catalog-grid {
		grid-template-columns: 1fr;
	}
}

.otopars-catalog-shell.is-loading .otopars-catalog-main {
	opacity: 0.55;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

.otopars-related-products {
	margin: 2.5rem 0 1rem;
	max-width: 1400px;
	margin-left: auto;
	margin-right: auto;
	padding: 0 1rem;
}

.otopars-related-products .shop-page-title .title {
	font-size: 1.35rem;
	font-weight: 700;
	margin-bottom: 1rem;
}

.otopars-related-grid {
	margin-top: 0.5rem;
}

/* Filtre AJAX sonrası kalp: YITH SVG currentColor / fill */
html body .otopars-catalog-grid .product-block_hr_001 .overlay .yith-add-to-wishlist-button-block,
html body .otopars-catalog-grid .product-block_hr_001 .overlay .yith-wcwl-add-to-wishlist-button,
html body .otopars-related-grid .product-block_hr_001 .overlay .yith-add-to-wishlist-button-block {
	color: #1a1a1a !important;
}

html body .otopars-catalog-grid .product-block_hr_001 .overlay .yith-wcwl-add-to-wishlist-button svg,
html body .otopars-catalog-grid .product-block_hr_001 .overlay .yith-wcwl-add-to-wishlist svg,
html body .otopars-catalog-grid .product-block_hr_001 .overlay .yith-wcwl-add-to-wishlist i,
html body .otopars-catalog-grid .product-block_hr_001 .overlay .yith-wcwl-add-to-wishlist i::before,
html body .otopars-related-grid .product-block_hr_001 .overlay svg,
html body .otopars-related-grid .product-block_hr_001 .overlay i {
	color: #1a1a1a !important;
	fill: #1a1a1a !important;
	stroke: #1a1a1a !important;
}

.otopars-catalog-sentinel {
	height: 1px;
	width: 100%;
	margin-top: 1rem;
}

/* Mobil: Filtreler butonu başlığın altında, panel ürünlerin üstünde. Cascade için en sonda. */
@media (max-width: 991px) {
	html body .otopars-catalog-shell {
		display: flex !important;
		flex-direction: column;
		gap: 0.85rem;
	}

	html body .otopars-catalog-toolbar {
		order: 1;
		grid-column: auto;
		grid-row: auto;
		margin-bottom: 0;
	}

	html body .otopars-catalog-shell .otopars-catalog-filters-toggle {
		order: 2;
		display: flex !important;
		align-items: center;
		justify-content: center;
		width: 100%;
		box-sizing: border-box;
		min-height: 44px;
		margin: 0;
		padding: 0.7rem 1rem;
		border: 0;
		border-radius: 8px;
		background: #ff6b00;
		color: #fff;
		font-size: 1rem;
		font-weight: 600;
		letter-spacing: 0.02em;
		cursor: pointer;
		-webkit-appearance: none;
		appearance: none;
	}

	html body .otopars-catalog-shell .otopars-catalog-filters-toggle:hover,
	html body .otopars-catalog-shell .otopars-catalog-filters-toggle:focus-visible {
		background: #e85f00;
		outline: none;
	}

	html body .otopars-catalog-sidebar {
		order: 3;
		grid-column: auto;
		grid-row: auto;
	}

	html body .otopars-catalog-main {
		order: 4;
		grid-column: auto;
		grid-row: auto;
	}

	html body .otopars-catalog-shell:not(.is-filters-open) .otopars-catalog-sidebar {
		display: none !important;
	}

	html body .otopars-catalog-shell.is-filters-open .otopars-catalog-sidebar {
		display: block !important;
		padding: 0.75rem 1.1rem 1rem;
		background: #f6f7f8;
	}
}

@media (min-width: 992px) {
	html body .otopars-catalog-filters-toggle {
		display: none !important;
	}

	html body .otopars-catalog-filters {
		display: block !important;
	}
}
