/**
 * Albedous Woo Shop UI — product card (reference layout v1.2.1)
 */

/* ------------------------------------------------------------------ */
/* Tokens & page background                                           */
/* ------------------------------------------------------------------ */

body.alb-shop-ui {
	background: #F7F8FB;
}

/* Unify archive content shell — shop + category + tag */
body.alb-shop-ui.post-type-archive-product .miion-content-inner,
body.alb-shop-ui.tax-product_cat .miion-content-inner,
body.alb-shop-ui.tax-product_tag .miion-content-inner {
	background: transparent !important;
}

body.alb-shop-ui .miion-woo .miion-content-inner,
body.alb-shop-ui .miion-content.miion-woo .miion-content-inner {
	background: transparent;
}

body.alb-shop-ui .woocommerce-products-header {
	display: none;
}

body.alb-shop-ui .term-description {
	display: none;
}

body.alb-product-cards {
	--alb-ink: #0B1220;
	--alb-paper: #F7F8FB;
	--alb-line: #E3E6EE;
	--alb-text: #12172B;
	--alb-muted: #6B7280;
	--alb-accent: #3557FF;
	--alb-teal: #17B897;
	--alb-coral: #FF6B4A;
	--alb-font-display: 'Space Grotesk', sans-serif;
	--alb-font-body: 'Inter', sans-serif;
	--alb-font-mono: 'JetBrains Mono', monospace;
	--alb-card-pad: 20px;
}

/* ------------------------------------------------------------------ */
/* Shop toolbar (unchanged)                                           */
/* ------------------------------------------------------------------ */

body.alb-shop-ui .alb-shop-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 24px;
	margin-bottom: 32px;
	padding-bottom: 22px;
	border-bottom: 1px solid var(--alb-line);
}

body.alb-shop-ui .alb-filter-bar {
	flex: 1 1 100%;
}

body.alb-shop-ui .alb-filter-bar__categories {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

body.alb-shop-ui .alb-cat-chip {
	display: inline-flex;
	align-items: center;
	padding: 7px 18px;
	font-family: var(--alb-font-body);
	font-size: 13px;
	font-weight: 500;
	color: #4b5563;
	background: #fff;
	border: 1px solid var(--alb-line);
	border-radius: 999px;
	text-decoration: none;
	transition: color 0.2s, border-color 0.2s, background 0.2s;
}

body.alb-shop-ui .alb-cat-chip:hover,
body.alb-shop-ui .alb-cat-chip.is-active {
	background: var(--alb-accent);
	border-color: var(--alb-accent);
	color: #fff;
}

body.alb-shop-ui .alb-shop-toolbar .woocommerce-result-count {
	margin: 0;
	font-size: 13px;
	color: var(--alb-muted);
}

body.alb-shop-ui .alb-shop-toolbar form,
body.alb-shop-ui .alb-shop-toolbar .woocommerce-ordering {
	margin: 0;
}

/* ------------------------------------------------------------------ */
/* Product grid — override Miion shop-col-* inline widths              */
/* ------------------------------------------------------------------ */

body.alb-shop-ui .woocommerce ul.products:not(.owl-carousel):not(.related-slider) {
	display: grid !important;
	gap: 24px;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding: 0;
	list-style: none;
}

body.alb-shop-ui .woocommerce ul.products.shop-col-2:not(.owl-carousel):not(.related-slider) {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.alb-shop-ui .woocommerce ul.products.shop-col-3:not(.owl-carousel):not(.related-slider) {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.alb-shop-ui .woocommerce ul.products.shop-col-4:not(.owl-carousel):not(.related-slider) {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.alb-shop-ui .woocommerce ul.products.shop-col-5:not(.owl-carousel):not(.related-slider) {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

body.alb-shop-ui .woocommerce ul.products.shop-col-6:not(.owl-carousel):not(.related-slider) {
	grid-template-columns: repeat(6, minmax(0, 1fr));
}

body.alb-shop-ui .woocommerce ul.products:not(.owl-carousel):not(.related-slider)::before,
body.alb-shop-ui .woocommerce ul.products:not(.owl-carousel):not(.related-slider)::after {
	display: none !important;
	content: none !important;
}

body.alb-shop-ui .woocommerce ul.products:not(.owl-carousel):not(.related-slider) li.product {
	width: 100% !important;
	max-width: none !important;
	float: none !important;
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	vertical-align: top;
}

body.alb-product-cards .woocommerce ul.products {
	margin-left: 0;
	margin-right: 0;
}

body.alb-product-cards .woocommerce ul.products li.product.alb-pcard {
	margin-bottom: 0;
	padding: 0;
}

body.alb-product-cards .loop-product-wrap {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 0 !important;
	background: #fff;
	border: 1px solid var(--alb-line);
	border-radius: 16px;
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
	box-shadow: 0 1px 2px rgba(11, 18, 32, 0.04);
}

body.alb-product-cards .loop-product-wrap:hover {
	transform: translateY(-3px);
	border-color: var(--alb-accent);
	box-shadow: 0 8px 24px rgba(53, 87, 255, 0.12);
}

body.alb-product-cards .product-icons-pack {
	display: none !important;
}

body.alb-product-cards .woocommerce ul.products li.product .star-rating,
body.alb-product-cards .woocommerce ul.products li.product .woocommerce-review-link {
	display: none !important;
}

/* ------------------------------------------------------------------ */
/* Thumbnail — dark navy hero (reference)                             */
/* ------------------------------------------------------------------ */

body.alb-product-cards .woocommerce ul.products li.product .woo-thumb-wrap {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 168px;
	margin-bottom: 0;
	overflow: hidden;
	border-radius: 16px 16px 0 0;
	background: var(--alb-ink);
}

body.alb-product-cards .woocommerce ul.products li.product .woo-thumb-wrap a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 168px;
}

body.alb-product-cards .woocommerce ul.products li.product .woo-thumb-wrap img {
	width: auto !important;
	height: auto !important;
	max-width: 80px !important;
	max-height: 80px !important;
	object-fit: contain !important;
	display: block;
	border-radius: 0;
	margin: 0;
}

body.alb-product-cards .woocommerce ul.products li.product .woo-thumb-wrap:has(.alb-thumb-fallback) img {
	display: none !important;
}

body.alb-product-cards .alb-thumb-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #6B9FFF;
	font-size: 56px;
	line-height: 1;
	pointer-events: none;
}

body.alb-product-cards .woocommerce ul.products li.product .woo-thumb-wrap:not(:has(img)) .alb-thumb-fallback,
body.alb-product-cards .woocommerce ul.products li.product .woo-thumb-wrap .alb-thumb-fallback {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 56px;
	height: 56px;
}

body.alb-product-cards .woocommerce ul.products li.product .onsale {
	display: none !important;
}

/* Best seller ribbon */
body.alb-product-cards .alb-ribbon {
	position: absolute;
	top: 14px;
	left: -32px;
	z-index: 3;
	width: 130px;
	padding: 5px 0;
	background: var(--alb-coral);
	color: #fff;
	font-family: var(--alb-font-body);
	font-size: 10px;
	font-weight: 600;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	transform: rotate(-45deg);
	pointer-events: none;
}

/* Category pill — light grey, bottom-left (reference) */
body.alb-product-cards .alb-cat-pill {
	position: absolute;
	bottom: 12px;
	left: 12px;
	z-index: 3;
	padding: 6px 14px;
	background: #E8ECF4;
	color: var(--alb-ink);
	font-family: var(--alb-font-body);
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	border-radius: 999px;
	line-height: 1;
	pointer-events: none;
}

/* Wishlist — subtle on dark thumb */
body.alb-product-cards .alb-wishlist-btn {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	background: rgba(255, 255, 255, 0.12);
	border: none;
	border-radius: 50%;
	color: rgba(255, 255, 255, 0.85);
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}

body.alb-product-cards .alb-wishlist-btn:hover {
	background: rgba(255, 255, 255, 0.22);
	color: #fff;
}

body.alb-product-cards .alb-wishlist-btn .ti-heart,
body.alb-product-cards .alb-wishlist-btn .ti-heart-filled {
	font-size: 15px;
	line-height: 1;
}

body.alb-product-cards .alb-wishlist-btn.is-active {
	color: var(--alb-coral);
	background: rgba(255, 255, 255, 0.18);
}

body.alb-product-cards .alb-wishlist-btn.is-active .ti-heart-filled {
	color: var(--alb-coral);
}

/* ------------------------------------------------------------------ */
/* Card body — white content block                                    */
/* ------------------------------------------------------------------ */

body.alb-product-cards .alb-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: var(--alb-card-pad) var(--alb-card-pad) 0;
}

/* Compatibility tags */
body.alb-product-cards .alb-compat-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0 0 12px;
	padding: 0;
}

body.alb-product-cards .alb-compat-tag {
	display: inline-block;
	padding: 4px 10px;
	font-family: var(--alb-font-mono);
	font-size: 11px;
	font-weight: 500;
	border-radius: 6px;
	text-decoration: none;
	line-height: 1.35;
	transition: opacity 0.15s;
}

body.alb-product-cards .alb-compat-tag--0 {
	color: #1a4fad;
	background: #dce8ff;
}

body.alb-product-cards .alb-compat-tag--1 {
	color: #5b3ea6;
	background: #ede5ff;
}

body.alb-product-cards .alb-compat-tag--2 {
	color: #0d6b5c;
	background: #dff7f0;
}

body.alb-product-cards .alb-compat-tag--3 {
	color: #9a3412;
	background: #ffedd5;
}

body.alb-product-cards .alb-compat-tag:hover {
	opacity: 0.88;
}

/* Title */
body.alb-product-cards .woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--alb-font-display);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
	padding: 0;
	margin: 0 0 0;
	color: var(--alb-ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	letter-spacing: -0.01em;
}

body.alb-product-cards .woocommerce ul.products li.product .woocommerce-loop-product__title a {
	color: inherit;
	text-decoration: none;
}

body.alb-product-cards .woocommerce ul.products li.product .woocommerce-loop-product__title a:hover {
	color: var(--alb-accent);
}

/* When no compat tags, title still has breathing room via card-body pad */
body.alb-product-cards .alb-card-body:not(:has(.alb-compat-tags)) .woocommerce-loop-product__title {
	margin-top: 0;
}

/* Levels row */
body.alb-product-cards .alb-levels {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 12px 0 0;
	padding: 0;
}

body.alb-product-cards .alb-levels__dots {
	display: flex;
	align-items: center;
}

body.alb-product-cards .alb-levels__dot {
	display: block;
	background: var(--alb-accent);
	border-radius: 50%;
	flex-shrink: 0;
}

body.alb-product-cards .alb-levels__line {
	display: block;
	width: 10px;
	height: 1px;
	background: var(--alb-line);
}

body.alb-product-cards .alb-levels__label {
	font-family: var(--alb-font-body);
	font-size: 11px;
	color: var(--alb-muted);
}

/* Footer — divider + price / cart */
body.alb-product-cards .alb-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 16px;
	padding: 16px 0 var(--alb-card-pad);
	border-top: 1px solid var(--alb-line);
}

body.alb-product-cards .alb-price {
	font-family: var(--alb-font-display);
	line-height: 1.2;
}

body.alb-product-cards .alb-price__was {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: var(--alb-coral);
	text-decoration: line-through;
	margin-bottom: 3px;
}

body.alb-product-cards .alb-price__was .woocommerce-Price-amount {
	color: var(--alb-coral);
}

body.alb-product-cards .alb-price__now-row {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

body.alb-product-cards .alb-price__now {
	font-size: 22px;
	font-weight: 600;
	color: var(--alb-ink);
	text-decoration: none;
}

body.alb-product-cards .alb-price__now .woocommerce-Price-amount {
	color: var(--alb-ink);
}

body.alb-product-cards .alb-price > .alb-price__now {
	font-size: 22px;
	font-weight: 600;
	color: var(--alb-ink);
}

body.alb-product-cards .alb-price__save {
	display: inline-block;
	padding: 3px 8px;
	font-family: var(--alb-font-body);
	font-size: 10px;
	font-weight: 600;
	color: var(--alb-teal);
	background: rgba(23, 184, 151, 0.12);
	border-radius: 4px;
	line-height: 1.3;
}

body.alb-product-cards .alb-card-footer__cart .added_to_cart {
	display: none !important;
}

/* Cart button — light grey rounded square (reference) */
body.alb-product-cards a.alb-add-to-cart {
	position: relative;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 44px !important;
	height: 44px !important;
	padding: 0 !important;
	font-size: 0 !important;
	border-radius: 10px !important;
	background: #E8ECF4 !important;
	border: 1px solid var(--alb-line) !important;
	color: var(--alb-ink) !important;
	opacity: 1 !important;
	transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
	flex-shrink: 0;
}

body.alb-product-cards a.alb-add-to-cart:hover {
	background: var(--alb-accent) !important;
	border-color: var(--alb-accent) !important;
	color: #fff !important;
	transform: scale(1.04);
}

body.alb-product-cards a.alb-add-to-cart .alb-atc-icon {
	font-size: 20px;
	line-height: 1;
}

body.alb-product-cards a.alb-add-to-cart.loading {
	opacity: 0.55 !important;
	pointer-events: none;
}

body.alb-product-cards a.alb-add-to-cart.is-success {
	background: var(--alb-teal) !important;
	border-color: var(--alb-teal) !important;
	color: #fff !important;
}

body.alb-product-cards a.alb-add-to-cart.is-success .alb-atc-icon {
	font-size: 18px;
}

body.alb-product-cards a.alb-add-to-cart:focus-visible {
	outline: none;
	box-shadow: 0 0 0 2px rgba(53, 87, 255, 0.35);
}

/* Remove from cart — same tile, trash icon */
body.alb-product-cards .alb-remove-from-cart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	font-family: inherit;
	font-size: 0;
	line-height: 1;
	background: #E8ECF4;
	border: 1px solid var(--alb-line);
	border-radius: 10px;
	color: var(--alb-ink);
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
	flex-shrink: 0;
}

body.alb-product-cards .alb-card-footer__cart.is-in-cart .alb-remove-from-cart,
body.alb-product-cards li.product.alb-in-cart .alb-remove-from-cart {
	background: rgba(53, 87, 255, 0.1);
	border-color: rgba(53, 87, 255, 0.35);
	color: var(--alb-accent);
}

body.alb-product-cards .alb-remove-from-cart:hover {
	background: #FEE2E2 !important;
	border-color: #FCA5A5 !important;
	color: #DC2626 !important;
	transform: scale(1.04);
}

body.alb-product-cards .alb-remove-from-cart.loading {
	opacity: 0.55;
	pointer-events: none;
}

body.alb-product-cards .alb-remove-from-cart .ti-trash {
	font-size: 19px;
	line-height: 1;
}

body.alb-product-cards .alb-remove-from-cart:focus-visible {
	outline: none;
	box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.25);
}

body.alb-product-cards li.product.alb-in-cart .loop-product-wrap {
	border-color: rgba(53, 87, 255, 0.45);
}

/* ------------------------------------------------------------------ */
/* Responsive                                                         */
/* ------------------------------------------------------------------ */

@media (max-width: 1024px) {
	body.alb-shop-ui .woocommerce ul.products:not(.owl-carousel):not(.related-slider) {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	body.alb-shop-ui .alb-filter-bar__categories {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.alb-shop-ui .alb-cat-chip {
		flex-shrink: 0;
	}

	body.alb-shop-ui .woocommerce ul.products:not(.owl-carousel):not(.related-slider) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}

	body.alb-product-cards {
		--alb-card-pad: 16px;
	}

	body.alb-product-cards .woocommerce ul.products li.product .woo-thumb-wrap,
	body.alb-product-cards .woocommerce ul.products li.product .woo-thumb-wrap a {
		min-height: 150px;
	}
}

@media (max-width: 480px) {
	body.alb-shop-ui .woocommerce ul.products:not(.owl-carousel):not(.related-slider) {
		grid-template-columns: 1fr;
	}

	body.alb-product-cards .woocommerce ul.products.shop-col-4 li.product,
	body.alb-product-cards .woocommerce ul.products.shop-col-3 li.product,
	body.alb-product-cards .woocommerce ul.products.shop-col-2 li.product {
		width: 100% !important;
	}
}
