/* Hacienda La Laguna · carrito lateral */
.cesta-capa { position: fixed; inset: 0; z-index: 100; }
.cesta-capa[hidden] { display: none; }
.cesta-fondo { position: absolute; inset: 0; background: rgba(42, 38, 32, .5); opacity: 0; transition: opacity .25s ease; }
.cesta-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%);
  display: flex; flex-direction: column;
  background: var(--cal); color: var(--tinta);
  translate: 100% 0; transition: translate .26s cubic-bezier(.2, .8, .2, 1);
  box-shadow: -12px 0 40px rgba(42, 38, 32, .22);
}
.cesta-capa.abierta .cesta-fondo { opacity: 1; }
.cesta-capa.abierta .cesta-panel { translate: 0 0; }
@media (prefers-reduced-motion: reduce) { .cesta-fondo, .cesta-panel { transition: none; } }

.cesta-panel > .cesta-cab { display: flex; align-items: center; justify-content: space-between; padding: var(--e4) var(--e5); background: var(--salvia); }
.cesta-cerrar { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: inherit; cursor: pointer; border-radius: 50%; }
.cesta-cuerpo { flex: 1; overflow-y: auto; padding: var(--e5); display: grid; gap: var(--e5); align-content: start; }
.cesta-pie { padding: var(--e4) var(--e5) calc(var(--e4) + env(safe-area-inset-bottom)); display: grid; gap: var(--e3); box-shadow: 0 -1px 0 #CFCBBB; }
.cesta-pie:empty, .cesta-pie[hidden] { display: none; }
/* ZONAS-TIENDA (18/11/2026): codigo postal (y pais) en el pie, en una fila cada uno; el aviso debajo */
.cesta-cp { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px var(--e3); align-items: center; }
.cesta-cp-pais, .cesta-cp-campo { display: contents; }
.cesta-cp-pais[hidden] { display: none; }
.cesta-cp label { font-size: var(--t-s); font-weight: 600; }
.cesta-cp input, .cesta-cp select { width: 100%; min-width: 0; min-height: 44px; padding: 0 var(--e3); border: 1.5px solid var(--tinta); border-radius: 0; background: #fff; font: inherit; color: inherit; }
.cesta-cp-aviso { grid-column: 1 / -1; margin: 0; font-size: var(--t-s); color: #8A2B12; }   /* region viva: siempre presente, vacia si no hay aviso */
.cesta-cp-aviso.informa { color: var(--tinta); }   /* aviso de aduana de Canarias: informa, no es un error */
.cesta-pie .nota { margin: 0; }
.cesta-pie .totales { background: transparent; padding: 0; }
/* La portada no carga tienda.css: los totales del pie se maquetan aquí también (iguales que en tienda.css) */
.cesta-pie .totales { display: grid; gap: 6px; margin: 0; }
.cesta-pie .totales div { display: flex; justify-content: space-between; gap: var(--e4); }
.cesta-pie .totales div[hidden] { display: none; }
.cesta-pie .totales dt { font-weight: 400; }
.cesta-pie .totales dd { margin: 0; font-weight: 600; white-space: nowrap; }
.cesta-pie .totales .total { border-top: 1.5px solid var(--tinta); padding-top: 8px; margin-top: 4px; font-size: var(--t-l); }
.cesta-pie .totales .total dt { font-weight: 600; }
.cesta-pie .boton { width: 100%; }
.cesta-vacia { display: grid; gap: var(--e4); justify-items: start; padding-top: var(--e6); }
.cesta-vacia p { margin: 0; }

.cesta-lineas { list-style: none; margin: 0; padding: 0; display: grid; }
.cesta-lineas li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: var(--e4); padding: var(--e4) 0; border-bottom: 1px solid #D6D2C2; }
.cesta-lineas li:first-child { padding-top: 0; }
.cesta-lineas img, .cesta-sugerencia img { width: 64px; height: 64px; object-fit: contain; background: var(--salvia-claro); }
.l-info { display: grid; gap: 2px; justify-items: start; }
.l-info .l-desde { font-size: var(--t-xs); font-weight: 600; color: var(--tinta); }
.l-info .cantidad { margin-top: var(--e2); height: 44px; }
.l-info .cantidad button { height: 44px; width: 44px; }
.l-precio { display: grid; align-content: space-between; justify-items: end; white-space: nowrap; }
.l-quitar { border: 0; background: transparent; padding: 10px 0; font: inherit; font-size: var(--t-s); color: var(--pardo); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

.cesta-regalo label { display: flex; align-items: center; gap: 10px; font-weight: 600; min-height: 44px; cursor: pointer; }
.cesta-regalo input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--tinta); }
.regalo-mensaje { display: grid; gap: var(--e2); margin-top: var(--e2); }
.regalo-mensaje[hidden] { display: none; }
.regalo-mensaje label { font-weight: 400; min-height: 0; font-size: var(--t-s); }
.regalo-mensaje textarea { width: 100%; padding: var(--e3); border: 1.5px solid var(--tinta); border-radius: 0; background: #fff; font: inherit; color: inherit; resize: vertical; }
.regalo-mensaje .nota { margin: 0; }

.cesta-sugerencia { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: var(--e3); align-items: center; padding: var(--e3); background: var(--salvia-claro); }
.cesta-sugerencia img { width: 56px; height: 56px; background: transparent; }
.cesta-sugerencia div { display: grid; }

.cesta-ayuda { margin: 0; padding: var(--e3) var(--e4); background: #FFF3CC; border: 1px dashed #B58900; color: #5B4300; font-size: var(--t-s); }
