/* ── Minay — WooCommerce arama / shop / kategori layout ── */

body.search .site-main,
body.search-results .site-main,
body.woocommerce-shop .site-main,
body.post-type-archive-product .site-main,
body.tax-product_cat .site-main,
body.tax-product_tag .site-main,
body.search #content,
body.search-results #content,
body.woocommerce-shop #content,
body.post-type-archive-product #content,
body.tax-product_cat #content,
body.tax-product_tag #content,
body.search .content-area,
body.search-results .content-area,
body.woocommerce-shop .content-area,
body.post-type-archive-product .content-area,
body.tax-product_cat .content-area,
body.tax-product_tag .content-area {
	display: block !important;
	float: none !important;
	width: 100% !important;
	max-width: 1280px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: 20px;
	padding-right: 20px;
	box-sizing: border-box;
}

/* Hello / Hello Biz: başlık solda, ürünler sağda kalmasın */
body.search .site-main,
body.search-results .site-main,
body.woocommerce-shop .site-main,
body.post-type-archive-product .site-main,
body.tax-product_cat .site-main,
body.tax-product_tag .site-main {
	flex-direction: column !important;
	align-items: stretch !important;
	gap: 0 !important;
}

body.search .page-header,
body.search-results .page-header,
body.woocommerce-shop .page-header,
body.post-type-archive-product .page-header,
body.tax-product_cat .page-header,
body.tax-product_tag .page-header {
	display: block !important;
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 28px 0 18px !important;
	padding: 0 !important;
	flex: none !important;
}

body.search .page-header .entry-title,
body.search-results .page-header .entry-title,
body.search .page-header h1,
body.search-results .page-header h1,
body.woocommerce-shop .page-header .entry-title,
body.post-type-archive-product .page-header .entry-title,
body.tax-product_cat .page-header .entry-title,
body.tax-product_cat .page-header h1 {
	margin: 0 0 8px !important;
	color: #0f2345 !important;
	font-size: clamp(1.6rem, 3vw, 2.2rem) !important;
	font-weight: 850 !important;
	letter-spacing: -0.03em;
	line-height: 1.2;
}

body.search .woocommerce-breadcrumb,
body.search-results .woocommerce-breadcrumb,
body.woocommerce .woocommerce-breadcrumb {
	margin: 0 0 10px !important;
	font-size: 0.88rem;
	color: rgba(15, 35, 69, 0.55);
}

body.search .page-content,
body.search-results .page-content,
body.woocommerce-shop .page-content,
body.post-type-archive-product .page-content,
body.tax-product_cat .page-content,
body.tax-product_tag .page-content {
	display: block !important;
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
	flex: none !important;
	clear: both !important;
}

/* Boş / dar sidebar kolonunu kapat */
body.search #secondary,
body.search-results #secondary,
body.woocommerce-shop #secondary,
body.post-type-archive-product #secondary,
body.tax-product_cat #secondary,
body.tax-product_tag #secondary,
body.search .widget-area,
body.search-results .widget-area,
body.woocommerce-shop .widget-area,
body.post-type-archive-product .widget-area,
body.tax-product_cat .widget-area,
body.tax-product_tag .widget-area {
	display: none !important;
	width: 0 !important;
}

/* Elementor Theme Builder arşiv: yan yana kolonları alta al */
body.search .elementor-location-archive,
body.search-results .elementor-location-archive,
body.woocommerce-shop .elementor-location-archive,
body.post-type-archive-product .elementor-location-archive,
body.tax-product_cat .elementor-location-archive,
body.search .elementor-location-archive > .e-con,
body.search-results .elementor-location-archive > .e-con,
body.woocommerce-shop .elementor-location-archive > .e-con,
body.post-type-archive-product .elementor-location-archive > .e-con,
body.tax-product_cat .elementor-location-archive > .e-con {
	width: 100% !important;
	max-width: 1280px !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

body.search .elementor-location-archive .e-con.e-flex,
body.search-results .elementor-location-archive .e-con.e-flex,
body.woocommerce-shop .elementor-location-archive .e-con.e-flex,
body.post-type-archive-product .elementor-location-archive .e-con.e-flex,
body.tax-product_cat .elementor-location-archive .e-con.e-flex {
	flex-wrap: wrap !important;
}

body.search .elementor-location-archive .e-con > .e-con,
body.search-results .elementor-location-archive .e-con > .e-con,
body.woocommerce-shop .elementor-location-archive .e-con > .e-con,
body.post-type-archive-product .elementor-location-archive .e-con > .e-con,
body.tax-product_cat .elementor-location-archive .e-con > .e-con {
	width: 100% !important;
	max-width: 100% !important;
	flex: 1 1 100% !important;
}

/* Sonuç sayısı + sıralama */
body.search .woocommerce-result-count,
body.search-results .woocommerce-result-count,
body.woocommerce .woocommerce-result-count {
	float: none !important;
	margin: 0 0 8px !important;
	color: rgba(15, 35, 69, 0.7);
	font-weight: 600;
}

body.search .woocommerce-ordering,
body.search-results .woocommerce-ordering,
body.woocommerce .woocommerce-ordering {
	float: none !important;
	margin: 0 0 20px !important;
}

body.search .woocommerce-products-header,
body.search-results .woocommerce-products-header,
body.woocommerce .woocommerce-products-header,
body.search .woocommerce-notices-wrapper + .woocommerce-result-count,
body.search .shop-control-bar,
body.search .woocommerce-products-header__title {
	width: 100% !important;
}

/* Ürün grid — tam genişlik */
body.search ul.products,
body.search-results ul.products,
body.woocommerce-shop ul.products,
body.post-type-archive-product ul.products,
body.tax-product_cat ul.products,
body.tax-product_tag ul.products,
body.search .woocommerce ul.products,
body.search-results .woocommerce ul.products,
body.woocommerce ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 22px !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 0 28px !important;
	padding: 0 !important;
	list-style: none !important;
	clear: both !important;
	float: none !important;
}

body.search ul.products::before,
body.search ul.products::after,
body.search-results ul.products::before,
body.search-results ul.products::after,
body.woocommerce ul.products::before,
body.woocommerce ul.products::after {
	display: none !important;
	content: none !important;
}

body.search ul.products li.product,
body.search-results ul.products li.product,
body.woocommerce-shop ul.products li.product,
body.post-type-archive-product ul.products li.product,
body.tax-product_cat ul.products li.product,
body.tax-product_tag ul.products li.product,
body.woocommerce ul.products li.product {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	clear: none !important;
	display: flex !important;
	flex-direction: column;
	background: #fff;
	border: 1px solid rgba(15, 35, 69, 0.08);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(15, 35, 69, 0.05);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body.search ul.products li.product:hover,
body.search-results ul.products li.product:hover,
body.woocommerce ul.products li.product:hover {
	transform: translateY(-3px);
	border-color: rgba(23, 127, 121, 0.28);
	box-shadow: 0 14px 32px rgba(15, 35, 69, 0.1);
}

body.search ul.products li.product a img,
body.search-results ul.products li.product a img,
body.woocommerce ul.products li.product a img {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background: #f7f9fb;
	margin: 0 !important;
}

body.search ul.products li.product .woocommerce-loop-product__title,
body.search-results ul.products li.product .woocommerce-loop-product__title,
body.woocommerce ul.products li.product .woocommerce-loop-product__title,
body.search ul.products li.product h2,
body.search-results ul.products li.product h2 {
	padding: 12px 14px 6px !important;
	margin: 0 !important;
	font-size: 0.98rem !important;
	font-weight: 750 !important;
	line-height: 1.35 !important;
	color: #0f2345 !important;
}

body.search ul.products li.product .price,
body.search-results ul.products li.product .price,
body.woocommerce ul.products li.product .price {
	padding: 0 14px 8px;
	margin: 0;
	color: #177f79;
	font-weight: 750;
}

body.search ul.products li.product .button,
body.search-results ul.products li.product .button,
body.woocommerce ul.products li.product .button,
body.search ul.products li.product a.button,
body.search-results ul.products li.product a.button,
body.woocommerce ul.products li.product a.button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	align-self: stretch;
	margin: auto 14px 14px !important;
	padding: 10px 14px !important;
	min-height: 42px;
	border-radius: 999px !important;
	border: none !important;
	background: #0f2345 !important;
	color: #fff !important;
	font-size: 0.9rem !important;
	font-weight: 750 !important;
	text-align: center;
	text-decoration: none !important;
	white-space: nowrap;
}

body.search ul.products li.product .button:hover,
body.search-results ul.products li.product .button:hover,
body.woocommerce ul.products li.product .button:hover,
body.search ul.products li.product a.button:hover,
body.search-results ul.products li.product a.button:hover {
	background: #177f79 !important;
	color: #fff !important;
}

@media (max-width: 1100px) {
	body.search ul.products,
	body.search-results ul.products,
	body.woocommerce-shop ul.products,
	body.post-type-archive-product ul.products,
	body.tax-product_cat ul.products,
	body.tax-product_tag ul.products,
	body.woocommerce ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 760px) {
	body.search ul.products,
	body.search-results ul.products,
	body.woocommerce-shop ul.products,
	body.post-type-archive-product ul.products,
	body.tax-product_cat ul.products,
	body.tax-product_tag ul.products,
	body.woocommerce ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 14px !important;
	}

	body.search .site-main,
	body.search-results .site-main,
	body.woocommerce-shop .site-main,
	body.post-type-archive-product .site-main,
	body.tax-product_cat .site-main {
		padding-left: 16px;
		padding-right: 16px;
	}
}

@media (max-width: 420px) {
	body.search ul.products,
	body.search-results ul.products,
	body.woocommerce ul.products {
		grid-template-columns: 1fr !important;
	}
}
