/**
 * Shared product commerce UI — cards, prices, stock, PDP, related products.
 */

:root {
	--ac-ui-red: #e11d48;
	--ac-ui-red-dark: #be123c;
	--ac-ui-blue: #2b67f6;
	--ac-ui-green: #198754;
	--ac-ui-green-bg: #e6f4ea;
	--ac-ui-green-border: #bbf7d0;
	--ac-ui-discount-bg: #fee2e2;
	--ac-ui-mrp: #1a1a1a;
	--ac-ui-ink: #0d1b3e;
	--ac-ui-muted: #757575;
	--ac-ui-line: #e5e7eb;
	--ac-ui-radius: 0.85rem;
}

/* -------------------------------------------------------------------------- */
/* Discount badges                                                            */
/* -------------------------------------------------------------------------- */

.onsale,
.altctrl-deals-save-badge,
.altctrl-daily-deals__discount-badge,
.altctrl-daily-deals__product-badge {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	padding: 0.28rem 0.65rem !important;
	border-radius: 999px !important;
	background: var(--ac-ui-discount-bg) !important;
	color: var(--ac-ui-red) !important;
	font-size: 0.6875rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.04em;
	line-height: 1.2 !important;
	text-transform: none;
	box-shadow: none;
}

.products .product:hover .onsale,
.altctrl-deal-card:hover .onsale,
.altctrl-deal-card:hover .altctrl-deals-save-badge,
.altctrl-daily-deals__card:hover .altctrl-daily-deals__discount-badge,
.related.products .product:hover .onsale {
	display: inline-flex !important;
	visibility: visible !important;
	opacity: 1 !important;
	z-index: 9 !important;
}

/* -------------------------------------------------------------------------- */
/* Savings pill                                                               */
/* -------------------------------------------------------------------------- */

.altctrl-price-save {
	display: inline-flex;
	align-items: center;
	align-self: center;
	flex: 0 0 auto;
	gap: 0.35rem;
	margin: 0;
	padding: 0.45rem 0.65rem;
	border: 1px solid var(--ac-ui-green-border);
	border-radius: 0.5rem;
	background: var(--ac-ui-green-bg);
	color: var(--ac-ui-green);
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1.25;
	white-space: nowrap;
}

.altctrl-price-save::before {
	display: block;
	flex: 0 0 auto;
	width: 0.85rem;
	height: 0.85rem;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23198754' stroke-width='1.8'%3E%3Cpath d='M20.6 13.4 12.7 5.5H4v8.7l7.9 7.9a1.5 1.5 0 0 0 2.1 0l6.6-6.6a1.5 1.5 0 0 0 0-2.1Z'/%3E%3Ccircle cx='8.2' cy='8.2' r='1.2' fill='%23198754' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat;
	content: '';
}

.altctrl-price-save .amount,
.altctrl-price-save .woocommerce-Price-amount,
.altctrl-price-save bdi {
	color: inherit !important;
	font-weight: 700 !important;
	font-size: inherit !important;
}

.altctrl-price-save.is-empty {
	visibility: hidden;
	pointer-events: none;
	border-color: transparent;
	background: transparent;
	color: transparent;
}

.altctrl-price-save.is-empty::before {
	opacity: 0;
}

.altctrl-product-card__price-original.is-empty,
.altctrl-daily-deals__price-original.is-empty,
.altctrl-recently-viewed__price-original.is-empty,
.altctrl-related-card__price-original.is-empty {
	visibility: hidden;
	pointer-events: none;
	min-height: 1.2em;
}

.altctrl-price-mrp-row.is-empty {
	visibility: hidden;
	pointer-events: none;
	min-height: 1.2em;
}

/* Card MRP + % OFF on one row (same pattern as PDP) */
.altctrl-product-card__price .altctrl-price-mrp-row,
.altctrl-daily-deals__price .altctrl-price-mrp-row,
.altctrl-recently-viewed__price .altctrl-price-mrp-row,
.altctrl-related-card__price .altctrl-price-mrp-row,
body.altctrl-deals-archive .altctrl-deal-card .altctrl-price-mrp-row {
	display: inline-flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center;
	justify-content: flex-start;
	gap: 0.35rem;
	width: auto;
	max-width: 100%;
	min-height: 1.2em;
	overflow: visible;
}

.altctrl-product-card__price .altctrl-price-mrp-row .altctrl-product-card__price-original,
.altctrl-daily-deals__price .altctrl-price-mrp-row .altctrl-daily-deals__price-original,
.altctrl-recently-viewed__price .altctrl-price-mrp-row .altctrl-recently-viewed__price-original,
.altctrl-related-card__price .altctrl-price-mrp-row .altctrl-related-card__price-original,
body.altctrl-deals-archive .altctrl-deal-card .altctrl-price-mrp-row .altctrl-product-card__price-original,
.altctrl-product-card__price .altctrl-price-mrp-row .altctrl-product-card__price-original .woocommerce-Price-amount,
.altctrl-product-card__price .altctrl-price-mrp-row .altctrl-product-card__price-original .amount,
.altctrl-daily-deals__price .altctrl-price-mrp-row .altctrl-daily-deals__price-original .woocommerce-Price-amount,
.altctrl-daily-deals__price .altctrl-price-mrp-row .altctrl-daily-deals__price-original .amount,
body.altctrl-deals-archive .altctrl-deal-card .altctrl-price-mrp-row .altctrl-product-card__price-original .woocommerce-Price-amount,
body.altctrl-deals-archive .altctrl-deal-card .altctrl-price-mrp-row .altctrl-product-card__price-original .amount {
	display: inline !important;
	width: auto !important;
	max-width: none;
	margin: 0;
	flex: 0 1 auto;
	white-space: nowrap;
}

.altctrl-product-card__price .altctrl-price-mrp-row .altctrl-product-card__price-discount,
.altctrl-daily-deals__price .altctrl-price-mrp-row .altctrl-daily-deals__price-discount,
.altctrl-recently-viewed__price .altctrl-price-mrp-row .altctrl-recently-viewed__price-discount,
.altctrl-related-card__price .altctrl-price-mrp-row .altctrl-related-card__price-discount,
body.altctrl-deals-archive .altctrl-deal-card .altctrl-price-mrp-row .altctrl-product-card__price-discount {
	display: inline-flex !important;
	flex: 0 0 auto;
	align-items: center;
	visibility: visible !important;
	opacity: 1 !important;
	white-space: nowrap;
}

/* -------------------------------------------------------------------------- */
/* Product card prices                                                        */
/* -------------------------------------------------------------------------- */

.altctrl-product-card__price,
.altctrl-daily-deals__price,
.altctrl-recently-viewed__price,
.altctrl-related-card__price {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.2rem;
}

.altctrl-price-row {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.45rem 0.55rem;
	width: 100%;
}

/* Product cards: stack sale / MRP / save so every cell aligns the same */
.altctrl-product-card__price .altctrl-price-row,
.altctrl-recently-viewed__price .altctrl-price-row,
.altctrl-daily-deals__price .altctrl-price-row,
.altctrl-related-card__price .altctrl-price-row,
body.altctrl-deals-archive .altctrl-deal-card .altctrl-price-row {
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 0.25rem;
}

.altctrl-product-card__price .altctrl-price-save,
.altctrl-recently-viewed__price .altctrl-price-save,
.altctrl-daily-deals__price .altctrl-price-save,
.altctrl-related-card__price .altctrl-price-save,
body.altctrl-deals-archive .altctrl-deal-card .altctrl-price-save {
	align-self: flex-start;
}

.altctrl-price-stack {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	flex: 1 1 auto;
	gap: 0.15rem;
	min-width: 0;
}

.altctrl-price-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.45rem;
}

.altctrl-product-card__price-current,
.altctrl-product-card__price-current .amount,
.altctrl-product-card__price-current .woocommerce-Price-amount,
.altctrl-product-card__price-current bdi,
.altctrl-daily-deals__price-current,
.altctrl-daily-deals__price-current .amount,
.altctrl-daily-deals__price-current .woocommerce-Price-amount,
.altctrl-recently-viewed__price-current,
.altctrl-recently-viewed__price-current .amount,
.altctrl-related-card__price-current,
.altctrl-related-card__price-current .amount,
.altctrl-related-card__price-current .woocommerce-Price-amount,
.altctrl-single-product__price-current,
.altctrl-single-product__price-current .amount,
.altctrl-single-product__price-current .woocommerce-Price-amount,
.related.products .price ins,
.related.products .price ins .amount,
.related.products .price > .amount {
	color: var(--ac-ui-blue) !important;
	font-size: clamp(1.05rem, 1.5vw, 1.35rem) !important;
	font-weight: 800 !important;
	line-height: 1.15 !important;
	text-decoration: none !important;
}

.altctrl-product-card__price-original,
.altctrl-product-card__price-original .woocommerce-Price-amount,
.altctrl-product-card__price-original .amount,
.altctrl-daily-deals__price-original,
.altctrl-daily-deals__price-original .woocommerce-Price-amount,
.altctrl-daily-deals__price-original .amount,
.altctrl-recently-viewed__price-original,
.altctrl-recently-viewed__price-original .woocommerce-Price-amount,
.altctrl-related-card__price-original,
.altctrl-related-card__price-original .woocommerce-Price-amount,
.altctrl-related-card__price-original .amount,
.altctrl-single-product__price-original,
.altctrl-single-product__price-original .woocommerce-Price-amount {
	width: auto;
	margin: 0;
	color: var(--ac-ui-mrp) !important;
	font-size: 0.8125rem;
	font-weight: 400;
	line-height: 1.2;
	text-decoration: line-through;
}

.altctrl-product-card__price-discount,
.altctrl-daily-deals__price-discount,
.altctrl-recently-viewed__price-discount,
.altctrl-related-card__price-discount,
.altctrl-single-product__price-discount {
	display: inline-flex;
	align-items: center;
	padding: 0.16rem 0.45rem;
	border-radius: 999px;
	background: var(--ac-ui-discount-bg);
	color: var(--ac-ui-red) !important;
	font-size: 0.6875rem;
	font-weight: 700 !important;
	line-height: 1.2;
	white-space: nowrap;
}

/* -------------------------------------------------------------------------- */
/* Shop / deal cards                                                          */
/* -------------------------------------------------------------------------- */

body.altctrl-deals-archive .altctrl-deal-card__inner,
.related.products .product-inner {
	border-radius: var(--ac-ui-radius) !important;
	box-shadow: 0 0.5rem 1.25rem rgba(15, 23, 42, 0.06);
}

body.altctrl-deals-archive .altctrl-deal-card.is-out-of-stock .altctrl-deal-card__inner {
	overflow: visible;
	padding-bottom: clamp(0.875rem, 1.4vw, 1.125rem);
}

body.altctrl-deals-archive .altctrl-deal-card__wishlist a,
body.altctrl-deals-archive .altctrl-deal-card__wishlist button,
.related.products .yith-wcwl-add-to-wishlist a {
	border-radius: 999px !important;
	background: #f3f4f6 !important;
	box-shadow: 0 0.15rem 0.45rem rgba(15, 23, 42, 0.1) !important;
}

body.altctrl-deals-archive .altctrl-deal-card__shop-now,
.altctrl-home-card__shop-now,
.altctrl-daily-deals__shop-now,
.related.products .button,
.related.products .added_to_cart {
	border-radius: 0.65rem !important;
	border: 1px solid var(--ac-ui-blue) !important;
	background: #fff !important;
	color: var(--ac-ui-blue) !important;
	font-weight: 700 !important;
}

body.altctrl-deals-archive .altctrl-deal-card__footer .add_to_cart_button,
body.altctrl-deals-archive .altctrl-deal-card__footer .button:not(.altctrl-deal-card__shop-now):not(.altctrl-notify-me-btn--card) {
	border-radius: 0.65rem !important;
}

body.altctrl-deals-archive .altctrl-deal-card__shop-now:hover,
body.altctrl-deals-archive .altctrl-deal-card__shop-now:focus-visible,
.altctrl-home-card__shop-now:hover,
.altctrl-home-card__shop-now:focus-visible,
.altctrl-daily-deals__shop-now:hover,
.altctrl-daily-deals__shop-now:focus-visible,
.related.products .button:hover {
	background: var(--ac-ui-blue) !important;
	border-color: var(--ac-ui-blue) !important;
	color: #fff !important;
}

body.altctrl-deals-archive .altctrl-deal-card .woocommerce-loop-product__title,
body.altctrl-deals-archive .altctrl-deal-card .woocommerce-loop-product__title {
	color: #1e293b !important;
	font-weight: 700 !important;
}

body.altctrl-deals-archive .altctrl-deal-card__rating .review-count,
.altctrl-deal-card__rating .review-count {
	color: #64748b;
	font-size: 0.75rem;
}

/* Empty/outline stars — keep clearly visible on white cards */
.altctrl-deal-card__rating .star-rating,
.altctrl-deal-card__rating-empty,
.altctrl-daily-deals__stars,
.altctrl-recently-viewed__stars,
.altctrl-related-card .star-rating {
	color: #64748b !important;
	opacity: 1 !important;
}

.altctrl-deal-card__rating .star-rating::before,
.altctrl-deal-card__rating-empty::before {
	color: #64748b !important;
	opacity: 1 !important;
}

.altctrl-deal-card__rating .star-rating span::before {
	color: #f59e0b !important;
}

.altctrl-deal-card__bestseller {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 0.28rem;
	margin: 0 0 0.15rem;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	background: var(--ac-ui-blue);
	color: #fff;
	font-size: 0.625rem;
	font-weight: 700 !important;
	letter-spacing: 0.04em;
	line-height: 1.2;
	min-height: 1.35rem;
	box-sizing: border-box;
}

.altctrl-deal-card__bestseller.is-empty {
	visibility: hidden;
	pointer-events: none;
	background: transparent;
	color: transparent;
}

.altctrl-deal-card__bestseller.is-empty::before {
	opacity: 0;
}

.altctrl-deal-card__bestseller::before {
	display: block;
	width: 0.7rem;
	height: 0.7rem;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M12 2.5 14.7 8l6 .5-4.5 3.9 1.4 5.8L12 15.8 6.4 18.2l1.4-5.8L3.3 8.5l6-.5L12 2.5z'/%3E%3C/svg%3E") center / contain no-repeat;
	content: '';
}

/* -------------------------------------------------------------------------- */
/* Out of stock                                                               */
/* -------------------------------------------------------------------------- */

body.altctrl-deals-archive .altctrl-deal-card__media-wrap,
.altctrl-deal-card__media-wrap {
	position: relative;
	overflow: hidden;
}

body.altctrl-deals-archive .altctrl-deal-card__badges,
.altctrl-deal-card__badges {
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 9;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.6rem;
	max-width: calc(100% - 3.25rem);
	pointer-events: none;
}

body.altctrl-deals-archive .altctrl-deal-card__media-wrap .altctrl-deal-card__wishlist,
.altctrl-deal-card__media-wrap .altctrl-deal-card__wishlist {
	position: absolute !important;
	top: 0.5rem !important;
	right: 0.5rem !important;
	left: auto !important;
	z-index: 10;
	margin: 0;
}

body.altctrl-deals-archive .altctrl-deal-card__badges .onsale,
body.altctrl-deals-archive .altctrl-deal-card__badges .altctrl-deals-save-badge,
body.altctrl-deals-archive .altctrl-deal-card__badges .altctrl-deals-save-badge,
body.altctrl-deals-archive .altctrl-deal-card__badges .altctrl-oos-badge,
.altctrl-deal-card__badges .onsale,
.altctrl-deal-card__badges .altctrl-deals-save-badge,
.altctrl-deal-card__badges .altctrl-oos-badge {
	position: static !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	display: inline-flex !important;
	float: none !important;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	margin: 0 !important;
	transform: none !important;
	writing-mode: horizontal-tb !important;
	text-orientation: mixed !important;
	white-space: nowrap !important;
}

body.altctrl-deals-archive .altctrl-deal-card__badges .onsale,
body.altctrl-deals-archive .altctrl-deal-card__badges .altctrl-deals-save-badge {
	padding: 0.26rem 0.55rem !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--ac-ui-discount-bg) !important;
	color: var(--ac-ui-red) !important;
	font-size: 0.6875rem !important;
	font-weight: 700 !important;
	box-shadow: none !important;
	text-transform: none;
}

body.altctrl-deals-archive .altctrl-deal-card .altctrl-oos-badge,
.altctrl-deal-card .altctrl-oos-badge,
.altctrl-daily-deals__media .altctrl-oos-badge {
	position: static !important;
	top: auto !important;
	left: auto !important;
	z-index: 8;
	display: inline-flex !important;
	align-items: center;
	gap: 0.25rem;
	transform: none !important;
	padding: 0.24rem 0.55rem;
	border: 0 !important;
	border-radius: 999px;
	background: #d32f2f !important;
	color: #fff !important;
	font-size: 0.625rem;
	font-weight: 700 !important;
	letter-spacing: 0.04em;
	line-height: 1.2;
	text-transform: uppercase;
	white-space: nowrap;
	writing-mode: horizontal-tb !important;
	box-shadow: none;
}

.altctrl-oos-badge__icon {
	flex: 0 0 auto;
}

.altctrl-oos-overlay--card {
	position: absolute;
	left: 0.55rem;
	right: 0.55rem;
	bottom: 0.55rem;
	z-index: 5;
	display: flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.55rem 0.65rem;
	border-radius: 0.65rem;
	background: #fff;
	box-shadow: 0 0.35rem 1rem rgba(15, 23, 42, 0.12);
	pointer-events: auto;
}

.altctrl-oos-overlay__icon {
	flex: 0 0 auto;
	width: 2rem;
	height: 2rem;
	border-radius: 999px;
	background: #ffebee url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d32f2f' stroke-width='1.7'%3E%3Cpath d='M15 17h5l-1.4-1.4A2 2 0 0 1 18 14.2V11a6 6 0 1 0-12 0v3.2a2 2 0 0 1-.6 1.4L4 17h5'/%3E%3Cpath d='M9 17a3 3 0 0 0 6 0'/%3E%3C/svg%3E") center / 1rem no-repeat;
}

.altctrl-oos-overlay__copy {
	display: flex;
	flex-direction: column;
	gap: 0.08rem;
	flex: 1 1 auto;
	min-width: 0;
}

.altctrl-oos-overlay__title {
	color: #d32f2f;
	font-size: 0.75rem;
	font-weight: 700 !important;
	line-height: 1.2;
}

.altctrl-oos-overlay__message {
	color: var(--ac-ui-muted);
	font-size: 0.625rem;
	font-weight: 400;
	line-height: 1.35;
}

.altctrl-notify-me-btn--overlay {
	flex: 0 0 auto;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
	min-height: 2rem;
	padding: 0.35rem 0.65rem !important;
	border: 1px solid var(--ac-ui-blue) !important;
	border-radius: 0.45rem !important;
	background: #fff !important;
	color: var(--ac-ui-blue) !important;
	font-size: 0.625rem !important;
	font-weight: 700 !important;
	white-space: nowrap;
	cursor: pointer;
}

.altctrl-notify-me-btn--overlay svg {
	width: 0.85rem;
	height: 0.85rem;
}

.altctrl-oos-overlay--simple {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.65rem 0.75rem;
	background: rgba(15, 23, 42, 0.78);
	color: #fff;
	text-align: center;
	pointer-events: none;
}

.altctrl-oos-overlay--simple span {
	max-width: 100%;
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.4;
}

.altctrl-oos-notice {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	margin: 0 0 0.65rem;
	padding: 0.7rem 0.75rem;
	border: 1px dashed #f9a8b4;
	border-radius: 0.75rem;
	background: #fff5f5;
}

.altctrl-oos-notice__icon {
	flex: 0 0 auto;
	width: 2.15rem;
	height: 2.15rem;
	border-radius: 999px;
	background: #ffe4e6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e11d48' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.2h15l-1.15 10.1H5.65L4.5 8.2z'/%3E%3Cpath d='M9 8.2V6.4a3 3 0 0 1 6 0v1.8'/%3E%3Cpath d='M9.8 13.2l4.4 4.4M14.2 13.2l-4.4 4.4'/%3E%3C/svg%3E") center / 1.15rem no-repeat;
}

.altctrl-oos-notice__copy {
	display: flex;
	flex-direction: column;
	gap: 0.12rem;
	min-width: 0;
	font-size: 0.75rem;
	line-height: 1.4;
	color: #64748b;
}

.altctrl-oos-notice__copy strong {
	color: #0f172a;
	font-weight: 700 !important;
}

.altctrl-oos-notice__copy em {
	font-style: normal;
	font-weight: 800 !important;
	color: #e11d48;
}

body.altctrl-deals-archive .altctrl-deal-card.is-out-of-stock .altctrl-deal-card__footer .altctrl-notify-me-btn,
body.altctrl-deals-archive .altctrl-deal-card.is-out-of-stock .altctrl-deal-card__footer .altctrl-notify-me-btn--card {
	border: 0.0625rem solid var(--ac-ui-blue) !important;
	border-radius: var(--ac-card-btn-radius, 0.5rem) !important;
	background: #fff !important;
	color: var(--ac-ui-blue) !important;
	font-weight: 400 !important;
}

body.altctrl-deals-archive .altctrl-deal-card.is-out-of-stock .altctrl-deal-card__footer .altctrl-notify-me-btn:hover,
body.altctrl-deals-archive .altctrl-deal-card.is-out-of-stock .altctrl-deal-card__footer .altctrl-notify-me-btn--card:hover,
body.altctrl-deals-archive .altctrl-deal-card.is-out-of-stock .altctrl-deal-card__footer .altctrl-notify-me-btn:focus,
body.altctrl-deals-archive .altctrl-deal-card.is-out-of-stock .altctrl-deal-card__footer .altctrl-notify-me-btn--card:focus {
	background: #eff6ff !important;
	color: var(--ac-ui-blue) !important;
}

body.altctrl-deals-archive .altctrl-deal-card.is-out-of-stock .altctrl-deal-card__footer .altctrl-oos-btn,
body.altctrl-deals-archive .altctrl-deal-card.is-out-of-stock .altctrl-deal-card__footer .altctrl-oos-btn--card {
	border: 0.0625rem solid var(--ac-deals-blue-hover, #0052cc) !important;
	border-radius: var(--ac-card-btn-radius, 0.5rem) !important;
	background: var(--ac-ui-blue) !important;
	color: #fff !important;
	font-weight: 400 !important;
	opacity: 1 !important;
	cursor: not-allowed;
}

.altctrl-notify-me-btn--card,
.altctrl-notify-me-btn--single {
	border: 0.0625rem solid var(--ac-ui-blue) !important;
	border-radius: var(--ac-card-btn-radius, 0.5rem) !important;
	background: #fff !important;
	color: var(--ac-ui-blue) !important;
	font-weight: 400 !important;
}

.altctrl-oos-btn--card,
.altctrl-oos-btn--single {
	border: 0 !important;
	border-radius: var(--ac-card-btn-radius, 0.5rem) !important;
	background: var(--ac-ui-blue) !important;
	color: #fff !important;
	font-weight: 700 !important;
	opacity: 1;
}

/* -------------------------------------------------------------------------- */
/* Product detail purchase card (reference layout)                            */
/* -------------------------------------------------------------------------- */

body.altctrl-single-product-page .altctrl-purchase-block {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

body.altctrl-single-product-page .altctrl-price-card {
	overflow: visible;
	margin: 0 0 0.85rem;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}

body.altctrl-single-product-page .altctrl-price-card .altctrl-single-product__price-stack {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.35rem;
	padding: 0;
	width: 100%;
}

body.altctrl-single-product-page .altctrl-price-card .altctrl-price-row {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.35rem;
	width: 100%;
}

body.altctrl-single-product-page .altctrl-price-card .altctrl-price-stack {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.3rem;
	width: 100%;
}

body.altctrl-single-product-page .altctrl-price-card .altctrl-price-head {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.3rem;
}

body.altctrl-single-product-page .altctrl-price-card .altctrl-price-mrp-row {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem;
}

body.altctrl-single-product-page .altctrl-price-card .altctrl-price-mrp-row .altctrl-single-product__price-original {
	display: inline;
	width: auto;
}

body.altctrl-single-product-page .altctrl-price-card .altctrl-single-product__price-current,
body.altctrl-single-product-page .altctrl-price-card .altctrl-single-product__price-current .amount,
body.altctrl-single-product-page .altctrl-price-card .altctrl-single-product__price-current bdi {
	display: inline;
	margin: 0;
	padding: 0;
	background: transparent;
	color: var(--ac-ui-blue) !important;
	font-size: clamp(1.65rem, 3vw, 2rem) !important;
	font-weight: 800 !important;
	line-height: 1.1 !important;
}

body.altctrl-single-product-page .altctrl-price-card .altctrl-single-product__price-discount {
	display: inline-flex !important;
	align-items: center;
	padding: 0.18rem 0.5rem;
	border-radius: 0.4rem;
	background: var(--ac-ui-discount-bg);
	color: var(--ac-ui-red) !important;
	font-size: 0.75rem;
	font-weight: 700 !important;
	line-height: 1.2;
}

body.altctrl-single-product-page .altctrl-price-card .altctrl-single-product__price-original,
body.altctrl-single-product-page .altctrl-price-card .altctrl-single-product__price-original .amount,
body.altctrl-single-product-page .altctrl-price-card .altctrl-single-product__price-original bdi {
	margin: 0;
	color: #1a1a1a !important;
	font-size: 0.9375rem !important;
	font-weight: 500 !important;
	text-decoration: line-through;
}

body.altctrl-single-product-page .altctrl-price-card .altctrl-price-save {
	display: inline-flex !important;
	align-items: center;
	align-self: flex-start;
	gap: 0.35rem;
	flex: 0 0 auto;
	margin: 0.1rem 0 0;
	padding: 0.45rem 0.75rem;
	border: 1px solid var(--ac-ui-green-border);
	border-radius: 999px;
	background: var(--ac-ui-green-bg);
	color: var(--ac-ui-green) !important;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	box-shadow: none;
}

body.altctrl-single-product-page .altctrl-price-card .altctrl-price-save::before {
	width: 0.9rem;
	height: 0.9rem;
}

body.altctrl-single-product-page .altctrl-price-card .altctrl-price-save .amount,
body.altctrl-single-product-page .altctrl-price-card .altctrl-price-save .woocommerce-Price-amount,
body.altctrl-single-product-page .altctrl-price-card .altctrl-price-save bdi {
	color: var(--ac-ui-green) !important;
	font-size: inherit !important;
	font-weight: 700 !important;
}

body.altctrl-single-product-page .altctrl-purchase-block .altctrl-product-stock {
	margin-top: 0.55rem;
}

body.altctrl-single-product-page .altctrl-purchase-block .altctrl-product-stock .stock {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin: 0;
	color: var(--ac-ui-green) !important;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.3;
}

body.altctrl-single-product-page .altctrl-purchase-block .altctrl-product-stock .stock.in-stock::before {
	display: inline-block;
	width: 1rem;
	height: 1rem;
	border-radius: 999px;
	background: var(--ac-ui-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3'%3E%3Cpath d='m6.5 12.5 3.2 3.2 7.8-7.8'/%3E%3C/svg%3E") center / 0.7rem no-repeat;
	content: '';
}

body.altctrl-single-product-page .altctrl-pdp-controls {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.65rem;
	margin: 0 0 0.7rem;
}

body.altctrl-single-product-page .altctrl-pdp-controls__main {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center;
	gap: 0.55rem;
	width: 100%;
}

body.altctrl-single-product-page .altctrl-purchase-form.cart,
body.altctrl-single-product-page .altctrl-purchase-block form.cart {
	display: block !important;
	width: 100%;
}

body.altctrl-single-product-page .altctrl-pdp-controls__main > .quantity,
body.altctrl-single-product-page .altctrl-pdp-controls__main .altctrl-qty-stepper.quantity,
body.altctrl-single-product-page .altctrl-pdp-controls__main .altctrl-add-to-cart-btn,
body.altctrl-single-product-page .altctrl-pdp-controls__main .single_add_to_cart_button,
body.altctrl-single-product-page .altctrl-pdp-controls__main .altctrl-pdp-cta__wishlist {
	float: none !important;
	clear: none !important;
}

body.altctrl-single-product-page .altctrl-purchase-block .altctrl-qty-stepper {
	display: inline-flex !important;
	align-items: center;
	justify-content: space-between;
	flex: 0 0 auto;
	width: 7.5rem;
	min-width: 7.5rem;
	max-width: 7.5rem;
	min-height: 2.85rem;
	margin: 0 !important;
	border: 1px solid #d8dee8 !important;
	border-radius: 0.65rem !important;
	background: #fff !important;
	overflow: hidden;
}

body.altctrl-single-product-page .altctrl-purchase-block .altctrl-qty-stepper .qty {
	width: 2.25rem;
	min-width: 2rem;
	min-height: 2.85rem;
	display: block;
	flex: 1 1 auto;
	padding: 0;
	border: 0 !important;
	background: transparent !important;
	color: #0f172a !important;
	-webkit-text-fill-color: #0f172a !important;
	opacity: 1 !important;
	appearance: textfield;
	font-size: 0.9375rem !important;
	font-weight: 700 !important;
	line-height: 2.85rem;
	text-align: center;
	text-indent: 0;
	box-shadow: none !important;
}

body.altctrl-single-product-page .altctrl-purchase-block .altctrl-qty-btn {
	width: 2.35rem;
	min-height: 2.85rem;
	border: 0 !important;
	background: transparent !important;
	color: #64748b !important;
	font-size: 1.15rem !important;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
}

body.altctrl-single-product-page .altctrl-purchase-block .altctrl-qty-btn:disabled,
body.altctrl-single-product-page .altctrl-purchase-block .altctrl-qty-btn[aria-disabled="true"],
body.altctrl-single-product-page .altctrl-purchase-block .altctrl-qty-btn.is-at-max,
body.altctrl-single-product-page .altctrl-purchase-block .altctrl-qty-btn.is-at-min {
	color: #cbd5e1 !important;
	opacity: 0.55;
	cursor: not-allowed;
	pointer-events: none;
}

body.altctrl-single-product-page .altctrl-purchase-block .altctrl-product-stock .stock.in-stock {
	font-size: 0.9375rem;
	font-weight: 700;
}

body.altctrl-single-product-page .altctrl-pdp-controls__main .altctrl-pdp-cta__wishlist {
	display: inline-flex !important;
	align-items: center;
	justify-content: flex-start;
	flex: 0 0 auto;
	gap: 0.45rem;
	min-height: 2.85rem;
	margin: 0;
	padding: 0;
	border: 0 !important;
	border-radius: 0;
	background: transparent !important;
	color: var(--ac-ui-ink) !important;
	font-size: 0.8125rem;
	font-weight: 600;
	white-space: nowrap;
}

body.altctrl-single-product-page .altctrl-pdp-cta__wishlist .altctrl-icon-btn,
body.altctrl-single-product-page .altctrl-pdp-cta__wishlist .altctrl-wishlist-btn,
body.altctrl-single-product-page .altctrl-pdp-cta__wishlist .yith-wcwl-add-to-wishlist-button,
body.altctrl-single-product-page .altctrl-pdp-cta__wishlist .yith-add-to-wishlist-button-block a {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 2.65rem !important;
	height: 2.65rem !important;
	min-width: 2.65rem !important;
	min-height: 2.65rem !important;
	padding: 0 !important;
	border: 1px solid #d8dee8 !important;
	border-radius: 999px !important;
	background: #fff !important;
	color: #64748b !important;
	box-shadow: none !important;
}

body.altctrl-single-product-page .altctrl-pdp-cta__wishlist .yith-wcwl-add-to-wishlist-button__label,
body.altctrl-single-product-page .altctrl-pdp-cta__wishlist .feedback {
	display: none !important;
}

body.altctrl-single-product-page .altctrl-add-to-cart-btn,
body.altctrl-single-product-page .single_add_to_cart_button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	flex: 1 1 auto;
	width: auto !important;
	min-width: 0;
	min-height: 2.85rem !important;
	margin: 0 !important;
	padding: 0 0.85rem !important;
	border: 0 !important;
	border-radius: 0.65rem !important;
	background: var(--ac-ui-blue) !important;
	color: #fff !important;
	font-size: 0.875rem !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	text-transform: none !important;
	white-space: nowrap;
	box-shadow: none !important;
}

body.altctrl-single-product-page .altctrl-add-to-cart-btn:hover,
body.altctrl-single-product-page .single_add_to_cart_button:hover,
body.altctrl-single-product-page .altctrl-add-to-cart-btn:focus,
body.altctrl-single-product-page .single_add_to_cart_button:focus {
	background: #1e4fd4 !important;
	color: #fff !important;
}

body.altctrl-single-product-page .altctrl-add-to-cart-btn__icon {
	flex: 0 0 auto;
}

body.altctrl-single-product-page .altctrl-buy-now-form {
	margin: 0 0 0.85rem;
}

body.altctrl-single-product-page .altctrl-buy-now-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	width: 100%;
	min-height: 3rem !important;
	padding: 0 1rem !important;
	border: 0 !important;
	border-radius: 0.65rem !important;
	background: var(--ac-ui-blue) !important;
	color: #fff !important;
	font-size: 1rem !important;
	font-weight: 800 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	box-shadow: none !important;
}

body.altctrl-single-product-page .altctrl-buy-now-btn:hover,
body.altctrl-single-product-page .altctrl-buy-now-btn:focus {
	background: #1e4fd4 !important;
	color: #fff !important;
}

body.altctrl-single-product-page.single-product .altctrl-purchase-block .altctrl-single-product__price-current,
body.altctrl-single-product-page.single-product .altctrl-purchase-block .altctrl-single-product__price-current .amount,
body.altctrl-single-product-page.single-product .altctrl-purchase-block .altctrl-single-product__price-current bdi,
body.altctrl-single-product-page.single-product .altctrl-purchase-block .altctrl-single-product__price-discount,
body.altctrl-single-product-page.single-product .altctrl-purchase-block .altctrl-price-save,
body.altctrl-single-product-page.single-product .altctrl-purchase-block .altctrl-price-save .amount,
body.altctrl-single-product-page.single-product .altctrl-purchase-block .altctrl-add-to-cart-btn,
body.altctrl-single-product-page.single-product .altctrl-purchase-block .single_add_to_cart_button,
body.altctrl-single-product-page.single-product .altctrl-purchase-block .altctrl-buy-now-btn,
body.altctrl-single-product-page.single-product .altctrl-purchase-block .altctrl-service-bar__title,
body.altctrl-single-product-page.single-product .altctrl-purchase-block .altctrl-qty-stepper .qty {
	font-weight: 700 !important;
}

body.altctrl-single-product-page.single-product .altctrl-purchase-block .altctrl-buy-now-btn {
	font-weight: 800 !important;
}

body.altctrl-single-product-page .altctrl-service-bar {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
	margin: 0;
	padding: 0.75rem 0.35rem;
	border-radius: 0.75rem;
	background: #f5f7fb;
}

body.altctrl-single-product-page .altctrl-service-bar__item {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 0.35rem;
	padding: 0.15rem 0.45rem;
	text-align: center;
}

body.altctrl-single-product-page .altctrl-service-bar__item + .altctrl-service-bar__item::before {
	content: '';
	position: absolute;
	top: 12%;
	left: 0;
	width: 1px;
	height: 76%;
	background: #e2e8f0;
}

body.altctrl-single-product-page .altctrl-service-bar__icon {
	display: block;
	width: 1.35rem;
	height: 1.35rem;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
}

body.altctrl-single-product-page .altctrl-service-bar__item--secure .altctrl-service-bar__icon {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b67f6' stroke-width='1.7'%3E%3Cpath d='M12 3 5 6v6c0 5 3.2 7.8 7 9 3.8-1.2 7-4 7-9V6l-7-3z'/%3E%3Cpath d='m8.8 12 2.1 2.1 4.4-4.4'/%3E%3C/svg%3E");
}

body.altctrl-single-product-page .altctrl-service-bar__item--returns .altctrl-service-bar__icon {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b67f6' stroke-width='1.7'%3E%3Cpath d='M3.5 12a8.5 8.5 0 0 0 14.4 6.1'/%3E%3Cpath d='M20.5 12A8.5 8.5 0 0 0 6.1 5.9'/%3E%3Cpath d='M17.8 18.3 18 22l-3.5-1.3'/%3E%3Cpath d='M6.2 5.7 6 2l3.5 1.3'/%3E%3C/svg%3E");
}

body.altctrl-single-product-page .altctrl-service-bar__item--delivery .altctrl-service-bar__icon {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b67f6' stroke-width='1.7'%3E%3Cpath d='M3 7h11v8H3z'/%3E%3Cpath d='M14 10h4.2L21 13v2h-7'/%3E%3Ccircle cx='7' cy='17.5' r='1.7'/%3E%3Ccircle cx='17' cy='17.5' r='1.7'/%3E%3C/svg%3E");
}

body.altctrl-single-product-page .altctrl-service-bar__copy {
	display: flex;
	flex-direction: column;
	gap: 0.08rem;
}

body.altctrl-single-product-page .altctrl-service-bar__title {
	color: var(--ac-ui-ink);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.25;
}

body.altctrl-single-product-page .altctrl-service-bar__subtitle {
	color: #64748b;
	font-size: 0.6875rem;
	font-weight: 500;
	line-height: 1.25;
}

body.altctrl-single-product-page .product-images-wrapper {
	position: relative;
}

body.altctrl-single-product-page .product-images-wrapper > .onsale {
	display: none !important;
}

.altctrl-gallery-offers {
	position: absolute;
	top: 0.85rem;
	right: 0.85rem;
	z-index: 12;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.4rem;
	pointer-events: none;
}

.altctrl-gallery-offers__save {
	display: inline-flex;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	background: var(--ac-ui-red);
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 700;
	box-shadow: 0 0.35rem 0.85rem rgba(225, 29, 72, 0.28);
}

.altctrl-gallery-offers__off {
	display: inline-flex;
	align-items: center;
	padding: 0.28rem 0.7rem;
	border: 1px solid var(--ac-ui-red);
	border-radius: 999px;
	background: var(--ac-ui-red);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	box-shadow: 0 0.3rem 0.8rem rgba(225, 29, 72, 0.22);
}

body.altctrl-single-product-page .techmarket-single-product-gallery-thumbnails__wrapper .slick-slide.slick-current img,
body.altctrl-single-product-page .flex-control-thumbs li img.flex-active,
body.altctrl-single-product-page .flex-control-thumbs .flex-active {
	border: 2px solid var(--ac-ui-blue) !important;
}

body.altctrl-single-product-page .product-images-wrapper .onsale {
	top: 0.75rem !important;
	left: 0.75rem !important;
	z-index: 9 !important;
}

/* -------------------------------------------------------------------------- */
/* Related products                                                           */
/* -------------------------------------------------------------------------- */

body.altctrl-single-product-page .related.products > h2 {
	margin-bottom: 0.35rem !important;
	font-weight: 800 !important;
	color: var(--ac-ui-ink) !important;
}

body.altctrl-single-product-page .related.products > h2::after {
	display: block;
	width: 3.5rem;
	height: 0.22rem;
	margin-top: 0.4rem;
	background: var(--ac-ui-blue);
	content: '';
}

/* Related card pricing uses shared .altctrl-price-row rules above. */

/* -------------------------------------------------------------------------- */
/* Out-of-stock product card (reference layout)                               */
/* -------------------------------------------------------------------------- */

.altctrl-deal-card.is-out-of-stock .altctrl-deal-card__inner,
.altctrl-daily-deals__card.is-out-of-stock {
	border: 1px solid var(--ac-ui-line);
	background: #fff;
}

.altctrl-deal-card.is-out-of-stock .altctrl-deal-card__media-wrap {
	border-radius: 0.75rem 0.75rem 0 0;
}

.altctrl-deal-card.is-out-of-stock .altctrl-deal-card__media,
.altctrl-deal-card.is-out-of-stock .altctrl-deal-card__media img {
	border-radius: 0.65rem;
}

.altctrl-deal-card.is-out-of-stock .altctrl-deal-card__footer {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) !important;
	flex-direction: unset !important;
	width: 100%;
	margin-top: auto;
	padding: 0.75rem 0 0;
}

.altctrl-deal-card.is-out-of-stock .altctrl-deal-card__footer > .altctrl-stock-notify-actions--card {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	gap: var(--ac-card-btn-gap, 0.5rem);
	width: 100% !important;
}

/* Tablet: match in-stock footer — equal 2-col CTAs (Notify Me / Out of Stock) */
@media (min-width: 768px) and (max-width: 1024px) {
	.altctrl-deal-card.is-out-of-stock .altctrl-deal-card__footer,
	body.altctrl-deals-archive .altctrl-deal-card.is-out-of-stock .altctrl-deal-card__footer {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) !important;
		flex-direction: unset !important;
		gap: 0.35rem !important;
	}

	.altctrl-deal-card.is-out-of-stock .altctrl-deal-card__footer .altctrl-stock-notify-actions--card,
	.altctrl-daily-deals__card.is-out-of-stock .altctrl-stock-notify-actions--card {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 0.35rem !important;
		width: 100% !important;
	}

	.altctrl-deal-card.is-out-of-stock .altctrl-notify-me-btn--card svg,
	.altctrl-deal-card.is-out-of-stock .altctrl-oos-btn--card svg,
	.altctrl-daily-deals__card.is-out-of-stock .altctrl-notify-me-btn--card svg,
	.altctrl-daily-deals__card.is-out-of-stock .altctrl-oos-btn--card svg {
		display: none !important;
	}

	.altctrl-deal-card.is-out-of-stock .altctrl-notify-me-btn--card,
	.altctrl-daily-deals__card.is-out-of-stock .altctrl-notify-me-btn--card {
		border: 0.0625rem solid var(--ac-ui-blue, #2b67f6) !important;
		background: #fff !important;
		color: var(--ac-ui-blue, #2b67f6) !important;
		height: 2.125rem !important;
		min-height: 2.125rem !important;
		max-height: 2.125rem !important;
		padding: 0 0.35rem !important;
		font-size: 0.6875rem !important;
		font-weight: 400 !important;
		white-space: nowrap !important;
		word-break: normal !important;
	}

	.altctrl-deal-card.is-out-of-stock .altctrl-oos-btn--card,
	.altctrl-daily-deals__card.is-out-of-stock .altctrl-oos-btn--card {
		border: 0.0625rem solid var(--ac-deals-blue-hover, #1e4fd4) !important;
		background: var(--ac-ui-blue, #2b67f6) !important;
		color: #fff !important;
		opacity: 1 !important;
		height: 2.125rem !important;
		min-height: 2.125rem !important;
		max-height: 2.125rem !important;
		padding: 0 0.35rem !important;
		font-size: 0.6875rem !important;
		font-weight: 400 !important;
		white-space: nowrap !important;
		word-break: normal !important;
	}
}

.altctrl-deal-card.is-out-of-stock .altctrl-product-card__price,
.altctrl-daily-deals__card.is-out-of-stock .altctrl-daily-deals__price,
.altctrl-recently-viewed__card.is-out-of-stock .altctrl-recently-viewed__price {
	overflow: visible;
	max-width: 100%;
	padding-bottom: 0.15rem;
}

.altctrl-deal-card.is-out-of-stock .altctrl-price-save,
.altctrl-daily-deals__card.is-out-of-stock .altctrl-price-save,
.altctrl-recently-viewed__card.is-out-of-stock .altctrl-price-save {
	max-width: 100%;
	box-sizing: border-box;
	overflow: visible;
}

.altctrl-deal-card.is-out-of-stock .altctrl-deal-card__footer .altctrl-stock-notify-actions--card,
.altctrl-daily-deals__card.is-out-of-stock .altctrl-stock-notify-actions--card {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.5rem;
	width: 100%;
}

.altctrl-deal-card.is-out-of-stock .altctrl-stock-notify-actions--card:has(.altctrl-oos-btn--card:only-child),
.altctrl-daily-deals__card.is-out-of-stock .altctrl-stock-notify-actions--card:has(.altctrl-oos-btn--card:only-child) {
	grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 767px) {
	body.altctrl-deals-archive .altctrl-deal-card.is-out-of-stock .altctrl-stock-notify-actions--card:has(.altctrl-oos-btn--card:only-child),
	.altctrl-deal-card.is-out-of-stock .altctrl-stock-notify-actions--card:has(.altctrl-oos-btn--card:only-child) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.altctrl-deal-card.is-out-of-stock .altctrl-oos-overlay--card .altctrl-oos-overlay__message {
	display: block;
}

.altctrl-deal-card.is-out-of-stock .altctrl-deal-card__footer .altctrl-notify-me-btn--card,
.altctrl-deal-card.is-out-of-stock .altctrl-deal-card__footer .altctrl-oos-btn--card,
.altctrl-daily-deals__card.is-out-of-stock .altctrl-stock-notify-actions--card .altctrl-notify-me-btn--card,
.altctrl-daily-deals__card.is-out-of-stock .altctrl-stock-notify-actions--card .altctrl-oos-btn--card {
	min-height: var(--ac-card-btn-height, 2.5rem);
	font-weight: 400 !important;
}

/* Recently viewed: no OOS badge, overlay, or Notify/Out of Stock CTAs */
.altctrl-recently-viewed__card.is-out-of-stock .altctrl-recently-viewed__footer,
.altctrl-recently-viewed .altctrl-stock-notify-actions--card,
.altctrl-recently-viewed .altctrl-notify-me-btn--card,
.altctrl-recently-viewed .altctrl-oos-btn--card,
.altctrl-recently-viewed .altctrl-notify-me-btn--overlay,
.altctrl-recently-viewed .altctrl-oos-overlay,
.altctrl-recently-viewed .altctrl-oos-overlay--card,
.altctrl-recently-viewed .altctrl-oos-badge {
	display: none !important;
}

.altctrl-recently-viewed__stars,
.altctrl-recently-viewed__star,
.altctrl-recently-viewed__star.is-filled {
	color: var(--rv-primary, #1d63ed) !important;
	opacity: 1 !important;
}

/* -------------------------------------------------------------------------- */
/* Out-of-stock product card — badges                                         */
/* -------------------------------------------------------------------------- */

.altctrl-deal-card.is-out-of-stock .altctrl-oos-badge,
.altctrl-daily-deals__card.is-out-of-stock .altctrl-oos-badge {
	position: static !important;
	top: auto !important;
	left: auto !important;
	transform: none !important;
	writing-mode: horizontal-tb !important;
	white-space: nowrap !important;
	z-index: 9;
	padding: 0.22rem 0.65rem;
	border: 0;
	border-radius: 999px;
	background: #dc2626 !important;
	color: #fff !important;
	box-shadow: none;
}

body.altctrl-deals-archive .altctrl-deal-card__top .altctrl-deal-card__wishlist {
	position: static !important;
	top: auto !important;
	right: auto !important;
	width: 2rem;
	height: 2rem;
}

.altctrl-oos-notice__copy em {
	font-style: normal;
	font-weight: 800;
	color: var(--ac-ui-red);
}

.altctrl-deal-card.is-out-of-stock .altctrl-product-card__price-discount {
	display: inline-flex !important;
	padding: 0.12rem 0.4rem;
	border-radius: 999px;
	background: #ffe4e6;
	color: var(--ac-ui-red) !important;
	font-size: 0.6875rem;
	font-weight: 700 !important;
}

.altctrl-notify-me-btn,
.altctrl-oos-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
}

.altctrl-notify-me-btn svg,
.altctrl-oos-btn svg {
	flex: 0 0 auto;
}

.altctrl-oos-trust {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0.85rem calc(-1 * clamp(0.875rem, 1.4vw, 1.125rem)) 0;
	padding: 0.7rem 0.35rem 0.8rem;
	border-top: 1px solid #e8edf3;
	list-style: none;
	background: #f8fafc;
	border-radius: 0 0 0.75rem 0.75rem;
}

.altctrl-oos-trust li {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.28rem;
	padding: 0 0.45rem;
	color: var(--ac-ui-blue);
	font-size: 0.62rem;
	font-weight: 600 !important;
	line-height: 1.25;
	text-align: center;
}

.altctrl-oos-trust li::before {
	display: block;
	width: 1.05rem;
	height: 1.05rem;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	content: '';
}

.altctrl-oos-trust__item--secure::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b67f6' stroke-width='1.7'%3E%3Cpath d='M12 3 5 6v6c0 5 3.2 7.8 7 9 3.8-1.2 7-4 7-9V6l-7-3z'/%3E%3Cpath d='m8.8 12 2.1 2.1 4.4-4.4'/%3E%3C/svg%3E");
}

.altctrl-oos-trust__item--returns::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b67f6' stroke-width='1.7'%3E%3Cpath d='M4 7h13l-1 8H6L4 7z'/%3E%3Cpath d='M9 11v6'/%3E%3Cpath d='M15 11v6'/%3E%3Cpath d='M8 7 9 3h6l1 4'/%3E%3C/svg%3E");
}

.altctrl-oos-trust__item--warranty::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b67f6' stroke-width='1.7'%3E%3Ccircle cx='12' cy='9.5' r='5.2'/%3E%3Cpath d='M9.2 13.8 8 21l4-2.2L16 21l-1.2-7.2'/%3E%3C/svg%3E");
}

.altctrl-oos-trust li + li::after {
	content: '';
	position: absolute;
	top: 12%;
	left: 0;
	width: 1px;
	height: 76%;
	background: #e2e8f0;
}

@media (max-width: 767px) {
	.altctrl-price-row {
		flex-wrap: wrap;
	}

	.altctrl-product-card__price .altctrl-price-row,
	.altctrl-recently-viewed__price .altctrl-price-row,
	.altctrl-daily-deals__price .altctrl-price-row,
	.altctrl-related-card__price .altctrl-price-row,
	body.altctrl-deals-archive .altctrl-deal-card .altctrl-price-row {
		flex-direction: column;
		flex-wrap: nowrap;
	}

	.altctrl-price-save {
		align-self: flex-start;
		max-width: 100%;
		width: auto;
		box-sizing: border-box;
		padding: 0.3rem 0.45rem;
		font-size: 0.625rem;
		line-height: 1.2;
		white-space: normal;
		overflow-wrap: anywhere;
		word-break: break-word;
	}

	.altctrl-price-save::before {
		width: 0.75rem;
		height: 0.75rem;
	}

	/*
	 * Mobile OOS badge: keep fully inside the card/image bounds.
	 * Constrain the badge zone (clear of wishlist) and allow the label to wrap
	 * instead of overflowing or relying on overflow:hidden clipping.
	 */
	body.altctrl-deals-archive .altctrl-deal-card__media-wrap,
	.altctrl-deal-card__media-wrap {
		overflow: visible;
	}

	body.altctrl-deals-archive .altctrl-deal-card__media,
	.altctrl-deal-card__media {
		overflow: hidden;
	}

	body.altctrl-deals-archive .altctrl-deal-card__badges,
	.altctrl-deal-card__badges {
		top: 0.35rem;
		left: 0.35rem;
		right: 2.5rem;
		width: auto;
		max-width: none;
		box-sizing: border-box;
		display: flex;
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: flex-start;
		justify-content: flex-start;
		gap: 0.25rem;
		overflow: visible;
		pointer-events: none;
	}

	/* Discount stays a single compact pill */
	body.altctrl-deals-archive .altctrl-deal-card__badges .onsale,
	body.altctrl-deals-archive .altctrl-deal-card__badges .altctrl-deals-save-badge,
	.altctrl-deal-card__badges .onsale,
	.altctrl-deal-card__badges .altctrl-deals-save-badge {
		flex: 0 1 auto;
		max-width: 100%;
		box-sizing: border-box;
		padding: 0.18rem 0.4rem !important;
		font-size: 0.5625rem !important;
		white-space: nowrap !important;
	}

	/* Hide the red OUT OF STOCK pill on mobile — overlay already communicates status */
	body.altctrl-deals-archive .altctrl-deal-card__badges .altctrl-oos-badge,
	body.altctrl-deals-archive .altctrl-deal-card .altctrl-oos-badge,
	.altctrl-deal-card__badges .altctrl-oos-badge,
	.altctrl-deal-card .altctrl-oos-badge,
	.altctrl-deal-card.is-out-of-stock .altctrl-oos-badge,
	.altctrl-daily-deals__card.is-out-of-stock .altctrl-oos-badge,
	.altctrl-recently-viewed__card.is-out-of-stock .altctrl-oos-badge {
		display: none !important;
	}

	body.altctrl-deals-archive .altctrl-deal-card__media-wrap .altctrl-deal-card__wishlist,
	.altctrl-deal-card__media-wrap .altctrl-deal-card__wishlist {
		top: 0.35rem !important;
		right: 0.35rem !important;
	}

	.altctrl-deal-card.is-out-of-stock .altctrl-deal-card__inner,
	.altctrl-daily-deals__card.is-out-of-stock {
		overflow: visible;
	}

	.altctrl-deal-card.is-out-of-stock .altctrl-deal-card__body,
	.altctrl-daily-deals__card.is-out-of-stock .altctrl-daily-deals__body {
		overflow: visible;
		padding-bottom: 0.15rem;
	}

	.altctrl-deal-card.is-out-of-stock .altctrl-deal-card__footer {
		margin-top: 0.55rem;
		padding-top: 0.55rem;
	}

	.altctrl-oos-overlay--card {
		flex-wrap: wrap;
		gap: 0.4rem;
	}

	.altctrl-notify-me-btn--overlay {
		width: 100%;
	}

	body.altctrl-single-product-page .altctrl-price-card .altctrl-single-product__price-current {
		font-size: 1.5rem !important;
	}

	body.altctrl-single-product-page .altctrl-gallery-offers {
		top: 0.65rem;
		right: 0.65rem;
		left: auto;
		align-items: flex-end;
	}

	body.altctrl-single-product-page .altctrl-pdp-controls__main {
		display: flex !important;
		flex-wrap: wrap !important;
		align-items: center;
		gap: 0.5rem;
		width: 100%;
	}

	body.altctrl-single-product-page .altctrl-purchase-block .altctrl-qty-stepper {
		display: inline-flex !important;
		flex: 0 0 auto !important;
		width: 6.25rem !important;
		min-width: 6.25rem !important;
		max-width: 6.25rem !important;
	}

	body.altctrl-single-product-page .altctrl-add-to-cart-btn,
	body.altctrl-single-product-page .single_add_to_cart_button {
		display: inline-flex !important;
		flex: 1 1 0 !important;
		width: auto !important;
		min-width: 0 !important;
		max-width: none !important;
	}

	body.altctrl-single-product-page .altctrl-pdp-controls__main .altctrl-pdp-cta__wishlist {
		display: inline-flex !important;
		justify-content: flex-start;
		flex: 1 1 100% !important;
		width: 100% !important;
		max-width: 100% !important;
	}

	body.altctrl-single-product-page .altctrl-buy-now-btn {
		display: inline-flex !important;
		width: 100%;
	}

	body.altctrl-single-product-page .altctrl-service-bar {
		display: grid !important;
		grid-template-columns: 1fr;
		gap: 0.65rem;
		padding: 0.75rem 0.65rem;
	}

	body.altctrl-single-product-page .altctrl-service-bar__item + .altctrl-service-bar__item::before {
		display: none;
	}

	body.altctrl-single-product-page .altctrl-service-bar__item {
		flex-direction: row;
		justify-content: flex-start;
		text-align: left;
		gap: 0.55rem;
	}
}

/* Out of Stock + Notify Me never clickable */
.altctrl-oos-btn,
.altctrl-oos-btn--card,
.altctrl-oos-btn--single,
.altctrl-notify-me-btn,
.altctrl-notify-me-btn--card,
.altctrl-notify-me-btn--single,
.altctrl-notify-me-btn--overlay {
	pointer-events: none !important;
	cursor: not-allowed !important;
}

.altctrl-oos-badge {
	pointer-events: none !important;
}

/* Tablet: hide red OUT OF STOCK ticket */
@media (min-width: 768px) and (max-width: 1024px) {
	.altctrl-oos-badge,
	.altctrl-deal-card .altctrl-oos-badge,
	.altctrl-deal-card__badges .altctrl-oos-badge,
	.altctrl-daily-deals__media .altctrl-oos-badge,
	.altctrl-daily-deals__badges .altctrl-oos-badge,
	.altctrl-recently-viewed__media .altctrl-oos-badge,
	.altctrl-recently-viewed__badges .altctrl-oos-badge,
	body.altctrl-deals-archive .altctrl-deal-card .altctrl-oos-badge,
	body.altctrl-deals-archive .altctrl-deal-card__badges .altctrl-oos-badge {
		display: none !important;
	}
}
