/* Neteuro Woo Widgets — frontend */

.nww-editor-placeholder {
	outline: 1px dashed #9aa0a6;
}

.nww-editor-placeholder:not(.nww-product-gallery):not(.nww-product-meta):not(.nww-breadcrumbs) {
	padding: 12px;
	background: #f6f7f7;
	color: #1d2327;
}

/* —— Breadcrumbs —— */
.nww-breadcrumbs {
	display: block;
	width: 100%;
}

.nww-breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 0.25rem;
}

.nww-breadcrumbs__item {
	display: inline-flex;
	align-items: center;
}

.nww-breadcrumbs__sep {
	display: inline-flex;
	align-items: center;
	margin-inline: 0.5rem;
	line-height: 1;
}

.nww-breadcrumbs__link:focus-visible,
.nww-breadcrumbs__current:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.nww-breadcrumbs-scroll-yes .nww-breadcrumbs__list {
	flex-wrap: nowrap;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* —— Gallery —— */
.nww-product-gallery {
	display: grid;
	gap: var(--nww-gap, 12px);
	width: 100%;
}

.nww-product-gallery--thumbs {
	grid-template-columns: 1fr;
}

/* Thumb position via Elementor's prefix_class: nww-thumbs-pos-left etc. */
.nww-thumbs-pos-left .nww-product-gallery--thumbs,
.nww-thumbs-pos-right .nww-product-gallery--thumbs {
	grid-template-columns: auto 1fr;
	align-items: start;
}

.nww-thumbs-pos-left .nww-product-gallery__thumbnails {
	order: 0;
	flex-direction: column;
}

.nww-thumbs-pos-left .nww-product-gallery__stage {
	order: 1;
}

.nww-thumbs-pos-right .nww-product-gallery__thumbnails {
	order: 1;
	flex-direction: column;
}

.nww-thumbs-pos-right .nww-product-gallery__stage {
	order: 0;
}

.nww-thumbs-pos-top .nww-product-gallery__thumbnails {
	order: 0;
}

.nww-thumbs-pos-top .nww-product-gallery__stage {
	order: 1;
}

.nww-thumbs-pos-bottom .nww-product-gallery__thumbnails {
	order: 1;
}

.nww-thumbs-pos-bottom .nww-product-gallery__stage {
	order: 0;
}

.nww-product-gallery__thumbnails {
	display: flex;
	flex-wrap: wrap;
	gap: var(--nww-gap, 8px);
}

.nww-product-gallery__stage {
	position: relative;
	min-width: 0;
}

.nww-product-gallery__main-img,
.nww-product-gallery__slide-img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 0.3s ease;
}

.nww-product-gallery__main-link,
.nww-product-gallery__slide-link {
	display: block;
}

.nww-product-gallery__thumb {
	display: block;
	padding: 0;
	margin: 0;
	border: 2px solid transparent;
	background: transparent;
	cursor: pointer;
	overflow: hidden;
	line-height: 0;
	transition: opacity 0.2s ease, border-color 0.2s ease;
}

.nww-product-gallery__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nww-product-gallery__thumb:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.nww-product-gallery__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 0;
	background: rgba(255, 255, 255, 0.9);
	cursor: pointer;
	line-height: 1;
}

.nww-product-gallery__nav:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.nww-product-gallery__nav--prev {
	inset-inline-start: 8px;
}

.nww-product-gallery__nav--next {
	inset-inline-end: 8px;
}

.nww-product-gallery__dots {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 10px;
}

.nww-product-gallery__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #c3c4c7;
	cursor: pointer;
}

.nww-product-gallery__dot.is-active {
	background: #1d2327;
}

.nww-product-gallery__fraction {
	text-align: center;
	margin-top: 8px;
}

.nww-product-gallery__caption {
	margin-top: 8px;
}

.nww-product-gallery__grid {
	display: grid;
	gap: var(--nww-gap, 12px);
}

.nww-product-gallery__empty {
	padding: 24px;
	text-align: center;
	border: 1px dashed #c3c4c7;
}

.nww-gallery-sticky-yes .nww-product-gallery {
	position: sticky;
}

.nww-is-variation-image .nww-product-gallery__main-img {
	box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.35);
}

@media (max-width: 1024px) {
	.nww-no-sticky-tablet-yes .nww-product-gallery {
		position: static;
	}

	.nww-thumbs-pos-tablet-bottom .nww-product-gallery--thumbs,
	.nww-thumbs-pos-tablet-top .nww-product-gallery--thumbs {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	.nww-no-sticky-mobile-yes .nww-product-gallery {
		position: static;
	}

	.nww-thumbs-pos-mobile-bottom .nww-product-gallery--thumbs,
	.nww-thumbs-pos-mobile-top .nww-product-gallery--thumbs,
	.nww-thumbs-pos-mobile-left .nww-product-gallery--thumbs,
	.nww-thumbs-pos-mobile-right .nww-product-gallery--thumbs {
		grid-template-columns: 1fr;
	}

	.nww-thumbs-pos-mobile-left .nww-product-gallery__thumbnails,
	.nww-thumbs-pos-mobile-right .nww-product-gallery__thumbnails {
		flex-direction: row;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nww-product-gallery__main-img,
	.nww-product-gallery__slide-img,
	.nww-product-gallery__thumb,
	.nww-breadcrumbs__link {
		transition: none;
	}
}

/* —— Product Meta —— */
.nww-product-meta {
	display: grid;
	gap: 10px;
	width: 100%;
}

.nww-product-meta--grid,
.nww-product-meta--cards {
	display: grid;
}

.nww-product-meta--inline {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.nww-product-meta--table {
	display: block;
}

.nww-meta-item {
	display: flex;
	gap: 8px;
	align-items: baseline;
}

.nww-label-top .nww-meta-item {
	flex-direction: column;
	align-items: flex-start;
}

.nww-label-right .nww-meta-item {
	flex-direction: row-reverse;
	justify-content: flex-end;
}

.nww-label-inline .nww-meta-label::after {
	content: ':';
	margin-inline-end: 0.25em;
}

.nww-meta-label {
	font-weight: 600;
}

.nww-meta-list {
	margin: 0;
	padding-inline-start: 1.25em;
}

.nww-meta-more {
	margin-top: 6px;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.nww-meta-more:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.nww-meta-table-layout {
	width: 100%;
	border-collapse: collapse;
}

.nww-meta-table-layout th,
.nww-meta-table-layout td {
	padding: 8px;
	text-align: start;
	vertical-align: top;
	border-bottom: 1px solid #dcdcde;
}

.nww-meta-icon {
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

.nww-product-meta--cards .nww-meta-item {
	border: 1px solid #dcdcde;
	padding: 12px;
	border-radius: 4px;
}

/* —— Product Data extensions —— */
.nww-product-data__badges {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

.nww-product-data__badge,
.nww-meta-badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: 999px;
	background: #f0f0f1;
	line-height: 1.4;
}

.nww-product-data__term-link {
	transition: color 0.15s ease, background-color 0.15s ease;
}

.nww-product-data__hierarchy {
	display: inline;
}

.nww-product-data__hierarchy-sep {
	opacity: 0.7;
	margin: 0 0.15em;
}

.nww-product-data__list {
	margin: 0;
}

@media (max-width: 767px) {
	.nww-table-stack-yes .nww-meta-table-layout,
	.nww-table-stack-yes .nww-meta-table-layout tbody,
	.nww-table-stack-yes .nww-meta-table-layout tr,
	.nww-table-stack-yes .nww-meta-table-layout th,
	.nww-table-stack-yes .nww-meta-table-layout td {
		display: block;
		width: 100%;
	}

	.nww-table-stack-yes .nww-meta-table-layout th {
		border-bottom: 0;
		padding-bottom: 0;
	}
}

/* —— Product Filters —— */
.nww-product-filters {
	--nww-pf-gap: 1rem;
	display: block;
	width: 100%;
	position: relative;
}

.nww-product-filters__groups {
	display: flex;
	flex-direction: column;
	gap: var(--nww-pf-gap);
}

.nww-product-filters--horizontal .nww-product-filters__groups,
.nww-product-filters--layout-grid .nww-product-filters__groups,
.nww-product-filters--layout-bar .nww-product-filters__groups {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: var(--nww-pf-gap);
}

.nww-product-filters__title {
	margin: 0 0 0.75rem;
}

.nww-product-filters__editor-note {
	margin: 0 0 0.75rem;
	padding: 0.5rem 0.75rem;
	font-size: 0.875rem;
	background: #f0f0f1;
}

.nww-product-filters__group {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.nww-product-filters__accordion-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	margin: 0;
	padding: 0.5rem 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	text-align: start;
	font: inherit;
	color: inherit;
}

.nww-product-filters__accordion-btn:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.nww-product-filters__accordion-icon::before {
	content: "+";
}

.nww-product-filters__group.is-open .nww-product-filters__accordion-icon::before {
	content: "−";
}

.nww-product-filters__label {
	font-weight: 600;
}

.nww-product-filters__input,
.nww-product-filters__select {
	width: 100%;
	box-sizing: border-box;
	padding: 0.5rem 0.75rem;
	border: 1px solid #c3c4c7;
	background: #fff;
	color: inherit;
	font: inherit;
}

.nww-product-filters__input:focus-visible,
.nww-product-filters__select:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 1px;
}

.nww-product-filters__options {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.nww-product-filters__options--buttons {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.nww-product-filters__option,
.nww-product-filters__option-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	cursor: pointer;
}

.nww-product-filters__option-btn {
	padding: 0.35rem 0.75rem;
	border: 1px solid #c3c4c7;
}

.nww-product-filters__option-btn[data-active="1"],
.nww-product-filters__option-btn:has(input:checked) {
	border-color: currentColor;
}

.nww-product-filters__option-btn input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.nww-product-filters__price {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
}

.nww-product-filters__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin-top: var(--nww-pf-gap);
}

.nww-product-filters__apply {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.6rem 1.1rem;
	border: 0;
	cursor: pointer;
	font: inherit;
	background: #1d2327;
	color: #fff;
}

.nww-product-filters__clear {
	font: inherit;
	color: inherit;
}

.nww-product-filters__active {
	margin-bottom: 0.75rem;
}

.nww-product-filters__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	list-style: none;
	margin: 0.4rem 0 0;
	padding: 0;
}

.nww-product-filters__chip {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.25rem 0.55rem;
	background: #f0f0f1;
	color: inherit;
	text-decoration: none;
	font-size: 0.875rem;
}

.nww-product-filters__mobile-toggle {
	display: none;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
	padding: 0.6rem 1rem;
	border: 1px solid #c3c4c7;
	background: #fff;
	font: inherit;
	cursor: pointer;
}

.nww-product-filters__badge {
	display: inline-flex;
	min-width: 1.25rem;
	height: 1.25rem;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: #1d2327;
	color: #fff;
	font-size: 0.75rem;
	padding: 0 0.35rem;
}

.nww-product-filters__overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	z-index: 9998;
}

.nww-product-filters__close {
	position: absolute;
	top: 0.75rem;
	inset-inline-end: 0.75rem;
	border: 0;
	background: transparent;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.nww-product-filters--mobile-offcanvas .nww-product-filters__mobile-toggle {
	display: inline-flex;
}

@media (max-width: 767px) {
	.nww-product-filters--mobile-offcanvas .nww-product-filters__panel {
		position: fixed;
		top: 0;
		bottom: 0;
		inset-inline-start: 0;
		z-index: 9999;
		max-width: 100%;
		padding: 1.25rem;
		background: #fff;
		box-shadow: 0 0 24px rgba(0, 0, 0, 0.15);
		overflow: auto;
		transform: translateX(-105%);
		transition: transform 0.25s ease;
	}

	.nww-product-filters--mobile-offcanvas.nww-product-filters--side-right .nww-product-filters__panel {
		inset-inline-start: auto;
		inset-inline-end: 0;
		transform: translateX(105%);
	}

	.nww-product-filters--mobile-offcanvas.is-offcanvas-open .nww-product-filters__panel {
		transform: translateX(0);
	}

	@media (prefers-reduced-motion: reduce) {
		.nww-product-filters--mobile-offcanvas .nww-product-filters__panel {
			transition: none;
		}
	}
}

@media (min-width: 768px) {
	.nww-product-filters--mobile-offcanvas .nww-product-filters__mobile-toggle,
	.nww-product-filters--mobile-offcanvas .nww-product-filters__overlay,
	.nww-product-filters--mobile-offcanvas .nww-product-filters__close {
		display: none;
	}
}

html.nww-pf-no-scroll {
	overflow: hidden;
}

.nww-product-filters.nww-is-loading {
	pointer-events: none;
}

.nww-results-updating {
	opacity: 0.55;
	transition: opacity 0.2s ease;
	min-height: 120px;
}

@media (prefers-reduced-motion: reduce) {
	.nww-results-updating {
		transition: none;
	}
}

.nww-pf-results-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	background: rgba(255, 255, 255, 0.65);
	z-index: 5;
	pointer-events: none;
}

.nww-pf-spinner {
	width: 1.5rem;
	height: 1.5rem;
	border: 2px solid #c3c4c7;
	border-top-color: #1d2327;
	border-radius: 50%;
	animation: nww-pf-spin 0.7s linear infinite;
}

@keyframes nww-pf-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.nww-pf-spinner {
		animation: none;
	}
}

.nww-product-filters__option.is-unavailable {
	opacity: 0.45;
}

.nww-product-filters__count {
	margin-inline-start: 0.25rem;
	opacity: 0.75;
	font-size: 0.9em;
}

.nww-product-filters__progressive {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.nww-product-filters__progressive-label {
	display: block;
	margin-bottom: 0.25rem;
	font-weight: 600;
}

.nww-product-filters__drill-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.nww-product-filters__drill-item,
.nww-product-filters__drill-back {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.45rem 0.6rem;
	border: 1px solid #c3c4c7;
	background: #fff;
	font: inherit;
	cursor: pointer;
	text-align: start;
}

.nww-product-filters__live.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}
