/* Amazing Products Showcase — front-end styles
   Palette + type match the Kaak Alia logo: soft cream gradient circle with
   warm brown calligraphy — no hard borders, gentle shadows, rounded shapes. */

.aps-wrapper {
	--aps-cols-desktop: 4;
	--aps-cols-tablet: 3;
	--aps-cols-mobile: 2;

	/* Brand palette, sampled from the actual Kaak Alia logo mark: a warm
	   cream-to-beige gradient circle with soft espresso-brown calligraphy.
	   Softer and more muted than a typical "bakery red" accent on purpose —
	   it matches the logo's quiet, elegant tone instead of fighting it. */
	--aps-cream-light: #faf1de;
	--aps-cream: #f3e2c2;
	--aps-brown-soft: #8a6142;
	--aps-brown: #6b4226;
	--aps-brown-deep: #4a2d18;
	--aps-gold: #c99a54;
	--aps-ivory: #faf1de;
	--aps-primary: #6b4226;
	--aps-accent: #4a2d18;

	box-sizing: border-box;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 16px;
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.aps-wrapper *, .aps-wrapper *::before, .aps-wrapper *::after { box-sizing: border-box; }
.aps-wrapper button,
.aps-qv-overlay button {
	font-family: inherit;
	font-size: inherit;
	line-height: normal;
	margin: 0;
	-webkit-appearance: none;
	appearance: none;
}

/* Toolbar / Filter box — soft cream gradient, no border, gentle shadow instead */
.aps-toolbar {
	position: sticky;
	top: 0;
	z-index: 30;
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 28px;
	padding: 20px 22px;
	background: linear-gradient(160deg, var(--aps-cream-light), var(--aps-cream));
	border: none;
	border-radius: 3px;
	box-shadow: 0 2px 14px rgba(74,45,24,.08);
	transition: box-shadow .25s ease;
}
.aps-toolbar.is-stuck { box-shadow: 0 10px 28px rgba(74,45,24,.16); }
.admin-bar .aps-toolbar { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .aps-toolbar { top: 46px; }
}
.aps-toolbar-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}
.aps-toolbar-row-top { justify-content: space-between; }
.aps-toolbar-row-bottom { justify-content: flex-start; }

.aps-cats {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	padding-bottom: 2px;
	flex: 1 1 auto;
}
.aps-cat-btn {
	background: #fff;
	border: none;
	border-radius: 3px;
	color: var(--aps-brown);
	padding: 9px 18px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all .2s ease;
	white-space: nowrap;
	flex: 0 0 auto;
	box-shadow: 0 1px 6px rgba(74,45,24,.08);
}
.aps-cat-btn:hover { background: var(--aps-cream-light); color: var(--aps-brown-deep); box-shadow: 0 2px 10px rgba(74,45,24,.14); }
.aps-cat-btn.is-active {
	background: var(--aps-brown-deep);
	border-color: var(--aps-brown-deep);
	color: #fff;
}
.aps-count { opacity: .75; font-weight: 400; }

/* Category dropdown — shown only on mobile, replacing the pill row (below) */
.aps-cats-mobile { display: none; width: 100%; align-items: center; gap: 10px; }
.aps-cats-select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	width: 100%;
	padding: 12px 38px 12px 16px;
	border: none;
	border-radius: 3px;
	background-color: #fff;
	box-shadow: 0 1px 6px rgba(74,45,24,.08);
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a2d18' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 14px;
	font-size: 14px;
	font-weight: 700;
	color: var(--aps-accent);
	cursor: pointer;
	transition: box-shadow .2s ease;
}
.aps-cats-select:hover { box-shadow: 0 2px 10px rgba(74,45,24,.14); }
.aps-cats-select:focus { outline: none; box-shadow: 0 0 0 3px rgba(201,154,84,.35); }

.aps-filters-toggle { display: none; }

.aps-price-filter {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--aps-accent);
	font-weight: 600;
	flex: 0 0 auto;
}
.aps-price-range { accent-color: var(--aps-brown); cursor: pointer; }
.aps-price-output-wrap { display: inline-flex; align-items: baseline; gap: 3px; min-width: 46px; }
.aps-price-output { font-weight: 700; color: var(--aps-brown); }
.aps-price-currency { font-size: 11px; font-weight: 700; color: var(--aps-brown); opacity: .85; }

.aps-search {
	position: relative;
	flex: 1 1 220px;
	min-width: 0;
}
.aps-search-icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	width: 16px;
	height: 16px;
	display: block;
	color: var(--aps-brown-soft);
	pointer-events: none;
	z-index: 1;
}
.aps-search-input {
	box-sizing: border-box !important;
	width: 100%;
	padding: 11px 16px 11px 42px !important;
	border: none;
	border-radius: 3px;
	background: #fff;
	box-shadow: 0 1px 6px rgba(74,45,24,.08);
	font-size: 13px;
	transition: box-shadow .2s ease;
}
.aps-search-input:focus { outline: none; box-shadow: 0 0 0 3px rgba(201,154,84,.35); }
.aps-search-input::placeholder { color: var(--aps-brown-soft); opacity: 1; }

.aps-sort {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--aps-accent);
	flex: 0 0 auto;
}
.aps-sort-select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding: 10px 34px 10px 16px;
	border: none;
	border-radius: 3px;
	background-color: #fff;
	box-shadow: 0 1px 6px rgba(74,45,24,.08);
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a2d18' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 14px;
	font-size: 13px;
	font-weight: 600;
	color: var(--aps-accent);
	cursor: pointer;
	transition: box-shadow .2s ease;
}
.aps-sort-select:hover { box-shadow: 0 2px 10px rgba(74,45,24,.14); }
.aps-sort-select:focus { outline: none; box-shadow: 0 0 0 3px rgba(201,154,84,.35); }

.aps-clear-filters {
	background: none;
	border: none;
	color: var(--aps-brown);
	font-size: 13px;
	font-weight: 700;
	text-decoration: underline;
	cursor: pointer;
	padding: 8px 4px;
	flex: 0 0 auto;
	margin-left: auto;
}
.aps-clear-filters:hover { color: var(--aps-accent); }

.aps-results-count {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 12px;
	color: var(--aps-brown-soft);
	font-weight: 600;
}
.aps-results-count::before {
	content: "";
	display: block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--aps-brown);
	flex: 0 0 auto;
}

/* Grid */
.aps-grid {
	display: grid;
	grid-template-columns: repeat(var(--aps-cols-desktop), 1fr);
	gap: 24px;
}
@media (max-width: 1200px) {
	.aps-grid { grid-template-columns: repeat(min(var(--aps-cols-desktop), 3), 1fr); gap: 20px; }
}
@media (max-width: 900px) {
	.aps-grid { grid-template-columns: repeat(var(--aps-cols-tablet), 1fr); gap: 16px; }
	.aps-toolbar { padding: 16px; }
}
@media (max-width: 640px) {
	.aps-grid { grid-template-columns: repeat(var(--aps-cols-mobile), 1fr); gap: 10px; }

	/* The outer box no longer sticks as a whole — only the compact bar below does,
	   so filters never eat up most of the screen on small devices. */
	.aps-toolbar { position: static; background: none; border: none; padding: 0; gap: 0; margin-bottom: 20px; box-shadow: none; }

	.aps-toolbar-row-top {
		position: sticky;
		top: 0;
		z-index: 30;
		flex-wrap: nowrap;
		background: var(--aps-cream-light);
		border: none;
		border-radius: 3px;
		box-shadow: 0 2px 12px rgba(74,45,24,.08);
		padding: 10px 12px;
		margin-bottom: 10px;
		transition: box-shadow .2s ease;
	}
	.admin-bar .aps-toolbar-row-top { top: 32px; }
	@media (max-width: 782px) { .admin-bar .aps-toolbar-row-top { top: 46px; } }
	.aps-toolbar.is-stuck .aps-toolbar-row-top { box-shadow: 0 10px 24px rgba(74,45,24,.16); }

	.aps-cats { display: none; }
	.aps-cats-mobile { display: flex; flex: 1 1 auto; min-width: 0; }
	.aps-cats-mobile .aps-sort-label { display: none; }
	.aps-cats-select { padding: 10px 30px 10px 14px; font-size: 13px; }

	.aps-filters-toggle {
		flex: 0 0 auto;
		display: flex;
		align-items: center;
		gap: 6px;
		background: #fff;
		border: none;
		border-radius: 3px;
		box-shadow: 0 1px 6px rgba(74,45,24,.08);
		color: var(--aps-accent);
		padding: 10px 16px;
		font-size: 13px;
		font-weight: 700;
		cursor: pointer;
		white-space: nowrap;
	}
	.aps-filters-toggle .aps-chevron { transition: transform .2s ease; }
	.aps-toolbar.is-filters-open .aps-filters-toggle .aps-chevron { transform: rotate(180deg); }
	.aps-filters-toggle.is-active { background: var(--aps-brown-deep); color: #fff; }

	/* Collapsible panel: search, price, sort, clear — hidden until "Filters" is tapped */
	.aps-toolbar-more {
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		background: var(--aps-cream-light);
		border: none;
		border-radius: 3px;
		box-shadow: 0 2px 12px rgba(74,45,24,.08);
		padding: 14px;
		margin-bottom: 10px;
	}
	.aps-toolbar.is-filters-open .aps-toolbar-more { display: flex; }

	.aps-search { flex: 1 1 auto; }
	.aps-search-input { padding: 13px 14px 13px 42px !important; font-size: 15px; }

	.aps-price-filter { justify-content: space-between; flex-wrap: nowrap; }
	.aps-price-range { flex: 1 1 auto; min-height: 40px; }

	.aps-sort { flex-direction: column; align-items: stretch; gap: 6px; }
	.aps-sort-label { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #8a6f5c; font-weight: 700; }
	.aps-sort-select { width: 100%; padding: 12px 36px 12px 14px; font-size: 14px; }

	.aps-clear-filters { margin-left: 0; text-align: center; width: 100%; padding: 10px; }

	.aps-results-count { padding: 0 2px; }

	.aps-btn { padding: 13px 14px; font-size: 14px; }
	.aps-cat-btn { padding: 9px 14px; }
}
@media (max-width: 380px) {
	.aps-grid { grid-template-columns: 1fr; }
	.aps-card-body { padding: 12px; }
}

.aps-empty { text-align: center; padding: 40px 0; color: var(--aps-brown-soft); }

/* Card — crisp "photo print" edges, borderless, minimal radius; depth comes
   from a soft double-shadow instead of rounded corners or a hard border. */
.aps-card {
	background: #fffaf3;
	overflow: hidden;
	border: none;
	border-radius: 2px;
	box-shadow: 0 10px 22px rgba(74,45,24,.13), 0 2px 5px rgba(74,45,24,.07);
	display: flex;
	flex-direction: column;
	transition: transform .25s cubic-bezier(.22,1.1,.36,1), box-shadow .3s ease;
}
.aps-card { will-change: transform; }
.aps-card.aps-hover-lift:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 36px rgba(74,45,24,.22), 0 4px 10px rgba(74,45,24,.1);
}
.aps-card.aps-hover-zoom:hover img { transform: scale(1.08); }
.aps-card.aps-hover-none:hover { transform: none; box-shadow: 0 10px 22px rgba(74,45,24,.13), 0 2px 5px rgba(74,45,24,.07); }

.aps-card-media {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--aps-ivory);
}
.aps-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .35s ease;
}

.aps-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 6px 14px;
	font-family: 'Poppins', sans-serif;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--aps-cream-light);
	z-index: 2;
	border-radius: 3px;
	box-shadow: 0 3px 10px rgba(74,45,24,.22);
}
.aps-badge-sale { background: var(--aps-brown); }
.aps-badge-oos { background: var(--aps-brown-deep); }

.aps-quickview {
	position: absolute;
	inset: auto 0 0 0;
	display: flex;
	justify-content: center;
	padding: 12px;
	transform: translateY(100%);
	transition: transform .25s ease;
	background: linear-gradient(0deg, rgba(74,45,24,.55), transparent);
}
.aps-card-media:hover .aps-quickview { transform: translateY(0); }
.aps-quickview-btn {
	background: #fff;
	color: var(--aps-brown-deep);
	font-family: 'Poppins', sans-serif;
	font-size: 12px;
	font-weight: 700;
	padding: 8px 18px;
	border-radius: 3px;
	text-decoration: none;
	border: none;
	cursor: pointer;
	box-shadow: 0 3px 10px rgba(74,45,24,.2);
}
.aps-quickview-btn:hover { background: var(--aps-cream-light); }

.aps-card-body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}
.aps-cat-tag {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--aps-gold);
	font-weight: 700;
}
.aps-title {
	margin: 0;
	font-family: 'Poppins', sans-serif;
	font-size: 15px;
	line-height: 1.35;
	font-weight: 700;
}
.aps-title a {
	color: var(--aps-accent);
	text-decoration: none;
}
.aps-title a:hover { color: var(--aps-brown); }

.aps-rating { font-size: 13px; letter-spacing: 1px; }
.aps-star { color: #e6d9c4; }
.aps-star.is-filled { color: var(--aps-gold); }

.aps-price {
	font-family: 'Poppins', sans-serif;
	font-size: 16px;
	font-weight: 700;
	color: var(--aps-brown);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	direction: ltr;
	unicode-bidi: isolate;
}
.aps-price del {
	color: #b8a390;
	font-weight: 400;
	font-size: 13px;
	text-decoration: line-through;
	order: 1;
}
.aps-price ins {
	text-decoration: none;
	order: 2;
	color: var(--aps-brown);
	font-weight: 800;
}

.aps-actions {
	margin-top: auto;
	padding-top: 10px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.aps-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border: none;
	border-radius: 3px;
	padding: 12px 20px;
	font-family: 'Poppins', sans-serif;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	position: relative;
	transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .15s ease, opacity .2s ease;
}
.aps-btn-cart {
	background: var(--aps-brown-deep);
	color: var(--aps-cream-light);
	box-shadow: 0 3px 10px rgba(74,45,24,.2);
}
.aps-btn-cart:hover { background: var(--aps-brown); box-shadow: 0 4px 14px rgba(74,45,24,.28); transform: translateY(-1px); }
.aps-btn-cart.is-loading { opacity: .7; pointer-events: none; transform: none; }
.aps-btn-cart.is-added { background: #4a7a4e; }

.aps-btn-whatsapp {
	background: #25D366;
	color: #fff;
	box-shadow: 0 3px 10px rgba(37,211,102,.28);
}
.aps-btn-whatsapp:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* Fade in on filter */
.aps-card.aps-hidden { display: none; }
.aps-wrapper:not(.aps-expanded) .aps-card.aps-extra { display: none; }
.aps-card { animation: apsFadeIn .35s ease both; }
@keyframes apsFadeIn {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

.aps-load-more-row {
	display: flex;
	justify-content: center;
	margin-top: 28px;
}
.aps-load-more {
	background: #fff;
	border: none;
	border-radius: 3px;
	box-shadow: 0 2px 12px rgba(74,45,24,.14);
	color: var(--aps-brown-deep);
	font-family: 'Poppins', sans-serif;
	padding: 13px 34px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	cursor: pointer;
	transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.aps-load-more:hover { background: var(--aps-brown-deep); color: var(--aps-cream-light); box-shadow: 0 6px 18px rgba(74,45,24,.24); }
.aps-load-more[hidden] { display: none; }

/* Toast */
.aps-toast {
	position: fixed;
	bottom: 24px;
	right: 24px;
	background: var(--aps-brown-deep, #4a2d18);
	color: var(--aps-cream-light, #faf1de);
	font-family: 'Poppins', sans-serif;
	padding: 13px 22px;
	border-radius: 3px;
	font-size: 13px;
	font-weight: 600;
	box-shadow: 0 10px 30px rgba(74,45,24,.35);
	z-index: 9999;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity .25s ease, transform .25s ease;
	pointer-events: none;
}
.aps-toast.is-visible { opacity: 1; transform: translateY(0); }

/* Admin color field */
.aps-color-field { width: 120px; }

.aps-card-media { position: relative; }
.aps-media-trigger {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: none;
	background: none;
	cursor: pointer;
}

/* Title button — reset defensively so a theme's own button/hover styles
   (background-color, outline, tap highlight) can never paint over the text. */
.aps-title-trigger {
	display: inline-block;
	font-family: 'Poppins', sans-serif;
	background: none !important;
	background-color: transparent !important;
	background-image: none !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0;
	font: inherit;
	color: var(--aps-accent) !important;
	-webkit-text-fill-color: currentColor !important;
	cursor: pointer;
	text-align: left;
	text-decoration: none !important;
	outline: none;
	-webkit-tap-highlight-color: transparent;
}
.aps-title-trigger:hover,
.aps-title-trigger:focus,
.aps-title-trigger:focus-visible,
.aps-title-trigger:active {
	background: none !important;
	background-color: transparent !important;
	background-image: none !important;
	color: var(--aps-primary) !important;
	-webkit-text-fill-color: var(--aps-primary) !important;
	text-decoration: none !important;
	box-shadow: none !important;
}
.aps-title-trigger:focus-visible { outline: 2px solid var(--aps-primary); outline-offset: 2px; }

/* ===================== Quick View Modal — full width ===================== */
.aps-qv-overlay {
	position: fixed;
	inset: 0;
	background: rgba(10,10,15,.65);
	z-index: 100000;
	display: none;
	opacity: 0;
	transition: opacity .25s ease;
	overflow-y: auto;
}
.aps-qv-overlay.is-open { display: block; opacity: 1; }

.aps-qv-modal {
	width: 100vw;
	min-height: 100vh;
	background: #fff;
	margin: 0 auto;
	position: relative;
	transform: translateY(24px);
	opacity: 0;
	transition: transform .3s ease, opacity .3s ease;
	padding: 28px clamp(16px, 5vw, 64px) 60px;
}
.aps-qv-overlay.is-open .aps-qv-modal {
	transform: translateY(0);
	opacity: 1;
}

.aps-qv-close {
	position: sticky;
	top: 16px;
	left: 100%;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	transform: translateX(0);
	margin-left: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--aps-accent, #4a2d18);
	color: #fff;
	border: none;
	box-shadow: 0 3px 10px rgba(74,45,24,.2);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	z-index: 5;
}
.aps-qv-close:hover { background: var(--aps-primary); }

.aps-qv-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 300px;
}
.aps-spinner {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 4px solid #f0e5d3;
	border-top-color: var(--aps-primary, #6b4226);
	animation: apsSpin .8s linear infinite;
}
@keyframes apsSpin { to { transform: rotate(360deg); } }

.aps-qv-inner {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 48px;
	max-width: 1360px;
	margin: 0 auto;
}
@media (max-width: 900px) {
	.aps-qv-inner { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 480px) {
	.aps-qv-modal { padding: 16px 14px 40px; }
	.aps-qv-close { width: 36px; height: 36px; font-size: 20px; }
	.aps-qv-actions .aps-btn { flex: 1 1 100%; }
	.aps-qv-thumb { width: 52px; height: 52px; }
}

/* Gallery */
.aps-qv-gallery { position: relative; }
.aps-qv-main-image {
	position: relative;
	aspect-ratio: 1 / 1;
	background: var(--aps-ivory, #f7ecd9);
	overflow: hidden;
}
.aps-qv-slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity .3s ease;
}
.aps-qv-slide.is-active { opacity: 1; position: relative; }
.aps-qv-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255,255,255,.85);
	border: none;
	width: 38px;
	height: 38px;
	cursor: pointer;
	font-size: 14px;
	z-index: 4;
}
.aps-qv-prev { left: 12px; }
.aps-qv-next { right: 12px; }
.aps-qv-thumbs {
	display: flex;
	gap: 10px;
	margin-top: 12px;
	flex-wrap: wrap;
}
.aps-qv-thumb {
	width: 66px;
	height: 66px;
	padding: 0;
	border: none;
	border-radius: 2px;
	background: var(--aps-ivory, #faf1de);
	cursor: pointer;
	overflow: hidden;
	box-shadow: 0 1px 6px rgba(74,45,24,.08);
}
.aps-qv-thumb.is-active { box-shadow: 0 0 0 2px var(--aps-primary); }
.aps-qv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Details column */
.aps-qv-details { display: flex; flex-direction: column; gap: 12px; }
.aps-qv-cats { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #8a6f5c; font-weight: 700; }
.aps-qv-title { margin: 0; font-family: 'Poppins', sans-serif; font-size: clamp(22px, 3vw, 32px); line-height: 1.2; color: var(--aps-accent); }
.aps-qv-rating { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #666; }
.aps-qv-price {
	font-family: 'Poppins', sans-serif;
	font-size: 26px;
	font-weight: 800;
	color: var(--aps-primary);
	display: inline-flex;
	align-items: baseline;
	gap: 10px;
	direction: ltr;
	unicode-bidi: isolate;
}
.aps-qv-price del { font-size: 16px; color: #b8a390; font-weight: 400; order: 1; }
.aps-qv-price ins { text-decoration: none; order: 2; }
.aps-qv-short-desc { color: #555; line-height: 1.6; }

.aps-qv-stock-row { display: flex; align-items: center; gap: 18px; font-size: 13px; flex-wrap: wrap; }
.aps-stock-in { color: #2e9e5b; font-weight: 700; }
.aps-stock-in em { color: #8a6f5c; font-weight: 400; font-style: normal; margin-left: 4px; }
.aps-stock-backorder { color: #c98b1f; font-weight: 700; }
.aps-stock-out { color: #e04b4b; font-weight: 700; }
.aps-sku { color: #8a6f5c; }

/* Variations */
.aps-qv-variations {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-top: 6px;
	padding: 18px;
	background: var(--aps-ivory, #faf1de);
	border: none;
	border-radius: 3px;
}
.aps-qv-attribute { display: flex; flex-direction: column; gap: 7px; }
.aps-qv-attribute label {
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--aps-accent);
}
.aps-variation-select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding: 13px 42px 13px 18px;
	border: none;
	border-radius: 3px;
	background-color: #fff;
	box-shadow: 0 1px 6px rgba(74,45,24,.08);
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b1810' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 16px;
	font-size: 15px;
	font-weight: 700;
	color: var(--aps-accent);
	max-width: 360px;
	width: 100%;
	cursor: pointer;
	transition: box-shadow .2s ease;
}
.aps-variation-select:hover { box-shadow: 0 2px 10px rgba(74,45,24,.14); }
.aps-variation-select:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(201,154,84,.35);
}
.aps-variation-select.aps-select-empty { color: #6b6b6b; font-weight: 600; }
.aps-variation-select option[value=""] { color: #6b6b6b; }
.aps-variation-select option { color: var(--aps-accent); }
.aps-qv-variation-price {
	font-weight: 800;
	font-size: 15px;
	color: var(--aps-primary);
	direction: ltr;
	unicode-bidi: isolate;
}

/* Quantity stepper */
.aps-qv-qty-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
.aps-qv-qty-row label { font-size: 13px; font-weight: 700; color: var(--aps-accent); }
.aps-qty-stepper {
	display: flex;
	align-items: stretch;
	border: none;
	border-radius: 3px;
	overflow: hidden;
	box-shadow: 0 1px 6px rgba(74,45,24,.08);
	width: fit-content;
}
.aps-qty-btn {
	width: 38px;
	background: var(--aps-ivory, #faf1de);
	border: none;
	font-size: 16px;
	cursor: pointer;
}
.aps-qty-btn:hover { background: var(--aps-cream, #f3e2c2); }
.aps-qty-input {
	width: 52px;
	text-align: center;
	border: none;
	border-left: 1px solid rgba(43,24,16,.2);
	border-right: 1px solid rgba(43,24,16,.2);
	font-size: 14px;
}

/* Actions */
.aps-qv-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.aps-qv-actions .aps-btn { flex: 1 1 160px; padding: 13px 18px; font-size: 14px; }

.aps-qv-share { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #8a6f5c; margin-top: 4px; }
.aps-qv-share a, .aps-copy-link {
	background: #f3e9d8;
	color: var(--aps-accent);
	padding: 5px 10px;
	text-decoration: none;
	font-size: 11px;
	font-weight: 700;
	border: none;
	cursor: pointer;
}
.aps-qv-share a:hover, .aps-copy-link:hover { background: #efe4d3; }

/* Tabs */
.aps-qv-tabs { margin-top: 20px; border-top: 1px solid rgba(43,24,16,.12); padding-top: 20px; }
.aps-qv-tab-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.aps-tab-btn {
	font-family: 'Poppins', sans-serif;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	padding: 8px 4px;
	margin-right: 18px;
	font-size: 13px;
	font-weight: 700;
	color: #8a6f5c;
	cursor: pointer;
}
.aps-tab-btn.is-active { color: var(--aps-accent); border-bottom-color: var(--aps-primary); }
.aps-qv-tab-panel { display: none; color: #555; line-height: 1.7; font-size: 14px; }
.aps-qv-tab-panel.is-active { display: block; }
.aps-qv-attr-table { width: 100%; border-collapse: collapse; }
.aps-qv-attr-table th, .aps-qv-attr-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #efe4d3; font-size: 13px; }
.aps-qv-attr-table th { width: 35%; color: #8a6f5c; font-weight: 600; }

.aps-qv-review { padding: 12px 0; border-bottom: 1px solid #efe4d3; }
.aps-qv-review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.aps-qv-review-count { color: #8a6f5c; }

/* Related products inside modal */
.aps-qv-related { max-width: 1360px; margin: 40px auto 0; border-top: 1px solid rgba(43,24,16,.12); padding-top: 24px; }
.aps-qv-related h3 { font-family: 'Poppins', sans-serif; color: var(--aps-accent); margin-bottom: 16px; }
.aps-qv-related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 700px) { .aps-qv-related-grid { grid-template-columns: repeat(2, 1fr); } }
.aps-qv-related-item { text-decoration: none; color: inherit; display: block; }
.aps-qv-related-item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; margin-bottom: 8px; }
.aps-qv-related-title { display: block; font-size: 13px; font-weight: 700; color: var(--aps-accent); }
.aps-qv-related-price {
	display: inline-flex;
	gap: 6px;
	align-items: baseline;
	direction: ltr;
	unicode-bidi: isolate;
	font-size: 13px;
	color: var(--aps-primary);
	font-weight: 700;
	margin-top: 2px;
}
.aps-qv-related-price del { order: 1; color: #b8a390; font-weight: 400; text-decoration: line-through; }
.aps-qv-related-price ins { order: 2; text-decoration: none; }

body.aps-qv-locked { overflow: hidden; }
