/*
Theme Name: Samatex Child - Ada Kastas
Template: samatex
Description: Kastas tarzi urun katalogu icin child theme
Version: 1.2.0
*/

@import url('../samatex/style.css');

/* Header logo - Enovathemes max-height:0 duzeltmesi, tek logo */
#header-logo-717823 .logo,
#header-logo-370459 .logo,
.header-logo .logo {
	max-height: 76px !important;
	height: auto !important;
	width: auto !important;
	display: inline-block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

#header-logo-717823 .sticky-logo,
#header-logo-370459 .sticky-logo,
.header-logo img.sticky-logo {
	display: none !important;
	max-height: 0 !important;
	visibility: hidden !important;
}

#header-logo-717823,
#header-logo-370459 {
	min-width: 180px;
}

.header-logo a {
	display: flex;
	align-items: center;
}

/* Header: masaustunde tek (desktop), mobilde tek (mobile) */
@media (min-width: 1025px) {
	body .header.et-desktop {
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
	}
	body .header.et-mobile {
		display: none !important;
	}
	body.desktop-hide-important .header.et-desktop.desktop-true {
		display: block !important;
	}
}

@media (max-width: 1024px) {
	body .header.et-mobile {
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
	}
	body .header.et-desktop {
		display: none !important;
	}
}

/* Header mini urun arama - header satirina gomulu */
.header .vc-row-855399 .kastas-header-search,
.header .vc-row-855399 .ada-header-search-slot {
	float: right;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center;
	height: 88px !important;
	line-height: normal !important;
	margin: 0 14px 0 0;
	padding: 0;
	z-index: 5;
	pointer-events: auto;
}

.header.sticky-true.active .vc-row-855399 .kastas-header-search {
	height: 88px !important;
}

.kastas-header-search-form {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 36px;
	padding: 0 12px;
	border-radius: 8px;
	border: 1px solid #e4e4e8;
	background: #fff;
	box-shadow: none;
	margin: 0;
}

.kastas-header-search-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 15px;
	width: 15px;
	height: 15px;
	color: #9ca3af;
	line-height: 0;
}

.kastas-header-search-icon svg {
	display: block;
	width: 15px;
	height: 15px;
}

.kastas-header-search-form input[type="search"] {
	flex: 1 1 auto;
	height: auto;
	min-height: 0;
	border: 0;
	border-radius: 0;
	padding: 0;
	margin: 0;
	font-size: 13px;
	line-height: 1.2;
	background: transparent;
	color: #212121;
	width: 168px;
	min-width: 0;
	-webkit-appearance: none;
	appearance: none;
	vertical-align: middle;
}

.kastas-header-search-form input[type="search"]::placeholder {
	color: #9ca3af;
	line-height: 1.2;
}

.kastas-header-search-form input[type="search"]:focus {
	outline: none;
}

.kastas-header-search-form input[type="search"]::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.kastas-header-search-form:focus-within {
	border-color: #c7c7d1;
	background-color: #fafafa;
}

/* Bizi arayin - logo laciverdi */
#et-header-button-48215 .regular {
	background-color: #131a6c !important;
}

#et-header-button-48215:hover .regular {
	background-color: #0f1558 !important;
}

/* Footer - logo laciverdi */
#et-footer-3408,
#et-footer-3408 .vc_row,
#et-footer-3408 .wpb_row,
.vc_custom_1548662621991 {
	background-color: #131a6c !important;
}

#et-footer-3408 .widgettitle,
#et-footer-3408 .widget_text,
#et-footer-3408 .textwidget,
#et-footer-3408 p,
#et-footer-3408 strong {
	color: #fff;
}

#et-footer-3408 a {
	color: rgba(255, 255, 255, 0.9);
}

#et-footer-3408 a:hover {
	color: #fff;
}

.ada-footer-legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 6px 10px;
	font-size: 14px;
	line-height: 1.5;
}

.ada-footer-legal a {
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
	white-space: nowrap;
}

.ada-footer-legal a:hover {
	color: #fff;
	text-decoration: underline;
}

.ada-footer-legal-sep {
	color: rgba(255, 255, 255, 0.45);
	user-select: none;
}

@media (max-width: 767px) {
	#et-footer-3408 .vc-column-898234 .wpb_wrapper {
		margin-top: 10px;
	}

	.ada-footer-legal {
		justify-content: flex-start;
	}
}

.ada-footer-credit {
	display: block;
	width: 100%;
	margin: 0;
	padding: 14px 16px 18px;
	text-align: center;
	font-size: 13px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.65);
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	box-sizing: border-box;
}

.ada-footer-credit a {
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
	font-weight: 600;
}

.ada-footer-credit a:hover {
	color: #fff;
	text-decoration: underline;
}

/* Blog hero gorselleri */
.ada-blog-hero {
	margin: 0 0 28px;
	border-radius: 12px;
	overflow: hidden;
	background: #f4f5fa;
}

.ada-blog-hero img {
	display: block;
	width: 100%;
	height: auto;
}

/* Cerez onay bandi */
.ada-cookie-banner {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 100000;
	max-width: 920px;
	margin: 0 auto;
}

.ada-cookie-banner__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 18px 22px;
	border-radius: 14px;
	background: #fff;
	border: 1px solid rgba(19, 26, 108, 0.12);
	box-shadow: 0 16px 40px rgba(19, 26, 108, 0.18);
}

.ada-cookie-banner__text strong {
	display: block;
	margin-bottom: 6px;
	font-size: 16px;
	color: #131a6c;
}

.ada-cookie-banner__text p {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: #4b5563;
}

.ada-cookie-banner__text a {
	color: #131a6c;
	font-weight: 600;
	text-decoration: underline;
}

.ada-cookie-banner__actions {
	display: flex;
	flex-shrink: 0;
	gap: 10px;
}

.ada-cookie-btn {
	border: 0;
	border-radius: 999px;
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ada-cookie-btn--reject {
	background: #fff;
	color: #374151;
	border: 1px solid #d1d5db;
}

.ada-cookie-btn--reject:hover {
	background: #f9fafb;
	border-color: #9ca3af;
}

.ada-cookie-btn--accept {
	background: #131a6c;
	color: #fff;
}

.ada-cookie-btn--accept:hover {
	background: #0f1558;
}

.ada-cookie-settings {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 99990;
	border: 1px solid rgba(19, 26, 108, 0.2);
	border-radius: 999px;
	padding: 8px 14px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	color: #131a6c;
	background: #fff;
	box-shadow: 0 8px 20px rgba(19, 26, 108, 0.12);
	cursor: pointer;
}

.ada-cookie-settings:hover {
	background: #f4f5fa;
}

.ada-cookie-banner.is-visible ~ .ada-cookie-settings,
body:has(.ada-cookie-banner.is-visible) .ada-cookie-settings {
	display: none !important;
}

@media (max-width: 767px) {
	.ada-cookie-banner__inner {
		flex-direction: column;
		align-items: stretch;
	}

	.ada-cookie-banner__actions {
		width: 100%;
	}

	.ada-cookie-btn {
		flex: 1 1 0;
	}
}

@media (max-width: 1280px) {
	.kastas-header-search-form input[type="search"] {
		width: 130px;
	}
	.kastas-header-search {
		margin-right: 8px;
	}
}

@media (max-width: 1024px) {
	.kastas-header-search {
		display: none !important;
	}
}

/* Kastas sayfalarinda Samatex urun gridini sifirla */
body.kastas-catalog-active .product-layout .layout-content ul.products,
body.kastas-catalog-active .kastas-catalog-page ul.products {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Eski buyutec aramayi gizle */
#header-search-433451 {
	display: none !important;
}
#menu-item-18056 {
	display: none !important;
}
body.kastas-catalog-active .woocommerce-ordering {
	margin-bottom: 20px;
}

/* Header menu ayiricilari - mega menu position:static ayiriciyi bozuyordu */
.header-menu .ada-urunler-mega {
	position: relative;
}

.top-separator-true .header-menu .menu-item.depth-0:before,
.top-separator-true .header-menu .menu-item.depth-0:after {
	z-index: 4;
}

/* Urunler mega menu */
.header-menu-container {
	position: relative;
}

.header-menu .ada-urunler-mega > .sub-menu.ada-urunler-mega-panel,
body > .sub-menu.ada-urunler-mega-panel {
	position: fixed !important;
	top: 88px !important;
	left: 0 !important;
	right: 0 !important;
	width: min(1120px, calc(100vw - 48px)) !important;
	max-width: min(1120px, calc(100vw - 48px)) !important;
	min-width: 0 !important;
	margin: 0 auto !important;
	padding: 0 !important;
	list-style: none;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 0 0 16px 16px;
	box-shadow: 0 24px 48px rgba(19, 26, 108, 0.12), 0 8px 24px rgba(0, 0, 0, 0.06);
	overflow: hidden;
	z-index: 99990;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	display: block !important;
	transform: none !important;
	-ms-transform: none !important;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

body > .sub-menu.ada-urunler-mega-panel.is-open {
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
}

.submenu-appear-fall .header-menu .ada-urunler-mega:hover > .sub-menu.ada-urunler-mega-panel {
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

.header-menu .ada-mega-shell {
	width: 100%;
	padding: 0 !important;
	margin: 0 !important;
}

.header-menu .ada-mega-shell > .mi-link {
	display: none !important;
}

.ada-mega-panel-inner {
	padding: 28px 32px 32px;
}

.ada-mega-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 22px;
	padding-bottom: 18px;
	border-bottom: 1px solid #eef0f4;
}

.ada-mega-eyebrow {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #8a8f9c;
	margin-bottom: 4px;
}

.ada-mega-title {
	display: block;
	font-size: 22px;
	font-weight: 700;
	color: #131a6c;
	line-height: 1.2;
}

.ada-mega-all-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	color: #131a6c;
	text-decoration: none;
	padding: 10px 16px;
	border-radius: 999px;
	background: #f4f5fa;
	white-space: nowrap;
	transition: background 0.2s ease, color 0.2s ease;
}

.ada-mega-all-link:hover {
	background: #131a6c;
	color: #fff;
}

.ada-mega-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.ada-mega-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 16px 18px;
	border-radius: 12px;
	background: #f8f9fc;
	border: 1px solid transparent;
	text-decoration: none !important;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ada-mega-card:hover {
	background: #fff;
	border-color: rgba(19, 26, 108, 0.12);
	box-shadow: 0 8px 20px rgba(19, 26, 108, 0.08);
	transform: translateY(-2px);
}

.ada-mega-card-name {
	font-size: 14px;
	font-weight: 600;
	color: #212121;
	line-height: 1.35;
}

.ada-mega-card-count {
	font-size: 12px;
	color: #7a8190;
}

@media (max-width: 1100px) {
	.ada-mega-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 1024px) {
	.header-menu .ada-urunler-mega > .sub-menu.ada-urunler-mega-panel,
	.header-menu .ada-urunler-mega > .ada-urunler-mega-panel {
		position: static;
		transform: none;
		width: 100%;
		border-radius: 12px;
		box-shadow: none;
		border: 0;
		margin-top: 8px;
	}

	.ada-mega-panel-inner {
		padding: 16px;
	}

	.ada-mega-head {
		flex-direction: column;
		align-items: flex-start;
	}

	.ada-mega-grid {
		grid-template-columns: 1fr;
	}
}
