/* ============================================================
   CARRITO — Tejidos Masquetela
   1) Mini-carrito lateral (widget de Elementor en la cabecera, todas las páginas)
   2) Página de carrito (bloque de WooCommerce)
   Sustituye al snippet WPCode 867 y al bloque "CARRITO LATERAL REDISEÑADO".
   ============================================================ */

:root {
  --mqt-c-ink: #2a2520;
  --mqt-c-muted: #6f6663;
  --mqt-c-line: #e6e0d8;
  --mqt-c-soft: #faf8f5;
  --mqt-c-pink: #efcad6;
  --mqt-c-pink-deep: #d4a0b0;
  --mqt-c-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mqt-c-serif: 'Noto Serif', Georgia, serif;
}

/* ============================================================
   1) MINI-CARRITO LATERAL
   ============================================================ */

/* Capa oscura + panel */
.elementor-widget-woocommerce-menu-cart .elementor-menu-cart__container.elementor-lightbox {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  padding: 0 !important;
  background: rgba(42, 37, 32, .4) !important;
  border: 0 !important;
  box-shadow: none !important;
  z-index: 99999 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity .3s ease, visibility .3s ease !important;
}
.elementor-widget-woocommerce-menu-cart.elementor-menu-cart--shown .elementor-menu-cart__container.elementor-lightbox {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  width: min(440px, 100vw) !important;
  height: 100dvh !important;
  padding: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  background: var(--mqt-c-soft) !important;
  box-shadow: -12px 0 48px rgba(42, 37, 32, .14) !important;
  transform: translateX(100%) !important;
  transition: transform .4s cubic-bezier(.22, 1, .36, 1) !important;
}
.elementor-widget-woocommerce-menu-cart.elementor-menu-cart--shown .elementor-menu-cart__main {
  transform: none !important;
}
.elementor-widget-woocommerce-menu-cart.elementor-menu-cart--shown,
.elementor-widget-woocommerce-menu-cart.elementor-menu-cart--shown .elementor-menu-cart__container,
.elementor-widget-woocommerce-menu-cart.elementor-menu-cart--shown .elementor-menu-cart__main {
  z-index: 1000000 !important;
}

/* Cabecera: título + cerrar */
.elementor-menu-cart__container .widget_shopping_cart_content {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}
.elementor-menu-cart__container .widget_shopping_cart_content::before {
  content: 'Tu carrito';
  display: block;
  flex: 0 0 auto;
  padding: 28px 28px 20px;
  font-family: var(--mqt-c-serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--mqt-c-ink);
  border-bottom: 1px solid var(--mqt-c-line);
}

.elementor-menu-cart__close-button {
  position: absolute !important;
  top: 22px !important;
  right: 22px !important;
  z-index: 10 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  cursor: pointer !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}
.elementor-menu-cart__close-button::before,
.elementor-menu-cart__close-button::after {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 20px !important;
  height: 1.5px !important;
  background: var(--mqt-c-ink) !important;
}
.elementor-menu-cart__close-button::before { transform: translate(-50%, -50%) rotate(45deg) !important; }
.elementor-menu-cart__close-button::after { transform: translate(-50%, -50%) rotate(-45deg) !important; }
.elementor-menu-cart__close-button:hover { opacity: .6; }
.elementor-menu-cart__close-button i,
.elementor-menu-cart__close-button svg { display: none !important; }

/* Lista de productos */
.elementor-menu-cart__container .elementor-menu-cart__products {
  flex: 1 1 auto !important;
  padding: 8px 20px !important;
  margin: 0 !important;
  list-style: none !important;
}

.elementor-menu-cart__container .elementor-menu-cart__product {
  display: grid !important;
  grid-template-columns: 76px minmax(0, 1fr) 28px !important;
  grid-template-areas:
    "img name  remove"
    "img price remove" !important;
  align-items: start !important;
  gap: 4px 16px !important;
  padding: 18px 0 !important;
  margin: 0 !important;
  background: none !important;
  border: 0 !important;
  border-bottom: 1px solid var(--mqt-c-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  position: relative !important;
}
.elementor-menu-cart__container .elementor-menu-cart__product::before { display: none !important; }

.elementor-menu-cart__container .elementor-menu-cart__product-image {
  grid-area: img !important;
  width: 76px !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  background: var(--mqt-c-soft);
  border: 0 !important;
  border-radius: 0 !important;
}
.elementor-menu-cart__container .elementor-menu-cart__product-image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.elementor-menu-cart__container .elementor-menu-cart__product-name {
  grid-area: name !important;
  align-self: end !important;
  padding: 0 !important;
}
.elementor-menu-cart__container .elementor-menu-cart__product-name a {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  font-family: var(--mqt-c-sans) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  color: var(--mqt-c-ink) !important;
}
.elementor-menu-cart__container .elementor-menu-cart__product-name a:hover { text-decoration: underline !important; text-underline-offset: 3px; }

.elementor-menu-cart__container .elementor-menu-cart__product-price {
  grid-area: price !important;
  align-self: start !important;
  padding: 0 !important;
}
.elementor-menu-cart__container .elementor-menu-cart__product-price .quantity {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  gap: 6px !important;
}
.elementor-menu-cart__container .product-quantity {
  font-family: var(--mqt-c-sans) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: var(--mqt-c-muted) !important;
}
.elementor-menu-cart__container .elementor-menu-cart__product-price .woocommerce-Price-amount {
  font-family: var(--mqt-c-serif) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  color: var(--mqt-c-ink) !important;
}

/* Eliminar (×) */
.elementor-menu-cart__container .elementor-menu-cart__product-remove {
  grid-area: remove !important;
  justify-self: end !important;
  align-self: start !important;
  position: static !important;
  width: 28px !important;
  height: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
}
/* Elementor dibuja una "X" gigante con estos pseudo-elementos */
.elementor-menu-cart__container .elementor-menu-cart__product-remove::before,
.elementor-menu-cart__container .elementor-menu-cart__product-remove::after {
  content: none !important;
  display: none !important;
}
.elementor-menu-cart__container .elementor-menu-cart__product-remove a {
  position: relative !important;
  display: block !important;
  width: 28px !important;
  height: 28px !important;
  overflow: hidden !important;
  text-indent: -9999px !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  transform: none !important;
}
.elementor-menu-cart__container .elementor-menu-cart__product-remove a::before,
.elementor-menu-cart__container .elementor-menu-cart__product-remove a::after {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 14px !important;
  height: 1.5px !important;
  background: var(--mqt-c-muted) !important;
  text-indent: 0 !important;
}
.elementor-menu-cart__container .elementor-menu-cart__product-remove a::before { transform: translate(-50%, -50%) rotate(45deg) !important; }
.elementor-menu-cart__container .elementor-menu-cart__product-remove a::after { transform: translate(-50%, -50%) rotate(-45deg) !important; }
.elementor-menu-cart__container .elementor-menu-cart__product-remove a:hover::before,
.elementor-menu-cart__container .elementor-menu-cart__product-remove a:hover::after { background: var(--mqt-c-ink) !important; }

/* Subtotal */
.elementor-menu-cart__container .elementor-menu-cart__subtotal {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 20px 28px !important;
  background: #fff !important;
  border: 0 !important;
  border-top: 1px solid var(--mqt-c-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.elementor-menu-cart__container .elementor-menu-cart__subtotal strong {
  font-family: var(--mqt-c-sans) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
  color: var(--mqt-c-ink) !important;
}
.elementor-menu-cart__container .elementor-menu-cart__subtotal .woocommerce-Price-amount {
  font-family: var(--mqt-c-serif) !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  color: var(--mqt-c-ink) !important;
}

/* Botones */
.elementor-menu-cart__container .elementor-menu-cart__footer-buttons {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 28px calc(24px + env(safe-area-inset-bottom)) !important;
  background: #fff !important;
}
.elementor-menu-cart__container .elementor-menu-cart__footer-buttons .elementor-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 50px !important;
  margin: 0 !important;
  padding: 0 20px !important;
  font-family: var(--mqt-c-sans) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .16em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  transition: background .2s, border-color .2s !important;
}
.elementor-menu-cart__container .elementor-button--view-cart {
  color: var(--mqt-c-ink) !important;
  background: transparent !important;
  border: 1px solid var(--mqt-c-ink) !important;
}
.elementor-menu-cart__container .elementor-button--view-cart::before { display: none !important; }
.elementor-menu-cart__container .elementor-button--view-cart:hover { background: var(--mqt-c-soft) !important; }
.elementor-menu-cart__container .elementor-button--checkout {
  color: var(--mqt-c-ink) !important;
  background: var(--mqt-c-pink) !important;
  border: 1px solid var(--mqt-c-pink) !important;
}
.elementor-menu-cart__container .elementor-button--checkout::after { display: none !important; }
.elementor-menu-cart__container .elementor-button--checkout:hover {
  background: var(--mqt-c-pink-deep) !important;
  border-color: var(--mqt-c-pink-deep) !important;
}

/* Carrito vacío */
.elementor-menu-cart__container .woocommerce-mini-cart__empty-message {
  margin: 0 !important;
  padding: 64px 28px !important;
  font-family: var(--mqt-c-serif) !important;
  font-size: 17px !important;
  font-style: italic !important;
  text-align: center !important;
  color: var(--mqt-c-muted) !important;
}
.elementor-menu-cart__container .woocommerce-mini-cart__empty-message::before { content: none !important; }

/* Entrada suave de los productos (sin dejarlos a medias) */
@media (prefers-reduced-motion: no-preference) {
  .elementor-menu-cart--shown .elementor-menu-cart__product { animation: mqt-cart-in .4s cubic-bezier(.22, 1, .36, 1) both; }
  .elementor-menu-cart--shown .elementor-menu-cart__product:nth-child(2) { animation-delay: .05s; }
  .elementor-menu-cart--shown .elementor-menu-cart__product:nth-child(3) { animation-delay: .1s; }
  .elementor-menu-cart--shown .elementor-menu-cart__product:nth-child(n+4) { animation-delay: .15s; }
}
@keyframes mqt-cart-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 480px) {
  .elementor-menu-cart__container .widget_shopping_cart_content::before { padding: 24px 20px 18px; font-size: 22px; }
  .elementor-menu-cart__close-button { top: 18px !important; right: 12px !important; }
  .elementor-menu-cart__container .elementor-menu-cart__products { padding: 4px 16px !important; }
  .elementor-menu-cart__container .elementor-menu-cart__subtotal { padding: 18px 20px !important; }
  .elementor-menu-cart__container .elementor-menu-cart__footer-buttons { padding-left: 20px !important; padding-right: 20px !important; }
}

/* ============================================================
   2) PÁGINA DE CARRITO
   ============================================================ */
body.woocommerce-cart .entry-title,
body.woocommerce-cart h1.entry-title {
  max-width: 1320px;
  margin: 40px auto 28px;
  padding: 0 24px;
  font-family: var(--mqt-c-serif);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 400;
  font-style: normal;
  line-height: 1.15;
  letter-spacing: -.01em;
  text-transform: uppercase;
  text-align: left;
  color: var(--mqt-c-ink);
}

body.woocommerce-cart .wc-block-components-sidebar-layout {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 56px;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px 80px;
  box-sizing: border-box;
}
body.woocommerce-cart .wc-block-cart__main { flex: 1 1 0%; min-width: 0; width: auto; padding: 0; }
body.woocommerce-cart .wc-block-cart__sidebar {
  position: sticky;
  top: 110px;
  flex: 0 0 360px;
  width: 360px;
  max-width: 360px;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}

/* Tabla de productos */
body.woocommerce-cart table.wc-block-cart-items { width: 100%; margin: 0; border: 0; border-collapse: collapse; }
body.woocommerce-cart table.wc-block-cart-items th {
  padding: 0 0 14px;
  font-family: var(--mqt-c-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mqt-c-ink);
  border: 0;
  border-bottom: 1px solid var(--mqt-c-ink);
}
body.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row td { padding: 22px 0 !important; border: 0 !important; vertical-align: top; }
body.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row { border-bottom: 1px solid var(--mqt-c-line); }
body.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row td.wc-block-cart-item__image { padding-right: 20px !important; }
body.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row td.wc-block-cart-item__total { display: table-cell !important; padding-left: 16px !important; text-align: right; }
body.woocommerce-cart table.wc-block-cart-items th.wc-block-cart-items__header-total { text-align: right; }

body.woocommerce-cart .wc-block-cart-item__image { width: 96px; }
body.woocommerce-cart table.wc-block-cart-items .wc-block-cart-item__image img {
  display: block;
  width: 96px !important;
  max-width: none;
  height: 96px !important;
  object-fit: cover;
  background: var(--mqt-c-soft);
  border-radius: 0;
}

body.woocommerce-cart .wc-block-components-product-name,
body.woocommerce-cart a.wc-block-components-product-name {
  display: block;
  margin: 0 0 6px;
  font-family: var(--mqt-c-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--mqt-c-ink);
}
body.woocommerce-cart a.wc-block-components-product-name:hover { text-decoration: underline; text-underline-offset: 3px; }

body.woocommerce-cart .wc-block-cart-item__prices .wc-block-components-product-price__value,
body.woocommerce-cart .wc-block-components-product-metadata {
  font-family: var(--mqt-c-sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--mqt-c-muted);
}
body.woocommerce-cart .wc-block-cart-item__prices .wc-block-components-product-price__value::after { content: ' / m'; }
body.woocommerce-cart .wc-block-components-product-metadata { margin: 2px 0 10px; }

body.woocommerce-cart .wc-block-cart-item__total .wc-block-components-product-price__value {
  font-family: var(--mqt-c-serif);
  font-size: 17px;
  font-weight: 400;
  color: var(--mqt-c-ink);
}

/* Selector de cantidad */
body.woocommerce-cart .wc-block-components-quantity-selector {
  display: inline-flex;
  align-items: stretch;
  height: 40px;
  width: auto;
  margin: 8px 0 0;
  background: #fff;
  border: 1px solid var(--mqt-c-ink);
  border-radius: 0;
  box-shadow: none;
}
body.woocommerce-cart .wc-block-components-quantity-selector::after { display: none; }
body.woocommerce-cart .wc-block-components-quantity-selector__input {
  width: 56px;
  min-width: 0;
  padding: 0;
  font-family: var(--mqt-c-sans);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: var(--mqt-c-ink);
  background: transparent;
  border: 0;
  box-shadow: none;
}
body.woocommerce-cart .wc-block-components-quantity-selector__button {
  min-width: 38px;
  padding: 0;
  font-size: 16px;
  color: var(--mqt-c-ink);
  opacity: 1;
  background: transparent;
  border: 0;
  cursor: pointer;
}
body.woocommerce-cart .wc-block-components-quantity-selector__button:hover { background: var(--mqt-c-soft); }

body.woocommerce-cart .wc-block-cart-item__remove-link {
  margin-top: 10px;
  font-family: var(--mqt-c-sans);
  font-size: 12px;
  color: var(--mqt-c-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.woocommerce-cart .wc-block-cart-item__remove-link:hover { color: var(--mqt-c-ink); }

/* Resumen */
body.woocommerce-cart .wc-block-cart__sidebar > div { padding: 0; }
body.woocommerce-cart .wc-block-cart__totals-title,
body.woocommerce-cart h2.wc-block-cart__totals-title {
  margin: 0 0 4px;
  padding: 0 0 14px;
  font-family: var(--mqt-c-sans);
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-align: left;
  color: var(--mqt-c-ink);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--mqt-c-ink);
}
body.woocommerce-cart .wc-block-components-totals-wrapper { padding: 16px 0; border-color: var(--mqt-c-line); }
body.woocommerce-cart .wc-block-components-totals-coupon .wc-block-components-panel__button {
  padding: 0;
  font-family: var(--mqt-c-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--mqt-c-ink);
  background: none;
  border: 0;
}
body.woocommerce-cart .wc-block-components-totals-coupon .wc-block-components-panel__button-icon { fill: var(--mqt-c-ink); }
body.woocommerce-cart .wc-block-components-totals-coupon__content { padding-top: 4px; }
body.woocommerce-cart .wc-block-components-totals-coupon__form {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin: 0;
}
body.woocommerce-cart .wc-block-components-totals-coupon__form .wc-block-components-text-input {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}
body.woocommerce-cart .wc-block-components-totals-coupon__form .wc-block-components-text-input input {
  height: 48px;
  padding: 18px 14px 4px;
  font-family: var(--mqt-c-sans);
  font-size: 14px;
  color: var(--mqt-c-ink);
  background: #fff;
  border: 1px solid var(--mqt-c-line);
  border-radius: 0;
  box-shadow: none;
  transition: border-color .2s;
}
body.woocommerce-cart .wc-block-components-totals-coupon__form .wc-block-components-text-input input:focus {
  border-color: var(--mqt-c-ink);
  outline: 0;
  box-shadow: none;
}
body.woocommerce-cart .wc-block-components-totals-coupon__form .wc-block-components-text-input label {
  top: 14px;
  left: 14px;
  font-family: var(--mqt-c-sans);
  font-size: 13px;
  color: var(--mqt-c-muted);
}
body.woocommerce-cart .wc-block-components-totals-coupon__form .wc-block-components-text-input.is-active label,
body.woocommerce-cart .wc-block-components-totals-coupon__form .wc-block-components-text-input input:focus + label {
  top: 6px;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  transform: none;
}
body.woocommerce-cart .wc-block-components-totals-coupon__form .wc-block-components-button {
  flex: 0 0 auto;
  height: 48px;
  min-height: 48px;
  padding: 0 20px;
  font-family: var(--mqt-c-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mqt-c-ink);
  background: transparent;
  border: 1px solid var(--mqt-c-ink);
  border-radius: 0;
  box-shadow: none;
  transition: background .2s, opacity .2s;
}
body.woocommerce-cart .wc-block-components-totals-coupon__form .wc-block-components-button:hover:not(:disabled) { background: var(--mqt-c-pink); border-color: var(--mqt-c-pink); }
body.woocommerce-cart .wc-block-components-totals-coupon__form .wc-block-components-button:disabled { opacity: .4; cursor: not-allowed; background: transparent !important; color: var(--mqt-c-ink) !important; border-color: var(--mqt-c-ink) !important; }

body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
  font-family: var(--mqt-c-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mqt-c-ink);
}
body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
body.woocommerce-cart .wc-block-components-totals-footer-item-tax-value {
  font-family: var(--mqt-c-serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--mqt-c-ink);
}
body.woocommerce-cart .wc-block-components-totals-footer-item-shipping {
  margin: 6px 0 0;
  font-family: var(--mqt-c-sans);
  font-size: 12px;
  color: var(--mqt-c-muted);
}

/* Botón principal */
body.woocommerce-cart .wc-block-cart__submit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  padding: 0 24px;
  font-family: var(--mqt-c-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--mqt-c-ink);
  background: var(--mqt-c-pink);
  border: 1px solid var(--mqt-c-pink);
  border-radius: 0;
  box-shadow: none;
  transition: background .2s, border-color .2s;
}
body.woocommerce-cart .wc-block-cart__submit-button:hover {
  color: var(--mqt-c-ink);
  background: var(--mqt-c-pink-deep);
  border-color: var(--mqt-c-pink-deep);
  transform: none;
  box-shadow: none;
}

/* Carrito vacío */
body.woocommerce-cart .wc-block-cart__empty-cart__title,
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block h2 {
  font-family: var(--mqt-c-serif);
  font-weight: 400;
  font-style: italic;
  color: var(--mqt-c-muted);
}

@media (max-width: 900px) {
  body.woocommerce-cart .wc-block-components-sidebar-layout { flex-direction: column; gap: 32px; padding: 0 20px 56px; }
  body.woocommerce-cart .wc-block-cart__sidebar { position: static; flex: 1 1 auto; width: 100%; max-width: 100%; }
  body.woocommerce-cart .entry-title,
  body.woocommerce-cart h1.entry-title { margin-top: 24px; padding: 0; max-width: none; }
  body.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row td.wc-block-cart-item__image { width: 72px; padding-right: 14px !important; }
  body.woocommerce-cart table.wc-block-cart-items .wc-block-cart-item__image img { width: 72px !important; height: 72px !important; }
}

/* Móvil: la tabla del carrito no debe desbordar y los importes deben verse completos */
@media (max-width: 480px) {
	body.woocommerce-cart table.wc-block-cart-items,
	body.woocommerce-cart table.wc-block-cart-items tbody { display: block; width: 100%; min-width: 0; }
	body.woocommerce-cart .wc-block-cart-items__row { width: 100%; grid-template-columns: 60px minmax(0, 1fr) auto !important; column-gap: 8px !important; }
	body.woocommerce-cart .wc-block-cart-items__row .wc-block-cart-item__image { grid-column: 1; padding-right: 0 !important; }
	body.woocommerce-cart .wc-block-cart-items__row .wc-block-cart-item__image img { width: 60px; }
	body.woocommerce-cart .wc-block-cart-items__row .wc-block-cart-item__product { grid-column: 2 !important; width: auto; min-width: 0; }
	body.woocommerce-cart .wc-block-cart-items__row .wc-block-cart-item__total { grid-column: 3 !important; grid-row: 1 !important; padding-left: 0; text-align: right; }
	body.woocommerce-cart .wc-block-components-quantity-selector { height: 36px; }
	body.woocommerce-cart .wc-block-components-quantity-selector__input { width: 34px; font-size: 13px; }
	body.woocommerce-cart .wc-block-components-quantity-selector__button { min-width: 30px; width: 30px; }
}

/* ============================================================
   CARRITO VACÍO — mensaje y "Nuevo en la tienda"
   ============================================================ */
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block { max-width: 1320px; margin: 0 auto; padding: 24px 24px 72px; text-align: center; color: var(--mqt-c-ink, #2a2520); }
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block h2.with-empty-cart-icon {
  margin: 0 0 8px;
  font-family: 'Noto Serif', Georgia, serif;
  font-size: clamp(22px, 3vw, 30px);
  font-style: normal !important;
  font-weight: 400;
  line-height: 1.25;
  color: #2a2520;
}
/* Icono: bolsa de línea en lugar de la cara triste */
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block h2.with-empty-cart-icon::before {
  content: '';
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  background: #7e534f;
  border-radius: 0;
  -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='1.2'%3E%3Cpath d='M5 8h14l-1 12H6L5 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='1.2'%3E%3Cpath d='M5 8h14l-1 12H6L5 8z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E") center / contain no-repeat;
}
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block hr.wp-block-separator { display: none; }
body.woocommerce-cart .mqt-empty-cart__cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; margin: 14px 0 44px; padding: 0 32px;
  background: #efcad6; border: 1px solid #efcad6; border-radius: 0;
  font-family: 'Manrope', system-ui, sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #2a2520 !important; text-decoration: none !important;
}
body.woocommerce-cart .mqt-empty-cart__cta:hover { background: #2a2520; border-color: #2a2520; color: #fff; }
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block h2:not(.with-empty-cart-icon) {
  margin: 0 0 28px;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 12px;
  font-style: normal !important;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #6f6663;
}
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product { width: auto; max-width: none; margin: 0; padding: 0; text-align: left; border: 0; }
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-link { text-decoration: none; color: inherit; display: block; }
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-image { margin: 0 0 14px; }
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-image img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 0; }
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-title {
  margin: 0 0 6px;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #2a2520;
}
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-price { margin: 0 0 14px; font-family: 'Noto Serif', Georgia, serif; font-size: 15px; color: #2a2520; }
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart { margin: 0; }
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart .wp-block-button__link {
  display: flex; align-items: center; justify-content: center; width: 100%;
  min-height: 42px; padding: 0 16px;
  background: transparent; border: 1px solid #2a2520; border-radius: 0;
  font-family: 'Manrope', system-ui, sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: #2a2520; box-shadow: none;
}
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart .wp-block-button__link:hover { background: #2a2520; color: #fff; }
@media (max-width: 900px) {
  body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
}
@media (max-width: 480px) {
  body.woocommerce-cart .wp-block-woocommerce-empty-cart-block { padding: 12px 16px 56px; }
}

/* Móvil: miniatura del carrito de 60 px (gana a las reglas de 72 px de tablet) */
@media (max-width: 480px) {
	body.woocommerce-cart .wc-block-cart-items .wc-block-cart-items__row td.wc-block-cart-item__image { width: 60px; padding-right: 0 !important; }
	body.woocommerce-cart table.wc-block-cart-items .wc-block-cart-item__image img { width: 60px !important; height: 60px !important; }
}
