/* MoonLight_X — woocommerce-ui.css
   Quick View · Cart Drawer · Swatches · Wishlist · Toast
   Loaded on every page (cart drawer / wishlist appear sitewide). */

/* ─── Shared: spinner ──────────────────────────────────────────────── */
@keyframes mlx-spin { to { transform: rotate(360deg); } }
.mlx-spin {
  width: 32px; height: 32px;
  border: 3px solid rgba(0,0,0,.08);
  border-top-color: var(--mlx-color-accent,#e84545);
  border-radius: 50%;
  animation: mlx-spin .7s linear infinite;
}

/* Shared: backdrop + panel approach */
.mlx-qv, .mlx-drawer { pointer-events: none; }
.mlx-qv.is-open,
.mlx-drawer.is-open { pointer-events: auto; }

body.mlx-modal-open,
body.mlx-drawer-open { overflow: hidden; }
body { overflow-x: hidden; }
/* Prevent grid/flex children from expanding beyond viewport */
.mlx-main-content,
.mlx-page-content { min-width: 0; overflow: hidden; }
/* Elementor full-width container must not overflow page */
.e-con-full { min-width: 0; max-width: 100%; overflow-x: clip; }

/* ═══════════════════════════════════════════════════════════════════
   QUICK VIEW MODAL
══════════════════════════════════════════════════════════════════ */
.mlx-qv {
  position: fixed; inset: 0; z-index: 800;
  display: flex; align-items: center; justify-content: center;
}

.mlx-qv__bg {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .3s ease;
}
.mlx-qv.is-open .mlx-qv__bg { opacity: 1; }

.mlx-qv__wrap {
  position: relative; z-index: 1;
  width: min(960px, 94vw);
  max-height: 90vh;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  overflow-y: auto;
  transform: scale(.94) translateY(16px);
  opacity: 0;
  transition: transform .3s cubic-bezier(.34,1.28,.64,1), opacity .25s ease;
  box-shadow: 0 32px 80px rgba(0,0,0,.2);
}
.mlx-qv.is-open .mlx-qv__wrap { transform: scale(1) translateY(0); opacity: 1; }

.mlx-qv__close {
  position: absolute; top: 14px; right: 14px; z-index: 10;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.06);
  border: none; border-radius: 50%;
  cursor: pointer; color: #555;
  transition: background .2s, color .2s;
}
.mlx-qv__close:hover { background: rgba(0,0,0,.12); color: #000; }

.mlx-qv__inner { padding: 40px; min-height: 200px; }

.mlx-qv__loading {
  display: flex; align-items: center; justify-content: center;
  min-height: 200px;
}

.mlx-qv__error {
  text-align: center; color: #888; padding: 2rem;
}

/* Product layout inside modal */
.mlx-qv__product {
  display: grid;
  gap: 2rem;
}
@media (min-width: 640px) {
  .mlx-qv__product { grid-template-columns: 1fr 1fr; }
}

/* Gallery */
.mlx-qv__main-image img {
  width: 100%; height: auto;
  border-radius: 10px;
  display: block;
}
.mlx-qv__thumbs {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px;
}
.mlx-qv__thumb {
  width: 64px; height: 64px;
  border-radius: 6px; overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color .2s;
}
.mlx-qv__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mlx-qv__thumb.is-active { border-color: var(--mlx-color-primary,#0a0a0a); }
.mlx-qv__thumb:hover { border-color: var(--mlx-color-accent,#e84545); }

/* Summary */
.mlx-qv__summary { display: flex; flex-direction: column; gap: 1rem; }
.mlx-qv__title { font-size: 1.5rem; font-weight: 700; line-height: 1.2; margin: 0; }
.mlx-qv__price { font-size: 1.5rem; font-weight: 700; }
.mlx-qv__price del { opacity: .45; font-size: .8em; margin-right: .25rem; }
.mlx-qv__price ins { text-decoration: none; color: var(--mlx-color-accent,#e84545); }
.mlx-qv__desc { font-size: .9375rem; color: #555; line-height: 1.7; }

.mlx-qv__add-to-cart .button,
.mlx-qv__add-to-cart .single_add_to_cart_button {
  display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 1rem 1.5rem;
  background: var(--mlx-color-primary,#0a0a0a); color: #fff;
  border: none; border-radius: 6px;
  font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: background .2s;
}
.mlx-qv__add-to-cart .button:hover,
.mlx-qv__add-to-cart .single_add_to_cart_button:hover {
  background: var(--mlx-color-accent,#e84545);
}

.mlx-qv__meta { font-size: .8125rem; color: #888; display: flex; flex-direction: column; gap: .25rem; }
.mlx-qv__meta-item strong { color: #555; }

.mlx-qv__full-link {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .875rem; font-weight: 500;
  color: var(--mlx-color-accent,#e84545);
  transition: gap .2s;
}
.mlx-qv__full-link:hover { gap: .6rem; }

/* Quick-view thumbnail gallery JS */
.mlx-qv__thumb { cursor: pointer; }

/* ═══════════════════════════════════════════════════════════════════
   CART PAGE
══════════════════════════════════════════════════════════════════ */
.mlx-cart-page { padding-top:2rem; padding-bottom:3rem; }

/* Two-column layout: items left, totals right */
.mlx-cart-layout {
	display:grid;
	grid-template-columns:1fr 340px;
	gap:2rem;
	align-items:start;
}

/* Cart items */
.mlx-cart-table { width:100%; border-collapse:collapse; }
.mlx-cart-table thead th {
	padding:.625rem .75rem;
	font-size:.75rem; font-weight:700; text-transform:uppercase;
	letter-spacing:.05em; color:#6b7280;
	border-bottom:2px solid #f1f5f9;
	text-align:left;
}
.mlx-cart-table td {
	padding:.875rem .75rem;
	border-bottom:1px solid #f1f5f9;
	vertical-align:middle;
	font-size:.9375rem;
}
.mlx-cart-table .product-remove { width:32px; }
.mlx-cart-table .product-thumbnail { width:72px; }
.mlx-cart-table .product-thumbnail img { width:60px; height:60px; object-fit:cover; border-radius:6px; display:block; }
.mlx-cart-table .product-name a { color:inherit; text-decoration:none; font-weight:500; }
.mlx-cart-table .product-name a:hover { color:var(--mlx-color-primary,#0a0a0a); }
.mlx-cart-table .product-remove a { display:flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:50%; background:#f1f5f9; color:#9ca3af; text-decoration:none; font-size:16px; transition:background .15s,color .15s; }
.mlx-cart-table .product-remove a:hover { background:#fee2e2; color:#dc2626; }

/* Actions row */
.mlx-cart-actions { display:flex; align-items:center; gap:.75rem; margin-top:1.25rem; flex-wrap:wrap; }
.mlx-coupon { display:flex; gap:.5rem; flex:1; min-width:200px; }
.mlx-coupon .input-text { flex:1; border:1.5px solid #e5e7eb; border-radius:6px; padding:.625rem .875rem; font-size:.9375rem; outline:none; transition:border-color .15s; }
.mlx-coupon .input-text:focus { border-color:var(--mlx-color-primary,#0a0a0a); }

/* Sidebar — cart totals */
.mlx-cart-sidebar { position:sticky; top:1.5rem; }
.mlx-cart-sidebar .cart_totals { background:#f9fafb; border:1px solid #f1f5f9; border-radius:12px; padding:1.5rem; }
.mlx-cart-sidebar .cart_totals h2 { font-size:1rem; font-weight:700; margin:0 0 1rem; }
.mlx-cart-sidebar table { width:100%; border-collapse:collapse; }
.mlx-cart-sidebar table th,
.mlx-cart-sidebar table td { padding:.5rem 0; border-bottom:1px solid #f1f5f9; font-size:.9375rem; }
.mlx-cart-sidebar table th { font-weight:600; text-align:left; width:40%; }
.mlx-cart-sidebar .order-total th,
.mlx-cart-sidebar .order-total td { font-size:1.0625rem; font-weight:700; border-bottom:none; padding-top:.875rem; }
.mlx-cart-sidebar .wc-proceed-to-checkout { margin-top:1.25rem; }
.mlx-cart-sidebar .wc-proceed-to-checkout .checkout-button {
	display:block; width:100%; padding:.875rem; text-align:center;
	background:var(--mlx-color-primary,#0a0a0a); color:#fff;
	border-radius:8px; text-decoration:none; font-weight:600; font-size:1rem;
	transition:opacity .2s;
}
.mlx-cart-sidebar .checkout-button:hover { opacity:.85; }

/* Cross-sells — full width below cart */
.mlx-cart-cross-sells { margin-top:3rem; padding-top:2rem; border-top:1px solid #f1f5f9; }
.mlx-cart-cross-sells__title { font-size:1.25rem; font-weight:700; margin-bottom:1.5rem; }

/* Force grid — beat WooCommerce .woocommerce-cart ul.products overrides */
.mlx-cart-cross-sells .products.mlx-cs-grid,
.woocommerce-cart .mlx-cart-cross-sells .products,
.woocommerce-cart .mlx-cart-cross-sells ul.products {
	display:grid !important;
	grid-template-columns:repeat(var(--mlx-cs-cols, 4), 1fr) !important;
	gap:1.5rem !important;
	list-style:none !important;
	margin:0 !important;
	padding:0 !important;
	float:none !important;
	width:100% !important;
}
/* Cap image height so giant product images don't dominate */
.mlx-cart-cross-sells .mlx-product-card__thumb,
.mlx-cart-cross-sells .woocommerce-loop-product__link img,
.mlx-cart-cross-sells .attachment-woocommerce_thumbnail {
	height:200px !important;
	width:100% !important;
	object-fit:cover !important;
	display:block !important;
}
/* Ensure list items don't float */
.mlx-cart-cross-sells .products li,
.mlx-cart-cross-sells .products .product { float:none !important; width:auto !important; clear:none !important; }

@media(max-width:900px) {
	.mlx-cart-cross-sells .products.mlx-cs-grid,
	.woocommerce-cart .mlx-cart-cross-sells ul.products { grid-template-columns:repeat(3,1fr) !important; }
}
@media(max-width:600px) {
	.mlx-cart-cross-sells .products.mlx-cs-grid,
	.woocommerce-cart .mlx-cart-cross-sells ul.products { grid-template-columns:repeat(2,1fr) !important; }
	.mlx-cart-cross-sells .mlx-product-card__thumb,
	.mlx-cart-cross-sells .attachment-woocommerce_thumbnail { height:150px !important; }
}

/* Responsive cart */
@media(max-width:900px) {
	.mlx-cart-layout { grid-template-columns:1fr; }
	.mlx-cart-sidebar { position:static; }
}

/* ── Qty +/- buttons — shared base (all contexts) ── */
/* .mlx-qty-wrap = from PHP template, .quantity = product page fallback */
.mlx-qty-wrap,
.quantity.mlx-qty-init {
	display:inline-flex !important; align-items:center; overflow:hidden;
	border:1.5px solid var(--mlx-input-border,#e5e7eb); border-radius:8px; background:#fff;
	width:fit-content;
}
.mlx-qty-btn {
	display:flex; align-items:center; justify-content:center;
	width:38px; height:42px; flex-shrink:0;
	background:var(--mlx-input-bg,#f7f7f7); border:none; border-radius:0;
	cursor:pointer; color:#555; transition:background .15s, color .15s;
}
.mlx-qty-btn:hover { background:#eee; color:var(--mlx-color-primary,#0a0a0a); }
.mlx-qty-btn:active { background:#e5e5e5; }
.mlx-qty-btn svg { width:12px; height:12px; pointer-events:none; }
/* Input inside both wrappers */
.mlx-qty-input,
.mlx-qty-wrap .qty,
.quantity.mlx-qty-init input[type="number"] {
	width:50px !important; height:42px !important; text-align:center !important;
	border:none !important;
	border-left:1.5px solid var(--mlx-input-border,#e5e7eb) !important;
	border-right:1.5px solid var(--mlx-input-border,#e5e7eb) !important;
	border-radius:0 !important; padding:0 !important;
	font-size:1rem !important; font-weight:600 !important;
	background:#fff !important; outline:none !important;
	-moz-appearance:textfield !important;
}
.mlx-qty-input::-webkit-inner-spin-button,
.mlx-qty-wrap .qty::-webkit-inner-spin-button,
.quantity.mlx-qty-init input::-webkit-inner-spin-button { display:none !important; }
/* Cart table — slightly smaller */
.mlx-cart-table .mlx-qty-wrap,
.mlx-cart-table .quantity.mlx-qty-init { height:38px; }
.mlx-cart-table .mlx-qty-btn { width:32px; height:36px; }
.mlx-cart-table .mlx-qty-input,
.mlx-cart-table .mlx-qty-wrap .qty,
.mlx-cart-table .quantity.mlx-qty-init input[type="number"] { width:44px !important; height:36px !important; font-size:.875rem !important; }

/* ── Mobile cart — matches reference (img 3) ── */
@media(max-width:640px) {
	/* Remove table structure entirely */
	.mlx-cart-table thead { display:none; }
	.mlx-cart-table,
	.mlx-cart-table tbody { display:block; }
	.mlx-cart-table tr.woocommerce-cart-form__cart-item {
		display:grid;
		grid-template-columns:72px 1fr 28px;
		grid-template-rows:auto auto auto auto;
		column-gap:.75rem;
		row-gap:.2rem;
		padding:.875rem 0;
		border-bottom:1px solid #f1f5f9;
		align-items:start;
	}
	/* Thumbnail spans all rows */
	.mlx-cart-table td.product-thumbnail {
		grid-column:1; grid-row:1/5;
		padding:0; border:none;
		display:flex; align-items:flex-start;
	}
	.mlx-cart-table td.product-thumbnail img { width:72px; height:72px; object-fit:cover; border-radius:8px; }
	/* Product name */
	.mlx-cart-table td.product-name {
		grid-column:2; grid-row:1;
		padding:0; border:none;
		font-size:.9rem; font-weight:500; line-height:1.35;
	}
	.mlx-cart-table td.product-name a { color:inherit; text-decoration:none; }
	/* Price */
	.mlx-cart-table td.product-price {
		grid-column:2; grid-row:2;
		padding:0; border:none;
		font-size:.8125rem; color:#6b7280; display:flex; align-items:center; gap:.25rem;
	}
	.mlx-cart-table td.product-price::before {
		content:attr(data-title) ':';
		font-size:.75rem; color:#9ca3af; white-space:nowrap;
	}
	/* Qty */
	.mlx-cart-table td.product-quantity {
		grid-column:2; grid-row:3;
		padding:0; border:none; display:flex; align-items:center; gap:.5rem;
	}
	.mlx-cart-table td.product-quantity::before {
		content:attr(data-title) ':';
		font-size:.75rem; color:#9ca3af; white-space:nowrap;
	}
	/* Subtotal */
	.mlx-cart-table td.product-subtotal {
		grid-column:2; grid-row:4;
		padding:0; border:none;
		font-size:.875rem; font-weight:700; color:var(--mlx-color-primary,#0a0a0a);
		display:flex; align-items:center; gap:.25rem;
	}
	.mlx-cart-table td.product-subtotal::before {
		content:attr(data-title) ':';
		font-size:.75rem; color:#9ca3af; white-space:nowrap; font-weight:400;
	}
	/* Remove ×  */
	.mlx-cart-table td.product-remove {
		grid-column:3; grid-row:1;
		padding:0; border:none;
		display:flex; justify-content:flex-end; align-items:flex-start; padding-top:2px;
	}
	.mlx-cart-table td.product-remove a { width:24px; height:24px; font-size:14px; }
	/* Actions */
	.mlx-coupon { flex-direction:column; }
	.mlx-coupon .input-text { width:100%; }
	.mlx-cart-actions { flex-direction:column; align-items:stretch; gap:.5rem; }
	.mlx-cart-actions .mlx-btn { text-align:center; width:100%; }
}

/* ═══════════════════════════════════════════════════════════════════
   CART DRAWER
══════════════════════════════════════════════════════════════════ */
.mlx-drawer {
  position: fixed; inset: 0; z-index: 700;
}

.mlx-drawer__bg {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.mlx-drawer.is-open .mlx-drawer__bg { opacity: 1; visibility: visible; }

.mlx-drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(420px, 92vw);
  background: #fff;
  display: flex; flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,.12);
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.25,.46,.45,.94);
}
.mlx-drawer.is-open .mlx-drawer__panel { transform: translateX(0); }

.mlx-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(0,0,0,.07);
  flex-shrink: 0;
}
.mlx-drawer__title { font-size: 1.125rem; font-weight: 700; margin: 0; }
.mlx-drawer__close {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: #f5f5f5; border: none; border-radius: 50%;
  cursor: pointer; color: #555;
  transition: background .2s, color .2s;
}
.mlx-drawer__close:hover { background: #ebebeb; color: #000; }

.mlx-drawer__body {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 1rem 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
}

.mlx-drawer__spinner {
  display: flex; align-items: center; justify-content: center;
  min-height: 120px;
}

.mlx-drawer__empty {
  text-align: center; color: #999; padding: 2rem 0; font-size: .9375rem;
}

.mlx-drawer__foot {
  border-top: 1px solid rgba(0,0,0,.07);
  padding: 1.25rem 1.5rem;
  flex-shrink: 0;
}

.mlx-drawer__subtotal {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem;
  font-size: 1rem;
}
.mlx-drawer__subtotal strong { font-size: 1.25rem; }

.mlx-drawer__ctas {
  display: grid; grid-template-columns: 1fr 1fr; gap: .75rem;
}

/* Drawer cart item */
.mlx-drawer-item {
  display: grid;
  grid-template-columns: 80px 1fr 24px;
  gap: .75rem;
  align-items: flex-start;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.mlx-drawer-item:last-child { border-bottom: none; padding-bottom: 0; }

.mlx-drawer-item__thumb {
  display: block; border-radius: 8px; overflow: hidden;
  background: #f5f5f5;
  aspect-ratio: 1/1;
}
.mlx-drawer-item__thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.mlx-drawer-item__info { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }

.mlx-drawer-item__name {
  font-size: .875rem; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mlx-drawer-item__name:hover { color: var(--mlx-color-accent,#e84545); }

.mlx-drawer-item__row {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
}

.mlx-drawer-item__qty-wrap {
  display: flex; align-items: center; gap: 0;
  border: 1px solid #ddd; border-radius: 6px; overflow: hidden;
}
.mlx-drawer-item__qty-btn {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: #f7f7f7; border: none; cursor: pointer;
  font-size: 1rem; color: #555;
  transition: background .15s, color .15s;
}
.mlx-drawer-item__qty-btn:hover { background: #ececec; color: #000; }
.mlx-drawer-item__qty {
  width: 36px; height: 28px;
  text-align: center; border: none; border-left: 1px solid #ddd; border-right: 1px solid #ddd;
  font-size: .875rem; font-weight: 500; background: #fff;
  -moz-appearance: textfield;
}
.mlx-drawer-item__qty::-webkit-inner-spin-button,
.mlx-drawer-item__qty::-webkit-outer-spin-button { display: none; }

.mlx-drawer-item__price { font-size: .9375rem; font-weight: 600; white-space: nowrap; }

.mlx-drawer-item__remove {
  background: none; border: none; cursor: pointer;
  color: #ccc; padding: 4px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
  transition: color .2s, background .2s;
}
.mlx-drawer-item__remove:hover { color: var(--mlx-color-accent,#e84545); background: #fef2f2; }

/* ═══════════════════════════════════════════════════════════════════
   VARIATION SWATCHES
══════════════════════════════════════════════════════════════════ */
/* Swatch group */
.mlx-swatch-group {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}

/* Base swatch */
.mlx-swatch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--mlx-sw-border, #e0e0e0);
  border-radius: 6px;
  background: var(--mlx-sw-bg, #fff);
  color: var(--mlx-sw-text, #444);
  cursor: pointer;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.2;
  transition: border-color .18s, background .18s, color .18s, transform .12s, opacity .18s;
  position: relative;
  padding: 0;
  white-space: nowrap;
}
.mlx-swatch:hover:not(.is-unavailable):not(.is-selected) {
  border-color: var(--mlx-sw-hover-border, #0a0a0a);
  color: var(--mlx-sw-hover-text, #0a0a0a);
  transform: scale(1.04);
}

/* Label swatch (text pill) */
.mlx-swatch--label {
  min-width: 52px;
  height: 36px;
  padding: 0 .875rem;
  /* color inherited from .mlx-swatch via --mlx-sw-text */
}
.mlx-swatch--label:hover:not(.is-unavailable):not(.is-selected) {
  border-color: var(--sw-color, var(--mlx-sw-hover-border, #0a0a0a));
  color: var(--sw-color, var(--mlx-sw-hover-text, #0a0a0a));
}
.mlx-swatch--label.is-selected {
  background: var(--sw-color, var(--mlx-sw-active-bg, #0a0a0a));
  border-color: var(--sw-color, var(--mlx-sw-active-border, #0a0a0a));
  color: var(--mlx-sw-active-text, #fff) !important;
}

/* Color swatch (circle) */
.mlx-swatch--color {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
}
.mlx-swatch--color.is-selected {
  outline: 3px solid var(--mlx-sw-active-border, #0a0a0a);
  outline-offset: 2px;
  border-color: transparent;
}

/* Unavailable — greyed out with strikethrough line */
.mlx-swatch.is-unavailable {
  opacity: .35;
  cursor: not-allowed;
  pointer-events: none;
  position: relative;
}
.mlx-swatch--label.is-unavailable::after {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 1.5px;
  background: #888;
  transform: rotate(-18deg);
  border-radius: 1px;
}

/* Clear button */
.mlx-swatch-clear {
  font-size: .8125rem;
  color: #888;
  background: none;
  border: none;
  cursor: pointer;
  padding: .1rem 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .15s;
  align-self: flex-start;
}
.mlx-swatch-clear:hover { color: var(--mlx-color-accent, #e84545); }
/* ═══════════════════════════════════════════════════════════════════
   VARIATION SWATCHES — full system
   Shape: round / rounded / square
   Size:  s / m / l / xl
   Active style: 1=border / 2=check / 3=scale
   Disabled style: 1=faded / 2=cross / 3=hidden
══════════════════════════════════════════════════════════════════ */
.mlx-variations { display: flex; flex-direction: column; gap: 1.25rem; }
.mlx-variation-row { display: flex; flex-direction: column; gap: .5rem; }

.mlx-variation-label {
  display: flex; align-items: baseline; gap: .375rem; font-size: .9375rem;
}
.mlx-variation-label__name  { font-weight: 600; color: #444; }
.mlx-variation-label__chosen { font-weight: 500; color: var(--mlx-color-primary, #0a0a0a); }

/* ── ACTIVE STYLE 1: border highlight ── */
.mlx-swatch-style-1 .mlx-swatch--label.is-selected,
.mlx-swatch-style-1 .mlx-swatch:not(.mlx-swatch--color):not(.mlx-swatch--image).is-selected {
  background: var(--sw-color, var(--mlx-sw-active-bg, #0a0a0a));
  border-color: var(--sw-color, var(--mlx-sw-active-border, #0a0a0a));
  color: var(--mlx-sw-active-text, #fff) !important;
}
.mlx-swatch-style-1 .mlx-swatch--color.is-selected,
.mlx-swatch-style-1 .mlx-swatch--image.is-selected {
  outline: 3px solid var(--mlx-sw-active-border, #0a0a0a);
  outline-offset: 2px;
}

/* ── ACTIVE STYLE 2: checkmark ── */
.mlx-swatch-style-2 .mlx-swatch--label.is-selected {
  background: var(--sw-color, var(--mlx-sw-active-bg, #0a0a0a));
  border-color: var(--sw-color, var(--mlx-sw-active-border, #0a0a0a));
  color: var(--mlx-sw-active-text, #fff) !important;
}
.mlx-swatch-style-2 .mlx-swatch--color.is-selected::after,
.mlx-swatch-style-2 .mlx-swatch--image.is-selected::after {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8l4 4 6-6' stroke='%23fff' stroke-width='2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center/60% no-repeat;
  background-color: rgba(0,0,0,.35);
  border-radius: inherit;
}

/* ── ACTIVE STYLE 3: scale up ── */
.mlx-swatch-style-3 .mlx-swatch--label.is-selected {
  background: transparent;
  border-color: var(--mlx-sw-active-border, #0a0a0a) !important;
  color: var(--mlx-sw-active-bg, #0a0a0a) !important;
  font-weight: 700;
}
.mlx-swatch-style-3 .mlx-swatch--color.is-selected,
.mlx-swatch-style-3 .mlx-swatch--image.is-selected {
  transform: scale(1.18);
  border-color: var(--mlx-sw-active-border, #0a0a0a);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

/* ── Default active (no style class) — same as style 1 ── */
.mlx-swatch--label.is-selected {
  background: var(--sw-color, var(--mlx-sw-active-bg, #0a0a0a));
  border-color: var(--sw-color, var(--mlx-sw-active-border, #0a0a0a));
  color: var(--mlx-sw-active-text, #fff) !important;
}
.mlx-swatch--color.is-selected,
.mlx-swatch--image.is-selected {
  outline: 3px solid var(--mlx-sw-active-border, #0a0a0a);
  outline-offset: 2px;
}

/* ── DISABLED STYLE 1: faded ── */
.mlx-swatch-dis-1 .mlx-swatch.is-unavailable { opacity: .3; cursor: not-allowed; pointer-events: none; }

/* ── DISABLED STYLE 2: cross ── */
.mlx-swatch-dis-2 .mlx-swatch.is-unavailable {
  opacity: .45; cursor: not-allowed; pointer-events: none; position: relative;
}
.mlx-swatch-dis-2 .mlx-swatch--label.is-unavailable::after {
  content: ''; position: absolute; left: 8%; right: 8%; top: 50%;
  height: 1.5px; background: #888; transform: rotate(-18deg); border-radius: 1px;
}
.mlx-swatch-dis-2 .mlx-swatch--color.is-unavailable::after,
.mlx-swatch-dis-2 .mlx-swatch--image.is-unavailable::after {
  content: ''; position: absolute; inset: 15%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M2 2l16 16M18 2L2 18' stroke='%23888' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ── DISABLED STYLE 3: hidden ── */
.mlx-swatch-dis-3 .mlx-swatch.is-unavailable { display: none; }

/* ── Default disabled (no class) ── same as style 1 ── */
.mlx-swatch.is-unavailable { opacity: .3; cursor: not-allowed; pointer-events: none; }

/* ── Clear button ── */
.mlx-swatch-clear {
  font-size: .8125rem; color: #888; background: none; border: none;
  cursor: pointer; padding: .1rem 0; text-decoration: underline;
  text-underline-offset: 2px; align-self: flex-start; transition: color .15s;
}
.mlx-swatch-clear:hover { color: var(--mlx-color-accent, #e84545); }


/* ═══════════════════════════════════════════════════════════════════
   MLX HERO SLIDER
══════════════════════════════════════════════════════════════════ */
.mlx-hero-slider { position:relative; overflow:hidden; width:100%; }
/* Arrows must be visible outside slider in boxed mode */
.mlx-hero-slider-wrap { position:relative; }
.mlx-hero-arrow { position:absolute; }
/* Stretch wrapper — prevent horizontal scrollbar on any browser */
.mlx-hero-slider-wrap { overflow-x: clip; }
.mlx-hero-track  { display:flex; width:100%; }

/* Fade — active slide is position:relative (drives height),
   inactive slides are position:absolute overlaid on top */
.mlx-hero-slider--fade .mlx-hero-track {
	display: block;
	position: relative;
}
/* All slides start hidden, stacked via absolute */
.mlx-hero-slider--fade .mlx-hero-slide {
	position: absolute;
	top: 0; left: 0; right: 0;
	opacity: 0;
	transition: opacity .7s ease;
	pointer-events: none;
	z-index: 0;
}
/* Active slide: relative so it drives track height */
.mlx-hero-slider--fade .mlx-hero-slide.is-active {
	position: relative;
	opacity: 1;
	pointer-events: auto;
	z-index: 1;
}

/* ── Slide transition — JS sets pixel widths on track+slides ── */
.mlx-hero-slider--slide .mlx-hero-track {
	transition: transform .6s cubic-bezier(.25,.46,.45,.94);
	/* JS sets width + transform in px */
}
.mlx-hero-slider--slide .mlx-hero-slide {
	/* JS sets width in px via inline style */
	flex-shrink: 0;
}
/* For fade mode: is-active drives height; all others absolute */
/* Slide: all slides always visible in track, clip at container */

/* Slide base */
.mlx-hero-slide { display:flex; align-items:center; justify-content:center; background-size:cover; background-position:center; min-height:50vh; position:relative; }
.mlx-hero-slide--valign-top    { align-items:flex-start; }
.mlx-hero-slide--valign-bottom { align-items:flex-end; }
.mlx-hero-overlay { position:absolute; inset:0; pointer-events:none; }

/* Hero video background */
.mlx-hero-slide { overflow: hidden; } /* prevent video bleeding out */
.mlx-hero-video-wrap {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	width: 100%; height: 100%;
	overflow: hidden;
	pointer-events: none;
	z-index: 0;
}
.mlx-hero-video {
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	min-width: 100%; min-height: 100%;
	width: 100%; height: 100%;
	object-fit: cover;
	object-position: center;
}
.mlx-hero-video-iframe {
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	width: 177.78vh; /* 16:9 wider-than-tall fill */
	height: 56.25vw; /* 16:9 taller-than-wide fill */
	min-width: 100%;
	min-height: 100%;
	border: 0;
	pointer-events: none;
}
.mlx-hero-content { position:relative; z-index:2; width:100%; padding:3rem 1.5rem; }
.mlx-hero-content--narrow { max-width:700px; margin:0 auto; }

/* Text */
.mlx-hero-tag { display:inline-block; font-size:.875rem; font-weight:600; letter-spacing:.06em; text-transform:uppercase; margin-bottom:.875rem; opacity:.85; }
.mlx-hero-heading { font-size:clamp(2rem,5vw,3.5rem); font-weight:800; line-height:1.1; margin:0 0 1rem; }
.mlx-hero-subheading { font-size:clamp(1rem,2vw,1.25rem); line-height:1.6; margin:0 0 2rem; opacity:.85; max-width:600px; }
[style*="text-align:center"] .mlx-hero-subheading { margin-left:auto; margin-right:auto; }
.mlx-hero-slide--light .mlx-hero-heading,
.mlx-hero-slide--light .mlx-hero-tag,
.mlx-hero-slide--light .mlx-hero-subheading { color:#fff; }
.mlx-hero-slide--dark .mlx-hero-heading,
.mlx-hero-slide--dark .mlx-hero-tag,
.mlx-hero-slide--dark .mlx-hero-subheading  { color:#0a0a0a; }

/* Buttons */
.mlx-hero-btns { display:flex; flex-wrap:wrap; gap:.75rem; margin-top:2rem; }
[style*="text-align:center"] .mlx-hero-btns { justify-content:center; }
[style*="text-align:right"]  .mlx-hero-btns { justify-content:flex-end; }

.mlx-hero-btn { display:inline-flex; align-items:center; justify-content:center; padding:.875rem 2rem; font-size:1rem; font-weight:600; border-radius:6px; text-decoration:none; transition:all .2s; border:2px solid transparent; cursor:pointer; }
.mlx-hero-btn--primary   { background:var(--mlx-color-primary,#0a0a0a); color:#fff !important; border-color:var(--mlx-color-primary,#0a0a0a); }
.mlx-hero-btn--primary:hover { background:var(--mlx-color-accent,#e84545); border-color:var(--mlx-color-accent,#e84545); color:#fff !important; }
.mlx-hero-btn--secondary { background:transparent; color:var(--mlx-color-primary,#0a0a0a); border-color:var(--mlx-color-primary,#0a0a0a); }
.mlx-hero-btn--secondary:hover { background:var(--mlx-color-primary,#0a0a0a); color:#fff; }
.mlx-hero-btn--white     { background:#fff; color:#0a0a0a; border-color:#fff; }
.mlx-hero-btn--white:hover { background:rgba(255,255,255,.85); }
.mlx-hero-btn--ghost     { background:transparent; color:#fff; border-color:rgba(255,255,255,.7); }
.mlx-hero-btn--ghost:hover { background:rgba(255,255,255,.15); border-color:#fff; color:#fff !important; }
.mlx-hero-btn--primary:hover { color:#fff !important; }
.mlx-hero-btn--white:hover { color:#0a0a0a !important; }

/* Arrows */
.mlx-hero-slider-wrap { position:relative; } /* arrows position relative to wrap */
.mlx-hero-arrow { position:absolute; top:50%; transform:translateY(-50%); z-index:20; width:44px; height:44px; display:flex; align-items:center; justify-content:center; background:rgba(255,255,255,.15); border:1.5px solid rgba(255,255,255,.3); border-radius:50%; color:#fff; cursor:pointer; transition:background .2s, transform .15s; backdrop-filter:blur(4px); }
.mlx-hero-arrow:hover { background:rgba(255,255,255,.3); }
.mlx-hero-arrow--prev { left:1.25rem; }
.mlx-hero-arrow--next { right:1.25rem; }

/* Dots */
.mlx-hero-dots { position:absolute; bottom:1.25rem; left:50%; transform:translateX(-50%); display:flex; gap:.5rem; z-index:10; }
.mlx-hero-dot { width:8px; height:8px; border-radius:50%; background:rgba(255,255,255,.45); border:none; cursor:pointer; transition:background .2s, transform .2s; padding:0; }
.mlx-hero-dot.is-active { background:#fff; transform:scale(1.3); }

/* ═══════════════════════════════════════════════════════════════════
   MLX TESTIMONIALS
══════════════════════════════════════════════════════════════════ */
.mlx-star { color:#e5e7eb; font-size:1rem; }
.mlx-star.is-filled { color:#f0a500; }
.mlx-testimonial-card__stars { display:flex; gap:1px; }

/* ── Base card ── */
.mlx-testimonial-card {
	display:flex; flex-direction:column;
	border-radius:12px; padding:1.5rem;
	height:100%; box-sizing:border-box; position:relative;
}
/* Reset WP/theme blockquote styles inside card */
.mlx-testimonial-card blockquote.mlx-testimonial-card__text {
	border-left:none !important; padding:0 !important;
	background:none !important; border-radius:0 !important;
}
.mlx-testimonial-card__header { display:flex; align-items:center; gap:.875rem; margin-bottom:1rem; }
.mlx-testimonial-card__text { font-size:.9375rem; line-height:1.75; margin:0 0 1rem; flex:1; }
.mlx-testimonial-card__text p { margin:0; }
.mlx-testimonial-card__author {
	display:flex; align-items:center; gap:.875rem;
	margin-top:auto; padding-top:1rem;
	border-top:1px solid rgba(0,0,0,.07);
}
.mlx-testimonial-card__author-info { display:flex; flex-direction:column; gap:1px; flex:1; min-width:0; }
.mlx-testimonial-card__name { font-weight:700; font-size:.875rem; font-style:normal; }
.mlx-testimonial-card__role { font-size:.75rem; color:#6b7280; }
.mlx-testimonial-card__location { font-size:.75rem; color:#9ca3af; }
.mlx-testimonial-card__avatar { width:48px; height:48px; border-radius:50%; object-fit:cover; flex-shrink:0; }

/* Verified badge — shown when testimonial has _mlx_testimonial_verified = '1' */
.mlx-testimonial-card__verified {
	display:inline-flex; align-items:center; gap:4px;
	font-size:.6875rem; font-weight:700; letter-spacing:.02em;
	color:#16a34a; background:#dcfce7; border-radius:20px;
	padding:3px 8px 3px 6px; white-space:nowrap; flex-shrink:0;
	align-self:center; /* vertical center in flex row */
}

/* ── Style: Default (img 1) — white card, author top ── */
.mlx-tc--default { background:#fff; border:1px solid #f1f5f9; box-shadow:0 2px 12px rgba(0,0,0,.06); }
.mlx-tc--default .mlx-testimonial-card__text { font-style:italic; color:#444; }
.mlx-tc--default .mlx-testimonial-card__author { border-top:none; padding-top:0; margin-top:.5rem; }
.mlx-tc--default .mlx-testimonial-card__stars { margin-top:.875rem; }

/* ── Style: Dark (img 2) — navy bg, quote icon ── */
.mlx-tc--dark { background:#1a2744; color:#fff; overflow:hidden; }
.mlx-tc--dark .mlx-testimonial-card__text { color:rgba(255,255,255,.88); }
.mlx-tc--dark .mlx-testimonial-card__name { color:#fff; }
.mlx-tc--dark .mlx-testimonial-card__role { color:rgba(255,255,255,.6); }
.mlx-tc--dark .mlx-testimonial-card__location { color:rgba(255,255,255,.4); }
.mlx-tc--dark .mlx-testimonial-card__author { border-top-color:rgba(255,255,255,.1); }
.mlx-tc--dark .mlx-star { color:rgba(255,255,255,.18); }
.mlx-tc--dark .mlx-star.is-filled { color:#f0a500; }
.mlx-tc--dark .mlx-testimonial-card__verified { background:rgba(255,255,255,.1); color:#86efac; }
.mlx-tc-quote-icon {
	position:absolute; top:.25rem; right:1.25rem;
	font-size:5rem; line-height:1; font-family:Georgia,serif;
	color:rgba(255,255,255,.07); pointer-events:none; user-select:none;
}

/* ── Style: Minimal (img 3) — light bg, verified badge prominent ── */
.mlx-tc--minimal { background:#f9fafb; border:1px solid #e5e7eb; }
.mlx-tc--minimal .mlx-testimonial-card__text { color:#374151; font-style:italic; }
.mlx-tc--minimal .mlx-testimonial-card__author { border-top-color:#e5e7eb; }

/* Grid + List layouts */
.mlx-testimonials--grid { display:grid; grid-template-columns:repeat(var(--mlx-cols,3),1fr); gap:1.5rem; align-items:start; }
.mlx-testimonials--list { display:flex; flex-direction:column; gap:1rem; }
@media(max-width:768px) { .mlx-testimonials--grid { grid-template-columns:1fr; } }

/* ═══════════════════════════════════════════════════════════════════
   MLX COUNTDOWN
══════════════════════════════════════════════════════════════════ */
.mlx-countdown { display:flex; flex-wrap:wrap; gap:.75rem; align-items:center; }
.mlx-countdown-block { display:flex; flex-direction:column; align-items:center; justify-content:center; width:90px; padding:.875rem .5rem; border-radius:8px; background:var(--mlx-color-primary,#0a0a0a); }
.mlx-countdown-number { font-size:2rem; font-weight:800; line-height:1; color:#fff; font-variant-numeric:tabular-nums; }
.mlx-countdown-label  { font-size:.6875rem; text-transform:uppercase; letter-spacing:.07em; color:rgba(255,255,255,.65); margin-top:.25rem; }
.mlx-countdown-sep    { font-size:2rem; font-weight:700; color:var(--mlx-color-primary,#0a0a0a); align-self:center; line-height:1; margin-top:-.5rem; }
.mlx-countdown-finish { font-size:1.25rem; font-weight:600; }

/* ═══════════════════════════════════════════════════════════════════
   MLX TABS
══════════════════════════════════════════════════════════════════ */
/* Horizontal layout */
.mlx-tabs--horizontal,
.mlx-tabs--bottom { display:flex; flex-direction:column; }
.mlx-tabs--bottom { flex-direction:column-reverse; }

/* Vertical layout */
.mlx-tabs--vertical { display:grid; grid-template-columns:200px 1fr; gap:0; align-items:start; }
.mlx-tabs--vertical .mlx-tabs-nav { flex-direction:column; border-bottom:none; border-right:2px solid #eee; padding-right:0; margin-right:0; }
.mlx-tabs--vertical .mlx-tabs-nav-item a { border-bottom:none; border-right:2px solid transparent; margin-right:-2px; border-radius:6px 0 0 6px; }
.mlx-tabs--vertical .mlx-tabs-nav-item.is-active a { border-right-color:var(--mlx-color-primary,#0a0a0a); }

/* Nav base */
.mlx-tabs-nav { display:flex; flex-wrap:nowrap; overflow-x:auto; gap:0; scrollbar-width:none; }
.mlx-tabs-nav::-webkit-scrollbar { display:none; }

/* Line style (default) */
.mlx-tabs-nav--line { border-bottom:2px solid #eee; }
.mlx-tabs-nav--line .mlx-tabs-nav-item a { border-bottom:2px solid transparent; margin-bottom:-2px; border-radius:4px 4px 0 0; }
.mlx-tabs-nav--line .mlx-tabs-nav-item.is-active a { border-bottom-color:var(--mlx-color-primary,#0a0a0a); color:var(--mlx-color-primary,#0a0a0a); }

/* Box style */
.mlx-tabs-nav--box { gap:.375rem; border-bottom:none; padding-bottom:.5rem; }
.mlx-tabs-nav--box .mlx-tabs-nav-item a { border:1.5px solid #ddd; border-radius:6px; }
.mlx-tabs-nav--box .mlx-tabs-nav-item.is-active a { background:var(--mlx-color-primary,#0a0a0a); color:#fff; border-color:var(--mlx-color-primary,#0a0a0a); }

/* Solid style */
.mlx-tabs-nav--solid { background:#f5f5f5; border-radius:8px; padding:.25rem; gap:.25rem; border-bottom:none; }
.mlx-tabs-nav--solid .mlx-tabs-nav-item a { border-radius:6px; }
.mlx-tabs-nav--solid .mlx-tabs-nav-item.is-active a { background:#fff; box-shadow:0 1px 4px rgba(0,0,0,.1); color:var(--mlx-color-primary,#0a0a0a); }

/* Nav items */
.mlx-tabs-nav-item a { display:flex; align-items:center; gap:.5rem; padding:.6875rem 1.125rem; font-size:.9375rem; font-weight:500; color:#777; text-decoration:none; white-space:nowrap; transition:color .18s, background .18s, border-color .18s; }
.mlx-tabs-nav-item a:hover { color:var(--mlx-color-primary,#0a0a0a); }
.mlx-tabs-nav-icon { display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; font-size:18px; line-height:1; }
.mlx-tabs-nav-icon svg { width:1em; height:1em; display:block; }
.mlx-tabs-nav-icon i   { font-size:inherit; line-height:1; }
.mlx-tabs-nav-icon img { width:1em; height:1em; object-fit:contain; }
/* Icon position — set by Elementor prefix_class */
.mlx-tab-icon-left  .mlx-tabs-nav-item a { flex-direction:row; }
.mlx-tab-icon-right .mlx-tabs-nav-item a { flex-direction:row-reverse; }
.mlx-tab-icon-top   .mlx-tabs-nav-item a { flex-direction:column; align-items:center; }
/* WPBakery / Gutenberg tab buttons */
.mlx-tabs__nav { display:flex; flex-wrap:wrap; gap:.25rem; border-bottom:2px solid #eee; margin-bottom:0; }
.mlx-tabs__tab, .mlx-tabs__btn { background:none; border:none; border-bottom:2px solid transparent; margin-bottom:-2px; padding:.625rem 1rem; font-size:.9375rem; font-weight:500; color:#777; cursor:pointer; transition:color .18s, border-color .18s; white-space:nowrap; }
.mlx-tabs__tab:hover, .mlx-tabs__btn:hover { color:var(--mlx-color-primary,#0a0a0a); }
.mlx-tabs__tab.is-active, .mlx-tabs__btn.is-active { color:var(--mlx-color-primary,#0a0a0a); border-bottom-color:var(--mlx-color-primary,#0a0a0a); }
.mlx-tabs__panels { padding-top:1.25rem; }
.mlx-tabs__panel { display:none; }
.mlx-tabs__panel.is-active { display:block; }

/* Panels */
.mlx-tabs-panel { display:none; animation:mlxTabIn .2s ease; }
.mlx-tabs-panel.is-active { display:block; }
@keyframes mlxTabIn { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:none; } }

/* ═══════════════════════════════════════════════════════════════════
   MLX ACCORDION
══════════════════════════════════════════════════════════════════ */
.mlx-accordion { display:flex; flex-direction:column; gap:8px; }

.mlx-accordion-item { border:1px solid #eee; border-radius:8px; overflow:hidden; }

.mlx-accordion-header { width:100%; display:flex; align-items:center; gap:.75rem; padding:1rem 1.25rem; background:#fff; border:none; border-bottom:1px solid transparent; cursor:pointer; font-size:1rem; font-weight:600; text-align:left; color:inherit; transition:background .15s, color .15s; }
.mlx-accordion-header--icon-right { justify-content:space-between; }
.mlx-accordion-header--icon-left  .mlx-accordion-icon { order:-1; margin-right:.25rem; }
.mlx-accordion-item.is-open .mlx-accordion-header { background:#f7f7f7; border-bottom-color:#eee; color:var(--mlx-color-primary,#0a0a0a); }
.mlx-accordion-header:hover { background:#f7f7f7; }

/* Expand icon */
.mlx-accordion-icon { flex-shrink:0; display:flex; color:currentColor; }
.mlx-accordion-icon--open   { display:none; }
.mlx-accordion-icon--closed { display:flex; }
.mlx-accordion-item.is-open .mlx-accordion-icon--open   { display:flex; }
.mlx-accordion-item.is-open .mlx-accordion-icon--closed { display:none; }
.mlx-accordion-custom-icon  { flex-shrink:0; }

/* Body */
.mlx-accordion-body { display:none; }
.mlx-accordion-body.is-visible { display:block; animation:mlxAccIn .22s ease; }
@keyframes mlxAccIn { from { opacity:0; } to { opacity:1; } }
.mlx-accordion-body-inner { padding:1rem 1.25rem 1.25rem; background:#fafafa; line-height:1.7; }
/* ═══════════════════════════════════════════════════════════════════
   MLX BUTTON WIDGET
══════════════════════════════════════════════════════════════════ */
.mlx-btn-widget { display:inline-flex;align-items:center;justify-content:center;gap:.5rem;text-decoration:none;font-weight:600;border:2px solid transparent;cursor:pointer;transition:all .2s; }
.mlx-btn-widget--full { display:flex;width:100%; }
.mlx-btn-widget--sm  { padding:.375rem .875rem;font-size:.8125rem;border-radius:5px; }
.mlx-btn-widget--md  { padding:.625rem 1.25rem;font-size:.9375rem;border-radius:6px; }
.mlx-btn-widget--lg  { padding:.875rem 1.75rem;font-size:1rem;border-radius:7px; }
.mlx-btn-widget--xl  { padding:1rem 2.25rem;font-size:1.125rem;border-radius:8px; }
.mlx-btn-widget--primary   { background:var(--mlx-color-primary,#0a0a0a);color:#fff;border-color:var(--mlx-color-primary,#0a0a0a); }
.mlx-btn-widget--primary:hover { background:var(--mlx-color-accent,#0ea0a3);border-color:var(--mlx-color-accent,#0ea0a3);color:#fff; }
.mlx-btn-widget--secondary { background:transparent;color:var(--mlx-color-primary,#0a0a0a);border-color:var(--mlx-color-primary,#0a0a0a); }
.mlx-btn-widget--secondary:hover { background:var(--mlx-color-primary,#0a0a0a);color:#fff;border-color:var(--mlx-color-primary,#0a0a0a); }
.mlx-btn-widget--ghost  { background:transparent;color:var(--mlx-color-primary,#0a0a0a);border-color:var(--mlx-color-primary,#0a0a0a); }
.mlx-btn-widget--ghost:hover { background:var(--mlx-color-primary,#0a0a0a);color:#fff;border-color:var(--mlx-color-primary,#0a0a0a); }
.mlx-btn-widget--link  { background:transparent;color:var(--mlx-color-accent,#0ea0a3);border-color:transparent;padding-left:0;padding-right:0;text-decoration:underline;text-underline-offset:3px; }
.mlx-btn-widget--white  { background:#fff;color:#0a0a0a;border-color:#fff; }
.mlx-btn-widget--white:hover { background:#f0f0f0;border-color:#f0f0f0;color:#0a0a0a; }
/* Icon SVG */
.mlx-btn-widget__icon { display:inline-flex;align-items:center; }
.mlx-btn-widget__icon svg { width:1em;height:1em;display:block;fill:currentColor !important; }
.mlx-btn-widget__icon svg path { fill:currentColor !important; }
.mlx-btn-widget__icon i { color:inherit !important; }
/* Hover effects */
/* 1. Shine sweep */
.mlx-btn-effect--shine { overflow:hidden;position:relative; }
.mlx-btn-effect--shine::after { content:'';position:absolute;inset:0;background:linear-gradient(120deg,transparent 30%,rgba(255,255,255,.35) 50%,transparent 70%);transform:translateX(-100%);transition:transform .5s ease; }
.mlx-btn-effect--shine:hover::after { transform:translateX(100%); }
/* 2. Pulse ring */
.mlx-btn-effect--pulse { position:relative; }
.mlx-btn-effect--pulse:hover { animation:mlx-btn-pulse .6s ease; }
@keyframes mlx-btn-pulse { 0%{box-shadow:0 0 0 0 currentColor} 70%{box-shadow:0 0 0 8px rgba(0,0,0,0)} 100%{box-shadow:0 0 0 0 rgba(0,0,0,0)} }
/* 3. Slide fill */
.mlx-btn-effect--slide { position:relative;overflow:hidden;z-index:0; }
.mlx-btn-effect--slide::before { content:'';position:absolute;inset:0;background:rgba(255,255,255,.18);transform:translateX(-101%);transition:transform .35s ease;z-index:-1; }
.mlx-btn-effect--slide:hover::before { transform:translateX(0); }

/* ═══════════════════════════════════════════════════════════════════
   IMAGE GALLERY WIDGET
══════════════════════════════════════════════════════════════════ */
.mlx-gallery-widget { display:grid;gap:8px; }
.mlx-gallery-item   { overflow:hidden;border-radius:6px; }
.mlx-gallery-item--zoom img:hover   { transform:scale(1.06); }
.mlx-gallery-item img { transition:transform .3s ease,opacity .2s; }
.mlx-gallery-item--darken::after { content:'';position:absolute;inset:0;background:rgba(0,0,0,0);transition:background .2s; }
.mlx-gallery-item--darken:hover::after { background:rgba(0,0,0,.25); }
.mlx-gallery-item--lift:hover { transform:translateY(-4px);box-shadow:0 8px 24px rgba(0,0,0,.15); }

/* ═══════════════════════════════════════════════════════════════════
   AJAX SEARCH WIDGET
══════════════════════════════════════════════════════════════════ */
.mlx-search-widget { position:relative; }
.mlx-search-widget__wrap { position:relative;display:flex;align-items:center; }
.mlx-search-widget input { width:100%;padding:.75rem 2.5rem .75rem 2.75rem;border:1.5px solid #ddd;border-radius:8px;font-size:.9375rem;background:#fff;transition:border-color .18s; }
.mlx-search-widget input:focus { border-color:var(--mlx-color-primary,#0a0a0a);outline:none; }
.mlx-search-widget__icon { position:absolute;left:.875rem;color:#aaa;pointer-events:none; }
.mlx-search-widget__clear { position:absolute;right:.75rem;background:none;border:none;font-size:1.25rem;color:#aaa;cursor:pointer;padding:0;display:flex; }
.mlx-search-widget__results { position:absolute;top:100%;left:0;right:0;z-index:100;background:#fff;border:1px solid #eee;border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.1);margin-top:4px;max-height:400px;overflow-y:auto; }
.mlx-search-result { display:flex;align-items:center;gap:.75rem;padding:.75rem 1rem;text-decoration:none;color:inherit;border-bottom:1px solid #f5f5f5;transition:background .15s; }
.mlx-search-result:hover { background:#f8f8f8; }
.mlx-search-result img { width:44px;height:44px;object-fit:cover;border-radius:5px;flex-shrink:0; }
.mlx-search-result__name { font-weight:500;font-size:.9rem; }
.mlx-search-result__price { font-size:.8125rem;color:var(--mlx-color-accent,#e84545); }
.mlx-search-view-all { display:block;padding:.75rem 1rem;text-align:center;font-size:.875rem;font-weight:600;color:var(--mlx-color-primary,#0a0a0a);text-decoration:none;border-top:1px solid #eee; }

/* ═══════════════════════════════════════════════════════════════════
   PROMO BANNER WIDGET
══════════════════════════════════════════════════════════════════ */
.mlx-promo-banner { display:flex;align-items:center;gap:1rem;padding:1.25rem 2rem;background:var(--mlx-color-primary,#0a0a0a);color:#fff;border-radius:10px;position:relative; }
.mlx-promo-banner--split { display:grid;grid-template-columns:1fr auto; }
.mlx-promo-banner__body { display:flex;flex-wrap:wrap;align-items:center;gap:.875rem;flex:1; }
.mlx-promo-badge { padding:.25rem .75rem;background:var(--mlx-color-accent,#e84545);color:#fff;border-radius:20px;font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;flex-shrink:0; }
.mlx-promo-title { font-size:1.125rem;font-weight:700; }
.mlx-promo-subtitle { font-size:.875rem;opacity:.8; }
.mlx-promo-btn { padding:.5rem 1.25rem;background:#fff;color:#0a0a0a;border-radius:6px;text-decoration:none;font-weight:600;font-size:.875rem;flex-shrink:0;transition:opacity .2s; }
.mlx-promo-btn:hover { opacity:.9; }
.mlx-promo-dismiss { position:absolute;top:.75rem;right:.75rem;background:rgba(255,255,255,.2);border:none;color:#fff;width:24px;height:24px;border-radius:50%;cursor:pointer;font-size:1rem;display:flex;align-items:center;justify-content:center; }
.mlx-promo-banner__img img { max-height:100px;object-fit:cover;border-radius:8px; }

/* ═══════════════════════════════════════════════════════════════════
   PRICE TABLE WIDGET
══════════════════════════════════════════════════════════════════ */
.mlx-price-table { border:1px solid #eee;border-radius:12px;position:relative;background:#fff; }
.mlx-price-table--featured { border-color:var(--mlx-color-primary,#0a0a0a);box-shadow:0 8px 32px rgba(0,0,0,.12); }
/* Badge wrapper — uses CSS var so inline style from widget always wins over cached CSS */
.mlx-price-badge-wrap {
	position:absolute;
	top:0;
	left:0;
	right:0;
	display:flex;
	justify-content:center;
	transform:translateY(calc(-50% + var(--mlx-badge-offset, 0px)));
	z-index:2;
	pointer-events:none;
}
.mlx-price-badge-wrap--left  { justify-content:flex-start;padding-left:1.25rem; }
.mlx-price-badge-wrap--right { justify-content:flex-end;padding-right:1.25rem; }
.mlx-price-badge {
	pointer-events:auto;
	background:var(--mlx-color-accent,#e84545);
	color:#fff;
	padding:.25rem 1rem;
	border-radius:20px;
	font-size:.75rem;
	font-weight:700;
	text-transform:uppercase;
	white-space:nowrap;
	letter-spacing:.04em;
	/* Override any old position:absolute from cached CSS */
	position:static !important;
	top:auto !important;
	left:auto !important;
	transform:none !important;
}
/* WPBakery and Gutenberg — same pattern */
.mlx-price-table__badge-wrap {
	position:absolute;
	top:0;
	left:0;
	right:0;
	display:flex;
	justify-content:center;
	transform:translateY(calc(-50% + var(--mlx-badge-offset, 0px)));
	z-index:2;
	pointer-events:none;
}
.mlx-price-table__badge-wrap--left  { justify-content:flex-start;padding-left:1.25rem; }
.mlx-price-table__badge-wrap--right { justify-content:flex-end;padding-right:1.25rem; }
.mlx-price-table__badge {
	pointer-events:auto;
	display:inline-block;
	background:var(--mlx-color-accent,#e84545);
	color:#fff;
	padding:.25rem 1rem;
	border-radius:20px;
	font-size:.75rem;
	font-weight:700;
	text-transform:uppercase;
	white-space:nowrap;
	letter-spacing:.04em;
	position:static !important;
	top:auto !important;
	left:auto !important;
	transform:none !important;
}
/* Header gets its own border-radius top so table doesn't need overflow:hidden */
.mlx-price-table__header { padding:2.25rem 1.5rem 1.25rem;background:var(--mlx-color-primary,#0a0a0a);color:#fff;text-align:center;border-radius:11px 11px 0 0; }
.mlx-price-plan { font-size:1.25rem;font-weight:700;margin:0 0 .375rem; }
.mlx-price-desc { font-size:.875rem;opacity:.75;margin:0 0 1.25rem; }
.mlx-price-amount { display:flex;align-items:baseline;justify-content:center;gap:.25rem; }
.mlx-price-currency { font-size:1.25rem;font-weight:600; }
.mlx-price-value { font-size:3rem;font-weight:800;line-height:1; }
.mlx-price-period { font-size:.875rem;opacity:.7; }
.mlx-price-original { font-size:1rem;text-decoration:line-through;opacity:.5;margin-right:.25rem; }
.mlx-price-features { list-style:none;padding:1.25rem 1.5rem;margin:0;display:flex;flex-direction:column;gap:.625rem; }
.mlx-price-feature { display:flex;align-items:center;gap:.625rem;font-size:.9375rem; }
.mlx-price-feature--no { opacity:.45; }
.mlx-price-feature--yes .mlx-price-feature__icon { color:#10b981; }
.mlx-price-feature--no  .mlx-price-feature__icon { color:#aaa; }
.mlx-price-table__footer { padding:1rem 1.5rem 1.5rem;border-radius:0 0 11px 11px;overflow:hidden; }
.mlx-price-btn { display:block;width:100%;padding:.875rem;text-align:center;background:var(--mlx-color-primary,#0a0a0a);color:#fff;border-radius:7px;text-decoration:none;font-weight:600;transition:opacity .2s; }
.mlx-price-btn:hover { opacity:.85; }

/* ═══════════════════════════════════════════════════════════════════
   MLX HEADING WIDGET
══════════════════════════════════════════════════════════════════ */
.mlx-heading-wrap { display:block; }
.mlx-heading { margin:0 0 .5em; line-height:1.2; }
.mlx-heading a { color:inherit; text-decoration:none; }
.mlx-heading a:hover { opacity:.8; }

/* Subtitle / eyebrow */
.mlx-heading-subtitle {
	display:block; font-size:.8125rem; font-weight:600;
	text-transform:uppercase; letter-spacing:.1em;
	color:var(--mlx-color-primary,#0a0a0a);
	margin-bottom:.5rem;
}

/* ── Decoration variants ── */
/* Underline — short bar under text */
.mlx-heading--underline { padding-bottom:.5em; }
.mlx-heading--underline::after {
	content:''; display:block;
	width:60px; height:var(--mlx-h-deco-size,3px);
	background:var(--mlx-h-deco-color,var(--mlx-color-primary,#0a0a0a));
	margin-top:.4em; border-radius:2px;
}
/* Underline centered */
.mlx-heading--underline_center { padding-bottom:.5em; }
.mlx-heading--underline_center::after {
	content:''; display:block;
	width:60px; height:var(--mlx-h-deco-size,3px);
	background:var(--mlx-h-deco-color,var(--mlx-color-primary,#0a0a0a));
	margin:0.4em auto 0; border-radius:2px;
}
/* Left border */
.mlx-heading--border_left {
	border-left:var(--mlx-h-deco-size,4px) solid var(--mlx-h-deco-color,var(--mlx-color-primary,#0a0a0a));
	padding-left:.75em;
}
/* Bottom border full width */
.mlx-heading--border_bottom { padding-bottom:.5em; }
.mlx-heading--border_bottom::after {
	content:''; display:block;
	width:100%; height:var(--mlx-h-deco-size,2px);
	background:var(--mlx-h-deco-color,var(--mlx-color-primary,#0a0a0a));
	margin-top:.4em;
}
/* Highlight background */
.mlx-heading--highlight {
	display:inline;
	background:var(--mlx-h-deco-color,#fef08a);
	padding:.05em .25em;
	border-radius:3px;
}
/* Overline */
.mlx-heading--overline {
	border-top:var(--mlx-h-deco-size,3px) solid var(--mlx-h-deco-color,var(--mlx-color-primary,#0a0a0a));
	padding-top:.4em;
}
/* Strikethrough */
.mlx-heading--strikethrough { text-decoration:line-through; text-decoration-color:var(--mlx-h-deco-color,currentColor); }

/* ═══════════════════════════════════════════════════════════════════
   IMAGE COMPARISON WIDGET
══════════════════════════════════════════════════════════════════ */
/* Safety net — always contain within parent, never overflow on mobile */
.mlx-ic { max-width:100% !important; box-sizing:border-box; }
@media (max-width:767px) {
	.mlx-ic { width:100% !important; max-width:100% !important; }
}

/* ═══════════════════════════════════════════════════════════════════
   SOCIAL BUTTONS WIDGET
══════════════════════════════════════════════════════════════════ */
.mlx-social-buttons { display:flex !important;flex-direction:row !important;flex-wrap:wrap;gap:8px;align-items:center; }
.mlx-social-btn { display:inline-flex !important;align-items:center;justify-content:center;gap:.4rem;width:40px;height:40px;border-radius:50%;color:#fff;text-decoration:none;transition:transform .15s,opacity .15s;flex-shrink:0; }
.mlx-social-btn:hover { transform:scale(1.1);opacity:.9; }
.mlx-social-btn span { font-size:.8125rem;font-weight:600; }

/* ═══════════════════════════════════════════════════════════════════
   BRANDS WIDGET
══════════════════════════════════════════════════════════════════ */
.mlx-brands-grid { display:grid;gap:12px; }
.mlx-brand-item { display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1rem;border:1px solid #eee;border-radius:8px;text-decoration:none;gap:.5rem;transition:border-color .18s,box-shadow .18s; }
.mlx-brand-item:hover { border-color:#aaa;box-shadow:0 2px 8px rgba(0,0,0,.06); }
.mlx-brand-item img { max-width:100%;height:60px;object-fit:contain;filter:grayscale(30%);transition:filter .2s; }
.mlx-brand-item:hover img { filter:none; }
.mlx-brand-name { font-size:.8125rem;font-weight:500;color:#555; }

/* ═══════════════════════════════════════════════════════════════════
   WISHLIST WIDGET
══════════════════════════════════════════════════════════════════ */
.mlx-wishlist-grid { display:grid;gap:1rem; }
.mlx-wishlist-item { display:flex;gap:.875rem;padding:1rem;border:1px solid #eee;border-radius:8px;position:relative; }
.mlx-wishlist-img img { width:80px;height:80px;object-fit:cover;border-radius:6px;display:block; }
.mlx-wishlist-info { display:flex;flex-direction:column;gap:.375rem;flex:1; }
.mlx-wishlist-name { font-weight:600;color:inherit;text-decoration:none;font-size:.9375rem; }
.mlx-wishlist-name:hover { color:var(--mlx-color-accent,#e84545); }
.mlx-wishlist-price { font-size:.875rem;color:var(--mlx-color-accent,#e84545); }
.mlx-wishlist-atc { align-self:flex-start;padding:.375rem .875rem !important;font-size:.8125rem !important; }
.mlx-wishlist-remove { position:absolute;top:.5rem;right:.5rem;background:none;border:none;font-size:1.25rem;color:#aaa;cursor:pointer;transition:color .15s; }
.mlx-wishlist-remove:hover { color:var(--mlx-color-accent,#e84545); }

/* SP block placeholders */
.mlx-sp-block { display:block; }
/* ═══════════════════════════════════════════════════════════════════
   TIMELINE WIDGET
══════════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════════
   MLX TIMELINE
══════════════════════════════════════════════════════════════════ */
/* ── Shared ── */
.mlx-timeline { position:relative; }
.mlx-tl-dot {
	width:32px; height:32px; border-radius:50%;
	background:var(--mlx-color-primary,#0a0a0a); color:#fff;
	display:flex; align-items:center; justify-content:center;
	flex-shrink:0; z-index:1; overflow:hidden;
	font-size:12px; font-weight:700; line-height:1;
}
/* Icon clamped to dot — no more full-screen SVG */
.mlx-tl-dot__icon { display:flex; align-items:center; justify-content:center; width:55%; height:55%; }
.mlx-tl-dot__icon svg,
.mlx-tl-dot__icon i   { width:100%; height:100%; max-width:100%; max-height:100%; font-size:inherit; display:block; }
.mlx-tl-dot__icon svg * { fill:currentColor; }
.mlx-tl-dot__num  { font-size:inherit; font-weight:700; line-height:1; }
.mlx-tl-date  { font-size:.8125rem; font-weight:600; text-transform:uppercase; letter-spacing:.06em; color:#aaa; display:block; margin-bottom:.375rem; }
.mlx-tl-card  { background:#fff; border:1px solid #eee; border-radius:8px; padding:1rem 1.25rem; }
.mlx-tl-title { font-size:1rem; font-weight:700; margin:0 0 .375rem; }
.mlx-tl-content { font-size:.9rem; color:#666; line-height:1.7; }
.mlx-tl-content p { margin:0; }
/* Image inside card — above title */
.mlx-tl-image { height:220px; overflow:hidden; border-radius:6px; margin-bottom:.875rem; }
.mlx-tl-image img { width:100%; height:100%; object-fit:cover; display:block; }
/* Image as separate column beside card */
.mlx-tl-card-wrap { display:flex; align-items:stretch; gap:0; border:1px solid #eee; border-radius:8px; overflow:hidden; }
.mlx-tl-card-wrap .mlx-tl-card { flex:1; border:none; border-radius:0; }
.mlx-tl-image-col { width:40%; flex-shrink:0; }
.mlx-tl-image-col .mlx-tl-image { height:100%; min-height:160px; margin:0; border-radius:0; }
/* Image right — card first */
.mlx-tl-card-wrap--img-right .mlx-tl-image-col { order:2; }
.mlx-tl-card-wrap--img-right .mlx-tl-card       { order:1; }
@media(max-width:560px) {
	.mlx-tl-card-wrap { flex-direction:column; }
	.mlx-tl-image-col { width:100% !important; }
	.mlx-tl-image-col .mlx-tl-image { height:180px; }
}

/* ── Vertical ── */
.mlx-timeline--vertical {
	padding-left:0;
	/* padding-top prevents first-child margin collapsing outside container */
	padding-top:1px;
	margin-top:-1px;
}
.mlx-timeline--vertical::before {
	content:''; position:absolute;
	left:15px; top:16px; bottom:16px; width:2px; background:#e0e0e0;
	z-index:0;
}
.mlx-timeline--vertical .mlx-tl-item {
	position:relative; margin-bottom:2rem;
	display:flex; align-items:flex-start; gap:1rem;
}
.mlx-timeline--vertical .mlx-tl-dot {
	position:relative; flex-shrink:0; z-index:1;
}
.mlx-timeline--vertical .mlx-tl-body { flex:1; min-width:0; }

/* ── Vertical alternating ── */
.mlx-timeline--vertical_alt { padding-left:0; }
.mlx-timeline--vertical_alt::before { content:''; position:absolute; left:50%; top:0; bottom:0; width:2px; background:#e0e0e0; transform:translateX(-50%); }
.mlx-timeline--vertical_alt .mlx-tl-item {
	position:relative; display:grid;
	grid-template-columns:1fr 40px 1fr;
	align-items:start; gap:0 1.25rem;
	margin-bottom:2.5rem;
}
.mlx-timeline--vertical_alt .mlx-tl-dot {
	position:relative; grid-column:2; justify-self:center;
	margin-top:.25rem;
}
/* Left side (default even) — body in column 1, dot in 2 */
.mlx-timeline--vertical_alt .mlx-tl-item--left .mlx-tl-body,
.mlx-timeline--vertical_alt .mlx-tl-item:nth-child(odd) .mlx-tl-body { grid-column:1; grid-row:1; text-align:right; }
.mlx-timeline--vertical_alt .mlx-tl-item--left .mlx-tl-dot,
.mlx-timeline--vertical_alt .mlx-tl-item:nth-child(odd) .mlx-tl-dot  { grid-column:2; grid-row:1; }
/* Right side (default odd) — body in column 3, dot in 2 */
.mlx-timeline--vertical_alt .mlx-tl-item--right .mlx-tl-body,
.mlx-timeline--vertical_alt .mlx-tl-item:nth-child(even) .mlx-tl-body { grid-column:3; grid-row:1; text-align:left; }
.mlx-timeline--vertical_alt .mlx-tl-item--right .mlx-tl-dot,
.mlx-timeline--vertical_alt .mlx-tl-item:nth-child(even) .mlx-tl-dot  { grid-column:2; grid-row:1; }

/* ── Horizontal ── */
.mlx-timeline--horizontal { display:flex; align-items:flex-start; gap:0; overflow-x:auto; }
.mlx-timeline--horizontal::before { display:none; }
.mlx-timeline--horizontal .mlx-tl-axis { position:relative; flex:1; display:flex; flex-direction:column; align-items:center; padding:0 .5rem; }
.mlx-timeline--horizontal .mlx-tl-axis::before { content:''; position:absolute; top:15px; left:-50%; right:-50%; height:2px; background:#e0e0e0; z-index:0; }
.mlx-timeline--horizontal .mlx-tl-body { margin-top:.75rem; text-align:center; }

@media(max-width:680px){
	/* Alternating collapses to single column — line aligns to dot center */
	.mlx-timeline--vertical_alt::before { left:16px; transform:none; }
	.mlx-timeline--vertical_alt .mlx-tl-item {
		grid-template-columns:32px 1fr;
		grid-template-rows:auto;
	}
	.mlx-timeline--vertical_alt .mlx-tl-item--left .mlx-tl-body,
	.mlx-timeline--vertical_alt .mlx-tl-item--right .mlx-tl-body,
	.mlx-timeline--vertical_alt .mlx-tl-item:nth-child(odd) .mlx-tl-body,
	.mlx-timeline--vertical_alt .mlx-tl-item:nth-child(even) .mlx-tl-body { grid-column:2; grid-row:1; text-align:left; }
	.mlx-timeline--vertical_alt .mlx-tl-item--left .mlx-tl-dot,
	.mlx-timeline--vertical_alt .mlx-tl-item--right .mlx-tl-dot,
	.mlx-timeline--vertical_alt .mlx-tl-item:nth-child(odd) .mlx-tl-dot,
	.mlx-timeline--vertical_alt .mlx-tl-item:nth-child(even) .mlx-tl-dot { grid-column:1; grid-row:1; justify-self:center; }
}

/* ═══════════════════════════════════════════════════════════════════
   MARQUEE WIDGET
══════════════════════════════════════════════════════════════════ */
@keyframes mlxMarqueeright { from { transform:translateX(-50%); } to { transform:translateX(0); } }
@keyframes mlxMarqueeleft  { from { transform:translateX(0); } to { transform:translateX(-50%); } }
.mlx-marquee { overflow:hidden;white-space:nowrap; }
.mlx-marquee[data-pause="1"]:hover .mlx-marquee-track { animation-play-state:paused; }
.mlx-marquee-item { display:inline-block;padding:0 1rem; }
.mlx-marquee-sep  { display:inline-block;padding:0 .25rem; }

/* ═══════════════════════════════════════════════════════════════════
   IMAGE HOTSPOT WIDGET
══════════════════════════════════════════════════════════════════ */
.mlx-hs-pin { width:28px;height:28px;border-radius:50%;background:var(--mlx-color-accent,#e84545);color:#fff;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:1.125rem;font-weight:700;animation:mlxHsPulse 2s ease-in-out infinite; }
.mlx-hs-pin span { line-height:1; }
@keyframes mlxHsPulse { 0%,100% { box-shadow:0 0 0 0 rgba(232,69,69,.4); } 50% { box-shadow:0 0 0 8px rgba(232,69,69,0); } }
.mlx-hs-tooltip-top .mlx-hs-tooltip    { bottom:calc(100% + 8px);left:50%;transform:translateX(-50%); }
.mlx-hs-tooltip-bottom .mlx-hs-tooltip { top:calc(100% + 8px);left:50%;transform:translateX(-50%); }
.mlx-hs-tooltip-left .mlx-hs-tooltip   { right:calc(100% + 8px);top:50%;transform:translateY(-50%); }
.mlx-hs-tooltip-right .mlx-hs-tooltip  { left:calc(100% + 8px);top:50%;transform:translateY(-50%); }

/* ═══════════════════════════════════════════════════════════════════
   SP STOCK INDICATOR
══════════════════════════════════════════════════════════════════ */
.mlx-stock--in  { color:#10b981; }
.mlx-stock--low { color:#f59e0b; }
.mlx-stock--out { color:#ef4444; }

/* ── Image swatches ───────────────────────────────────────── */
.mlx-swatch--image {
  width: var(--mlx-sw-size, 36px);
  height: var(--mlx-sw-size, 36px);
  padding: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid var(--mlx-border, #e5e5e5);
  background: var(--mlx-surface);
}
.mlx-swatch--image img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  pointer-events: none;
}
.mlx-swatch--image:hover,
.mlx-swatch--image.is-selected,
.mlx-swatch--image.is-active { border-color: var(--mlx-color-accent, #e84545); }
[data-theme="dark"] .mlx-swatch--image { border-color: var(--mlx-border); }

/* ── Shop loop swatches (product card) ───────────────────── */
.mlx-loop-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: .5rem;
  align-items: center;
}

.mlx-loop-swatch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  flex-shrink: 0;
}
.mlx-loop-swatch:hover { transform: scale(1.15); box-shadow: 0 0 0 2px var(--mlx-color-accent, #e84545); }

/* Color dot */
.mlx-loop-swatch--color {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.12);
}

/* Image thumbnail */
.mlx-loop-swatch--image {
  width: 24px; height: 24px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--mlx-border, #e5e5e5);
}
.mlx-loop-swatch--image img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* Label (text) */
.mlx-loop-swatch--label {
  padding: 1px 5px;
  border: 1px solid var(--mlx-border, #e5e5e5);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--mlx-text, #1e1e1e);
  background: var(--mlx-surface, #f5f5f5);
}

/* +N more */
.mlx-loop-swatch--more {
  font-size: 10px;
  font-weight: 600;
  color: var(--mlx-text-muted, #888);
  padding: 0 2px;
}

[data-theme="dark"] .mlx-loop-swatch--color { border-color: rgba(255,255,255,.12); }
[data-theme="dark"] .mlx-loop-swatch--image { border-color: var(--mlx-border); }
[data-theme="dark"] .mlx-loop-swatch--label { border-color: var(--mlx-border); background: var(--mlx-surface); color: var(--mlx-text); }

/* ── Frequently Bought Together ──────────────────────────── */
.mlx-fbt {
  margin: 2.5rem 0;
  padding: 1.5rem;
  border: 1px solid var(--mlx-border, #e5e5e5);
  border-radius: 12px;
  background: var(--mlx-surface, #fafafa);
}
.mlx-fbt__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  color: var(--mlx-text, #1e1e1e);
}
.mlx-fbt__products {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.mlx-fbt__plus {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--mlx-text-muted, #888);
  flex-shrink: 0;
}
.mlx-fbt__item {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: #fff;
  border: 1px solid var(--mlx-border, #e5e5e5);
  border-radius: 10px;
  padding: .75rem;
  min-width: 0;
  flex: 1 1 160px;
  max-width: 220px;
  transition: border-color .15s;
}
.mlx-fbt__item--main { border-color: var(--mlx-color-accent, #e84545); }
.mlx-fbt__check-wrap { flex-shrink: 0; cursor: pointer; }
.mlx-fbt__check { width: 16px; height: 16px; accent-color: var(--mlx-color-accent, #e84545); cursor: pointer; }
.mlx-fbt__img img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; display: block; }
.mlx-fbt__info { flex: 1; min-width: 0; }
.mlx-fbt__name { display: block; font-size: .8125rem; font-weight: 500; color: var(--mlx-text, #1e1e1e); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mlx-fbt__name:hover { color: var(--mlx-color-accent, #e84545); }
.mlx-fbt__price { font-size: .8125rem; color: var(--mlx-color-accent, #e84545); font-weight: 600; }

.mlx-fbt__footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.mlx-fbt__total-wrap { font-size: .9375rem; color: var(--mlx-text, #1e1e1e); }
.mlx-fbt__total { color: var(--mlx-color-accent, #e84545); }
.mlx-fbt__atc { padding: .625rem 1.5rem !important; font-size: .9375rem !important; }

/* ═══════════════════════════════════════════════════════════════════
   MLX PRODUCT CATEGORIES WIDGET
══════════════════════════════════════════════════════════════════ */

/* ── Aspect ratio helper ── */
.mlx-cat-item__img-wrap { overflow:hidden; position:relative; background:#f5f5f5; }
.mlx-cat-item__img-wrap.mlx-cat-img--1-1  { aspect-ratio:1/1; }
.mlx-cat-item__img-wrap.mlx-cat-img--4-3  { aspect-ratio:4/3; }
.mlx-cat-item__img-wrap.mlx-cat-img--3-4  { aspect-ratio:3/4; }
.mlx-cat-item__img-wrap.mlx-cat-img--16-9 { aspect-ratio:16/9; }
.mlx-cat-item__img-wrap.mlx-cat-img--3-2  { aspect-ratio:3/2; }
.mlx-cat-item__img-wrap.mlx-cat-img--free { aspect-ratio:auto; }
.mlx-cat-item__img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .4s ease; }
.mlx-cat-item:hover .mlx-cat-item__img { transform:scale(1.06); }

/* ── Base item link ── */
.mlx-cat-item { display:block; text-decoration:none; color:inherit; }

/* ── Default design ── */
.mlx-cat-item--default .mlx-cat-item__info,
.mlx-cat-item--alt     .mlx-cat-item__info {
	padding:.625rem .25rem 0;
	display:flex; align-items:center; justify-content:space-between; gap:.5rem;
}
.mlx-cat-item__name { font-weight:600; font-size:.9375rem; line-height:1.3; }
.mlx-cat-item--default .mlx-cat-item__name { color:var(--mlx-color-primary,#0a0a0a); }
.mlx-cat-item__count { font-size:.75rem; color:#9ca3af; white-space:nowrap; flex-shrink:0; }

/* ── Center-title design — badge centered on image ── */
.mlx-cat-item--center-title .mlx-cat-item__img-wrap { display:flex; align-items:center; justify-content:center; }
.mlx-cat-item__badge {
	position:absolute; bottom:12px; left:50%; transform:translateX(-50%);
	background:rgba(255,255,255,.92); backdrop-filter:blur(4px);
	border-radius:20px; padding:4px 14px;
	display:flex; align-items:center; gap:6px; white-space:nowrap;
	font-size:.8125rem; font-weight:600; color:#111;
	box-shadow:0 2px 8px rgba(0,0,0,.1);
	transition:background .2s;
}
.mlx-cat-item--center-title:hover .mlx-cat-item__badge { background:var(--mlx-color-primary,#0a0a0a); color:#fff; }

/* ── Overlay design — gradient from bottom ── */
.mlx-cat-item__overlay {
	position:absolute; inset:0;
	background:linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.1) 55%, transparent 100%);
	display:flex; flex-direction:column; justify-content:flex-end;
	padding:1rem; border-radius:inherit;
}
.mlx-cat-item--overlay .mlx-cat-item__name { color:#fff; font-size:1rem; }
.mlx-cat-item--overlay .mlx-cat-item__count { color:rgba(255,255,255,.7); }

/* ── Mask design — tint reveals on hover ── */
.mlx-cat-item__mask {
	position:absolute; inset:0;
	background:rgba(var(--mlx-color-primary-rgb,10,10,10),.55);
	display:flex; flex-direction:column; align-items:center; justify-content:center;
	padding:1rem; border-radius:inherit;
	opacity:0; transition:opacity .3s ease;
}
.mlx-cat-item--mask:hover .mlx-cat-item__mask { opacity:1; }
.mlx-cat-item--mask .mlx-cat-item__name { color:#fff; font-size:1rem; text-align:center; }
.mlx-cat-item--mask .mlx-cat-item__count { color:rgba(255,255,255,.75); }

/* ── Separate design — image left, info right ── */
.mlx-cat-item--separate {
	display:flex; align-items:flex-start; gap:1rem;
	background:#fff; border:1px solid #f1f5f9; border-radius:10px; padding:1rem;
}
.mlx-cat-item--separate .mlx-cat-item__img-wrap { flex-shrink:0; width:80px; height:80px; border-radius:8px; }
.mlx-cat-item--separate .mlx-cat-item__info--sep { flex:1; min-width:0; }
.mlx-cat-item--separate .mlx-cat-item__name { font-size:1rem; display:block; margin-bottom:.25rem; }
.mlx-cat-item__subcats { list-style:none; margin:.375rem 0 0; padding:0; display:flex; flex-direction:column; gap:2px; }
.mlx-cat-item__subcats li a { font-size:.8125rem; color:#6b7280; text-decoration:none; transition:color .15s; }
.mlx-cat-item__subcats li a:hover { color:var(--mlx-color-primary,#0a0a0a); }

/* ══ LAYOUTS ══════════════════════════════════════════════════════ */

/* Grid */
.mlx-cat-grid { display:grid; grid-template-columns:repeat(var(--mlx-cat-cols,4),1fr); gap:1rem; }

/* Masonry (CSS columns) */
.mlx-cat-masonry { columns:var(--mlx-cat-cols,4); gap:1rem; }
.mlx-cat-masonry .mlx-cat-item { break-inside:avoid; margin-bottom:1rem; }

/* First-wide (brick: first item spans 2 rows, rest fill right) */
.mlx-cat-first-wide { display:grid; gap:1rem;
	grid-template-columns:1fr 1fr 1fr;
	grid-template-rows:auto;
}
.mlx-cat-fw-main { grid-column:1; grid-row:1/3; }
.mlx-cat-fw-main .mlx-cat-item__img-wrap { height:100%; aspect-ratio:auto; }
.mlx-cat-fw-item { }

/* CAROUSEL */
.mlx-cat-carousel-wrap {
	position: relative;
	width: 100%;
	overflow: hidden;
}
.mlx-cat-carousel-track {
	display: flex;
	gap: var(--mlx-carousel-gap, 1rem);
	will-change: transform;
}
.mlx-cat-carousel-slide {
	flex: 0 0 auto;
	min-width: 0;
	box-sizing: border-box;
}

/* Arrows */
.mlx-cat-carousel-arrow {
	position:absolute; top:50%; transform:translateY(-50%); z-index:10;
	width:40px; height:40px; border-radius:50%;
	background:#fff; border:1px solid #e5e7eb;
	display:flex; align-items:center; justify-content:center;
	cursor:pointer; box-shadow:0 2px 8px rgba(0,0,0,.1);
	transition:background .2s, box-shadow .2s;
}
.mlx-cat-carousel-arrow:hover { background:var(--mlx-color-primary,#0a0a0a); color:#fff; border-color:transparent; }
.mlx-cat-carousel-arrow--prev { left:8px; }
.mlx-cat-carousel-arrow--next { right:8px; }
.mlx-cat-carousel-arrow:disabled { opacity:.35; cursor:default; }

/* Dots */
.mlx-cat-carousel-dots { display:flex; justify-content:center; gap:6px; margin-top:1rem; }
.mlx-cat-carousel-dot {
	width:8px; height:8px; border-radius:50%;
	background:#d1d5db; border:none; cursor:pointer; padding:0;
	transition:background .2s, transform .2s;
}
.mlx-cat-carousel-dot.is-active { background:var(--mlx-color-primary,#0a0a0a); transform:scale(1.3); }

/* Dynamic bullets */
.mlx-cat-carousel-dots--dynamic .mlx-cat-carousel-dot { transition:background .2s, transform .2s, width .2s, height .2s, opacity .2s; }
.mlx-cat-carousel-dots--dynamic .mlx-cat-carousel-dot.is-near { width:6px; height:6px; opacity:.6; }
.mlx-cat-carousel-dots--dynamic .mlx-cat-carousel-dot.is-far  { width:4px; height:4px; opacity:.35; }

/* Overflow disabled -- slides visible outside container */
.mlx-cat-carousel--overflow { overflow:visible; }

/* Scrollbar */
.mlx-cat-carousel-scrollbar { position:relative; height:4px; background:#e5e7eb; border-radius:2px; margin-top:1rem; cursor:pointer; }
.mlx-cat-carousel-scrollbar-drag { position:absolute; top:0; left:0; height:100%; background:var(--mlx-color-primary,#0a0a0a); border-radius:2px; cursor:grab; min-width:30px; }
.mlx-cat-carousel-scrollbar-drag:active { cursor:grabbing; }

/* Arrow position: top-right */
.mlx-cat-carousel--arrows-top .mlx-cat-carousel-arrow-bar { display:flex; justify-content:flex-end; gap:8px; margin-bottom:.75rem; }
.mlx-cat-carousel--arrows-top .mlx-cat-carousel-arrow,
.mlx-cat-carousel--arrows-bottom .mlx-cat-carousel-arrow { position:static; transform:none; box-shadow:none; }

/* Arrow position: bottom-center */
.mlx-cat-carousel--arrows-bottom .mlx-cat-carousel-arrow-bar,
.mlx-cat-carousel-arrow-bar--bottom { display:flex; justify-content:center; gap:8px; margin-top:.75rem; }
.mlx-cat-carousel-arrow-bar--bottom .mlx-cat-carousel-arrow { position:static; transform:none; box-shadow:none; }

/* Auto-height: track animates height */
.mlx-cat-carousel--auto-height .mlx-cat-carousel-track { transition:transform .45s ease, height .45s ease; }

/* ── Responsive ── */
@media(max-width:1024px) {
	.mlx-cat-grid    { grid-template-columns:repeat(min(var(--mlx-cat-cols,4),3),1fr); }
	.mlx-cat-first-wide { grid-template-columns:1fr 1fr; }
}
@media(max-width:640px) {
	.mlx-cat-grid    { grid-template-columns:repeat(2,1fr); }
	.mlx-cat-masonry { columns:2; }
	.mlx-cat-first-wide { grid-template-columns:1fr; }
	.mlx-cat-fw-main { grid-row:auto; }
}

/* ── Native WC subcategory tiles — match theme grid ── */
.products > .product-category {
	list-style: none;
	margin: 0; padding: 0;
}
.product-category .mlx-cat-item { display:block; }
/* Count on native tiles */
.mlx-cat-native__count {
	font-size:.75rem; color:#9ca3af;
	margin-left:.25rem;
}
/* Archive page product/category grid — uses CSS vars from class-assets.php */
.mlx-products-wrapper ul.products {
	display: grid;
	grid-template-columns: repeat(var(--mlx-shop-cols, 4), 1fr);
	gap: 1.5rem;
	list-style: none;
	margin: 0; padding: 0;
}
/* Category tiles on shop use --mlx-cat-cols */
.mlx-products-wrapper ul.products:has(.product-category) {
	grid-template-columns: repeat(var(--mlx-cat-cols, 4), 1fr);
}
@media(max-width:1279px) {
	.mlx-products-wrapper ul.products { grid-template-columns: repeat(var(--mlx-shop-cols-lap, 3), 1fr); }
}
@media(max-width:1023px) {
	.mlx-products-wrapper ul.products { grid-template-columns: repeat(var(--mlx-shop-cols-tab, 2), 1fr); }
}
@media(max-width:640px) {
	.mlx-products-wrapper ul.products { grid-template-columns: repeat(var(--mlx-shop-cols-mob, 2), 1fr); }
}

/* ── Shop subcategory section — full-width row above products ── */
.mlx-shop-subcats {
	width: 100%;
	margin-bottom: 2rem;
}
/* The <ul class="products"> inside the subcats section uses cat columns */
.mlx-shop-subcats ul.products {
	display: grid;
	grid-template-columns: repeat(var(--mlx-cat-cols, 4), 1fr);
	gap: 1rem;
	list-style: none;
	margin: 0; padding: 0;
}
.mlx-shop-subcats ul.products li.product-category {
	margin: 0; padding: 0;
}
@media(max-width:1023px) {
	.mlx-shop-subcats ul.products { grid-template-columns: repeat(3, 1fr); }
}
@media(max-width:640px) {
	.mlx-shop-subcats ul.products { grid-template-columns: repeat(2, 1fr); }
}

/* ── Separate design: fix empty space — make card fill height properly ── */
.mlx-cat-item--separate {
	display: flex;
	align-items: center; /* vertically center image and text */
	gap: 1rem;
	background: #fff;
	border: 1px solid #f1f5f9;
	border-radius: 10px;
	padding: 1rem;
	height: 100%;
	box-sizing: border-box;
	transition: box-shadow .2s, border-color .2s;
}
.mlx-cat-item--separate:hover {
	box-shadow: 0 4px 16px rgba(0,0,0,.08);
	border-color: #e5e7eb;
}
/* Image: fixed square, no aspect-ratio wrapper stretching */
.mlx-cat-item--separate .mlx-cat-item__img-wrap {
	flex-shrink: 0;
	width: 72px !important;
	height: 72px !important;
	aspect-ratio: 1/1 !important;
	border-radius: 8px;
	overflow: hidden;
}
.mlx-cat-item--separate .mlx-cat-item__img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* Text side: fill remaining space */
.mlx-cat-item--separate .mlx-cat-item__info--sep {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.mlx-cat-item--separate .mlx-cat-item__name {
	font-size: .9375rem;
	font-weight: 700;
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
/* Native WC category tiles inside mlx-shop-subcats also use the card style */
.mlx-shop-subcats .product-category a {
	display: block;
	text-decoration: none;
	color: inherit;
}

/* ── Subcategory section — ALWAYS grid, immune to list-view class ── */
.mlx-shop-subcats {
	width: 100%;
	margin-bottom: 2rem;
}
/* Use a dedicated class .mlx-subcats-grid so list-view selectors cannot match */
ul.mlx-subcats-grid {
	display: grid !important;
	grid-template-columns: repeat(var(--mlx-subcat-cols, 2), 1fr) !important;
	gap: 1rem !important;
	list-style: none !important;
	margin: 0 !important; padding: 0 !important;
	/* Override any .mlx-view-list ul.products rules */
}
/* Responsive */
@media(max-width:1023px) { ul.mlx-subcats-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media(max-width:640px)  { ul.mlx-subcats-grid { grid-template-columns: 1fr !important; } }

/* Each cat tile inside subcats grid */
ul.mlx-subcats-grid li.product-category {
	width: 100% !important;
	height: auto !important;
	/* Reset any list-view card styles */
	display: block !important;
}
ul.mlx-subcats-grid li.product-category .mlx-product-card__inner,
ul.mlx-subcats-grid li.product-category .mlx-product-card__inner * {
	/* Ensure cat cards are never affected by list-view card CSS */
	flex-direction: unset !important;
	min-height: unset !important;
}

/* ── MLX Testimonials Slider (mlx-tsl) ─────────────────────── */
.mlx-tsl,
.mlx-csl,
.mlx-ibc,
.mlx-bc,
.mlx-cat-carousel-wrap {
	/* min-width:0 prevents flex item from growing beyond parent in Elementor containers */
	min-width: 0;
	max-width: 100%;
	width: 100%;
	box-sizing: border-box;
}
.mlx-tsl {
	position: relative;
	overflow: hidden;
	width: 100%;
}
.mlx-tsl-track {
	display: flex;
	will-change: transform;
}
.mlx-tsl-slide {
	flex-shrink: 0;
	box-sizing: border-box;
}
/* Arrows */
.mlx-tsl-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	background: #fff;
	border: none;
	border-radius: 50%;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0,0,0,.15);
	padding: 0;
	color: #0a0a0a;
}
.mlx-tsl-arrow--prev { left: 8px; }
.mlx-tsl-arrow--next { right: 8px; }
.mlx-tsl-arrow:disabled { opacity: .35; pointer-events: none; }
/* Dots */
.mlx-tsl-dots {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 16px;
}
.mlx-tsl-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: none;
	background: rgba(0,0,0,.2);
	cursor: pointer;
	padding: 0;
	transition: background .2s;
}
.mlx-tsl-dot.is-active { background: var(--mlx-accent, #0a0a0a); }

/* ── MLX Info Box alignment ── */
.mlx-ib-align-left   .mlx-info-box--layout-top { align-items: flex-start; }
.mlx-ib-align-center .mlx-info-box--layout-top { align-items: center; }
.mlx-ib-align-right  .mlx-info-box--layout-top { align-items: flex-end; }

/* ── MLX Info Box fixes ── */
/* SVG icon sizing and color */
.mlx-info-box__icon svg {
	width: 1em;
	height: 1em;
	display: block;
	fill: currentColor;
}
/* Icon SVG — fill follows color set by Elementor on icon-wrap */
.mlx-info-box__icon svg,
.mlx-info-box__icon svg path {
	fill: currentColor !important;
}
.mlx-info-box__icon-wrap {
	transition: background-color .25s, color .25s;
}
/* Spacing between icon and body */
.mlx-info-box--layout-top .mlx-info-box__icon-wrap {
	margin-bottom: 1.25rem;
}

/* Top layout */
.mlx-info-box--layout-top { flex-direction: column; }

/* Icon alignment in top layout */
.mlx-ib-align-left   .mlx-info-box--layout-top .mlx-info-box__icon-wrap { align-self: flex-start; }
.mlx-ib-align-center .mlx-info-box--layout-top .mlx-info-box__icon-wrap { align-self: center; }
.mlx-ib-align-right  .mlx-info-box--layout-top .mlx-info-box__icon-wrap { align-self: flex-end; }

/* Icon spacing */
.mlx-info-box--layout-top  .mlx-info-box__icon-wrap { margin-bottom: 1rem; }
.mlx-info-box--layout-left  .mlx-info-box__icon-wrap,
.mlx-info-box--layout-right .mlx-info-box__icon-wrap { margin-bottom: 0; margin-top: .125rem; }

/* Body — stretch to fill so link can be aligned */
.mlx-info-box__body { flex: 1; }

/* Learn more link — inherits text-align from .mlx-info-box */
.mlx-info-box__link {
	display: block;
	width: fit-content;
}
.mlx-ib-align-left   .mlx-info-box__link { margin-right: auto; }
.mlx-ib-align-center .mlx-info-box__link { margin-left: auto; margin-right: auto; }
.mlx-ib-align-right  .mlx-info-box__link { margin-left: auto; }

/* ── MLX Banner buttons ── */
.mlx-banner-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: .75rem 2rem;
	font-size: 1rem;
	font-weight: 600;
	border-radius: 6px;
	text-decoration: none;
	transition: background .2s, color .2s, border-color .2s;
	border: 2px solid transparent;
	cursor: pointer;
}
/* Filled */
.mlx-banner-btn--filled {
	background: var(--mlx-color-primary, #0a0a0a);
	color: #fff;
	border-color: var(--mlx-color-primary, #0a0a0a);
}
.mlx-banner-btn--filled:hover {
	background: var(--mlx-color-accent, #e84545);
	border-color: var(--mlx-color-accent, #e84545);
	color: #fff;
}
/* Outline */
.mlx-banner-btn--outline {
	background: transparent;
	color: #fff;
	border-color: rgba(255,255,255,.8);
}
.mlx-banner-btn--outline:hover {
	background: rgba(255,255,255,.15);
	border-color: #fff;
	color: #fff;
}
/* Plain text underline */
.mlx-banner-btn--plain {
	background: transparent;
	color: #fff;
	border-color: transparent;
	text-decoration: underline;
	text-underline-offset: 3px;
	padding-left: 0;
	padding-right: 0;
}
.mlx-banner-btn--plain:hover {
	color: rgba(255,255,255,.75);
}

/* ── MLX Accordion ── */
.mlx-accordion { display: flex; flex-direction: column; }
.mlx-accordion-item { border: 1px solid #eee; overflow: hidden; }
.mlx-accordion-body {
	max-height: 0;
	overflow: hidden;
	transition: max-height .35s cubic-bezier(.4,0,.2,1);
}
.mlx-accordion-header {
	display: flex;
	align-items: center;
	width: 100%;
	text-align: left;
	cursor: pointer;
	background: none;
	border: none;
	gap: .75rem;
	font-size: inherit;
	font-family: inherit;
}
.mlx-accordion-header--icon-left  .mlx-accordion-icon { order: -1; }
.mlx-accordion-header--icon-right .mlx-accordion-icon { margin-left: auto; }
/* Expand icon show/hide */
.mlx-accordion-icon { display: flex; flex-shrink: 0; }
.mlx-accordion-icon--open   { display: none; }
.mlx-accordion-icon--closed { display: flex; }
.mlx-accordion-item.is-open .mlx-accordion-icon--open   { display: flex; }
.mlx-accordion-item.is-open .mlx-accordion-icon--closed { display: none; }
/* Custom icon SVG — force color and size */
.mlx-accordion-custom-icon { display: inline-flex; flex-shrink: 0; }
.mlx-accordion-custom-icon svg { width: 1em; height: 1em; display: block; fill: currentColor !important; }
.mlx-accordion-custom-icon svg path { fill: currentColor !important; }
.mlx-accordion-custom-icon i { color: inherit !important; }

/* ── MLX Counter ── */
.mlx-counter__icon svg {
	display: block;
	fill: currentColor !important;
	width: 1em;
	height: 1em;
}
.mlx-counter__icon svg path { fill: currentColor !important; }
.mlx-counter__number { line-height: 1; }
.mlx-counter__title  { margin: .25rem 0 0; }

/* ── MLX Team Member ── */
.mlx-team-member { overflow: hidden; }
/* base.min.css handles flex-direction — do not override here */
/* Standard + overlay: center photo */
.mlx-team-member--standard .mlx-team-member__photo,
.mlx-team-member--overlay  .mlx-team-member__photo {
	margin-left: auto;
	margin-right: auto;
}
.mlx-team-member__photo {
	overflow: hidden;
	display: block;
	max-width: 100%;
}
.mlx-team-member__photo img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform .4s ease, filter .4s ease;
}
.mlx-team-hover--lift {
	transition: transform .3s ease, box-shadow .3s ease, padding .3s ease;
}
.mlx-team-member__social { list-style: none; padding: 0; margin: .75rem 0 0; display: flex; gap: .5rem; flex-wrap: wrap; }
.mlx-team-member__social a { display: inline-flex; align-items: center; justify-content: center; color: inherit; transition: color .2s; text-decoration: none; }
.mlx-team-member__social svg { width: 18px; height: 18px; display: block; fill: currentColor; }

/* Hover effects */
.mlx-team-hover--zoom:hover .mlx-team-member__photo img { transform: scale(1.08); }
.mlx-team-hover--lift { transition: transform .3s ease, box-shadow .3s ease; }
.mlx-team-hover--lift:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,.12); padding: 10px; }
.mlx-team-hover--darken:hover .mlx-team-member__photo img { filter: brightness(.85); }
.mlx-team-hover--border { border: 2px solid transparent; transition: border-color .3s ease; }
.mlx-team-hover--border:hover { border-color: var(--mlx-color-accent, #0ea0a3); }

/* ── MLX Team Overlay overrides ── */
.mlx-team-member--overlay .mlx-team-member__info {
	color: #fff;
}
.mlx-team-member--overlay .mlx-team-member__name {
	color: #fff !important;
}
.mlx-team-member--overlay .mlx-team-member__role {
	color: rgba(255,255,255,.85) !important;
}
.mlx-team-member--overlay .mlx-team-member__bio {
	color: rgba(255,255,255,.8) !important;
}
.mlx-team-member--overlay .mlx-team-member__social a {
	color: #fff !important;
}

/* ── Dark mode — category items ────────────────────────────────── */
[data-theme="dark"] .mlx-cat-item--separate {
  background: var(--mlx-surface, #1e1e1e);
  border-color: var(--mlx-border, rgba(255,255,255,.08));
}
[data-theme="dark"] .mlx-cat-item--separate .mlx-cat-item__name,
[data-theme="dark"] .mlx-cat-item--default .mlx-cat-item__name {
  color: var(--mlx-text, #f0f0f0);
}
[data-theme="dark"] .mlx-cat-item__img-wrap {
  background: var(--mlx-surface-2, #2a2a2a);
}
[data-theme="dark"] .mlx-cat-item__subcats li a { color: var(--mlx-text-muted, #aaa); }
[data-theme="dark"] .mlx-cat-item__subcats li a:hover { color: var(--mlx-color-primary, #fff); }
