/**
 * Laravel Blade (#productListPage) October temasındaki #mainWrapper .productList
 * seçicileriyle eşleşmediği için liste/galeri görselleri max-width almıyordu.
 */

#productListPage .list .item .img,
#productListPage .gallery .img {
	width: 100%;
	position: relative;
	text-align: center;
	overflow: hidden;
}

#productListPage .list .item .img img,
#productListPage .gallery .img img {
	max-width: 100%;
	height: auto;
	display: block;
	margin-left: auto;
	margin-right: auto;
	transition: all 0.3s;
}

#productListPage .content {
	overflow: hidden;
}

#productListPage .content img,
#productListPage .content table {
	max-width: 100%;
	height: auto;
}

#productListPage .productBrandLogo img,
#productListPage .brandLogo img {
	max-height: 52px;
	width: auto;
	max-width: 100%;
}

#productListPage .gallery {
	clear: both;
	margin-top: 15px;
}

#productListPage .gallery::after {
	content: '';
	display: table;
	clear: both;
}

/* Kategori / marka ürün kartları: resim + açıklama aynı blokta kalsın */
#productListPage .list {
	display: flex;
	flex-wrap: wrap;
}

#productListPage .list > .col-md-12,
#productListPage .list > .col-sm-12,
#productListPage .list > .col-xs-12 {
	width: 100%;
}

#productListPage .list .item {
	margin-bottom: 26px;
}

#productListPage .list .item .img img {
	width: 100%;
	height: auto;
	object-fit: contain;
}

#productListPage .list .item .productTitle {
	margin-top: 10px;
	min-height: 42px;
	line-height: 1.35;
}

#productListPage .list .item .productTitle a {
	color: #2d2d2d;
	font-size: 16px;
}

@media (max-width: 767px) {
	#productListPage .list .item .img img {
		height: auto;
	}
}

/* Footer sol logo (imza/logo) aşırı büyümesin */
footer .footerLogo {
	margin-bottom: 14px;
}

footer .footerLogo img {
	width: 100%;
	max-width: 340px;
	height: auto;
}

/* İçerik ile footer birbirine yapışmasın */
html,
body {
	min-height: 100vh;
}

body {
	display: flex;
	flex-direction: column;
}

#layout-content {
	flex: 1 0 auto;
	padding-bottom: 28px;
}

#layout-footer {
	margin-top: auto;
	border-top: 1px solid #e6e6e6;
}

@media (max-width: 767px) {
	footer .footerLogo img {
		max-width: 260px;
	}
}

/* Home header: logo kaybolmasın, menü okunur olsun */
#layout-header.absoluteHeader {
	position: relative;
	z-index: 20;
}

.absoluteHeader header {
	background: rgba(255, 255, 255, 0.94) !important;
}

.absoluteHeader header .logo {
	padding: 14px 0 10px;
}

.absoluteHeader header .logo img {
	filter: none !important;
	max-width: 220px;
}

.absoluteHeader header .menu {
	margin-top: 14px;
}

.absoluteHeader header .menu ul li > a {
	color: #1e51a4 !important;
	font-size: 14px;
	letter-spacing: 0.3px;
}

.absoluteHeader header .menu ul li > a:hover {
	border-color: #1e51a4 !important;
}

/* Header satırı: menü + arama aynı hizada ve okunur */
@media (min-width: 992px) {
	#layout-header .container {
		display: flex;
		align-items: center;
	}

	#layout-header .container > [class*="col-"] {
		float: none;
	}

	#layout-header .container > .col-md-3 {
		width: 28%;
	}

	#layout-header .container > .col-md-7 {
		width: 50%;
	}

	#layout-header .container > .col-md-2 {
		width: 22%;
	}

	.absoluteHeader header .menu {
		margin-top: 0;
	}

	.absoluteHeader header .menu ul {
		text-align: center;
		white-space: nowrap;
	}

	.absoluteHeader header .menu ul li {
		padding: 0 12px;
	}

	.absoluteHeader header .menu ul li > a {
		font-size: 18px !important;
		line-height: 1.2;
		padding: 8px 0;
	}

	#layout-header .searchForm {
		margin-top: 0;
	}

	#layout-header .searchForm .search-form {
		position: relative;
	}

	#layout-header .searchForm .searchInput {
		width: 100%;
		height: 36px;
		padding: 6px 38px 6px 10px;
		border: 1px solid #bfc7d1;
		font-size: 14px;
		line-height: 20px;
	}

	#layout-header .searchForm button {
		position: absolute;
		top: 50%;
		right: 8px;
		transform: translateY(-50%);
		border: 0;
		background: transparent;
		padding: 0;
		color: #1e51a4;
	}
}
