/**
 * Victory Creations — la cesta: página /cart/ (Carrito-escritorio / movil) y
 * cajón lateral (Cesta-lateral-escritorio / movil). Colores de esos diseños
 * (tokens --vk-*, los mismos que la ficha nueva); la tipografía sigue al
 * conjunto activo del tema (--font-display / --font-body).
 */

body .vc-cesta,
body .vc-cajon,
body .vc-cart-drawer {
	--vk-accent: #B04E2E;
	--vk-accent-dark: #8C3A20;
	--vk-ink: #3A3340;
	--vk-muted: #6E6673;
	--vk-muted-2: #5E5663;
	--vk-border: #EFE2DE;
	--vk-border-2: #F3E8E4;
	--vk-line: #D3C2BD;
	--vk-dash: #EAD8D2;
	--vk-dash-2: #E3D2CD;
	--vk-dot: #D9C8C3;
	--vk-bg: #FBF4F2;
	--vk-soft: #F7E8E3;
	--vk-green-bg: #E3F1EC;
	--vk-green: #236B59;
	--vk-green-ink: #1F5A4B;
	--vk-green-txt: #34524A;
	--vk-green-dark: #1F4A3F;
	--vk-shadow: 0 24px 48px -40px rgba(58, 51, 64, .45);
}
body .vc-cesta *, body .vc-cesta *::before, body .vc-cesta *::after,
body .vc-cart-drawer *, body .vc-cart-drawer *::before, body .vc-cart-drawer *::after { box-sizing: border-box; }
body .vc-cesta .screen-reader-text,
body .vc-cajon .screen-reader-text,
body .vc-cart-drawer .screen-reader-text,
body .vc-cart-link .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}
body .vc-cesta a { color: var(--vk-accent); font-weight: inherit; text-decoration: none; }
body .vc-cesta a:hover { color: var(--vk-accent-dark); }
body .vc-cesta button, body .vc-cesta input, body .vc-cajon button { font: inherit; color: inherit; }
body .vc-cesta input::placeholder { color: #776E7B; opacity: 1; }
body .vc-cesta summary::-webkit-details-marker { display: none; }
body .vc-cesta [hidden], body .vc-cajon [hidden] { display: none !important; }

/* La página de la cesta: sin el relleno extra de la capa de WooCommerce. */
body.woocommerce-cart .woocommerce { padding: 0 0 24px; }
body.woocommerce-cart .vc-page-content { line-height: 1.5; font-size: 16px; color: var(--vk-ink, #3A3340); }
body.woocommerce-cart .vc-page-content > .woocommerce > .woocommerce-notices-wrapper:not(:empty) { margin-bottom: 18px; }

/* ---------------------------------------------------------------- Cabecera */
body .vc-cesta { color: var(--vk-ink); font-family: var(--font-body); }
body .vc-cesta-cab { position: relative; }
body .vc-cesta .vc-confeti { position: absolute; right: 4px; top: 4px; width: 70px; height: 40px; pointer-events: none; }
body .vc-cesta .vc-confeti span { position: absolute; display: block; }
body .vc-cesta .vc-confeti span:nth-child(1) { left: 4px; top: 20px; width: 22px; height: 7px; border-radius: 4px; background: #B49BD8; transform: rotate(-34deg); }
body .vc-cesta .vc-confeti span:nth-child(2) { left: 32px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: #E07A66; }
body .vc-cesta .vc-confeti span:nth-child(3) { left: 52px; top: 16px; width: 14px; height: 14px; border: 3px solid #3FA98F; border-radius: 50%; }
body .vc-cesta-h1 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 46px; line-height: 1.04; letter-spacing: -.03em; color: var(--vk-ink); }
body .vc-cesta-cuantos { margin: 10px 0 0; font-size: 17px; color: var(--vk-muted); }

body .vc-cesta-rejilla { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr) 392px; column-gap: 48px; align-items: start; }
body .vc-cesta-izq { min-width: 0; }
body .vc-cesta-form { display: flex; flex-direction: column; gap: 16px; margin: 0; }

/* ----------------------------------------------------- La fiesta (D30) */
body .vc-fiesta { display: flex; align-items: center; gap: 16px; padding: 16px 22px 16px 18px; border-radius: 20px; background: #fff; border: 1px solid var(--vk-border); }
body .vc-fiesta-ico { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--vk-soft); display: inline-flex; align-items: center; justify-content: center; }
body .vc-fiesta-txt { flex: 1; min-width: 0; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
body .vc-fiesta-que { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 16.5px; font-weight: 700; line-height: 1.35; }
body .vc-fiesta-tema { flex: none; margin: 0; display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px 0 11px; border-radius: 999px; background: var(--vk-soft); font-size: 14px; font-weight: 600; }
body .vc-fiesta-tema strong { font-weight: 600; }
body .vc-fiesta-donde { flex: none; margin: 0; font-size: 13px; color: var(--vk-muted); }

/* ------------------------------------------------------------- Las líneas */
body .vc-lineas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; border: 0; background: none; }
body .vc-linea { display: grid; grid-template-columns: 148px minmax(0, 1fr); column-gap: 24px; padding: 22px 24px 18px 22px; background: #fff; border: 1px solid var(--vk-border); border-radius: 24px; box-shadow: var(--vk-shadow); margin: 0; }
body .vc-linea-foto { position: relative; width: 148px; height: 148px; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--vk-border-2); }
body .vc-linea-foto a { display: block; width: 100%; height: 100%; }
body .vc-linea-foto img { display: block; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; margin: 0 !important; border-radius: 0; float: none !important; box-shadow: none; }
body .vc-foto-chip { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 3px; height: 22px; max-width: calc(100% - 12px); padding: 0 7px 0 5px; border-radius: 999px; background: #fff; color: var(--vk-ink); font-size: 10.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 2px 8px -3px rgba(58, 51, 64, .45); }
body .vc-foto-chip svg { flex: none; }
body .vc-linea-cuerpo { min-width: 0; display: flex; flex-direction: column; }
body .vc-linea-cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
body .vc-linea-titulo { min-width: 0; }
body .vc-linea-nombre { margin: 0; font-family: var(--font-body); font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: 0; }
body .vc-linea-nombre a, body .vc-cajon-nombre a { color: var(--vk-ink) !important; text-decoration: none; }
body .vc-linea-nombre a:hover, body .vc-cajon-nombre a:hover { text-decoration: underline; text-underline-offset: 3px; }
body .vc-linea-opcion { margin: 8px 0 0; }
body .vc-pill { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--vk-bg); border: 1px solid var(--vk-border); font-size: 13px; font-weight: 600; color: var(--vk-muted-2); white-space: nowrap; }
body .vc-linea-precio { flex: none; margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
body .vc-linea-total { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -.01em; line-height: 1.1; }
body .vc-linea-total .woocommerce-Price-amount { font-weight: inherit; }
body .vc-linea-por { display: block; margin-top: 4px; font-size: 13px; color: var(--vk-muted); white-space: nowrap; }
body .vc-linea-datos { margin: 12px 0 0; font-size: 14px; line-height: 1.5; color: var(--vk-muted-2); display: flex; flex-direction: column; gap: 3px; }
body .vc-linea-datos dt { display: inline; font-weight: 700; color: var(--vk-ink); }
body .vc-linea-datos dd { display: inline; margin: 0; }
body .vc-linea-datos q { quotes: "«" "»"; }
body .vc-linea-extra-precio { white-space: nowrap; font-variant-numeric: tabular-nums; }
body .vc-tramo-chip { margin: 12px 0 0; align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 4px 12px 4px 10px; border-radius: 999px; background: var(--vk-green-bg); color: var(--vk-green-ink); font-size: 13px; font-weight: 700; }
body .vc-tramo-chip svg { flex: none; }
body .vc-linea-precio-m { display: none; }
body .vc-linea-pie { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; column-gap: 16px; row-gap: 14px; flex-wrap: wrap; }
body .vc-linea-pie::before { content: ""; flex: 0 0 100%; height: 0; border-top: 1px dashed var(--vk-dash); }
body .vc-linea-cant { display: flex; align-items: center; gap: 10px; }

/* Cantidad con − / + (cart[clave][qty]) */
body .vc-qty-caja { flex: none; display: inline-flex; align-items: center; height: 44px; border: 1px solid var(--vk-line); border-radius: 999px; background: #fff; margin: 0 !important; }
body .vc-qty-caja button { width: 42px; height: 42px; border: 0; border-radius: 999px; background: transparent; display: inline-flex; align-items: center; justify-content: center; color: var(--vk-ink); cursor: pointer; padding: 0; }
body .vc-qty-caja .vc-qty-menos { color: var(--vk-muted); }
body .vc-qty-caja button:disabled { opacity: .35; cursor: not-allowed; }
body .vc-qty-caja button:focus-visible { outline: 2px solid var(--vk-accent); outline-offset: 1px; }
body .vc-cesta .vc-qty-caja input.qty { width: 44px; height: 38px; border: 0 !important; background: transparent !important; text-align: center; font-family: var(--font-display); font-size: 17px; font-weight: 700; padding: 0 !important; border-radius: 0 !important; color: var(--vk-ink); -moz-appearance: textfield; box-shadow: none; }
body .vc-cesta .vc-qty-caja input.qty:focus { outline: 2px solid var(--vk-accent); outline-offset: -2px; border-radius: 8px !important; }
body .vc-qty-min { font-size: 13px; line-height: 1.35; color: var(--vk-muted); }
body .vc-qty-uno { font-weight: 700; }

/* Cantidad fija por la lista de nombres (filtro del plugin) */
body .vc-qty-fixed-wrap { display: inline-flex; align-items: center; gap: 10px; }
body .vc-cesta .vc-qty-fixed { margin: 0; display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 14px 0 12px; border-radius: 999px; background: var(--vk-bg); border: 1px dashed var(--vk-line); font-size: 15px; font-weight: 700; white-space: nowrap; color: var(--vk-ink); }
body .vc-cesta .vc-qty-fixed svg { color: var(--vk-muted); }
body .vc-qty-fixed-nota { font-size: 13px; line-height: 1.35; color: var(--vk-muted); }

/* Editar / Eliminar */
body .vc-linea-acciones { display: flex; align-items: center; gap: 2px; margin-left: auto; }
body .vc-linea-acciones .product-remove { display: inline-flex; }
body .vc-cesta a.vc-linea-editar { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; color: var(--vk-accent); }
body .vc-cesta a.vc-linea-editar:hover { text-decoration: underline; text-underline-offset: 3px; }
body .vc-cesta .vc-linea-acciones a.remove,
body .vc-cart-drawer a.remove.vc-cajon-quitar {
	display: inline-flex !important; align-items: center; gap: 6px; width: auto !important; height: auto !important; min-height: 40px; padding: 0 12px; border: 0 !important; border-radius: 999px; background: transparent !important;
	color: var(--vk-muted) !important; font-size: 14px !important; font-weight: 600; line-height: 1 !important; text-decoration: none !important; white-space: nowrap; box-shadow: none;
}
body .vc-cesta .vc-linea-acciones a.remove:hover,
body .vc-cart-drawer a.remove.vc-cajon-quitar:hover { background: var(--vk-bg) !important; color: var(--vk-accent-dark) !important; }
body .vc-cesta .vc-remove-label, body .vc-cart-drawer .vc-remove-label { font-size: inherit; letter-spacing: 0; font-weight: inherit; }

/* Aviso del reparto */
body .vc-aviso-reparto { margin: 0; display: flex; align-items: flex-start; gap: 10px; padding: 0 6px; font-size: 14px; line-height: 1.5; color: var(--vk-muted-2); }
body .vc-aviso-reparto svg { flex: none; margin-top: 1px; }
body .vc-aviso-reparto strong { font-weight: 700; color: var(--vk-ink); }

/* Botón «Actualizar» (lo pulsa el JS): oculto salvo con el teclado. */
body .vc-cesta-acciones { margin: 0; padding: 0; border: 0; }
body .vc-cesta .vc-actualizar { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; padding: 0 !important; margin: -1px !important; border: 0 !important; }
body .vc-cesta .vc-actualizar:focus { position: static !important; width: auto !important; height: auto !important; clip: auto; margin: 0 !important; padding: 8px 14px !important; border-radius: 999px; }

/* ---------------------------------------------------------------- El ticket */
body .vc-cesta-der { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
body .vc-cesta .cart_totals { width: 100% !important; float: none !important; background: none !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; border-radius: 0 !important; }
body .vc-cesta .vc-ticket { filter: drop-shadow(0 1px 1px rgba(58, 51, 64, .07)) drop-shadow(0 16px 26px rgba(58, 51, 64, .08)); font-variant-numeric: tabular-nums; }
body .vc-cesta .vc-ticket-dientes { display: block; width: 100%; height: 8px; }
body .vc-cesta .vc-ticket-arriba { background: #fff; padding: 24px 28px 6px; }
body .vc-cesta .vc-ticket-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
body .vc-cesta .vc-ticket-cab h2 { margin: 0; font-family: var(--font-body); font-size: 12.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--vk-ink); }
body .vc-cesta .vc-ticket-cab span { font-size: 13px; color: var(--vk-muted); }
body .vc-cesta .vc-ticket-filas { margin: 16px 0 0; padding: 16px 0 0; border-top: 1.5px dashed var(--vk-dash-2); display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
body .vc-fila { display: flex; align-items: baseline; gap: 8px; }
body .vc-fila .vc-k { flex: none; max-width: 62%; }
body .vc-puntos { flex: 1; border-bottom: 1.5px dotted var(--vk-dot); min-width: 12px; }
body .vc-fila .vc-v { flex: none; margin: 0; font-weight: 600; text-align: right; }
body .vc-fila .vc-v.vc-gratis { font-weight: 700; letter-spacing: .06em; color: var(--vk-green); }
body .vc-fila-iva { color: var(--vk-muted); }
body .vc-fila-iva .vc-v { font-weight: 400; }
body .vc-fila.cart-discount .vc-v { color: var(--vk-green); flex: 0 1 auto; min-width: 0; } /* puede encoger: «[Eliminar]» baja de línea en el móvil en vez de salirse del ticket */
body .vc-fila.cart-discount a.woocommerce-remove-coupon { margin-left: 6px; font-weight: 600; font-size: 13px; display: inline-block; white-space: nowrap; }
body .vc-envio-pastilla, body .vc-cajon-envio { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; margin: 8px 0 2px; padding: 4px 12px 4px 9px; border-radius: 999px; background: var(--vk-green-bg); color: var(--vk-green-ink); font-size: 13px; font-weight: 700; line-height: 1.35; }
body .vc-envio-pastilla svg, body .vc-cajon-envio svg { flex: none; color: var(--vk-green); }
body .vc-envio-pastilla strong, body .vc-cajon-envio strong { font-weight: 800; }
body .vc-envio-pastilla.vc-envio-falta, body .vc-cajon-envio.vc-envio-falta { border-radius: 14px; }
body .vc-envio-calc { margin-top: 6px; font-size: 13px; }
body .vc-envio-calc .shipping-calculator-button { font-weight: 600; color: var(--vk-muted-2); text-decoration: underline; text-underline-offset: 3px; }
body .vc-envio-calc .shipping-calculator-button::after { display: none; }
body .vc-envio-calc .shipping-calculator-form { margin-top: 10px; display: grid; gap: 8px; }
body .vc-envio-calc .shipping-calculator-form p { margin: 0; }
body .vc-envio-calc .shipping-calculator-form .button { border-radius: 12px; }
body .vc-envio-tabla { width: 100%; border: 0; margin: 0; background: none; font-size: 14.5px; }
body .vc-envio-tabla th, body .vc-envio-tabla td { border: 0 !important; padding: 2px 0 !important; text-align: left; vertical-align: top; background: none !important; }
body .vc-envio-tabla th { font-weight: 400; padding-right: 12px !important; }
body .vc-envio-tabla ul#shipping_method { list-style: none; margin: 0; padding: 0; }
body .vc-cesta .vc-ticket-gancho { width: 100%; border: 0; margin: 0; background: none; font-size: 14px; }
body .vc-cesta .vc-ticket-gancho th, body .vc-cesta .vc-ticket-gancho td { border: 0 !important; padding: 2px 0 !important; background: none !important; }

/* Código de descuento (plegado) */
body .vc-cupon { margin-top: 14px; border-top: 1.5px dashed var(--vk-dash-2); }
body .vc-cupon summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 52px; font-size: 14.5px; font-weight: 600; cursor: pointer; }
body .vc-cupon-t { flex: 1; }
body .vc-cupon-flecha { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--vk-bg); display: inline-flex; align-items: center; justify-content: center; transition: transform .2s; }
body .vc-cupon[open] .vc-cupon-flecha { transform: rotate(180deg); }
body .vc-cupon-campo { padding: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
body .vc-cesta .vc-cupon-campo input#coupon_code { flex: 1; min-width: 0; width: auto; height: 46px; padding: 0 14px !important; border: 1px solid var(--vk-line); border-radius: 12px; background: #fff; font-size: 15px; }
body .vc-cesta .vc-cupon-campo .vc-cupon-aplicar { flex: none; height: 46px; padding: 0 18px; border-radius: 12px; border: 1.5px solid var(--vk-ink); background: #fff; color: var(--vk-ink); font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: none; }
body .vc-cupon-campo .coupon-error-notice { flex: 0 0 100%; margin: 0; font-size: 13px; color: #B3261E; }

/* El corte con tijeras */
body .vc-cesta .vc-ticket-corte { position: relative; height: 26px; background: #fff; }
body .vc-cesta .vc-corte-i, body .vc-cesta .vc-corte-d { position: absolute; top: 0; width: 13px; height: 26px; background: var(--vk-bg); }
body .vc-cesta .vc-corte-i { left: 0; border-radius: 0 13px 13px 0; }
body .vc-cesta .vc-corte-d { right: 0; border-radius: 13px 0 0 13px; }
body .vc-cesta .vc-corte-raya { position: absolute; left: 24px; right: 24px; top: 12px; border-top: 2px dashed #DCCBC6; }
body .vc-cesta .vc-corte-tijeras { position: absolute; left: 22px; top: 2px; width: 32px; height: 22px; background: #fff; display: flex; align-items: center; justify-content: center; }
body .vc-cesta .vc-ticket-abajo { background: #fff; padding: 8px 28px 24px; }
body .vc-cesta .vc-ticket-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
body .vc-cesta .vc-ticket-total-k { font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
body .vc-cesta .vc-ticket-total-v { font-family: var(--font-display); font-size: 42px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
body .vc-cesta .vc-ticket-total-v .woocommerce-Price-amount { font-weight: inherit; }
body .vc-cesta .vc-ticket-cobro { margin: 18px 0 0; display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.5; color: var(--vk-muted-2); }
body .vc-cesta .vc-ticket-cobro svg { flex: none; margin-top: 1px; }
body .vc-cesta .wc-proceed-to-checkout { padding: 0; margin-top: 16px; }
body .vc-cesta .wc-proceed-to-checkout > * + * { margin-top: 10px; }
a.vc-tramitar,
body .vc-cesta a.checkout-button.vc-tramitar,
body .vc-cart-drawer a.vc-tramitar {
	width: 100%; height: 60px; margin: 0 !important; padding: 0 16px !important; border: 0; border-radius: 16px !important; background: var(--vk-accent, #B04E2E) !important; color: #fff !important;
	display: flex !important; align-items: center; justify-content: center; gap: 10px; font-family: var(--font-display); font-size: 19px !important; font-weight: 700; letter-spacing: -.005em; line-height: 1.2; text-decoration: none !important;
	box-shadow: 0 3px 0 var(--vk-accent-dark, #8C3A20) !important; cursor: pointer; text-align: center;
}
a.vc-tramitar:hover { background: var(--vk-accent-dark, #8C3A20) !important; color: #fff !important; }
a.vc-tramitar:focus-visible { outline: 3px solid var(--vk-ink, #3A3340); outline-offset: 2px; }
a.vc-tramitar .woocommerce-Price-amount { font-weight: inherit; }
body .vc-cesta .vc-ticket-seguro { margin: 14px 0 0; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--vk-muted-2); }

/* Plazo y «Seguir comprando» */
body .vc-cesta-plazo { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; border-radius: 20px; background: var(--vk-green-bg); color: var(--vk-green-txt); }
body .vc-cesta-plazo-ico { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; }
body .vc-cesta-plazo-t { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.4; color: var(--vk-green-dark); }
body .vc-cesta-plazo-d { margin: 5px 0 0; font-size: 13.5px; line-height: 1.55; }
body .vc-cesta a.vc-seguir { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* La barra fija solo en el móvil */
body .vc-barra-cesta { display: none; }

/* ----------------------------------------------- También te puede gustar */
body .vc-cesta-rel { margin-top: 88px; }
body .vc-cesta-rel h2 { margin: 0; font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; color: var(--vk-ink); }
body .vc-cesta-rel .vc-tj-grid.vc-tj-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body .vc-cesta-rel .vc-tj-img { height: 230px; }

/* ----------------------------------------------------------- Cesta vacía */
body .vc-vacia-caja { margin-top: 28px; padding: 32px; border-radius: 24px; background: #fff; border: 1px solid var(--vk-border); box-shadow: var(--vk-shadow); max-width: 760px; }
body .vc-vacia-caja .wc-empty-cart-message, body .vc-vacia-caja .cart-empty { margin: 0; padding: 0; border: 0; box-shadow: none; background: none; font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--vk-ink); }
body .vc-vacia-caja .cart-empty::before { display: none; }
body .vc-vacia-caja .woocommerce-info { padding: 0 !important; border: 0 !important; box-shadow: none !important; background: none !important; }
body .vc-vacia-txt { margin: 10px 0 0; color: var(--vk-muted); font-size: 16px; line-height: 1.55; }
body .vc-vacia-caja .return-to-shop { margin: 22px 0 0; }
body .vc-cesta a.vc-vacia-btn { display: inline-flex; align-items: center; height: 52px; padding: 0 24px; border-radius: 16px; background: var(--vk-accent); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 3px 0 var(--vk-accent-dark); }

/* ============================================================ El cajón */
body .vc-cart-overlay { position: fixed; inset: 0; background: rgba(46, 40, 52, .55); z-index: 90; opacity: 0; transition: opacity .28s; }
body .vc-cart-overlay.show { opacity: 1; }
body .vc-cart-drawer {
	position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); z-index: 95;
	background: #fff; border-radius: 24px 0 0 24px; box-shadow: -24px 0 48px -24px rgba(30, 24, 36, .5);
	display: flex; flex-direction: column; color: var(--vk-ink); font-family: var(--font-body);
	transform: translateX(102%); transition: transform .3s cubic-bezier(.3, .8, .3, 1);
}
body .vc-cart-drawer.open { transform: translateX(0); }
body .vc-cart-drawer[hidden] { display: none; }
body .vc-cart-drawer-body.vc-cajon { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
body .vc-cajon-cab { flex: none; padding: 22px 24px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
body .vc-cajon-asa { display: none; }
body .vc-cajon-t { margin: 0; font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -.015em; line-height: 1.15; color: var(--vk-ink); }
body .vc-cajon-n { color: var(--vk-muted); font-weight: 600; }
body .vc-cajon .vc-cart-close { flex: none; width: 44px; height: 44px; border: 1px solid var(--vk-border); border-radius: 50%; background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--vk-ink); padding: 0; font-size: 0; }
body .vc-cajon .vc-cart-close:hover { background: var(--vk-bg); }
body .vc-cajon .vc-cart-close:focus-visible { outline: 2px solid var(--vk-accent); outline-offset: 2px; }
body .vc-cajon-fiesta { flex: none; margin: 0 24px; display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 12px; background: var(--vk-bg); font-size: 13.5px; line-height: 1.4; color: var(--vk-muted-2); }
body .vc-cajon-fiesta svg { flex: none; }
body .vc-cajon-fiesta strong { font-weight: 700; color: var(--vk-ink); }
body .vc-cart-drawer .vc-cajon-lineas { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; list-style: none; margin: 4px 0 0; padding: 0 24px; }
/* «ul.… > li.…»: pesa más que «.woocommerce ul.cart_list li» (padding 4px 0) de
   woocommerce.css, que gana en las páginas con la clase .woocommerce (tienda, fichas). */
body .vc-cart-drawer ul.vc-cajon-lineas > li.vc-cajon-linea { display: grid; grid-template-columns: 116px minmax(0, 1fr); column-gap: 14px; padding: 14px 0 10px; border-bottom: 1px dashed var(--vk-dash); margin: 0; }
body .vc-cart-drawer ul.vc-cajon-lineas > li.vc-cajon-linea .vc-cajon-nombre a { display: inline; }
body .vc-cart-drawer .vc-cajon-linea .vc-linea-foto { width: 116px; height: 116px; border-radius: 14px; }
body .vc-cajon-cuerpo { min-width: 0; }
body .vc-cajon-nombre { margin: 0; font-family: var(--font-body); font-size: 15px; font-weight: 700; line-height: 1.32; letter-spacing: 0; }
body .vc-cajon-fila { margin-top: 7px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-variant-numeric: tabular-nums; }
body .vc-cajon-fila + .vc-cajon-fila { margin-top: 2px; }
body .vc-pill.vc-pill-s { height: 26px; padding: 0 10px; font-size: 12.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
body .vc-cajon-total { margin: 0; font-family: var(--font-display); font-size: 18px; font-weight: 700; white-space: nowrap; }
body .vc-cart-drawer .vc-cajon-por { margin: 0; font-size: 13.5px; color: var(--vk-muted-2); white-space: nowrap; grid-column: auto; }
body .vc-cajon-por strong { font-weight: 700; color: var(--vk-ink); }
body .vc-cart-drawer a.remove.vc-cajon-quitar { min-height: 38px; margin-right: -8px; padding: 0 8px; font-size: 13.5px !important; }
body .vc-cajon-pie { flex: none; padding: 16px 24px 22px; border-top: 1px solid var(--vk-border); background: #fff; font-variant-numeric: tabular-nums; }
body .vc-cajon-pie .vc-cajon-envio { display: flex; margin: 0; min-height: 36px; padding: 6px 12px; border-radius: 12px; font-size: 13.5px; }
body .vc-cajon-subtotal { margin: 14px 0 0; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0; border: 0; }
body .vc-cajon-sub-k { margin: 0; font-size: 15px; font-weight: 700; }
body .vc-cajon-sub-k span { font-weight: 500; font-size: 13px; color: var(--vk-muted); }
body .vc-cajon-sub-v { margin: 0; font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -.01em; line-height: 1; }
body .vc-cajon-ajustes { margin: 8px 0 0; display: flex; flex-direction: column; gap: 2px; }
body .vc-cajon-ajuste { margin: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--vk-muted-2); }
body .vc-cajon-ajuste span:last-child { font-weight: 700; color: var(--vk-ink); white-space: nowrap; }
body .vc-cajon-botones { margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
body .vc-cajon-botones > * { margin: 0 !important; }
body .vc-cart-drawer a.vc-tramitar { height: 56px; font-size: 18px !important; }
body .vc-cart-drawer a.vc-ver-cesta, body .vc-cajon-vacia a.vc-ver-cesta { display: flex !important; align-items: center; justify-content: center; height: 48px; border-radius: 14px !important; border: 1.5px solid var(--vk-ink) !important; background: #fff !important; color: var(--vk-ink) !important; font-size: 15.5px !important; font-weight: 700; text-decoration: none; padding: 0 16px !important; box-shadow: none !important; }
body .vc-cart-drawer a.vc-ver-cesta:hover { background: var(--vk-bg) !important; }
body .vc-cajon-cobro { margin: 12px 0 0; display: flex; align-items: flex-start; justify-content: center; gap: 7px; font-size: 12.5px; line-height: 1.45; color: var(--vk-muted-2); }
body .vc-cajon-cobro svg { flex: none; margin-top: 1px; }
body .vc-cajon-vacia { padding: 30px 24px; text-align: center; }
body .vc-cajon-vacia .woocommerce-mini-cart__empty-message { margin: 0 0 18px; color: var(--vk-muted); font-weight: 600; }

/* ============================================================ Móvil */
@media (max-width: 720px) {
	body .vc-cesta { margin: 0 -8px; padding-bottom: 150px; }
	body.woocommerce-cart .vc-page-content > section { padding-top: 0; }
	body .vc-cesta-cab { padding-top: 0; }
	body .vc-cesta-h1 { font-size: 34px; line-height: 1.05; }
	body .vc-cesta-cuantos { margin-top: 6px; font-size: 15px; }
	body .vc-cesta-rejilla { margin-top: 18px; display: block; }
	body .vc-cesta-form { gap: 12px; }
	body .vc-fiesta { gap: 12px; padding: 12px 14px; border-radius: 18px; }
	body .vc-fiesta-ico { width: 40px; height: 40px; }
	body .vc-fiesta-ico svg { width: 20px; height: 20px; }
	body .vc-fiesta-txt { display: block; }
	body .vc-fiesta-que { font-size: 15px; }
	body .vc-fiesta-tema, body .vc-fiesta-donde { display: inline; min-height: 0; padding: 0; background: none; font-size: 13.5px; line-height: 1.4; color: var(--vk-muted-2); font-weight: 400; }
	body .vc-fiesta-tema svg { display: none; }
	body .vc-fiesta-tema strong { font-weight: 700; color: var(--vk-ink); }
	body .vc-fiesta-tema + .vc-fiesta-donde::before { content: " · "; }
	body .vc-fiesta-donde { text-transform: none; }
	body .vc-lineas { gap: 12px; }
	body .vc-linea { display: block; padding: 14px 14px 8px; border-radius: 20px; box-shadow: 0 20px 40px -34px rgba(58, 51, 64, .45); position: relative; }
	body .vc-cesta .vc-linea-foto { position: absolute; left: 14px; top: 14px; width: 116px; height: 116px; border-radius: 14px; }
	body .vc-linea-cuerpo { display: block; }
	body .vc-linea-cab { display: block; min-height: 116px; padding-left: 130px; }
	body .vc-linea-nombre { margin-top: 2px; font-size: 15.5px; line-height: 1.32; }
	body .vc-linea-precio { display: none; }
	body .vc-linea-datos { margin-top: 12px; font-size: 13.5px; }
	body .vc-tramo-chip { font-size: 12.5px; }
	body .vc-linea-pie { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--vk-dash); gap: 10px; flex-wrap: wrap; }
	body .vc-linea-pie::before { display: none; }
	body .vc-linea-pie::after { content: none; }
	body .vc-qty-caja { height: 48px; }
	body .vc-qty-caja button { width: 46px; height: 46px; }
	body .vc-cesta .vc-qty-caja input.qty { height: 42px; }
	body .vc-cesta .vc-qty-fixed { height: 48px; }
	body .vc-linea-precio-m { display: block; flex: none; margin: 0 0 0 auto; text-align: right; font-variant-numeric: tabular-nums; }
	body .vc-linea-precio-m .vc-linea-total { font-size: 20px; }
	body .vc-linea-acciones { flex: 0 0 100%; justify-content: flex-end; margin: 0 -6px 0 0; }
	body .vc-cesta a.vc-linea-editar, body .vc-cesta .vc-linea-acciones a.remove { min-height: 44px; }
	body .vc-aviso-reparto { padding: 4px 2px; font-size: 13.5px; }
	body .vc-cesta-der { margin-top: 22px; gap: 14px; }
	body .vc-cesta .vc-ticket-arriba { padding: 24px 22px 6px; }
	body .vc-cesta .vc-ticket-abajo { padding: 8px 22px 22px; }
	body .vc-cesta .vc-ticket-total-v { font-size: 38px; }
	body .vc-cesta .cart_totals .wc-proceed-to-checkout .vc-tramitar { display: none !important; }
	body .vc-cesta .cart_totals .wc-proceed-to-checkout:empty { display: none; }
	body .vc-cesta-plazo { padding: 16px; }
	body .vc-cesta-plazo-ico { width: 38px; height: 38px; }
	body .vc-cesta a.vc-seguir { height: 50px; border-radius: 14px; border: 1.5px solid var(--vk-ink); background: #fff; color: var(--vk-ink); font-size: 15.5px; text-decoration: none; }
	body .vc-cesta-rel { margin-top: 40px; }
	body .vc-cesta-rel h2 { font-size: 24px; }
	body .vc-cesta-rel .vc-tj-grid.vc-tj-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	body .vc-cesta-rel .vc-tj-img { height: 180px; }

	/* La barra fija de abajo */
	body .vc-barra-cesta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: #fff; border-top: 1px solid var(--vk-border); border-radius: 22px 22px 0 0; box-shadow: 0 -14px 30px -18px rgba(58, 51, 64, .32); padding: 12px 16px calc(10px + env(safe-area-inset-bottom)); font-variant-numeric: tabular-nums; }
	body .vc-barra-cesta-fila { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-height: 22px; }
	body .vc-barra-cesta-res { margin: 0; font-size: 13.5px; }
	body .vc-barra-cesta-res strong { font-weight: 700; }
	body .vc-barra-sep { color: var(--vk-muted); }
	body .vc-barra-gratis { font-weight: 700; color: var(--vk-green); }
	body .vc-barra-cesta-iva { margin: 0; font-size: 12.5px; color: var(--vk-muted); }
	body .vc-barra-cesta a.vc-tramitar { margin-top: 10px !important; height: 56px; }
	body.woocommerce-cart .vc-wa-float { bottom: 150px; }

	/* El cajón sube desde abajo y ocupa casi toda la pantalla */
	body .vc-cart-drawer { top: 48px; left: 0; right: 0; bottom: 0; width: 100%; border-radius: 24px 24px 0 0; box-shadow: 0 -20px 40px -20px rgba(30, 24, 36, .5); transform: translateY(102%); }
	body .vc-cart-drawer.open { transform: translateY(0); }
	body .vc-cajon-asa { display: block; flex: 0 0 100%; height: 5px; margin: -6px 0 2px; background: none; position: relative; }
	body .vc-cajon-asa::before { content: ""; position: absolute; left: 50%; top: 0; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: var(--vk-dot); }
	body .vc-cajon-cab { padding: 14px 16px 8px; }
	body .vc-cajon-t { font-size: 24px; }
	body .vc-cajon-fiesta { margin: 0 16px; }
	body .vc-cart-drawer .vc-cajon-lineas { margin-top: 2px; padding: 0 16px; }
	body .vc-cart-drawer ul.vc-cajon-lineas > li.vc-cajon-linea { padding: 14px 0 8px; }
	body .vc-cart-drawer a.remove.vc-cajon-quitar { min-height: 44px; }
	body .vc-cajon-pie { padding: 16px 16px calc(10px + env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) {
	body .vc-linea-cab { padding-left: 112px; }
	body .vc-cesta .vc-linea-foto { width: 100px; height: 100px; }
}
@media (prefers-reduced-motion: reduce) {
	body .vc-cart-drawer, body .vc-cart-overlay, body .vc-cupon-flecha { transition: none; }
}

/* Las tarjetas de «También te puede gustar» y la cesta van dentro del
   contenido de la página (.vc-page-content), que da márgenes y subrayados a
   p, h2, h3, ul y a: aquí se devuelven a los de la tienda. */
body .vc-cesta ul.vc-tj-grid { padding-left: 0; margin: 24px 0 0; display: grid; }
body .vc-cesta .vc-tj-grid li { line-height: inherit; }
body .vc-cesta .vc-tj-name { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.35; }
body .vc-cesta .vc-tj-name a { color: var(--vk-ink); text-decoration: none; }
body .vc-cesta .vc-tj-opt { margin: 8px 0 0; }
body .vc-cesta .vc-tj-desc { margin: 10px 0 0; }
body .vc-cesta .vc-tj-also { margin: 12px 0 0; }
body .vc-cesta a.vc-tj-btn { color: var(--accent-ink, #fff); text-decoration: none; font-weight: 700; }
body .vc-cesta .vc-tj-price { font-family: var(--font-display); }
@media (max-width: 720px) { body .vc-cesta-rel .vc-tj-grid > li:nth-child(n+3) { display: none; } }
/* WooCommerce pone un «clearfix» (::before/::after) en las líneas de sus
   listas de widget: en la rejilla del cajón ocuparían la celda de la foto. */
body .vc-cart-drawer .vc-cajon-linea::before,
body .vc-cart-drawer .vc-cajon-linea::after { content: none !important; display: none !important; }
body .vc-cart-drawer .vc-cajon-linea .vc-linea-foto img { width: 100% !important; height: 100% !important; float: none !important; margin: 0 !important; }
/* Ficha abierta desde «Editar» de la cesta (vc-product.js) */
.vc-editando { margin: 0 0 16px; padding: 10px 14px; border-radius: 12px; background: #E3F1EC; color: #1F4A3F; font-size: 14px; font-weight: 600; line-height: 1.45; }
