/* Carrito en cajón lateral derecho. Mismas variables --ml-* que el cajón del menú; sin sombras ni degradados. */
.cj {
	--ml-bg: #FFFFFF; --ml-ink: #0B0C0E; --ml-mute: #4B5058; --ml-line: #E4E5E8; --ml-card: #F4F4F5; --ml-acc: #CF4208; --ml-acc-ink: #FFFFFF; --ml-hov: #F0F1F3;
	position: fixed; z-index: 121; top: 0; bottom: 0; right: 0; width: min(440px, 100vw); max-width: 100vw; height: 100dvh; display: flex; flex-direction: column;
	background: var(--ml-bg); color: var(--ml-ink); font-family: 'Archivo', system-ui, sans-serif; font-size: 15px; line-height: 1.4; color-scheme: light;
	transform: translateX(100%); visibility: hidden; transition: transform .28s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .28s; overscroll-behavior: contain;
	padding-bottom: env(safe-area-inset-bottom);
}
html[data-theme="dark"] .cj {
	--ml-bg: #111214; --ml-ink: #F4F4F2; --ml-mute: #A5ABB3; --ml-line: #26292E; --ml-card: #1A1C20; --ml-hov: #1A1C20; color-scheme: dark;
}
.cj[hidden], .cj-velo[hidden] { display: none; }
.cj.is-abierto { transform: none; visibility: visible; transition-delay: 0s; }
.cj:focus { outline: none; }
.cj-velo { position: fixed; z-index: 120; inset: 0; background: rgba(11, 12, 14, .55); opacity: 0; transition: opacity .28s; }
.cj-velo.is-abierto { opacity: 1; }
body.cj-abierto { overflow: hidden; }
.admin-bar .cj { top: 32px; height: calc(100dvh - 32px); }
.cj *, .cj *::before, .cj *::after { box-sizing: border-box; }
.cj a { color: inherit; text-decoration: none; }
.cj :focus-visible { outline: 2px solid #FF5B14; outline-offset: 2px; border-radius: 8px; }

.cj__cab { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 14px 22px; min-height: 66px; border-bottom: 1px solid var(--ml-line); }
.cj__t { margin: 0; font-size: 20px; font-weight: 700; font-stretch: 112%; }
.cj__n { color: var(--ml-mute); font-weight: 600; }
.cj__x { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: inherit; cursor: pointer; border-radius: 50%; transition: background-color .2s; }
.cj__x:hover { background: var(--ml-hov); }

.cj__cuerpo { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; transition: opacity .2s; }
.cj__cuerpo.is-cargando { opacity: .55; pointer-events: none; }

.cj__envio { padding: 16px 22px 4px; }
.cj__envio-t { margin: 0 0 8px; font-weight: 600; font-size: 14px; }
.cj__barra { height: 4px; border-radius: 4px; background: var(--ml-line); overflow: hidden; }
.cj__barra i { display: block; height: 100%; background: var(--ml-acc); transform-origin: left; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }

.cj__lista { list-style: none; margin: 0; padding: 8px 22px; }
.cj__it { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--ml-line); }
.cj__foto { flex: none; width: 68px; height: 68px; border-radius: 12px; overflow: hidden; background: var(--ml-card); }
.cj__img { display: block; width: 68px; height: 68px; object-fit: cover; }
.cj__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cj__nom { font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
a.cj__nom:hover { text-decoration: underline; text-underline-offset: 3px; }
.cj__meta { color: var(--ml-mute); font-size: 13px; }
.cj__meta dl, .cj__meta dt, .cj__meta dd, .cj__meta p { display: inline; margin: 0; }
.cj__meta dt { font-weight: 600; }
.cj__meta dd::after { content: ""; display: block; }
.cj__precio { font-weight: 600; }
.cj__fila { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.cj__qty { display: inline-flex; align-items: center; border: 1px solid var(--ml-line); border-radius: 999px; }
.cj__qb { width: 44px; height: 44px; border: 0; background: transparent; color: inherit; font: 600 20px/1 'Archivo', system-ui, sans-serif; cursor: pointer; border-radius: 50%; }
.cj__qb:hover:not(:disabled) { background: var(--ml-hov); }
.cj__qb:disabled { color: var(--ml-mute); opacity: .45; cursor: default; }
.cj__qv { min-width: 28px; text-align: center; font-weight: 700; }
.cj__quitar { min-height: 44px; padding: 0 4px; border: 0; background: transparent; color: var(--ml-mute); font: 600 14px/1 'Archivo', system-ui, sans-serif; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.cj__quitar:hover { color: var(--ml-ink); }

.cj__cupon { padding: 4px 22px; }
.cj__cupon-b { min-height: 48px; padding: 0; border: 0; background: transparent; color: var(--ml-ink); font: 600 14px/1 'Archivo', system-ui, sans-serif; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.cj__cupon-f { display: flex; gap: 8px; margin-bottom: 4px; }
.cj__cupon-f input { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 1px solid var(--ml-line); border-radius: 999px; background: var(--ml-bg); color: var(--ml-ink); font: 500 15px 'Archivo', system-ui, sans-serif; text-transform: uppercase; }
.cj__cupon-f input::placeholder { text-transform: none; color: var(--ml-mute); }
.cj__cupon-ap { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; font-size: 14px; }
.cj__aviso { margin: 0; padding: 0 22px; min-height: 0; color: #B3261E; font-size: 14px; font-weight: 600; }
html[data-theme="dark"] .cj__aviso { color: #FF8A80; }
.cj__aviso:not(:empty) { padding-top: 8px; padding-bottom: 8px; }

.cj__pie { margin-top: auto; padding: 18px 22px 22px; border-top: 1px solid var(--ml-line); background: var(--ml-bg); }
.cj__sub { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cj__sub span { font-weight: 600; }
.cj__sub b { font-size: 26px; font-weight: 800; font-stretch: 112%; }
.cj__nota { margin: 6px 0 16px; color: var(--ml-mute); font-size: 13px; }
.cj__cta { display: flex; align-items: center; justify-content: center; height: 54px; padding: 0 26px; border-radius: 999px; background: #CF4208; color: #FFFFFF !important; font-weight: 700; font-size: 16px; box-shadow: none; transition: filter .2s; }
.cj__cta:hover { filter: brightness(1.08); }
.cj__seguir { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin-top: 8px; border: 0; background: transparent; color: var(--ml-mute); font: 600 14px/1 'Archivo', system-ui, sans-serif; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.cj__seguir:hover { color: var(--ml-ink); }
.cj__sec { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 1px solid var(--ml-line); border-radius: 999px; background: transparent; color: var(--ml-ink); font: 700 15px/1 'Archivo', system-ui, sans-serif; cursor: pointer; transition: background-color .2s; }
.cj__sec:hover { background: var(--ml-hov); }

.cj__vacio { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 32px 22px; }
.cj__vacio-t { margin: 0 0 8px; font-size: 22px; font-weight: 700; font-stretch: 112%; }
.cj__vacio .cj__cta, .cj__vacio .cj__sec { width: 100%; }

@media (prefers-reduced-motion: reduce) {
	.cj, .cj-velo, .cj__cuerpo, .cj__barra i, .cj__cta, .cj__sec, .cj__x { transition: none; }
}
