/**
 * Midwest Armor - Native Product (PDP) page ("Mist" light mode).
 * Loaded only when the native PDP renders (inc/product/product-view.php).
 * Namespaced `.mwp-`. Styles the native pieces + the elements the existing
 * plugins inject (variations, qty, ATC, stock, accordions). Nothing here
 * re-implements plugin behaviour.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

.mwp-wrap {
	--mwp-fg: #141416;
	--mwp-muted: rgba(20, 20, 22, 0.55);
	--mwp-soft: rgba(20, 20, 22, 0.75);
	--mwp-border: rgba(20, 20, 22, 0.1);
	--mwp-border-soft: rgba(20, 20, 22, 0.06);
	--mwp-bg-soft: #f7f8f9;
	--mwp-sale: #c5453b;
	--mwp-amber: #d97706;
	--mwp-radius: 4px;
	--mwp-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
	--mwp-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

	color: var(--mwp-fg);
	font-family: var(--mwp-sans);
	line-height: 1.55;
}
.mwp-wrap *,
.mwp-wrap *::before,
.mwp-wrap *::after { box-sizing: border-box; }
.mwp-wrap a { color: inherit; text-decoration: none; }

/* Neutralise WooCommerce's default 48% float columns - our grid owns layout. */
.mwp-wrap .mwp-gallery,
.mwp-wrap .mwp-buybox,
.mwp-wrap div.images,
.mwp-wrap div.summary,
.mwp-wrap .entry-summary,
.mwp-wrap .woocommerce-product-gallery {
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
}

/* ============================================================ BREADCRUMB */
.mwp-breadcrumb {
	padding: 18px 48px 0;
	font-family: var(--mwp-mono);
	font-size: 11px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--mwp-muted);
}
.mwp-breadcrumb a { color: var(--mwp-muted); }
.mwp-breadcrumb a:hover { color: var(--mwp-fg); }
.mwp-breadcrumb .sep { margin: 0 8px; opacity: .5; }

/* ============================================================ AREA GRID */
.mwp-area {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(420px, 1fr);
	/* Gallery spans both rows on the left; head sits top-right, buy box below it. */
	grid-template-areas: "gallery head" "gallery buy";
	column-gap: clamp(2rem, 4vw, 4rem);
	row-gap: 18px;
	align-items: start;
	padding: 28px 48px 48px;
}
.mwp-head { grid-area: head; min-width: 0; }
.mwp-gallery { grid-area: gallery; min-width: 0; }
.mwp-buybox { grid-area: buy; min-width: 0; }
/* The gallery spans both rows, so its grid area is as tall as the whole right
   column (head + buy box + accordions). Pinning the gallery there lets the image
   stay in view while the taller right column scrolls, until the area ends. */
@media (min-width: 1101px) {
	/* Offset clears the ~162px sticky site header so the pinned gallery (and the
	   favorite heart at its top-right) sits fully below it, with breathing room. */
	.mwp-wrap .mwp-gallery { position: sticky; top: 174px; align-self: start; }
}

/* ============================================================ HEADER */
.mwp-buybox__eyebrow {
	font-family: var(--mwp-mono);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--mwp-muted);
	margin-bottom: 12px;
}
.mwp-buybox__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 12px;
}
.mwp-wrap .mwp-buybox__title.product_title {
	margin: 0;
	font-family: var(--mwp-sans) !important;
	font-size: clamp(1.5rem, 2.1vw, 2rem);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.022em;
	text-transform: none;
	color: var(--mwp-fg) !important;
	flex: 1 1 auto;
	min-width: 0;
}
.mwp-buybox__price,
.mwp-buybox__price .amount,
.mwp-buybox__price bdi,
.mwp-buybox__price ins {
	font-family: var(--mwp-mono);
	font-size: clamp(1.25rem, 1.7vw, 1.55rem);
	font-weight: 700;
	color: var(--mwp-fg);
	text-decoration: none;
	white-space: nowrap;
}
.mwp-buybox__price { flex: 0 0 auto; }
.mwp-buybox__price del { color: var(--mwp-muted); font-weight: 500; font-size: .72em; margin-right: 6px; opacity: .7; }
.mwp-buybox__price ins { color: var(--mwp-sale); }

/* Rating row */
.mwp-ratingrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
/* The head heart is mobile-only - on desktop the gallery heart is used. */
.mwp-head-heart { display: none; }
.mwp-head-heart .mwa-heart-row { margin: 0 !important; }
.mwp-rating { display: inline-flex; align-items: center; gap: 10px; }
.mwp-rating__stars .star-rating { color: var(--mwp-amber); font-size: 15px; margin: 0; }
.mwp-rating__stars .star-rating::before { color: rgba(217, 119, 6, .22); }
.mwp-rating__count { font-family: var(--mwp-mono); font-size: 11px; letter-spacing: 1.2px; color: var(--mwp-muted); }
.mwp-rating:hover .mwp-rating__count { color: var(--mwp-fg); }

/* ============================================================ SUMMARY (delegated) */
/* Short description (excerpt) injected by WC summary @20. */
.mwp-buybox .woocommerce-product-details__short-description {
	color: var(--mwp-soft);
	font-size: 15px;
	margin: 18px 0;
}
.mwp-buybox .woocommerce-product-details__short-description p:last-child { margin: 0; }

/* Variation rows (Variation Swatches plugin renders the controls). */
.mwp-buybox .variations { width: 100%; border: 0; margin: 18px 0 8px; border-collapse: collapse; background: transparent; }
.mwp-buybox .variations tbody,
.mwp-buybox .variations tr,
.mwp-buybox .variations td,
.mwp-buybox .variations th { display: block; width: 100%; border: 0; background: transparent; padding: 0; }
.mwp-buybox .variations th,
.mwp-buybox .variations td.label,
.mwp-buybox .variations label {
	font-family: var(--mwp-mono);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	color: var(--mwp-fg);
	margin: 0 0 8px;
	padding: 16px 0 0;
}
/* The Variation Swatches plugin makes the label cell a flex row (attribute name +
   selected value name). On narrow widths both flex items shrink and wrap into two
   misaligned columns. Force the cell to block + flow the name and value inline so
   "LABEL : Selected value" sits on one baseline and wraps as normal text. */
.mwp-buybox .variations th,
.mwp-buybox .variations td.label { display: block !important; }
.mwp-buybox .variations th > label,
.mwp-buybox .variations td.label > label { display: inline; margin: 0; padding: 0; }
.mwp-buybox .woo-selected-variation-item-name {
	display: inline;
	color: var(--mwp-muted);
	font-weight: 600;
	letter-spacing: 0.6px;
}
.mwp-buybox .variations td { padding-bottom: 6px; }
/* Dropdown (select-type) attributes, e.g. Plate Size. Force ink text - iOS Safari
   renders an unstyled select's value in its system blue. Clean, full-width control. */
.mwp-buybox .variations select {
	width: 100%;
	color: var(--mwp-fg) !important;
	-webkit-text-fill-color: var(--mwp-fg) !important;
	background: #fff;
	border: 1px solid var(--mwp-border);
	border-radius: var(--mwp-radius);
	padding: 12px 14px;
	font-family: var(--mwp-sans);
	font-size: 15px;
}
/* Variation "button" chips (Additional Insert, Loop, sizes, etc.). Match the ref:
   unselected = transparent with a faint ink border; selected = ink fill, white text;
   squared (radius 0). The Variation Swatches plugin styles these grey by default, so
   override (scoped to .mwp-buybox so the live Elementor PDP keeps its own styling). */
.mwp-buybox .button-variable-item,
.mwp-buybox li.button-variable-item {
	background: transparent !important;
	color: var(--mwp-fg) !important;
	border: 1px solid rgba(20, 20, 22, 0.14) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 11px 16px !important;
	transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.mwp-buybox .button-variable-item:hover { border-color: var(--mwp-fg) !important; }
.mwp-buybox .button-variable-item.selected {
	background: var(--mwp-fg) !important;
	color: #fff !important;
	border-color: var(--mwp-fg) !important;
}
/* WooCommerce's "Clear" reset link is relocated by JS (placeResetLink) into the
   first attribute label row, where we float it right so it reads as a placed reset
   ("COLOR ... CLEAR") instead of an orphan floating above the price. Low-emphasis:
   small mono caps, muted. */
.mwp-buybox .reset_variations {
	float: right;
	margin: 0 0 0 12px;
	font-family: var(--mwp-mono);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--mwp-muted);
	text-decoration: none;
	border-bottom: 1px solid rgba(20, 20, 22, 0.25);
	padding-bottom: 1px;
	line-height: 1.6;
}
.mwp-buybox .reset_variations:hover { color: var(--mwp-fg); border-bottom-color: var(--mwp-fg); }
/* Variation Swatches draws a CSS tooltip via [data-wvstooltip]::before/::after. Its
   absolutely-positioned ::before (min-width 100px, max-content) overflows the viewport
   on our buy-box layout, creating phantom horizontal scroll / white space on the right.
   We don't want the tooltip here anyway - suppress it. Scoped to .mwp-wrap so the live
   Elementor PDP keeps its tooltips. */
.mwp-wrap [data-wvstooltip]::before,
.mwp-wrap [data-wvstooltip]::after,
.mwp-wrap .wvs-has-image-tooltip::before,
.mwp-wrap .wvs-has-image-tooltip::after { content: none !important; display: none !important; }
/* Hide the WooCommerce variation unit price - it's redundant (head price + the live
   TOTAL both show it) and was inheriting a stray gold color. */
.mwp-buybox .single_variation .price { display: none; }
.mwp-buybox .woocommerce-variation-availability { font-size: 13px; color: var(--mwp-muted); }

/* Qty + Add to Cart */
.mwp-buybox form.cart { margin: 20px 0 0; }
.mwp-buybox .quantity { display: inline-flex; align-items: stretch; border: 1px solid var(--mwp-border); border-radius: var(--mwp-radius); margin-right: 12px; vertical-align: top; }
.mwp-buybox .quantity input.qty {
	width: 58px; height: 48px; border: 0; text-align: center; background: transparent;
	font-family: var(--mwp-mono); font-size: 15px; color: var(--mwp-fg);
	-moz-appearance: textfield; appearance: textfield;
}
.mwp-buybox .quantity input.qty::-webkit-outer-spin-button,
.mwp-buybox .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.mwp-wrap .mwp-buybox button.single_add_to_cart_button,
.mwp-wrap .mwp-buybox .single_add_to_cart_button {
	min-width: 240px;
	padding: 20px 32px !important;
	background: var(--mwp-fg) !important;
	background-image: none !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: var(--mwp-radius) !important;
	box-shadow: none !important;
	text-shadow: none !important;
	cursor: pointer;
	font-family: var(--mwp-mono) !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	letter-spacing: 0.18em !important;
	text-transform: uppercase !important;
	line-height: 1 !important;
	height: auto !important;
}
.mwp-wrap .mwp-buybox .single_add_to_cart_button:disabled,
.mwp-wrap .mwp-buybox .single_add_to_cart_button.disabled { opacity: .5; cursor: not-allowed; }
.mwp-wrap .mwp-buybox .single_add_to_cart_button:not(:disabled):not(.disabled):hover,
.mwp-wrap .mwp-buybox .single_add_to_cart_button:not(:disabled):not(.disabled):focus { background: #000 !important; color: #fff !important; }
.mwp-buybox .woocommerce-variation-add-to-cart { display: block; margin-top: 12px; }

/* Product meta (SKU / cats) injected @40 */
.mwp-buybox .product_meta { border-top: 1px solid var(--mwp-border); margin-top: 20px; padding-top: 14px; font-size: 12px; color: var(--mwp-muted); line-height: 1.6; }

/* ============================================================ TRUST STRIP (native, configurable) */
.mwp-trust {
	display: flex;
	margin: 8px 0 20px;
	width: 100%;
}
.mwp-trust__item {
	flex: 1 1 0;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 18px;
	min-width: 0;
	background: #fff;
	border: 1px solid var(--mwp-border);
	border-right-width: 0;
}
.mwp-trust__item:last-child { border-right-width: 1px; }
.mwp-trust__icon { width: 26px; height: 26px; flex-shrink: 0; color: var(--mwp-fg); }
/* The US flag is a real 19:10 SVG - size it by height (auto width) and add a hairline. */
/* Desktop (icon-left): match the line icons' WIDTH so the text starts at the same x
   across all three badges. */
.mwp-trust__icon--flag { width: 26px !important; height: auto !important; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1); }
.mwp-trust__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mwp-trust__title { font-family: var(--mwp-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mwp-fg); line-height: 1.25; }
.mwp-trust__sub { font-size: 13px; color: var(--mwp-muted); line-height: 1.4; }
@media (max-width: 600px) {
	/* Stay horizontal (3-up) on mobile per the ref - stack the icon over the title,
	   center it, and drop the subtitle so each badge is compact and the strip stays
	   one row instead of three stacked rows. */
	.mwp-trust__item { flex-direction: column; align-items: center; text-align: center; gap: 7px; padding: 14px 6px; }
	.mwp-trust__icon { margin-top: 0; width: 22px; height: 22px; }
	/* Mobile (icon over title): match the line icons' HEIGHT so all titles align. */
	.mwp-trust__icon--flag { height: 22px !important; width: auto !important; }
	.mwp-trust__title { font-size: 9.5px; letter-spacing: 0.05em; line-height: 1.2; }
	.mwp-trust__sub { display: none; }
}

/* ============================================================ ACCORDIONS (native <details>) */
.mwp-accordions { margin-top: 28px; border-top: 1px solid var(--mwp-border); }
.mwp-accordion { border-bottom: 1px solid var(--mwp-border); }
.mwp-accordion__head {
	display: flex; align-items: center; justify-content: space-between;
	cursor: pointer; padding: 16px 2px; list-style: none;
	font-family: var(--mwp-mono); font-size: 12px; font-weight: 700;
	letter-spacing: 1.4px; text-transform: uppercase; color: var(--mwp-fg);
}
.mwp-accordion__head::-webkit-details-marker { display: none; }
.mwp-accordion__mark { position: relative; width: 12px; height: 12px; flex-shrink: 0; }
.mwp-accordion__mark::before,
.mwp-accordion__mark::after { content: ''; position: absolute; background: var(--mwp-muted); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.mwp-accordion__mark::before { width: 12px; height: 1.5px; }
.mwp-accordion__mark::after { width: 1.5px; height: 12px; transition: opacity .2s; }
.mwp-accordion[open] .mwp-accordion__mark::after { opacity: 0; }
.mwp-accordion__body { padding: 0 2px 18px; font-size: 14px; line-height: 1.65; color: var(--mwp-soft); }
.mwp-accordion__body p { margin: 0 0 12px; }
.mwp-accordion__body p:last-child { margin: 0; }
.mwp-accordion__body ul { margin: 0 0 12px; padding-left: 18px; }
.mwp-accordion__body strong { color: var(--mwp-fg); }
.mwp-accordion__body a { color: var(--mwp-amber); text-decoration: underline; }

/* ============================================================ ADD-ONS (midwest-related-products .mwa-addons) */
.mwp-buybox .mwa-addons { margin: 22px 0; width: 100%; }
.mwp-buybox .mwa-addons__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.mwp-buybox .mwa-addons__label,
.mwp-buybox .mwa-addons__hint {
	font-family: var(--mwp-mono); font-size: 10.5px; font-weight: 700;
	letter-spacing: 1.4px; text-transform: uppercase;
}
.mwp-buybox .mwa-addons__label { color: var(--mwp-fg); }
.mwp-buybox .mwa-addons__hint { color: var(--mwp-muted); font-weight: 500; }
.mwp-buybox .mwa-addons__rows { display: flex; flex-direction: column; }
.mwp-buybox .mwa-addons__row {
	display: flex; align-items: center; gap: 12px;
	padding: 10px 0; border-top: 1px solid var(--mwp-border);
}
.mwp-buybox .mwa-addons__row:last-child { border-bottom: 1px solid var(--mwp-border); }
.mwp-buybox .mwa-addons__check { position: relative; flex: 0 0 auto; width: 20px; height: 20px; }
.mwp-buybox .mwa-addons__checkbox { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.mwp-buybox .mwa-addons__box {
	display: flex; align-items: center; justify-content: center;
	width: 20px; height: 20px; border: 1.5px solid var(--mwp-fg); border-radius: 3px;
	background: #fff; color: transparent; pointer-events: none;
}
.mwp-buybox .mwa-addons__checkbox:checked + .mwa-addons__box { background: var(--mwp-fg); color: #fff; }
.mwp-buybox .mwa-addons__thumb,
.mwp-buybox .mwa-addons__row img { flex: 0 0 auto; width: 44px; height: 44px; object-fit: cover; border: 1px solid var(--mwp-border-soft); border-radius: var(--mwp-radius); }
.mwp-buybox .mwa-addons__name,
.mwp-buybox .mwa-addons__title { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 600; color: var(--mwp-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mwp-buybox .mwa-addons__price { flex: 0 0 auto; margin-left: auto; font-family: var(--mwp-mono); font-size: 13px; font-weight: 700; color: var(--mwp-muted); white-space: nowrap; }
.mwp-buybox .mwa-addons__row.is-selected .mwa-addons__price,
.mwp-buybox .mwa-addons__checkbox:checked ~ .mwa-addons__price { color: var(--mwp-fg); }

/* ============================================================ QTY / TOTAL / ATC ROW */
.mwp-buyrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 18px 0; }
.mwp-qtygroup { display: flex; align-items: center; gap: 12px; }
.mwp-qty-label { font-family: var(--mwp-mono); font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--mwp-fg); }
.mwp-buybox .quantity { display: inline-flex; align-items: stretch; margin: 0; border: 1px solid var(--mwp-border); border-radius: var(--mwp-radius); overflow: hidden; }
.mwp-buybox .quantity input.qty { border-left: 1px solid var(--mwp-border); border-right: 1px solid var(--mwp-border); }
.mwp-qty-btn {
	width: 44px; height: 46px; flex: 0 0 auto; border: 0; background: #fff !important;
	color: var(--mwp-fg) !important; font-family: var(--mwp-mono); font-size: 18px; line-height: 1;
	cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: none !important;
}
.mwp-qty-btn:hover,
.mwp-qty-btn:focus { background: var(--mwp-bg-soft) !important; color: var(--mwp-fg) !important; }
.mwp-wrap .mwp-buybox .single_add_to_cart_button { width: 100%; display: block; min-width: 0; }
.mwp-total { display: flex; align-items: baseline; gap: 10px; }
.mwp-total__label { font-family: var(--mwp-mono); font-size: 11px; font-weight: 500; letter-spacing: 1.4px; text-transform: uppercase; color: var(--mwp-muted); }
.mwp-total__amt { font-family: var(--mwp-mono); font-size: clamp(1.4rem, 2vw, 1.7rem); font-weight: 700; color: var(--mwp-fg); }

/* ============================================================ WISHLIST HEART
   Owned by midwest-armor-notify (its [mwa_wishlist_heart] shortcode renders inside
   .mwp-gallery). We do NOT restyle the button - the plugin's wishlist-heart.css
   owns its look + saved-state. We only pin its row over the top-right of the
   gallery. */
.mwp-gallery { position: relative; }
.mwp-gallery .mwa-heart-row {
	position: absolute; top: 12px; right: 12px; z-index: 4; margin: 0 !important;
}

/* ============================================================ AFTER SUMMARY */
.mwp-wrap .woocommerce-tabs { display: none !important; }
/* Hide the Searchanise "Related Product" carousel - we use [midwest_related_products]. */
.mwp-wrap .snize-recommendation { display: none !important; }
.mwp-related { padding: 40px 48px 0; margin-top: 8px; border-top: 1px solid var(--mwp-border); }
.mwp-related:empty { display: none; padding: 0; border: 0; }
.mwp-wrap .related.products,
.mwp-wrap .upsells.products {
	padding: 40px 48px 0;
	margin-top: 8px;
	border-top: 1px solid var(--mwp-border);
}
.mwp-wrap .related.products > h2,
.mwp-wrap .upsells.products > h2 {
	font-family: var(--mwp-mono); font-size: 13px; font-weight: 700;
	letter-spacing: 1.4px; text-transform: uppercase; margin: 0 0 20px;
}

/* ============================================================ REVIEWS (klaviyo) */
.mwp-reviews { padding: 32px 48px 64px; margin-top: 8px; border-top: 1px solid var(--mwp-border); scroll-margin-top: 100px; }

/* ============================================================ REFINEMENTS */
/* Stock indicator: the notify plugin's styled .estock line is the indicator
   (mono caps + signal dot + lead-time body, with IN STOCK / LOW / BACKORDER /
   OUT OF STOCK states). It self-updates per variation via its data-variant-map,
   so it covers simple AND variable products. Show it, and suppress WooCommerce's
   raw default stock text (the gold "In stock" / "Available on backorder" / the
   per-variation availability line) so the two don't double up. */
.mwp-buybox > .estock { display: flex !important; }
.mwp-buybox p.stock,
.mwp-buybox .woocommerce-variation-availability { display: none !important; }
/* Variable products: the .estock line is per-variation, so it must NOT show the
   default product-level status before a variation resolves, and JS moves it down
   under the selectors (out of the spot above the COLOR swatches). Hidden until
   the product carries .mwp-variation-chosen. Simple products are unaffected. */
.mwp-product.product-type-variable .mwp-buybox .estock { display: none !important; }
.mwp-product.product-type-variable.mwp-variation-chosen .mwp-buybox .estock { display: flex !important; }
/* Tighten the gap above the variation form (COLOR). */
.mwp-buybox form.cart { margin-top: 8px; }
/* Add-on rows: the plugin's Elementor-context CSS gives the row a negative
   horizontal margin, so it overflows our clean container - force it to fit. */
.mwp-buybox .mwa-addons,
.mwp-buybox .mwa-addons__rows { width: 100%; margin-left: 0; margin-right: 0; }
.mwp-buybox .mwa-addons__row { width: 100% !important; max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }
.mwp-buybox .mwa-addons__name { flex: 1 1 0; }
.mwp-buybox .mwa-addons__select,
.mwp-buybox .mwa-addons__row select { flex: 0 1 auto; min-width: 0; max-width: 130px; }
.mwp-buybox .mwa-addons__price { flex: 0 0 auto; padding-left: 6px; }

/* Fully out-of-stock products: the notify (restock) form is the CTA, so hide the
   dead greyed Add-to-Cart button to avoid a confusing duplicate. Scoped to the
   product's .outofstock class so it never hides the button mid-selection on an
   in-stock variable product. */
.mwp-product.outofstock form.cart .single_add_to_cart_button { display: none !important; }

/* ============================================================ MOBILE STICKY CTA */
.mwp-stickybar { display: none; }
@media (max-width: 1100px) {
	.mwp-stickybar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
		display: flex; align-items: center; gap: 14px;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
		background: #fff; border-top: 1px solid var(--mwp-border);
		/* No shadow while hidden - its upward spread bleeds a translucent line into the
		   bottom of the viewport even when the bar is translated off-screen. */
		box-shadow: none;
		transform: translateY(120%); transition: transform .24s ease, box-shadow .24s ease;
		pointer-events: none;
	}
	.mwp-stickybar.is-visible {
		transform: translateY(0);
		box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.07);
		pointer-events: auto;
	}
	.mwp-stickybar__info { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
	.mwp-stickybar__label { font-family: var(--mwp-mono); font-size: 9px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--mwp-muted); }
	.mwp-stickybar__total { font-family: var(--mwp-mono); font-size: 17px; font-weight: 700; color: var(--mwp-fg); white-space: nowrap; }
	.mwp-stickybar__btn {
		flex: 1 1 auto; margin-left: auto;
		background: var(--mwp-fg); color: #fff; border: 0; border-radius: var(--mwp-radius); cursor: pointer;
		padding: 15px 18px;
		font-family: var(--mwp-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
	}
	/* Override the theme's global button:hover/:focus { background: rgb(204,51,102) }
	   (pink) so the CTA stays ink on hover/focus/tap. */
	.mwp-stickybar__btn:hover,
	.mwp-stickybar__btn:focus,
	.mwp-stickybar__btn:active { background: #000 !important; color: #fff !important; }
	/* No layout-shifting padding reserve: toggling page height on scroll fights iOS
	   Safari's dynamic address bar and leaves a white strip. The bar simply overlays
	   the last sliver of content at the very bottom, which is acceptable. */
}

/* ============================================================ RESPONSIVE */
@media (max-width: 1100px) {
	/* Single column: title + price + rating stack ABOVE the gallery (ref design),
	   then the gallery, then the rest of the buy box. */
	.mwp-area {
		grid-template-columns: 1fr;
		grid-template-areas: "head" "gallery" "buy";
		column-gap: 0; row-gap: 22px;
		padding: 20px 16px 40px;
	}
	/* Heart moves inline with the rating (rating left, heart right); gallery heart hidden.
	   The shortcode sets display:inline-flex inline, so !important is needed to hide it. */
	.mwp-head-heart { display: inline-flex; }
	.mwp-gallery .mwa-heart-row { display: none !important; }
	.mwp-breadcrumb { padding: 16px 16px 0; }
	.mwp-reviews,
	.mwp-related,
	.mwp-wrap .related.products,
	.mwp-wrap .upsells.products { padding-left: 16px; padding-right: 16px; }
}

/* Mobile: switch the add-on row to the same grid the live site uses so the full
   name wraps on row 1 (with the price pinned top-right) and the Select dropdown
   sits on row 2 under the name. align-items:center + a tight 9px row-gap keeps
   the title-to-dropdown gap consistent no matter how many lines the name wraps. */
@media (max-width: 600px) {
	.mwp-buybox .mwa-addons__row {
		display: grid;
		grid-template-columns: 20px 44px 1fr auto;
		grid-template-areas: "chk thumb name price" "chk thumb opt opt";
		column-gap: 12px; row-gap: 9px; align-items: center;
	}
	.mwp-buybox .mwa-addons__check { grid-area: chk; }
	.mwp-buybox .mwa-addons__thumb,
	.mwp-buybox .mwa-addons__row img { grid-area: thumb; }
	.mwp-buybox .mwa-addons__name {
		grid-area: name; min-width: 0;
		white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.3;
	}
	.mwp-buybox .mwa-addons__price { grid-area: price; margin-left: 0; align-self: center; }
	.mwp-buybox .mwa-addons__opt { grid-area: opt; }
	.mwp-buybox .mwa-addons__opt select,
	.mwp-buybox .mwa-addons__opt .mwa-addons__select { width: 100%; max-width: none; margin-left: 0; }
}
