/**
 * Featherweight — Native module styles
 * YITH class'ları birebir korunur ki mevcut görünüm/JS uyumu bozulmasın.
 */

/* ---- Infinite Scroll (YITH Infinite Scrolling parite) ---- */
.yith-infs-button-wrapper {
	text-align: center;
	margin-bottom: 10px;
}
.yith-infs-loader {
	text-align: center;
	margin: 10px 0 30px;
}
.yith-infs-loader img {
	max-width: 100%;
	display: inline-block;
}
.sl-native-spinner {
	display: inline-block;
	width: 28px;
	height: 28px;
	border: 3px solid rgba(0, 0, 0, 0.15);
	border-top-color: #007694;
	border-radius: 50%;
	animation: sl-native-spin 0.8s linear infinite;
}
@keyframes sl-native-spin {
	to { transform: rotate(360deg); }
}

/* Animation (YITH fadeInUp parite) */
.yith-infs-animated {
	animation-duration: 1s;
	animation-fill-mode: both;
}
@keyframes yith-infs-fadeInUp {
	0% { opacity: 0; transform: translate3d(0, 100%, 0); }
	100% { opacity: 1; transform: none; }
}
.yith-infs-fadeInUp {
	animation-name: yith-infs-fadeInUp;
}

/* ---- Shop Filter (YITH WCAN parite) ---- */
.sl-native-filters .yith-wcan-filter {
	margin: 0 0 22px;
}
.sl-native-filters .filter-title {
	font-size: 18px;
	font-weight: 400;
	margin: 0 0 10px;
}
.sl-native-filters ul.filter-items {
	list-style: none;
	margin: 0;
	padding: 0;
}
.sl-native-filters ul.filter-items li.filter-item {
	margin: 0 0 6px;
	line-height: 1.4;
}
.sl-native-filters ul.filter-items li.filter-item a {
	display: flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: inherit;
}
.sl-native-filters ul.filter-items li.filter-item a input[type="checkbox"] {
	margin: 0;
	pointer-events: none;
	flex: 0 0 auto;
}
.sl-native-filters ul.filter-items li.filter-item.chosen .term-name {
	font-weight: 600;
}
.sl-native-filters ul.filter-items li.filter-item .count {
	opacity: 0.55;
	font-size: 0.9em;
}
.sl-native-filters .reset-filters {
	display: inline-block;
	margin-top: 6px;
	font-size: 0.9em;
	text-decoration: underline;
}
.sl-native-filters.is-loading {
	opacity: 0.5;
	pointer-events: none;
}
/* AJAX ile güncellenen ürün alanı için hafif geçiş */
.sl-native-products-loading {
	opacity: 0.4;
	transition: opacity 0.2s ease;
}

/* ---- Archive facet (FacetWP parite) — shop filtresi liste stilini paylaşır ---- */
.sl-native-archive-facet ul.filter-items {
	list-style: none;
	margin: 0;
	padding: 0;
}
.sl-native-archive-facet ul.filter-items li.filter-item {
	margin: 0 0 6px;
	line-height: 1.4;
}
.sl-native-archive-facet ul.filter-items li.filter-item a {
	display: flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: inherit;
}
.sl-native-archive-facet ul.filter-items li.filter-item a input[type="checkbox"] {
	margin: 0;
	pointer-events: none;
	flex: 0 0 auto;
}
.sl-native-archive-facet ul.filter-items li.filter-item.chosen .term-name {
	font-weight: 600;
}
.sl-native-archive-facet.is-loading {
	opacity: 0.5;
	pointer-events: none;
}
.sl-native-facet-dropdown {
	display: inline-block;
}
.sl-native-facet-select {
	min-width: 90px;
	padding: 4px 8px;
	border: 0;
	border-bottom: 1px solid #121216;
	background: transparent;
	font: inherit;
	color: inherit;
	cursor: pointer;
}

/* ---- FAQ accordion (YITH FAQ parite: sol dolu daire ikon, border-yok) ---- */
.yith-faqs-container {
	--ywfp-icon-font-size: 25px;
}
.yith-faqs-shortcode-title {
	margin: 0 0 16px;
}
.yith-faqs-item {
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--yfwp-faq-colors-border, #e5e5e5);
	border-radius: 0;
	margin: 0;
}
.yith-faqs-title {
	color: var(--yfwp-faq-colors-text, inherit);
	line-height: normal;
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 0;
}
.yith-faqs-item:not(.icon-left) .yith-faqs-title {
	justify-content: space-between;
}
.yith-faqs-item.icon-left .yith-faqs-title .icon {
	order: -1;
}
.yith-faqs-item.icon-left .yith-faqs-question {
	flex: 1;
}
.yith-faqs-container:not(.yith-faq-type-list) .yith-faqs-title {
	cursor: pointer;
}
.yith-faqs-content-wrapper {
	padding: 0 0 18px;
}
.yith-faqs-item.icon-left .yith-faqs-content-wrapper {
	padding-left: calc(var(--ywfp-icon-font-size, 25px) + 32px);
}
.yith-faqs-content {
	color: var(--yfwp-faq-colors-content, inherit);
}
.yith-faqs-content p:last-child {
	margin-bottom: 0;
}
/* Aç/kapa: opened yoksa gizli */
.yith-faq-type-accordion .yith-faqs-item:not(.opened) .yith-faqs-content-wrapper,
.yith-faq-type-toggle .yith-faqs-item:not(.opened) .yith-faqs-content-wrapper {
	display: none;
}
/* Icon: dolu koyu daire + beyaz +/− (CSS, font bağımsız) */
.yith-faqs-title .icon {
	position: relative;
	flex: 0 0 auto;
	width: calc(var(--ywfp-icon-font-size, 25px) + 14px);
	height: calc(var(--ywfp-icon-font-size, 25px) + 14px);
	border-radius: 50%;
	background-color: var(--yfwp-icon-colors-background, #121216);
	color: var(--yfwp-icon-colors-icon, #ffffff);
}
.yith-faqs-title .icon:before,
.yith-faqs-title .icon:after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	background: currentColor;
	transform: translate(-50%, -50%);
}
.yith-faqs-title .icon:before {
	width: 42%;
	height: 2px;
}
.yith-faqs-title .icon:after {
	width: 2px;
	height: 42%;
	transition: opacity 0.2s ease;
}
.yith-faqs-item.opened .yith-faqs-title .icon:after {
	opacity: 0;
}
.yith-faqs-pagination {
	margin-top: 16px;
}
.yith-faqs-item.yith-faqs-no-results {
	padding: 30px 0;
	text-align: center;
	border-bottom: 0;
}
.yith-faqs-search {
	margin-bottom: 16px;
}
