/* Carrito (/mi-carrito/) y mi cuenta clásicos de WooCommerce con la marca. El checkout lo arregla EasyMac Core. */
.woocommerce-cart .woocommerce{font-size:15px}
.woocommerce table.shop_table{border:0;border-collapse:collapse;border-radius:0}
.woocommerce table.shop_table th,.woocommerce table.shop_table td{border:0;border-bottom:1px solid var(--line);padding:16px 8px;vertical-align:middle}
.woocommerce table.shop_table thead th{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:700}
.woocommerce-cart table.cart img{width:72px;height:72px;object-fit:contain;border:1px solid var(--line);border-radius:12px;background:#fff}
.woocommerce-cart table.cart .product-name a{font-weight:700;color:var(--ink);text-decoration:none}
.woocommerce-cart table.cart .product-remove a.remove{color:var(--muted)!important;font-size:22px}
.woocommerce-cart table.cart .product-remove a.remove:hover{background:var(--soft);color:var(--err)!important}
.woocommerce .quantity .qty{min-height:44px;width:64px;border:1px solid var(--line);border-radius:999px;text-align:center;font:inherit;font-weight:700}
.woocommerce-cart .cart-collaterals .cart_totals{float:none;width:auto;max-width:440px;margin-left:auto;border:1px solid var(--line);border-radius:var(--r-panel);padding:24px}
.woocommerce-cart .cart_totals h2{font-size:20px;margin-top:0}
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{border-radius:999px;font-weight:700;min-height:44px;padding:10px 22px;background:#fff;color:var(--ink);border:1.5px solid var(--ink)}
.woocommerce a.button:hover,.woocommerce button.button:hover{background:var(--ink);color:#fff}
.woocommerce a.checkout-button,.woocommerce a.button.alt,.woocommerce button.button.alt{background:var(--buy)!important;color:var(--ink)!important;border:0!important;min-height:56px;font-size:17px}
.woocommerce a.checkout-button:hover,.woocommerce a.button.alt:hover{filter:brightness(.94)}
.woocommerce .coupon .input-text{min-height:44px;border:1px solid var(--gray);border-radius:12px;padding:8px 12px}
.woocommerce-message,.woocommerce-info,.woocommerce-error{border-radius:16px;border-top:0;background:var(--soft);color:var(--ink)}
.woocommerce-error{box-shadow:inset 4px 0 0 var(--err)}
.woocommerce-account .woocommerce-MyAccount-navigation ul{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.woocommerce-account .woocommerce-MyAccount-navigation a{display:block;padding:10px 14px;border-radius:12px;color:var(--ink);text-decoration:none;font-weight:700}
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a{background:var(--ink);color:#fff}
.woocommerce form .form-row .input-text,.woocommerce form .form-row select{min-height:48px;border:1px solid var(--gray);border-radius:12px;padding:10px 14px;font:inherit}
.emx-res{display:inline-block;margin-top:6px;padding:4px 10px;border-radius:8px;background:var(--sky-light);color:var(--space);font-size:13px;font-weight:700}
.emx-ck-st{display:block;margin-top:2px;font-size:13px;color:var(--muted)}
@media (max-width:767px){.woocommerce-cart .cart-collaterals .cart_totals{max-width:none}}

/* ---------- Carrito (wireframe v0.12): filas a la izquierda y "Resumen" fijo a la derecha ---------- */
.emx-cart .woocommerce:has(> .emx-cart-form){display:grid;grid-template-columns:minmax(0,1fr) 380px;column-gap:40px;align-items:start}
.emx-cart .woocommerce:has(> .emx-cart-form) > :not(.emx-cart-form):not(.emx-cart-side){grid-column:1/-1}
.emx-cart .emx-cart-form{grid-column:1}
.emx-cart .emx-cart-side{grid-column:2;grid-row:span 2}
.emx-cart-rows{list-style:none;margin:0;padding:0}
.emx-cart-row{display:grid;grid-template-columns:96px minmax(0,1fr) auto;gap:16px;align-items:start;padding:20px 0;border-bottom:1px solid var(--line)}
.emx-cart-img img{display:block;width:96px;height:72px;object-fit:contain;border-radius:12px;background:#fff}
.emx-cart-info > *{margin:0}
.emx-cart-name{font-weight:700;font-size:16px;line-height:1.35}
.emx-cart-name a{color:var(--ink);text-decoration:none}
.emx-cart-name a:hover{text-decoration:underline}
.emx-cart-qty{display:flex;align-items:center;gap:14px;margin-top:12px!important}
.emx-cart-qty .quantity{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:999px}
.emx-cart-qty .quantity .qty{width:36px;min-height:40px;border:0;background:none;padding:0;-moz-appearance:textfield}
.emx-cart-qty .quantity .qty::-webkit-inner-spin-button,.emx-cart-qty .quantity .qty::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.emx-cart-qty .quantity.hidden{display:none}
.emx-cqb{display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:999px;background:none;color:var(--ink);font-size:18px;line-height:1;cursor:pointer}
.emx-cqb:hover{background:var(--soft)}
.emx-cqb[aria-disabled="true"]{color:var(--line);cursor:default;background:none}
.woocommerce-cart a.remove.emx-cart-rm{font-weight:400!important;font-size:14px;color:var(--muted)!important;text-decoration:underline;text-underline-offset:3px;width:auto!important;height:auto!important;line-height:1.4!important;border-radius:0!important}
.woocommerce-cart a.remove.emx-cart-rm:hover{background:none!important;color:var(--err)!important}
.emx-cart-price{text-align:right}
.emx-cart-price > p{margin:0}
.emx-cart-sub{font-weight:700;font-size:17px}
.emx-cart-save{font-size:13px;font-weight:700;color:var(--muted)}
/* Con JavaScript las unidades se actualizan solas: el botón "Actualizar carrito" queda solo para quien no tiene JS */
.js-emx .emx-cart-update{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.emx-cart-actions{padding-top:12px}
.woocommerce-cart .emx-cart-side .cart_totals{max-width:none;margin:0;position:sticky;top:calc(var(--wp-admin--admin-bar--height,0px) + var(--emx-hdr-h,140px) + 16px);padding:24px;border-radius:var(--r-panel);background:var(--soft);border:0}
.emx-cart-sum h2{font-size:20px;margin:0 0 12px}
.emx-sum-t{width:100%}
.woocommerce .emx-sum-t th,.woocommerce .emx-sum-t td{padding:10px 0;border-bottom:1px solid var(--line);font-size:14px;vertical-align:top;background:none}
.emx-sum-t th{font-weight:400;color:var(--muted);text-align:left}
.emx-sum-t td{text-align:right}
.emx-sum-ship td b{display:block;font-weight:700;color:var(--ink)}
.woocommerce .emx-sum-t .emx-sum-note td{padding-top:0;text-align:left;font-size:13px;color:var(--muted)}
.woocommerce .emx-sum-t .emx-sum-coupon td{text-align:left}
.emx-coupon summary{cursor:pointer;font-weight:700;font-size:14px;text-decoration:underline;text-underline-offset:3px;list-style:none}
.emx-coupon summary::-webkit-details-marker{display:none}
.emx-coupon summary::after{content:"›";content:"›"/"";display:inline-block;transition:transform .15s}
.emx-coupon-f{display:flex;flex-direction:column;gap:6px;margin-top:4px}
.emx-coupon-f .input-text{flex:1;min-width:0;min-height:44px;border:1.5px solid var(--gray);border-radius:12px;padding:0 14px;font:inherit;font-size:15px;font-weight:400;color:var(--ink)}
.woocommerce .emx-sum-t .order-total th,.woocommerce .emx-sum-t .order-total td{border-bottom:0;padding-top:16px;font-size:16px;font-weight:700;color:var(--ink)}
.woocommerce .emx-sum-t .order-total td{font-size:22px}
.emx-cart-sum .wc-proceed-to-checkout{padding:10px 0 0}
.emx-cart-sum .wc-proceed-to-checkout .checkout-button{display:flex;align-items:center;justify-content:center;width:100%;margin:0;border-radius:999px}
.emx-cart-sum .emx-pay-block{margin-top:14px}
.emx-sum-help{margin:12px 0 0;font-size:13px;text-align:center;color:var(--muted)}
.emx-sum-help a{font-weight:700;color:var(--ink)}
.emx-cart-more .emx-rail-head h2{font-size:var(--wp--preset--font-size--2-xl)}
@media (max-width:1023px){
	.emx-cart .woocommerce:has(> .emx-cart-form){grid-template-columns:1fr;row-gap:24px}
	.emx-cart .emx-cart-side{grid-column:1;grid-row:auto}
	.woocommerce-cart .emx-cart-side .cart_totals{position:static}
}
@media (max-width:599px){
	.emx-cart-row{grid-template-columns:72px minmax(0,1fr);gap:12px}
	.emx-cart-img img{width:72px;height:56px}
	.emx-cart-price{grid-column:2;text-align:left}
}
.emx-cart-info p.stock{display:none!important} /* "Hay existencias" de Custom Stock Status: la reserva ya la muestra el tema */
/* El carrito usa el ancho amplio (filas + resumen), no el de lectura */
.emx-cart .emx-sec > .wp-block-post-title,.emx-cart .emx-sec > .wp-block-post-content{max-width:var(--wp--style--global--wide-size,1120px)}
.emx-cart .wp-block-post-content > .woocommerce{max-width:none}

/* Mi cuenta en celular (wireframe v0.12): el menú pasa a pestañas horizontales que se deslizan */
@media (max-width:767px){
	.woocommerce-account .woocommerce-MyAccount-navigation{float:none;width:auto;margin:0 -16px;overflow-x:auto;scrollbar-width:none}
	.woocommerce-account .woocommerce-MyAccount-navigation::-webkit-scrollbar{display:none}
	.woocommerce-account .woocommerce-MyAccount-navigation ul{display:flex;gap:4px;padding:0 16px;width:max-content}
	.woocommerce-account .woocommerce-MyAccount-navigation a{white-space:nowrap;padding:8px 14px;border-radius:999px;font-size:14px}
	.woocommerce-account .woocommerce-MyAccount-content{float:none;width:auto}
}
.woocommerce-account .woocommerce-MyAccount-navigation a{text-decoration:none!important}

/* ---------- Carrito al detalle del wireframe v0.12 (.cpg-*, .ci-*, .c-*) ---------- */
.emx-cart .wp-block-post-title{margin:0 0 24px;font-size:32px;font-weight:700;line-height:1.5}
.emx-cart .woocommerce:has(> .emx-cart-form){grid-template-columns:minmax(0,720px) 400px;justify-content:space-between}
.emx-cart-row{grid-template-columns:112px minmax(0,1fr);gap:14px;padding:0 0 20px;margin-bottom:16px}
.emx-cart-img img{width:112px;height:112px;aspect-ratio:1;object-fit:contain;border:1px solid var(--line);border-radius:12px;background:#fff}
.emx-cart-info{display:flex;flex-direction:column;gap:4px;min-width:0}
.emx-cart-name{font-size:17px;font-weight:700;line-height:1.35}
.emx-cart-info .emx-ck-st{margin:0;font-size:13px;color:var(--muted)}
.emx-cart-bot{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-top:8px}
.emx-cart-qty{margin-top:0!important}
.emx-cart-qty .quantity{border-color:var(--line)}
.emx-cqb{width:36px;height:36px;font-size:16px}
.emx-cart-qty .quantity .qty{width:24px;min-height:36px;font-size:14px;font-weight:700}
.js-emx .woocommerce-cart a.remove.emx-cart-rm,.js-emx a.remove.emx-cart-rm{display:none!important}
.emx-cart-price{text-align:right}
.emx-cart-sub{font-size:18px;font-weight:700;white-space:nowrap}
.emx-cart-save{margin-top:2px!important;font-size:12px;font-weight:700;color:var(--ink);white-space:nowrap}
/* Resumen: tarjeta blanca con borde */
.woocommerce-cart .emx-cart-side .cart_totals{display:flex;flex-direction:column;gap:16px;padding:24px;border:1px solid var(--line);border-radius:24px;background:#fff;top:calc(var(--wp-admin--admin-bar--height,0px) + var(--emx-hdr-h,140px) + 16px)}
.emx-cart-sum h2{margin:0;font-size:20px;font-weight:700}
.emx-sum-t{border-top:1px solid var(--line)}
.woocommerce .emx-sum-t th,.woocommerce .emx-sum-t td{padding:6px 0;border:0;font-size:14px}
.woocommerce .emx-sum-t tr:first-child th,.woocommerce .emx-sum-t tr:first-child td{padding-top:14px}
.emx-sum-t th{font-weight:400;color:var(--muted)}
.emx-sum-t td{font-weight:700}
.woocommerce .emx-sum-t .emx-sum-ship th,.woocommerce .emx-sum-t .emx-sum-ship td{display:block;width:auto;text-align:left;padding:6px 0 0}
.woocommerce .emx-sum-t .emx-sum-ship td{padding-top:2px}
.woocommerce .emx-sum-t .emx-sum-note td{font-size:12px;padding:0 0 4px}
.woocommerce .emx-sum-t .emx-sum-coupon td{padding:4px 0}
.emx-coupon summary{display:inline-flex;align-items:center;gap:6px;min-height:44px}
.woocommerce .emx-sum-t .order-total th,.woocommerce .emx-sum-t .order-total td{padding-top:12px;font-size:16px;font-weight:700;color:var(--ink);border-top:0}
.woocommerce .emx-sum-t .order-total td{font-size:22px;font-weight:700}
.emx-cart-sum .wc-proceed-to-checkout .checkout-button{min-height:56px}
.emx-cart-sum .emx-pay-block,.emx-cart-sum .emx-sum-help{margin:0}
.emx-sum-help{text-align:left;font-size:13px;color:var(--muted)}
.emx-sum-help a{color:var(--sky-deep)}
@media (max-width:1023px){.emx-cart .woocommerce:has(> .emx-cart-form){grid-template-columns:1fr}}
@media (max-width:781px){
	.emx-cart .wp-block-post-title{font-size:26px;margin-bottom:28px}
	.emx-cart-row{grid-template-columns:72px minmax(0,1fr)}
	.emx-cart-img img{width:72px;height:72px}
	.emx-cart-name{font-size:15px}
	.woocommerce-cart .emx-cart-side .cart_totals{padding:20px 16px}
}
.woocommerce table.shop_table.emx-sum-t{border:0;border-top:1px solid var(--line);margin:0}
.woocommerce table.shop_table.emx-sum-t th,.woocommerce table.shop_table.emx-sum-t td{padding:6px 0;border:0;background:none;font-size:14px;line-height:1.5}
.woocommerce table.shop_table.emx-sum-t tr:first-child th,.woocommerce table.shop_table.emx-sum-t tr:first-child td{padding-top:14px}
.woocommerce table.shop_table.emx-sum-t th{font-weight:400;color:var(--muted);white-space:nowrap}
.woocommerce table.shop_table.emx-sum-t .emx-sum-ship th{display:block;padding:6px 0 0}
.woocommerce table.shop_table.emx-sum-t .emx-sum-ship td{display:block;text-align:left;padding:2px 0 0}
.woocommerce table.shop_table.emx-sum-t .emx-sum-note td{font-size:12px;padding:0 0 4px;color:var(--muted);font-weight:400}
/* Envío: una celda a todo el ancho con el nombre en gris y debajo el valor en negrita (wireframe v0.12, .c-ship) */
.woocommerce table.shop_table.emx-sum-t .emx-sum-ship td{display:table-cell;padding:6px 0 0}
.emx-sum-ship-l{display:block;font-weight:400;color:var(--muted)}
.woocommerce table.shop_table.emx-sum-t .order-total th,.woocommerce table.shop_table.emx-sum-t .order-total td{padding-top:26px;font-size:16px;font-weight:700;color:var(--ink)}
.woocommerce table.shop_table.emx-sum-t .order-total td{font-size:22px;font-weight:700}

/* ---------- Mi cuenta (wireframe v0.12) ---------- */
.emx-acc-band{padding-block:48px}
.emx-acc-band .wp-block-post-title{margin:0;max-width:var(--wp--style--global--content-size,1120px);font-size:40px;font-weight:700;letter-spacing:-.02em}
.emx-acc-body{padding-top:72px}
.emx-acc-body:has(.emx-acc-track){padding-bottom:0} /* la franja gris de "Sigue tu pedido" llega hasta el footer */
.emx-account .wp-block-post-content > .woocommerce{max-width:none}
/* Sin sesión (Ingresar, Crear cuenta y seguimiento): columna centrada de 780 px, como .bp-narrow */
.emx-account .wp-block-post-content > .woocommerce:not(:has(.woocommerce-MyAccount-navigation)){max-width:780px}
.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation){display:grid;grid-template-columns:240px minmax(0,1fr);gap:40px;align-items:start}
/* Los ::before/::after de WooCommerce no son filas de la grilla (bajaban el menú y el contenido 40 px) */
.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation)::before,.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation)::after{content:none;display:none}
.woocommerce-account .woocommerce-MyAccount-navigation,.woocommerce-account .woocommerce-MyAccount-content{float:none;width:auto}
.woocommerce-account .woocommerce-MyAccount-navigation ul{display:flex;flex-direction:column;gap:4px;margin:0}
.woocommerce-account .woocommerce-MyAccount-navigation li{padding:0!important}
.woocommerce-account .woocommerce-MyAccount-navigation a{padding:10px 14px;border-radius:12px;font-weight:700}
.woocommerce-account .woocommerce-MyAccount-navigation a:hover{background:var(--soft)}
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a{background:var(--ink);color:#fff}
.emx-acc-states{margin:16px 0 0;font-size:13px;color:var(--muted)}
.emx-acc-states b{color:var(--ink)}
@media (max-width:767px){
	.emx-acc-band{padding-block:32px}
	.emx-acc-band .wp-block-post-title{font-size:28px}
	.emx-acc-body{padding-top:44px}
	.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation){grid-template-columns:1fr;gap:16px}
	.woocommerce-account .woocommerce-MyAccount-navigation ul{flex-direction:row}
}
.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) > *{grid-column:1/-1}
.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) > .woocommerce-MyAccount-navigation{grid-column:1}
.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) > .woocommerce-MyAccount-content{grid-column:2}
.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) > :empty{display:none}
@media (max-width:767px){.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) > .woocommerce-MyAccount-content{grid-column:1}}

/* ---------- Medidas exactas del wireframe v0.12: carrito y Mi cuenta ---------- */
.emx-cart-sum h2{line-height:1.5;letter-spacing:0}
.emx-cart-sum .wc-proceed-to-checkout .checkout-button{font-size:16px;line-height:1.5}
.emx-cart-more .emx-rail-head h2,.emx-cart-more .emx-rail-t{font-size:28px;font-weight:700;line-height:1.15}
.woocommerce-account .woocommerce-MyAccount-navigation a{font-size:16px;line-height:1.5}
.emx-acc-last h3{font-weight:700;line-height:1.5;letter-spacing:0}
.emx-acc-last .emx-btn{line-height:1.5}
.emx-acc-states,.emx-acc-states b{color:#7A8085}
.emx-acc-help{font-size:16px;color:var(--ink)}
.emx-acc-help a{color:var(--ink)}
.emx-acc-band .wp-block-post-title{line-height:1.1}
.woocommerce-cart .emx-cart-sum .wc-proceed-to-checkout a.checkout-button{margin:0;font-size:16px!important;line-height:1.5}
.emx-cart-info .emx-res{align-self:flex-start;display:inline-block;width:auto;margin:6px 0 0!important}.woocommerce table.shop_table.emx-sum-t .order-total th{vertical-align:middle}

/* Carrito: la miniatura manda sobre la regla de WooCommerce (117px); en celular, 72px como el wireframe v0.12 */
.woocommerce-page .woocommerce-cart-form .emx-cart-img a img{width:112px;height:112px}
@media (max-width:781px){
	.emx-cart > .emx-sec:first-child{padding-top:20px}
	.emx-cart-more .emx-rail-head h2,.emx-cart-more .emx-rail-t{font-size:22px}
	.woocommerce-page .woocommerce-cart-form .emx-cart-img a img{width:72px;height:72px}
	.emx-cart-img{width:72px}
}
.emx-cq-n{display:grid;place-items:center;width:24px;min-height:36px;font-size:14px;font-weight:700}
/* La columna del carrito nunca se ensancha más que la pantalla (logos de pago, tablas) */
@media (max-width:1023px){.emx-cart .woocommerce:has(> .emx-cart-form){grid-template-columns:minmax(0,1fr)}}
/* Teléfonos muy angostos (≤359px): unidades y precio se acomodan en dos líneas; el resumen no se sale */
@media (max-width:359px){
	.emx-cart-bot{flex-wrap:wrap;row-gap:8px}
	.emx-cart .woocommerce-cart .emx-cart-side .cart_totals,.woocommerce-cart .emx-cart-side .cart_totals{padding:16px 12px}
	.woocommerce table.shop_table.emx-sum-t{table-layout:fixed;width:100%}
	.woocommerce table.shop_table.emx-sum-t td{overflow-wrap:anywhere}
}
