/**
 * Advanced WooCommerce Archive Builder — front-end styles.
 * Every value below is a default; Elementor controls override them per widget.
 */

.awab {
	--awab-section-gap: 40px;
	--awab-speed: 350ms;
	--awab-ease: cubic-bezier(.22, .61, .36, 1);
	--awab-text: #111;
	--awab-muted: #8a8a8a;
	display: flex;
	flex-direction: column;
	gap: var(--awab-section-gap);
	color: var(--awab-text);
	min-width: 0;
}

.awab *,
.awab *::before,
.awab *::after {
	box-sizing: border-box;
}

.awab a {
	text-decoration: none;
	color: inherit;
	box-shadow: none;
}

.awab img {
	max-width: 100%;
	height: auto;
	box-shadow: none;
}

.awab .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.awab-editor-note {
	padding: 10px 14px;
	border: 1px dashed #c9c9c9;
	font-size: 12px;
	color: #666;
}

/* ------------------------------------------------------------------
 * Category carousel
 * ---------------------------------------------------------------- */

.awab-cats {
	--awab-cat-spv: 6;
	--awab-cat-gap: 6px;
	--awab-arrow-offset: 6px;
	position: relative;
	min-width: 0;
}

.awab-cats__viewport {
	position: relative;
	overflow: hidden;
}

.awab-cats__track {
	position: relative;
	display: flex;
	gap: var(--awab-cat-gap);
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	outline: none;
}

.awab-cats__track::-webkit-scrollbar {
	display: none;
}

.awab-cats__track:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.awab-cats.is-animating .awab-cats__track,
.awab-cats.is-dragging .awab-cats__track {
	scroll-snap-type: none;
}

.awab-cats--drag .awab-cats__track {
	cursor: grab;
}

.awab-cats.is-dragging .awab-cats__track {
	cursor: grabbing;
	user-select: none;
}

.awab-cats.is-dragging .awab-cat__link {
	pointer-events: none;
}

.awab-cat {
	flex: 0 0 var(--awab-cat-w, calc((100% - (var(--awab-cat-spv) - 1) * var(--awab-cat-gap)) / var(--awab-cat-spv)));
	min-width: 0;
	scroll-snap-align: start;
}

.awab-cat__link {
	--awab-cat-title-gap: 10px;
	display: flex;
	flex-direction: column;
	gap: var(--awab-cat-title-gap);
	height: 100%;
	transition: transform var(--awab-speed) var(--awab-ease), opacity var(--awab-speed) var(--awab-ease);
	-webkit-user-drag: none;
}

.awab-cat__media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1.45;
	background-color: #f3f0eb;
	overflow: hidden;
	transition: background-color var(--awab-speed) var(--awab-ease), box-shadow var(--awab-speed) var(--awab-ease);
}

.awab-cat__img {
	display: block;
	width: 100%;
	height: 100% !important;
	object-fit: contain;
	transition: transform var(--awab-speed) var(--awab-ease);
	pointer-events: none;
	-webkit-user-drag: none;
}

.awab-cat__body {
	display: block;
	min-width: 0;
}

.awab-cat__title {
	margin: 0;
	padding: 0;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--awab-text);
	transition: color var(--awab-speed) var(--awab-ease);
	overflow-wrap: anywhere;
}

.awab-cat__count {
	display: block;
	margin-top: 2px;
	font-size: 11px;
	color: var(--awab-muted);
}

.awab-cat.is-active .awab-cat__title {
	font-weight: 600;
}

.awab-cat.is-active .awab-cat__media {
	box-shadow: inset 0 0 0 var(--awab-active-w, 1px) currentColor;
}

.awab-cat__link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* Hover effects */
.awab-cat-hover-zoom .awab-cat__link:hover .awab-cat__img {
	transform: scale(1.06);
}

.awab-cat-hover-lift .awab-cat__link:hover {
	transform: translateY(-4px);
}

.awab-cat-hover-fade .awab-cat__link:hover {
	opacity: .75;
}

/* Arrows */
.awab-cats__arrow {
	position: absolute;
	z-index: 3;
	top: 0;
	bottom: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: #111;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
	transform: translateY(var(--awab-arrow-y, 0));
	transition: background-color .2s, color .2s, opacity .2s;
}

.awab-cats__arrow[hidden] {
	display: none;
}

.awab-cats__arrow svg,
.awab-cats__arrow i {
	width: 1em;
	height: 1em;
	font-size: inherit;
	fill: currentColor;
}

.awab-cats__arrow--prev {
	left: var(--awab-arrow-offset);
}

.awab-cats__arrow--next {
	right: var(--awab-arrow-offset);
}

.awab-cats__arrow:disabled {
	opacity: 0;
	pointer-events: none;
}

.awab-cats__arrow:focus-visible {
	outline: 2px solid #111;
	outline-offset: 2px;
}

/* Dots */
.awab-cats__dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin-top: 14px;
}

.awab-cats__dot {
	width: 7px;
	height: 7px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #d4d4d4;
	cursor: pointer;
	transition: background-color .2s, transform .2s;
}

.awab-cats__dot.is-active {
	background: #111;
	transform: scale(1.2);
}

/* ------------------------------------------------------------------
 * Toolbar
 * ---------------------------------------------------------------- */

.awab-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: calc(var(--awab-section-gap) * -0.5);
	font-size: 13px;
}

.awab-result-count {
	margin: 0;
	color: var(--awab-muted);
}

.awab-ordering {
	margin: 0 0 0 auto;
}

.awab-ordering__select {
	padding: 7px 30px 7px 10px;
	border: 1px solid #e2e2e2;
	border-radius: 2px;
	background-color: #fff;
	font: inherit;
	color: inherit;
	cursor: pointer;
}

/* ------------------------------------------------------------------
 * Product grid
 * ---------------------------------------------------------------- */

.awab-grid {
	--awab-cols: 4;
	--awab-col-gap: 6px;
	--awab-row-gap: 24px;
	display: grid;
	grid-template-columns: repeat(var(--awab-cols), minmax(0, 1fr));
	column-gap: var(--awab-col-gap);
	row-gap: var(--awab-row-gap);
	margin: 0;
	padding: 0;
	list-style: none;
	transition: opacity .25s;
}

.awab.is-loading-replace .awab-grid {
	opacity: .45;
	pointer-events: none;
}

.awab-empty {
	grid-column: 1 / -1;
	margin: 0;
	padding: 40px 0;
	text-align: center;
	color: var(--awab-muted);
}

/* Card */
.awab-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	border: 0 solid transparent;
	transition: background-color var(--awab-speed) var(--awab-ease), box-shadow var(--awab-speed) var(--awab-ease), transform var(--awab-speed) var(--awab-ease), border-color var(--awab-speed) var(--awab-ease);
}

.awab-card.is-new-item {
	animation: awab-fade-in .45s var(--awab-ease) both;
}

@keyframes awab-fade-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.awab--equal .awab-card {
	height: 100%;
}

.awab--equal .awab-card__body {
	flex: 1 1 auto;
}

.awab-card__media {
	--awab-zoom: 1.06;
	position: relative;
	aspect-ratio: 1 / 1.15;
	margin-bottom: 8px;
	background-color: #f1f1f3;
	overflow: hidden;
	transition: background-color var(--awab-speed) var(--awab-ease);
}

.awab-card__image-link {
	position: absolute;
	inset: 0;
	display: block;
}

.awab-card__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: inherit;
	object-fit: contain;
	transition: transform var(--awab-speed) var(--awab-ease), opacity var(--awab-speed) var(--awab-ease);
}

.awab-card__img--hover {
	opacity: 0;
}

.awab-card.has-hover-image:hover .awab-card__img--hover {
	opacity: 1;
}

.awab-card.has-hover-image:hover .awab-card__img--main {
	opacity: 0;
}

.awab-img-hover-zoom .awab-card:hover .awab-card__img {
	transform: scale(var(--awab-zoom, 1.06));
}

.awab-img-hover-zoom-out .awab-card__img {
	transform: scale(var(--awab-zoom, 1.06));
}

.awab-img-hover-zoom-out .awab-card:hover .awab-card__img {
	transform: scale(1);
}

.awab-img-hover-fade .awab-card:hover .awab-card__img--main {
	opacity: .8;
}

.awab-img-hover-fade .awab-card.has-hover-image:hover .awab-card__img--main {
	opacity: 0;
}

/* Badges */
.awab-card__badges {
	--awab-badge-offset: 8px;
	position: absolute;
	z-index: 2;
	top: var(--awab-badge-offset);
	left: var(--awab-badge-offset);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	pointer-events: none;
}

.awab-badges-right .awab-card__badges {
	left: auto;
	right: var(--awab-badge-offset);
	align-items: flex-end;
}

/* Keep badges clear of the wishlist heart when both sit on the right. */
.awab-badges-right .awab-card__badges {
	top: calc(var(--awab-badge-offset) + 28px);
}

.awab-badge {
	display: inline-block;
	padding: 3px 7px;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: #fff;
	background: #111;
}

.awab-badge--sale {
	background: #c8102e;
}

.awab-badge--featured {
	background: #111;
}

.awab-badge--new {
	color: #111;
	background: #fff;
}

.awab-badge--oos {
	color: #555;
	background: #e4e4e4;
}

/* Wishlist */
.awab-wishlist {
	position: absolute;
	z-index: 3;
	top: 6px;
	right: 6px;
	font-size: 15px;
	color: #111;
}

.awab-wishlist--builtin {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	line-height: 1;
	cursor: pointer;
	transition: color .2s, transform .2s, background-color .2s;
}

.awab-wishlist--builtin:hover {
	transform: scale(1.1);
	background: transparent;
}

.awab-wishlist--builtin:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 1px;
}

.awab-wishlist .awab-icon {
	display: block;
	width: 1em;
	height: 1em;
}

.awab-wishlist.is-active {
	--awab-heart-fill: currentColor;
}

.awab-wishlist.is-active .awab-icon {
	animation: awab-pop .3s var(--awab-ease);
}

@keyframes awab-pop {
	50% {
		transform: scale(1.3);
	}
}

.awab-wishlist--yith .yith-wcwl-add-to-wishlist,
.awab-wishlist--ti .tinv-wraper {
	margin: 0 !important;
}

/* Quick view button */
.awab-quick-view {
	position: absolute;
	z-index: 2;
	left: 8px;
	right: 8px;
	bottom: 8px;
	padding: 8px 10px;
	border: 0;
	background: rgba(255, 255, 255, .95);
	color: #111;
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity .25s, transform .25s, background-color .2s, color .2s;
}

.awab-card:hover .awab-quick-view,
.awab-quick-view:focus-visible {
	opacity: 1;
	transform: none;
}

@media (hover: none) {
	.awab-quick-view {
		opacity: 1;
		transform: none;
	}
}

/* Body */
.awab-card__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.awab-card__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	column-gap: 8px;
	row-gap: 0;
	min-width: 0;
}

.awab-card__title {
	--awab-title-lines: 2;
	flex: 1 1 60%;
	min-width: 0;
	margin: 0;
	padding: 0;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: 0;
	text-transform: none;
	color: var(--awab-text);
	display: -webkit-box;
	-webkit-line-clamp: var(--awab-title-lines);
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.awab-card__title a {
	color: inherit;
	transition: color .2s;
}

.awab-card__price {
	flex: 0 0 auto;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--awab-text);
	white-space: nowrap;
	text-align: right;
}

.awab-card__price del {
	margin-right: 4px;
	font-weight: 400;
	color: var(--awab-muted);
	opacity: 1;
}

.awab-card__price ins {
	text-decoration: none;
	background: none;
	color: #c8102e;
}

.awab-card--hide-regular .awab-card__price del {
	display: none;
}

.awab-card__price .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
}

.awab-card__cat {
	font-size: 11px;
	line-height: 1.4;
	color: var(--awab-muted);
}

.awab-card__rating .star-rating {
	float: none;
	margin: 2px 0 0;
	font-size: 11px;
}

.awab-card__stock .stock {
	margin: 2px 0 0;
	font-size: 11px;
}

.awab-card__actions {
	margin-top: auto;
	padding-top: 8px;
}

.awab-card__actions .button {
	display: inline-block;
	margin: 0;
	padding: 8px 14px;
	font-size: 12px;
}

.awab-card__actions .added_to_cart {
	display: inline-block;
	margin-left: 8px;
	font-size: 12px;
}

/* Layout variants */
.awab--layout-stacked .awab-card__head {
	flex-direction: column;
	align-items: stretch;
	gap: 2px;
}

.awab--layout-stacked .awab-card__price {
	text-align: inherit;
	white-space: normal;
}

.awab--layout-centered .awab-card__body {
	text-align: center;
	align-items: center;
}

.awab--layout-centered .awab-card__head {
	flex-direction: column;
	align-items: center;
	gap: 2px;
}

.awab--layout-centered .awab-card__price {
	text-align: center;
}

/* ------------------------------------------------------------------
 * Pagination
 * ---------------------------------------------------------------- */

.awab-pagination {
	--awab-page-gap: 6px;
	display: flex;
	justify-content: center;
	margin-top: calc(var(--awab-section-gap) * -0.25);
}

.awab-pagination[hidden] {
	display: none;
}

.awab-pagination__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--awab-page-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.awab-pagination__list li {
	margin: 0;
	padding: 0;
}

.awab-pagination__pn {
	display: flex;
	align-items: center;
	gap: var(--awab-page-gap);
}

.awab-pagination__status {
	font-size: 12px;
	color: var(--awab-muted);
}

.awab-btn,
.awab-page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 34px;
	padding: 8px 18px;
	border: 1px solid transparent;
	border-radius: 2px;
	background: #e6e6e6;
	color: #111;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
	text-align: center;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s, opacity .2s;
}

.awab-page {
	padding: 7px 10px;
	background: transparent;
}

.awab-pagination a.awab-btn:hover,
.awab-pagination a.awab-page:hover {
	background: #d9d9d9;
	color: #111;
}

.awab-page--current {
	background: #111;
	color: #fff;
	cursor: default;
}

.awab-page--dots {
	background: transparent;
	cursor: default;
}

.awab-btn.is-disabled {
	opacity: .4;
	cursor: not-allowed;
}

.awab-pagination__end {
	font-size: 12px;
	color: var(--awab-muted);
}

/* Load-more spinner */
.awab-spinner {
	display: none;
	width: 1em;
	height: 1em;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: awab-spin .7s linear infinite;
}

.awab-load-more.is-loading .awab-spinner {
	display: inline-block;
}

.awab-load-more.is-loading {
	pointer-events: none;
	opacity: .8;
}

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

/* Infinite scroll: the button becomes a quiet sentinel once JS takes over. */
.awab-js .awab-load-more--infinite {
	background: transparent !important;
	border-color: transparent !important;
	color: var(--awab-muted);
}

.awab-js .awab-load-more--infinite:not(.is-loading) .awab-load-more__text {
	visibility: hidden;
}

/* ------------------------------------------------------------------
 * Quick view modal
 * ---------------------------------------------------------------- */

.awab-modal {
	position: fixed;
	z-index: 100000;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.awab-modal[hidden] {
	display: none;
}

.awab-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .5);
	animation: awab-fade .2s ease both;
}

.awab-modal__dialog {
	position: relative;
	width: min(920px, 100%);
	max-height: calc(100vh - 40px);
	overflow: auto;
	padding: 28px;
	background: #fff;
	color: #111;
	animation: awab-fade-in .25s var(--awab-ease, ease) both;
}

.awab-modal__close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #111;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.awab-modal.is-loading .awab-modal__dialog {
	min-height: 200px;
}

.awab-modal.is-loading .awab-modal__dialog::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 26px;
	height: 26px;
	margin: -13px 0 0 -13px;
	border: 2px solid #111;
	border-right-color: transparent;
	border-radius: 50%;
	animation: awab-spin .7s linear infinite;
}

@keyframes awab-fade {
	from {
		opacity: 0;
	}
}

.awab-qv {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px;
	align-items: start;
}

.awab-qv__media {
	background: #f1f1f3;
}

.awab-qv__media img {
	display: block;
	width: 100%;
	height: auto;
}

.awab-qv__title {
	margin: 0 0 8px;
	font-size: 22px;
	line-height: 1.25;
}

.awab-qv__price {
	margin-bottom: 12px;
	font-size: 16px;
	font-weight: 600;
}

.awab-qv__price ins {
	text-decoration: none;
}

.awab-qv__desc {
	font-size: 14px;
	line-height: 1.6;
}

.awab-qv__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-top: 16px;
}

.awab-qv__details {
	font-size: 13px;
	text-decoration: underline;
}

body.awab-modal-open {
	overflow: hidden;
}

@media (max-width: 767px) {
	.awab-qv {
		grid-template-columns: 1fr;
	}

	.awab-modal__dialog {
		padding: 20px;
	}

	.awab-card__head {
		gap: 4px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.awab *,
	.awab-modal * {
		transition: none !important;
		animation: none !important;
	}
}
