/*
 * CITE — Página «Carrito» (plantillas de woocommerce/cart/ e inc/cart.php).
 * Mismo lenguaje que «Mi cuenta» y el checkout: tarjetas blancas sobre papel,
 * títulos en Playfair y acentos en arcilla. Se carga solo en el carrito.
 */

/* ----- Contenedor y cabecera ----- */
.woocommerce-cart .entry-content > .woocommerce { max-width: 1240px; margin: 0 auto; padding: clamp(24px, 3.5vw, 44px) clamp(16px, 4vw, 40px) clamp(56px, 8vw, 96px); color: var(--shoe-ink); }

/* ----- Rejilla: artículos y resumen ----- */
.cite-cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; align-items: start; gap: clamp(24px, 3.5vw, 48px); }
.woocommerce-cart .cite-cart-grid .woocommerce-cart-form { margin: 0; }
/* El resumen acompaña al bajar por una lista larga. */
.woocommerce-cart .cite-cart-grid .cart-collaterals { position: sticky; top: 24px; width: auto; float: none; }
.woocommerce-cart .cite-cart-grid .cart-collaterals::before,
.woocommerce-cart .cite-cart-grid .cart-collaterals::after { display: none; }
.woocommerce-cart .cite-cart-grid .cart-collaterals .cart_totals { width: auto; float: none; }

/* ----- Reserva de stock (inc/cart-hold.php) ----- */
.cite-hold { display: flex; align-items: center; gap: 12px; color: var(--shoe-ink); }
.cite-hold[hidden] { display: none; }
.cite-hold__icon { flex: 0 0 auto; color: var(--shoe-clay); }
.cite-hold__text { margin: 0; font-size: 13.5px; line-height: 1.45; }
.cite-hold__text strong { font-variant-numeric: tabular-nums; }
.cite-hold__text a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.cite-hold.is-expired,
.cite-hold__text--off { display: none !important; }
.cite-hold.is-ending .cite-hold__text strong, .cite-hold.is-expired .cite-hold__icon { color: var(--shoe-clay-dark); }
.cite-hold--cart { margin-bottom: 12px; padding: 14px 20px; border: 1px solid var(--shoe-line); border-left: 2px solid var(--shoe-clay); background: #fff; }

/* ----- Barra de envío gratis ----- */
.cite-cart-ship { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; padding: 18px 20px; border: 1px solid var(--shoe-line); background: #fff; }
.cite-cart-ship__icon { display: grid; flex: 0 0 auto; width: 46px; height: 46px; place-items: center; border-radius: 50%; color: var(--shoe-clay); background: rgba(165,35,72,.1); transition: background .3s ease, color .3s ease; }
.cite-cart-ship__body { flex: 1 1 auto; min-width: 0; }
.cite-cart-ship__text { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; margin: 0 0 10px; color: var(--shoe-ink); font-size: 14px; line-height: 1.4; }
.cite-cart-ship__text strong { color: var(--shoe-clay); }
.cite-cart-ship__goal { color: var(--shoe-ink-soft); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.cite-cart-ship__goal .amount { color: var(--shoe-ink); }
.cite-cart-ship__track { position: relative; height: 6px; overflow: hidden; border-radius: 99px; background: var(--shoe-sand); }
.cite-cart-ship__fill { position: absolute; top: 0; bottom: 0; left: 0; width: var(--avance); overflow: hidden; border-radius: inherit; background: linear-gradient(90deg, var(--shoe-clay), #fb6f92); transition: width .9s cubic-bezier(.22,1,.36,1); }
/* Brillo que recorre el relleno: indica que la barra está viva. */
.cite-cart-ship__fill::after { position: absolute; top: 0; right: 0; bottom: 0; left: 0; content: ""; background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent); transform: translateX(-100%); animation: cite-cart-shimmer 2.6s ease-in-out infinite; }
.cite-cart-ship.is-done .cite-cart-ship__icon { color: #fff; background: #2f6b45; }
.cite-cart-ship.is-done .cite-cart-ship__fill { background: #2f6b45; }
.cite-cart-ship.is-done .cite-cart-ship__text strong { color: #2f6b45; }
.cite-cart-ship.is-celebrating .cite-cart-ship__icon { animation: cite-cart-pop .7s cubic-bezier(.22,1,.36,1); }

/* ----- Artículos ----- */
.cite-cart-items { border: 1px solid var(--shoe-line); background: #fff; overflow: hidden; }
.cite-cart-items__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--shoe-line); }
.cite-cart-items__count { margin: 0; color: var(--shoe-ink-soft); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.cite-cart-items__continue { display: inline-flex; align-items: center; gap: 6px; color: var(--shoe-ink); font-size: 12.5px; font-weight: 600; text-decoration: none; transition: gap .2s ease, color .2s ease; }
.cite-cart-items__continue:hover { gap: 10px; color: var(--shoe-clay); }
.cite-cart-items__list { margin: 0; padding: 0; list-style: none; }

.cite-cart-item { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 20px; margin: 0; padding: 22px; border-bottom: 1px solid var(--shoe-line); }
.cite-cart-item:last-child { border-bottom: 0; }
.cite-cart-item__media { overflow: hidden; aspect-ratio: 1; background: var(--shoe-sand); }
.cite-cart-item__media a { display: block; height: 100%; }
.woocommerce-cart .cite-cart-item__media img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; transition: transform .5s cubic-bezier(.22,1,.36,1); }
@media (hover: hover) and (pointer: fine) {
  .cite-cart-item__media a:hover img { transform: scale(1.05); }
}
.cite-cart-item__body { display: flex; flex-direction: column; min-width: 0; }
.cite-cart-item__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.cite-cart-item__name { margin: 0; color: var(--shoe-ink); font-family: "DM Sans", sans-serif; font-size: 15px; font-weight: 700; letter-spacing: 0; line-height: 1.35; }
.cite-cart-item__name a { color: inherit; text-decoration: none; transition: color .2s ease; }
.cite-cart-item__name a:hover { color: var(--shoe-clay); }
.cite-cart-item__subtotal { flex: 0 0 auto; color: var(--shoe-ink); font-size: 15px; font-weight: 800; white-space: nowrap; }
.woocommerce-cart .cite-cart-item__subtotal del {
  display: inline-block;
  margin-right: 8px;
  color: var(--shoe-ink-soft);
  font-size: 12px;
  font-weight: 400;
  text-decoration: line-through;
}
.woocommerce-cart .cite-cart-item__subtotal ins {
  color: var(--shoe-ink);
  background: transparent;
  font-weight: 700;
  text-decoration: none;
}
.woocommerce-cart .cite-cart-item__subtotal :is(del, ins) .amount { color: inherit; font-weight: inherit; }

/* Atributos: «Clase: Sandalia · Material: sintético» en una línea que fluye. */
.woocommerce-cart .cite-cart-item__meta dl.variation { display: flex; flex-wrap: wrap; gap: 2px 5px; margin: 6px 0 0; color: var(--shoe-ink-soft); font-size: 12.5px; line-height: 1.5; }
.woocommerce-cart .cite-cart-item__meta dl.variation dt { float: none; margin: 0; font-weight: 600; }
.woocommerce-cart .cite-cart-item__meta dl.variation dd { float: none; margin: 0; }
.woocommerce-cart .cite-cart-item__meta dl.variation dd:not(:last-child)::after { margin-left: 5px; content: "·"; }
.woocommerce-cart .cite-cart-item__meta dl.variation dd p { display: inline; margin: 0; }
.woocommerce-cart .cite-cart-item__meta dl.variation dt.variation-Disponibilidad { display: none; }
.woocommerce-cart .cite-cart-item__meta dl.variation dd.variation-Disponibilidad {
  flex-basis: 100%;
  margin: 6px 0 8px;
  padding: 8px 10px;
  box-sizing: border-box;
  border: 1px solid #eadfc9;
  border-left: 2px solid #b88a3b;
  border-radius: 3px;
  background: #fbf7ef;
  color: #735021;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}
.woocommerce-cart .cite-cart-item__meta dl.variation dd.variation-Disponibilidad::after { display: none; }
.cite-cart-item__meta .backorder_notification { margin: 6px 0 0; color: #8a5a12; font-size: 12px; }

.cite-cart-item__price { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 8px 0 0; color: var(--shoe-ink-soft); font-size: 13px; }
.cite-cart-item__each { font-size: 11.5px; }
.cite-cart-item__saving { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; color: var(--shoe-clay-dark); background: rgba(165,35,72,.08); font-size: 11px; font-weight: 700; }
.cite-cart-item__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; }

/* Cantidad: − [n] + en una sola pieza */
.cite-cart-qty { display: inline-flex; align-items: stretch; height: 40px; border: 1px solid var(--shoe-line); background: #fff; }
.cite-cart-qty__btn { display: grid; width: 38px; place-items: center; padding: 0; border: 0; color: var(--shoe-ink); background: transparent; cursor: pointer; transition: background .2s ease, color .2s ease; }
.cite-cart-qty__btn:hover:not(:disabled) { background: var(--shoe-sand); }
.cite-cart-qty__btn:disabled { color: var(--shoe-line); cursor: default; }
.cite-cart-qty__btn:focus-visible { outline: 2px solid var(--shoe-clay); outline-offset: -2px; }
.woocommerce-cart .cite-cart-qty .quantity { display: flex; margin: 0; }
.woocommerce-cart .woocommerce .cite-cart-qty .quantity .qty { width: 44px; height: 100%; margin: 0; padding: 0; border: 0; border-right: 1px solid var(--shoe-line); border-left: 1px solid var(--shoe-line); border-radius: 0; color: var(--shoe-ink); background: transparent; font-family: inherit; font-size: 14px; font-weight: 700; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.woocommerce-cart .cite-cart-qty .qty::-webkit-inner-spin-button,
.woocommerce-cart .cite-cart-qty .qty::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.woocommerce-cart .woocommerce .cite-cart-qty .quantity .qty:focus { outline: none; background: var(--shoe-paper); }
.woocommerce-cart .woocommerce .cite-cart-qty.is-fixed .quantity .qty { border: 0; }

/* Eliminar: texto discreto con papelera (el «×» rojo de WooCommerce desentona). */
.woocommerce-cart .woocommerce .cite-cart-item a.remove { display: inline-flex; align-items: center; gap: 6px; width: auto; height: auto; padding: 6px 2px; border-radius: 0; color: var(--shoe-ink-soft) !important; background: none !important; font-size: 12px; font-weight: 600; line-height: 1; text-decoration: none; transition: color .2s ease; }
.woocommerce-cart .woocommerce .cite-cart-item a.remove:hover { color: var(--shoe-clay) !important; }
.woocommerce-cart .woocommerce .cite-cart-item a.remove:focus-visible { outline: 2px solid var(--shoe-clay); outline-offset: 2px; }

/* Cupón y actualizar */
.cite-cart-actions { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 18px 22px; border-top: 1px solid var(--shoe-line); background: #fdfcfa; box-sizing: border-box; width: 100%; }
.cite-cart-coupon { flex: 1 1 320px; max-width: 440px; box-sizing: border-box; }
.cite-cart-coupon > label { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; color: var(--shoe-ink-soft); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.cite-cart-coupon__row { display: flex; width: 100%; box-sizing: border-box; }
.woocommerce-cart .woocommerce .cite-cart-coupon #coupon_code { flex: 1 1 auto; width: auto; min-width: 0; height: 44px; margin: 0; padding: 0 14px; border: 1px solid var(--shoe-line); border-right: 0; border-radius: 0; color: var(--shoe-ink); background: #fff; font-family: inherit; font-size: 14px; letter-spacing: .04em; box-shadow: none; box-sizing: border-box; transition: border-color .2s ease; }
.woocommerce-cart .woocommerce .cite-cart-coupon #coupon_code:focus { border-color: var(--shoe-ink); outline: none; }
.woocommerce-cart .woocommerce .cite-cart-coupon #coupon_code.has-error { border-color: var(--shoe-clay); }
.cite-cart-coupon .coupon-error-notice { margin: 8px 0 0; color: var(--shoe-clay-dark); font-size: 12.5px; }
/* Con JS la cantidad se guarda sola (assets/js/cart.js). */
.cite-cart-js .cite-cart-update { display: none !important; }

/* Botones del carrito (no los de las tarjetas del carrusel, que tienen los suyos) */
.woocommerce-cart .woocommerce .cite-cart-grid .button,
.woocommerce-cart .woocommerce .cite-cart-empty .button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; margin: 0; padding: 0 22px; border: 1px solid var(--shoe-ink); border-radius: 0; color: #fff; background: var(--shoe-ink); font-family: inherit; font-size: 11px; font-weight: 700; letter-spacing: .14em; line-height: 1.2; text-decoration: none; text-transform: uppercase; box-shadow: none; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.woocommerce-cart .woocommerce .cite-cart-grid .button:hover,
.woocommerce-cart .woocommerce .cite-cart-empty .button:hover { border-color: var(--shoe-clay); color: #fff; background: var(--shoe-clay); }
.woocommerce-cart .woocommerce .cite-cart-grid .button:disabled { opacity: .5; }

/* ----- Resumen ----- */
.woocommerce-cart .cite-cart-summary { padding: 26px 26px 22px; border: 1px solid var(--shoe-line); border-top: 2px solid var(--shoe-clay); background: #fff; box-shadow: var(--shoe-shadow); }
.woocommerce-cart .cite-cart-summary .cite-cart-summary__title { margin: 0 0 14px; color: var(--shoe-ink); font-family: var(--cite-font-title, "Bodoni Moda", Georgia, serif); font-size: 24px; font-weight: 400; letter-spacing: -.01em; line-height: 1.2; }
.woocommerce-cart .cite-cart-summary table.shop_table { width: 100%; margin: 0; border: 0; border-collapse: collapse; border-radius: 0; }
.woocommerce-cart .cite-cart-summary table.shop_table th,
.woocommerce-cart .cite-cart-summary table.shop_table td { padding: 12px 0; border: 0; border-top: 1px solid var(--shoe-line); background: none; color: var(--shoe-ink); font-size: 13.5px; line-height: 1.45; vertical-align: top; }
.woocommerce-cart .cite-cart-summary table.shop_table th { padding-right: 12px; color: var(--shoe-ink-soft); font-weight: 500; text-align: left; }
.woocommerce-cart .cite-cart-summary table.shop_table td { font-weight: 700; text-align: right; }
/* WooCommerce apila la tabla en móvil con «Etiqueta:» delante: aquí sobra. */
.woocommerce-cart .cite-cart-summary table.shop_table_responsive tr { display: table-row; }
.woocommerce-cart .cite-cart-summary table.shop_table_responsive tbody th { display: table-cell; }
.woocommerce-cart .cite-cart-summary table.shop_table_responsive tr td { display: table-cell; text-align: right !important; }
.woocommerce-cart .cite-cart-summary table.shop_table_responsive tr td::before { display: none; }
.woocommerce-cart .cite-cart-summary table.shop_table_responsive tr:nth-child(2n) td,
.woocommerce-cart .woocommerce-page table.shop_table_responsive tr:nth-child(2n) td,
.woocommerce-cart .cite-cart-summary table.shop_table tr td,
.woocommerce-cart .cite-cart-summary table.shop_table tr th { background: transparent !important; }

.woocommerce-cart .cite-cart-summary .order-total th,
.woocommerce-cart .cite-cart-summary .order-total td { padding-top: 16px; border-top-color: var(--shoe-ink); color: var(--shoe-ink); font-size: 15px; font-weight: 700; }
.woocommerce-cart .cite-cart-summary .order-total td .amount { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.woocommerce-cart .cite-cart-summary .order-total small { display: block; margin-top: 2px; color: var(--shoe-ink-soft); font-size: 11px; font-weight: 400; }
.woocommerce-cart .cite-cart-summary .cite-cart-savings th,
.woocommerce-cart .cite-cart-summary .cite-cart-savings td { color: var(--shoe-clay-dark); }
.woocommerce-cart .cite-cart-summary .cite-cart-savings th { white-space: nowrap; }
.woocommerce-cart .cite-cart-summary .cite-cart-savings th svg { margin-right: 4px; vertical-align: -3px; }
.woocommerce-cart .cite-cart-summary .woocommerce-shipping-totals td { color: var(--shoe-ink-soft); font-size: 12.5px; font-weight: 500; }
.woocommerce-cart .cite-cart-summary .woocommerce-shipping-totals td .amount { color: var(--shoe-ink); font-weight: 700; }
.woocommerce-cart .cite-cart-summary .cart-discount td { color: #2f6b45; }
.woocommerce-cart .cite-cart-summary .woocommerce-remove-coupon { display: block; margin-top: 2px; color: var(--shoe-ink-soft); font-size: 11.5px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.woocommerce-cart .cite-cart-summary .woocommerce-remove-coupon:hover { color: var(--shoe-clay); }

/* Envío: métodos, destino y calculadora */
.woocommerce-cart .cite-cart-summary #shipping_method { margin: 0; padding: 0; list-style: none; }
.woocommerce-cart .cite-cart-summary #shipping_method li { margin: 0 0 6px; padding: 0; text-indent: 0; }
.woocommerce-cart .cite-cart-summary #shipping_method li:last-child { margin-bottom: 0; }
.woocommerce-cart .cite-cart-summary #shipping_method label { font-weight: 600; }
.woocommerce-cart .cite-cart-summary #shipping_method input { margin: 0 6px 0 0; accent-color: var(--shoe-ink); vertical-align: -1px; }
.woocommerce-cart .cite-cart-summary .woocommerce-shipping-destination { margin: 6px 0 0; color: var(--shoe-ink-soft); font-size: 12px; font-weight: 400; }
.woocommerce-cart .cite-cart-summary .shipping-calculator-button { display: inline-block; margin-top: 4px; color: var(--shoe-ink); font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.woocommerce-cart .cite-cart-summary .shipping-calculator-button::after { display: none; }
.woocommerce-cart .cite-cart-summary .shipping-calculator-form { margin-top: 10px; text-align: left; }
.woocommerce-cart .cite-cart-summary .shipping-calculator-form .form-row { margin: 0 0 8px; padding: 0; }
.woocommerce-cart .cite-cart-summary .shipping-calculator-form .input-text,
.woocommerce-cart .cite-cart-summary .shipping-calculator-form select { width: 100%; height: 40px; padding: 0 10px; border: 1px solid var(--shoe-line); border-radius: 0; background: #fff; font-family: inherit; font-size: 13px; }

/* Finalizar compra: el botón protagonista, con flecha que avanza */
.woocommerce-cart .woocommerce .wc-proceed-to-checkout { padding: 18px 0 0; }
.woocommerce-cart .woocommerce .wc-proceed-to-checkout a.checkout-button { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 56px; margin: 0; padding: 0 20px; border: 0; border-radius: 0; color: #fff; background: var(--shoe-ink); font-family: inherit; font-size: 12px; font-weight: 700; letter-spacing: .16em; line-height: 1.2; text-transform: uppercase; transition: background .2s ease; }
.woocommerce-cart .woocommerce .wc-proceed-to-checkout a.checkout-button::after { width: 18px; height: 18px; content: ""; 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='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14m-6-6 6 6-6 6'/%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='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14m-6-6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .25s cubic-bezier(.22,1,.36,1); }
@media (hover: hover) and (pointer: fine) {
  .woocommerce-cart .woocommerce .wc-proceed-to-checkout a.checkout-button:hover { color: #fff; background: var(--shoe-clay); }
  .woocommerce-cart .woocommerce .wc-proceed-to-checkout a.checkout-button:hover::after { transform: translateX(4px); }
}
.woocommerce-cart .woocommerce .wc-proceed-to-checkout a.checkout-button:focus-visible { outline: 2px solid var(--shoe-clay); outline-offset: 2px; }


/* ----- Carrito vacío ----- */
.cite-cart-empty { display: flex; flex-direction: column; align-items: center; max-width: 620px; margin: 0 auto; padding: clamp(44px, 6vw, 68px) 24px; border: 1px solid var(--shoe-line); background: #fff; text-align: center; }
.cite-cart-empty__icon { position: relative; display: grid; width: 84px; height: 84px; margin-bottom: 24px; place-items: center; border-radius: 50%; color: var(--shoe-ink); background: var(--shoe-sand); }
.cite-cart-empty__icon::after { position: absolute; top: -9px; right: -9px; bottom: -9px; left: -9px; border: 1px dashed var(--shoe-line); border-radius: 50%; content: ""; animation: cite-cart-spin 24s linear infinite; }
.woocommerce-cart .cite-cart-empty .cite-cart-empty__title { margin: 0; color: var(--shoe-ink); font-family: var(--cite-font-title, "Bodoni Moda", Georgia, serif); font-size: clamp(24px, 3vw, 30px); font-weight: 400; letter-spacing: -.01em; line-height: 1.2; }
.cite-cart-empty__text { max-width: 380px; margin: 10px 0 26px; color: var(--shoe-ink-soft); font-size: 14.5px; line-height: 1.6; }
.woocommerce-cart .woocommerce .cite-cart-empty .button { min-height: 50px; padding: 0 28px; }

/* ----- Carrusel de recomendados ----- */
.cite-cart-recs { margin-top: clamp(48px, 7vw, 88px); }
.cite-cart-recs__head { display: flex; flex-direction: column; align-items: center; margin-bottom: 26px; text-align: center; }
.cite-cart-recs__eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; color: var(--shoe-clay); font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.cite-cart-recs__eyebrow::before,
.cite-cart-recs__eyebrow::after { width: 28px; height: 1px; content: ""; background: currentColor; opacity: .5; }
.woocommerce-cart .cite-cart-recs .cite-cart-recs__title { margin: 0; color: var(--shoe-ink); font-family: var(--cite-font-title, "Bodoni Moda", Georgia, serif); font-size: clamp(26px, 3vw, 36px); font-weight: 400; letter-spacing: -.02em; line-height: 1.15; }

/* ----- Barra fija de móvil (la crea cart.js) ----- */
.cite-cart-sticky { display: none; }

@keyframes cite-cart-shimmer { 0%, 30% { transform: translateX(-100%); } 70%, 100% { transform: translateX(100%); } }
@keyframes cite-cart-pop { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes cite-cart-spin { to { transform: rotate(360deg); } }

/* ----- Responsive ----- */
@media (max-width: 960px) {
  .cite-cart-grid { grid-template-columns: minmax(0, 1fr); }
  .woocommerce-cart .cite-cart-grid .cart-collaterals { position: static; }

  /* Total y botón siempre a mano mientras el resumen no está en pantalla. */
  .cite-cart-sticky { position: fixed; right: 0; bottom: 0; left: 0; z-index: 800; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--shoe-line); background: rgba(255,255,255,.98); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 -10px 30px rgba(0,0,0,.08); transform: translateY(110%); transition: transform .35s cubic-bezier(.22,1,.36,1); }
  .cite-cart-sticky.is-visible { transform: none; }
  .cite-cart-sticky__total { display: flex; flex-direction: column; margin: 0; line-height: 1.2; }
  .cite-cart-sticky__total > span { color: var(--shoe-ink-soft); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
  .cite-cart-sticky__total strong { color: var(--shoe-ink); font-size: 19px; font-weight: 800; }
  .cite-cart-sticky__btn { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; color: #fff; background: var(--shoe-ink); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-decoration: none; text-transform: uppercase; }
  .cite-cart-sticky__btn:hover { color: #fff; background: var(--shoe-clay); }
  /* El botón de WhatsApp sube para no quedar debajo de la barra. */
  .cite-cart-sticky-on .cite-whatsapp { bottom: 88px; transition: bottom .35s cubic-bezier(.22,1,.36,1); }
  .cite-cart-sticky-on .cite-totop { bottom: 158px; }
}

@media (max-width: 768px) {
  /* Selector de cantidad compacto en móvil */
  .cite-cart-qty { height: 32px !important; }
  .cite-cart-qty__btn { width: 28px !important; }
  .cite-cart-qty__btn svg { width: 13px !important; height: 13px !important; }
  .woocommerce-cart .woocommerce .cite-cart-qty .quantity .qty,
  .woocommerce-cart .cite-cart-qty .quantity .qty { width: 32px !important; font-size: 13px !important; }

  /* Cupón y botón de aplicar reducidos en móvil sin desborde */
  .cite-cart-actions { padding: 14px 16px; background: #fff; box-sizing: border-box; width: 100%; max-width: 100%; }
  .cite-cart-coupon { flex: 1 1 100% !important; width: 100% !important; max-width: 100% !important; min-width: 0 !important; box-sizing: border-box !important; }
  .cite-cart-coupon__row { display: flex !important; width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; }
  .woocommerce-cart .woocommerce .cite-cart-coupon #coupon_code,
  .woocommerce-cart .cite-cart-coupon #coupon_code {
    flex: 1 1 0% !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 36px !important;
    padding: 0 10px !important;
    font-size: 12.5px !important;
    box-sizing: border-box !important;
  }
  .woocommerce-cart .woocommerce .cite-cart-coupon .button,
  .woocommerce-cart .cite-cart-coupon .button,
  .woocommerce-cart .cite-cart-coupon button[name="apply_coupon"] {
    flex: 0 0 auto !important;
    min-height: 36px !important;
    height: 36px !important;
    padding: 0 14px !important;
    font-size: 10.5px !important;
    letter-spacing: .08em !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
  }

  /* Quitar fondo gris que WooCommerce añade en móvil a filas pares y totales */
  .woocommerce-cart .woocommerce table.shop_table_responsive tr:nth-child(2n) td,
  .woocommerce-cart .woocommerce-page table.shop_table_responsive tr:nth-child(2n) td,
  .woocommerce-cart .woocommerce table.shop_table_responsive tr td,
  .woocommerce-cart .cite-cart-summary table.shop_table tr td,
  .woocommerce-cart .cite-cart-summary table.shop_table tr th,
  .woocommerce-cart .cite-cart-summary table.shop_table tr:last-child td,
  .woocommerce-cart .cite-cart-summary table.shop_table tr:last-child th,
  .woocommerce-cart .cite-cart-summary .order-total th,
  .woocommerce-cart .cite-cart-summary .order-total td,
  .woocommerce-cart .cite-cart-summary .woocommerce-shipping-totals th,
  .woocommerce-cart .cite-cart-summary .woocommerce-shipping-totals td,
  .woocommerce-cart .cite-cart-summary .shipping-calculator-form {
    background: transparent !important;
    background-color: transparent !important;
  }
}

@media (max-width: 680px) {
  .cite-cart-sticky-on .cite-totop { bottom: 150px; }
}
@media (max-width: 500px) {
  .cite-cart-sticky-on .cite-totop { bottom: 142px; }
}

@media (max-width: 600px) {
  .cite-cart-ship { align-items: flex-start; gap: 12px; padding: 14px 16px; }
  .cite-cart-ship__icon { width: 38px; height: 38px; }
  .cite-cart-ship__text { font-size: 13.5px; }

  .cite-cart-items__head { padding: 12px 16px; }
  .cite-cart-item { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .cite-cart-item__top { flex-direction: column; gap: 4px; }
  .cite-cart-item__name { font-size: 14px; }
  .cite-cart-item__subtotal { font-size: 14px; }
  .woocommerce-cart .cite-cart-summary { padding: 22px 18px 18px; }

  /* En móvil: ocultar el texto «Eliminar» y conservar solo el icono de papelera (tachito) */
  .woocommerce-cart .woocommerce .cite-cart-item a.remove span,
  .woocommerce-cart .cite-cart-item a.remove span {
    display: none !important;
  }
  .woocommerce-cart .woocommerce .cite-cart-item a.remove,
  .woocommerce-cart .cite-cart-item a.remove {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    gap: 0 !important;
    font-size: 0 !important;
    line-height: 1 !important;
    border-radius: var(--shoe-radius, 4px) !important;
  }
  .woocommerce-cart .woocommerce .cite-cart-item a.remove svg,
  .woocommerce-cart .cite-cart-item a.remove svg {
    display: block !important;
    width: 17px !important;
    height: 17px !important;
  }
}

@media (max-width: 360px) {
  .cite-cart-actions { padding: 12px 10px; }
  .woocommerce-cart .woocommerce .cite-cart-coupon #coupon_code,
  .woocommerce-cart .cite-cart-coupon #coupon_code { padding: 0 8px !important; font-size: 11.5px !important; }
  .woocommerce-cart .woocommerce .cite-cart-coupon .button,
  .woocommerce-cart .cite-cart-coupon .button,
  .woocommerce-cart .cite-cart-coupon button[name="apply_coupon"] { padding: 0 10px !important; font-size: 10px !important; letter-spacing: .06em !important; }
}

@media (prefers-reduced-motion: reduce) {
  .cite-cart-ship__fill,
  .cite-cart-sticky,
  .cite-cart-item__media img,
  .woocommerce-cart .woocommerce .wc-proceed-to-checkout a.checkout-button::after { transition: none; }
  .cite-cart-ship__fill::after,
  .cite-cart-ship.is-celebrating .cite-cart-ship__icon,
  .cite-cart-empty__icon::after { animation: none; }
}
