/**
 * Advanced WooCommerce Product Grid
 *
 * Every rule is scoped to .awpg-product-grid (or the quick-view dialog, which
 * lives in <body>). Layout is driven by CSS custom properties that Elementor
 * responsive controls write per breakpoint, so no widget-specific media
 * queries are needed. Fallback values below mirror the reference design.
 */

/* ==========================================================================
   Root + defaults
   ========================================================================== */

.awpg-product-grid {
	--awpg-columns: 4;
	--awpg-slides: 4;
	--awpg-col-gap: 16px;
	--awpg-row-gap: 32px;
	--awpg-slide-gap: var(--awpg-col-gap);
	--awpg-ratio: 7 / 8;
	--awpg-fit: cover;
	/* Focal point. Presets write --awpg-pos directly; the "Custom" preset
	   resolves it from the X/Y sliders below. */
	--awpg-pos: 50% 50%;
	--awpg-pos-x: 50%;
	--awpg-pos-y: 50%;
	/* Switched by the "Original (no crop)" aspect ratio so the image keeps
	   its own height instead of filling a fixed box. */
	--awpg-link-pos: absolute;
	--awpg-img-pos: absolute;
	--awpg-img-h: 100%;
	--awpg-title-lines: 1;
	--awpg-title-price-gap: 12px;
	--awpg-zoom: 1.06;
	--awpg-img-hover-opacity: 0.85;
	--awpg-img-duration: 450ms;
	--awpg-overlay: transparent;
	--awpg-lift: -4px;
	--awpg-star: #111;
	--awpg-star-empty: #d6d6d6;
	--awpg-loader: #111;
	--awpg-arrow-offset: 8px;
	--awpg-focus: #111;

	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

@media (max-width: 1024px) {
	.awpg-product-grid {
		--awpg-columns: 3;
		--awpg-slides: 3;
	}
}

@media (max-width: 767px) {
	.awpg-product-grid {
		--awpg-columns: 2;
		--awpg-slides: 2;
	}
}

.awpg-product-grid *,
.awpg-product-grid *::before,
.awpg-product-grid *::after {
	box-sizing: border-box;
}

/* ==========================================================================
   Grid
   ========================================================================== */

.awpg-product-grid .awpg-grid {
	display: grid;
	grid-template-columns: repeat(var(--awpg-columns), minmax(0, 1fr));
	column-gap: var(--awpg-col-gap);
	row-gap: var(--awpg-row-gap);
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.awpg-product-grid .awpg-item {
	display: flex;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.awpg-product-grid .awpg-item::before,
.awpg-product-grid .awpg-item::marker {
	content: none;
}

/* ==========================================================================
   Card
   ========================================================================== */

.awpg-product-grid .awpg-card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	min-width: 0;
	height: 100%;
	margin: 0;
	background: transparent;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.awpg-product-grid.awpg-card-hover--lift .awpg-card:hover,
.awpg-product-grid.awpg-card-hover--lift .awpg-card:focus-within {
	transform: translateY(var(--awpg-lift));
}

.awpg-product-grid.awpg-card-hover--grow .awpg-card:hover,
.awpg-product-grid.awpg-card-hover--grow .awpg-card:focus-within {
	transform: scale(1.02);
}

/* ==========================================================================
   Media
   ========================================================================== */

.awpg-product-grid .awpg-card__media {
	position: relative;
	width: 100%;
	max-width: 100%;
	aspect-ratio: var(--awpg-ratio);
	margin: 0 0 10px;
	overflow: hidden;
	background-color: #f3f3f3;
	isolation: isolate;
}

.awpg-product-grid .awpg-card__image-link {
	position: var(--awpg-link-pos);
	inset: 0;
	display: block;
	overflow: hidden;
	border: 0;
	box-shadow: none;
	text-decoration: none;
}

.awpg-product-grid .awpg-card__img {
	position: var(--awpg-img-pos);
	inset: 0;
	display: block;
	width: 100%;
	height: var(--awpg-img-h);
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	object-fit: var(--awpg-fit);
	object-position: var(--awpg-pos);
	transition:
		transform var(--awpg-img-duration) ease,
		opacity var(--awpg-img-duration) ease;
}

/* The hover image always overlays the primary one, including in no-crop mode. */
.awpg-product-grid .awpg-card__img--secondary {
	position: absolute;
	inset: 0;
	height: 100%;
	opacity: 0;
	z-index: 1;
}

/* Overlay (colour set from Elementor). */
.awpg-product-grid .awpg-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	background: var(--awpg-overlay);
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--awpg-img-duration) ease;
}

.awpg-product-grid .awpg-card:hover .awpg-card__media::after {
	opacity: 1;
}

/* Hover: zoom */
.awpg-product-grid.awpg-hover--zoom .awpg-card:hover .awpg-card__img {
	transform: scale(var(--awpg-zoom));
}

/* Hover: second gallery image (primary stays when none exists). */
.awpg-product-grid.awpg-hover--second .awpg-card--has-second:hover .awpg-card__img--secondary {
	opacity: 1;
}

/* Hover: fade */
.awpg-product-grid.awpg-hover--fade .awpg-card:hover .awpg-card__img--primary {
	opacity: var(--awpg-img-hover-opacity);
}

/* Hover: slide (second image slides in; otherwise a subtle pan). */
.awpg-product-grid.awpg-hover--slide .awpg-card__img--secondary {
	opacity: 1;
	transform: translateX(100%);
}

.awpg-product-grid.awpg-hover--slide .awpg-card--has-second:hover .awpg-card__img--primary {
	transform: translateX(-100%);
}

.awpg-product-grid.awpg-hover--slide .awpg-card--has-second:hover .awpg-card__img--secondary {
	transform: translateX(0);
}

.awpg-product-grid.awpg-hover--slide .awpg-card:not(.awpg-card--has-second):hover .awpg-card__img--primary {
	transform: translateX(-3%) scale(1.06);
}

[dir="rtl"] .awpg-product-grid.awpg-hover--slide .awpg-card__img--secondary,
.awpg-product-grid[dir="rtl"].awpg-hover--slide .awpg-card__img--secondary {
	transform: translateX(-100%);
}

[dir="rtl"] .awpg-product-grid.awpg-hover--slide .awpg-card--has-second:hover .awpg-card__img--primary,
.awpg-product-grid[dir="rtl"].awpg-hover--slide .awpg-card--has-second:hover .awpg-card__img--primary {
	transform: translateX(100%);
}

/* ==========================================================================
   Body: title + price row, category
   ========================================================================== */

.awpg-product-grid .awpg-card__body {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
}

.awpg-product-grid .awpg-card__row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--awpg-title-price-gap);
	min-width: 0;
}

.awpg-product-grid .awpg-card__row--stacked {
	flex-direction: column;
	gap: 4px;
}

.awpg-product-grid .awpg-card__info {
	flex: 1 1 auto;
	min-width: 0; /* lets long titles shrink instead of pushing the price out */
}

.awpg-product-grid .awpg-card__title {
	margin: 0;
	padding: 0;
	font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0;
	text-transform: none;
	color: #111;
	overflow-wrap: anywhere;
}

.awpg-product-grid .awpg-card__title a {
	display: block;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	text-decoration: none;
	text-transform: inherit;
	box-shadow: none;
	border: 0;
}

.awpg-product-grid .awpg-card__title a:hover {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Title line limit ------------------------------------------------------- */

.awpg-product-grid.awpg-title--ellipsis .awpg-card__title a {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--awpg-title-lines);
	line-clamp: var(--awpg-title-lines);
	overflow: hidden;
	text-overflow: ellipsis;
}

.awpg-product-grid.awpg-title--hidden .awpg-card__title a,
.awpg-product-grid.awpg-title--fade .awpg-card__title a {
	max-height: calc(var(--awpg-title-lines) * 1.4em);
	max-height: calc(var(--awpg-title-lines) * 1lh);
	overflow: hidden;
}

.awpg-product-grid.awpg-title--fade .awpg-card__title a {
	-webkit-mask-image:
		linear-gradient(#000, #000),
		linear-gradient(to right, #000 65%, transparent);
	-webkit-mask-size: 100% calc(100% - 1lh), 100% 1lh;
	-webkit-mask-position: top left, bottom left;
	-webkit-mask-repeat: no-repeat;
	mask-image:
		linear-gradient(#000, #000),
		linear-gradient(to right, #000 65%, transparent);
	mask-size: 100% calc(100% - 1lh), 100% 1lh;
	mask-position: top left, bottom left;
	mask-repeat: no-repeat;
}

[dir="rtl"] .awpg-product-grid.awpg-title--fade .awpg-card__title a {
	-webkit-mask-image:
		linear-gradient(#000, #000),
		linear-gradient(to left, #000 65%, transparent);
	mask-image:
		linear-gradient(#000, #000),
		linear-gradient(to left, #000 65%, transparent);
}

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

.awpg-product-grid .awpg-card__cats {
	margin: 2px 0 0;
	font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.4;
	color: #8a8a8a;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.awpg-product-grid .awpg-card__cats a {
	color: inherit;
	text-decoration: none;
	box-shadow: none;
}

.awpg-product-grid .awpg-card__cats a:hover {
	text-decoration: underline;
}

/* Price ------------------------------------------------------------------ */

.awpg-product-grid .awpg-card__price {
	flex: 0 1 auto;
	max-width: 60%;
	margin: 0;
	font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	color: #111;
	text-align: end;
}

.awpg-product-grid .awpg-card__row--stacked .awpg-card__price {
	max-width: 100%;
	text-align: start;
}

.awpg-product-grid .awpg-card__price .woocommerce-Price-amount,
.awpg-product-grid .awpg-card__price bdi {
	white-space: nowrap; /* a single amount never breaks; ranges wrap at the dash */
}

.awpg-product-grid .awpg-card__price del,
.awpg-product-grid .awpg-card__price ins {
	display: inline;
	margin: 0;
	padding: 0;
	background: none;
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
	text-decoration-thickness: 1px;
}

.awpg-product-grid .awpg-card__price del {
	margin-inline-end: 4px;
	opacity: 0.55;
	font-weight: 400;
}

.awpg-product-grid .awpg-card__price ins {
	text-decoration: none;
}

.awpg-product-grid .awpg-card__price .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

/* ==========================================================================
   Wishlist
   ========================================================================== */

.awpg-product-grid .awpg-wishlist {
	--awpg-wl-bg: transparent;
	--awpg-wl-bg-opacity: 1;

	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-width: 0;
	height: auto;
	margin: 0;
	padding: 4px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: #111;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	isolation: isolate;
	-webkit-tap-highlight-color: transparent;
	transition: color 0.2s ease, transform 0.2s ease;
}

[dir="rtl"] .awpg-product-grid .awpg-wishlist {
	right: auto;
	left: 8px;
}

.awpg-product-grid .awpg-wishlist::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	background: var(--awpg-wl-bg);
	opacity: var(--awpg-wl-bg-opacity);
	transition: background-color 0.2s ease;
}

.awpg-product-grid .awpg-wishlist:hover,
.awpg-product-grid .awpg-wishlist:focus {
	background: transparent;
	color: #111;
}

.awpg-product-grid .awpg-card__body > .awpg-wishlist {
	position: static;
	align-self: flex-end;
	margin-bottom: 4px;
}

.awpg-product-grid .awpg-wishlist__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	pointer-events: none;
}

.awpg-product-grid .awpg-wishlist__icon svg,
.awpg-product-grid .awpg-wishlist__icon i {
	display: block;
	width: 1em;
	height: 1em;
	font-size: inherit;
	fill: currentColor;
}

.awpg-product-grid .awpg-wishlist__icon .awpg-heart {
	fill: none;
}

.awpg-product-grid .awpg-wishlist__icon--on .awpg-heart {
	fill: currentColor;
}

.awpg-product-grid .awpg-wishlist__icon--on,
.awpg-product-grid .awpg-wishlist.is-active .awpg-wishlist__icon--off,
.awpg-product-grid .awpg-wishlist.woosw-added .awpg-wishlist__icon--off {
	display: none;
}

.awpg-product-grid .awpg-wishlist.is-active .awpg-wishlist__icon--on,
.awpg-product-grid .awpg-wishlist.woosw-added .awpg-wishlist__icon--on {
	display: inline-flex;
}

.awpg-product-grid .awpg-wishlist.is-busy {
	opacity: 0.6;
	pointer-events: none;
}

/* Hover animations */
.awpg-product-grid.awpg-wl-anim--scale .awpg-wishlist:hover {
	transform: scale(1.15);
}

.awpg-product-grid.awpg-wl-anim--pulse .awpg-wishlist:hover .awpg-wishlist__icon {
	animation: awpg-pulse 0.8s ease-in-out infinite;
}

.awpg-product-grid .awpg-wishlist.is-popping .awpg-wishlist__icon {
	animation: awpg-pop 0.35s ease;
}

@keyframes awpg-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.18); }
}

@keyframes awpg-pop {
	0% { transform: scale(1); }
	50% { transform: scale(1.3); }
	100% { transform: scale(1); }
}

/* ==========================================================================
   Badges
   ========================================================================== */

.awpg-product-grid .awpg-badges {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	pointer-events: none;
}

[dir="rtl"] .awpg-product-grid .awpg-badges {
	left: auto;
	right: 8px;
}

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

.awpg-product-grid .awpg-badge--featured {
	color: #111;
	background: #fff;
}

/* ==========================================================================
   Optional extras
   ========================================================================== */

.awpg-product-grid .awpg-card__rating {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-top: 4px;
	font-size: 11px;
	line-height: 1;
	color: #8a8a8a;
}

.awpg-product-grid .awpg-stars {
	position: relative;
	display: inline-block;
	font-size: 12px;
	line-height: 1;
	letter-spacing: 1px;
	white-space: nowrap;
}

.awpg-product-grid .awpg-stars::before {
	content: "\2605\2605\2605\2605\2605";
	background: linear-gradient(90deg, var(--awpg-star) var(--awpg-rating, 0%), var(--awpg-star-empty) var(--awpg-rating, 0%));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.awpg-product-grid .awpg-card__stock {
	margin-top: 4px;
	font-size: 11px;
	line-height: 1.4;
}

.awpg-product-grid .awpg-stock--in-stock { color: #2e7d32; }
.awpg-product-grid .awpg-stock--out-of-stock { color: #b3261e; }
.awpg-product-grid .awpg-stock--on-backorder { color: #a15c00; }

.awpg-product-grid .awpg-card__atc {
	margin-top: 10px;
}

.awpg-product-grid .awpg-card__atc .button {
	display: inline-block;
	margin: 0;
	padding: 8px 14px;
	border: 1px solid #111;
	border-radius: 0;
	background: #111;
	color: #fff;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.awpg-product-grid .awpg-card__atc .button:hover {
	background: #fff;
	color: #111;
}

.awpg-product-grid .awpg-card__atc .added_to_cart {
	display: inline-block;
	margin-top: 6px;
	margin-inline-start: 8px;
	font-size: 12px;
	color: inherit;
}

.awpg-product-grid .awpg-card__atc .button.loading {
	opacity: 0.6;
}

/* Quick view trigger */
.awpg-product-grid .awpg-quickview {
	position: absolute;
	right: 8px;
	bottom: 8px;
	left: 8px;
	z-index: 3;
	margin: 0;
	padding: 8px 10px;
	border: 0;
	border-radius: 0;
	background: rgba(255, 255, 255, 0.92);
	color: #111;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.awpg-product-grid .awpg-card:hover .awpg-quickview,
.awpg-product-grid .awpg-quickview:focus-visible,
.awpg-product-grid.awpg-qv--always .awpg-quickview {
	opacity: 1;
	transform: none;
}

@media (hover: none) {
	.awpg-product-grid .awpg-quickview {
		opacity: 1;
		transform: none;
	}
}

/* ==========================================================================
   Focus states
   ========================================================================== */

.awpg-product-grid a:focus-visible,
.awpg-product-grid button:focus-visible,
.awpg-product-grid .awpg-grid--carousel:focus-visible {
	outline: 2px solid var(--awpg-focus);
	outline-offset: 2px;
}

.awpg-product-grid .awpg-card:focus-within .awpg-card__media {
	outline: 0;
}

/* ==========================================================================
   Empty state, editor notices, screen-reader
   ========================================================================== */

.awpg-product-grid .awpg-empty {
	padding: 24px 0;
	font-size: 14px;
	color: #6b6b6b;
	text-align: center;
}

.awpg-editor-notice {
	margin: 0 0 12px;
	padding: 10px 14px;
	border-left: 3px solid #93003c;
	background: #fdf2f6;
	color: #3c434a;
	font-size: 13px;
	line-height: 1.5;
}

.awpg-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ==========================================================================
   Pagination / load more
   ========================================================================== */

.awpg-product-grid .awpg-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 40px;
}

.awpg-product-grid .awpg-page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: auto;
	padding: 7px 10px;
	border: 1px solid transparent;
	border-radius: 0;
	background: transparent;
	color: #111;
	font-size: 13px;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: none;
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.awpg-product-grid a.awpg-page:hover {
	border-color: #111;
}

.awpg-product-grid .awpg-page.is-current {
	background: #111;
	color: #fff;
}

.awpg-product-grid .awpg-page.is-disabled {
	opacity: 0.35;
	cursor: default;
}

.awpg-product-grid .awpg-page--dots {
	min-width: 0;
	border: 0;
}

.awpg-product-grid .awpg-more {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 40px;
}

.awpg-product-grid .awpg-more__btn {
	display: inline-block;
	padding: 11px 28px;
	border: 1px solid #111;
	border-radius: 0;
	background: transparent;
	color: #111;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.awpg-product-grid .awpg-more__btn:hover {
	background: #111;
	color: #fff;
}

.awpg-product-grid .awpg-more__btn[aria-busy="true"] {
	opacity: 0.6;
	pointer-events: none;
}

/* Infinite scroll: the button stays in the DOM as a crawlable / no-JS fallback. */
.awpg-product-grid.awpg-js .awpg-more--infinite .awpg-more__btn {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.awpg-product-grid.awpg-js .awpg-more--infinite.is-error .awpg-more__btn,
.awpg-product-grid.awpg-js.awpg-no-io .awpg-more--infinite .awpg-more__btn {
	position: static;
	width: auto;
	height: auto;
	clip: auto;
}

.awpg-product-grid .awpg-loader {
	display: none;
	width: 22px;
	height: 22px;
	border: 2px solid var(--awpg-loader);
	border-right-color: transparent;
	border-radius: 50%;
	animation: awpg-spin 0.7s linear infinite;
}

.awpg-product-grid.is-loading .awpg-loader {
	display: inline-block;
}

.awpg-product-grid.is-loading .awpg-grid {
	opacity: 0.55;
	transition: opacity 0.2s ease;
}

.awpg-product-grid.is-loading.is-appending .awpg-grid {
	opacity: 1;
}

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

/* ==========================================================================
   Carousel
   ========================================================================== */

.awpg-product-grid .awpg-carousel {
	position: relative;
	width: 100%;
	min-width: 0;
}

.awpg-product-grid .awpg-grid--carousel {
	display: flex;
	gap: var(--awpg-slide-gap);
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	touch-action: pan-x pan-y;
}

.awpg-product-grid .awpg-grid--carousel::-webkit-scrollbar {
	display: none;
}

.awpg-product-grid .awpg-grid--carousel.is-animating {
	scroll-snap-type: none;
}

.awpg-product-grid .awpg-grid--carousel > .awpg-item {
	flex: 0 0 calc((100% - (var(--awpg-slides) - 1) * var(--awpg-slide-gap)) / var(--awpg-slides));
	scroll-snap-align: start;
}

.awpg-product-grid .awpg-carousel__arrow {
	position: absolute;
	top: 40%;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: #111;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
	transition: opacity 0.2s ease, background-color 0.2s ease;
}

.awpg-product-grid .awpg-carousel__arrow svg {
	display: block;
	width: 1em;
	height: 1em;
}

.awpg-product-grid .awpg-carousel__prev {
	left: var(--awpg-arrow-offset);
}

.awpg-product-grid .awpg-carousel__next {
	right: var(--awpg-arrow-offset);
}

.awpg-product-grid[dir="rtl"] .awpg-carousel__prev {
	left: auto;
	right: var(--awpg-arrow-offset);
}

.awpg-product-grid[dir="rtl"] .awpg-carousel__next {
	right: auto;
	left: var(--awpg-arrow-offset);
}

.awpg-product-grid[dir="rtl"] .awpg-carousel__arrow svg {
	transform: scaleX(-1);
}

.awpg-product-grid .awpg-carousel__arrow[disabled] {
	opacity: 0.3;
	cursor: default;
}

.awpg-product-grid .awpg-carousel__arrow[hidden],
.awpg-product-grid .awpg-carousel__dots[hidden] {
	display: none;
}

.awpg-product-grid .awpg-carousel__dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 20px;
}

.awpg-product-grid .awpg-carousel__dot {
	width: 8px;
	height: 8px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #cfcfcf;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.awpg-product-grid .awpg-carousel__dot[aria-current="true"] {
	background: #111;
	transform: scale(1.15);
}

/* ==========================================================================
   Quick view dialog (appended to <body>)
   ========================================================================== */

.awpg-qv {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.awpg-qv[hidden] {
	display: none;
}

.awpg-qv__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

.awpg-qv__dialog {
	position: relative;
	width: 100%;
	max-width: 880px;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	overflow: auto;
	padding: 28px;
	background: #fff;
	color: #111;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.awpg-qv__close {
	position: absolute;
	top: 8px;
	right: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #111;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.awpg-qv__close:focus-visible,
.awpg-qv a:focus-visible,
.awpg-qv button:focus-visible {
	outline: 2px solid #111;
	outline-offset: 2px;
}

.awpg-qv__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 28px;
}

.awpg-qv__img {
	display: block;
	width: 100%;
	height: auto;
}

.awpg-qv__cats {
	font-size: 12px;
	color: #8a8a8a;
}

.awpg-qv__title {
	margin: 4px 0 8px;
	font-size: 22px;
	line-height: 1.3;
}

.awpg-qv__price {
	margin-bottom: 14px;
	font-size: 16px;
	font-weight: 500;
}

.awpg-qv__desc {
	margin-bottom: 16px;
	font-size: 14px;
	line-height: 1.6;
}

.awpg-qv__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
}

.awpg-qv__link {
	color: inherit;
	font-size: 13px;
	text-decoration: underline;
}

.awpg-qv__loading {
	padding: 40px;
	text-align: center;
}

html.awpg-qv-open {
	overflow: hidden;
}

@media (max-width: 767px) {
	.awpg-qv__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}

	.awpg-qv__dialog {
		padding: 20px 16px;
	}
}

/* ==========================================================================
   Small-screen safety
   ========================================================================== */

@media (max-width: 480px) {
	.awpg-product-grid .awpg-card__row {
		gap: 8px;
	}

	.awpg-product-grid .awpg-card__price {
		max-width: 50%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.awpg-product-grid *,
	.awpg-product-grid *::before,
	.awpg-product-grid *::after,
	.awpg-qv * {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
