/* Sukalde · Pack a medida — colores de la web (verde #4b8e3d, Patua One en títulos)
 * 1.1.0 · opción H (Ander 06/11): la carta va debajo de foto + datos, a todo el ancho, en 3 columnas
 * (Primeros | Segundos | Postres); en móvil (≤ 768 px), pestañas y barra fija abajo con Packs + botón.
 * Sustituye a los desplegables (1.0.3) y a la rejilla de tarjetas (1.0.8).
 * 1.2.0: misma carta para el Menú del día; títulos con la letra de Sukalde · Tienda 2.0 si está (--sk-display). */
.skp, .skp-form, .skp-carta, body.skp-con-carta { --skp-verde: #4b8e3d; --skp-verde-claro: #eef5ec; --skp-rojo: #b3261e; --skp-linea: #e2e2e2;
	--skp-barra: 72px; }

/* Contenedor a todo el ancho (con y sin barra lateral de Astra). */
.skp-carta { clear: both; width: 100%; flex: 1 1 100%; grid-column: 1 / -1; margin: 1.5em 0 2em; box-sizing: border-box; }
.skp { width: 100%; font-size: 15px; line-height: 1.35; color: #222; box-sizing: border-box; }
.skp *, .skp *::before, .skp *::after { box-sizing: border-box; }

.skp-cab { margin: 0 0 1em; }
.skp-cab-fila { display: flex; align-items: baseline; justify-content: space-between; gap: .75em; flex-wrap: wrap; }
.skp .skp-titulo { font-family: var(--sk-display, "Patua One", Georgia, serif); font-weight: 400; font-size: 1.6em; line-height: 1.2; color: #333;
	margin: 0; padding: 0; text-transform: none; letter-spacing: 0; }
.skp-sub { margin: .3em 0 0; color: #555; font-size: .95em; line-height: 1.45; }
.skp-reset[hidden] { display: none !important; }
.skp .skp-reset { background: none !important; border: 0 !important; padding: 0 !important; color: var(--skp-verde) !important;
	text-decoration: underline; font-size: .9em; cursor: pointer; box-shadow: none !important; text-transform: none; letter-spacing: 0; }
.skp .skp-link { display: inline; background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; margin: 0;
	font: inherit; color: var(--skp-verde) !important; text-decoration: underline; cursor: pointer; text-transform: none; letter-spacing: 0; }

/* Contador «6 / 6»: gris; verde si cuadra; rojo si se pasa. Vale para columna, pestaña y píldora. */
.skp-cuenta, .skp-pil-n { font-family: "Open Sans", sans-serif; font-size: .8em; padding: .15em .7em; border-radius: 99px;
	background: #f3f3f3; color: #444; white-space: nowrap; }
.skp-ok > .skp-cuenta, .skp-ok .skp-gcab .skp-cuenta, .skp-ok > .skp-pil-n { background: var(--skp-verde); color: #fff; }
.skp-pasa > .skp-cuenta, .skp-pasa .skp-gcab .skp-cuenta, .skp-pasa > .skp-pil-n { background: var(--skp-rojo); color: #fff; }

/* Escritorio: carta a 3 columnas, sin acordeones. */
.skp-tabs { display: none; }
.skp-columnas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.skp-grupo { margin: 0; padding: 14px 16px 10px; min-width: 0; background: #fff; border: 1px solid var(--skp-linea); border-radius: 12px; }
.skp-gcab .skp-cuenta { display: none; } /* 1.2.0: el contador vivo va en las píldoras junto al botón */
.skp-gcab { display: flex; align-items: center; justify-content: space-between; gap: .75em; padding: 0 0 10px; margin: 0 0 4px;
	border-bottom: 1px solid var(--skp-linea); }
.skp-gtit { font-family: var(--sk-display, "Patua One", Georgia, serif); font-size: 1.2em; color: #333; }
.skp-filas { display: block; }
.skp-fila { display: flex; align-items: center; justify-content: space-between; gap: .75em; min-height: 40px; padding: 4px 6px;
	margin: 0 -6px; border-top: 1px solid #f2f2f2; border-radius: 6px; }
.skp-fila:first-child { border-top: 0; }
.skp-fila.skp-elegido { background: var(--skp-verde-claro); border-top-color: transparent; }
.skp-fila.skp-elegido + .skp-fila { border-top-color: transparent; }
.skp-fila.skp-elegido .skp-plato { font-weight: 700; }
.skp-plato { flex: 1 1 auto; min-width: 0; line-height: 1.25; }
.skp-ctrl { display: inline-flex; align-items: center; gap: .3em; flex: 0 0 auto; }
.skp .skp-btn { width: 30px; height: 30px; min-height: 0; padding: 0 !important; margin: 0; border-radius: 50% !important;
	border: 1px solid var(--skp-verde) !important; background: #fff !important; color: var(--skp-verde) !important;
	font-size: 18px; line-height: 1; font-weight: 600; cursor: pointer; box-shadow: none !important; }
.skp .skp-btn:hover:not(:disabled) { background: var(--skp-verde-claro) !important; }
.skp .skp-btn:disabled { opacity: .3; cursor: default; }
.skp .skp-n { width: 2.4em !important; height: 30px; text-align: center; padding: 0 !important; margin: 0 !important; background: #fff;
	border: 1px solid var(--skp-linea) !important; border-radius: 8px !important; font-size: 15px; -moz-appearance: textfield; }
.skp .skp-n::-webkit-outer-spin-button, .skp .skp-n::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.skp-aviso[hidden] { display: none !important; }
.skp-aviso { margin: 14px 0 0; padding: .55em .8em; border-radius: 10px; background: #fff4e5; color: #6b4100; font-weight: 600; }
.skp-aviso.skp-aviso-ok { background: var(--skp-verde-claro); color: var(--skp-verde); }
.skp-aviso:not(.skp-aviso-ok) { position: sticky; bottom: 8px; z-index: 5; box-shadow: 0 2px 8px rgba(0,0,0,.12); }

/* Columna estrecha (escritorio con barra lateral y pantallas medianas): menos aire, mismas 3 columnas. */
@media (max-width: 1100px) and (min-width: 769px) {
	.skp-columnas { gap: 12px; }
	.skp-grupo { padding: 12px 10px 8px; }
	.skp { font-size: 14px; }
}

/* Dentro del form.cart: píldoras vivas, «Nº de packs» y el botón con texto y precio. */
form.cart.skp-form, form.cart:has(.skp-pildoras) { display: flex; flex-wrap: wrap; align-items: center; gap: .6em; }
.skp-pildoras { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 .4em; }
.skp-form .skp-pildora { display: inline-flex; align-items: center; gap: .4em; padding: 4px 10px !important; margin: 0;
	background: #fff !important; color: #333 !important; border: 1px solid var(--skp-linea) !important; border-radius: 99px !important;
	font-size: 14px; font-weight: 400; line-height: 1.3; cursor: pointer; box-shadow: none !important; text-transform: none; letter-spacing: 0; min-height: 0; }
.skp-form .skp-pildora.skp-ok { border-color: var(--skp-verde) !important; }
.skp-form .skp-pildora.skp-pasa { border-color: var(--skp-rojo) !important; }
.skp-pil-ok { display: none; color: var(--skp-verde); font-weight: 700; }
.skp-pildora.skp-ok .skp-pil-ok { display: inline; }
.skp-qty-label { display: inline-block; margin-right: .5em; font-size: .9em; color: #555; vertical-align: middle; }
.skp-solo-movil { display: none; }
.skp-form .single_add_to_cart_button.skp-boton { width: auto; min-width: 0; text-indent: 0; font-size: 16px; white-space: nowrap; }
.skp-bt-corto { display: none; }
.single_add_to_cart_button.disabled, .single_add_to_cart_button:disabled { opacity: .45; cursor: not-allowed; }
.skp-qty-fija { display: inline-block; min-width: 2em; text-align: center; font-weight: 600; }

/* Móvil (≤ 768 px): pestañas con contador, una lista en una columna y barra fija abajo. */
@media (max-width: 768px) {
	.skp { font-size: 15px; }
	.skp-carta { margin: 1em 0 1.5em; }
	.skp-tabs { display: flex; gap: 6px; margin: 0 0 10px; position: sticky; top: 0; z-index: 6; background: #fff; padding: 6px 0; }
	.skp .skp-tab { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 48px; padding: 6px 4px !important;
		margin: 0; background: #fff !important; color: #333 !important; border: 1px solid var(--skp-linea) !important; border-radius: 10px !important;
		box-shadow: none !important; cursor: pointer; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 15px; line-height: 1.2; }
	.skp .skp-tab[aria-selected="true"] { border-color: var(--skp-verde) !important; background: var(--skp-verde-claro) !important; }
	.skp-tab-tit { font-family: var(--sk-display, "Patua One", Georgia, serif); }
	.skp-columnas { display: block; }
	.skp-grupo { display: none; padding: 4px 12px; }
	.skp-grupo.skp-activo { display: block; }
	.skp-gcab { display: none; }
	.skp-fila { min-height: 48px; }
	.skp .skp-btn { width: 40px; height: 40px; font-size: 20px; }
	.skp .skp-n { height: 40px; }
	.skp-aviso:not(.skp-aviso-ok) { bottom: calc(var(--skp-barra) + 8px); }

	/* Barra fija abajo: el form.cart entero (Packs [n] + «Añadir · 63,00 €»). */
	form.cart.skp-form { position: fixed; left: 0; right: 0; bottom: 0; z-index: 99; margin: 0 !important; flex-wrap: nowrap;
		padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: #fff; box-shadow: 0 -2px 12px rgba(0,0,0,.15); }
	form.cart.skp-form .skp-pildoras { display: none; }
	form.cart.skp-form .skp-qty-label { margin-right: .3em; }
	form.cart.skp-form .quantity { flex: 0 0 auto; margin: 0 !important; }
	form.cart.skp-form .single_add_to_cart_button.skp-boton { flex: 1 1 auto; margin: 0 !important; }
	.skp-solo-ancho, .skp-bt-largo { display: none; }
	.skp-solo-movil, .skp-bt-corto { display: inline; }
	/* Hueco para que la barra no tape la última fila ni el pie. */
	body.skp-con-carta { padding-bottom: calc(var(--skp-barra) + env(safe-area-inset-bottom, 0px)); }
}
