/*
*
* @name Site24 Essentials Main Styles
* @author  Site24
* @version 1.0.0
*/

/*----------------------------
- CSS Map

1. General Settings
2. Brands
3. Searchbar
4. Social Share
5. Swatches
6. Quantity
7. Alerts
8. Whatsapp
9. Cats
10. Filter Search
11. Quick Buy

----------------------------*/

/*- 1. General Settings -*/
.woocommerce-notices-wrapper,
.woocommerce-NoticeGroup.woocommerce-NoticeGroup-checkout{
	display:none;
}
/*- 2. Brands -*/
.s24-brand-badge {
	background: #fff;
	border: 1px solid rgba(0,0,0,0.1);
	padding: 5px 10px;
	border-radius: 5px;
	color: var(--dark);
	font-size: var(--font-md);
	transition: var(--transition);
	margin-bottom:5px;
	display:inline-block;
}

.s24-brand-badge img{
	object-fit:contain;
}

.s24-brand-badge:hover {
	border-color: var(--primary);
}
/*- 3. Searchbar -*/
#s24-search{
	position:relative;
}
/* ─── AJAX Search Overlay ─── */
#s24-search-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.4);
	z-index: 998;
}
#s24-search-overlay.active { display: block; }
.admin-bar #s24-search-overlay { top: 32px; }
@media screen and (max-width: 782px) {
	.admin-bar #s24-search-overlay { top: 46px; }
}
body.s24-search-active #s24-search { position: relative; z-index: 999; }

/* Sonuç paneli */
#s24-ajax-search-results {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 6px);
	background: #fff;
	z-index: 999;
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0,0,0,.12);
	border: 1px solid rgba(0,0,0,.06);
	overflow: hidden;
	max-height: 420px;
	overflow-y: auto;
}

/* Sonuç item */
#s24-ajax-search-results .search-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	border-bottom: 1px solid #f0f0f0;
	text-decoration: none;
	color: inherit;
	transition: background .15s;
}
#s24-ajax-search-results .search-item:last-of-type { border-bottom: none; }
#s24-ajax-search-results .search-item:hover { background: #f8f8f8; }

.search-item-img {
	width: 52px;
	height: 52px;
	flex-shrink: 0;
	border-radius: 8px;
	overflow: hidden;
	background: #f5f5f5;
	border: 1px solid #eee;
}
.search-item-img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 4px;
}

.search-item-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.search-item-title {
	font-size: 13px;
	font-weight: 500;
	color: #222;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.search-item-price {
	font-size: 13px;
	font-weight: 700;
	color: var(--primary);
}
.search-item-price del { font-weight: 400; color: #999; font-size: 11px; margin-right: 4px; }

/* Tüm sonuçları gör */
.search-all-link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 12px;
	font-size: 13px;
	font-weight: 600;
	color: var(--primary);
	text-decoration: none;
	background: #f8f8f8;
	border-top: 1px solid #eee;
}
.search-all-link:hover { background: #f0f0f0; }

/* Boş sonuç */
.search-no-result {
	padding: 20px;
	text-align: center;
	color: #888;
	font-size: 13px;
	margin: 0;
}

/* Yükleniyor (3 nokta animasyonu) */
.search-loading {
	display: flex;
	justify-content: center;
	gap: 6px;
	padding: 20px;
}
.search-loading span {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--primary);
	animation: s24-bounce .6s infinite alternate;
}
.search-loading span:nth-child(2) { animation-delay: .2s; }
.search-loading span:nth-child(3) { animation-delay: .4s; }
@keyframes s24-bounce {
	from { transform: translateY(0); opacity: .4; }
	to   { transform: translateY(-8px); opacity: 1; }
}
.widget_product_search {
	position: relative;
}

/* Mobil drawer arama sonuçları (drawer içi, normal akış) */
.s24-mobile-search-results {
	margin-top: 10px;
	max-height: 60vh;
	overflow-y: auto;
}
.s24-mobile-search-results:empty { display: none; }
.s24-mobile-search-results .search-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 4px;
	border-bottom: 1px solid #f0f0f0;
	text-decoration: none;
	color: inherit;
}
.s24-mobile-search-results .search-item:last-of-type { border-bottom: none; }
/*- </3. Searchbar -*/

/*- 4. Social Share -*/
.s24-social-share {
	display: flex !important;
	flex-direction: row;
}

.s24-social-share ul {
	display: flex;
	flex-direction: row;
	column-gap: 10px;
	list-style: none;
	margin: 0 0 0 5px;
	padding: 0;
}
.s24-social-share ul li {
	font-size: 20px;
	line-height: 20px;
	color:var(--secondary);
}
/*- </4. Social Share -*/

/*- 5. Swatches-*/
.s24-swatch .s24-swatch-item {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	column-gap: 20px;
	margin-bottom:20px;
	align-items: center;
}
.s24-swatch .s24-swatch-item:last-child{
	margin-bottom:0;
}
.s24-swatch .s24-swatch-item .swatch-attribute {
	width: 100%;
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	flex-wrap: wrap;
	column-gap: 15px;
	row-gap: 15px;
}

.s24-swatch .s24-swatch-title {
	font-weight: 700;
	text-transform:capitalize;
}

.s24-swatch {
	padding: 20px 0;
}

.s24-swatch .s24-swatch-item .swatch {
	background: #fff;
	color: #212121;
	text-align: center;
	padding: 5px;
	font-size: 13px;
	border-radius: 5px;
	min-width: 15%;
	border: 2px solid rgba(0,0,0,0.1);
	cursor: pointer;
	transition: all .3s linear;
	font-weight: 500;
	text-transform: capitalize;
}

.s24-swatch .s24-swatch-item .swatch:hover,
.s24-swatch .s24-swatch-item .swatch.active{
	background: var(--primary);
	color: #fff;
	padding: 5px 20px;
}
.single-product div.product table.variations{
	display:none !important;
}
/*- </5. Swatches-*/
/*- 6. Quantity -*/
.quantity {
	display: flex;
	align-items: center;
}
.quantity input {
	order: 2;
	background: #fff !important;
	box-shadow: none !important;
	text-align: center !important;
	-webkit-appearance: none !important;
}
.quantity .quantity-minus {
	order: 1;
}  
.quantity .quantity-plus {
	order: 3;
}
.quantity .quantity-minus,
.quantity .quantity-plus{
	border-radius: 25px;
	font-size: 26px;
	min-width: 28px;
	height: 28px;
	color: #212121;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor:pointer;
	transition:var(--transition);
}
.quantity .quantity-minus{
	align-items:center;
}
.quantity .quantity-minus:hover,
.quantity .quantity-plus:hover{
	background:var(--primary) !important;
	color:#fff !important;
}
.quantity input::-webkit-outer-spin-button,
.quantity input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin:0
} 
/*- </6. Quantity -*/
/*- 7. Alerts -*/

#swal2-title br {
	display: none;
}

#swal2-title {
	font-size: 20px;
}

.swal2-icon {
	margin-top: 20px;
}
div:where(.swal2-container) div:where(.swal2-popup){
	width:30em;
}
/*- 8. Whatsapp -*/
#essentials-chatbox {
	position: fixed;
	width: 55px;
	height: 55px;
	bottom: 55px;
	right: 15px;
	z-index: 100;
}
#essentials-chatbox a{
	height: inherit;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #25D366;
	font-size: 25px;
	box-shadow: 0 0px 10px #25D366;
	border-radius: 50px;
}
#essentials-chatbox svg {
	fill: #fff;
}
.s24-whatsapp-order-button {
	color: #24d366;
	fill: #24d366;
	font-size: 16px;
	display: flex;
	align-items: center;
	flex-direction: row;
	column-gap: 5px;
	margin-bottom: 20px;
}

.s24-whatsapp-order-button svg {
	font-size: 25px;
}

.s24-whatsapp-order-button:hover {
	color: #212121;
	fill: #212121;
}

/*- Filtre Drawer (mobil) -*/
/* Desktop: normal sidebar — drawer parçaları gizli */
.s24-filter-drawer .s24-drawer-overlay,
.s24-filter-drawer .s24-filter-head { display: none; }

@media (max-width: 991.98px) {
	.s24-filter-drawer {
		position: fixed;
		inset: 0;
		z-index: 1050;
		visibility: hidden;
	}
	.s24-filter-drawer.s24-drawer-open { visibility: visible; }
	.s24-filter-drawer .s24-drawer-overlay {
		display: block;
		position: absolute;
		inset: 0;
		background: rgba(0,0,0,.45);
		opacity: 0;
		transition: opacity .25s ease;
	}
	.s24-filter-drawer.s24-drawer-open .s24-drawer-overlay { opacity: 1; }
	.s24-filter-panel {
		position: absolute;
		top: 0;
		left: 0;
		width: 86%;
		max-width: 340px;
		height: 100%;
		background: #fff;
		display: flex;
		flex-direction: column;
		overflow-y: auto;
		padding: 0 16px 24px;
		transform: translateX(-100%);
		transition: transform .28s cubic-bezier(.4,0,.2,1);
	}
	.s24-filter-drawer.s24-drawer-open .s24-filter-panel { transform: translateX(0); }
	.s24-filter-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 14px 16px;
		margin: 0 -16px 16px;
		border-bottom: 0;
		position: sticky;
		top: 0;
		background: var(--primary);
		color: #fff;
		font-weight: 600;
		font-size: var(--font-title);
		z-index: 1;
		min-height: 54px;
		flex-shrink: 0;
	}
	.s24-filter-head .s24-drawer-title {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		text-align: center;
	}
	.s24-filter-close {
		background: none;
		border: none;
		font-size: 18px;
		color: #fff;
		cursor: pointer;
		padding: 4px 8px;
		min-width: 44px;
		display: flex;
		align-items: center;
		justify-content: center;
	}
}

/*- Mobil Sabit Alt Bar -*/
#s24-mobile-bar {
	display: none;
}
@media (max-width: 991.98px) {
	#s24-mobile-bar {
		display: flex;
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		z-index: 1040;
		background: #fff;
		border-top: 1px solid var(--gray);
		box-shadow: 0 -2px 12px rgba(0,0,0,.06);
		padding: 6px 0 env(safe-area-inset-bottom, 4px);
	}
	#s24-mobile-bar .s24-bar-item {
		flex: 1;
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 3px;
		background: none;
		border: none;
		padding: 4px 0;
		color: var(--secondary);
		font-size: 10px;
		font-weight: 500;
		text-decoration: none;
		cursor: pointer;
		transition: color .2s;
	}
	#s24-mobile-bar .s24-bar-item i { font-size: 20px; line-height: 1; }
	#s24-mobile-bar .s24-bar-item:hover,
	#s24-mobile-bar .s24-bar-item:active { color: var(--primary); }
	#s24-mobile-bar .s24-bar-icon-wrap { position: relative; }
	#s24-mobile-bar .s24-bar-count {
		position: absolute;
		top: -6px;
		right: -10px;
		min-width: 16px;
		height: 16px;
		padding: 0 4px;
		background: var(--primary);
		color: #fff;
		font-size: 10px;
		line-height: 16px;
		text-align: center;
		border-radius: 10px;
	}
	#s24-mobile-bar .s24-bar-count.s24-empty { display: none; }
	/* Alt bar içeriği örtmesin */
	body { padding-bottom: 64px; }
}

/*- Ürün Kartı Hover 2. Görsel -*/
.s24-urun-item .s24-card-img {
	position: relative;
	display: block;
	overflow: hidden;
}
.s24-urun-item .s24-card-img .s24-hover-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity .35s ease;
}
.s24-urun-item:hover .s24-card-img .s24-hover-img {
	opacity: 1;
}

/*- 9. Cats -*/
.s24-cats .cat-item {
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	height: 125px;
	border-radius: 15px;
	border:1px solid var(--gray);
	transition: all .3s linear
}

.s24-cats {
	margin: 15px 0 25px;
}

.s24-cats .cat-item span {
	width:100%;
	color: #212121;
	padding: 5px 10px;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
	display: block;
	text-align:center;
}

.s24-cats .cat-item:hover,
.s24-cats .cat-item.active {
	border-color:var(--primary);
}
/*- 9. Filter Search -*/
#filter-searchbar {
	border-radius: 5px;
	font-size: var(--font-lg);
	background: var(--gray);
	border: none;
}
#filter-searchbar {
	margin: 5px 0 10px;
}
/*- 11. Quick Buy -*/
.cart .quick-buy {
	background: #FF8C39 !important;
	box-shadow: 0 5px 10px #FF8C39 !important;
}
/*- 12. Mega Menu -*/
/* Yumuşak açılış: display:flex sabit, opacity/transform ile fade (tak-tak yok) */
#s24-navbar > ul>li>.sub-menu {
	display: flex;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
	pointer-events: none;
	width: 100%;
	box-shadow: 0 12px 30px rgba(0,0,0,0.10);
	padding: 30px;
	left:0;
	justify-content: space-between;
	border-radius: 10px;
	border: 1px solid var(--primary);
	z-index: 101;
}
#s24-navbar > ul>li:hover>.sub-menu{
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

/* Backdrop — mega menü açıkken sayfayı hafif karart (:has, JS yok) */
#s24-menu { position: relative; z-index: 100; }
#s24-menu::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	width: 100vw;
	height: 100vh;
	background: rgba(0,0,0,.35);
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease, visibility .25s ease;
	z-index: -1;
	pointer-events: none;
}
#s24-menu:has(li.menu-item-has-children:hover)::after {
	opacity: 1;
	visibility: visible;
}

#s24-navbar > ul>li>.sub-menu>li>a {
	color: var(--black);
	font-weight: 500;
	font-size: var(--font-lg);
	border-bottom: 1px solid var(--gray);
	padding-bottom: 5px;
	margin-bottom: 5px;
	display: block;
}

#s24-navbar > ul>li>.sub-menu>li>.sub-menu {
	list-style: none;
	padding: 0;
}

#s24-navbar > ul>li>.sub-menu>li>.sub-menu>li>a {
	color: var(--black);
	font-weight: 300;
	font-size: var(--font-lg);
	transition:var(--transition);
}
#s24-navbar > ul>li>.sub-menu>li>.sub-menu>li>a:hover{
	color:var(--primary);
}
#s24-navbar > ul>li>.sub-menu>li>.sub-menu>li.megamenu-all a{
	font-size: var(--font-md);
	color: var(--primary);
	font-weight: 400;
	letter-spacing: .5px;
	transition:var(--transition)
}
#s24-navbar > ul>li>.sub-menu>li>.sub-menu>li.megamenu-all a:hover{
	color:var(--secondary);
}

/* ─── Mobile Drawer ─────────────────────────────────────── */

/* ─── Mobile & Arama Drawer ───────────────────────────────── */
/* ─── Arama Drawer (üstten açılır) ─── */
.s24-search-drawer {
	position: fixed;
	inset: 0;
	z-index: 1060;
	visibility: hidden;
}
.s24-search-drawer.s24-drawer-open {
	visibility: visible;
}
.s24-search-drawer .s24-drawer-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.5);
	opacity: 0;
	transition: opacity .2s ease;
}
.s24-search-drawer.s24-drawer-open .s24-drawer-overlay {
	opacity: 1;
}
.s24-search-panel {
	position: absolute;
	top: auto;
	bottom: 0;
	left: 0;
	right: 0;
	background: #fff;
	transform: translateY(100%);
	transition: transform .25s cubic-bezier(.4,0,.2,1);
	box-shadow: 0 -4px 20px rgba(0,0,0,.15);
	border-radius: 18px 18px 0 0;
	max-height: calc(100vh - 80px);
	overflow-y: auto;
}
.s24-search-drawer.s24-drawer-open .s24-search-panel {
	transform: translateY(0);
}
.s24-search-panel-inner {
	padding: 12px 16px;
}
.s24-search-panel-inner form {
	display: flex;
	align-items: center;
	background: var(--gray);
	border-radius: 10px;
	padding: 10px 14px;
	gap: 10px;
}
.s24-search-panel-inner form i.bi-search {
	color: #888;
	font-size: 16px;
	flex-shrink: 0;
}
.s24-search-panel-inner input[type="search"] {
	flex: 1;
	border: none;
	background: transparent;
	outline: none;
	font-size: 16px;
	min-width: 0;
}
.s24-search-close {
	background: none;
	border: none;
	font-size: 18px;
	color: #666;
	cursor: pointer;
	padding: 2px;
	flex-shrink: 0;
}

/* ─── Hamburger ikon geçişi ─── */
.s24-drawer-trigger .s24-icon-close { display: none; }
.s24-drawer-trigger .s24-icon-open,
.s24-drawer-trigger .s24-icon-close {
	font-size: 24px;
	line-height: 1;
}
.s24-drawer-trigger[aria-expanded="true"] .s24-icon-open { display: none; }
.s24-drawer-trigger[aria-expanded="true"] .s24-icon-close { display: inline; }


/* Masaüstünde menü/arama drawer'ları tamamen gizli (footer altında görünme sorunu) */
@media (min-width: 992px) {
	#mobileMenu.s24-drawer,
	#mobileSearch.s24-search-drawer { display: none !important; }
}

/* ═══ Mobile Drawer (Menü + Arama) ═══════════════════════════ */
@media (max-width: 991.98px) {
	/* ─── Mobile Drawer ─── */
	.s24-drawer {
		position: fixed;
		inset: 0;
		z-index: 1050;
		visibility: hidden;
	}
	.s24-drawer.s24-drawer-open {
		visibility: visible;
	}
	.s24-drawer-overlay {
		position: absolute;
		inset: 0;
		background: rgba(0,0,0,.45);
		opacity: 0;
		transition: opacity .25s ease;
	}
	.s24-drawer-open .s24-drawer-overlay {
		opacity: 1;
	}
	.s24-drawer-panel {
		position: absolute;
		top: 0;
		left: 0;
		width: 85%;
		max-width: 340px;
		height: 100%;
		background: #fff;
		display: flex;
		flex-direction: column;
		transform: translateX(-100%);
		transition: transform .28s cubic-bezier(.4,0,.2,1);
		overflow: hidden;
	}
	.s24-drawer-open .s24-drawer-panel {
		transform: translateX(0);
	}
	.logged-in.admin-bar .s24-drawer-panel {
		top: 46px;
		height: calc(100% - 46px);
	}
	body.s24-drawer-locked {
		overflow: hidden;
	}

	/* Header */
	.s24-drawer-header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 14px 16px;
		background: var(--primary);
		color: #fff;
		min-height: 54px;
		flex-shrink: 0;
	}
	.s24-drawer-title {
		font-weight: 600;
		font-size: var(--font-title);
		flex: 1;
		text-align: center;
	}
	.s24-drawer-back,
	.s24-drawer-close {
		background: none;
		border: none;
		color: #fff;
		font-size: 18px;
		padding: 4px 8px;
		cursor: pointer;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 4px;
		min-width: 44px;
	}
	.s24-back-label {
		font-size: var(--font-sm);
		font-weight: 500;
	}

	/* Arama kutusu */
	.s24-drawer-search-bar {
		padding: 10px 12px;
		border-bottom: 1px solid var(--gray);
		flex-shrink: 0;
	}
	.s24-drawer-search-bar form {
		display: flex;
		align-items: center;
		background: var(--gray);
		border-radius: 8px;
		padding: 6px 12px;
		gap: 8px;
	}
	.s24-drawer-search-bar form i { color: #888; font-size: 14px; }
	.s24-drawer-search-bar input {
		border: none;
		background: transparent;
		outline: none;
		flex: 1;
		font-size: var(--font-md);
	}

	/* Panel stack */
	.s24-drawer-stack {
		flex: 1;
		overflow: hidden;
		position: relative;
	}

	/* Bireysel liste panelleri */
	.s24-drawer-list {
		list-style: none;
		margin: 0;
		padding: 0;
		position: absolute;
		inset: 0;
		overflow-y: auto;
		transform: translateX(100%);
		transition: transform .25s cubic-bezier(.4,0,.2,1);
		background: #fff;
	}
	.s24-drawer-list.s24-panel-active {
		transform: translateX(0);
	}
	#s24-panel-root {
		transform: translateX(0);
	}
	#s24-panel-root:not(.s24-panel-active) {
		transform: translateX(-100%);
	}

	/* Liste öğeleri */
	.s24-drawer-item {
		border-bottom: 1px solid var(--gray);
	}
	.s24-drawer-item:last-child { border-bottom: none; }

	.s24-drawer-link {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		padding: 14px 16px;
		background: none;
		border: none;
		text-align: left;
		font-size: var(--font-md);
		color: var(--secondary);
		text-decoration: none;
		font-weight:600;
		cursor: pointer;
	}
	.s24-drawer-link:hover { background: var(--gray); color: var(--primary); }
	.s24-drawer-link .bi-chevron-right { color: #aaa; font-size: 13px; }
	.s24-drawer-link .bi-arrow-right { color: var(--primary); }

	/* "Tümünü İncele" öğesi */
	.s24-drawer-all .s24-drawer-link {
		color: var(--primary);
		font-weight: 600;
	}

	/* Bölücü çizgi */
	.s24-drawer-divider {
		height: 1px;
		background: var(--gray);
		margin: 4px 0;
	}

	/* Tetikleyici buton stili */
	.s24-drawer-trigger {
		background: none;
		border: none;
		padding: 4px;
		cursor: pointer;
		font-size: 14px;
		color: var(--secondary);
		display: flex;
		align-items: center;
	}
}
