.apqp-root {
	--apqp-slides: 4;
	--apqp-gap: 24px;
	position: relative;
	width: 100%;
}

.apqp-root,
.apqp-root * {
	box-sizing: border-box;
}

.apqp-tabs-wrap {
	width: 100%;
	margin-bottom: 36px;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.apqp-tabs-wrap::-webkit-scrollbar,
.apqp-viewport::-webkit-scrollbar {
	display: none;
}

.apqp-tabs {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 8px;
	width: max-content;
	min-width: 100%;
}

.apqp-tab {
	appearance: none;
	border: 0;
	outline: 0;
	background: transparent;
	color: #111;
	padding: 13px 18px;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	transition: color .22s ease, background-color .22s ease, transform .22s ease;
}

.apqp-tab:hover,
.apqp-tab:focus-visible {
	background: #111;
	color: #fff;
}

.apqp-tab.is-active {
	background: #000;
	color: #fff;
}

.apqp-tab:focus-visible {
	box-shadow: 0 0 0 3px rgba(0,0,0,.18);
}

.apqp-carousel {
	position: relative;
}

.apqp-viewport {
	position: relative;
	width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.apqp-track {
	display: flex;
	align-items: stretch;
	gap: var(--apqp-gap);
	width: max-content;
	min-width: 100%;
}

.apqp-card {
	position: relative;
	display: flex;
	flex: 0 0 100%;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	background: #f5f5f5;
	scroll-snap-align: start;
	isolation: isolate;
}

.apqp-media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 360px;
	overflow: hidden;
	background: #f5f5f5;
	text-decoration: none;
}

.apqp-media img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: contain;
	transition: transform .38s cubic-bezier(.2,.75,.25,1);
}

.apqp-card:hover .apqp-media img {
	transform: scale(1.05);
}

.apqp-content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	justify-content: space-between;
	min-height: 310px;
	padding: 28px 24px 24px;
	background: #f1f1f5;
	color: #000;
	transition: background-color .28s ease, color .28s ease;
}

.apqp-card:hover .apqp-content {
	background: #000;
	color: #fff;
}

.apqp-main {
	display: block;
}

.apqp-category {
	margin: 0 0 8px;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: .08em;
	text-transform: uppercase;
	transition: color .28s ease;
}

.apqp-title {
	margin: 0 0 8px;
	padding: 0;
	font-size: 26px;
	font-weight: 900;
	line-height: 1.08;
	text-transform: uppercase;
}

.apqp-title a {
	color: #000;
	text-decoration: none;
	transition: color .28s ease;
}

.apqp-card:hover .apqp-title a {
	color: #fff;
}

.apqp-rating-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	min-height: 20px;
	margin: 0 0 22px;
}

.apqp-rating-row .star-rating {
	float: none;
	width: 5.4em;
	margin: 0;
	font-size: 15px;
	line-height: 1;
}

.apqp-rating-row .star-rating::before,
.apqp-rating-row .star-rating span::before {
	color: #ffd400;
}

.apqp-review-count,
.apqp-no-rating {
	color: #000;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: underline;
	transition: color .28s ease;
}

.apqp-no-rating {
	text-decoration: none;
	opacity: .65;
}

.apqp-card:hover .apqp-review-count,
.apqp-card:hover .apqp-no-rating {
	color: #fff;
}

.apqp-excerpt {
	margin: 0;
	color: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.58;
	transition: color .28s ease;
}

.apqp-footer {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-top: 28px;
}

.apqp-price {
	flex: 1 1 auto;
	color: #000;
	font-size: 23px;
	font-weight: 800;
	line-height: 1.1;
	transition: color .28s ease;
}

.apqp-price ins {
	color: inherit;
	text-decoration: none;
}

.apqp-price del {
	color: inherit;
	font-size: .75em;
	opacity: .58;
}

.apqp-card:hover .apqp-price,
.apqp-card:hover .apqp-price ins,
.apqp-card:hover .apqp-price del {
	color: #fff;
}

.apqp-add-button.button,
.apqp-add-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	margin: 0;
	padding: 12px 17px;
	border: 0;
	border-radius: 0;
	background: #ffe000;
	color: #000;
	font-size: 13px;
	font-weight: 900;
	line-height: 1.1;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	box-shadow: none;
	transition: color .22s ease, background-color .22s ease, transform .22s ease, opacity .22s ease;
}

.apqp-add-button.button:hover,
.apqp-add-button:hover,
.apqp-add-button:focus-visible {
	background: #222;
	color: #fff;
	transform: translateY(-1px);
}

.apqp-add-button.loading {
	pointer-events: none;
	opacity: .65;
}

.apqp-footer .added_to_cart.wc-forward {
	display: none !important;
}

.apqp-arrow {
	position: absolute;
	top: 50%;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #000;
	font-size: 20px;
	line-height: 1;
	box-shadow: 0 5px 18px rgba(0,0,0,.12);
	cursor: pointer;
	transform: translateY(-50%);
	transition: opacity .2s ease, background-color .2s ease, color .2s ease, transform .2s ease;
}

.apqp-arrow:hover {
	background: #000;
	color: #fff;
}

.apqp-arrow:disabled {
	pointer-events: none;
	opacity: .25;
}

.apqp-arrow[hidden],
.apqp-dots[hidden] {
	display: none !important;
}

.apqp-root.apqp-is-static .apqp-viewport {
	overflow-x: hidden;
}

.apqp-prev { left: -22px; }
.apqp-next { right: -22px; }

.apqp-dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 12px;
	margin-top: 20px;
}

.apqp-dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #cfcfcf;
	cursor: pointer;
	transition: transform .2s ease, background-color .2s ease;
}

.apqp-dot.is-active {
	background: #000;
	transform: scale(1.15);
}

.apqp-loading {
	position: absolute;
	inset: 0;
	z-index: 8;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: rgba(255,255,255,.78);
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s ease, visibility .2s ease;
}

.apqp-root.is-loading .apqp-loading {
	opacity: 1;
	visibility: visible;
}

.apqp-spinner {
	width: 22px;
	height: 22px;
	border: 3px solid rgba(0,0,0,.18);
	border-top-color: #000;
	border-radius: 50%;
	animation: apqp-spin .7s linear infinite;
}

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

.apqp-empty {
	display: flex;
	flex: 0 0 100%;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 260px;
	padding: 35px;
	background: #f5f5f5;
	font-size: 15px;
	text-align: center;
}

.apqp-message {
	min-height: 0;
	margin-top: 10px;
	font-size: 13px;
	text-align: center;
}

@media (max-width: 1024px) {
	.apqp-root { --apqp-slides: 2; }
	.apqp-prev { left: 8px; }
	.apqp-next { right: 8px; }
}

@media (max-width: 767px) {
	.apqp-root { --apqp-slides: 1; }
	.apqp-tabs { justify-content: flex-start; }
	.apqp-tabs-wrap { margin-bottom: 22px; }
	.apqp-media { height: 330px; }
	.apqp-content { min-height: 290px; }
	.apqp-title { font-size: 23px; }
	.apqp-footer { align-items: stretch; flex-direction: column; }
	.apqp-add-button.button,
	.apqp-add-button { width: 100%; }
	.apqp-arrow { width: 38px; height: 38px; }
}

@media (hover: none) {
	.apqp-card:hover .apqp-media img { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.apqp-viewport { scroll-behavior: auto; }
	.apqp-card *,
	.apqp-arrow,
	.apqp-dot,
	.apqp-tab { transition: none !important; }
}
