/* =============================================================================
   Los Caseros — Shop / WooCommerce (Fase 4)
   Product card · grid · badges · shop header · filtros modal · rieles · ofertas
   ============================================================================= */

/* Botón variantes extra (extienden .lc-btn de base.css) */
.lc-btn--sm { padding: 8px 16px; font-size: 12px; }
.lc-btn--block { width: 100%; }
.lc-btn--secondary {
	background: transparent;
	color: var(--lc-green-800);
	box-shadow: inset 0 0 0 1.5px var(--lc-green-800);
}
.lc-btn--secondary:hover { background: var(--lc-green-100); color: var(--lc-green-800); }

/* ============================ PRODUCT GRID =============================== */
.woocommerce ul.products,
ul.products.lc-product-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { content: none; }

@media (max-width: 980px) { .woocommerce ul.products, ul.products.lc-product-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (max-width: 760px)  { .woocommerce ul.products, ul.products.lc-product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

/* ============================ PRODUCT CARD ============================== */
.woocommerce ul.products li.product.lc-card,
li.product.lc-card {
	width: 100%;
	float: none;
	background: var(--lc-cream-50);
	border-radius: 18px;
	box-shadow: var(--lc-shadow-sm);
	overflow: hidden;
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
	transition: transform 220ms var(--lc-ease-organic), box-shadow 220ms var(--lc-ease);
}
li.product.lc-card .lc-card__link,
li.product.lc-card .lc-card__body,
li.product.lc-card .lc-card__action { width: 100%; }
li.product.lc-card::before { content: none; }
li.product.lc-card:hover { transform: translateY(-4px); box-shadow: var(--lc-shadow-lg); }

.lc-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	padding: 4px 11px;
	border-radius: var(--lc-radius-pill);
	font-size: 11px;
	font-weight: var(--lc-w-bold);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-family: var(--lc-font-body);
	line-height: 1.4;
}
.lc-badge--sale { background: var(--lc-sale); color: #fff; }
.lc-badge--out  { background: var(--lc-ink-900); color: var(--lc-cream-100); }
/* Sin stock pero se puede reservar: ámbar de marca, ni el rojo de oferta ni el negro de agotado. */
.lc-badge--backorder { background: var(--lc-warning); color: var(--lc-ink-900); }

.lc-card__link { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: inherit; }
.lc-card__media {
	aspect-ratio: 1 / 1;
	width: 100%;
	background: var(--lc-cream-200);
	overflow: hidden;
	position: relative;
}
.lc-card__media.is-oos { opacity: 0.55; }
.lc-card__media img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	display: block;
	margin: 0;
	transition: transform 320ms var(--lc-ease-organic);
}
li.product.lc-card:hover .lc-card__media img { transform: scale(1.05); }
.lc-card__ph { position: absolute; inset: 0; color: var(--lc-brown-500); display: flex; align-items: center; justify-content: center; }

.lc-card__body { padding: 14px 16px 8px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.lc-card__cat { font-size: 10px; color: var(--lc-green-700); text-transform: uppercase; letter-spacing: 0.12em; font-weight: var(--lc-w-semibold); font-family: var(--lc-font-body); }
.lc-card__name { font-size: 14px; font-weight: var(--lc-w-semibold); line-height: 1.3; color: var(--lc-ink-900); font-family: var(--lc-font-body); text-wrap: balance; min-height: 36px; margin: 0; }
.lc-card__price { margin-top: auto; padding-top: 8px; font-family: var(--lc-font-body); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.lc-card__price del { text-decoration: line-through; color: var(--lc-ink-300); font-weight: var(--lc-w-medium); font-size: 13px; opacity: 1; }
.lc-card__price ins { text-decoration: none; background: transparent; color: var(--lc-sale); font-weight: var(--lc-w-bold); font-size: 18px; }
.lc-card__price ins .amount { color: var(--lc-sale); }
.single-product div.product p.price ins .amount { color: var(--lc-sale); }
.lc-card__price > .amount { color: var(--lc-green-800); font-weight: var(--lc-w-bold); font-size: 18px; }
.lc-card__price del .amount { color: var(--lc-ink-300); }

.lc-card__action { padding: 0 16px 16px; }
.lc-card__action .lc-btn.added { opacity: 0.8; }
.lc-card__action .added_to_cart { display: none; }

/* ========================= CHIPS DE CATEGORÍAS ========================= */
/* Franja full-width bajo el menú, con separador inferior (como en el diseño). */
.lc-shop-catbar {
	border-bottom: 1px solid var(--lc-border);
	padding: 16px 0;
}
.lc-shop-chips {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin: 0;
}
.lc-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 16px;
	border-radius: var(--lc-radius-pill);
	border: 1px solid var(--lc-border-strong);
	background: var(--lc-cream-50);
	color: var(--lc-ink-700);
	font-family: var(--lc-font-body);
	font-size: 13px;
	font-weight: var(--lc-w-semibold);
	text-decoration: none;
	white-space: nowrap;
	box-shadow: var(--lc-shadow-xs);
	transition: background var(--lc-dur-fast) var(--lc-ease), color var(--lc-dur-fast) var(--lc-ease), border-color var(--lc-dur-fast) var(--lc-ease), transform var(--lc-dur-fast) var(--lc-ease);
}
.lc-chip:hover { border-color: var(--lc-green-500); color: var(--lc-green-800); transform: translateY(-1px); }
.lc-chip.is-active { background: var(--lc-green-800); border-color: var(--lc-green-800); color: var(--lc-cream-100); }
.lc-chip.is-active:hover { color: var(--lc-cream-100); }

/* Chip "En oferta" (toggle de filtro, junto a "Todos"): rojo del badge ¡Oferta!. */
.lc-chip--sale {
	cursor: pointer;
	color: var(--lc-sale);
	border-color: currentColor;
}
.lc-chip--sale:hover { border-color: var(--lc-sale); color: var(--lc-sale); background: var(--lc-cream-100); transform: translateY(-1px); }
.lc-chip--sale.is-active,
.lc-chip--sale.is-active:hover { background: var(--lc-sale); border-color: var(--lc-sale); color: var(--lc-cream-100); }

/* Segunda fila contextual: subcategorías de la categoría actual.
   Lucen "hijas" del nivel 1: tinte verde suave sin borde (vs. pill crema
   con borde del nivel principal); activo en verde más claro que el nivel 1. */
.lc-shop-chips--sub {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px dashed var(--lc-border);
}
.lc-chip--sub {
	padding: 7px 14px;
	font-size: 12px;
	box-shadow: none;
	border-color: transparent;
	background: var(--lc-green-100);
	color: var(--lc-green-800);
}
.lc-chip--sub:hover {
	border-color: transparent;
	background: var(--lc-green-200);
	color: var(--lc-green-900);
}
.lc-chip--sub.is-active {
	background: var(--lc-green-700);
	border-color: var(--lc-green-700);
	color: var(--lc-cream-100);
}

/* Aire entre la franja de categorías y el header del catálogo. */
.archive.woocommerce #primary,
.post-type-archive-product #primary { padding-top: 40px; }

/* ============================ PAGINACIÓN ================================ */
/* Paginación nativa de Woo vestida on-brand: pills, verde activo, flechas Lucide. */
.woocommerce-pagination { margin-top: 44px; text-align: center; }
.woocommerce-pagination ul.page-numbers {
	display: inline-flex;
	align-items: center;
	/* Con muchas páginas las pills sumaban más que el ancho del móvil y empujaban
	   la página a lo ancho. Ahora bajan de línea en vez de desbordar. */
	flex-wrap: wrap;
	justify-content: center;
	max-width: 100%;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
	border: 0;
}
.woocommerce-pagination ul.page-numbers li { margin: 0; border: 0; }
.woocommerce-pagination .page-numbers li .page-numbers,
.woocommerce-pagination a.page-numbers,
.woocommerce-pagination span.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 13px;
	border-radius: var(--lc-radius-pill);
	border: 1px solid var(--lc-border-strong);
	background: var(--lc-cream-50);
	color: var(--lc-ink-700);
	font-family: var(--lc-font-body);
	font-size: 14px;
	font-weight: var(--lc-w-semibold);
	text-decoration: none;
	box-shadow: var(--lc-shadow-xs);
	transition: background var(--lc-dur-fast) var(--lc-ease), color var(--lc-dur-fast) var(--lc-ease), border-color var(--lc-dur-fast) var(--lc-ease), transform var(--lc-dur-fast) var(--lc-ease);
}
.woocommerce-pagination a.page-numbers:hover { border-color: var(--lc-green-500); color: var(--lc-green-800); transform: translateY(-1px); }
.woocommerce-pagination span.page-numbers.current { background: var(--lc-green-800); border-color: var(--lc-green-800); color: var(--lc-cream-100); }
.woocommerce-pagination span.page-numbers.dots { border: 0; background: transparent; box-shadow: none; }
.woocommerce-pagination .page-numbers .lc-icon { display: block; }

@media (max-width: 760px) {
	.lc-shop-chips {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		margin-inline: calc(-1 * var(--lc-space-6));
		padding-inline: var(--lc-space-6);
	}
	.lc-shop-chips::-webkit-scrollbar { display: none; }
}

/* ============================ SHOP HEADER =============================== */
.lc-shop-head { margin-bottom: 32px; }
.lc-shop-head__sub { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: var(--lc-w-semibold); color: var(--lc-green-700); font-family: var(--lc-font-body); }
.lc-shop-head__title { font-family: var(--lc-font-display); font-weight: 400; font-size: clamp(34px, 4vw, 46px); color: var(--lc-green-800); margin: 6px 0; letter-spacing: 0; line-height: 1.05; }
.lc-shop-head__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.lc-shop-count { font-size: 14px; color: var(--lc-ink-500); font-family: var(--lc-font-body); }
.lc-shop-count b { color: var(--lc-ink-900); font-weight: var(--lc-w-bold); }

.lc-filtros-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--lc-font-body);
	font-size: 13px;
	font-weight: var(--lc-w-semibold);
	color: var(--lc-green-800);
	background: var(--lc-cream-50);
	border: 1px solid var(--lc-border-strong);
	border-radius: var(--lc-radius-pill);
	padding: 9px 16px;
	cursor: pointer;
	box-shadow: var(--lc-shadow-xs);
	transition: background var(--lc-dur-fast) var(--lc-ease), color var(--lc-dur-fast) var(--lc-ease), border-color var(--lc-dur-fast) var(--lc-ease);
}
.lc-filtros-btn.is-active { background: var(--lc-green-800); color: var(--lc-cream-100); border-color: var(--lc-green-800); }
.lc-filtros-btn__count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--lc-radius-pill); background: var(--lc-cream-50); color: var(--lc-green-800); font-size: 11px; font-weight: var(--lc-w-extrabold); display: none; align-items: center; justify-content: center; }
.lc-filtros-btn.is-active .lc-filtros-btn__count { display: inline-flex; }

/* Empty state */
.lc-shop-empty { background: var(--lc-cream-50); border-radius: 18px; padding: 60px; text-align: center; color: var(--lc-ink-500); font-family: var(--lc-font-body); }
.lc-shop-empty__icon { color: var(--lc-ink-300); margin-bottom: 12px; display: inline-flex; }
.lc-shop-empty__title { font-size: 16px; font-weight: var(--lc-w-semibold); color: var(--lc-ink-900); }

/* ============================ FILTROS MODAL ============================ */
.lc-filter-overlay {
	position: fixed;
	inset: 0;
	z-index: 1000;
	background: rgba(27, 26, 18, 0.45);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.lc-filter-overlay.is-open { display: flex; }
.lc-filter-dialog {
	width: 100%;
	max-width: 440px;
	background: var(--lc-cream-50);
	border-radius: 20px;
	border: 1px solid var(--lc-border);
	box-shadow: 0 24px 60px rgba(60, 38, 3, 0.28);
	font-family: var(--lc-font-body);
	overflow: hidden;
	transform: translateY(12px) scale(0.985);
	transition: transform 200ms var(--lc-ease-organic);
}
.lc-filter-overlay.is-open .lc-filter-dialog { transform: none; }
.lc-filter__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--lc-divider); }
.lc-filter__head h3 { margin: 0; font-size: 18px; font-weight: var(--lc-w-extrabold); color: var(--lc-green-800); display: inline-flex; align-items: center; gap: 10px; }
/* padding:0 + tamaño svg explícito: el reset de Woo mete padding y base.css
   (svg max-width:100%) recorta el icono — mismo fix que los nav de sliders. */
.lc-filter__close { width: 36px; height: 36px; padding: 0; border-radius: var(--lc-radius-pill); border: 1px solid var(--lc-border); background: var(--lc-cream-100); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--lc-ink-700); }
.lc-filter__close svg { width: 18px; height: 18px; }
.lc-filter__close:hover { color: var(--lc-green-800); border-color: var(--lc-green-500); }
.lc-filter__body { padding: 24px; }
.lc-filter__label { font-size: 13px; font-weight: var(--lc-w-bold); color: var(--lc-ink-900); margin-bottom: 14px; }
.lc-filter__group { margin-bottom: 28px; }
.lc-filter__group:last-child { margin-bottom: 0; }

.lc-dualrange { position: relative; height: 34px; margin: 0 6px 16px; }
.lc-dualrange .lc-track, .lc-dualrange .lc-fill { position: absolute; top: 15px; height: 4px; border-radius: var(--lc-radius-pill); }
.lc-dualrange .lc-track { left: 0; right: 0; background: var(--lc-border); }
.lc-dualrange .lc-fill { background: var(--lc-green-800); }
.lc-dualrange input[type=range] { position: absolute; top: 0; left: 0; width: 100%; height: 34px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.lc-dualrange input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: var(--lc-cream-50); border: 2px solid var(--lc-green-800); box-shadow: 0 1px 4px rgba(60, 38, 3, 0.3); cursor: pointer; }
.lc-dualrange input[type=range]::-moz-range-thumb { pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: var(--lc-cream-50); border: 2px solid var(--lc-green-800); box-shadow: 0 1px 4px rgba(60, 38, 3, 0.3); cursor: pointer; }
.lc-dualrange input[type=range]::-webkit-slider-runnable-track { background: none; border: none; }
.lc-dualrange input[type=range]::-moz-range-track { background: none; border: none; }

.lc-price-fields { display: flex; align-items: flex-end; gap: 14px; }
.lc-price-field { flex: 1; }
.lc-price-field span.lc-pf-label { display: block; font-size: 11px; color: var(--lc-ink-500); margin-bottom: 6px; font-weight: var(--lc-w-semibold); }
.lc-price-field__input { display: flex; align-items: center; gap: 6px; border: 1px solid var(--lc-border-strong); border-radius: 12px; padding: 10px 12px; background: var(--lc-cream-50); }
.lc-price-field__input span { font-size: 13px; color: var(--lc-ink-300); font-weight: var(--lc-w-semibold); }
.lc-price-field__input input { border: 0; outline: none; background: transparent; width: 100%; font-family: var(--lc-font-body); font-size: 14px; font-weight: var(--lc-w-bold); color: var(--lc-ink-900); min-width: 0; }
.lc-price-sep { flex: 0 0 auto; height: 1px; width: 14px; background: var(--lc-border-strong); margin-bottom: 19px; }

.lc-stock-seg { display: flex; gap: 8px; background: var(--lc-cream-100); padding: 4px; border-radius: var(--lc-radius-pill); border: 1px solid var(--lc-border); }
.lc-stock-seg button { flex: 1; padding: 9px 8px; border-radius: var(--lc-radius-pill); border: 0; cursor: pointer; font-family: var(--lc-font-body); font-size: 13px; font-weight: var(--lc-w-semibold); background: transparent; color: var(--lc-ink-500); transition: background 0.15s ease, color 0.15s ease; }
.lc-stock-seg button.is-active { background: var(--lc-green-800); color: var(--lc-cream-50); }

.lc-filter__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--lc-divider); background: var(--lc-cream-100); }
.lc-filter__clear { border: 0; background: none; cursor: pointer; font-family: var(--lc-font-body); font-size: 13px; font-weight: var(--lc-w-semibold); color: var(--lc-ink-500); text-decoration: underline; text-underline-offset: 3px; padding: 6px; }
.lc-filter__apply { border: 0; background: var(--lc-green-800); color: var(--lc-cream-50); cursor: pointer; font-family: var(--lc-font-body); font-size: 14px; font-weight: var(--lc-w-bold); border-radius: var(--lc-radius-pill); padding: 12px 26px; box-shadow: 0 2px 8px rgba(30, 91, 12, 0.25); }

/* ============================== RIELES ================================== */
.lc-rail-section { padding: 56px 0 8px; background: var(--lc-cream-100); }
.lc-rail-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; gap: 16px; }
.lc-rail-head__eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: var(--lc-w-semibold); color: var(--lc-green-700); font-family: var(--lc-font-body); }
.lc-rail-head__title { font-family: var(--lc-font-body); font-weight: var(--lc-w-extrabold); font-size: 32px; color: var(--lc-green-800); margin: 6px 0 0; letter-spacing: -0.01em; white-space: nowrap; }
.lc-rail-nav { display: flex; gap: 8px; }
.lc-rail-nav button { width: 40px; height: 40px; padding: 0; border-radius: var(--lc-radius-pill); border: 1px solid var(--lc-border-strong); background: var(--lc-cream-50); cursor: pointer; color: var(--lc-green-800); display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--lc-shadow-sm); transition: background var(--lc-dur-fast) var(--lc-ease), border-color var(--lc-dur-fast) var(--lc-ease), color var(--lc-dur-fast) var(--lc-ease); }
.lc-rail-nav button:hover { background: var(--lc-green-800); border-color: var(--lc-green-800); color: var(--lc-cream-50); }
/* El padding heredado del reset de button dejaba el área de contenido en ~8px y
   max-width:100% (base.css) recortaba el icono. Con padding:0 el chevron se aprecia. */
.lc-rail-nav button svg { width: 22px; height: 22px; }
.lc-rail {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 12px;
	margin-bottom: -12px;
	list-style: none;
	margin-left: 0;
	padding-left: 0;
}
.lc-rail > li.product.lc-card {
	flex: 0 0 250px;
	width: 250px;
	margin: 0; /* anula el margin 3.8% que WooCommerce aplica a li.product (inflaba el gap del riel) */
	float: none;
	scroll-snap-align: start;
}
/* En páginas WooCommerce (tienda/búsqueda) el riel debe seguir horizontal: la regla
   `.woocommerce ul.products` (grid) + `width:100%` de la card le ganaban en especificidad. */
.woocommerce ul.products.lc-rail { display: flex; }
.woocommerce ul.products.lc-rail > li.product.lc-card { flex: 0 0 250px; width: 250px; margin: 0; }

/* =========================== OFERTAS DEL MES =========================== */
.lc-offers {
	padding: 64px 0;
	position: relative;
	overflow: hidden;
	background: linear-gradient(180deg, #0E3A05 0%, #0E3A05 26%, #1E5B0C 36%, #FBF6EC 70%, #FBF6EC 100%);
}
/* El contenido va por encima de la decoración (vines + hoja grande). */
.lc-offers > .lc-container { position: relative; z-index: 1; }
.lc-offers__bigleaf { position: absolute; top: -60px; right: -40px; opacity: 0.10; transform: rotate(28deg); pointer-events: none; z-index: 0; }

/* Cortina de ramas colgantes que se mecen (franja superior). */
.lc-vines { position: absolute; top: 0; left: 0; right: 0; height: 150px; pointer-events: none; z-index: 0; overflow: hidden; }
.lc-vines .lc-vine { position: absolute; top: 0; transform-origin: top center; will-change: transform; }
@keyframes lc-sway-a { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes lc-sway-b { 0%, 100% { transform: rotate(3deg); } 50% { transform: rotate(-5deg); } }
@keyframes lc-sway-c { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(2deg); } }
@media (max-width: 980px) { .lc-vines { display: none; } }
@media (prefers-reduced-motion: reduce) { .lc-vines .lc-vine { animation: none !important; transform: rotate(0deg); } }
.lc-offers__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; position: relative; z-index: 1; }
.lc-offers__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em; font-weight: var(--lc-w-bold); color: var(--lc-accent-ink, #1B1A12); font-family: var(--lc-font-body); padding: 7px 14px; border-radius: var(--lc-radius-pill); background: var(--lc-warning); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22); }
.lc-offers__eyebrow .lc-icon { fill: #1B1A12; }
.lc-offers__title { font-family: var(--lc-font-display); font-weight: 400; font-size: clamp(40px, 5.4vw, 64px); color: var(--lc-cream-100); margin: 14px 0 0; letter-spacing: -0.02em; line-height: 1; text-wrap: balance; }
.lc-offers__title span { color: var(--lc-warning); display: block; }

.lc-countdown__label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: var(--lc-w-bold); color: rgba(251, 246, 236, 0.72); font-family: var(--lc-font-body); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.lc-countdown__dot { display: inline-block; width: 8px; height: 8px; border-radius: var(--lc-radius-pill); background: var(--lc-warning); box-shadow: 0 0 0 4px rgba(200, 134, 29, 0.22); }
.lc-countdown__boxes { display: flex; gap: 10px; }
.lc-countdown__box { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.lc-countdown__num { background: rgba(251, 246, 236, 0.10); border: 1px solid rgba(251, 246, 236, 0.20); border-radius: 12px; padding: 10px 12px; min-width: 56px; text-align: center; font-family: var(--lc-font-body); font-variant-numeric: tabular-nums; font-size: 26px; font-weight: var(--lc-w-extrabold); color: var(--lc-cream-100); line-height: 1; }
.lc-countdown__unit { font-family: var(--lc-font-body); font-size: 10px; font-weight: var(--lc-w-semibold); color: rgba(251, 246, 236, 0.66); text-transform: uppercase; letter-spacing: 0.12em; }

.lc-offers__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: stretch; position: relative; z-index: 1; }
/* Grupos repetidos (5+ productos en oferta): cada bloque de 1 grande + 3 minis se apila. */
.lc-offers__grid + .lc-offers__grid { margin-top: 24px; }
.lc-offers__side { display: grid; grid-template-columns: 1fr; gap: 16px; }

.lc-offer-hero { position: relative; background: var(--lc-cream-50); border-radius: 28px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32); min-height: 420px; }
.lc-offer-hero__copy { padding: 36px 36px 32px; display: flex; flex-direction: column; font-family: var(--lc-font-body); }
.lc-offer-hero__tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: var(--lc-w-bold); color: var(--lc-green-800); align-self: flex-start; padding: 5px 10px; border-radius: var(--lc-radius-pill); background: var(--lc-green-100); margin-bottom: 16px; }
.lc-offer-hero__cat { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: var(--lc-w-semibold); color: var(--lc-ink-500); margin-bottom: 6px; }
.lc-offer-hero__title { font-family: var(--lc-font-display); font-weight: 400; font-size: clamp(28px, 3vw, 38px); color: var(--lc-ink-900); margin: 0 0 14px; line-height: 1.05; letter-spacing: -0.01em; text-wrap: balance; }
.lc-offer-hero__desc { font-size: 14.5px; line-height: 1.55; color: var(--lc-ink-700); margin: 0 0 22px; max-width: 420px; }
.lc-offer-hero__pricebox { display: flex; flex-direction: column; gap: 8px; padding: 16px 22px; background: linear-gradient(120deg, var(--lc-warning) 0%, var(--lc-sale) 120%); color: #FFFDF8; border-radius: 18px; margin-bottom: 22px; box-shadow: 0 10px 22px rgba(181, 57, 28, 0.22); align-self: flex-start; }
.lc-offer-hero__save { font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; opacity: 0.92; font-weight: var(--lc-w-bold); }
.lc-offer-hero__price { font-size: 40px; font-weight: var(--lc-w-extrabold); line-height: 1; letter-spacing: -0.02em; }
.lc-offer-hero__old { font-size: 17px; text-decoration: line-through; opacity: 0.72; font-weight: var(--lc-w-medium); }
.lc-offer-hero__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.lc-offer-hero__image { position: relative; background: var(--lc-green-900); overflow: hidden; }
.lc-offer-hero__image img { width: 100%; height: 100%; object-fit: cover; }
.lc-offer-hero__burst { position: absolute; top: 22px; right: 22px; width: 96px; height: 96px; border-radius: var(--lc-radius-pill); background: var(--lc-warning); color: #1B1A12; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32); transform: rotate(-8deg); border: 3px solid #FFFDF8; font-family: var(--lc-font-display); }
.lc-offer-hero__burst b { font-size: 28px; line-height: 1; letter-spacing: -0.03em; }
.lc-offer-hero__burst span { font-size: 10px; margin-top: 2px; font-family: var(--lc-font-body); font-weight: var(--lc-w-bold); text-transform: uppercase; letter-spacing: 0.10em; }

.lc-offer-mini { position: relative; background: var(--lc-cream-50); border-radius: 20px; overflow: hidden; display: grid; grid-template-columns: 50% minmax(0, 1fr); text-decoration: none; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18); transition: transform 220ms var(--lc-ease-organic), box-shadow 220ms; min-height: 120px; }
.lc-offer-mini:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28); }
.lc-offer-mini__img { background: var(--lc-green-900); overflow: hidden; position: relative; }
.lc-offer-mini__img img { width: 100%; height: 100%; object-fit: cover; }
.lc-offer-mini__ribbon { position: absolute; top: 10px; left: -28px; background: var(--lc-warning); color: #1B1A12; font-weight: var(--lc-w-extrabold); font-size: 11px; letter-spacing: 0.04em; padding: 3px 32px; transform: rotate(-32deg); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.20); }
.lc-offer-mini__body { padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; }
.lc-offer-mini__cat { font-size: 10px; text-transform: uppercase; letter-spacing: 0.10em; font-weight: var(--lc-w-bold); color: var(--lc-green-700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-offer-mini__name { font-size: 14px; font-weight: var(--lc-w-bold); color: var(--lc-ink-900); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lc-offer-mini__prices { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.lc-offer-mini__price { font-size: 17px; font-weight: var(--lc-w-extrabold); color: var(--lc-green-800); }
.lc-offer-mini__old { font-size: 12px; color: var(--lc-ink-300); text-decoration: line-through; }
.lc-offers__all { padding-top: 40px; display: flex; justify-content: center; position: relative; z-index: 1; }

@media (max-width: 760px) {
	.lc-offers__grid { grid-template-columns: 1fr; }
	.lc-offer-hero { grid-template-columns: 1fr; }
	.lc-offer-hero__image { order: 0; min-height: 280px; aspect-ratio: 4/3; }
	.lc-offer-hero__copy { order: 1; }
	.lc-rail-head__title { font-size: 26px; white-space: normal; }
}

/* =============================================================================
   WooCommerce — páginas (single, cart, checkout, account): skin de marca
   ============================================================================= */

/* Botones de WooCommerce → pill verde de marca */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce .single_add_to_cart_button {
	background: var(--lc-green-800);
	color: var(--lc-cream-100);
	border: 0;
	border-radius: var(--lc-radius-pill);
	font-family: var(--lc-font-body);
	font-weight: var(--lc-w-semibold);
	font-size: 14px;
	padding: 12px 26px;
	box-shadow: var(--lc-shadow-sm);
	transition: background var(--lc-dur-fast) var(--lc-ease), box-shadow var(--lc-dur-base) var(--lc-ease);
	text-transform: none;
	cursor: pointer;
}
.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce .single_add_to_cart_button:hover {
	background: var(--lc-green-900);
	color: var(--lc-cream-100);
	box-shadow: var(--lc-shadow-md);
}

/* Notices (mensajes / info / error) — flex: texto + botón, alto adaptable */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	padding: 16px 24px;
	border-top-color: var(--lc-green-700);
	background: var(--lc-cream-50);
	border-radius: 14px;
	box-shadow: var(--lc-shadow-sm);
	font-family: var(--lc-font-body);
	color: var(--lc-ink-900);
	line-height: 1.4;
}
/* Icono centrado verticalmente con el nuevo padding. */
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before { top: 50%; left: 22px; transform: translateY(-50%); margin: 0; }
.woocommerce-message::before { color: var(--lc-green-700); }
.woocommerce-info::before { color: var(--lc-green-800); }
.woocommerce-error { border-top-color: var(--lc-sale); }
/* El botón "Ver carrito" va a la derecha y el box crece en alto para contenerlo. */
.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
	order: 2;
	float: none;
	margin: 0 0 0 auto;
	flex-shrink: 0;
}

/* Campos de formulario */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce .quantity input.qty,
.woocommerce-cart table.cart td.actions .coupon .input-text,
.select2-container--default .select2-selection--single {
	border: 1px solid var(--lc-border-strong);
	border-radius: 12px;
	background: var(--lc-cream-50);
	font-family: var(--lc-font-body);
	color: var(--lc-ink-900);
	padding: 10px 12px;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
	border-color: var(--lc-green-500);
	box-shadow: var(--lc-shadow-focus);
	outline: none;
}
.woocommerce .quantity input.qty { width: 64px; text-align: center; }

/* =============================================================================
   Ficha de producto (PDP) — layout on-brand a 2 columnas
   ============================================================================= */
.lc-single { margin: 0; padding: 8px 0 8px; }

/* Breadcrumb */
.lc-pdp-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--lc-ink-500); margin: 0 0 24px; }
.lc-pdp-breadcrumb a { color: var(--lc-ink-500); text-decoration: none; transition: color var(--lc-dur-fast) var(--lc-ease); }
.lc-pdp-breadcrumb a:hover { color: var(--lc-green-800); }
.lc-pdp-breadcrumb a:visited { color: var(--lc-ink-500); }
.lc-pdp-breadcrumb__sep { display: inline-flex; color: var(--lc-ink-300); }
.lc-pdp-breadcrumb__current { color: var(--lc-ink-700); font-weight: var(--lc-w-semibold); }

/* Grid principal */
.lc-pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }

/* Galería — burbuja orgánica (como el hero) */
.lc-pdp__media { position: sticky; top: 100px; }
.lc-pdp__media > .lc-badge { position: absolute; top: 16px; left: 16px; z-index: 3; }
.lc-pdp__bubble {
	position: relative;
	aspect-ratio: 1 / 1;             /* contenedor cuadrado → la máscara ovoide es estable */
	background: var(--lc-cream-200);
	border: 1px solid var(--lc-border);
	border-radius: 42% 58% 56% 44% / 48% 46% 54% 52%;
	padding: 6px;                    /* aro crema mínimo alrededor de la foto */
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	box-shadow: 0 18px 44px rgba(60, 38, 3, 0.10);
}
/* La foto LLENA la forma (object-fit: cover) y adopta el óvalo como máscara.
   Con imágenes cuadradas (1200×1200) se ve perfecta; con cualquier otro ratio
   recorta al centro sin dejar huecos. */
.lc-pdp__bubble .lc-pdp__img,
.lc-pdp__bubble img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 42% 58% 56% 44% / 48% 46% 54% 52%;
	display: block;
}
.lc-pdp__bubble.is-oos img { filter: grayscale(0.55) opacity(0.72); }
.lc-pdp__ph { color: var(--lc-green-500); opacity: 0.6; }

.lc-pdp__thumbs { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.lc-pdp__thumb { width: 70px; height: 70px; border-radius: 14px; border: 1px solid var(--lc-border); background: var(--lc-cream-100); overflow: hidden; padding: 0; cursor: pointer; transition: border-color var(--lc-dur-fast) var(--lc-ease); }
.lc-pdp__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lc-pdp__thumb.is-active { border-color: var(--lc-green-700); border-width: 2px; }

/* Zoom / lightbox (PhotoSwipe) */
.lc-pdp__bubble.is-zoomable { cursor: zoom-in; }
.lc-pdp__bubble img { transition: transform 0.5s var(--lc-ease); }
.lc-pdp__bubble.is-zoomable:hover img { transform: scale(1.06); }
.lc-pdp__zoom {
	position: absolute;
	right: 7%;
	bottom: 7%;
	z-index: 3;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--lc-radius-pill);
	background: rgba(251, 246, 236, 0.92);
	color: var(--lc-green-800);
	border: 1px solid var(--lc-border);
	box-shadow: var(--lc-shadow-md);
	opacity: 0;
	transform: translateY(6px);
	transition: opacity var(--lc-dur-fast) var(--lc-ease), transform var(--lc-dur-fast) var(--lc-ease);
	pointer-events: none;
}
.lc-pdp__bubble:hover .lc-pdp__zoom { opacity: 1; transform: translateY(0); }

/* Resumen */
.lc-pdp__eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: var(--lc-w-bold); letter-spacing: 0.04em; text-transform: uppercase; color: var(--lc-green-700); margin-bottom: 12px; }
.lc-pdp__title { font-family: var(--lc-font-display); font-weight: 400; font-size: clamp(30px, 4vw, 46px); color: var(--lc-green-800); line-height: 1.06; letter-spacing: -0.01em; margin: 0 0 16px; }
/* Precio (PDP) — composición jerárquica con descuento + ahorro */
.lc-pdp__price { margin-bottom: 22px; font-family: var(--lc-font-body); }
.lc-price__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lc-price__now { font-size: clamp(30px, 4vw, 40px); font-weight: var(--lc-w-extrabold); line-height: 1; letter-spacing: -0.01em; }
.lc-price.is-sale .lc-price__now { color: var(--lc-sale); }
.lc-price:not(.is-sale) .lc-price__now { color: var(--lc-green-800); }
.lc-price__now .amount,
.lc-price__now .woocommerce-Price-amount { color: inherit; font-weight: inherit; }

/* Pill de descuento (reusa el rojo del badge ¡Oferta!) */
.lc-price__off {
	display: inline-flex;
	align-items: center;
	height: 26px;
	padding: 0 11px;
	border-radius: var(--lc-radius-pill);
	background: var(--lc-sale);
	color: #fff;
	font-size: 13px;
	font-weight: var(--lc-w-extrabold);
	letter-spacing: 0.01em;
	box-shadow: 0 3px 10px rgba(183, 51, 28, 0.28);
}

/* Subfila: precio anterior tachado + ahorro */
.lc-price__sub { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 9px; }
.lc-price__was { font-size: 17px; font-weight: var(--lc-w-semibold); color: var(--lc-ink-500); text-decoration: line-through; text-decoration-color: var(--lc-sale); text-decoration-thickness: 2px; text-underline-offset: 1px; }
.lc-price__save { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: var(--lc-w-bold); color: var(--lc-green-700); }
.lc-price__save svg { color: var(--lc-green-600, var(--lc-green-700)); flex-shrink: 0; }
.lc-pdp__excerpt { color: var(--lc-ink-700); font-size: 16px; line-height: var(--lc-lh-relaxed); margin-bottom: 22px; }
.lc-pdp__excerpt p { margin: 0; }

/* Chips de beneficios */
.lc-pdp__chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 26px; padding: 0; }
.lc-pdp__chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--lc-radius-pill); background: var(--lc-cream-200); border: 1px solid var(--lc-border); font-size: 13px; font-weight: var(--lc-w-semibold); color: var(--lc-ink-700); }
.lc-pdp__chip svg { color: var(--lc-green-700); flex-shrink: 0; }

/* Compra: stepper + añadir */
.lc-pdp__buy { display: flex; align-items: stretch; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.lc-pdp-qty { display: inline-flex; align-items: center; border: 1px solid var(--lc-border); border-radius: var(--lc-radius-pill); background: var(--lc-cream-50); overflow: hidden; }
.lc-pdp-qty__btn { width: 46px; height: 52px; display: inline-flex; align-items: center; justify-content: center; background: none; border: none; padding: 0; color: var(--lc-green-800); cursor: pointer; transition: background var(--lc-dur-fast) var(--lc-ease); }
.lc-pdp-qty__btn:hover { background: var(--lc-cream-200); }
.lc-pdp-qty__btn svg { width: 18px; height: 18px; }
.lc-pdp-qty__input { width: 44px; height: 52px; text-align: center; border: none; background: none; font-family: var(--lc-font-body); font-weight: var(--lc-w-bold); font-size: 16px; color: var(--lc-ink-900); -moz-appearance: textfield; }
.lc-pdp-qty__input::-webkit-outer-spin-button,
.lc-pdp-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.lc-pdp-add { flex: 1; min-width: 200px; min-height: 52px; font-size: 16px; }
.lc-pdp-add svg { width: 18px; height: 18px; }
.lc-pdp-add.loading { opacity: 0.7; pointer-events: none; }
.lc-pdp-add.added::after { display: none; }
.lc-pdp__oos-pill { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: var(--lc-radius-pill); background: var(--lc-cream-200); border: 1px solid var(--lc-border); color: var(--lc-ink-500); font-weight: var(--lc-w-semibold); }

/* Reserva (sin stock, con backorders permitidos) */
.lc-pdp__backorder { margin: 0 0 18px; }
.lc-pdp__backorder-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: var(--lc-radius-pill); background: var(--lc-warning); color: var(--lc-ink-900); font-weight: var(--lc-w-bold); font-size: 13.5px; }
.lc-pdp__backorder-pill svg { flex-shrink: 0; }
.lc-pdp__backorder-note { display: flex; align-items: flex-start; gap: 9px; margin: 12px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--lc-ink-500); max-width: 46ch; }
.lc-pdp__backorder-note svg { flex-shrink: 0; margin-top: 2px; color: var(--lc-brown-500); }

/* Fila de confianza */
.lc-pdp__trust { display: flex; flex-wrap: wrap; gap: 18px 26px; list-style: none; margin: 0; padding: 22px 0 0; border-top: 1px solid var(--lc-divider); }
.lc-pdp__trust li { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: var(--lc-w-semibold); color: var(--lc-ink-700); }
.lc-pdp__trust svg { color: var(--lc-green-700); flex-shrink: 0; }

/* Detalles: acordeón */
.lc-pdp__details { margin: 56px 0 0; border-top: 1px solid var(--lc-border); }
.lc-acc { border-bottom: 1px solid var(--lc-border); }
.lc-acc__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 4px; cursor: pointer; list-style: none; font-family: var(--lc-font-body); font-weight: var(--lc-w-bold); font-size: 18px; color: var(--lc-green-800); transition: color var(--lc-dur-fast) var(--lc-ease); }
.lc-acc__head::-webkit-details-marker { display: none; }
.lc-acc__head:hover { color: var(--lc-green-900); }
.lc-acc__label { display: inline-flex; align-items: center; gap: 11px; }
.lc-acc__label svg { color: var(--lc-green-600, var(--lc-green-700)); flex-shrink: 0; }
.lc-acc[open] .lc-acc__label svg { color: var(--lc-green-800); }
.lc-acc__chevron { display: inline-flex; color: var(--lc-ink-500); transition: transform var(--lc-dur-base, 0.3s) var(--lc-ease); }
.lc-acc[open] .lc-acc__chevron { transform: rotate(180deg); }
.lc-acc__body { padding: 0 4px 24px; color: var(--lc-ink-700); font-size: 15.5px; line-height: var(--lc-lh-relaxed); }
.lc-acc__body p { margin: 0 0 12px; }
.lc-acc__body p:last-child { margin-bottom: 0; }

/* Tabla nutricional */
.lc-nutri__serving { font-weight: var(--lc-w-bold); color: var(--lc-ink-900); margin-bottom: 10px; font-size: 14px; }
.lc-nutri { width: 100%; max-width: 420px; border-collapse: collapse; border: 1px solid var(--lc-border); border-radius: 14px; overflow: hidden; }
.lc-nutri th, .lc-nutri td { text-align: left; padding: 11px 16px; font-size: 14px; border-bottom: 1px solid var(--lc-divider); }
.lc-nutri tr:last-child th, .lc-nutri tr:last-child td { border-bottom: none; }
.lc-nutri th { font-weight: var(--lc-w-medium); color: var(--lc-ink-700); }
.lc-nutri td { text-align: right; font-weight: var(--lc-w-bold); color: var(--lc-ink-900); }
.lc-nutri__note { margin-top: 12px; font-size: 12.5px; color: var(--lc-ink-500); }

/* Relacionados */
.lc-pdp-related { margin: 64px 0 8px; }
.lc-pdp-related__title { font-family: var(--lc-font-display); font-weight: 400; font-size: clamp(26px, 3vw, 34px); color: var(--lc-green-800); margin: 0 0 28px; }

/* Sticky add-to-cart (móvil) */
/* Barra de compra fija (Desktop + Mobile): aparece al scrollear más allá del bloque de compra */
.lc-pdp-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 170; background: var(--lc-cream-50); border-top: 1px solid var(--lc-border); box-shadow: 0 -6px 22px rgba(60, 38, 3, 0.09); transform: translateY(110%); transition: transform var(--lc-dur-base, 0.3s) var(--lc-ease); }
.lc-pdp-sticky.is-visible { transform: translateY(0); }
.lc-pdp-sticky__inner { display: flex; align-items: center; gap: 18px; max-width: 1280px; margin: 0 auto; padding: 10px 24px calc(10px + env(safe-area-inset-bottom)); }
.lc-pdp-sticky__price { display: flex; flex-direction: column; line-height: 1.12; flex-shrink: 0; }
.lc-pdp-sticky__was { font-size: 12.5px; font-weight: var(--lc-w-semibold); color: var(--lc-ink-500); text-decoration: line-through; text-decoration-color: var(--lc-sale); text-decoration-thickness: 1.5px; }
.lc-pdp-sticky__now { font-size: 20px; font-weight: var(--lc-w-extrabold); color: var(--lc-sale); }
.lc-pdp-sticky__actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lc-pdp-qty--sticky .lc-pdp-qty__btn { width: 38px; height: 44px; }
.lc-pdp-qty--sticky .lc-pdp-qty__input { width: 38px; height: 44px; font-size: 15px; }
.lc-pdp-sticky__add { min-height: 46px; white-space: nowrap; }

/* =============================================================================
   Página 404 — rampa de regreso a la tienda
   ============================================================================= */
.lc-404 { padding: 56px 0 24px; text-align: center; }
.lc-404__hero { max-width: 660px; margin: 0 auto; }
.lc-404__art { color: var(--lc-green-600, var(--lc-green-700)); display: flex; justify-content: center; margin-bottom: 4px; }
.lc-404__code { font-family: var(--lc-font-display); font-size: clamp(70px, 15vw, 130px); line-height: 0.9; color: var(--lc-green-800); letter-spacing: 0.02em; }
.lc-404__title { font-family: var(--lc-font-display); font-weight: 400; font-size: clamp(26px, 4vw, 40px); color: var(--lc-green-800); line-height: 1.1; margin: 10px 0 12px; }
.lc-404__lede { font-size: 16.5px; color: var(--lc-ink-700); line-height: var(--lc-lh-relaxed); margin: 0 auto; max-width: 520px; }
.lc-404 .lc-leaf-divider { color: var(--lc-green-700); margin: 14px auto 24px; max-width: 460px; }
.lc-404__search { display: flex; align-items: center; gap: 10px; max-width: 520px; margin: 0 auto 22px; padding: 6px 6px 6px 18px; background: var(--lc-cream-50); border: 1px solid var(--lc-border); border-radius: var(--lc-radius-pill); box-shadow: 0 4px 14px rgba(60, 38, 3, 0.06); }
.lc-404__search > svg { color: var(--lc-ink-500); flex-shrink: 0; }
.lc-404__search input[type="search"] { flex: 1; min-width: 0; border: none; background: none; font-family: var(--lc-font-body); font-size: 15px; color: var(--lc-ink-900); padding: 11px 0; }
.lc-404__search input[type="search"]:focus { outline: none; }
.lc-404__search button { flex-shrink: 0; background: var(--lc-green-800); color: var(--lc-cream-100); border: none; border-radius: var(--lc-radius-pill); padding: 11px 22px; font-family: var(--lc-font-body); font-weight: var(--lc-w-semibold); font-size: 14px; cursor: pointer; transition: background var(--lc-dur-fast) var(--lc-ease); }
.lc-404__search button:hover { background: var(--lc-green-900); }
.lc-404__ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.lc-404__chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; }
.lc-404 + .lc-rail-section { margin-top: 8px; }
/* En el 404 el riel se muestra de inmediato (hero corto → evitar banda vacía por el scroll-reveal). */
.error404 .lc-rail-section,
.error404 .lc-rail-section.lc-revealable { opacity: 1; transform: none; }
.error404 .lc-rail .lc-stagger { opacity: 1; transform: none; filter: none; }
@media (max-width: 600px) {
	.lc-404 { padding: 40px 0 12px; }
	.lc-404__search { gap: 6px; padding: 5px 5px 5px 14px; }
	.lc-404__search input[type="search"] { padding: 12px 0; }
	.lc-404__search button { padding: 11px 16px; }
}

/* =============================================================================
   Estado vacío (búsqueda / catálogo sin resultados)
   ============================================================================= */
.lc-empty-state { text-align: center; max-width: 560px; margin: 8px auto 4px; padding: 40px 0 28px; }
.lc-empty-state__art { display: inline-flex; align-items: center; justify-content: center; width: 88px; height: 88px; border-radius: var(--lc-radius-pill); background: var(--lc-cream-200); border: 1px solid var(--lc-border); color: var(--lc-green-700); margin-bottom: 18px; }
.lc-empty-state__title { font-family: var(--lc-font-display); font-weight: 400; font-size: clamp(24px, 3.5vw, 34px); color: var(--lc-green-800); line-height: 1.12; margin: 0 0 10px; }
.lc-empty-state__lede { color: var(--lc-ink-700); font-size: 16px; line-height: var(--lc-lh-relaxed); margin: 0 auto 22px; max-width: 460px; }
.lc-empty-state__ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
/* Riel "flush": ya vive dentro de un .lc-container, no añade padding lateral propio. */
.lc-rail-section--flush { padding-inline: 0; }

/* Tabs */
.woocommerce-tabs ul.tabs li { border-radius: var(--lc-radius-pill) var(--lc-radius-pill) 0 0; background: var(--lc-cream-200); border-color: var(--lc-border); }
.woocommerce-tabs ul.tabs li.active { background: var(--lc-cream-50); }

/* Carrito / checkout — tablas y totales */
.woocommerce table.shop_table { border-radius: 16px; border-color: var(--lc-border); background: var(--lc-cream-50); overflow: hidden; }
.woocommerce table.shop_table th { font-family: var(--lc-font-body); color: var(--lc-ink-900); }
.woocommerce .cart-collaterals .cart_totals h2,
.woocommerce-checkout #order_review_heading,
.woocommerce-checkout h3 { font-family: var(--lc-font-body); font-weight: var(--lc-w-extrabold); color: var(--lc-green-800); }
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button { font-size: 16px; }

/* Ocultar los tags internos de riel (rail-*) en el meta del producto */
.single-product .product_meta .tagged_as { display: none; }

/* Ocultar el sidebar en páginas de tienda (carrito/checkout/cuenta) */
.woocommerce-cart #secondary,
.woocommerce-checkout #secondary,
.woocommerce-account #secondary,
.woocommerce-page #secondary { display: none; }
.woocommerce-cart #primary,
.woocommerce-checkout #primary,
.woocommerce-account #primary { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 24px; }

/* WooCommerce Blocks (Cart/Checkout block) → botones pill de marca */
.wc-block-components-button:not(.is-link),
.wp-block-woocommerce-cart .wc-block-cart__submit-button,
.wc-block-components-button.contained {
	background: var(--lc-green-800) !important;
	color: var(--lc-cream-100) !important;
	border-radius: var(--lc-radius-pill) !important;
	font-family: var(--lc-font-body) !important;
	font-weight: var(--lc-w-semibold) !important;
}
.wc-block-components-button:not(.is-link):hover { background: var(--lc-green-900) !important; }
.wc-block-components-button.is-link { color: var(--lc-green-700) !important; }
.wc-block-cart__totals-title,
.wp-block-woocommerce-checkout .wc-block-components-checkout-step__title,
.wc-block-components-totals-item__label { font-family: var(--lc-font-body); color: var(--lc-ink-900); }
.wc-block-components-product-price__value.is-discounted,
.wc-block-components-sale-badge { color: var(--lc-sale); }
.wc-block-grid__products,
.wc-block-product-template { gap: 20px; }

@media (max-width: 980px) {
	.lc-pdp { grid-template-columns: 1fr; gap: 32px; }
	.lc-pdp__media { position: static; top: auto; max-width: 460px; }
	.lc-pdp__details { margin-top: 44px; }
}
@media (max-width: 760px) {
	.lc-pdp__buy { gap: 10px; }
	.lc-pdp-add { min-width: 0; }
	.lc-pdp-sticky__inner { gap: 12px; padding-inline: 16px; }
	.lc-pdp-sticky__actions { gap: 8px; }
	.lc-pdp-qty--sticky .lc-pdp-qty__btn { width: 34px; height: 42px; }
	.lc-pdp-qty--sticky .lc-pdp-qty__input { width: 32px; height: 42px; }
	.lc-pdp-sticky__add { padding-inline: 16px; }
}

/* =============================================================================
   Carrito (página /carrito/) — layout 2 columnas on-brand
   ============================================================================= */
/* El título on-brand lo pone el override (Tu carrito); ocultamos el de la página. */
.woocommerce-cart .entry-header,
.woocommerce-cart .entry-title,
.woocommerce-cart .page-title { display: none; }

.lc-cart {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 370px;
	gap: 32px;
	align-items: start;
	max-width: 1180px;
	margin: 0 auto;
	padding: 8px 0 48px;
}
.lc-cart__main { min-width: 0; }
.lc-cart-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.lc-cart-head__title { font-family: var(--lc-font-display); font-weight: 400; font-size: clamp(30px, 4vw, 44px); color: var(--lc-green-800); margin: 0; line-height: 1.05; }
.lc-cart-head__count { font-family: var(--lc-font-body); font-size: 14px; color: var(--lc-ink-500); }

.lc-cart-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.lc-cart-item {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	background: var(--lc-cream-50);
	border-radius: 16px;
	padding: 14px 44px 14px 14px;
	box-shadow: var(--lc-shadow-sm);
	position: relative;
}
.lc-cart-item__img { flex: 0 0 88px; width: 88px; height: 88px; border-radius: 12px; overflow: hidden; background: var(--lc-cream-200); display: block; }
.lc-cart-item__img img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.lc-cart-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lc-cart-item__cat { font-size: 10px; text-transform: uppercase; letter-spacing: 0.10em; font-weight: var(--lc-w-semibold); color: var(--lc-green-700); }
.lc-cart-item__name { font-family: var(--lc-font-body); font-size: 15px; font-weight: var(--lc-w-semibold); color: var(--lc-ink-900); text-decoration: none; line-height: 1.3; }
.lc-cart-item__name:hover { color: var(--lc-green-800); }
.lc-cart-item__unit { font-size: 12px; color: var(--lc-ink-500); }
.lc-cart-item__backorder { display: inline-flex; align-items: center; gap: 7px; margin-top: 7px; padding: 5px 12px; border-radius: var(--lc-radius-pill); background: var(--lc-brown-100); color: var(--lc-brown-700); font-size: 12px; font-weight: var(--lc-w-semibold); line-height: 1.4; }
.lc-cart-item__backorder svg { flex-shrink: 0; }
.lc-cart-item__bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.lc-cart-item__subtotal { font-family: var(--lc-font-body); font-weight: var(--lc-w-bold); font-size: 16px; color: var(--lc-green-800); }
.lc-cart-item__subtotal .amount { color: var(--lc-green-800); }
.lc-cart-item__remove { position: absolute; top: 12px; right: 12px; color: var(--lc-ink-300); display: inline-flex; padding: 4px; border-radius: 8px; transition: color 0.15s ease; }
.lc-cart-item__remove svg { width: 18px; height: 18px; }
.lc-cart-item__remove:hover { color: var(--lc-sale); }

/* Stepper de cantidad */
.lc-cart-qty { display: inline-flex; align-items: center; border: 1px solid var(--lc-border-strong); border-radius: var(--lc-radius-pill); background: var(--lc-cream-50); overflow: hidden; }
.lc-cart-qty__btn { width: 34px; height: 34px; padding: 0; border: 0; background: transparent; color: var(--lc-green-800); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lc-cart-qty__btn svg { width: 16px; height: 16px; }
.lc-cart-qty__btn:hover { background: var(--lc-cream-200); }
.lc-cart-qty .qty,
.lc-cart-qty__input { width: 40px; text-align: center; border: 0; background: transparent; font-family: var(--lc-font-body); font-weight: var(--lc-w-bold); font-size: 14px; color: var(--lc-ink-900); -moz-appearance: textfield; appearance: textfield; padding: 0; }
.lc-cart-qty .qty::-webkit-outer-spin-button,
.lc-cart-qty .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.lc-cart-qty__solo { width: 40px; text-align: center; font-weight: var(--lc-w-bold); font-size: 14px; }

/* Tools: cupón + actualizar */
.lc-cart-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.lc-cart-coupon { display: flex; gap: 8px; flex: 1; min-width: 240px; }
.lc-cart-coupon__input { flex: 1; border: 1px solid var(--lc-border-strong); border-radius: var(--lc-radius-pill); padding: 11px 18px; font-family: var(--lc-font-body); font-size: 14px; background: var(--lc-cream-50); color: var(--lc-ink-900); min-width: 0; }
.lc-cart-coupon__input:focus { outline: none; border-color: var(--lc-green-500); box-shadow: var(--lc-shadow-focus); }
.lc-cart-coupon__btn { border: 1px solid var(--lc-green-800); background: transparent; color: var(--lc-green-800); border-radius: var(--lc-radius-pill); padding: 11px 20px; font-family: var(--lc-font-body); font-weight: var(--lc-w-semibold); font-size: 13px; cursor: pointer; transition: background var(--lc-dur-fast) var(--lc-ease); }
.lc-cart-coupon__btn:hover { background: var(--lc-green-100); }
.lc-cart-update { border: 0; background: none; color: var(--lc-ink-500); font-family: var(--lc-font-body); font-weight: var(--lc-w-semibold); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 8px; }
.lc-cart-update:hover { color: var(--lc-green-800); }

.lc-cart-continue { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; color: var(--lc-green-800); font-family: var(--lc-font-body); font-weight: var(--lc-w-semibold); font-size: 14px; text-decoration: none; transition: gap var(--lc-dur-fast) var(--lc-ease); }
.lc-cart-continue svg { width: 18px; height: 18px; }
.lc-cart-continue:hover { gap: 10px; }

/* Aside: resumen sticky */
.lc-cart__aside { position: sticky; top: 24px; }
.lc-cart-summary { background: var(--lc-cream-200); border-radius: 20px; padding: 24px; }
.lc-cart-summary__title { font-family: var(--lc-font-body); font-weight: var(--lc-w-extrabold); font-size: 18px; color: var(--lc-ink-900); margin: 0 0 18px; }
.lc-cart-delivery { margin-bottom: 18px; }
.lc-cart-delivery__text { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--lc-ink-700); margin-bottom: 8px; }
.lc-cart-delivery__text strong { color: var(--lc-green-800); }
.lc-cart-delivery__text .lc-icon { color: var(--lc-green-700); flex-shrink: 0; }
.lc-cart-delivery__text--done { color: var(--lc-green-800); }
.lc-cart-delivery__bar { height: 8px; border-radius: var(--lc-radius-pill); background: var(--lc-cream-50); overflow: hidden; box-shadow: inset 0 0 0 1px var(--lc-border); }
.lc-cart-delivery__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--lc-green-700), var(--lc-green-500)); border-radius: var(--lc-radius-pill); transition: width 320ms var(--lc-ease-organic); }

.lc-cart-summary__rows { display: flex; flex-direction: column; gap: 10px; padding: 16px 0; border-top: 1px solid var(--lc-divider); border-bottom: 1px solid var(--lc-divider); margin-bottom: 18px; }
.lc-cart-summary__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--lc-font-body); font-size: 14px; color: var(--lc-ink-700); }
.lc-cart-summary__row .amount { font-weight: var(--lc-w-semibold); color: var(--lc-ink-900); }
.lc-cart-summary__row--muted { font-size: 13px; color: var(--lc-ink-500); }
.lc-cart-summary__row--total { font-size: 16px; font-weight: var(--lc-w-extrabold); color: var(--lc-ink-900); }
.lc-cart-summary__row--total .amount { color: var(--lc-green-800); font-size: 20px; font-weight: var(--lc-w-extrabold); }
.lc-cart-summary__coupon-remove { color: var(--lc-sale); text-decoration: none; margin-left: 6px; font-weight: var(--lc-w-bold); }

/* Selector de distrito de entrega (en el resumen del carrito). */
.lc-cart-ship { padding: 14px 0 4px; }
.lc-cart-ship__label { display: block; font-family: var(--lc-font-body); font-size: 13px; font-weight: var(--lc-w-semibold); color: var(--lc-ink-700); margin-bottom: 7px; }
.lc-cart-ship__select { position: relative; }
.lc-cart-ship__select select { -webkit-appearance: none; -moz-appearance: none; appearance: none; width: 100%; padding: 11px 38px 11px 14px; font-family: var(--lc-font-body); font-size: 14px; color: var(--lc-ink-900); background: var(--lc-surface); border: 1px solid var(--lc-border); border-radius: var(--lc-radius-md); cursor: pointer; transition: border-color var(--lc-dur-fast) var(--lc-ease), box-shadow var(--lc-dur-fast) var(--lc-ease); }
.lc-cart-ship__select select:hover { border-color: var(--lc-border-strong); }
.lc-cart-ship__select select:focus-visible { outline: none; border-color: var(--lc-green-800); box-shadow: 0 0 0 3px rgba(30, 91, 12, 0.12); }
.lc-cart-ship__select select:disabled { opacity: 0.6; cursor: progress; }
.lc-cart-ship__select svg { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--lc-ink-500); }

.lc-cart-summary__checkout { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: var(--lc-green-800); color: var(--lc-cream-100); border-radius: var(--lc-radius-pill); padding: 15px 24px; font-family: var(--lc-font-body); font-weight: var(--lc-w-semibold); font-size: 16px; text-decoration: none; box-shadow: var(--lc-shadow-md); transition: background var(--lc-dur-fast) var(--lc-ease); }
.lc-cart-summary__checkout:hover { background: var(--lc-green-900); }
/* Texto e ícono siempre crema, sin subrayado en hover/focus, igual que el botón
   "Carrito" del header. Las reglas globales (.woocommerce a:hover) meten verde +
   underline, así que anclamos en .lc-cart-summary para ganar por especificidad. */
.lc-cart-summary a.lc-cart-summary__checkout,
.lc-cart-summary a.lc-cart-summary__checkout:hover,
.lc-cart-summary a.lc-cart-summary__checkout:focus,
.lc-cart-summary a.lc-cart-summary__checkout:visited { color: var(--lc-cream-100); text-decoration: none; }
.lc-cart-summary__checkout svg { width: 16px; height: 16px; }
/* El ícono usa stroke="currentColor"; la regla global .lc-typography * pinta el
   <path> con ink-900, así que forzamos crema en el svg y sus descendientes. */
.lc-cart-summary__checkout svg,
.lc-cart-summary__checkout svg * { color: var(--lc-cream-100); }
.lc-cart-summary__secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; font-size: 11px; color: var(--lc-ink-500); }
.lc-cart-summary__secure svg { flex-shrink: 0; }

@media (max-width: 900px) {
	.lc-cart { grid-template-columns: 1fr; gap: 24px; padding-top: 4px; }
	.lc-cart__aside { position: static; }
}

/* Carrito vacío (página /carrito/) */
/* Oculta el notice por defecto de Woo; nuestro bloque ya comunica el mensaje. */
.woocommerce-cart .cart-empty.woocommerce-info { display: none; }
.lc-cart-empty { text-align: center; max-width: 480px; margin: 40px auto 64px; padding: 0 24px; }
.lc-cart-empty__icon { color: var(--lc-ink-300); display: inline-flex; margin-bottom: 18px; }
.lc-cart-empty__icon svg { width: 56px; height: 56px; }
.lc-cart-empty__title { font-family: var(--lc-font-display); font-weight: 400; font-size: clamp(28px, 4vw, 40px); color: var(--lc-green-800); margin: 0 0 10px; line-height: 1.05; }
.lc-cart-empty__text { font-family: var(--lc-font-body); font-size: 15px; color: var(--lc-ink-500); line-height: 1.6; margin: 0 0 24px; }
.lc-cart-empty__btn { display: inline-flex; align-items: center; gap: 8px; background: var(--lc-green-800); border-radius: var(--lc-radius-pill); padding: 14px 28px; font-family: var(--lc-font-body); font-weight: var(--lc-w-semibold); font-size: 15px; box-shadow: var(--lc-shadow-md); transition: background var(--lc-dur-fast) var(--lc-ease); }
.lc-cart-empty__btn svg { width: 16px; height: 16px; }

/* El color y el subrayado van aparte y con el `a.` por delante a propósito.
   El botón vive dentro de `.lc-typography`, y en tokens.css hay
   `.lc-typography a { color: var(--lc-fg-link); text-decoration: underline }`
   —clase + elemento— que le ganaba a `.lc-cart-empty__btn`, que es solo clase:
   el texto salía en verde de enlace y subrayado SOBRE el verde del botón, y no
   se leía. Con `a.lc-cart-empty__btn` se iguala la especificidad y, al cargar
   shop.css después que tokens.css, gana el desempate.
   Se cubren todos los estados: `:visited` es el que suele volver a colarse. */
a.lc-cart-empty__btn,
a.lc-cart-empty__btn:visited,
a.lc-cart-empty__btn:hover,
a.lc-cart-empty__btn:focus {
	color: var(--lc-fg-on-green);
	text-decoration: none;
}
a.lc-cart-empty__btn:hover { background: var(--lc-green-900); }

/* =============================================================================
   Checkout (/finalizar-compra/) — 2 columnas + pasos on-brand
   ============================================================================= */
.woocommerce-checkout .entry-header,
.woocommerce-checkout .entry-title,
.woocommerce-checkout .page-title { display: none; }

.lc-checkout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	gap: 32px;
	align-items: start;
	max-width: 1180px;
	margin: 0 auto;
	padding: 8px 0 48px;
}
.lc-checkout__main { min-width: 0; }
.lc-checkout__title { font-family: var(--lc-font-display); font-weight: 400; font-size: clamp(30px, 4vw, 44px); color: var(--lc-green-800); margin: 0 0 22px; line-height: 1.05; }
/* Los avisos de validación que WooCommerce inserta en el form ocupan todo el ancho
   (si no, descuadran el grid de 2 columnas). */
.lc-checkout > .woocommerce-NoticeGroup,
.lc-checkout > .woocommerce-error,
.lc-checkout > .woocommerce-message,
.lc-checkout > .woocommerce-info { grid-column: 1 / -1; margin: 0 0 18px; }
/* Validación: el mensaje va INLINE debajo de cada campo; ocultamos esas entradas
   del bloque superior (solo quedan errores generales, si los hubiera). */
.lc-checkout .woocommerce-NoticeGroup-checkout .woocommerce-error li[data-id] { display: none; }
.lc-checkout .woocommerce-NoticeGroup-checkout .woocommerce-error {
	display: block;
	background: var(--lc-cream-50);
	border-radius: 14px;
	box-shadow: var(--lc-shadow-sm);
	list-style: none;
	margin: 0;
	padding: 16px 24px;
	color: var(--lc-ink-900);
}
.lc-checkout .woocommerce-NoticeGroup-checkout .woocommerce-error li { display: block; margin: 5px 0; }
.lc-checkout .woocommerce-NoticeGroup-checkout .woocommerce-error strong { color: var(--lc-sale); }
/* Mensaje inline bajo el campo + campo resaltado en rojo. */
.lc-checkout .checkout-inline-error-message { color: var(--lc-sale); font-size: 12px; margin-top: 6px; font-family: var(--lc-font-body); }
.lc-checkout .form-row.woocommerce-invalid input.input-text,
.lc-checkout .form-row.woocommerce-invalid select,
.lc-checkout .form-row.woocommerce-invalid textarea { border-color: var(--lc-sale); }

/* ----- Pasos (acordeón) ----- */
.lc-step { background: var(--lc-cream-50); border: 1px solid var(--lc-border); border-radius: 16px; margin-bottom: 14px; overflow: hidden; box-shadow: var(--lc-shadow-xs); }
.lc-step__head { width: 100%; display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: transparent; border: 0; cursor: pointer; font-family: var(--lc-font-body); text-align: left; }
.lc-step__num { width: 28px; height: 28px; flex-shrink: 0; border-radius: var(--lc-radius-pill); background: var(--lc-cream-200); color: var(--lc-ink-500); display: inline-flex; align-items: center; justify-content: center; font-weight: var(--lc-w-bold); font-size: 13px; }
.lc-step__title { flex: 1; font-weight: var(--lc-w-bold); font-size: 16px; color: var(--lc-ink-900); }
.lc-step__edit { font-size: 13px; font-weight: var(--lc-w-semibold); color: var(--lc-green-700); display: none; }
.lc-step__body { display: none; padding: 4px 20px 22px; }
.lc-step.is-open .lc-step__body { display: block; }
.lc-step.is-open .lc-step__num { background: var(--lc-green-800); color: #fff; }
.lc-step.is-done:not(.is-open) .lc-step__num { background: var(--lc-green-100); color: var(--lc-green-800); }
.lc-step.is-done:not(.is-open) .lc-step__edit { display: inline; }
.lc-step__next { margin-top: 16px; background: var(--lc-green-800); color: #fff; border: 0; border-radius: var(--lc-radius-pill); padding: 13px 28px; font-family: var(--lc-font-body); font-weight: var(--lc-w-semibold); font-size: 15px; cursor: pointer; transition: background var(--lc-dur-fast) var(--lc-ease); }
.lc-step__next:hover { background: var(--lc-green-900); }

/* ----- Campos del formulario on-brand ----- */
.lc-checkout .form-row { margin: 0 0 14px; padding: 0; }
.lc-checkout .form-row label { display: block; font-size: 13px; font-weight: var(--lc-w-semibold); color: var(--lc-ink-700); margin-bottom: 6px; font-family: var(--lc-font-body); }
.lc-checkout .form-row label .required { color: var(--lc-sale); text-decoration: none; }
.lc-checkout .woocommerce-input-wrapper { width: 100%; }
.lc-checkout input.input-text,
.lc-checkout textarea,
.lc-checkout select,
.lc-checkout .select2-container--default .select2-selection--single {
	width: 100%;
	border: 1px solid var(--lc-border-strong);
	border-radius: 12px;
	background: var(--lc-cream-50);
	font-family: var(--lc-font-body);
	font-size: 15px;
	color: var(--lc-ink-900);
	padding: 12px 14px;
	line-height: 1.4;
}
.lc-checkout textarea { min-height: 84px; resize: vertical; }
.lc-checkout input.input-text:focus,
.lc-checkout textarea:focus,
.lc-checkout select:focus { outline: none; border-color: var(--lc-green-500); box-shadow: var(--lc-shadow-focus); }
/* Campos de dirección en grid 2-col (first/last lado a lado) — sin float para
   evitar que el campo siguiente se solape y bloquee los clicks. */
.lc-checkout .woocommerce-billing-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.lc-checkout .woocommerce-billing-fields__field-wrapper .form-row { grid-column: 1 / -1; float: none; width: auto; }
.lc-checkout .woocommerce-billing-fields__field-wrapper .form-row-first { grid-column: 1; }
.lc-checkout .woocommerce-billing-fields__field-wrapper .form-row-last { grid-column: 2; }

/* ----- Pago (paso 3) ----- */
.lc-checkout #payment { background: transparent; border-radius: 0; }
.lc-checkout #payment ul.payment_methods { border: 0; padding: 0; margin: 0 0 12px; list-style: none; }
.lc-checkout #payment ul.payment_methods li { padding: 10px 0; border-bottom: 1px solid var(--lc-divider); }
.lc-checkout #payment ul.payment_methods label { font-weight: var(--lc-w-semibold); color: var(--lc-ink-900); display: inline; }
.lc-checkout #payment div.payment_box { background: var(--lc-cream-100); border-radius: 12px; padding: 14px; font-size: 13px; color: var(--lc-ink-700); }
.lc-checkout #payment div.payment_box::before { display: none; }
.lc-checkout #place_order { width: 100%; background: var(--lc-green-800); color: #fff; border: 0; border-radius: var(--lc-radius-pill); padding: 16px 24px; font-family: var(--lc-font-body); font-weight: var(--lc-w-semibold); font-size: 16px; box-shadow: var(--lc-shadow-md); cursor: pointer; margin-top: 12px; }
.lc-checkout #place_order:hover { background: var(--lc-green-900); }
.lc-checkout .woocommerce-terms-and-conditions-wrapper { font-size: 12px; color: var(--lc-ink-500); margin-bottom: 12px; }

/* ----- Resumen (derecha) ----- */
.lc-checkout__aside { position: sticky; top: 24px; }
.lc-checkout-summary { background: var(--lc-cream-200); border-radius: 20px; padding: 24px; }
.lc-checkout-summary__title { font-family: var(--lc-font-body); font-weight: var(--lc-w-extrabold); font-size: 18px; color: var(--lc-ink-900); margin: 0 0 18px; }
.lc-checkout-delivery { margin-bottom: 18px; }
.lc-checkout-delivery__text { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--lc-ink-700); margin-bottom: 8px; }
.lc-checkout-delivery__text strong { color: var(--lc-green-800); }
.lc-checkout-delivery__text .lc-icon { color: var(--lc-green-700); flex-shrink: 0; }
.lc-checkout-delivery__text--done { color: var(--lc-green-800); }
.lc-checkout-delivery__bar { height: 8px; border-radius: var(--lc-radius-pill); background: var(--lc-cream-50); overflow: hidden; box-shadow: inset 0 0 0 1px var(--lc-border); }
.lc-checkout-delivery__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--lc-green-700), var(--lc-green-500)); border-radius: var(--lc-radius-pill); transition: width 320ms var(--lc-ease-organic); }

/* Tabla de revisión del pedido on-brand */
.lc-checkout .shop_table { width: 100%; border: 0; background: var(--lc-cream-50); border-radius: 14px; overflow: hidden; }
.lc-checkout .shop_table th,
.lc-checkout .shop_table td { border: 0; padding: 11px 18px; font-family: var(--lc-font-body); font-size: 14px; color: var(--lc-ink-700); }
.lc-checkout .shop_table .cart_item td { border-bottom: 1px solid var(--lc-divider); }
.lc-checkout .shop_table .product-name { color: var(--lc-ink-900); font-weight: var(--lc-w-semibold); }
.lc-checkout .shop_table .product-total,
.lc-checkout .shop_table .product-name .amount { color: var(--lc-green-800); font-weight: var(--lc-w-bold); }
.lc-checkout .shop_table .cart-subtotal th,
.lc-checkout .shop_table .order-total th { color: var(--lc-ink-900); font-weight: var(--lc-w-bold); }
.lc-checkout .shop_table .order-total td .amount { color: var(--lc-green-800); font-size: 18px; font-weight: var(--lc-w-extrabold); }
.lc-checkout .shop_table thead { display: none; }

/* Cupón en el resumen */
.lc-checkout-coupon-wrap { margin-top: 16px; }
.lc-checkout-coupon__field { display: flex; gap: 8px; }
.lc-checkout-coupon__field input { flex: 1; border: 1px solid var(--lc-border-strong); border-radius: var(--lc-radius-pill); padding: 11px 16px; font-family: var(--lc-font-body); font-size: 14px; background: var(--lc-cream-50); color: var(--lc-ink-900); min-width: 0; }
.lc-checkout-coupon__field input:focus { outline: none; border-color: var(--lc-green-500); box-shadow: var(--lc-shadow-focus); }
.lc-checkout-coupon__btn { border: 1px solid var(--lc-green-800); background: transparent; color: var(--lc-green-800); border-radius: var(--lc-radius-pill); padding: 11px 20px; font-family: var(--lc-font-body); font-weight: var(--lc-w-semibold); font-size: 13px; cursor: pointer; flex-shrink: 0; transition: background var(--lc-dur-fast) var(--lc-ease); }
.lc-checkout-coupon__btn:hover { background: var(--lc-green-100); }
.lc-checkout-summary__secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 16px; font-size: 11px; color: var(--lc-ink-500); }

@media (max-width: 900px) {
	.lc-checkout { grid-template-columns: 1fr; gap: 22px; }
	.lc-checkout__aside { position: static; order: -1; }
}
@media (max-width: 560px) {
	/* Nombre/Apellidos full-width en móvil (no apretados). */
	.lc-checkout .woocommerce-billing-fields__field-wrapper { grid-template-columns: 1fr; }
	/* Reset de la colocación de 2 columnas: si no, form-row-last (grid-column:2) crea una columna implícita. */
	.lc-checkout .woocommerce-billing-fields__field-wrapper .form-row-first,
	.lc-checkout .woocommerce-billing-fields__field-wrapper .form-row-last { grid-column: 1 / -1; }
}

/* Recojo en tienda: ficha de la tienda elegida en el checkout */
/* La fila que la contiene solo aporta posición en el orden de campos: el aire lo
   pone la propia ficha, y en delivery (ficha oculta) no debe ocupar nada. */
.lc-store-card-row { margin: 0; padding: 0; }
.lc-store-card:not([hidden]) {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 4px 0 18px;
	padding: 16px 18px;
	border-radius: 14px;
	background: var(--lc-cream-200);
	border: 1px solid var(--lc-border);
}
.lc-store-card strong { color: var(--lc-ink-900); font-size: 15px; }
.lc-store-card span { color: var(--lc-ink-700); font-size: 13.5px; line-height: 1.5; }
.lc-store-card__hours { color: var(--lc-ink-500) !important; font-size: 12.5px !important; }
.lc-store-card a {
	align-self: flex-start;
	margin-top: 6px;
	color: var(--lc-green-700);
	font-weight: var(--lc-w-semibold);
	font-size: 13.5px;
}

/* El radio de método de entrega, en fila y con aire */
#billing_lc_delivery_method_field ul,
.lc-delivery-method ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
#billing_lc_delivery_method_field li,
.lc-delivery-method li { margin: 0; }
#billing_lc_delivery_method_field label,
.lc-delivery-method label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }

/* --- Barra de "delivery gratis" ---
   Era flex, y como el texto va suelto junto a un <strong>, cada trozo se
   volvía una columna: en móvil salía partido en tres bloques. Con display
   block el texto fluye como una frase y el ícono va inline. --- */
.lc-checkout-delivery__text,
.lc-cart-delivery__text {
	display: block;
	line-height: 1.5;
}
.lc-checkout-delivery__text > svg,
.lc-cart-delivery__text > svg,
.lc-checkout-delivery__text .lc-icon,
.lc-cart-delivery__text .lc-icon {
	display: inline-block;
	vertical-align: -3px;
	margin-right: 7px;
}
.lc-checkout-delivery__text strong,
.lc-cart-delivery__text strong {
	white-space: nowrap;
}

/* --- Método de entrega: dos tarjetas seleccionables ---
   WooCommerce pinta radios como input + label.radio sueltos dentro de
   .woocommerce-input-wrapper (no en ul/li), así que se maquetan con grid sobre
   el wrapper y el radio se posiciona dentro de su etiqueta. --- */
#billing_lc_delivery_method_field > label:first-child {
	display: block;
	margin-bottom: 8px;
	font-weight: var(--lc-w-semibold);
	color: var(--lc-ink-900);
}
#billing_lc_delivery_method_field .woocommerce-input-wrapper {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	width: 100%;
}
#billing_lc_delivery_method_field input[type="radio"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
#billing_lc_delivery_method_field label.radio {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 14px 16px;
	border: 1px solid var(--lc-border);
	border-radius: 14px;
	background: var(--lc-cream-50);
	cursor: pointer;
	font-size: 14px;
	line-height: 1.3;
	transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
/* Círculo del radio dibujado a mano, para controlarlo en todos los navegadores */
#billing_lc_delivery_method_field label.radio::before {
	content: "";
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid var(--lc-ink-300);
	background: #fff;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
#billing_lc_delivery_method_field label.radio:hover { border-color: var(--lc-green-500); }
#billing_lc_delivery_method_field input[type="radio"]:checked + label.radio {
	border-color: var(--lc-green-700);
	background: #F0F6EC;
	box-shadow: inset 0 0 0 1px var(--lc-green-700);
}
#billing_lc_delivery_method_field input[type="radio"]:checked + label.radio::before {
	border-color: var(--lc-green-700);
	box-shadow: inset 0 0 0 4px var(--lc-green-700);
}
#billing_lc_delivery_method_field input[type="radio"]:focus-visible + label.radio {
	outline: 2px solid var(--lc-green-700);
	outline-offset: 2px;
}
/* El asterisco sobra: siempre hay una opción marcada */
#billing_lc_delivery_method_field label.radio .required { display: none; }

@media (max-width: 560px) {
	#billing_lc_delivery_method_field .woocommerce-input-wrapper { grid-template-columns: 1fr; }
}

/* Aviso de factura, debajo de las notas del pedido */
.lc-invoice-note {
	margin: 12px 0 0;
	padding: 12px 16px;
	border-radius: 12px;
	background: var(--lc-cream-200);
	border: 1px solid var(--lc-border);
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--lc-ink-700);
}
