/* Monteli shop UI – product card, product page, variation buttons, quantity box
   (inc/features/shop-card.php, shop-product.php, shop-ui.php). Design = the approved mock
   _dev/designs/avand-store/product-ui.html. */

.woocommerce ul.products li.product.m-card,
.woocommerce .m-pd {
	--m-card-ink: var(--m-heading, #16161a); --m-card-muted: #8a8890; --m-card-tile: #f4f2ee; --m-card-line: #e3e0da;
	--m-card-sale: #e5533d; --m-card-sale-soft: #fdeee9; --m-card-star: #f2a93b; --m-card-ok: #2f8f5b; --m-card-ok-soft: #e7f4ec;
}
html[data-theme="dark"] .woocommerce ul.products li.product.m-card,
html[data-theme="dark"] .woocommerce .m-pd { --m-card-tile: rgba(255, 255, 255, .06); --m-card-line: rgba(255, 255, 255, .14); --m-card-muted: #a3a1a8; --m-card-sale-soft: rgba(229, 83, 61, .15); --m-card-ok-soft: rgba(47, 143, 91, .18); }

/* ==========================================================================
   Product card (li.product.m-card)
   ========================================================================== */
.woocommerce ul.products li.product.m-card {
	position: relative; display: flex; flex-direction: column; margin-block-end: 0; padding: 10px 10px 14px; text-align: start;
	background: var(--m-bg, #fff); border: 0; border-radius: 22px; box-shadow: 0 0 0 1px rgba(22, 22, 26, .06);
	transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s cubic-bezier(.2, .8, .2, 1);
}
.woocommerce ul.products li.product.m-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 26px 48px -26px rgba(22, 22, 26, .3), 0 0 0 1px rgba(22, 22, 26, .06);
}
html[data-theme="dark"] .woocommerce ul.products li.product.m-card { box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }

/* Image box – never zooms (user). */
.m-card .m-card__media { position: relative; overflow: hidden; aspect-ratio: 1 / 1; background: var(--m-card-tile); border-radius: 16px; }
.m-card .m-card__img { display: block; width: 100%; height: 100%; }
.woocommerce ul.products li.product.m-card .m-card__img img {
	display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; border-radius: 0; box-shadow: none; transform: none !important;
}
.m-card .m-card__tags { position: absolute; inset-block-start: 10px; inset-inline-start: 10px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; pointer-events: none; }
.m-card .m-card__tag { padding: 3px 10px; font-size: 11.5px; font-weight: 700; line-height: 1.7; border-radius: 999px; }
.m-card .m-card__tag.is-best { color: #fff; background: #16161a; }
.m-card .m-card__tag.is-new { color: #16161a; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.m-card .m-card__tag.is-sale { color: #fff; background: var(--m-card-sale); }
.m-card .m-card__out { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; pointer-events: none; }
.m-card .m-card__out span { padding: 6px 14px; color: #fff; font-size: 13px; font-weight: 700; background: rgba(22, 22, 26, .82); border-radius: 999px; }
.m-card.is-out .m-card__img img { opacity: .6; filter: grayscale(.8); }

/* Glass "add to cart" that slides up from the bottom of the image. */
.woocommerce ul.products li.product.m-card .m-card__add {
	position: absolute; inset-inline: 10px; inset-block-end: 10px; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 8px;
	height: 44px; margin: 0; padding: 0 12px; color: #16161a; font-size: 13.5px; font-weight: 700; line-height: 1;
	background: rgba(255, 255, 255, .88); border: 0; border-radius: 13px; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .35);
	-webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4);
	opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .4s cubic-bezier(.2, .8, .2, 1), background-color .25s, color .25s;
}
.woocommerce ul.products li.product.m-card:hover .m-card__add,
.woocommerce ul.products li.product.m-card .m-card__add:focus-visible { opacity: 1; transform: none; }
.woocommerce ul.products li.product.m-card .m-card__add:hover { color: #fff; background: #16161a; }
.woocommerce ul.products li.product.m-card .m-card__add svg { width: 18px; height: 18px; }
.woocommerce ul.products li.product.m-card .m-card__add.loading { opacity: .7; }
.woocommerce ul.products li.product.m-card .m-card__add.loading::after { display: none; }
.woocommerce ul.products li.product.m-card .m-card__add.added { color: #fff; background: var(--m-card-ok); }
.woocommerce ul.products li.product.m-card .added_to_cart { display: none; }

/* Heart + quick view (top, the other corner). */
.m-card .m-card__acts { position: absolute; inset-block-start: 20px; inset-inline-end: 20px; z-index: 3; display: flex; flex-direction: column; gap: 6px; }
.m-card .m-wish--card, .m-card .m-card__act, .m-pd .m-wish--card, .m-pd .m-card__act {
	position: static; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; color: #16161a;
	background: rgba(255, 255, 255, .92); border: 0; border-radius: 12px; box-shadow: 0 2px 10px rgba(0, 0, 0, .08); cursor: pointer;
	opacity: 1; transform: none; transition: transform .25s, opacity .3s, color .2s;
}
.m-card .m-wish--card:hover, .m-card .m-card__act:hover, .m-pd .m-card__act:hover, .m-pd .m-wish--card:hover { transform: scale(1.08); }
.m-card .m-wish--card.is-on, .m-pd .m-wish--card.is-on { color: #e8364f; }
.m-card .m-wish--card svg, .m-card .m-card__act svg { width: 18px; height: 18px; }
.m-card .m-card__peek { opacity: 0; transform: translateX(-6px); }
.m-card:hover .m-card__peek, .m-card .m-card__peek:focus-visible { opacity: 1; transform: none; }
html:not([dir="rtl"]) .m-card .m-card__peek { transform: translateX(6px); }
.m-card .m-card__peek span { display: none; }

/* Text */
.m-card .m-card__body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 12px 6px 0; }
.m-card .m-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--m-card-muted); font-size: 12px; line-height: 1.6; }
.m-card .m-card__dots { display: flex; align-items: center; gap: 4px; }
.m-card .m-card__dots i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); }
.m-card .m-card__dots small { margin-inline-start: 2px; font-size: 11px; }
.woocommerce ul.products li.product.m-card .m-card__title {
	display: -webkit-box; overflow: hidden; min-height: calc(1.9em * 2); margin: 0; padding: 0;
	color: var(--m-card-ink); font-size: 13.5px; font-weight: 600; line-height: 1.9; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.m-card .m-card__title a { color: inherit; text-decoration: none; }
.m-card .m-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 0; } /* Whole card is clickable. */
.m-card .m-card__rating { display: flex; align-items: center; gap: 4px; color: var(--m-card-ink); font-size: 12px; }
.m-card .m-card__rating svg { width: 14px; height: 14px; color: var(--m-card-star); }
.m-card .m-card__rating small { color: var(--m-card-muted); font-size: 12px; }
.m-card .m-card__low { color: #c2620c; font-size: 12px; font-weight: 600; }
.woocommerce ul.products li.product.m-card .m-card__price {
	display: flex; flex-direction: column; align-items: flex-end; gap: 2px; margin: auto 0 0; padding-block-start: 8px;
	color: var(--m-card-ink) !important; font-size: inherit; font-weight: inherit;
}
.m-card .m-card__was { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }
.m-card .m-card__was del { color: #a3a1a8; font-weight: 400; opacity: 1; }
.m-card .m-card__was .woocommerce-Price-currencySymbol { display: none; }
.m-card .m-card__off { padding: 1px 8px; color: #fff; font-size: 11.5px; font-weight: 800; background: var(--m-card-sale); border-radius: 999px; }
.m-card .m-card__now { display: flex; align-items: baseline; gap: 4px; font-size: 17px; font-weight: 900; letter-spacing: -.01em; }
.m-card .m-card__now .woocommerce-Price-currencySymbol { margin-inline-start: 3px; color: var(--m-card-muted); font-size: 11px; font-weight: 500; }
.m-card .m-card__now.is-out { color: #a3a1a8; font-size: 14px; font-weight: 700; }
.m-card .m-card__from { color: var(--m-card-muted); font-size: 11px; font-weight: 500; }
.m-card .m-card__sold { display: flex; flex-direction: column; gap: 6px; margin-block-start: 8px; color: #6b6a70; font-size: 11.5px; }
.m-card .m-card__bar { height: 5px; overflow: hidden; background: #efede8; border-radius: 5px; }
.m-card .m-card__bar i { display: block; height: 100%; background: linear-gradient(90deg, #f2a93b, #e5533d); border-radius: 5px; }
.m-card .m-card__media, .m-card .m-card__acts, .m-card .m-card__add { z-index: 2; }
.m-card .m-card__acts { z-index: 3; }

/* Touch screens: no hover → a small round cart button stays on the image. */
@media (hover: none) {
	.woocommerce ul.products li.product.m-card .m-card__add {
		inset-inline: auto 8px; inset-block-end: 8px; width: 38px; height: 38px; padding: 0; color: #fff; background: #16161a;
		border-radius: 12px; opacity: 1; transform: none; -webkit-backdrop-filter: none; backdrop-filter: none;
	}
	html:not([dir="rtl"]) .woocommerce ul.products li.product.m-card .m-card__add { inset-inline: auto 8px; }
	.woocommerce ul.products li.product.m-card .m-card__add-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.m-card .m-card__peek { display: none; }
}
@media (max-width: 600px) {
	.woocommerce ul.products li.product.m-card { padding: 8px 8px 12px; border-radius: 18px; }
	.m-card .m-card__acts { inset-block-start: 16px; inset-inline-end: 16px; }
	.woocommerce ul.products li.product.m-card .m-card__title { font-size: 12.5px; }
	.m-card .m-card__now { font-size: 15px; }
	.m-card .m-card__meta .m-card__brand { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
}
@media (prefers-reduced-motion: reduce) {
	.woocommerce ul.products li.product.m-card, .woocommerce ul.products li.product.m-card .m-card__add, .m-card .m-card__peek { transition: none; }
}

/* ==========================================================================
   Quantity box (.quantity.m-qty)
   ========================================================================== */
.woocommerce .quantity.m-qty, .quantity.m-qty {
	display: inline-flex; align-items: center; height: 54px; margin: 0; padding: 0;
	background: var(--m-bg); border: 1px solid var(--m-border, #e3e0da); border-radius: 14px;
}
.quantity.m-qty .qty, .woocommerce .quantity.m-qty .qty {
	width: 40px; height: 100%; margin: 0; padding: 0; color: var(--m-heading); font-size: 16px; font-weight: 800; text-align: center;
	background: transparent; border: 0; box-shadow: none; -moz-appearance: textfield; appearance: textfield;
}
.quantity.m-qty .qty::-webkit-outer-spin-button, .quantity.m-qty .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quantity.m-qty .qty:focus { outline: 0; }
.quantity.m-qty:focus-within { border-color: var(--m-heading); }
.quantity.m-qty .m-qty__btn {
	display: grid; place-items: center; width: 42px; height: 100%; padding: 0; color: var(--m-heading);
	background: none; border: 0; border-radius: 12px; cursor: pointer; transition: opacity .2s, background-color .2s;
}
.quantity.m-qty .m-qty__btn:hover { background: rgba(22, 22, 26, .06); }
.quantity.m-qty .m-qty__btn:disabled { opacity: .3; cursor: default; background: none; }
.woocommerce-cart-form .quantity.m-qty { height: 44px; border-radius: 12px; }
.woocommerce-cart-form .quantity.m-qty .m-qty__btn { width: 36px; }

/* Single product: quantity + add-to-cart on one row (like the design). */
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.woocommerce div.product form.cart .quantity { float: none; margin: 0; }
.woocommerce div.product form.cart .single_add_to_cart_button {
	flex: 1; min-width: 180px; height: 54px; float: none; margin: 0; padding: 0 24px; color: #fff; font-size: 15px; font-weight: 700;
	background: var(--m-heading, #16161a); border-radius: 14px; transition: box-shadow .25s, transform .25s, opacity .25s;
}
.woocommerce div.product form.cart .single_add_to_cart_button:hover { background: #000; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .6); }
.woocommerce div.product form.cart .single_add_to_cart_button:active { transform: scale(.97); }
/* Disabled = its own state (soft fill + hint text from shop-ui.js), never faded (user). */
.woocommerce div.product form.variations_form { display: block; }
.woocommerce div.product form.variations_form .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
html[data-theme="dark"] .woocommerce div.product form.cart .single_add_to_cart_button { color: var(--m-bg); background: var(--m-heading); }

/* ==========================================================================
   Variation buttons (.m-sw) – the <select> stays for WooCommerce, hidden.
   ========================================================================== */
.woocommerce div.product form.cart .variations { margin-block-end: 18px; border: 0; }
.woocommerce div.product form.cart .variations tr { display: flex; flex-direction: column; gap: 10px; margin-block-end: 18px; }
.woocommerce div.product form.cart .variations th, .woocommerce div.product form.cart .variations td { display: block; padding: 0; text-align: start; line-height: 1.6; }
.woocommerce div.product form.cart .variations th label { font-size: 14px; font-weight: 700; }
.m-sw__chosen { margin-inline-start: 6px; color: var(--m-text, #6b6a70); font-weight: 500; }
.m-sw__chosen:not(:empty)::before { content: ": "; margin-inline-start: -6px; }
select.m-sw-select { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; pointer-events: none; }
.m-sw { display: flex; flex-wrap: wrap; gap: 8px; }
.m-sw .m-sw__opt {
	min-width: 48px; height: 42px; margin: 0; padding: 0 14px; color: var(--m-heading); font: inherit; font-size: 13px; font-weight: 500;
	background: var(--m-bg); border: 1.5px solid var(--m-border, #e3e0da); border-radius: 12px; cursor: pointer;
	transition: border-color .2s, background-color .2s, color .2s, transform .2s;
}
.m-sw .m-sw__opt:hover { border-color: var(--m-heading); }
.m-sw .m-sw__opt.is-on { color: var(--m-heading); font-weight: 700; background: rgba(22, 22, 26, .04); border-color: var(--m-heading); box-shadow: inset 0 0 0 1px var(--m-heading); }
.m-sw .m-sw__opt.is-off { color: var(--m-text, #a3a1a8); text-decoration: line-through; opacity: .55; }
.m-sw .m-sw__opt:focus-visible { outline: 2px solid var(--m-primary); outline-offset: 2px; }
/* Colour circles */
.m-sw--color { gap: 12px; }
.m-sw .m-sw__opt--color {
	width: 34px; min-width: 0; height: 34px; padding: 0; background: var(--m-sw); border: 0; border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
}
.m-sw .m-sw__opt--color:hover { transform: scale(1.1); }
.m-sw .m-sw__opt--color.is-on { background: var(--m-sw); box-shadow: 0 0 0 2px var(--m-bg), 0 0 0 4px var(--m-heading); }
.m-sw .m-sw__opt--color.is-off { position: relative; opacity: .35; }
.m-sw .m-sw__opt--color.is-off::after { content: ""; position: absolute; inset: 50% -3px auto; height: 2px; background: var(--m-heading); transform: rotate(-45deg); }
.woocommerce div.product form.cart .reset_variations { display: inline-block; margin-block-start: 8px; color: var(--m-text, #6b6a70); font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.woocommerce div.product .woocommerce-variation-price .price { font-size: 1.4em; font-weight: 900; }

/* ==========================================================================
   Product page «modern» (div.product.m-pd, inc/features/shop-product.php)
   ========================================================================== */
.m-pd-page .content-area.container { max-width: calc(var(--m-el-max, 1420px) + var(--m-el-gap, 15px) * 2); padding-inline: var(--m-el-gap, 15px); }
.m-pd-page .site-main { padding-block: 8px 64px; }
.m-pd__crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 24px 0 20px; color: var(--m-card-muted, #8a8890); font-size: 13px; }
.m-pd__crumbs a { color: inherit; text-decoration: none; }
.m-pd__crumbs a:hover { color: var(--m-heading); }
.m-pd__sep { display: inline-flex; color: #b5b2ab; }
.m-pd__sep svg { width: 14px; height: 14px; }
html:not([dir="rtl"]) .m-pd__sep svg { transform: scaleX(-1); }

.woocommerce div.product.m-pd {
	display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 2fr); gap: 28px; align-items: start;
}
.woocommerce div.product.m-pd > .m-pd__gal { grid-column: 1; grid-row: 1; }
.woocommerce div.product.m-pd > .summary { grid-column: 2; grid-row: 1; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; width: auto !important; float: none !important; margin: 0; padding: 0; }
.woocommerce div.product.m-pd > .woocommerce-tabs, .woocommerce div.product.m-pd > .up-sells, .woocommerce div.product.m-pd > .related,
.woocommerce div.product.m-pd > :not(.m-pd__gal):not(.summary) { grid-column: 1 / -1; }

/* Gallery */
.m-pd__gal { position: relative; }
.woocommerce div.product.m-pd .m-pd__gal div.images { width: 100% !important; float: none !important; margin: 0; }
.woocommerce div.product.m-pd .woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce div.product.m-pd .woocommerce-product-gallery .flex-viewport,
.woocommerce div.product.m-pd .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:only-child,
.woocommerce div.product.m-pd .woocommerce-product-gallery:not(:has(.flex-viewport)) .woocommerce-product-gallery__image:first-child {
	overflow: hidden; background: var(--m-bg, #fff); border-radius: 24px; box-shadow: 0 0 0 1px rgba(22, 22, 26, .05);
}
.woocommerce div.product.m-pd div.images img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 0; }
.woocommerce div.product.m-pd div.images .flex-control-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 12px 0 0; padding: 0; }
.woocommerce div.product.m-pd div.images .flex-control-thumbs li { width: auto; float: none; margin: 0; }
.woocommerce div.product.m-pd div.images .flex-control-thumbs li img {
	aspect-ratio: 1 / 1; object-fit: cover; border: 2px solid transparent; border-radius: 14px; opacity: .6; transition: opacity .25s, border-color .25s; cursor: pointer;
}
.woocommerce div.product.m-pd div.images .flex-control-thumbs li img.flex-active,
.woocommerce div.product.m-pd div.images .flex-control-thumbs li img:hover { border-color: var(--m-heading); opacity: 1; }
.woocommerce div.product.m-pd .woocommerce-product-gallery__trigger { inset-block-end: 14px; inset-block-start: auto; inset-inline-start: 14px; inset-inline-end: auto; }
.m-pd__off { position: absolute; inset-block-start: 14px; inset-inline-start: 14px; z-index: 5; padding: 5px 12px; color: #fff; font-size: 13px; font-weight: 700; background: #e5533d; border-radius: 999px; pointer-events: none; }
.m-pd__acts { position: absolute; inset-block-start: 14px; inset-inline-end: 14px; z-index: 5; display: flex; flex-direction: column; gap: 8px; }
.m-pd .m-pd__acts .m-wish--card, .m-pd .m-pd__acts .m-card__act { width: 42px; height: 42px; }
.m-pd .m-pd__share:hover { color: #fff; background: #16161a; transform: none; }

/* Info column */
.m-pd__info { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.m-pd__brand { align-self: flex-start; color: var(--m-card-sale, #e5533d); font-size: 13px; font-weight: 700; text-decoration: none; }
.woocommerce div.product.m-pd .product_title { margin: 0; color: var(--m-heading); font-size: clamp(20px, 2vw, 24px); font-weight: 800; line-height: 1.75; }
.m-pd__facts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-block-end: 16px; color: #6b6a70; font-size: 13px; border-block-end: 1px solid #ebe8e2; }
.m-pd__stars { display: inline-flex; align-items: center; gap: 4px; color: var(--m-heading); }
.m-pd__stars svg { width: 16px; height: 16px; color: var(--m-card-star, #f2a93b); }
.m-pd__reviews { color: inherit; text-decoration: none; }
.m-pd__reviews:hover { color: var(--m-heading); }
.m-pd__label { display: block; margin-block-end: 8px; color: var(--m-heading); font-size: 14px; font-weight: 700; }
.m-pd__feats-body { color: #3a3a40; font-size: 13.5px; line-height: 2; }
.m-pd__feats-body p { margin: 0 0 6px; }
.m-pd__feats-body ul { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.m-pd__feats-body li { display: flex; align-items: center; gap: 10px; }
.m-pd__feats-body li::before { content: ""; flex: none; width: 6px; height: 6px; background: var(--m-heading); border-radius: 50%; }
.woocommerce div.product.m-pd .product_meta { display: flex; flex-direction: column; gap: 4px; color: #6b6a70; font-size: 12.5px; }
.woocommerce div.product.m-pd .product_meta a { color: inherit; }
.m-pd__notice { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: #3a3a40; font-size: 13px; background: var(--m-bg, #fff); border-radius: 16px; box-shadow: 0 0 0 1px rgba(22, 22, 26, .05); }
.m-pd__notice svg { flex: none; width: 18px; height: 18px; color: #6b6a70; }

/* Buy box */
.m-pd__buy {
	position: sticky; inset-block-start: calc(var(--wp-admin--admin-bar--height, 0px) + 100px); display: flex; flex-direction: column; gap: 16px;
	padding: 22px; background: var(--m-bg, #fff); border-radius: 24px; box-shadow: 0 0 0 1px rgba(22, 22, 26, .05);
}
.m-pd__lines { display: flex; flex-direction: column; gap: 12px; padding-block-end: 16px; font-size: 13px; border-block-end: 1px solid #f0eee9; }
.m-pd__line { display: flex; align-items: center; gap: 10px; color: var(--m-heading); }
.m-pd__line svg { flex: none; width: 18px; height: 18px; }
.m-pd__line.is-ok { color: var(--m-card-ok, #2f8f5b); }
.m-pd__line.is-low { color: #c2620c; }
.m-pd__line.is-out { color: #a3a1a8; }
.m-pd__timer { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; color: #c2410c; font-size: 13px; font-weight: 700; background: var(--m-card-sale-soft, #fdeee9); border-radius: 14px; }
.m-pd__timer > span { display: flex; align-items: center; gap: 6px; }
.m-pd__timer svg { width: 16px; height: 16px; }
.m-pd__clock { font-variant-numeric: tabular-nums; }
.m-pd__price { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.m-pd__was { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.m-pd__was del { color: #a3a1a8; }
.m-pd__was .woocommerce-Price-currencySymbol { display: none; }
.m-pd__pill { padding: 2px 8px; color: #fff; font-size: 12px; font-weight: 700; background: #e5533d; border-radius: 999px; }
.m-pd__big { display: flex; align-items: baseline; gap: 6px; color: var(--m-heading); font-size: 28px; font-weight: 900; line-height: 1.4; }
.m-pd__big .woocommerce-Price-currencySymbol { margin-inline-start: 4px; color: #8a8890; font-size: 13px; font-weight: 500; }
.m-pd__from { color: #8a8890; font-size: 13px; font-weight: 500; }
.m-pd__save { color: #c2410c; font-size: 12px; }
.m-pd__save .woocommerce-Price-amount { font-weight: 700; }
.m-pd__note { display: flex; align-items: center; gap: 8px; color: #6b6a70; font-size: 12px; }
.m-pd__note svg { flex: none; width: 16px; height: 16px; }
.woocommerce div.product.m-pd .m-pd__buy form.cart { margin: 0; }
.woocommerce div.product.m-pd .m-pd__buy form.cart .variations { margin-block-end: 6px; }
.woocommerce div.product.m-pd .m-pd__buy .single_variation_wrap .woocommerce-variation-price { display: none; } /* Shown in the price block (JS). */
.woocommerce div.product.m-pd .m-pd__buy .woocommerce-variation-availability { font-size: 12.5px; }
.woocommerce div.product.m-pd .m-pd__buy .stock { margin: 0 0 8px; font-size: 13px; }
.woocommerce div.product.m-pd .m-pd__buy .stock.in-stock { display: none; } /* The stock line above says it already. */
.woocommerce div.product.m-pd .m-pd__buy form.cart .single_add_to_cart_button { min-width: 0; }

/* Tabs card */
.woocommerce div.product.m-pd .woocommerce-tabs { margin-block-start: 16px; padding: 0; background: var(--m-bg, #fff); border-radius: 24px; box-shadow: 0 0 0 1px rgba(22, 22, 26, .05); }
.woocommerce div.product.m-pd .woocommerce-tabs ul.tabs {
	display: flex; gap: 4px; margin: 0; padding: 0 20px; overflow-x: auto; border-block-end: 1px solid #f0eee9; scrollbar-width: none;
}
.woocommerce div.product.m-pd .woocommerce-tabs ul.tabs::before, .woocommerce div.product.m-pd .woocommerce-tabs ul.tabs::after { display: none; }
.woocommerce div.product.m-pd .woocommerce-tabs ul.tabs li { flex: none; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; }
.woocommerce div.product.m-pd .woocommerce-tabs ul.tabs li::before, .woocommerce div.product.m-pd .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product.m-pd .woocommerce-tabs ul.tabs li a { display: block; height: 58px; padding: 0 14px; color: #8a8890; font-size: 14px; font-weight: 700; line-height: 58px; }
.woocommerce div.product.m-pd .woocommerce-tabs ul.tabs li.active a { color: var(--m-heading); box-shadow: inset 0 -2px 0 var(--m-heading); }
.woocommerce div.product.m-pd .woocommerce-tabs .panel { margin: 0; padding: clamp(20px, 3vw, 32px); color: #3a3a40; font-size: 14px; line-height: 2.1; }
.woocommerce div.product.m-pd .woocommerce-tabs .panel > h2:first-child { margin-block: 0 12px; color: var(--m-heading); font-size: 17px; }
.woocommerce div.product.m-pd table.shop_attributes { max-width: 820px; border: 0; }
.woocommerce div.product.m-pd table.shop_attributes th, .woocommerce div.product.m-pd table.shop_attributes td { padding: 12px 0; font-style: normal; background: none; border: 0; border-block-end: 1px solid #f0eee9; }
.woocommerce div.product.m-pd table.shop_attributes th { width: 180px; color: #8a8890; font-weight: 400; text-align: start; }
.woocommerce div.product.m-pd table.shop_attributes td { font-weight: 600; }
.woocommerce div.product.m-pd table.shop_attributes td p { margin: 0; }
.woocommerce div.product.m-pd .related > h2, .woocommerce div.product.m-pd .up-sells > h2 { margin: 32px 0 18px; font-size: 22px; font-weight: 800; }

/* Dark mode */
html[data-theme="dark"] .m-pd__facts, html[data-theme="dark"] .m-pd__lines, html[data-theme="dark"] .woocommerce div.product.m-pd .woocommerce-tabs ul.tabs { border-color: rgba(255, 255, 255, .1); }
html[data-theme="dark"] .m-pd__feats-body, html[data-theme="dark"] .m-pd__notice, html[data-theme="dark"] .woocommerce div.product.m-pd .woocommerce-tabs .panel { color: var(--m-text); }

@media (max-width: 1200px) {
	.woocommerce div.product.m-pd { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.woocommerce div.product.m-pd > .summary { grid-template-columns: minmax(0, 1fr); }
	.m-pd__buy { position: static; }
}
@media (max-width: 820px) {
	.woocommerce div.product.m-pd { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.woocommerce div.product.m-pd > .summary { grid-column: 1; grid-row: auto; }
	.m-pd__buy { padding: 18px; border-radius: 20px; }
	.m-pd__big { font-size: 24px; }
}
/* Buy box is narrow (340px): compact quantity, one-line button. */
.woocommerce div.product.m-pd .m-pd__buy form.cart { flex-wrap: nowrap; }
.woocommerce div.product.m-pd .m-pd__buy .quantity.m-qty { flex: none; }
.woocommerce div.product.m-pd .m-pd__buy .quantity.m-qty .m-qty__btn { width: 36px; }
.woocommerce div.product.m-pd .m-pd__buy .quantity.m-qty .qty { width: 30px; }
.woocommerce div.product.m-pd .m-pd__buy form.cart .single_add_to_cart_button { padding-inline: 12px; font-size: 14px; white-space: nowrap; }
.woocommerce div.product.m-pd .m-pd__buy .woocommerce-variation-add-to-cart { flex-wrap: nowrap; }

/* v2.0.14 (user): no red border on the buy button (theme .button border = primary colour),
   a clear "can't add yet" state instead of fading, and the − / + hover stays inside the box. */
.woocommerce div.product form.cart .single_add_to_cart_button,
.woocommerce div.product form.cart .single_add_to_cart_button:hover,
.woocommerce div.product form.cart .single_add_to_cart_button:focus { border: 0; outline: 0; }
.woocommerce div.product form.cart .single_add_to_cart_button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.woocommerce div.product form.cart .single_add_to_cart_button:hover { color: #fff; transform: none; }
.woocommerce div.product form.cart .single_add_to_cart_button:focus-visible { box-shadow: 0 0 0 3px var(--m-bg, #fff), 0 0 0 5px var(--m-heading, #16161a); }
.woocommerce div.product form.cart .single_add_to_cart_button.disabled,
.woocommerce div.product form.cart .single_add_to_cart_button.disabled:hover,
.woocommerce div.product form.cart .single_add_to_cart_button:disabled {
	color: #6b6a70; font-size: 13px; font-weight: 600; background: #efede8; box-shadow: none; transform: none; opacity: 1; cursor: not-allowed;
}
.woocommerce div.product form.cart .single_add_to_cart_button.wc-variation-is-unavailable { color: #b4472f; background: #fdeee9; }
html[data-theme="dark"] .woocommerce div.product form.cart .single_add_to_cart_button.disabled { color: var(--m-text); background: rgba(255, 255, 255, .08); }
.quantity.m-qty, .woocommerce .quantity.m-qty { box-sizing: border-box; gap: 0; padding: 4px; }
.quantity.m-qty .m-qty__btn { height: 100%; border-radius: 10px; }
.woocommerce-cart-form .quantity.m-qty { padding: 3px; }
.woocommerce-cart-form .quantity.m-qty .m-qty__btn { border-radius: 9px; }

/* ==========================================================================
   Cart drawer (#monteli-cart-drawer, inc/features/cart-drawer.php)
   ========================================================================== */
.m-cd { position: fixed; inset: 0; z-index: 100001; }
.m-cd[hidden] { display: none; }
.m-cd__overlay { position: absolute; inset: 0; background: rgba(18, 18, 22, .45); opacity: 0; transition: opacity .35s; }
.m-cd.is-open .m-cd__overlay { opacity: 1; }
.m-cd__panel {
	position: absolute; inset-block: 0; inset-inline-end: 0; display: flex; flex-direction: column; width: min(440px, 100%);
	color: var(--m-heading, #16161a); background: var(--m-bg, #fff); box-shadow: -20px 0 60px -20px rgba(0, 0, 0, .25); outline: 0;
	transform: translateX(-105%); transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
html:not([dir="rtl"]) .m-cd__panel { transform: translateX(105%); }
.m-cd[data-side="start"] .m-cd__panel { inset-inline-end: auto; inset-inline-start: 0; transform: translateX(105%); }
html:not([dir="rtl"]) .m-cd[data-side="start"] .m-cd__panel { transform: translateX(-105%); }
.m-cd.is-open .m-cd__panel, html:not([dir="rtl"]) .m-cd.is-open .m-cd__panel { transform: none; }
.admin-bar .m-cd__panel { inset-block-start: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .m-cd__panel { inset-block-start: 0; } }
.m-cd__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-block-end: 1px solid #f0eee9; }
.m-cd__head b { font-size: 18px; font-weight: 800; }
.m-cd__head-count { color: #8a8890; font-size: 14px; font-weight: 500; }
.m-cd__close {
	display: grid; place-items: center; width: 40px; height: 40px; padding: 0; color: #16161a; background: #f4f2ee; border: 0; border-radius: 12px;
	cursor: pointer; transition: background-color .3s, color .3s, transform .3s;
}
.m-cd__close:hover { color: #fff; background: #16161a; transform: rotate(90deg); }
.m-cd__close svg { width: 18px; height: 18px; }
.m-cd__body { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.m-cd__count { display: none; }
.m-cd__ship { display: flex; flex-direction: column; gap: 10px; padding: 16px 22px; font-size: 13px; background: #faf9f7; }
.m-cd__ship > span:first-child { display: flex; align-items: center; gap: 8px; }
.m-cd__ship svg { flex: none; width: 18px; height: 18px; }
.m-cd__ship b { font-weight: 800; }
.m-cd__bar { height: 6px; overflow: hidden; background: #e9e6e1; border-radius: 6px; }
.m-cd__bar i { display: block; height: 100%; background: #f2a93b; border-radius: 6px; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.m-cd__ship.is-done { color: #2f8f5b; }
.m-cd__ship.is-done .m-cd__bar i { background: #2f8f5b; }
.m-cd__items { flex: 1; overflow-y: auto; padding: 8px 22px; overscroll-behavior: contain; }
.m-cd__item { display: flex; gap: 14px; padding: 16px 0; border-block-end: 1px solid #f0eee9; transition: opacity .3s; }
.m-cd__item:last-child { border-block-end: 0; }
.m-cd__item.is-busy { opacity: .55; pointer-events: none; }
.m-cd__item.is-leaving { opacity: 0; }
.m-cd__thumb { flex: none; display: block; width: 84px; height: 84px; overflow: hidden; background: #f4f2ee; border-radius: 14px; }
.m-cd__thumb img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; }
.m-cd__info { display: flex; flex: 1; flex-direction: column; gap: 8px; min-width: 0; }
.m-cd__name { font-size: 13px; font-weight: 600; line-height: 1.7; }
.m-cd__name a { color: inherit; text-decoration: none; }
.m-cd__meta { color: #8a8890; font-size: 12px; }
.m-cd__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-block-start: auto; }
.m-cd__qty { display: flex; align-items: center; height: 36px; padding: 2px; border: 1px solid #e6e3dd; border-radius: 12px; box-sizing: border-box; }
.m-cd__qty b { width: 24px; font-size: 14px; text-align: center; }
.m-cd__q { display: grid; place-items: center; width: 32px; height: 100%; padding: 0; color: #16161a; background: none; border: 0; border-radius: 9px; cursor: pointer; transition: background-color .2s; }
.m-cd__q:hover { background: rgba(22, 22, 26, .06); }
.m-cd__q:disabled { opacity: .3; cursor: default; background: none; }
.m-cd__q.is-remove { color: #e5533d; }
.m-cd__q svg { width: 16px; height: 16px; }
.m-cd__line { font-size: 14px; font-weight: 800; white-space: nowrap; }
.m-cd__line .woocommerce-Price-currencySymbol, .m-cd__sum .woocommerce-Price-currencySymbol { margin-inline-start: 3px; color: #8a8890; font-size: .72em; font-weight: 500; }
.m-cd__foot { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px; border-block-start: 1px solid #f0eee9; }
.m-cd__sum { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.m-cd__sum.is-save { color: #6b6a70; font-size: 13px; }
.m-cd__sum.is-save span:last-child { color: #e5533d; font-weight: 700; }
.m-cd__sum.is-total span:first-child { font-size: 14px; font-weight: 600; }
.m-cd__sum.is-total span:last-child { font-size: 20px; font-weight: 900; }
.m-cd__btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.m-cd__btn {
	display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 16px; color: #16161a; font-size: 14px; font-weight: 600;
	text-decoration: none; background: var(--m-bg, #fff); border: 1px solid #e3e0da; border-radius: 14px; transition: border-color .2s, background-color .3s, gap .3s;
}
.m-cd__btn:hover { color: #16161a; border-color: #16161a; }
.m-cd__btn.is-dark { color: #fff; font-weight: 700; background: #16161a; border-color: #16161a; }
.m-cd__btn.is-dark:hover { color: #fff; background: #000; gap: 14px; }
.m-cd__btn svg { width: 18px; height: 18px; }
html:not([dir="rtl"]) .m-cd__btn svg { transform: scaleX(-1); }
.m-cd__empty { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 40px; text-align: center; }
.m-cd__empty-icon { display: grid; place-items: center; width: 96px; height: 96px; color: #b5b2ab; background: #f4f2ee; border-radius: 50%; }
.m-cd__empty-icon svg { width: 40px; height: 40px; }
.m-cd__empty b { font-size: 17px; }
.m-cd__empty > span:not(.m-cd__empty-icon) { color: #8a8890; font-size: 13px; line-height: 1.9; }
.m-cd__empty .m-cd__btn { height: 48px; padding: 0 24px; }
html[data-theme="dark"] .m-cd__head, html[data-theme="dark"] .m-cd__item, html[data-theme="dark"] .m-cd__foot { border-color: rgba(255, 255, 255, .1); }
html[data-theme="dark"] .m-cd__ship { background: rgba(255, 255, 255, .04); }
html[data-theme="dark"] .m-cd__close, html[data-theme="dark"] .m-cd__thumb, html[data-theme="dark"] .m-cd__empty-icon { background: rgba(255, 255, 255, .08); color: var(--m-heading); }
html[data-theme="dark"] .m-cd__btn { color: var(--m-heading); border-color: rgba(255, 255, 255, .16); }
html[data-theme="dark"] .m-cd__btn.is-dark { color: var(--m-bg); background: var(--m-heading); }
@media (prefers-reduced-motion: reduce) { .m-cd__panel, .m-cd__overlay { transition: none; } }

/* ==========================================================================
   Cart page (inc/features/cart-page.php, Avand stage 17)
   ========================================================================== */
.m-cp-page .entry-content > .woocommerce, .m-cp-page .wp-block-woocommerce-cart { max-width: none; }
.m-cp { display: flex; flex-direction: column; gap: 20px; margin-block: 8px 40px; transition: opacity .2s; }
.m-cp.is-busy { opacity: .6; pointer-events: none; }
.m-cp .m-pd__crumbs { margin: 0; }
.m-cp__title { display: flex; align-items: baseline; gap: 10px; margin: 0; color: var(--m-heading); font-size: clamp(24px, 2.4vw, 32px); font-weight: 900; }
.m-cp__title small { color: #8a8890; font-size: 14px; font-weight: 500; }
.m-cp__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.m-cp__items { margin: 0; padding: 8px 22px; background: #fff; border-radius: 24px; box-shadow: 0 0 0 1px rgba(22, 22, 26, .05); }
.m-cp__ship { display: flex; align-items: center; gap: 10px; padding: 16px 0; font-size: 13px; border-block-end: 1px solid #f0eee9; }
.m-cp__ship svg { flex: none; width: 18px; height: 18px; }
.m-cp__ship > span:first-of-type { flex: 1; }
.m-cp__ship .amount { font-weight: 800; }
.m-cp__bar { flex: none; width: 30%; height: 6px; overflow: hidden; background: #e9e6e1; border-radius: 6px; }
.m-cp__bar i { display: block; height: 100%; background: #e8a317; border-radius: 6px; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.m-cp__ship.is-done { color: #1f9d63; }
.m-cp__ship.is-done .m-cp__bar i { background: #1f9d63; }
.m-cp__row { display: flex; gap: 18px; padding: 22px 0; border-block-end: 1px solid #f0eee9; transition: opacity .3s, transform .3s; }
.m-cp__row:last-of-type { border-block-end: 0; }
.m-cp__row.is-leaving { opacity: .3; transform: translateX(8px); }
.m-cp__img { flex: none; width: clamp(84px, 11vw, 130px); aspect-ratio: 1 / 1; overflow: hidden; background: #f4f2ee; border-radius: 16px; }
.m-cp__img img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; }
.m-cp__info { display: flex; flex: 1; flex-direction: column; gap: 8px; min-width: 0; }
.m-cp__name { font-size: 15px; font-weight: 700; line-height: 1.7; }
.m-cp__name a { color: var(--m-heading); text-decoration: none; }
.m-cp__name a:hover { color: var(--m-primary); }
.m-cp__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: #6b6a70; font-size: 12px; }
.m-cp__meta > span { display: inline-flex; align-items: center; gap: 6px; }
.m-cp__meta svg { width: 14px; height: 14px; }
.m-cp__meta .is-ok { color: #1f9d63; }
.m-cp__meta .is-warn { color: #d9472f; }
.m-cp__dot { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1); }
.m-cp__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-block-start: 6px; }
.m-cp__acts { display: flex; align-items: center; gap: 10px; }
.m-cp__qty { display: flex; align-items: center; height: 42px; padding: 2px; border: 1px solid #e3e0da; border-radius: 12px; }
.m-cp__q { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; color: var(--m-heading); background: none; border: 0; border-radius: 9px; cursor: pointer; transition: background-color .2s, color .2s; }
.m-cp__q:hover { background: #f4f2ee; }
.m-cp__q:disabled { opacity: .35; cursor: not-allowed; }
.m-cp__q.is-remove { color: #d9472f; }
.m-cp__q.is-remove:hover { background: #fdecea; }
.m-cp .m-cp__n {
	width: 34px; height: 36px; margin: 0; padding: 0; color: var(--m-heading); font: inherit; font-size: 15px; font-weight: 800; text-align: center;
	background: none; border: 0; box-shadow: none; -moz-appearance: textfield; appearance: textfield;
}
.m-cp .m-cp__n::-webkit-inner-spin-button, .m-cp .m-cp__n::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.m-cp__rm { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px; color: #8a8890; font-size: 13px; text-decoration: none; border-radius: 12px; transition: background-color .2s, color .2s; }
.m-cp__rm:hover { color: #c2402a; background: #fdecea; }
.m-cp__rm svg { width: 16px; height: 16px; }
.m-cp__price { display: flex; flex-direction: column; align-items: flex-end; }
.m-cp__price del { color: #a3a1a8; font-size: 12px; }
.m-cp__price b { color: var(--m-heading); font-size: 18px; }
.m-cp__side { position: sticky; inset-block-start: calc(var(--m-sticky-offset, 0px) + 110px); display: flex; flex-direction: column; gap: 14px; }
.m-cp__box { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 22px; background: #fff; border-radius: 24px; box-shadow: 0 0 0 1px rgba(22, 22, 26, .05); }
.m-cp__line { display: flex; justify-content: space-between; gap: 10px; color: #6b6a70; font-size: 14px; }
.m-cp__line.is-off { color: #d9472f; }
.m-cp__line.is-coupon { color: #1f9d63; }
.m-cp__unc { margin-inline-start: 6px; color: #8a8890; font-size: 12px; }
.m-cp__unc:hover { color: #d9472f; }
.m-cp__total { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-block-start: 14px; color: var(--m-heading); border-block-start: 1px dashed #e3e0da; }
.m-cp__total b:first-child { font-size: 15px; }
.m-cp__total b:last-child { font-size: 22px; }
.m-cp__btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 54px; padding: 0 26px; color: #fff; font: inherit; font-size: 15px; font-weight: 700;
	text-decoration: none; background: #16161a; border: 0; border-radius: 14px; cursor: pointer; transition: background-color .3s, transform .15s;
}
.m-cp__btn:hover { color: #fff; background: #000; }
.m-cp__btn:active { transform: scale(.97); }
.m-cp__btn svg { width: 18px; height: 18px; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.m-cp__btn:hover svg { transform: translateX(-4px); }
html:not([dir="rtl"]) .m-cp__btn svg { transform: scaleX(-1); }
html:not([dir="rtl"]) .m-cp__btn:hover svg { transform: scaleX(-1) translateX(-4px); }
.m-cp__btn.is-light { color: var(--m-heading); background: #f4f2ee; }
.m-cp__note { color: #8a8890; font-size: 11px; line-height: 1.8; }
.m-cp__coupon { gap: 10px; padding: 18px 22px; }
.m-cp__coupon > b { display: inline-flex; align-items: center; gap: 8px; color: var(--m-heading); font-size: 14px; }
.m-cp__coupon > b svg { width: 18px; height: 18px; }
.m-cp__cpn { display: flex; gap: 8px; }
.m-cp .m-cp__cpn input {
	flex: 1; min-width: 0; height: 46px; margin: 0; padding: 0 14px; font-size: 14px; direction: ltr; text-align: start;
	border: 1.5px solid #e3e0da; border-radius: 12px; box-shadow: none; transition: border-color .2s, box-shadow .2s;
}
[dir="rtl"] .m-cp .m-cp__cpn input:placeholder-shown { direction: rtl; }
.m-cp .m-cp__cpn input:focus { border-color: #16161a; outline: 0; box-shadow: 0 0 0 4px rgba(22, 22, 26, .06); }
.m-cp__coupon.is-bad .m-cp__cpn input { border-color: #d9472f; }
.m-cp .m-cp__cpn button { height: 46px; margin: 0; padding: 0 18px; color: var(--m-heading); font: inherit; font-size: 13px; font-weight: 700; background: #fff; border: 1px solid #16161a; border-radius: 12px; cursor: pointer; transition: background-color .2s, color .2s; }
.m-cp .m-cp__cpn button:hover { color: #fff; background: #16161a; }
.m-cp__coupon.is-busy { opacity: .6; pointer-events: none; }
.m-cp__cmsg { font-size: 12px; }
.m-cp__cmsg:empty { display: none; }
.m-cp__cmsg.is-ok { color: #1f9d63; }
.m-cp__cmsg.is-bad { color: #d9472f; }
.m-cp__empty { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 64px 24px; text-align: center; background: #fff; border-radius: 28px; box-shadow: 0 0 0 1px rgba(22, 22, 26, .06); }
.m-cp__empty-ic { display: grid; place-items: center; width: 110px; height: 110px; color: #b5b2ab; background: #f4f2ee; border-radius: 50%; }
.m-cp__empty-ic svg { width: 46px; height: 46px; }
.m-cp__empty b { color: var(--m-heading); font-size: 19px; }
.m-cp__empty > span { color: #8a8890; font-size: 14px; }
.m-cp__empty .m-cp__btn { height: 50px; font-size: 14px; }
.m-cp__recos { margin-block-start: 24px; }
.m-cp__recos h2 { margin: 0 0 20px; color: var(--m-heading); font-size: clamp(20px, 2vw, 26px); font-weight: 800; }
.woocommerce .m-cp__recos ul.products.m-cp__plist { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; }
.woocommerce .m-cp__recos ul.products.m-cp__plist::before, .woocommerce .m-cp__recos ul.products.m-cp__plist::after { content: none; }
.woocommerce .m-cp__recos ul.products.m-cp__plist li.product { width: auto; margin: 0; float: none; }
html[data-theme="dark"] .m-cp__items, html[data-theme="dark"] .m-cp__box, html[data-theme="dark"] .m-cp__empty { background: var(--m-bg-alt); }
@media (max-width: 1024px) {
	.m-cp__grid { grid-template-columns: minmax(0, 1fr); }
	.m-cp__side { position: static; }
	.woocommerce .m-cp__recos ul.products.m-cp__plist { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.m-cp__items { padding: 4px 14px; border-radius: 20px; }
	.m-cp__row { gap: 12px; padding: 16px 0; }
	.m-cp__name { font-size: 14px; }
	.m-cp__rm span, .m-cp__rm { padding: 0 8px; }
	.m-cp__price b { font-size: 16px; }
	.m-cp__bar { width: 24%; }
	.m-cp__box { padding: 18px; border-radius: 20px; }
	.woocommerce .m-cp__recos ul.products.m-cp__plist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
.m-cp a.m-cp__rm, .m-cp .m-cp__name a, .m-cp a.m-cp__btn, .m-cp a.m-cp__unc { text-decoration: none; }

/* Cart page – whole-page look of the design (v2.0.36): warm background, wide area, no link underlines. */
body.m-cp-page .site-content { background: #f6f5f2; }
html[data-theme="dark"] body.m-cp-page .site-content { background: var(--m-bg); }
body.m-cp-page .content-area { max-width: 1360px; padding-block: 24px 64px; }
.entry-content .m-cp a:not(.wp-block-button__link):not(.wp-element-button), .m-cp a, .m-cp a:hover { text-decoration: none; }
.m-cp .m-pd__crumbs { font-size: 13px; }
.m-cp__title { font-size: clamp(26px, 2.6vw, 34px); }
.m-cp__items, .m-cp__box { box-shadow: 0 1px 2px rgba(22, 22, 26, .04), 0 0 0 1px rgba(22, 22, 26, .05); }
.m-cp__row { align-items: flex-start; }
.m-cp__img { border-radius: 18px; }
.m-cp__img img { transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.m-cp__row:hover .m-cp__img img { transform: scale(1.04); }
.m-cp__name a { color: var(--m-heading); }
.m-cp__name a:hover { color: #000; }
.m-cp__meta > span { padding: 4px 10px; background: #f6f5f2; border-radius: 999px; }
.m-cp__meta .is-ok { color: #1f8a57; background: #eaf6ef; }
.m-cp__meta .is-warn { color: #c2402a; background: #fdecea; }
.m-cp__qty { background: #fff; }
.m-cp__sum { gap: 16px; padding: 24px; }
.m-cp__sum .m-cp__line { font-size: 14px; }
.m-cp__sum .m-cp__line span:last-child { color: var(--m-heading); font-weight: 600; }
.m-cp__sum .m-cp__line.is-off span, .m-cp__sum .m-cp__line.is-off span:last-child { color: #d9472f; }
.m-cp__sum .m-cp__line.is-coupon span:last-child { color: #1f8a57; }
.m-cp__total { padding-block-start: 16px; }
.m-cp__total b:last-child { font-size: 24px; font-weight: 900; }
.m-cp .m-cp__go {
	display: flex; width: 100%; height: 56px; color: #fff; font-size: 15px; font-weight: 800; background: #16161a; border-radius: 16px;
	box-shadow: 0 14px 28px -14px rgba(22, 22, 26, .55); transition: background-color .3s, box-shadow .3s, transform .15s;
}
.m-cp .m-cp__go:hover { color: #fff; background: #000; box-shadow: 0 18px 32px -14px rgba(22, 22, 26, .6); }
.m-cp .m-cp__go:focus-visible { outline: 2px solid var(--m-focus, var(--m-primary)); outline-offset: 3px; }
.m-cp__note { display: flex; gap: 6px; padding: 10px 12px; background: #f6f5f2; border-radius: 12px; }
.m-cp__recos { margin-block-start: 40px; }
@media (max-width: 767px) {
	body.m-cp-page .content-area { padding-block: 12px 40px; }
	.m-cp__meta > span { padding: 3px 8px; }
	/* Phone: the payable total + button stay at the bottom of the screen. */
	.m-cp__sum { position: relative; }
}
/* The theme's generic submit buttons lift 2px on hover – cart buttons must stay still (v2.0.37). */
.m-cp .m-cp__cpn button, .m-cp .m-cp__cpn button:hover, .m-cp .m-cp__cpn button:active, .m-cp .m-cp__cpn button:focus,
.m-cp button.m-cp__btn:hover, .m-cp button.m-cp__btn:active { transform: none; box-shadow: none; }
.m-cp .m-cp__cpn button { line-height: 1; transition: background-color .2s, color .2s; }
.m-cp .m-cp__cpn button:focus-visible { outline: 2px solid var(--m-focus, var(--m-primary)); outline-offset: 3px; }
/* A coupon line opens / folds smoothly so the coupon box under it glides instead of jumping (v2.0.38). */
.m-cp__line.is-new { animation: m-cp-line-in .35s cubic-bezier(.2, .8, .2, 1) both; overflow: hidden; }
@keyframes m-cp-line-in { from { max-height: 0; margin-block-start: -16px; opacity: 0; } to { max-height: 60px; margin-block-start: 0; opacity: 1; } }
.m-cp__line.is-out { max-height: 0 !important; margin-block-start: -16px; overflow: hidden; opacity: 0; transition: max-height .3s ease, margin .3s ease, opacity .2s; }
@media (prefers-reduced-motion: reduce) { .m-cp__line.is-new { animation: none; } .m-cp__line.is-out { transition: none; } }
/* Iran only: the single-option country row is hidden (inc/features/checkout-page.php). */
.m-hide-country, .form-row.m-hide-country { display: none !important; }

/* ==========================================================================
   Wishlist page (Avand, v2.0.55): head + actions, card grid, empty state
   ========================================================================== */
body.m-wl-page .site-content { background: #f6f5f2; }
html[data-theme="dark"] body.m-wl-page .site-content { background: var(--m-bg); }
body.m-wl-page .content-area, body.m-wl-page .m-wishlist-page .container { max-width: 1360px; }
body.m-wl-page .content-area { padding-block: 28px 64px; }
.m-wl { --m-wl-cols: 5; display: flex; flex-direction: column; gap: 22px; }
.m-wl a, .entry-content .m-wl a:not(.wp-block-button__link):not(.wp-element-button) { text-decoration: none; }
.m-wl__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.m-wl__titles { display: flex; flex-direction: column; gap: 4px; }
.m-wl__kicker { color: #8a8890; font-size: 13px; }
.m-wl__title { margin: 0; color: var(--m-heading); font-size: clamp(24px, 2.6vw, 34px); font-weight: 900; }
.m-wl__title small { color: #8a8890; font-size: 14px; font-weight: 500; }
.m-wl__title small [data-monteli-wish-count] { display: inline; min-width: 0; padding: 0; color: inherit; font-size: inherit; background: none; }
.m-wl__acts { display: flex; gap: 8px; }
.m-wl__acts[hidden] { display: none; }
.m-wl__clear, .m-wl__addall, .m-wl__clear:hover, .m-wl__addall:hover, .m-wl__clear:focus, .m-wl__addall:focus {
	display: inline-flex; align-items: center; gap: 6px; height: 44px; margin: 0; padding: 0 16px; font: inherit; font-size: 13px; font-weight: 700; border-radius: 12px;
	box-shadow: none; transform: none; cursor: pointer; transition: border-color .2s, color .2s, background-color .2s;
}
.m-wl__clear { color: var(--m-heading); background: #fff; border: 1px solid #e3e0da; }
.m-wl__clear:hover { color: #c2402a; background: #fff; border-color: #c2402a; }
.m-wl__clear.is-confirm { color: #fff; background: #c2402a; border-color: #c2402a; }
.m-wl__addall { color: #fff; background: #16161a; border: 0; }
.m-wl__addall:hover { color: #fff; background: #000; }
.m-wl__clear svg, .m-wl__addall svg { width: 17px; height: 17px; }
.m-wl__clear.is-busy, .m-wl__addall.is-busy { opacity: .6; pointer-events: none; }
.woocommerce .m-wl ul.products.m-wl__grid { display: grid; grid-template-columns: repeat(var(--m-wl-cols), minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; }
.woocommerce .m-wl ul.products.m-wl__grid::before, .woocommerce .m-wl ul.products.m-wl__grid::after { content: none; }
.woocommerce .m-wl ul.products.m-wl__grid li.product { width: auto; margin: 0; float: none; }
.m-wl__empty { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 64px 24px; text-align: center; background: #fff; border-radius: 28px; box-shadow: 0 0 0 1px rgba(22, 22, 26, .05); }
.m-wl__empty[hidden] { display: none; }
.m-wl .m-wl__eic { width: 110px; height: 110px; margin: 0; color: #e5533d; background: #fdeee9; }
.m-wl .m-wl__eic svg { width: 46px; height: 46px; }
.m-wl__empty h3 { margin: 0; color: var(--m-heading); font-size: 19px; }
.m-wl__empty p { margin: 0; color: #8a8890; font-size: 14px; }
.m-wl__btn { display: inline-flex; align-items: center; height: 50px; margin-block-start: 4px; padding: 0 26px; color: #fff; font-size: 14px; font-weight: 700; background: #16161a; border-radius: 14px; }
.m-wl__btn:hover { color: #fff; background: #000; }
@media (max-width: 1100px) { .woocommerce .m-wl ul.products.m-wl__grid { grid-template-columns: repeat(min(var(--m-wl-cols), 3), minmax(0, 1fr)); } }
@media (max-width: 640px) {
	body.m-wl-page .content-area { padding-block: 14px 40px; }
	.woocommerce .m-wl ul.products.m-wl__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.m-wl__acts { width: 100%; }
	.m-wl__clear, .m-wl__addall { flex: 1; justify-content: center; padding: 0 10px; }
}

/* ==========================================================================
   Editorial card (Monteli store → «Product card style» = editorial; fashion stores):
   no box, sharp 3:4 photo, second photo on hover, square tags, panel with sizes + button that slides up over the
   photo on hover, round «+» on touch screens, price on one row.
   ========================================================================== */
.woocommerce ul.products li.product.m-card.m-card--ed {
	--m-ed-ink: var(--m-heading, #161412); --m-ed-mut: var(--m-text, #6f6860); --m-ed-line: var(--m-border, #e3ded5);
	--m-ed-paper: #faf8f4; --m-ed-sale: var(--m-secondary, #b8552f);
	padding: 0; background: transparent; border-radius: 0; box-shadow: none; transform: none;
}
.woocommerce ul.products li.product.m-card.m-card--ed:hover { transform: none; box-shadow: none; }
.m-card.m-card--ed .m-card__media { aspect-ratio: 3 / 4; border-radius: var(--m-ed-r, 0); background: var(--m-bg-alt, #e8e1d5); transition: box-shadow .55s ease; }
.m-card.m-card--ed:hover .m-card__media { box-shadow: 0 30px 50px -34px rgba(22, 20, 18, .45); }
.woocommerce ul.products li.product.m-card.m-card--ed .m-card__img img { transition: transform 1.4s cubic-bezier(.2, .7, .2, 1), opacity .7s ease; transform: none !important; }
.woocommerce ul.products li.product.m-card.m-card--ed:hover .m-card__img img { transform: scale(1.04) !important; }
.woocommerce ul.products li.product.m-card.m-card--ed .m-card__img .m-card__img2 { position: absolute; inset: 0; opacity: 0; }
.woocommerce ul.products li.product.m-card.m-card--ed:hover .m-card__img .m-card__img2 { opacity: 1; }
.m-card.m-card--ed .m-card__tags { inset-block-start: 12px; inset-inline-start: 12px; gap: 6px; }
.m-card.m-card--ed .m-card__tag { padding: 5px 10px; font-size: 11px; font-weight: 600; line-height: 1; border-radius: var(--m-ed-pill, 0); box-shadow: none; }
.m-card.m-card--ed .m-card__tag.is-best, .m-card.m-card--ed .m-card__tag.is-new { color: var(--m-heading, #161412); background: var(--m-ed-badge, var(--m-ed-paper)); }
.m-card.m-card--ed .m-card__tag.is-sale { color: #fff; background: var(--m-ed-sale); font-weight: 700; }
.m-card.m-card--ed .m-card__out span { border-radius: var(--m-ed-pill, 0); }
.m-card.m-card--ed .m-card__acts { inset-block-start: 8px; inset-inline-end: 8px; }
.m-card.m-card--ed .m-card__act { display: none; }
.m-card.m-card--ed .m-wish--card { width: 40px; height: 40px; border-radius: 50%; color: var(--m-heading, #161412); background: rgba(250, 248, 244, .86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: none; }
.m-card.m-card--ed .m-wish--card.is-on { color: var(--m-ed-sale); }
/* Quick panel. */
.m-card.m-card--ed .m-card__qp {
	position: absolute; inset-inline: 10px; inset-block-end: 10px; z-index: 3; display: flex; flex-direction: column; gap: 10px; padding: 12px;
	background: rgba(250, 248, 244, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	border-radius: var(--m-ed-panel, 0); opacity: 0; transform: translateY(14px); transition: transform .5s cubic-bezier(.2, .7, .2, 1), opacity .4s ease;
}
.m-card.m-card--ed:hover .m-card__qp, .m-card.m-card--ed .m-card__qp:focus-within { opacity: 1; transform: none; }
.m-card.m-card--ed .m-card__qrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.m-card.m-card--ed .m-card__qlabel { flex: none; color: #6f6860; font-size: 11px; }
.m-card.m-card--ed .m-card__szs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.woocommerce .m-card.m-card--ed .m-card__sz {
	display: inline-grid; place-items: center; min-width: 30px; height: 28px; padding: 0 6px; color: var(--m-heading, #161412); border-radius: var(--m-ed-pill, 0); font-size: 11px; font-weight: 500; line-height: 1;
	text-decoration: none; background: transparent; border: 1px solid #e3ded5; transition: background .2s, color .2s, border-color .2s;
}
.woocommerce .m-card.m-card--ed a.m-card__sz:hover, .woocommerce .m-card.m-card--ed a.m-card__sz.added { color: #faf8f4; background: var(--m-heading, #161412); border-color: var(--m-heading, #161412); }
.woocommerce .m-card.m-card--ed .m-card__sz.is-off { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.woocommerce .m-card.m-card--ed .m-card__sz.is-busy { opacity: .5; }
.woocommerce .m-card.m-card--ed .m-card__qbtn {
	display: grid; place-items: center; height: 40px; color: #faf8f4; font-size: 13px; font-weight: 600; text-decoration: none; background: #161412;
	transition: background .25s;
}
.woocommerce .m-card.m-card--ed .m-card__qbtn:hover { color: #faf8f4; background: var(--m-ed-sale); }
.woocommerce .m-card.m-card--ed .m-card__qbtn:active { transform: scale(.98); }
.woocommerce .m-card.m-card--ed .m-card__plus { display: none; }
@media (hover: none), (max-width: 819px) {
	.m-card.m-card--ed .m-card__qp { display: none; }
	.woocommerce .m-card.m-card--ed .m-card__plus {
		position: absolute; inset-block-end: 8px; inset-inline-end: 8px; z-index: 3; display: grid; place-items: center; width: 36px; height: 36px;
		color: #faf8f4; font-size: 20px; line-height: 1; text-decoration: none; background: var(--m-heading, #161412); border-radius: 50%;
	}
	.woocommerce ul.products li.product.m-card.m-card--ed:hover .m-card__img img { transform: none !important; }
	.woocommerce ul.products li.product.m-card.m-card--ed:hover .m-card__img .m-card__img2 { opacity: 0; }
}
/* Text under the photo. */
.m-card.m-card--ed .m-card__body { gap: 6px; padding: 12px 0 0; }
.m-card.m-card--ed .m-card__meta { color: var(--m-ed-mut); font-size: 11px; font-weight: 500; }
.m-card.m-card--ed .m-card__dots i { width: 10px; height: 10px; }
.woocommerce ul.products li.product.m-card.m-card--ed .m-card__title { min-height: 0; color: var(--m-ed-ink); font-size: 14px; font-weight: 500; line-height: 1.6; }
.woocommerce ul.products li.product.m-card.m-card--ed .m-card__price { flex-direction: row-reverse; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: 8px; margin: 0; padding: 0; color: var(--m-ed-ink) !important; }
.m-card.m-card--ed .m-card__now { font-size: 14px; font-weight: 700; letter-spacing: 0; }
.m-card.m-card--ed .m-card__now .woocommerce-Price-currencySymbol { margin-inline-start: 3px; color: inherit; font-size: inherit; font-weight: inherit; }
.m-card.m-card--ed.sale .m-card__now { color: var(--m-ed-sale); }
.m-card.m-card--ed .m-card__was { font-size: 12px; }
.m-card.m-card--ed .m-card__was del { color: var(--m-ed-mut); }
.m-card.m-card--ed .m-card__off, .m-card.m-card--ed .m-card__rating, .m-card.m-card--ed .m-card__low { display: none; }
/* On a dark section (e.g. the deals box) the text under the photo turns light. */
.m-deals .woocommerce ul.products li.product.m-card.m-card--ed, .m-on-dark .woocommerce ul.products li.product.m-card.m-card--ed { --m-ed-ink: #f3f0ea; --m-ed-mut: #b9b2a8; }
/* Editorial card – rounded variant (store setting «ed_radius» > 0 sets these variables). */
.woocommerce .m-card.m-card--ed .m-card__qbtn { border-radius: var(--m-ed-pill, 0); background: var(--m-heading, #161412); }
.m-card.m-card--ed .m-card__qp { border-radius: var(--m-ed-panel, 0); }

/* ==========================================================================
   Technical card (Monteli store «technical» – tools / hardware): li.m-card.m-card--tc (inc/store/monteli/card-tech.php)
   ========================================================================== */
.woocommerce ul.products li.product.m-card.m-card--tc {
	--m-tc-ink: var(--m-heading, #1c1c1a); --m-tc-muted: #8a8983; --m-tc-tile: var(--m-tc-tile-bg, #f4f4f1); --m-tc-accent: var(--m-secondary, #f2b600);
	--m-tc-badge: var(--m-tc-badge-bg, #ffd54a); --m-tc-chip: #f2f1ed;
	padding: 8px; color: var(--m-tc-ink); background: #fff; border-radius: 22px;
	box-shadow: 0 1px 2px rgba(28, 28, 26, .03), 0 8px 24px -16px rgba(28, 28, 26, .1);
	transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s;
}
.woocommerce ul.products li.product.m-card.m-card--tc:hover { transform: translateY(-6px); box-shadow: 0 2px 4px rgba(28, 28, 26, .03), 0 28px 50px -24px rgba(28, 28, 26, .22); }
.m-card.m-card--tc .m-card__media { aspect-ratio: 1 / 1; background: var(--m-tc-tile); border-radius: 16px; }
.m-card.m-card--tc .m-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.m-card.m-card--tc:hover .m-card__img img { transform: scale(1.06); }
.m-card.m-card--tc .m-card__tags { inset-block-start: 10px; inset-inline-start: 10px; flex-direction: row; gap: 6px; }
.m-card.m-card--tc .m-card__tag { padding: 4px 10px; font-size: 11.5px; font-weight: 800; line-height: 1.5; }
.m-card.m-card--tc .m-card__tag.is-sale { color: var(--m-tc-ink); background: var(--m-tc-badge); }
.m-card.m-card--tc .m-card__tag.is-new { color: var(--m-tc-ink); background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
/* Side actions: hidden until hover (always on touch screens / when the product is on the list). */
.m-card.m-card--tc .m-card__acts { inset-block-start: 10px; inset-inline-end: 10px; gap: 6px; }
.m-card.m-card--tc .m-card__acts > * { width: 36px; height: 36px; color: var(--m-tc-ink); background: #fff; border-radius: 50%; box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .15); opacity: 0; transform: translateX(-10px); transition: opacity .3s, transform .4s cubic-bezier(.2, .8, .2, 1), background-color .2s; }
[dir="rtl"] .m-card.m-card--tc .m-card__acts > * { transform: translateX(10px); }
.m-card.m-card--tc .m-card__acts > :nth-child(2) { transition-delay: .05s; }
.m-card.m-card--tc .m-card__acts > :nth-child(3) { transition-delay: .1s; }
.m-card.m-card--tc:hover .m-card__acts > *, .m-card.m-card--tc .m-card__acts > :focus-visible, .m-card.m-card--tc .m-card__acts > .is-on { opacity: 1; transform: none !important; }
.m-card.m-card--tc .m-card__acts > :hover { background: #fff4cc; transform: none !important; }
.m-card.m-card--tc .m-card__acts .m-wish--card.is-on { color: #b4261a; background: #ffe9a8; }
.m-card.m-card--tc .m-card__acts svg { width: 16px; height: 16px; }
/* Key specs over the photo on hover. */
.m-card.m-card--tc .m-card__keys { position: absolute; inset-inline: 8px; inset-block-end: 8px; z-index: 2; display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; background: rgba(255, 255, 255, .88); border-radius: 12px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transform: translateY(12px); transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .35s; pointer-events: none; }
.m-card.m-card--tc:hover .m-card__keys { opacity: 1; transform: none; }
.m-card.m-card--tc .m-card__keys span, .m-card.m-card--tc .m-card__tkeys span { padding: 3px 8px; color: #45443f; font-size: 11px; font-weight: 600; line-height: 1.5; background: var(--m-tc-chip); border-radius: 999px; }
.m-card.m-card--tc .m-card__tkeys { display: none; flex-wrap: wrap; gap: 4px; }
.m-card.m-card--tc .m-card__out { background: rgba(255, 255, 255, .55); }
.m-card.m-card--tc .m-card__out span { color: #b4261a; font-size: 12px; background: #fff; box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .12); }
.m-card.m-card--tc.is-out .m-card__img img { opacity: 1; filter: none; }
/* Body */
.m-card.m-card--tc .m-card__body { gap: 8px; padding: 14px 8px 8px; }
.m-card.m-card--tc .m-card__meta { justify-content: flex-start; gap: 6px; color: var(--m-tc-muted); font-size: 11.5px; }
.m-card.m-card--tc .m-card__brand { flex: none; color: #55544f; font-weight: 700; }
.m-card.m-card--tc .m-card__sep { flex: none; width: 3px; height: 3px; background: #cfcdc6; border-radius: 50%; }
.m-card.m-card--tc .m-card__model { flex: 1; min-width: 0; overflow: hidden; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 10.5px; white-space: nowrap; text-overflow: ellipsis; text-align: start; }
[dir="rtl"] .m-card.m-card--tc .m-card__model { text-align: right; }
.m-card.m-card--tc .m-card__rate { flex: none; display: flex; align-items: center; gap: 3px; color: #55544f; font-weight: 600; }
.m-card.m-card--tc .m-card__rate b { color: var(--m-tc-accent); font-weight: 400; }
.m-card.m-card--tc .m-card__title { min-height: 3.5em; margin: 0; font-size: 14px; font-weight: 600; line-height: 1.75; }
.m-card.m-card--tc .m-card__title a { transition: color .2s; }
.m-card.m-card--tc .m-card__title a:hover { color: var(--m-tc-link-hover, #8a6700); }
.m-card.m-card--tc .m-card__info { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--m-tc-muted); font-size: 11px; }
.m-card.m-card--tc .m-card__stock { display: flex; align-items: center; gap: 5px; font-weight: 600; }
.m-card.m-card--tc .m-card__stock i { width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.m-card.m-card--tc .m-card__stock.is-ok { color: #1e7a46; }
.m-card.m-card--tc .m-card__stock.is-low { color: #b8650a; }
.m-card.m-card--tc .m-card__stock.is-out { color: #b4261a; }
.m-card.m-card--tc .m-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-block-start: auto; padding-block-start: 4px; }
.woocommerce ul.products li.product.m-card.m-card--tc .m-card__price { align-items: flex-start; margin: 0; padding: 0; min-width: 0; }
.m-card.m-card--tc .m-card__was { color: #a9a79f; font-size: 11.5px; font-weight: 400; }
.m-card.m-card--tc .m-card__now { display: flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.m-card.m-card--tc .m-card__now b { font-size: 17px; font-weight: 800; }
.m-card.m-card--tc .m-card__now small { color: var(--m-tc-muted); font-size: 11px; font-weight: 400; }
.m-card.m-card--tc .m-card__plus { position: relative; z-index: 3; flex: none; display: grid; place-items: center; width: 44px; height: 44px; color: var(--m-tc-ink); background: var(--m-tc-tile); border-radius: 14px; transition: background-color .25s, color .25s, transform .15s; }
.m-card.m-card--tc:hover .m-card__plus:not(.is-off) { color: #fff; background: var(--m-tc-ink); }
.m-card.m-card--tc .m-card__plus:active { transform: scale(.92); }
.m-card.m-card--tc .m-card__plus i { position: relative; width: 16px; height: 16px; }
.m-card.m-card--tc .m-card__plus i::before, .m-card.m-card--tc .m-card__plus i::after { content: ""; position: absolute; inset-block-start: 7px; inset-inline-start: 0; width: 16px; height: 2px; background: currentColor; border-radius: 2px; }
.m-card.m-card--tc .m-card__plus:not(.is-off) i::after { transform: rotate(90deg); }
.m-card.m-card--tc .m-card__plus.is-off { color: #c4c2bb; background: #f4f4f1; cursor: not-allowed; }
.m-card.m-card--tc .m-card__plus.loading { opacity: .6; }
.m-card.m-card--tc .m-card__plus.added { color: #fff; background: #1e7a46; }
@media (hover: none), (max-width: 767px) {
	.m-card.m-card--tc .m-card__keys { display: none; }
	.m-card.m-card--tc .m-card__tkeys { display: flex; }
	.m-card.m-card--tc .m-card__acts > * { opacity: 1; transform: none !important; }
}
@media (max-width: 600px) {
	.woocommerce ul.products li.product.m-card.m-card--tc { padding: 6px; border-radius: 18px; }
	.m-card.m-card--tc .m-card__body { padding: 10px 4px 4px; }
	.m-card.m-card--tc .m-card__acts > * { width: 32px; height: 32px; }
	.m-card.m-card--tc .m-card__title { font-size: 13px; }
	.m-card.m-card--tc .m-card__now b { font-size: 15px; }
	.m-card.m-card--tc .m-card__plus { width: 38px; height: 38px; border-radius: 12px; }
	.m-card.m-card--tc .m-card__warr { display: none; }
}

/* Cart drawer «float» (data-side="float"): a floating card under the header next to the cart button, blur behind it;
   on phones a bottom sheet. */
.m-cd[data-side="float"] .m-cd__overlay { background: rgba(21, 21, 21, .32); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.m-cd[data-side="float"] .m-cd__panel, .admin-bar .m-cd[data-side="float"] .m-cd__panel, html:not([dir="rtl"]) .m-cd[data-side="float"] .m-cd__panel {
	inset-block: var(--m-cd-top, 100px) auto; inset-inline-start: auto; inset-inline-end: max(16px, calc((100vw - var(--m-el-max, 1320px)) / 2 + 24px));
	width: 410px; height: auto; max-height: calc(100vh - var(--m-cd-top, 100px) - 20px); overflow: hidden; border-radius: 24px;
	box-shadow: 0 0 0 1px rgba(21, 21, 21, .06), 0 40px 80px -24px rgba(21, 21, 21, .45), 0 12px 24px -12px rgba(21, 21, 21, .2);
	opacity: 0; transform: translateY(-14px) scale(.96); transform-origin: top left; transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .3s;
}
html:not([dir="rtl"]) .m-cd[data-side="float"] .m-cd__panel { transform-origin: top right; }
.m-cd.is-open[data-side="float"] .m-cd__panel, html:not([dir="rtl"]) .m-cd.is-open[data-side="float"] .m-cd__panel { opacity: 1; transform: none; }
.m-cd[data-side="float"] .m-cd__body { min-height: 0; }
@media (max-width: 600px) {
	.m-cd[data-side="float"] .m-cd__panel, .admin-bar .m-cd[data-side="float"] .m-cd__panel, html:not([dir="rtl"]) .m-cd[data-side="float"] .m-cd__panel {
		inset-block: auto 12px; inset-inline: 12px; width: auto; max-height: 82vh; transform: translateY(40px) scale(.98); transform-origin: bottom center;
	}
}
/* Opened by hover (cart-drawer.js adds .is-hover): a dropdown card – no dark layer, the page (and the cart button
   under the fixed layer) keeps receiving the pointer, only the card itself is clickable. */
.m-cd.is-hover[data-side="float"] { pointer-events: none; }
.m-cd.is-hover[data-side="float"] .m-cd__overlay { display: none; }
.m-cd.is-hover[data-side="float"] .m-cd__panel { pointer-events: auto; }

/* ==========================================================================
   Digital card (Monteli store «digital» – subscriptions, game top-ups, gift cards): li.m-card.m-card--dg
   (inc/store/monteli/card-digital.php). Light by default, dark under html[data-theme=dark].
   Colours: --m-dg-a1 / --m-dg-a2 (gradient of the cart button, default primary → secondary).
   ========================================================================== */
.m-card.m-card--dg {
	--m-dg-card: #fff; --m-dg-line: rgba(22, 26, 64, .1); --m-dg-strong: var(--m-heading, #0b1028); --m-dg-text: #333b5e; --m-dg-muted: #5d6585; --m-dg-chip: rgba(22, 26, 64, .05);
	--m-dg-shadow: 0 10px 30px -18px rgba(30, 27, 75, .35); --m-dg-a1g: var(--m-dg-a1, var(--m-primary, #7c3aed)); --m-dg-a2g: var(--m-dg-a2, var(--m-secondary, #2563eb));
}
html[data-theme="dark"] .m-card.m-card--dg {
	--m-dg-card: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02)); --m-dg-line: rgba(255, 255, 255, .1); --m-dg-strong: #fff; --m-dg-text: #c9cfea; --m-dg-muted: #a3accf; --m-dg-chip: rgba(255, 255, 255, .06); --m-dg-shadow: none;
}
.woocommerce ul.products li.product.m-card.m-card--dg, ul.products li.product.m-card.m-card--dg {
	display: flex; flex-direction: column; padding: 8px; color: var(--m-dg-text); background: var(--m-dg-card); border: 1px solid var(--m-dg-line); border-radius: 22px; box-shadow: var(--m-dg-shadow);
	transition: transform .45s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .45s;
}
.woocommerce ul.products li.product.m-card.m-card--dg:hover, ul.products li.product.m-card.m-card--dg:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--m-dg-a1g) 45%, transparent); box-shadow: 0 24px 48px -26px color-mix(in srgb, var(--m-dg-a1g) 70%, transparent); }
.m-card.m-card--dg .m-card__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--m-dg-chip); border-radius: 16px; }
.m-card.m-card--dg .m-card__img, .m-card.m-card--dg .m-card__img img { display: block; width: 100%; height: 100%; }
.m-card.m-card--dg .m-card__img img { object-fit: cover; border-radius: 0; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.m-card.m-card--dg:hover .m-card__img img { transform: scale(1.05); }
.m-card.m-card--dg .m-card__tags { position: absolute; inset-block-start: 10px; inset-inline-start: 10px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.m-card.m-card--dg .m-card__tag { padding: 3px 10px; color: #fff; font-size: 11px; font-weight: 800; line-height: 1.6; background: rgba(10, 13, 36, .55); border-radius: 999px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.m-card.m-card--dg .m-card__tag.is-best { background: linear-gradient(135deg, #f97316, #e11d48); }
.m-card.m-card--dg .m-card__tag.is-special { background: linear-gradient(135deg, #db2777, #9333ea); }
.m-card.m-card--dg .m-card__tag.is-new { background: linear-gradient(135deg, #2563eb, #0891b2); }
.m-card.m-card--dg .m-card__tag.is-sale { color: #fff; background: rgba(10, 13, 36, .6); }
.m-card.m-card--dg .m-card__acts { position: absolute; inset-block-start: 10px; inset-inline-end: 10px; z-index: 2; display: flex; }
.m-card.m-card--dg .m-card__acts .m-wish--card { position: static; width: 34px; height: 34px; color: #fff; background: rgba(10, 13, 36, .45); border: 1px solid rgba(255, 255, 255, .22); border-radius: 11px; box-shadow: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.m-card.m-card--dg .m-card__acts .m-wish--card:hover { background: rgba(10, 13, 36, .65); transform: none; }
.m-card.m-card--dg .m-card__acts .m-wish--card.is-on { color: #fb7185; }
.m-card.m-card--dg .m-card__acts svg { width: 16px; height: 16px; }
.m-card.m-card--dg .m-card__out { background: rgba(7, 10, 24, .45); }
.m-card.m-card--dg .m-card__out span { color: #fff; background: rgba(225, 29, 72, .85); }
.m-card.m-card--dg .m-card__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 14px 8px 6px; }
.m-card.m-card--dg .m-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--m-dg-muted); font-size: 11.5px; }
.m-card.m-card--dg .m-card__kind { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.m-card.m-card--dg .m-card__stock { flex: none; display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.m-card.m-card--dg .m-card__stock i { width: 6px; height: 6px; background: #10b981; border-radius: 50%; box-shadow: 0 0 0 3px rgba(16, 185, 129, .18); }
.m-card.m-card--dg .m-card__stock.is-low i { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .18); }
.m-card.m-card--dg .m-card__stock.is-out i { background: #f43f5e; box-shadow: 0 0 0 3px rgba(244, 63, 94, .18); }
.m-card.m-card--dg .m-card__title { margin: 0; padding: 0; color: var(--m-dg-strong); font-size: 15px; font-weight: 800; line-height: 1.6; }
.m-card.m-card--dg .m-card__title a { color: inherit; text-decoration: none; transition: color .2s; }
.m-card.m-card--dg .m-card__title a:hover { color: var(--m-dg-a1g); }
.m-card.m-card--dg .m-card__desc { display: -webkit-box; min-height: 3.7em; margin: 0; overflow: hidden; color: var(--m-dg-muted); font-size: 12.5px; line-height: 1.85; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.m-card.m-card--dg .m-card__price { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 0; min-height: 44px; margin-block-start: auto; }
.m-card.m-card--dg .m-card__was { color: var(--m-dg-muted); font-size: 11.5px; opacity: .8; }
.m-card.m-card--dg .m-card__now { display: flex; align-items: baseline; gap: 5px; color: var(--m-dg-strong); }
.m-card.m-card--dg .m-card__now b { font-size: 17px; font-weight: 900; }
.m-card.m-card--dg .m-card__now small { color: var(--m-dg-muted); font-size: 11.5px; }
.m-card.m-card--dg .m-card__now .m-card__from { color: var(--m-dg-strong); font-size: 12.5px; font-weight: 700; }
.m-card.m-card--dg .m-card__foot { display: flex; align-items: center; gap: 8px; margin-block-start: 4px; }
.m-card.m-card--dg .m-card__more { flex: 1; display: grid; place-items: center; height: 42px; color: var(--m-dg-strong); font-size: 13px; font-weight: 700; text-decoration: none; background: var(--m-dg-chip); border: 1px solid var(--m-dg-line); border-radius: 13px; transition: background-color .2s, border-color .2s; }
.m-card.m-card--dg .m-card__more:hover { background: color-mix(in srgb, var(--m-dg-a1g) 14%, transparent); border-color: color-mix(in srgb, var(--m-dg-a1g) 45%, transparent); }
.m-card.m-card--dg .m-card__plus { flex: none; display: grid; place-items: center; width: 42px; height: 42px; color: #fff; background: linear-gradient(135deg, var(--m-dg-a1g), var(--m-dg-a2g)); border-radius: 13px; box-shadow: 0 10px 22px -12px var(--m-dg-a1g); transition: transform .25s, filter .2s; }
.m-card.m-card--dg .m-card__plus:hover { filter: brightness(1.1); transform: translateY(-2px); }
.m-card.m-card--dg .m-card__plus.is-off { opacity: .35; filter: grayscale(1); box-shadow: none; }
.m-card.m-card--dg .m-card__plus svg { width: 18px; height: 18px; }
.m-card.m-card--dg .m-card__plus.loading, .m-card.m-card--dg .m-card__plus.is-busy { opacity: .6; pointer-events: none; }
@media (max-width: 600px) {
	.m-card.m-card--dg .m-card__body { padding: 10px 4px 4px; }
	.m-card.m-card--dg .m-card__desc { display: none; }
	.m-card.m-card--dg .m-card__title { font-size: 13.5px; }
	.m-card.m-card--dg .m-card__more { height: 38px; font-size: 12px; }
	.m-card.m-card--dg .m-card__plus { width: 38px; height: 38px; }
	.m-card.m-card--dg .m-card__meta .m-card__stock { display: none; }
	.m-card.m-card--dg .m-card__tags { flex-direction: row; inset-block-start: 8px; inset-inline-start: 8px; gap: 4px; }
	.m-card.m-card--dg .m-card__tag { padding: 2px 7px; font-size: 10px; }
	.m-card.m-card--dg .m-card__tag.is-sale { display: none; }
}
/* Compact digital card (v2.1.16, user: «cards too tall, too much space»): the title takes only the lines it needs
   (the generic card rule reserved two lines), the price block no longer keeps room for a missing old price. */
.woocommerce ul.products li.product.m-card.m-card--dg .m-card__title, ul.products li.product.m-card.m-card--dg .m-card__title { min-height: 0; font-size: 15px; line-height: 1.55; }
.woocommerce ul.products li.product.m-card.m-card--dg .m-card__price, ul.products li.product.m-card.m-card--dg .m-card__price { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 8px; min-height: 0; }
ul.products:has(> li.m-card--dg) { gap: 18px !important; }
.m-card.m-card--dg .m-card__desc { min-height: 0; }
@media (max-width: 600px) {
	ul.products:has(> li.m-card--dg) { gap: 10px !important; }
	.woocommerce ul.products li.product.m-card.m-card--dg, ul.products li.product.m-card.m-card--dg { padding: 6px; border-radius: 18px; }
	.m-card.m-card--dg .m-card__media { border-radius: 13px; }
	.m-card.m-card--dg .m-card__body { gap: 4px; padding: 8px 4px 2px; }
	.woocommerce ul.products li.product.m-card.m-card--dg .m-card__title, ul.products li.product.m-card.m-card--dg .m-card__title { display: -webkit-box; overflow: hidden; font-size: 13px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
	.m-card.m-card--dg .m-card__meta { font-size: 11px; }
	.woocommerce ul.products li.product.m-card.m-card--dg .m-card__price, ul.products li.product.m-card.m-card--dg .m-card__price { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 6px; padding-block-start: 2px; }
	.m-card.m-card--dg .m-card__now b { font-size: 15px; }
	.m-card.m-card--dg .m-card__foot { gap: 6px; margin-block-start: 2px; }
	.m-card.m-card--dg .m-card__more { height: 34px; border-radius: 11px; }
	.m-card.m-card--dg .m-card__plus { width: 34px; height: 34px; border-radius: 11px; }
	.m-card.m-card--dg .m-card__plus svg { width: 16px; height: 16px; }
}
