/* ==========================================================================
   MG VISUAL SPORT PRO — WooCommerce (tienda, galería, foto, carrito, pago)
   ========================================================================== */

/* ---------- Cabecera de tienda / galería ---------- */
.mgx-shophero { position: relative; padding: calc(var(--hh) + 50px) 0 56px; overflow: hidden; isolation: isolate; min-height: 560px; display: flex; align-items: flex-end; }
.mgx-shophero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; z-index: -2; filter: grayscale(.35); transform: scale(1.06); animation: mgxSlowZoom 18s ease-in-out infinite alternate; }
@keyframes mgxSlowZoom { to { transform: scale(1.16); } }
.mgx-shophero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--bk) 0%, rgba(5,6,5,.78) 45%, rgba(5,6,5,.6) 100%), linear-gradient(90deg, rgba(5,6,5,.9), transparent 75%); }
.mgx-shophero .mgx-display { margin: 12px 0 14px !important; max-width: 16ch; }
.mgx-shophero__meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.mgx-shophero__meta span { padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--ln-2); font-family: var(--fd); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 14px; color: var(--mu); backdrop-filter: blur(8px); }
.mgx-shophero__meta b { color: var(--g); font-size: 17px; }
.mgx-shophero .mgx-searchbox { max-width: 720px; z-index: 6; }
.mgx-shophero .mgx-chips { margin-top: 22px; }
.mgx-chips--scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.mgx-chips--scroll::-webkit-scrollbar { display: none; }
.mgx-chips--scroll .mgx-chip { flex: none; }
.mgx-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 22px; font-size: 14px; color: var(--mu-2); }
.mgx-crumbs a:hover { color: var(--g); }
.mgx-crumbs i { font-style: normal; opacity: .5; }
.mgx-crumbs span { color: var(--tx); }

.mgx-shopgals { padding: 40px 0 10px; }
.mgx-shopgals__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.mgx-shopgal { position: relative; display: block; aspect-ratio: 4/3; border-radius: 22px; overflow: hidden; border: 1px solid var(--ln); isolation: isolate; color: var(--tx) !important; }
.mgx-shopgal img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease), filter .6s; filter: saturate(.8) brightness(.85); }
.mgx-shopgal::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(5,6,5,.92), transparent 70%); }
.mgx-shopgal__body { position: absolute; left: 18px; right: 60px; bottom: 16px; }
.mgx-shopgal__body small { color: var(--g); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.mgx-shopgal__body strong { display: block; font-family: var(--fd); font-weight: 900; font-size: 24px; line-height: .95; text-transform: uppercase; }
.mgx-shopgal > .mgx-ico { position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--g); color: #061003; transform: scale(.7) rotate(-45deg); opacity: 0; transition: all .5s var(--ease); }
.mgx-shopgal:hover img { transform: scale(1.08); filter: none; }
.mgx-shopgal:hover { border-color: var(--ln-g); }
.mgx-shopgal:hover > .mgx-ico { transform: none; opacity: 1; }

/* ---------- Contenedor general Woo ---------- */
body.mgx-shop .site-content > .ast-container { width: min(1320px, 92vw); max-width: none; padding: 0; margin-inline: auto; }
body.mgx-shop #primary { margin: 50px 0 120px !important; padding: 0 !important; }
body.mgx-shop .ast-woocommerce-container, body.mgx-shop .site-main { background: transparent !important; }
body.mgx-shop .woocommerce-breadcrumb, body.mgx-shop .ast-breadcrumbs-wrapper { display: none; }
body.mgx-shop .woocommerce-products-header { display: none; }

/* Barra de orden y resultados */
body.mgx-shop .ast-shop-toolbar-container,
body.mgx-shop .woocommerce-result-count,
body.mgx-shop .woocommerce-ordering { color: var(--mu); }
body.mgx-shop .ast-shop-toolbar-container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px 12px 12px 22px; margin-bottom: 30px !important; border-radius: 999px; background: var(--bk-2); border: 1px solid var(--ln); }
body.mgx-shop .woocommerce-result-count { margin: 0 !important; font-family: var(--fd); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 14px; }
body.mgx-shop .woocommerce-ordering { margin: 0 !important; }
body.mgx-shop .woocommerce-ordering select,
body.mgx .woocommerce select,
body.mgx select { height: 46px; padding: 0 40px 0 18px !important; border-radius: 999px !important; border: 1px solid var(--ln-2) !important; background-color: var(--bk-3) !important; color: var(--tx) !important; font-family: var(--fb); font-weight: 600; -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238dff00' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 14px center !important; background-size: 16px !important; }
body.mgx-shop .astra-shop-filter-button { height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--ln-2); background: transparent; color: var(--tx); }

/* ---------- Tarjetas de producto (fotos) ---------- */
body.mgx .woocommerce ul.products,
body.mgx ul.products { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px !important; margin: 0 0 40px !important; padding: 0 !important; }
body.mgx ul.products::before, body.mgx ul.products::after { display: none !important; }
body.mgx ul.products li.product {
	position: relative;
	width: auto !important; float: none !important; margin: 0 !important; padding: 0 !important;
	border-radius: 22px; overflow: hidden;
	background: linear-gradient(180deg, #111411, #0a0c0a) !important;
	border: 1px solid var(--ln);
	text-align: left !important;
	transition: transform .55s var(--ease), border-color .4s, box-shadow .55s var(--ease);
	animation: mgxCardIn .8s var(--ease) both;
	animation-delay: calc(var(--n, 0) * 60ms);
}
@keyframes mgxCardIn { from { opacity: 0; transform: translateY(40px); } }
body.mgx ul.products li.product:hover { transform: translateY(-8px); border-color: var(--ln-g); box-shadow: 0 30px 60px rgba(0,0,0,.5), 0 0 40px rgba(141,255,0,.1); }
body.mgx ul.products li.product .astra-shop-thumbnail-wrap { position: relative; overflow: hidden; margin: 0 !important; }
body.mgx ul.products li.product .astra-shop-thumbnail-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,6,5,.65), transparent 40%); pointer-events: none; }
body.mgx ul.products li.product img { display: block; width: 100% !important; aspect-ratio: 1; object-fit: cover; margin: 0 !important; border-radius: 0 !important; transition: transform 1s var(--ease), filter .6s; -webkit-user-drag: none; user-select: none; }
body.mgx ul.products li.product:hover img { transform: scale(1.08); }
body.mgx ul.products li.product .astra-shop-summary-wrap { padding: 16px 18px 18px !important; }
body.mgx ul.products li.product .ast-woo-product-category { display: block; margin-bottom: 4px; font-family: var(--fd); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; color: var(--g) !important; opacity: 1 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.mgx ul.products li.product .woocommerce-loop-product__title { margin: 0 0 8px !important; padding: 0 !important; font-family: var(--fd) !important; font-weight: 800 !important; font-size: 19px !important; line-height: 1.05 !important; text-transform: uppercase; color: var(--tx) !important; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.1em; word-break: break-word; }
body.mgx ul.products li.product .price { display: block; margin: 0 0 14px !important; font-family: var(--fd); font-weight: 900 !important; font-size: 26px !important; color: var(--tx) !important; }
body.mgx ul.products li.product .price .woocommerce-Price-currencySymbol { color: var(--g); margin-right: 2px; }
body.mgx ul.products li.product .button,
body.mgx ul.products li.product .add_to_cart_button {
	position: relative;
	display: flex !important; align-items: center; justify-content: center; gap: 8px;
	width: 100%; height: 48px; margin: 0 !important; padding: 0 14px !important;
	border-radius: 999px !important;
	background: rgba(141,255,0,.1) !important; border: 1px solid var(--ln-g) !important; color: var(--g) !important;
	font-family: var(--fd) !important; font-weight: 800 !important; font-size: 15px !important; letter-spacing: .08em; text-transform: uppercase; line-height: 1 !important;
	transition: all .35s var(--ease) !important;
	overflow: hidden;
}
body.mgx ul.products li.product .button:hover { background: var(--g) !important; color: #061003 !important; box-shadow: var(--glow); }
body.mgx ul.products li.product .button.loading { opacity: 1 !important; color: transparent !important; }
body.mgx ul.products li.product .button.loading::after { content: "" !important; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px !important; border-radius: 50%; border: 2px solid rgba(141,255,0,.3); border-top-color: var(--g); animation: mgxSpin .7s linear infinite; font-family: inherit !important; }
body.mgx ul.products li.product .button.added { background: var(--g) !important; color: #061003 !important; }
body.mgx ul.products li.product .button.added::after { content: "✓" !important; margin-left: 6px; font-family: inherit !important; }
body.mgx ul.products li.product .added_to_cart { display: block; text-align: center; margin-top: 10px; font-family: var(--fd); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; color: var(--g) !important; }
/* El botón sobre la imagen de Astra y la vista rápida */
body.mgx ul.products li.product .ast-on-card-button { background: var(--g) !important; color: #061003 !important; border-radius: 50% !important; }
body.mgx .ast-quick-view-text, body.mgx .ast-quick-view-button { background: rgba(5,6,5,.85) !important; color: var(--g) !important; font-family: var(--fd); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; backdrop-filter: blur(8px); }
body.mgx .onsale { background: var(--g) !important; color: #061003 !important; border-radius: 999px !important; font-family: var(--fd); font-weight: 800; }

/* Paginación */
body.mgx .woocommerce-pagination { margin-top: 30px; text-align: center; }
body.mgx .woocommerce-pagination ul.page-numbers { display: inline-flex !important; gap: 8px; border: 0 !important; padding: 8px !important; border-radius: 999px; background: var(--bk-2) !important; border: 1px solid var(--ln) !important; }
body.mgx .woocommerce-pagination ul.page-numbers li { border: 0 !important; float: none !important; }
body.mgx .woocommerce-pagination .page-numbers a, body.mgx .woocommerce-pagination .page-numbers span { display: grid !important; place-items: center; min-width: 44px; height: 44px; padding: 0 10px !important; border-radius: 999px; background: transparent !important; color: var(--tx) !important; font-family: var(--fd); font-weight: 800; font-size: 17px; border: 0 !important; transition: all .3s; }
body.mgx .woocommerce-pagination .page-numbers a:hover { background: var(--g-a) !important; color: var(--g) !important; }
body.mgx .woocommerce-pagination .page-numbers span.current { background: var(--g) !important; color: #061003 !important; }

/* ---------- Avisos ---------- */
body.mgx .woocommerce-message, body.mgx .woocommerce-info, body.mgx .woocommerce-error, body.mgx .woocommerce-notices-wrapper > * {
	border: 1px solid var(--ln-g) !important; border-radius: 18px !important;
	background: rgba(141,255,0,.07) !important; color: var(--tx) !important;
	padding: 18px 22px 18px 56px !important; font-weight: 600;
	box-shadow: none !important;
}
body.mgx .woocommerce-message::before, body.mgx .woocommerce-info::before { color: var(--g) !important; top: 18px !important; left: 22px !important; }
body.mgx .woocommerce-error { border-color: rgba(255,98,98,.5) !important; background: rgba(255,98,98,.08) !important; }
body.mgx .woocommerce-error::before { color: #ff6262 !important; }
body.mgx .woocommerce-message .button, body.mgx .woocommerce-info .button { float: right; height: auto; padding: 8px 16px !important; border-radius: 999px !important; background: var(--g) !important; color: #061003 !important; font-family: var(--fd); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
body.mgx .woocommerce-message a:not(.button), body.mgx .woocommerce-info a:not(.button) { color: var(--g) !important; }

/* ---------- Botones genéricos de Woo ---------- */
body.mgx .woocommerce a.button, body.mgx .woocommerce button.button, body.mgx .woocommerce input.button,
body.mgx a.button, body.mgx button.button, body.mgx .button.wc-backward {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 52px; padding: 0 26px !important;
	border-radius: 999px !important; border: 1px solid var(--ln-g) !important;
	background: transparent !important; color: var(--tx) !important;
	font-family: var(--fd) !important; font-weight: 800 !important; font-size: 16px !important; letter-spacing: .07em; text-transform: uppercase; line-height: 1 !important;
	transition: all .35s var(--ease) !important;
}
body.mgx .woocommerce a.button:hover, body.mgx .woocommerce button.button:hover, body.mgx a.button:hover, body.mgx button.button:hover { background: var(--g-a) !important; border-color: var(--g) !important; color: var(--g) !important; transform: translateY(-2px); }
body.mgx .woocommerce .button.alt, body.mgx .button.alt, body.mgx .checkout-button, body.mgx #place_order, body.mgx .single_add_to_cart_button, body.mgx .button.wc-backward {
	background: var(--g) !important; border-color: var(--g) !important; color: #061003 !important;
	box-shadow: 0 10px 30px rgba(141,255,0,.25);
}
body.mgx .woocommerce .button.alt:hover, body.mgx .checkout-button:hover, body.mgx #place_order:hover, body.mgx .single_add_to_cart_button:hover, body.mgx .button.wc-backward:hover { background: var(--g-2) !important; color: #061003 !important; box-shadow: var(--glow) !important; }

/* ---------- Inputs genéricos ---------- */
body.mgx .woocommerce input.input-text, body.mgx .woocommerce textarea, body.mgx .woocommerce input[type="text"], body.mgx .woocommerce input[type="email"], body.mgx .woocommerce input[type="tel"], body.mgx .woocommerce input[type="password"], body.mgx .woocommerce input[type="number"],
body.mgx .select2-container--default .select2-selection--single {
	min-height: 54px; padding: 12px 18px !important;
	border-radius: 14px !important; border: 1px solid var(--ln-2) !important;
	background: rgba(255,255,255,.035) !important; color: var(--tx) !important;
	font-family: var(--fb); font-size: 16px; box-shadow: none !important;
	transition: border-color .3s, box-shadow .3s, background .3s;
}
body.mgx .woocommerce input.input-text:focus, body.mgx .woocommerce textarea:focus { border-color: var(--g) !important; background: rgba(141,255,0,.05) !important; box-shadow: 0 0 0 4px rgba(141,255,0,.1) !important; outline: 0; }
body.mgx .select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--tx) !important; line-height: 28px !important; padding: 0 !important; }
body.mgx .select2-container--default .select2-selection--single .select2-selection__arrow { height: 52px !important; right: 10px !important; }
body.mgx .select2-dropdown { background: var(--bk-2) !important; border: 1px solid var(--ln-g) !important; color: var(--tx); border-radius: 14px !important; overflow: hidden; }
body.mgx .select2-results__option--highlighted { background: var(--g) !important; color: #061003 !important; }
body.mgx .select2-search__field { background: var(--bk-3) !important; color: var(--tx) !important; border-color: var(--ln-2) !important; border-radius: 10px; }
body.mgx .woocommerce form .form-row label { font-family: var(--fd); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; color: var(--mu); margin-bottom: 6px; }
body.mgx .woocommerce form .form-row .required { color: var(--g) !important; }
body.mgx .woocommerce form .form-row.woocommerce-invalid input.input-text { border-color: #ff6262 !important; }

/* ---------- Ficha de producto ---------- */
body.mgx.single-product div.product { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
body.mgx.single-product div.product > * { width: auto !important; float: none !important; margin: 0 !important; }
body.mgx.single-product div.product .woocommerce-product-gallery { position: sticky; top: calc(var(--hh) + 20px); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--ln-g); background: var(--bk-2); box-shadow: 0 50px 100px rgba(0,0,0,.5); }
body.mgx.single-product div.product .woocommerce-product-gallery::after { content: "MG Visual Sport · Vista previa"; position: absolute; left: 16px; bottom: 16px; z-index: 3; padding: 7px 12px; border-radius: 999px; background: rgba(5,6,5,.75); color: var(--g); font-family: var(--fd); font-weight: 800; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; backdrop-filter: blur(6px); pointer-events: none; }
body.mgx.single-product div.product .woocommerce-product-gallery img { border-radius: 0 !important; -webkit-user-drag: none; user-select: none; }
body.mgx.single-product .woocommerce-product-gallery__trigger { background: var(--g) !important; border-radius: 50% !important; top: 16px !important; right: 16px !important; }
body.mgx.single-product .woocommerce-product-gallery__trigger::before { border-color: #061003 !important; }
body.mgx.single-product .woocommerce-product-gallery__trigger::after { background: #061003 !important; }
body.mgx.single-product .flex-control-thumbs { padding: 12px !important; gap: 10px; display: flex; }
body.mgx.single-product .flex-control-thumbs li { width: 80px !important; }
body.mgx.single-product .flex-control-thumbs img { border-radius: 10px !important; opacity: .5; }
body.mgx.single-product .flex-control-thumbs img.flex-active { opacity: 1; outline: 2px solid var(--g); }

body.mgx.single-product .summary { padding: clamp(24px, 3vw, 40px) !important; border-radius: var(--r-lg); background: linear-gradient(180deg, #111411, #0a0c0a); border: 1px solid var(--ln); position: relative; overflow: hidden; }
body.mgx.single-product .summary::before { content: ""; position: absolute; right: -120px; top: -120px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(141,255,0,.18), transparent 70%); pointer-events: none; }
body.mgx .mgx-back { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; padding: 8px 16px 8px 10px; border-radius: 999px; border: 1px solid var(--ln-2); color: var(--mu) !important; font-size: 14px; transition: all .3s var(--ease); }
body.mgx .mgx-back .mgx-ico { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--g-a); color: var(--g); transition: transform .3s var(--ease); }
body.mgx .mgx-back b { color: var(--tx); text-transform: uppercase; font-family: var(--fd); letter-spacing: .04em; }
body.mgx .mgx-back:hover { border-color: var(--g); }
body.mgx .mgx-back:hover .mgx-ico { transform: translateX(-3px); }
body.mgx.single-product .ast-product-navigation-wrapper { float: right; position: relative; z-index: 2; }
body.mgx.single-product .ast-product-navigation-wrapper a { width: 40px !important; height: 40px !important; border-radius: 50% !important; border: 1px solid var(--ln-2) !important; background: transparent !important; color: var(--tx) !important; display: inline-grid !important; place-items: center; }
body.mgx.single-product .ast-product-navigation-wrapper a:hover { background: var(--g) !important; color: #061003 !important; border-color: var(--g) !important; }
body.mgx.single-product .product_title { margin: 0 0 12px !important; font-family: var(--fd) !important; font-weight: 900 !important; font-size: clamp(34px, 3.4vw, 54px) !important; line-height: .95 !important; text-transform: uppercase; word-break: break-word; }
body.mgx.single-product .summary .price { display: flex; align-items: baseline; gap: 6px; margin: 0 0 16px !important; font-family: var(--fd); font-weight: 900 !important; font-size: clamp(44px, 4vw, 60px) !important; color: var(--g) !important; text-shadow: 0 0 30px rgba(141,255,0,.35); line-height: 1; }
body.mgx.single-product .woocommerce-product-details__short-description { color: var(--mu); margin-bottom: 20px; }
body.mgx.single-product .woocommerce-product-details__short-description p { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--ln-g); font-family: var(--fd); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 14px; color: var(--g); margin: 0; }
body.mgx.single-product form.cart { display: flex !important; gap: 12px; align-items: stretch; margin: 0 0 22px !important; padding: 0 !important; border: 0 !important; }
body.mgx.single-product form.cart .quantity { display: none !important; } /* fotos digitales: siempre 1 */
body.mgx.single-product form.cart .single_add_to_cart_button { flex: 1; min-height: 64px !important; font-size: 19px !important; border-radius: 999px !important; }
body.mgx.single-product .single_add_to_cart_button::before { content: ""; width: 22px; height: 22px; margin-right: 10px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1.2 12.1a1 1 0 0 1-1 .9H7.2a1 1 0 0 1-1-.9L5 8Z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1.2 12.1a1 1 0 0 1-1 .9H7.2a1 1 0 0 1-1-.9L5 8Z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E") center/contain no-repeat; }
.mgx-trust { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.mgx-trust li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid var(--ln); }
.mgx-trust .mgx-ico { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--g-a); color: var(--g); }
.mgx-trust b { display: block; font-family: var(--fd); font-size: 17px; text-transform: uppercase; letter-spacing: .03em; line-height: 1.1; }
.mgx-trust small { color: var(--mu); font-size: 14px; }
.mgx-help { display: inline-flex; align-items: center; gap: 8px; color: var(--mu) !important; font-size: 15px; }
.mgx-help .mgx-ico { color: var(--g); }
.mgx-help:hover { color: var(--g) !important; }
body.mgx.single-product .product_meta { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ln); font-size: 14px; color: var(--mu-2); }
body.mgx.single-product .product_meta a { color: var(--g) !important; }
body.mgx.single-product .woocommerce-tabs { grid-column: 1 / -1; }
body.mgx.single-product .woocommerce-tabs ul.tabs { border: 0 !important; padding: 0 !important; display: flex; gap: 8px; }
body.mgx.single-product .woocommerce-tabs ul.tabs::before { display: none; }
body.mgx.single-product .woocommerce-tabs ul.tabs li { border: 1px solid var(--ln-2) !important; border-radius: 999px !important; background: transparent !important; margin: 0 !important; padding: 0 !important; }
body.mgx.single-product .woocommerce-tabs ul.tabs li a { padding: 10px 20px !important; font-family: var(--fd); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--mu) !important; }
body.mgx.single-product .woocommerce-tabs ul.tabs li.active { background: var(--g) !important; border-color: var(--g) !important; }
body.mgx.single-product .woocommerce-tabs ul.tabs li.active a { color: #061003 !important; }
body.mgx.single-product .woocommerce-tabs ul.tabs li::before, body.mgx.single-product .woocommerce-tabs ul.tabs li::after { display: none !important; }
body.mgx.single-product .woocommerce-Tabs-panel { color: var(--mu); padding: 24px 0 !important; }
body.mgx.single-product .related.products, body.mgx.single-product .upsells { grid-column: 1 / -1; margin-top: 70px !important; }
body.mgx.single-product .related.products > h2, body.mgx.single-product .upsells > h2 { font-family: var(--fd) !important; font-weight: 900 !important; font-size: clamp(36px, 4vw, 60px) !important; text-transform: uppercase; line-height: 1 !important; margin-bottom: 26px !important; }

/* ---------- Pasos de compra ---------- */
.mgx-commhero { position: relative; padding: calc(var(--hh) + 50px) 0 40px; overflow: hidden; border-bottom: 1px solid var(--ln); background: radial-gradient(800px 300px at 50% 0%, rgba(141,255,0,.1), transparent 70%); }
.mgx-commhero__lines i { position: absolute; left: -20%; width: 60%; height: 2px; background: linear-gradient(90deg, transparent, var(--g), transparent); opacity: .35; transform: rotate(-6deg); animation: mgxSweep 8s var(--ease-io) infinite; }
.mgx-commhero__lines i:nth-child(1) { top: 40%; } .mgx-commhero__lines i:nth-child(2) { top: 75%; animation-delay: 3s; }
.mgx-commhero .mgx-display { text-align: center; margin: 0 0 30px !important; }
.mgx-steps { position: relative; list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); max-width: 760px; }
.mgx-steps::before, .mgx-steps::after { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 21px; height: 2px; background: var(--ln-2); }
.mgx-steps::after { background: var(--g); box-shadow: 0 0 12px var(--g); right: auto; width: calc(75% * var(--active) / 3); transform-origin: left; animation: mgxGrow 1.2s var(--ease) both .3s; }
@keyframes mgxGrow { from { transform: scaleX(0); } }
.mgx-steps li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.mgx-steps__dot { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--bk-2); border: 2px solid var(--ln-2); font-family: var(--fd); font-weight: 900; font-size: 18px; color: var(--mu); transition: all .4s; }
.mgx-steps__label { font-family: var(--fd); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 14px; color: var(--mu-2); }
.mgx-steps li.is-done .mgx-steps__dot { background: var(--g); border-color: var(--g); color: #061003; }
.mgx-steps li.is-active .mgx-steps__dot { border-color: var(--g); color: var(--g); box-shadow: 0 0 0 6px rgba(141,255,0,.12), 0 0 24px rgba(141,255,0,.4); animation: mgxPulse 2s infinite; }
.mgx-steps li.is-done .mgx-steps__label, .mgx-steps li.is-active .mgx-steps__label { color: var(--tx); }

/* ---------- Carrito ---------- */
body.mgx.woocommerce-cart .woocommerce { display: grid; grid-template-columns: 1.55fr 1fr; gap: 30px; align-items: start; }
body.mgx.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
body.mgx.woocommerce-cart .woocommerce-cart-form { margin: 0; }
body.mgx table.shop_table { border: 1px solid var(--ln) !important; border-radius: var(--r-lg) !important; border-collapse: separate !important; border-spacing: 0; overflow: hidden; background: linear-gradient(180deg, #101310, #0a0c0a) !important; margin: 0 !important; }
body.mgx table.shop_table th { padding: 18px 20px !important; background: rgba(255,255,255,.025) !important; font-family: var(--fd); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; color: var(--mu) !important; border: 0 !important; border-bottom: 1px solid var(--ln) !important; }
body.mgx table.shop_table td { padding: 18px 20px !important; border: 0 !important; border-top: 1px solid var(--ln) !important; color: var(--tx); background: transparent !important; vertical-align: middle; }
body.mgx table.shop_table tr:first-child td { border-top: 0 !important; }
body.mgx table.shop_table.cart tr.cart_item { transition: background .3s; animation: mgxCardIn .7s var(--ease) both; }
body.mgx table.shop_table.cart tr.cart_item:hover td { background: rgba(141,255,0,.035) !important; }
body.mgx table.shop_table.cart td.product-thumbnail { width: 124px; }
body.mgx table.shop_table.cart .product-thumbnail img { width: 92px !important; height: 92px; object-fit: cover; border-radius: 14px; border: 1px solid var(--ln-2); }
body.mgx table.shop_table.cart .product-name a { font-family: var(--fd); font-weight: 800; font-size: 20px; text-transform: uppercase; color: var(--tx) !important; line-height: 1.05; }
body.mgx table.shop_table.cart .product-name a:hover { color: var(--g) !important; }
body.mgx table.shop_table .product-price, body.mgx table.shop_table .product-subtotal { font-family: var(--fd); font-weight: 800; font-size: 20px; }
body.mgx table.shop_table .product-subtotal .amount { color: var(--g); }
body.mgx table.shop_table.cart a.remove { width: 34px !important; height: 34px !important; line-height: 32px !important; border-radius: 50% !important; border: 1px solid var(--ln-2) !important; color: var(--mu) !important; font-size: 18px !important; background: transparent !important; transition: all .3s; }
body.mgx table.shop_table.cart a.remove:hover { border-color: #ff6262 !important; color: #fff !important; background: #ff6262 !important; transform: rotate(90deg); }
body.mgx table.shop_table.cart .quantity input { width: 70px; text-align: center; }
body.mgx table.shop_table.cart td.actions { background: rgba(255,255,255,.02) !important; }
body.mgx table.shop_table.cart td.actions .coupon { display: flex; gap: 10px; align-items: center; }
body.mgx table.shop_table.cart td.actions .coupon .input-text { width: 200px !important; border-radius: 999px !important; }
body.mgx table.shop_table.cart td.actions > .button { float: right; }
body.mgx.woocommerce-cart .cart-collaterals { width: auto !important; margin: 0 !important; position: sticky; top: calc(var(--hh) + 20px); }
body.mgx.woocommerce-cart .cart-collaterals .cart_totals { width: 100% !important; float: none !important; padding: 28px; border-radius: var(--r-lg); border: 1px solid var(--ln-g); background: linear-gradient(180deg, #121612, #0a0c0a); box-shadow: 0 40px 80px rgba(0,0,0,.4), 0 0 40px rgba(141,255,0,.06); }
body.mgx .cart_totals h2 { margin: 0 0 18px !important; font-family: var(--fd) !important; font-weight: 900 !important; font-style: italic; font-size: 38px !important; text-transform: uppercase; line-height: 1 !important; }
body.mgx .cart_totals table.shop_table { background: transparent !important; border: 0 !important; }
body.mgx .cart_totals table.shop_table th, body.mgx .cart_totals table.shop_table td { background: transparent !important; padding: 14px 0 !important; border-bottom: 0 !important; border-top: 1px solid var(--ln) !important; }
body.mgx .cart_totals table.shop_table th { width: 40%; }
body.mgx .cart_totals .order-total th, body.mgx .cart_totals .order-total td { border-top: 1px dashed var(--ln-g) !important; padding-top: 20px !important; }
body.mgx .cart_totals .order-total .amount { font-family: var(--fd); font-weight: 900; font-size: 40px; color: var(--g); text-shadow: 0 0 24px rgba(141,255,0,.35); }
body.mgx .wc-proceed-to-checkout { padding: 10px 0 0 !important; }
body.mgx .wc-proceed-to-checkout .checkout-button { width: 100%; min-height: 64px !important; font-size: 19px !important; margin-bottom: 14px !important; }
.mgx-secure { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid var(--ln); color: var(--mu); font-size: 14px; line-height: 1.45; margin-top: 12px; }
.mgx-secure .mgx-ico { width: 22px; height: 22px; color: var(--g); margin-top: 1px; }
.mgx-secure b { color: var(--tx); }

/* Carrito vacío */
body.mgx.woocommerce-cart .woocommerce:has(.cart-empty) { display: block; text-align: center; max-width: 640px; margin: 0 auto; }
.mgx-empty-art { position: relative; width: 140px; height: 160px; margin: 0 auto 10px; }
.mgx-empty-art .mgx-ico { width: 110px; height: 110px; color: var(--g); filter: drop-shadow(0 0 20px rgba(141,255,0,.45)); animation: mgxBounceBall 1.6s cubic-bezier(.5,0,.5,1) infinite; position: absolute; left: 15px; top: 0; }
.mgx-empty-art span { position: absolute; left: 30px; right: 30px; bottom: 6px; height: 12px; border-radius: 50%; background: rgba(141,255,0,.25); filter: blur(4px); animation: mgxShadow 1.6s cubic-bezier(.5,0,.5,1) infinite; }
@keyframes mgxBounceBall { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(36px) rotate(180deg); } }
@keyframes mgxShadow { 0%, 100% { transform: scaleX(.6); opacity: .4; } 50% { transform: scaleX(1); opacity: 1; } }
body.mgx .cart-empty.woocommerce-info { background: transparent !important; border: 0 !important; padding: 0 !important; font-family: var(--fd); font-weight: 900; font-size: clamp(34px, 4vw, 54px); text-transform: uppercase; line-height: 1; text-align: center; }
body.mgx .cart-empty.woocommerce-info::before { display: none !important; }
body.mgx .return-to-shop { margin: 26px 0 0; }
.mgx-empty-gals { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--ln); }
.mgx-empty-gals .mgx-chips { justify-content: center; margin-top: 14px; }

/* ---------- Finalizar compra ---------- */
body.mgx.woocommerce-checkout form.checkout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px 40px; align-items: start; }
body.mgx.woocommerce-checkout form.checkout > * { grid-column: 1; }
body.mgx.woocommerce-checkout form.checkout #order_review_heading, body.mgx.woocommerce-checkout form.checkout #order_review { grid-column: 2; }
body.mgx.woocommerce-checkout form.checkout #order_review_heading { grid-row: 1; margin: 0 !important; }
body.mgx.woocommerce-checkout form.checkout #order_review { grid-row: 2 / span 4; position: sticky; top: calc(var(--hh) + 20px); width: auto !important; float: none !important; padding: 26px; border-radius: var(--r-lg); background: linear-gradient(180deg, #121612, #0a0c0a); border: 1px solid var(--ln-g); box-shadow: 0 40px 80px rgba(0,0,0,.4); }
body.mgx.woocommerce-checkout #customer_details { grid-row: 1 / span 5; width: auto !important; float: none !important; padding: clamp(22px, 3vw, 36px); border-radius: var(--r-lg); background: linear-gradient(180deg, #101310, #0a0c0a); border: 1px solid var(--ln); }
body.mgx.woocommerce-checkout #customer_details .col-1, body.mgx.woocommerce-checkout #customer_details .col-2 { width: 100% !important; float: none !important; padding: 0 !important; }
body.mgx.woocommerce-checkout h3, body.mgx.woocommerce-checkout #order_review_heading { font-family: var(--fd) !important; font-weight: 900 !important; font-style: italic; font-size: clamp(30px, 3vw, 42px) !important; text-transform: uppercase; line-height: 1 !important; margin: 0 0 22px !important; }
body.mgx.woocommerce-checkout .woocommerce-checkout-review-order-table { border: 0 !important; background: transparent !important; }
body.mgx.woocommerce-checkout .woocommerce-checkout-review-order-table th, body.mgx.woocommerce-checkout .woocommerce-checkout-review-order-table td { background: transparent !important; padding: 12px 0 !important; }
body.mgx.woocommerce-checkout .woocommerce-checkout-review-order-table .product-name { font-family: var(--fd); font-weight: 700; text-transform: uppercase; }
body.mgx.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total .amount { font-family: var(--fd); font-weight: 900; font-size: 36px; color: var(--g); }
body.mgx #payment { background: transparent !important; border-radius: 0 !important; margin-top: 10px; }
body.mgx #payment ul.payment_methods { padding: 0 !important; border: 0 !important; display: grid; gap: 10px; }
body.mgx #payment ul.payment_methods li { padding: 16px 18px !important; border-radius: 16px; border: 1px solid var(--ln-2); background: rgba(255,255,255,.03); transition: border-color .3s; }
body.mgx #payment ul.payment_methods li:has(input:checked) { border-color: var(--g); background: rgba(141,255,0,.06); }
body.mgx #payment ul.payment_methods li label { font-family: var(--fd); font-weight: 800; font-size: 18px; text-transform: uppercase; letter-spacing: .03em; color: var(--tx); }
body.mgx #payment ul.payment_methods li img { max-height: 26px; vertical-align: middle; margin-left: 8px; background: #fff; border-radius: 6px; padding: 2px 6px; }
body.mgx #payment div.payment_box { background: var(--bk-3) !important; color: var(--mu) !important; border-radius: 12px !important; margin-top: 12px !important; }
body.mgx #payment div.payment_box::before { border-bottom-color: var(--bk-3) !important; }
body.mgx #payment .place-order { padding: 18px 0 0 !important; }
body.mgx #place_order { width: 100%; min-height: 66px !important; font-size: 20px !important; float: none !important; }
body.mgx .woocommerce-terms-and-conditions-wrapper, body.mgx .woocommerce-privacy-policy-text { color: var(--mu-2); font-size: 14px; }
body.mgx .woocommerce-privacy-policy-text a { color: var(--g) !important; }
body.mgx .woocommerce-form-coupon-toggle .woocommerce-info { margin-bottom: 20px !important; }
body.mgx form.checkout_coupon { border: 1px solid var(--ln) !important; border-radius: 18px !important; padding: 20px !important; background: var(--bk-2); }

/* ---------- Pedido recibido ---------- */
body.mgx .woocommerce-order { max-width: 900px; margin: 0 auto; }
body.mgx .woocommerce-thankyou-order-received { text-align: center; font-family: var(--fd); font-weight: 800; font-size: clamp(24px, 2.4vw, 32px); text-transform: uppercase; color: var(--g); margin-bottom: 30px !important; }
body.mgx .woocommerce-thankyou-order-received::before { content: "✓"; display: grid; place-items: center; width: 90px; height: 90px; margin: 0 auto 20px; border-radius: 50%; background: var(--g); color: #061003; font-size: 46px; box-shadow: 0 0 0 12px rgba(141,255,0,.12), 0 0 50px rgba(141,255,0,.45); animation: mgxPop .8s var(--ease) both; }
body.mgx ul.woocommerce-order-overview { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; padding: 0 !important; margin: 0 0 40px !important; }
body.mgx ul.woocommerce-order-overview li { margin: 0 !important; padding: 16px 18px !important; border: 1px solid var(--ln) !important; border-radius: 16px; background: var(--bk-2); font-size: 12px !important; letter-spacing: .12em; text-transform: uppercase; color: var(--mu); }
body.mgx ul.woocommerce-order-overview li strong { display: block; margin-top: 6px; font-family: var(--fd); font-size: 20px !important; letter-spacing: .02em; color: var(--tx); text-transform: none; }
body.mgx .woocommerce-order-downloads, body.mgx .woocommerce-order-details, body.mgx .woocommerce-customer-details { margin-bottom: 40px !important; }
body.mgx .woocommerce-order-downloads h2, body.mgx .woocommerce-order-details h2, body.mgx .woocommerce-customer-details h2, body.mgx .woocommerce-column__title { font-family: var(--fd) !important; font-weight: 900 !important; text-transform: uppercase; font-size: 34px !important; }
body.mgx .woocommerce-order-downloads .download-file a, body.mgx .woocommerce-MyAccount-downloads-file { background: var(--g) !important; color: #061003 !important; border-color: var(--g) !important; }
body.mgx .woocommerce-customer-details address { border: 1px solid var(--ln) !important; border-radius: 18px; padding: 20px !important; background: var(--bk-2); color: var(--mu); }

/* ---------- Mi cuenta ---------- */
body.mgx .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 8px; border-radius: 22px; background: var(--bk-2); border: 1px solid var(--ln); }
body.mgx .woocommerce-MyAccount-navigation li a { display: block; padding: 12px 16px; border-radius: 14px; font-family: var(--fd); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
body.mgx .woocommerce-MyAccount-navigation li.is-active a, body.mgx .woocommerce-MyAccount-navigation li a:hover { background: var(--g); color: #061003 !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	body.mgx .woocommerce ul.products, body.mgx ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 921px) {
	body.mgx.single-product div.product, body.mgx.woocommerce-cart .woocommerce, body.mgx.woocommerce-checkout form.checkout { grid-template-columns: 1fr; }
	body.mgx.woocommerce-checkout form.checkout > *, body.mgx.woocommerce-checkout form.checkout #order_review_heading, body.mgx.woocommerce-checkout form.checkout #order_review, body.mgx.woocommerce-checkout #customer_details { grid-column: 1; grid-row: auto; position: static; }
	body.mgx.single-product div.product .woocommerce-product-gallery, body.mgx.woocommerce-cart .cart-collaterals { position: static; }
	body.mgx .woocommerce ul.products, body.mgx ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px !important; }
	body.mgx ul.products li.product .astra-shop-summary-wrap { padding: 12px !important; }
	body.mgx ul.products li.product .woocommerce-loop-product__title { font-size: 16px !important; }
	body.mgx ul.products li.product .price { font-size: 21px !important; margin-bottom: 10px !important; }
	body.mgx ul.products li.product .button { height: 42px; font-size: 13px !important; }
	body.mgx-shop .ast-shop-toolbar-container { border-radius: 22px; padding: 12px; }
	body.mgx table.shop_table_responsive tr td { padding: 12px 18px !important; }
	body.mgx table.shop_table.cart td.actions .coupon { flex-direction: column; align-items: stretch; }
	body.mgx table.shop_table.cart td.actions .coupon .input-text { width: 100% !important; }
	.mgx-shophero { min-height: 520px; }
	.mgx-shopgals__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.mgx-shopgal { aspect-ratio: 3/4; border-radius: 18px; }
	.mgx-shopgal__body { left: 12px; right: 12px; bottom: 12px; }
	.mgx-shopgal__body strong { font-size: 18px; }
	.mgx-shopgal > .mgx-ico { display: none; }
	.mgx-head--tight { flex-direction: column; align-items: flex-start; gap: 6px; }
	.mgx-steps__label { font-size: 11px; letter-spacing: .08em; }
}
