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

:root {
	--amanah-bg-main: #f5f0e8;
	--amanah-bg-card: #fff;
	--amanah-bg-muted: #f9f9f9;
	--amanah-text-main: #1a1a2e;
	--amanah-text-muted: #555;
	--amanah-border: #ddd;
	--amanah-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
	--amanah-qv-overlay: rgba(0, 0, 0, 0.6);
	--amanah-qv-blur: 4px;
}

@media (prefers-color-scheme: dark) {
	:root {
		--amanah-bg-main: #121212;
		--amanah-bg-card: #1e1e1e;
		--amanah-bg-muted: #2a2a2a;
		--amanah-text-main: #e4e4e4;
		--amanah-text-muted: #aaaaaa;
		--amanah-border: #333333;
		--amanah-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
		--amanah-qv-overlay: rgba(0, 0, 0, 0.85);
	}
}

.amanah-wrap {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	background: var(--amanah-bg-main);
	min-height: 600px;
	padding: 24px;
	border-radius: 12px;
}

.amanah-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
	flex-wrap: wrap;
	gap: 12px;
}

.amanah-page-title {
	font-size: 24px;
	font-weight: 700;
	color: var(--amanah-text-main);
	margin: 0;
}

.amanah-header-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.amanah-sort {
	padding: 7px 12px;
	border: 1px solid var(--amanah-border);
	border-radius: 7px;
	font-size: 13px;
	background: var(--amanah-bg-card);
	cursor: pointer;
	outline: none;
}

.amanah-sort:focus {
	border-color: #1a7a4a;
}

.amanah-view-toggle {
	display: flex;
	gap: 4px;
}

.amanah-view-btn {
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--amanah-border);
	border-radius: 7px;
	background: var(--amanah-bg-card);
	cursor: pointer;
	color: #888;
	transition: all 0.15s;
}

.amanah-view-btn.active {
	background: #1a7a4a;
	border-color: #1a7a4a;
	color: var(--amanah-bg-card);
}

.amanah-body {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 20px;
	align-items: start;
}

.amanah-sidebar { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #d1cbc1 transparent; }
.amanah-sidebar::-webkit-scrollbar { width: 4px; }
.amanah-sidebar::-webkit-scrollbar-track { background: transparent; }
.amanah-sidebar::-webkit-scrollbar-thumb { background-color: #d1cbc1; border-radius: 10px; }

.amanah-sidebar__box {
	background: var(--amanah-bg-card);
	border-radius: 10px;
	padding: 16px;
	box-shadow: 0 1px 4px var(--amanah-shadow);
}

.amanah-sidebar__title {
	font-size: 13px;
	font-weight: 700;
	color: var(--amanah-text-main);
	margin: 0 0 12px;
	display: flex;
	align-items: center;
	gap: 7px;
	border-bottom: 2px solid #f0a500;
	padding-bottom: 8px;
}

.amanah-cat-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.amanah-cat-item {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 8px 10px;
	border-radius: 8px;
	border: none;
	background: none;
	cursor: pointer;
	font-size: 13px;
	color: #444;
	transition: background 0.15s, color 0.15s;
	text-align: left;
}

.amanah-cat-item:hover {
	background: #f5f5f5;
}

.amanah-cat-item--active {
	background: #1a7a4a !important;
	color: var(--amanah-bg-card) !important;
	font-weight: 600;
}

.amanah-cat-count, .amanah-filter-count { margin-left: auto; font-size: 13px; color: #888; font-weight: 500; }
.amanah-cat-item--active .amanah-cat-count { color: rgba(255, 255, 255, 0.85); }

/* Price range slider */
.amanah-price-display {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-bottom: 18px;
}

.amanah-price-input-wrap {
	display: flex;
	align-items: center;
	background: #edf7f2;
	border: 1px solid #c3e6d2;
	border-radius: 6px;
	padding: 0 8px;
}

.amanah-price-input-wrap:focus-within {
	border-color: #1a7a4a;
	box-shadow: 0 0 0 2px rgba(26, 122, 74, 0.1);
}

.amanah-currency {
	font-size: 13px;
	font-weight: 600;
	color: #1a7a4a;
	user-select: none;
}

.amanah-price-from,
.amanah-price-to {
	font-size: 13px;
	font-weight: 600;
	color: #1a7a4a;
	background: transparent;
	border: none;
	padding: 6px 4px;
	width: 60px;
	text-align: left;
	outline: none;
	-moz-appearance: textfield;
}

.amanah-price-from::-webkit-inner-spin-button,
.amanah-price-from::-webkit-outer-spin-button,
.amanah-price-to::-webkit-inner-spin-button,
.amanah-price-to::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.amanah-price-sep {
	color: #bbb;
	font-size: 13px;
}

.amanah-slider-track-wrap {
	position: relative;
	height: 6px;
	margin: 4px 6px 14px;
}

.amanah-slider-track {
	position: absolute;
	inset: 0;
	background: #e0d8cc;
	border-radius: 4px;
}

.amanah-slider-range {
	position: absolute;
	top: 0;
	height: 100%;
	background: #1a7a4a;
	border-radius: 4px;
	transition: left 0.05s, width 0.05s;
}

.amanah-slider-input {
	position: absolute;
	top: -7px;
	left: 0;
	width: 100%;
	height: 20px;
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	pointer-events: none;
	outline: none;
	margin: 0;
	padding: 0;
}

.amanah-slider-input::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--amanah-bg-card);
	border: 2.5px solid #1a7a4a;
	cursor: pointer;
	pointer-events: all;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
	transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.amanah-slider-input::-moz-range-thumb {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--amanah-bg-card);
	border: 2.5px solid #1a7a4a;
	cursor: pointer;
	pointer-events: all;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
	transition: transform 0.15s, box-shadow 0.15s;
}

.amanah-slider-input::-webkit-slider-thumb:hover,
.amanah-slider-input:focus::-webkit-slider-thumb {
	transform: scale(1.2);
	border-color: #145e38;
	box-shadow: 0 0 0 5px rgba(26, 122, 74, 0.15);
}

.amanah-slider-input::-moz-range-thumb:hover {
	transform: scale(1.2);
	border-color: #145e38;
}

/* === Search Box === */
.amanah-search-box {
	padding-bottom: 4px;
}

.amanah-search-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.amanah-search-icon {
	position: absolute;
	left: 10px;
	color: #aaa;
	pointer-events: none;
	transition: color 0.15s;
	flex-shrink: 0;
}

.amanah-search-input {
	width: 100%;
	padding: 8px 34px 8px 33px;
	border: 1.5px solid #e0d8cc;
	border-radius: 8px;
	font-size: 13px;
	color: var(--amanah-text-main);
	background: #faf8f4;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
	-webkit-appearance: none;
	appearance: none;
}

.amanah-search-input::placeholder {
	color: #bbb;
}

.amanah-search-input:focus {
	border-color: #1a7a4a;
	box-shadow: 0 0 0 3px rgba(26, 122, 74, 0.12);
	background: var(--amanah-bg-card);
}

.amanah-search-input:focus + .amanah-search-clear,
.amanah-search-wrap:focus-within .amanah-search-icon {
	color: #1a7a4a;
}

.amanah-search-clear {
	position: absolute;
	right: 7px;
	background: none;
	border: none;
	cursor: pointer;
	color: #aaa;
	padding: 3px;
	display: flex;
	align-items: center;
	border-radius: 50%;
	transition: background 0.15s, color 0.15s;
}

.amanah-search-clear:hover {
	background: #f0f0f0;
	color: var(--amanah-text-main);
}

/* Remove default 'x' on search inputs (IE/Edge) */
.amanah-search-input::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.amanah-check-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.amanah-check-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #444;
	cursor: pointer;
}

.amanah-check-label input[type='checkbox'] {
	accent-color: #1a7a4a;
	width: 15px;
	height: 15px;
}

/* ── RATING FILTER ── */
.amanah-rating-filter {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.amanah-rating-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	background: transparent;
	border: none;
	text-align: left;
	cursor: pointer;
	font-size: 13px;
	color: #666;
	padding: 4px 6px;
	margin-left: -6px;
	border-radius: 4px;
	transition: background 0.15s, color 0.15s;
}
.amanah-rating-btn:hover {
	background: #f7f7f7;
	color: #1a7a4a;
}
.amanah-rating-btn.active {
	font-weight: 600;
	color: #1a7a4a;
	background: #edf7f2;
}
.amanah-rating-btn__stars {
	color: #f39c12;
	font-size: 15px;
	letter-spacing: 1px;
}

.amanah-results-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
	min-height: 24px;
}

.amanah-results-count {
	font-size: 13px;
	color: #888;
}

.amanah-loader {
	display: flex;
	align-items: center;
	justify-content: center;
}

.amanah-spinner {
	width: 20px;
	height: 20px;
	border: 2px solid var(--amanah-border);
	border-top-color: #1a7a4a;
	border-radius: 50%;
	animation: amanah-spin 0.7s linear infinite;
}

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

.amanah-initial-loader {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 300px;
}

.amanah-initial-loader .amanah-spinner {
	width: 36px;
	height: 36px;
	border-width: 3px;
}

.amanah-grid {
	display: grid;
	gap: 16px;
}

.amanah-cols-2 {
	grid-template-columns: repeat(2, 1fr);
}

.amanah-cols-3 {
	grid-template-columns: repeat(3, 1fr);
}

.amanah-cols-4 {
	grid-template-columns: repeat(4, 1fr);
}

.amanah-grid--list {
	grid-template-columns: 1fr !important;
}

.amanah-grid--masonry {
	display: block !important;
	column-count: 3;
	column-gap: 16px;
}

.amanah-grid--masonry .amanah-card {
	break-inside: avoid;
	margin-bottom: 16px;
	width: 100%;
}

.amanah-grid--list .amanah-card {
	flex-direction: row !important;
	align-items: center;
}

.amanah-grid--list .amanah-card__cover-link {
	flex: 0 0 80px;
}

.amanah-grid--list .amanah-card__cover {
	height: 100px;
}

.amanah-loading {
	opacity: 0.5;
	pointer-events: none;
	transition: opacity 0.2s;
}

.amanah-card {
	background: var(--amanah-bg-card);
	border-radius: 10px;
	overflow: hidden;
	position: relative;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.2s, transform 0.2s;
	display: flex;
	flex-direction: column;
}

.amanah-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	transform: translateY(-3px);
}

.amanah-wishlist-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 3;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(0, 0, 0, 0.05);
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #666;
	cursor: pointer;
	transition: all 0.2s ease;
	opacity: 0;
	transform: translateY(-5px);
}

.amanah-card:hover .amanah-wishlist-btn,
.amanah-wishlist-btn.amanah-wishlist-active {
	opacity: 1;
	transform: translateY(0);
}

.amanah-wishlist-btn:hover {
	color: #e74c3c;
	background: #fff;
	transform: scale(1.1);
}

.amanah-wishlist-btn.amanah-wishlist-active {
	color: #e74c3c;
}

.amanah-wishlist-btn.amanah-wishlist-active svg {
	fill: #e74c3c;
	stroke: #e74c3c;
}

.amanah-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 3;
	font-size: 10px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 20px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--amanah-bg-card);
}

.amanah-badge--new {
	background: #1a7a4a;
}

.amanah-badge--hot {
	background: #e67e22;
}

.amanah-badge--best {
	background: #f0a500;
	color: var(--amanah-text-main);
}

.amanah-badge--sale {
	background: #c0392b;
}

.amanah-card__cover-link {
	display: block;
	overflow: hidden;
}

.amanah-card__cover {
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.amanah-card:hover .amanah-card__cover {
	transform: scale(1.04);
}

.amanah-card__cover--placeholder {
	aspect-ratio: 3 / 4;
	background: linear-gradient(135deg, #e8e0d0, #d4c8b0);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 36px;
	font-weight: 700;
	color: #8b7355;
}

.amanah-card__bar {
	padding: 10px 12px;
	background: #1a7a4a;
}

.amanah-card__bar-title {
	font-size: 13px;
	font-weight: 600;
	color: var(--amanah-bg-card);
	text-decoration: none;
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.amanah-card__info {
	padding: 10px 12px 12px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.amanah-card__cat {
	font-size: 10px;
	font-weight: 700;
	color: #1a7a4a;
	letter-spacing: 0.06em;
	margin-bottom: 4px;
	display: block;
}

.amanah-card__title {
	font-size: 13px;
	font-weight: 600;
	color: var(--amanah-text-main);
	text-decoration: none;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-bottom: 4px;
}

.amanah-card__title:hover {
	color: #1a7a4a;
}

.amanah-card__author {
	font-size: 11px;
	color: #888;
	display: block;
	margin-bottom: auto;
	padding-bottom: 10px;
}

/* ── Stock Countdown ── */
.amanah-stock-countdown-wrap {
	margin-top: 8px;
	width: 100%;
}
.amanah-stock-countdown {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.amanah-stock-text {
	font-size: 10px;
	font-weight: 700;
	color: #c0392b;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.amanah-stock-bar {
	width: 100%;
	height: 4px;
	background: #f0f0f0;
	border-radius: 2px;
	overflow: hidden;
}
.amanah-stock-progress {
	height: 100%;
	background: linear-gradient(90deg, #e74c3c, #c0392b);
	border-radius: 2px;
	transition: width 0.4s ease;
}

.amanah-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid #f0f0f0;
}

.amanah-card__price {
	font-size: 14px;
	font-weight: 700;
	color: var(--amanah-text-main);
}

.amanah-card__price del {
	color: #aaa;
	font-weight: 400;
	font-size: 12px;
	margin-left: 4px;
}

.amanah-price {
	font-size: 14px;
	font-weight: 700;
	color: var(--amanah-text-main);
}

.amanah-card__cart-btn {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #1a7a4a;
	border: none;
	border-radius: 50%;
	color: var(--amanah-bg-card);
	cursor: pointer;
	transition: background 0.15s, transform 0.15s;
	text-decoration: none;
	flex-shrink: 0;
}

.amanah-card__cart-btn:hover {
	background: #145e38;
	transform: scale(1.1);
}

.amanah-card__cart-btn.amanah-adding {
	opacity: 0.6;
	pointer-events: none;
}

.amanah-card__cart-btn.amanah-added {
	background: #2ecc71;
}

/* ================================
   Quantity Selector on Card
   ================================ */

.amanah-qty-cart-wrap {
	display: flex;
	align-items: center;
	gap: 7px;
	flex-shrink: 0;
}

.amanah-qty-wrap {
	display: flex;
	align-items: center;
	border: 1.5px solid #d0e8db;
	border-radius: 20px;
	overflow: hidden;
	background: var(--amanah-bg-card);
	transition: border-color 0.18s, box-shadow 0.18s;
	height: 30px;
}

.amanah-qty-wrap:focus-within {
	border-color: #1a7a4a;
	box-shadow: 0 0 0 3px rgba(26, 122, 74, 0.12);
}

.amanah-qty-btn {
	width: 26px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	cursor: pointer;
	color: #1a7a4a;
	font-size: 16px;
	line-height: 1;
	padding: 0;
	flex-shrink: 0;
	transition: background 0.15s, color 0.15s;
	user-select: none;
}

.amanah-qty-btn:hover {
	background: #edf7f2;
	color: #145e38;
}

.amanah-qty-btn:active {
	background: #d0e8db;
}

.amanah-qty-input {
	width: 28px;
	height: 30px;
	border: none;
	outline: none;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	color: var(--amanah-text-main);
	background: transparent;
	padding: 0;
	-moz-appearance: textfield;
	appearance: textfield;
}

.amanah-qty-input::-webkit-inner-spin-button,
.amanah-qty-input::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* List-view: qty wraps below price on small cards */
.amanah-grid--list .amanah-qty-cart-wrap {
	gap: 5px;
}

/* Mobile: slightly smaller qty selector */
@media (max-width: 480px) {
	.amanah-qty-btn {
		width: 22px;
	}
	.amanah-qty-input {
		width: 24px;
		font-size: 12px;
	}
}

/* ================================
   Variable Product Swatches
   ================================ */

.amanah-variation-wrap {
	padding: 8px 12px 4px;
	border-top: 1px solid #f0f0f0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.amanah-attr-row {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.amanah-attr-label {
	font-size: 11px;
	font-weight: 600;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.amanah-attr-selected-name {
	font-weight: 700;
	color: #1a7a4a;
	text-transform: none;
	letter-spacing: 0;
}

.amanah-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

/* ── Label / Size Swatch ── */
.amanah-swatch--label {
	padding: 3px 9px;
	border: 1.5px solid #ddd;
	border-radius: 4px;
	background: var(--amanah-bg-card);
	font-size: 11px;
	font-weight: 600;
	color: #555;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.12s;
	line-height: 1.5;
	user-select: none;
}

.amanah-swatch--label:hover {
	border-color: #1a7a4a;
	color: #1a7a4a;
	background: #edf7f2;
	transform: translateY(-1px);
}

.amanah-swatch--label.amanah-swatch--active {
	border-color: #1a7a4a;
	background: #1a7a4a;
	color: #fff;
}

/* ── Color Swatch ── */
.amanah-swatch--color {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 2px solid transparent;
	outline: 2px solid transparent;
	cursor: pointer;
	position: relative;
	transition: transform 0.15s, outline-color 0.15s, border-color 0.15s;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #ccc; /* fallback if no bg set */
	padding: 0;
}

.amanah-swatch--color:hover {
	transform: scale(1.18);
	outline-color: rgba(26,122,74,0.4);
}

.amanah-swatch--color.amanah-swatch--active {
	outline-color: #1a7a4a;
	outline-offset: 2px;
	border-color: #fff;
	transform: scale(1.15);
}

/* Checkmark inside colour swatch */
.amanah-swatch-check {
	font-size: 11px;
	font-weight: 700;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0,0,0,0.5);
	display: none;
	pointer-events: none;
}

.amanah-swatch--color.amanah-swatch--active .amanah-swatch-check {
	display: block;
}

/* ── Out of stock notice ── */
.amanah-var-oos {
	font-size: 10px;
	font-weight: 700;
	color: #c0392b;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 2px 6px;
	background: #fdecea;
	border-radius: 4px;
	display: inline-block;
	margin-top: 2px;
}

/* ── Variable product cart button disabled state ── */
.amanah-add-to-cart--variable:disabled {
	background: #bbb;
	cursor: not-allowed;
	transform: none;
	opacity: 0.65;
}

.amanah-add-to-cart--variable.amanah-var-loading {
	opacity: 0.5;
	pointer-events: none;
	position: relative;
}

.amanah-add-to-cart--variable.amanah-var-loading::after {
	content: '';
	position: absolute;
	width: 12px;
	height: 12px;
	border: 2px solid rgba(255,255,255,0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: amanah-spin 0.6s linear infinite;
}

/* ── Variable card indicator badge ── */
.amanah-card--variable .amanah-card__bar::after {
	content: 'Options';
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.05em;
	background: rgba(255,255,255,0.25);
	color: #fff;
	padding: 1px 6px;
	border-radius: 4px;
	float: right;
	margin-top: 2px;
}

.amanah-no-results {

	text-align: center;
	padding: 60px 20px;
	color: #aaa;
	grid-column: 1 / -1;
}

.amanah-no-results__icon {
	font-size: 48px;
	margin-bottom: 16px;
}

.amanah-no-results p {
	font-size: 15px;
	margin: 0;
}

.amanah-pagination {
	display: flex;
	gap: 6px;
	justify-content: center;
	margin-top: 24px;
	flex-wrap: wrap;
	grid-column: 1 / -1;
}

.amanah-page-btn {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--amanah-border);
	border-radius: 7px;
	background: var(--amanah-bg-card);
	font-size: 13px;
	cursor: pointer;
	transition: all 0.15s;
	color: #444;
}

.amanah-page-btn:hover {
	border-color: #1a7a4a;
	color: #1a7a4a;
}

.amanah-page-btn--active {
	background: #1a7a4a;
	border-color: #1a7a4a;
	color: var(--amanah-bg-card);
	font-weight: 600;
}


/* ================================
   Mobile Filter Toggle & Overlay
   ================================ */

.amanah-filter-toggle {
	display: none;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	background: #1a7a4a;
	color: var(--amanah-bg-card);
	border: none;
	border-radius: 7px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s;
}

.amanah-filter-toggle:hover {
	background: #145e38;
}

.amanah-sidebar-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	z-index: 998;
}

.amanah-sidebar-overlay.amanah-sidebar--open {
	display: block;
	animation: amanah-fadein 0.2s ease;
}

@keyframes amanah-fadein {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.amanah-sidebar-close {
	display: none;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid #e5e0d8;
	font-weight: 700;
	font-size: 15px;
	color: var(--amanah-text-main);
}

.amanah-sidebar-close-btn {
	background: none;
	border: none;
	cursor: pointer;
	color: #888;
	padding: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	transition: background 0.15s, color 0.15s;
}

.amanah-sidebar-close-btn:hover {
	background: #f0f0f0;
	color: var(--amanah-text-main);
}

@media (max-width: 768px) {
	.amanah-body {
		grid-template-columns: 1fr;
	}

	.amanah-filter-toggle {
		display: flex;
	}

	.amanah-sidebar-close {
		display: flex;
	}

	.amanah-sidebar {
		position: fixed;
		top: 0;
		left: 0;
		height: 100%;
		width: 280px;
		max-width: 85vw;
		background: var(--amanah-bg-main);
		z-index: 999;
		overflow-y: auto;
		padding: 20px;
		transform: translateX(-100%);
		transition: transform 0.3s ease;
		box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
	}

	.amanah-sidebar--open {
		transform: translateX(0);
	}

	.amanah-cols-3,
	.amanah-cols-4 {
		grid-template-columns: repeat(2, 1fr) !important;
	}

	.amanah-grid--masonry {
		column-count: 2 !important;
	}

	.amanah-cols-2 {
		grid-template-columns: 1fr !important;
	}

	.amanah-page-title {
		font-size: 18px;
	}
}

@media (max-width: 480px) {
	.amanah-grid--masonry {
		column-count: 1 !important;
	}
}

/* ================================
   Active Filter Tags
   ================================ */

.amanah-active-filters {
	display: none;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 18px;
	animation: amanah-fadein 0.2s ease;
}

.amanah-tags-label {
	font-size: 11px;
	font-weight: 700;
	color: #aaa;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-right: 2px;
	white-space: nowrap;
}

.amanah-filter-tag {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 8px 4px 11px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 500;
	background: #edf7f2;
	border: 1.5px solid #b8ddc9;
	color: #1a7a4a;
	line-height: 1;
	animation: amanah-tag-in 0.18s ease;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.amanah-filter-tag:hover {
	border-color: #1a7a4a;
	box-shadow: 0 2px 8px rgba(26, 122, 74, 0.12);
}

.amanah-filter-tag--category {
	background: #edf7f2;
	border-color: #b8ddc9;
	color: #1a7a4a;
}

.amanah-filter-tag--search {
	background: #eef3ff;
	border-color: #b8caf5;
	color: #2d5fa0;
}

.amanah-filter-tag--search:hover {
	border-color: #2d5fa0;
	box-shadow: 0 2px 8px rgba(45, 95, 160, 0.12);
}

.amanah-filter-tag--price {
	background: #fdf6ee;
	border-color: #f0cdaa;
	color: #8b4513;
}

.amanah-filter-tag--price:hover {
	border-color: #8b4513;
	box-shadow: 0 2px 8px rgba(139, 69, 19, 0.12);
}

.amanah-filter-tag--language {
	background: #f4f3ff;
	border-color: #c5c0f5;
	color: #4a3ab0;
}

.amanah-filter-tag--language:hover {
	border-color: #4a3ab0;
	box-shadow: 0 2px 8px rgba(74, 58, 176, 0.12);
}

.amanah-filter-tag--availability {
	background: #edf7f2;
	border-color: #b8ddc9;
	color: #1a7a4a;
}

.amanah-tag-text {
	line-height: 1;
}

.amanah-tag-remove {
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	cursor: pointer;
	padding: 2px;
	border-radius: 50%;
	opacity: 0.55;
	transition: opacity 0.15s, background 0.15s;
	flex-shrink: 0;
	color: inherit;
	line-height: 1;
}

.amanah-tag-remove:hover {
	opacity: 1;
	background: rgba(0, 0, 0, 0.1);
}

.amanah-clear-all {
	display: inline-flex;
	align-items: center;
	padding: 4px 13px;
	border-radius: 20px;
	border: 1.5px solid #e8b0aa;
	background: #fff5f4;
	color: #c0392b;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	line-height: 1;
	transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
	margin-left: 4px;
}

.amanah-clear-all:hover {
	background: #c0392b;
	border-color: #c0392b;
	color: var(--amanah-bg-card);
	transform: scale(1.03);
}

@keyframes amanah-tag-in {
	from {
		opacity: 0;
		transform: scale(0.85) translateY(-4px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

/* ================================
   Skeleton Loading
   ================================ */

@keyframes amanah-shimmer {
	0% {
		background-position: -600px 0;
	}
	100% {
		background-position: 600px 0;
	}
}

/* Shimmer base â€” applied to all skeleton placeholder elements */
.amanah-skeleton-cover,
.amanah-skeleton-bar,
.amanah-skeleton-line,
.amanah-skeleton-circle {
	background: linear-gradient(
		90deg,
		#ede8de 25%,
		#d9d0c4 50%,
		#ede8de 75%
	);
	background-size: 1200px 100%;
	animation: amanah-shimmer 1.6s ease-in-out infinite;
	animation-delay: var(--sk-delay, 0s);
	border-radius: 4px;
}

/* â”€â”€ Card wrapper â”€â”€ */
.amanah-skeleton {
	pointer-events: none;
	user-select: none;
	box-shadow: 0 1px 4px var(--amanah-shadow) !important;
}

/* â”€â”€ Cover (book image area) â”€â”€ */
.amanah-skeleton-cover {
	width: 100%;
	aspect-ratio: 3 / 4;
	border-radius: 0;
	display: block;
}

/* â”€â”€ Colored category bar â”€â”€ */
.amanah-skeleton-bar {
	height: 38px;
	border-radius: 0;
}

/* â”€â”€ Text lines â”€â”€ */
.amanah-skeleton-line {
	display: block;
}

.amanah-sk-cat {
	height: 9px;
	width: 42%;
	margin-bottom: 9px;
	border-radius: 3px;
}

.amanah-sk-title {
	height: 13px;
	width: 92%;
	margin-bottom: 6px;
	border-radius: 3px;
}

.amanah-sk-title-short {
	height: 13px;
	width: 62%;
	margin-bottom: 14px;
	border-radius: 3px;
}

.amanah-sk-author {
	height: 10px;
	width: 54%;
	border-radius: 3px;
	margin-bottom: auto;
	padding-bottom: 10px;
}

.amanah-sk-price {
	height: 14px;
	width: 38%;
	border-radius: 3px;
}

/* â”€â”€ Cart button placeholder â”€â”€ */
.amanah-skeleton-circle {
	width: 32px;
	height: 32px;
	min-width: 32px;
	border-radius: 50%;
	flex-shrink: 0;
}

/* â”€â”€ List view skeleton overrides â”€â”€ */
.amanah-skeleton--list {
	flex-direction: row !important;
	align-items: center;
}

.amanah-skeleton--list .amanah-skeleton-cover {
	flex: 0 0 80px;
	width: 80px;
	height: 100px;
	aspect-ratio: unset;
}

/* â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• 
   STOCK BADGE
â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â•  */
.amanah-stock-badge {
	position: absolute;
	bottom: 8px;
	left: 8px;
	z-index: 3;
	font-size: 10px;
	font-weight: 700;
	padding: 3px 9px;
	border-radius: 20px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--amanah-bg-card);
	pointer-events: none;
}
.amanah-stock-badge--out { background: #e53e3e; }
.amanah-stock-badge--pre { background: #d69e2e; color: var(--amanah-text-main); }
.amanah-stock-badge--low { background: #dd6b20; }

/* â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• 
   STAR RATING
â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â•  */
.amanah-rating {
	display: flex;
	align-items: center;
	gap: 1px;
	margin-bottom: 6px;
	font-size: 13px;
	line-height: 1;
}
.amanah-star { color: #e0e0e0; }
.amanah-star--full { color: #f6ad55; }
.amanah-star--half {
	color: #f6ad55;
	opacity: 0.6;
}
.amanah-rating__count {
	font-size: 10px;
	color: #999;
	margin-left: 4px;
}

/* Rating filter buttons in sidebar */
.amanah-rating-filter { margin-top: 8px; }
.amanah-rating-filter label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--amanah-text-muted);
	display: block;
	margin-bottom: 8px;
}
.amanah-rating-btn {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 100%;
	background: none;
	border: 1px solid #e8e8e8;
	border-radius: 6px;
	padding: 6px 10px;
	margin-bottom: 4px;
	cursor: pointer;
	font-size: 13px;
	color: var(--amanah-text-muted);
	transition: border-color 0.2s, background 0.2s;
	text-align: left;
}
.amanah-rating-btn:hover,
.amanah-rating-btn.active {
	border-color: #1a7a4a;
	background: #f0faf5;
	color: #1a7a4a;
}
.amanah-rating-btn .amanah-rating-btn__stars { color: #f6ad55; letter-spacing: 1px; }

/* â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• 
   WISHLIST BUTTON
â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â•  */
.amanah-wishlist-btn {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 4;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(255,255,255,0.92);
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 4px rgba(0,0,0,0.12);
	transition: transform 0.2s, background 0.2s;
	padding: 0;
}
.amanah-wishlist-btn:hover { transform: scale(1.12); }
.amanah-wishlist-icon {
	stroke: #aaa;
	fill: none;
	transition: stroke 0.2s, fill 0.2s;
}
.amanah-wishlist-btn.amanah-wishlisted .amanah-wishlist-icon {
	stroke: #e53e3e;
	fill: #e53e3e;
}

/* â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• 
   COMPARE BUTTON (in card footer)
â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â•  */
.amanah-compare-btn {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #f5f5f5;
	border: 1px solid #e8e8e8;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #999;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
	flex-shrink: 0;
	padding: 0;
}
.amanah-compare-btn:hover,
.amanah-compare-btn.amanah-compare-active {
	background: #ebf8f1;
	border-color: #1a7a4a;
	color: #1a7a4a;
}

/* â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• 
   COMPARE BAR (sticky bottom)
â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â•  */
.amanah-compare-bar {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 9999;
	background: var(--amanah-text-main);
	color: var(--amanah-bg-card);
	padding: 12px 24px;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
	font-size: 14px;
}
.amanah-compare-bar__count {
	font-weight: 700;
	color: #68d391;
}
.amanah-compare-bar__names {
	flex: 1;
	color: var(--amanah-border);
	font-size: 13px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.amanah-compare-bar__clear {
	background: none;
	border: 1px solid rgba(255,255,255,0.3);
	color: var(--amanah-bg-card);
	padding: 6px 14px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 13px;
	transition: background 0.2s;
}
.amanah-compare-bar__clear:hover { background: rgba(255,255,255,0.1); }

/* â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• 
   TOAST NOTIFICATION
â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â• â•  */
.amanah-toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%) translateY(20px);
	background: var(--amanah-text-main);
	color: var(--amanah-bg-card);
	padding: 10px 20px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 500;
	z-index: 99999;
	opacity: 0;
	transition: opacity 0.25s ease, transform 0.25s ease;
	pointer-events: none;
	white-space: nowrap;
	box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.amanah-toast--show {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

/* === Autocomplete Dropdown === */
.amanah-autocomplete-dropdown {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	background: var(--amanah-bg-card);
	border: 1px solid #e0d8cc;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	z-index: 1000;
	max-height: 400px;
	overflow-y: auto;
	overflow-x: hidden;
}

.amanah-ac-group {
	border-bottom: 1px solid #f0f0f0;
	padding: 8px 0;
}

.amanah-ac-group:last-child {
	border-bottom: none;
}

.amanah-ac-title {
	font-size: 11px;
	font-weight: 700;
	color: #888;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 4px 12px 8px;
}

.amanah-ac-item {
	display: flex;
	align-items: center;
	width: 100%;
	padding: 8px 12px;
	border: none;
	background: transparent;
	text-align: left;
	cursor: pointer;
	text-decoration: none;
	color: var(--amanah-text-main);
	transition: background 0.15s;
}

.amanah-ac-item:hover {
	background: #f7f7f7;
}

.amanah-ac-item--cat,
.amanah-ac-item--author {
	gap: 10px;
	font-size: 13px;
	font-weight: 500;
}

.amanah-ac-item--cat svg,
.amanah-ac-item--author svg {
	color: #1a7a4a;
	flex-shrink: 0;
}

.amanah-ac-item--book {
	gap: 12px;
}

.amanah-ac-item--book img {
	width: 36px;
	height: 48px;
	object-fit: cover;
	border-radius: 4px;
	flex-shrink: 0;
}

.amanah-ac-thumb-placeholder {
	width: 36px;
	height: 48px;
	background: var(--amanah-border);
	border-radius: 4px;
	flex-shrink: 0;
}

.amanah-ac-book-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	overflow: hidden;
}

.amanah-ac-book-title {
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.amanah-ac-book-author {
	font-size: 11px;
	color: #888;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}


.amanah-load-more-wrap { display: flex; justify-content: center; margin-top: 30px; grid-column: 1 / -1; } 
.amanah-load-more-btn { background: #1a7a4a; color: var(--amanah-bg-card); border: none; padding: 10px 24px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.2s, transform 0.2s; display: inline-flex; align-items: center; gap: 8px; } 
.amanah-load-more-btn:hover { background: #145e38; transform: translateY(-2px); } 
.amanah-load-more-btn.amanah-loading { opacity: 0.8; pointer-events: none; }

.amanah-sort-dropdown-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
	margin-left: auto;
}
.amanah-sort-dropdown {
	appearance: none;
	-webkit-appearance: none;
	background: #f8fcf9;
	border: 1px solid #1a7a4a;
	color: #1a7a4a;
	padding: 8px 36px 8px 16px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	outline: none;
	transition: all 0.2s ease;
	box-shadow: 0 2px 4px rgba(26, 122, 74, 0.05);
}
.amanah-sort-dropdown:hover, .amanah-sort-dropdown:focus {
	background: #1a7a4a;
	color: var(--amanah-bg-card);
	box-shadow: 0 4px 8px rgba(26, 122, 74, 0.15);
}
.amanah-sort-dropdown-wrap .amanah-sort-caret {
	position: absolute;
	right: 14px;
	pointer-events: none;
	color: currentColor;
}
.amanah-sort-dropdown:hover + .amanah-sort-caret,
.amanah-sort-dropdown:focus + .amanah-sort-caret {
	color: var(--amanah-bg-card);
}

/* Recently Viewed */ 
.amanah-recently-viewed-wrapper { margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--amanah-border); } 
.amanah-recent-title { font-size: 20px; font-weight: 700; color: var(--amanah-text-main); margin-bottom: 20px; } 
.amanah-recent-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

/* Tooltip Related Products */ 
.amanah-card { position: relative; } 
.amanah-related-tooltip { position: absolute; top: 10px; right: -250px; width: 240px; background: var(--amanah-bg-card); border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); z-index: 100; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s, transform 0.3s; transform: translateY(-5px); padding: 12px; pointer-events: none; border: 1px solid var(--amanah-border); } 
.amanah-tooltip--show { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; } 
@media (max-width: 1024px) { .amanah-related-tooltip { right: auto; left: 100%; top: 0; margin-left:10px; z-index: 200; } } 
@media (max-width: 768px) { .amanah-related-tooltip { display:none !important; } } 
.amanah-related-tooltip-title { font-size: 13px; font-weight: 700; color: #1a7a4a; margin-bottom: 10px; border-bottom: 1px dashed var(--amanah-border); padding-bottom: 6px; } 
.amanah-related-tooltip-content { display: flex; flex-direction: column; gap: 8px; } 
.amanah-mini-card { display: flex; gap: 10px; text-decoration: none; align-items: stretch; background: var(--amanah-bg-muted); padding: 6px; border-radius: 6px; transition: background 0.2s; } 
.amanah-mini-card:hover { background: #edf7f2; } 
.amanah-mini-card__thumb { width: 45px; height: 60px; object-fit: cover; border-radius: 4px; background: #eee; flex-shrink: 0; } 
.amanah-mini-card__thumb--placeholder { display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; color: var(--amanah-border); } 
.amanah-mini-card__content { display: flex; flex-direction: column; justify-content: center; overflow: hidden; } 
.amanah-mini-card__title { font-size: 12px; font-weight: 600; color: #333; margin: 0 0 4px; line-height: 1.3; } 
.amanah-mini-card__price { font-size: 12px; color: #1a7a4a; font-weight: 700; }

/* Quick View Modal & Hover Trigger */ 
.amanah-quick-view-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.95); background: rgba(255,255,255,0.95); color: #1a7a4a; padding: 10px 18px; border-radius: 40px; font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 8px; border: none; cursor: pointer; opacity: 0; visibility: hidden; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 5px 15px rgba(0,0,0,0.1); z-index: 20; } 
.amanah-card:hover .amanah-quick-view-btn { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); } 
.amanah-quick-view-btn:hover { background: #1a7a4a; color: var(--amanah-bg-card); transform: translate(-50%, -50%) scale(1.05); } 
.amanah-quick-view-modal { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 99999; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; } 
.amanah-qv-open { opacity: 1; visibility: visible; } 
.amanah-quick-view-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); } 
.amanah-quick-view-content { position: relative; width: 90%; max-width: 900px; max-height: 90vh; background: var(--amanah-bg-card); border-radius: 12px; overflow-y: auto; z-index: 10; box-shadow: 0 20px 40px rgba(0,0,0,0.2); transform: translateY(20px); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); } 
.amanah-qv-open .amanah-quick-view-content { transform: translateY(0); } 
.amanah-quick-view-inner { display: block; position: relative; } 
.amanah-qv-close { position: absolute; top: 15px; right: 15px; width: 32px; height: 32px; background: var(--amanah-shadow); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; border: none; cursor: pointer; color: var(--amanah-text-muted); transition: background 0.2s; z-index: 2; line-height:1; } 
.amanah-qv-close:hover { background: rgba(0,0,0,0.1); color: #000; } 
.amanah-qv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; } 
.amanah-qv-image img { width: 100%; height: auto; border-radius: 12px 0 0 12px; object-fit: cover; display: block; } 
.amanah-qv-placeholder { width: 100%; height: 100%; min-height: 300px; display: flex; align-items: center; justify-content: center; background: #f0f0f0; font-size: 80px; font-weight: 900; color: var(--amanah-border); border-radius: 12px 0 0 12px; } 
.amanah-qv-details { padding: 40px 40px 40px 0; display: flex; flex-direction: column; justify-content: center; } 
.amanah-qv-title { font-size: 28px; font-weight: 700; color: var(--amanah-text-main); margin: 0 0 15px; } 
.amanah-qv-price { font-size: 22px; font-weight: 700; color: #1a7a4a; margin-bottom: 20px; } 
.amanah-qv-desc { font-size: 15px; color: var(--amanah-text-muted); line-height: 1.6; margin-bottom: 30px; } 
.amanah-qv-cart-wrap form.cart { display: flex; gap: 15px; flex-wrap: wrap; align-items: center; margin: 0; } 
.amanah-qv-cart-wrap .quantity { width: 80px; } 
.amanah-qv-cart-wrap .quantity input { width: 100%; height: 44px; padding: 0 10px; border: 1px solid var(--amanah-border); border-radius: 6px; text-align: center; font-size: 16px; margin: 0; } 
.amanah-qv-cart-wrap button.single_add_to_cart_button { height: 44px; padding: 0 30px; background: #1a7a4a; color: var(--amanah-bg-card); border: none; border-radius: 6px; font-weight: 600; font-size: 15px; cursor: pointer; transition: background 0.2s; flex: 1; min-width: 150px; } 
.amanah-qv-cart-wrap button.single_add_to_cart_button:hover { background: #125e37; } 
@media (max-width: 900px) { .amanah-qv-grid { grid-template-columns: 1fr; gap: 0; } .amanah-qv-image img, .amanah-qv-placeholder { border-radius: 12px 12px 0 0; max-height:40vh; } .amanah-qv-details { padding: 30px; } }

/* Secondary Image Hover */ 
.amanah-card__cover-images { position: relative; width: 100%; aspect-ratio: inherit; overflow: hidden; display: block; border-radius: inherit; } 
.amanah-card__cover--secondary { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease; transform: scale(1.05); } 
.amanah-card__cover--primary { transition: opacity 0.4s ease, transform 0.4s ease; } 
.amanah-card:hover .amanah-card__cover-images .amanah-card__cover--secondary { opacity: 1; visibility: visible; transform: scale(1); } 
.amanah-card:hover .amanah-card__cover-images .amanah-card__cover--primary { opacity: 0; }
