/**
 * Shop: AJAX filtre layout - sidebar + grid (referans görsele uygun)
 * Sınıflar pf- prefix ile tema çakışması önlenir.
 */

/* ========== Layout: 2 kolon (Bootstrap .container/.row kullanılmaz; box-sizing Bootstrap Reboot’ta) ========== */
.pf-layout {
	padding: 0 60px;
	box-sizing: border-box;
}

@media (max-width: 991px) {
	.pf-layout {
		grid-template-columns: 1fr;
	}
}

/* ========== Sol sidebar ========== */
.pf-sidebar-col {
	position: sticky;
	top: 24px;
	min-width: 0;
	padding-left: 30px;
}

.pf-sidebar {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
	padding: 20px 0;
}

/* Clear Filters butonu - mavi, beyaz metin + X ikon */
.pf-clear-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: calc(100% - 32px);
	margin: 0 16px 20px;
	padding: 12px 16px;
	background: #105af6;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.2s;
}

.pf-clear-btn:hover {
	background: #0d4ad6;
}

.pf-clear-icon {
	flex-shrink: 0;
}

/* Bölüm başlıkları - açılır/kapanır */
.pf-section {
	border-bottom: 1px solid #eee;
}

.pf-section:last-child {
	border-bottom: none;
}

.pf-section__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 14px 20px;
	background: none;
	border: none;
	font-size: 15px;
	font-weight: 600;
	color: #161921;
	font-family: inherit;
	text-align: left;
	cursor: pointer;
}

.pf-section__toggle:hover {
	background: #f9f9f9;
}

.pf-section__title {
	flex: 1;
}

.pf-section__chevron {
	flex-shrink: 0;
	transition: transform 0.2s;
}

.pf-section--open .pf-section__chevron {
	transform: rotate(180deg);
}

.pf-section__content {
	display: none;
	padding: 0 20px 16px;
}

.pf-section--open .pf-section__content {
	display: block;
}

/* Grup etiketi (Product Type, Brand) */
.pf-group {
	margin-bottom: 16px;
}

.pf-group:last-child {
	margin-bottom: 0;
}

.pf-group__label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #161921;
	margin-bottom: 10px;
}

/* Arama - Brand içinde */
.pf-search-wrap {
	position: relative;
	margin-bottom: 12px;
}

.pf-search {
	width: 100%;
	padding: 10px 36px 10px 12px;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	font-size: 14px;
	font-family: inherit;
	background: #fff;
}

.pf-search::placeholder {
	color: #898989;
}

.pf-search-icon {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	color: #898989;
}

/* Checkbox listesi */
.pf-checkboxes {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.pf-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #161921;
	cursor: pointer;
	padding: 4px 0;
}

.pf-checkbox input {
	width: 18px;
	height: 18px;
	accent-color: #105af6;
	cursor: pointer;
}

.pf-checkbox__text {
	flex: 1;
}

.pf-checkbox__count {
	color: #898989;
	font-size: 13px;
}

/* ========== Sağ: üst bar + grid ========== */
.pf-main-col {
	min-width: 0;
}

.pf-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 24px;
}

.pf-topbar__count {
	font-size: 15px;
	font-weight: 500;
	color: #161921;
	margin: 0;
}

.pf-count-num {
	font-weight: 600;
}

.pf-topbar__sort {
	display: flex;
	align-items: center;
	gap: 8px;
}

.pf-sort-label {
	font-size: 14px;
	color: #161921;
	margin: 0;
}

.pf-orderby {
	padding: 8px 32px 8px 12px;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	font-size: 14px;
	font-family: inherit;
	background: #fff;
	color: #161921;
	cursor: pointer;
	min-width: 160px;
}

/* Grid wrapper - AJAX ile güncellenir */
.pf-grid-wrap {
	position: relative;
}

.pf-grid-wrap.pf-loading {
	opacity: 0.6;
	pointer-events: none;
}


.pf-layout .pf-grid-wrap ul.products li,
.pf-layout .pf-grid-wrap .products.row > * {
	list-style: none !important;
	margin: 0 !important;
}

@media (max-width: 1199px) {
	.pf-layout .pf-grid-wrap ul.products,
	.pf-layout .pf-grid-wrap .products.row,
	.pf-layout ul.products.row {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 576px) {
	.pf-layout .pf-grid-wrap ul.products,
	.pf-layout .pf-grid-wrap .products.row,
	.pf-layout ul.products.row {
		grid-template-columns: 1fr;
	}
}



/* Kart: beyaz, yuvarlak köşe, yumuşak gölge */
.pf-layout .products .product {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	transition: box-shadow 0.2s ease;
}

.pf-layout .products .product:hover {
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.pf-layout .products .product > a {
	display: block;
	text-decoration: none;
	color: inherit;
}


.pf-layout .products .product a {
	display: flex;
	flex-direction: column;
}

/* Görsel: açık gri alan, yuvarlak köşe, ürün ortada */
.pf-layout .products .product img {
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: contain;
	display: block;
	background: #f0f0f0;
	padding: 28px 24px;
	border-radius: 12px 12px 0 0;
}

/* Kart alt: kategori (küçük gri) + isim (kalın siyah) + fiyat (kalın siyah) */
.pf-layout .products .product .product-info {
	display: block;
	padding: 20px 20px 24px;
}

.pf-layout .products .product .product-info .product-cat {
	display: block;
	font-size: 13px;
	font-weight: 400;
	color: #6b7280;
	line-height: 1.4;
	margin-bottom: 8px;
}

.pf-layout .products .product .product-name {
	font-size: 18px;
	font-weight: 700;
	color: #161921;
	margin: 0 0 8px;
	line-height: 1.3;
}

.pf-layout .products .product .product-price {
	font-size: 18px;
	font-weight: 700;
	color: #161921;
}

.pf-layout .products .product .add-to-cart {
	padding: 0 20px 20px;
}

.pf-layout .products .product .sale {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
}
