/**
 * Mağaza / kategori / etiket ürün listesi — referans düzen.
 */

/* Sayfa zemini — product-showcase ile aynı şerit rengi */
body.tax-product_cat,
body.tax-product_tag,
body.woocommerce-shop,
body.post-type-archive-product {
	background: var(--banyoma-showcase-strip-bg);
	/*
	 * Breadcrumb “A” ile ürün grid’i aynı yatay hizada: tek değer.
	 * .banyoma-container (header) ile uyum: 16px masaüstü; mobilde toolbar ile eşleşir.
	 */
	--banyoma-plp-inline: 16px;
}

/* Vitrin gibi: grid doğrudan beyaz kutuda; ekstra gri blok yok */
.banyoma-plp-products-surface {
	background: transparent;
	border-radius: 0;
	padding: 0;
	margin: 0 0 8px;
	box-sizing: border-box;
}

body.tax-product_cat .site-main,
body.post-type-archive-product .site-main,
body.woocommerce-shop .site-main {
	padding-top: 12px;
}

/* İçerik genişliği — biraz daha dar, kompakt */
body.tax-product_cat #primary,
body.tax-product_tag #primary,
body.woocommerce-shop #primary,
body.post-type-archive-product #primary {
	float: none;
	width: 100%;
	max-width: none;
}

/*
 * Tek sütun: inc/woocommerce-plp.php — banyoma-plp-shell breadcrumb + marka + toolbar + .woocommerce’yu sarar.
 * Kenar boşluğu burada; iç bloklar tam genişlik (breadcrumb’daki A ile grid aynı çizgi).
 */
.banyoma-plp-shell {
	max-width: var(--banyoma-max);
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--banyoma-plp-inline);
	padding-right: var(--banyoma-plp-inline);
	box-sizing: border-box;
}

.banyoma-plp-shell .banyoma-plp-head.banyoma-container,
.banyoma-plp-shell .banyoma-plp-brands-wrap.banyoma-container,
.banyoma-plp-shell .banyoma-plp-toolbar.banyoma-container {
	max-width: none;
	width: 100%;
	margin-left: 0;
	margin-right: 0;
	padding-left: 0;
	padding-right: 0;
	box-sizing: border-box;
}

/* Kategori / etiket arşiv açıklaması (WooCommerce taxonomy description) */
.banyoma-plp-term-description.term-description {
	margin: 0 0 20px;
	padding: 0 0 4px;
	font-family: "Roboto", sans-serif;
	font-size: 15px;
	line-height: 1.65;
	color: #374151;
}

.banyoma-plp-term-description.term-description p {
	margin: 0 0 12px;
}

.banyoma-plp-term-description.term-description p:last-child {
	margin-bottom: 0;
}

/* Ürün grid’inden sonra (footer üstü) */
.banyoma-plp-term-description.term-description.banyoma-plp-term-description--after-loop {
	margin: 28px 0 8px;
	padding: 24px 0 0;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* Shell yoksa (eski önbellek): yedek */
body.tax-product_cat .woocommerce,
body.tax-product_tag .woocommerce,
body.woocommerce-shop .woocommerce,
body.post-type-archive-product .woocommerce {
	max-width: var(--banyoma-max);
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding: 22px var(--banyoma-plp-inline) 24px;
	box-sizing: border-box;
	background: #fff;
	border: var(--banyoma-showcase-box-border);
	border-radius: var(--banyoma-showcase-box-radius);
	box-shadow: var(--banyoma-showcase-box-shadow);
}

body.tax-product_cat .banyoma-plp-shell .woocommerce,
body.tax-product_tag .banyoma-plp-shell .woocommerce,
body.woocommerce-shop .banyoma-plp-shell .woocommerce,
body.post-type-archive-product .banyoma-plp-shell .woocommerce {
	max-width: none;
	width: 100%;
	margin-left: 0;
	margin-right: 0;
	padding: 22px 0 24px;
}

/* Shell dışında kalan durumlar için (PLP’de artık nadir) */
.banyoma-plp-head.banyoma-container,
.banyoma-plp-brands-wrap.banyoma-container,
.banyoma-plp-toolbar.banyoma-container {
	max-width: var(--banyoma-max);
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--banyoma-plp-inline);
	padding-right: var(--banyoma-plp-inline);
	box-sizing: border-box;
}

/* Breadcrumb */
.banyoma-plp-bc {
	font-family: "Roboto", sans-serif;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #6b7280;
	margin: 0 0 16px;
	line-height: 1.4;
}

.banyoma-plp-bc__home,
.banyoma-plp-bc__link {
	color: #6b7280;
	text-decoration: none;
}

.banyoma-plp-bc__home:hover,
.banyoma-plp-bc__link:hover {
	color: #374151;
	text-decoration: underline;
}

.banyoma-plp-bc__sep {
	margin: 0 4px;
	color: #9ca3af;
}

.banyoma-plp-bc__current {
	display: inline-block;
	margin-left: 2px;
	padding: 4px 10px;
	border-radius: 6px;
	background: #f3f4f6;
	color: #374151;
	font-weight: 600;
}

/* Marka şeridi */
.banyoma-plp-brands-wrap {
	margin-bottom: 18px;
}

.banyoma-brand-slider {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 0 22px;
	border-bottom: 1px solid var(--banyoma-border);
}

.banyoma-brand-slider__viewport {
	flex: 1;
	min-width: 0;
	overflow: hidden;
}

.banyoma-brand-slider__track {
	display: flex;
	gap: 0;
	align-items: stretch;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.banyoma-brand-slider__track::-webkit-scrollbar {
	display: none;
}

.banyoma-brand-slider__item {
	flex: 0 0 auto;
	width: 120px;
	border-right: 1px solid #e5e7eb;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
}

.banyoma-brand-slider__item:last-child {
	border-right: none;
}

.banyoma-brand-slider__item.is-active .banyoma-brand-slider__link {
	outline: 2px solid var(--banyoma-blue);
	outline-offset: 2px;
	border-radius: 6px;
}

.banyoma-brand-slider__link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 8px 12px;
	text-decoration: none;
}

.banyoma-brand-slider__img {
	max-width: 100%;
	max-height: 44px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.banyoma-brand-slider__fallback {
	font-size: 13px;
	font-weight: 700;
	color: #64748b;
}

.banyoma-brand-slider__nav {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border: 1px solid var(--banyoma-border);
	border-radius: 8px;
	background: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: #475569;
}

.banyoma-brand-slider__nav:hover {
	background: #f8fafc;
}

.banyoma-brand-slider__dots {
	position: absolute;
	left: 50%;
	bottom: 4px;
	transform: translateX(-50%);
	display: flex;
	gap: 6px;
}

.banyoma-brand-slider__dots span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #cbd5e1;
}

.banyoma-brand-slider__dots span.is-active {
	background: #475569;
}

/* Araç çubuğu */
.banyoma-plp-toolbar {
	margin-bottom: 14px;
}

.banyoma-plp-toolbar__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
}

.banyoma-plp-toolbar__row--filters {
	justify-content: space-between;
	margin-bottom: 12px;
}

.banyoma-plp-toolbar__row--meta {
	justify-content: space-between;
	border-bottom: 1px solid var(--banyoma-border);
	padding-bottom: 12px;
	margin-bottom: 8px;
}

.banyoma-plp-toolbar__left,
.banyoma-plp-toolbar__center,
.banyoma-plp-toolbar__right {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.banyoma-plp-toolbar__center {
	flex: 1;
	justify-content: center;
	min-width: 200px;
}

.banyoma-plp-pill {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border-radius: 8px;
	border: 1px solid var(--banyoma-border);
	background: #fff;
	font-family: "Roboto", sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: #374151;
	text-decoration: none;
}

.banyoma-plp-pill--active {
	background: #eff6ff;
	border-color: #93c5fd;
	color: #1e40af;
}

.banyoma-plp-pill--ghost {
	border-style: dashed;
	color: #64748b;
}

.banyoma-plp-label {
	font-size: 13px;
	color: #64748b;
	margin-right: 4px;
}

.banyoma-plp-select {
	padding: 6px 28px 6px 10px;
	border-radius: 8px;
	border: 1px solid var(--banyoma-border);
	font-size: 13px;
	background: #fff;
}

.banyoma-plp-sort {
	display: inline-flex;
	padding: 8px 12px;
	border-radius: 8px;
	border: 1px solid transparent;
	font-family: "Roboto", sans-serif;
	font-size: 13px;
	font-weight: 500;
	color: #64748b;
	text-decoration: none;
}

.banyoma-plp-sort:hover {
	color: #111827;
}

.banyoma-plp-sort.is-active {
	border-color: var(--banyoma-border);
	background: #f9fafb;
	color: #111827;
}

.banyoma-plp-count {
	font-family: "Roboto", sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: #111827;
}

.banyoma-plp-infinite-hint {
	font-family: "Roboto", sans-serif;
	font-size: 12px;
	font-weight: 400;
	color: #64748b;
	margin-left: auto;
	text-align: right;
}

.banyoma-plp-infinite-sentinel {
	height: 1px;
	width: 100%;
	pointer-events: none;
}

.banyoma-plp-infinite-status {
	margin: 10px 0 0;
	padding: 0;
	text-align: center;
	font-family: "Roboto", sans-serif;
	font-size: 13px;
	color: #64748b;
	min-height: 1.25em;
}

.banyoma-plp-pagination {
	font-size: 14px;
}

.banyoma-plp-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	margin: 0 2px;
	padding: 0 8px;
	border-radius: 6px;
	text-decoration: none;
	color: #475569;
}

.banyoma-plp-pagination .page-numbers.current {
	background: #1e3a5f;
	color: #fff;
	font-weight: 600;
}

.banyoma-plp-pagination .page-numbers:hover:not(.current) {
	background: #f1f5f9;
}

/* Ürün grid — 4 sütun; vitrin ile aynı gap (row 24px / col 8px) */
.banyoma-plp-products-surface ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	row-gap: 24px;
	column-gap: 8px;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	width: 100% !important;
	float: none !important;
	clear: both !important;
}

.banyoma-plp-products-surface ul.products::before,
.banyoma-plp-products-surface ul.products::after {
	display: none !important;
	content: none !important;
}

.banyoma-plp-products-surface ul.products li.product,
.banyoma-plp-products-surface ul.products li.product-category {
	width: 100% !important;
	max-width: none !important;
	float: none !important;
	clear: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.banyoma-plp-products-surface ul.products li.product.first,
.banyoma-plp-products-surface ul.products li.product.last {
	margin: 0 !important;
	clear: none !important;
}

.banyoma-plp-products-surface ul.products li.product:empty {
	display: none !important;
}

/* Yedek: sarmalayıcı yoksa (eski şablon) */
.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	row-gap: 24px;
	column-gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.woocommerce ul.products li.product.banyoma-plp-card-wrap {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
	padding: 0;
}

/* .banyoma-product-showcase__card ile aynı kutu */
.banyoma-plp-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
	margin: 0;
	min-width: 0;
	max-width: 100%;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	padding: 4px 5px 6px;
	overflow: hidden;
	background: #fff;
	box-sizing: border-box;
	box-shadow:
		0 1px 2px rgba(0, 0, 0, 0.05),
		0 4px 12px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.banyoma-plp-card:hover {
	box-shadow:
		0 2px 6px rgba(15, 23, 42, 0.08),
		0 8px 20px rgba(0, 0, 0, 0.08);
	border-color: #cbd5e1;
}

.banyoma-plp-card:hover .banyoma-plp-card__title {
	color: var(--banyoma-orange);
}

/*
 * .banyoma-product-showcase__thumb ile aynı oran (80/39).
 * 4 sütunda hücre vitrindeki 5 sütundan geniş; görseli vitrin hücresi genişliğinde tutmak için
 * masaüstünde %80 genişlik (4/5 oranı).
 */
.banyoma-plp-card__img-wrap {
	position: relative;
	overflow: hidden;
	border-radius: 4px;
	background: #fff;
	width: 100%;
	max-width: 100%;
	aspect-ratio: 80 / 39;
	box-sizing: border-box;
}

.banyoma-plp-card__img-wrap .onsale {
	position: absolute;
	top: 4px;
	left: 4px;
	z-index: 2;
	margin: 0;
	font-size: 10px;
	padding: 2px 6px;
}

.banyoma-plp-card__img-wrap img {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center;
	display: block;
}

/* .banyoma-product-showcase__title ile uyumlu */
.banyoma-plp-card__title {
	margin: 3px 0 0;
	padding: 0 2px;
	font-family: "Roboto", sans-serif;
	font-style: normal;
	font-weight: 300;
	font-size: 14px;
	line-height: 20px;
	text-align: center;
	color: #333333;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.banyoma-plp-card__price {
	padding: 4px 2px 0;
	text-align: center;
	font-family: "Roboto", sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	color: #333333;
}

.banyoma-plp-card__price del {
	display: inline;
	font-size: 0.85em;
	font-weight: 500;
	color: #c62828;
	margin-right: 4px;
	text-decoration: line-through;
}

.banyoma-plp-card__price ins {
	text-decoration: none;
	color: #333333;
	background: none;
}

.banyoma-plp-card__price .woocommerce-Price-amount {
	font-weight: 500;
	color: #333333;
}

@media (max-width: 1024px) {
	.banyoma-plp-products-surface ul.products,
	.woocommerce ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1025px) {
	.banyoma-plp-card__img-wrap {
		width: 80%;
		margin-left: auto;
		margin-right: auto;
	}
}

@media (max-width: 1024px) and (min-width: 769px) {
	.banyoma-plp-card__img-wrap {
		width: 60%;
		margin-left: auto;
		margin-right: auto;
	}
}

@media (max-width: 768px) {
	body.tax-product_cat,
	body.tax-product_tag,
	body.woocommerce-shop,
	body.post-type-archive-product {
		--banyoma-plp-inline: 10px;
	}

	body.tax-product_cat .woocommerce,
	body.tax-product_tag .woocommerce,
	body.woocommerce-shop .woocommerce,
	body.post-type-archive-product .woocommerce {
		padding: 16px var(--banyoma-plp-inline) 18px;
	}

	body.tax-product_cat .banyoma-plp-shell .woocommerce,
	body.tax-product_tag .banyoma-plp-shell .woocommerce,
	body.woocommerce-shop .banyoma-plp-shell .woocommerce,
	body.post-type-archive-product .banyoma-plp-shell .woocommerce {
		padding: 16px 0 18px;
	}

	.banyoma-plp-products-surface ul.products,
	.woocommerce ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 16px;
		column-gap: 8px;
	}

	.banyoma-plp-toolbar__row--filters {
		flex-direction: column;
		align-items: stretch;
	}

	.banyoma-plp-toolbar__center {
		justify-content: flex-start;
	}
}

@media (max-width: 480px) {
	.banyoma-plp-products-surface ul.products,
	.woocommerce ul.products {
		grid-template-columns: 1fr;
	}
}
