/* MTG Canarias – carrito del tema (página Carrito). A todo el ancho con 10 px a los lados: productos a la izquierda, resumen fijo a la derecha. */
.mtc-carrito-pag { padding-bottom: 64px; }
.mtc-carrito-pag .woocommerce { width: 100%; }
.mtc-carrito-pag .woocommerce-notices-wrapper:empty { display: none; }
.mtc-cart { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); align-items: start; gap: 28px; }
@media (max-width: 960px) { .mtc-cart { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

/* Cabecera de la lista: cuántos productos y «Vaciar carrito». */
.mtc-cart-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.mtc-cart-n { color: var(--mtc-gris); font-size: 15px; font-weight: 600; }
html body .mtc-carrito-pag .mtc-cart-vaciar { display: inline-flex; align-items: center; gap: 6px; height: 38px; margin: 0; padding: 0 14px 0 10px; border: 1px solid var(--mtc-linea); border-radius: 999px; background: #fff; color: var(--mtc-gris); font-size: 14px; font-weight: 700; line-height: 1; text-transform: none; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
html body .mtc-carrito-pag .mtc-cart-vaciar:hover { border-color: #f3b4b4; background: #fef2f2; color: #c62828; }
.mtc-cart-vaciar .mtc-ico { width: 16px; height: 16px; }

/* Productos. */
.mtc-cart-l { margin: 0 !important; border: 1px solid var(--mtc-linea) !important; border-radius: 16px !important; background: #fff; overflow: hidden; }
.mtc-ci { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto 110px 36px; align-items: center; gap: 6px 18px; padding: 16px 16px 16px 18px; border-bottom: 1px solid #f0f0f2; }
.mtc-ci-img a, .mtc-ci-img > img { display: block; }
.mtc-ci-img img { display: block; width: 88px !important; height: 88px !important; margin: 0 !important; object-fit: contain; border-radius: 12px; background: #f6f6f7; }
.mtc-ci-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 14px; line-height: 1.4; }
.mtc-ci-nom, .mtc-ci-nom a { color: var(--mtc-tinta) !important; font-size: 15.5px; font-weight: 700; text-decoration: none; }
.mtc-ci-nom a:hover { color: var(--mtc-acento) !important; }
.mtc-ci-info dl.variation { margin: 0; color: var(--mtc-gris); font-size: 13px; }
.mtc-ci-info dl.variation dt, .mtc-ci-info dl.variation dd, .mtc-ci-info dl.variation p { display: inline; margin: 0; }
.mtc-ci-info dl.variation dd::after { content: ""; display: block; }
.mtc-ci-precio { color: var(--mtc-gris); font-size: 13px; }
.mtc-ci-info .backorder_notification { margin: 0; color: #b45309; font-size: 13px; }
.mtc-ci-sub { font-size: 16px; font-weight: 800; text-align: right; white-space: nowrap; }
.mtc-ci-sub del { color: #9a9aa0; font-weight: 400; }
.mtc-ci-x { display: flex; justify-content: flex-end; }
html body .mtc-carrito-pag .mtc-ci-x a.remove { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #f4f4f5; color: var(--mtc-gris) !important; font-size: 20px; font-weight: 400; line-height: 1; text-decoration: none; }
html body .mtc-carrito-pag .mtc-ci-x a.remove:hover { background: #fde8e8; color: #c62828 !important; }

/* Cantidad con − / +. */
.mtc-ci-qty .quantity { display: inline-flex; align-items: center; margin: 0 !important; }
.mtc-ci-qty .quantity.mtc-q { height: 40px; border: 1px solid var(--mtc-linea); border-radius: 999px; background: #fff; overflow: hidden; }
html body .mtc-carrito-pag .mtc-ci-qty input.qty { width: 46px !important; height: 38px; margin: 0; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; color: var(--mtc-tinta); font-size: 15px; font-weight: 700; text-align: center; -moz-appearance: textfield; }
.mtc-ci-qty input.qty::-webkit-outer-spin-button, .mtc-ci-qty input.qty::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
html body .mtc-carrito-pag .mtc-q-b { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--mtc-tinta); font-size: 18px; font-weight: 600; line-height: 1; cursor: pointer; }
html body .mtc-carrito-pag .mtc-q-b:hover { background: #f4f4f5; color: var(--mtc-acento); }

/* Cupón y actualizar (actualizar se pulsa solo al cambiar una cantidad: sin JavaScript, se ve). */
.mtc-cart-acc { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: #fafafb; }
.mtc-cart-acc .coupon { display: flex; flex-wrap: wrap; gap: 8px; }
html body .mtc-carrito-pag .mtc-cart-acc #coupon_code { width: 200px; height: 42px; margin: 0; padding: 0 14px; border: 1px solid var(--mtc-linea); border-radius: 999px; background: #fff; font-size: 14.5px; }
html body .mtc-carrito-pag .mtc-cart-acc .button { height: 42px; margin: 0; padding: 0 18px; border: 1px solid var(--mtc-tinta); border-radius: 999px; background: var(--mtc-tinta); color: #fff; font-size: 14.5px; font-weight: 700; line-height: 1; text-transform: none; }
html body .mtc-carrito-pag .mtc-cart-acc .button:hover { background: #000; }
html body .mtc-carrito-pag .mtc-cart-acc .button:disabled { opacity: .45; cursor: default; }
.mtc-cart-f.is-js .mtc-cart-actualizar { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Resumen. */
.mtc-cart-res { position: sticky; top: calc(var(--mtc-alto) + 16px); width: auto !important; float: none !important; padding: 20px; border-radius: 16px; background: #f6f6f7; }
.admin-bar .mtc-cart-res { top: calc(var(--mtc-alto) + 48px); }
.mtc-cart-res-t { margin: 0 0 8px; font-size: 19px; font-weight: 800; }
html body .mtc-carrito-pag .cart-collaterals .cart_totals { float: none; width: 100%; }
.mtc-cart-res .cart_totals > h2 { display: none; }
html body .mtc-carrito-pag .cart_totals table.shop_table { width: 100%; margin: 0 0 16px; border: 0; border-collapse: collapse; background: transparent; font-size: 15px; }
html body .mtc-carrito-pag .cart_totals table.shop_table th, html body .mtc-carrito-pag .cart_totals table.shop_table td { padding: 10px 0; border: 0; border-top: 1px solid #e4e4e7; background: transparent; vertical-align: top; }
html body .mtc-carrito-pag .cart_totals table.shop_table tr:first-child th, html body .mtc-carrito-pag .cart_totals table.shop_table tr:first-child td { border-top: 0; }
html body .mtc-carrito-pag .cart_totals table.shop_table th { width: 42%; color: var(--mtc-gris); font-weight: 600; text-align: left; }
html body .mtc-carrito-pag .cart_totals table.shop_table td { text-align: right; }
.mtc-cart-res .order-total th, .mtc-cart-res .order-total td { padding-top: 14px !important; color: var(--mtc-tinta) !important; font-size: 19px; font-weight: 800; }
.mtc-cart-res .woocommerce-shipping-methods { margin: 0; padding: 0; list-style: none; }
.mtc-cart-res .woocommerce-shipping-methods li { margin: 0 0 4px; }
.mtc-cart-res .woocommerce-shipping-destination, .mtc-cart-res .shipping-calculator-button { font-size: 13px; }
.mtc-cart-res .includes_tax, .mtc-cart-res .tax_label { display: block; color: var(--mtc-gris); font-size: 12px; font-weight: 400; }
html body .mtc-carrito-pag .wc-proceed-to-checkout { padding: 0; }
html body .mtc-carrito-pag .wc-proceed-to-checkout a.checkout-button { display: flex; align-items: center; justify-content: center; width: 100%; height: 54px; margin: 0; padding: 0 20px; border: 0; border-radius: 999px; background: var(--mtc-acento); color: #fff !important; font-size: 17px; font-weight: 800; text-decoration: none; text-transform: none; box-shadow: 0 10px 24px color-mix(in srgb, var(--mtc-acento) 30%, transparent); transition: filter .15s, transform .15s; }
html body .mtc-carrito-pag .wc-proceed-to-checkout a.checkout-button:hover { filter: brightness(1.06); transform: translateY(-1px); }

/* Relacionados, debajo. */
.mtc-carrito-pag .cross-sells { width: auto !important; float: none !important; margin: 36px 0 0; }
.mtc-carrito-pag .cross-sells > h2 { margin: 0 0 14px; font-size: 22px; }
html body .mtc-carrito-pag .cross-sells ul.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
html body .mtc-carrito-pag .cross-sells ul.products::before, html body .mtc-carrito-pag .cross-sells ul.products::after { display: none; }
html body .mtc-carrito-pag .cross-sells ul.products li.product { float: none; width: auto; margin: 0; padding: 12px; border: 1px solid var(--mtc-linea); border-radius: 14px; text-align: center; }

/* Cesta vacía. */
.mtc-cv { display: flex; flex-direction: column; align-items: center; margin: 12px auto 0; padding: 44px 20px 40px; border: 1px solid var(--mtc-linea); border-radius: 20px; background: #fff; text-align: center; }
.mtc-cv-ico { display: flex; align-items: center; justify-content: center; width: 76px; height: 76px; margin: 0 0 16px; border-radius: 50%; background: #f4f4f5; color: var(--mtc-gris); }
.mtc-cv-ico .mtc-ico { width: 34px; height: 34px; }
.mtc-cv-t { margin: 0; font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; line-height: 1.2; }
.mtc-cv-txt { max-width: 520px; margin: 8px 0 0; color: var(--mtc-gris); font-size: 16px; }
.mtc-cv-acc { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 22px 0 0 !important; }
html body .mtc-carrito-pag a.mtc-cv-btn { display: inline-flex; align-items: center; height: 48px; padding: 0 24px; border: 1px solid var(--mtc-linea); border-radius: 999px; background: #fff; color: var(--mtc-tinta) !important; font-size: 15.5px; font-weight: 700; text-decoration: none; }
html body .mtc-carrito-pag a.mtc-cv-btn.is-pri { border-color: var(--mtc-acento); background: var(--mtc-acento); color: #fff !important; }
html body .mtc-carrito-pag a.mtc-cv-btn:hover { filter: brightness(1.05); }
.mtc-cv-car { margin: 36px 0 0; }

/* Móvil: foto + datos arriba; cantidad, importe y quitar debajo. */
@media (max-width: 640px) {
	.mtc-ci { grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: "img info x" "img qty sub"; gap: 8px 12px; padding: 14px 12px; }
	.mtc-ci-img { grid-area: img; align-self: start; }
	.mtc-ci-img img { width: 72px !important; height: 72px !important; }
	.mtc-ci-info { grid-area: info; }
	.mtc-ci-qty { grid-area: qty; }
	.mtc-ci-sub { grid-area: sub; justify-self: end; align-self: center; }
	.mtc-ci-x { grid-area: x; align-self: start; }
	.mtc-cart-acc .coupon, html body .mtc-carrito-pag .mtc-cart-acc #coupon_code { width: 100%; }
	.mtc-cart-acc .coupon #coupon_code { flex: 1; width: auto !important; }
	.mtc-cart-res { position: static; }
}
