/**
 * Theme Name: Llum Essencia Child
 * Description: Tema hijo personalizado para tienda de productos para el hogar
 * Author: Tu Nombre
 * Template: blocksy
 * Text Domain: llum-essencia
 * Version: 1.0.0
 */

/* ============================================
   VARIABLES DE COLORES DE MARCA
   ============================================ */

:root {
	--llum-primary: #00484e;
	--llum-accent: #a8977b;
	--llum-primary-light: #005a63;
	--llum-accent-light: #c4ae8c;
	--llum-text: #333;
	--llum-text-light: #666;
	--llum-bg: #fff;
	--llum-border: #e5e5e5;
}

/* ============================================
   CONTENEDOR DE TIENDA CON SIDEBAR
   ============================================ */

.llum-shop-container {
	display: flex;
	gap: 30px;
	margin-top: 30px;
	align-items: flex-start;
}

/* ============================================
   SIDEBAR DE FILTROS - DISEÑO MINIMALISTA
   ============================================ */

.llum-shop-sidebar {
	flex: 0 0 280px;
	max-width: 280px;
	background: transparent;
	padding: 0 20px 0 0;
	position: sticky;
	top: 100px;
	overflow: visible;
	transition: all 0.3s ease;
	border-right: 1px solid #e0e0e0;
}

.llum-shop-sidebar.llum-sidebar-hidden {
	display: none;
}

/* Scroll removido del sidebar */

/* Widgets de filtro */
.llum-filter-widget {
	margin-bottom: 32px;
	padding-bottom: 0;
	border-bottom: none;
}

.llum-filter-widget:last-child {
	margin-bottom: 0;
}

.llum-filter-title {
	font-size: 13px;
	font-weight: 600;
	margin: 0 0 16px 0;
	color: var(--llum-text);
	text-transform: none;
	letter-spacing: 0.3px;
	position: relative;
	padding-left: 24px;
	display: flex;
	align-items: center;
}

.llum-filter-title::before {
	content: '⚬';
	position: absolute;
	left: 0;
	color: var(--llum-accent);
	font-size: 16px;
	line-height: 1;
}

/* Estilos para widgets de WooCommerce */
.llum-shop-sidebar .widget {
	margin-bottom: 0;
}

.llum-shop-sidebar .widget-title {
	font-size: 13px;
	font-weight: 600;
	margin: 0 0 16px 0;
	color: var(--llum-text);
	text-transform: none;
	letter-spacing: 0.3px;
	position: relative;
	padding-left: 24px;
	display: flex;
	align-items: center;
}

/* Iconos específicos para cada tipo de widget */
.llum-shop-sidebar .widget_price_filter .widget-title::before {
	content: '€';
	position: absolute;
	left: 0;
	color: var(--llum-accent);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
}

.llum-shop-sidebar .widget_product_categories .widget-title::before,
.llum-shop-sidebar .widget_layered_nav .widget-title::before {
	content: '☰';
	position: absolute;
	left: 0;
	color: var(--llum-accent);
	font-size: 14px;
	line-height: 1;
}

.llum-shop-sidebar .widget_layered_nav_filters .widget-title::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: var(--llum-accent);
	font-size: 14px;
	line-height: 1;
}

/* Icono por defecto si no hay uno específico */
.llum-shop-sidebar .widget-title:not(.widget_price_filter .widget-title):not(.widget_product_categories .widget-title):not(.widget_layered_nav .widget-title):not(.widget_layered_nav_filters .widget-title)::before {
	content: '⚬';
	position: absolute;
	left: 0;
	color: var(--llum-accent);
	font-size: 16px;
	line-height: 1;
}

/* Lista de filtros */
.llum-shop-sidebar ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.llum-shop-sidebar ul li {
	margin-bottom: 12px;
	padding: 0;
}

.llum-shop-sidebar ul li:last-child {
	margin-bottom: 0;
}

/* Checkboxes y radio buttons */
.llum-shop-sidebar input[type="checkbox"],
.llum-shop-sidebar input[type="radio"] {
	margin-right: 10px;
	width: 18px;
	height: 18px;
	cursor: pointer;
	accent-color: var(--llum-accent);
	flex-shrink: 0;
}

.llum-shop-sidebar label {
	cursor: pointer;
	font-size: 14px;
	color: var(--llum-text);
	display: flex;
	align-items: center;
	transition: color 0.2s ease;
	padding: 5px 0;
}

.llum-shop-sidebar label:hover {
	color: var(--llum-primary);
}

/* Selects */
.llum-shop-sidebar select {
	width: 100%;
	padding: 12px 15px;
	border: 2px solid var(--llum-border);
	border-radius: 6px;
	font-size: 14px;
	background-color: var(--llum-bg);
	cursor: pointer;
	transition: all 0.2s ease;
	color: var(--llum-text);
}

.llum-shop-sidebar select:focus {
	outline: none;
	border-color: var(--llum-accent);
	box-shadow: 0 0 0 3px rgba(187, 159, 68, 0.1);
}

/* Sliders de precio con estilos de color */
.llum-shop-sidebar .price_slider {
	margin: 15px 0;
}

.llum-shop-sidebar .price_slider_wrapper {
	padding: 0;
}

.llum-shop-sidebar .price_slider_wrapper .ui-slider {
	background: #e8e8e8;
	height: 4px;
	border-radius: 2px;
}

.llum-shop-sidebar .price_slider_wrapper .ui-slider-handle {
	background: var(--llum-accent);
	border: 2px solid var(--llum-bg);
	width: 16px;
	height: 16px;
	border-radius: 50%;
	top: -6px;
	cursor: pointer;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
	transition: all 0.2s ease;
}

.llum-shop-sidebar .price_slider_wrapper .ui-slider-handle:hover {
	background: var(--llum-primary);
	transform: scale(1.1);
}

.llum-shop-sidebar .price_slider_wrapper .ui-slider-handle:active {
	transform: scale(1.15);
}

.llum-shop-sidebar .price_slider_wrapper .ui-slider-range {
	background: var(--llum-accent);
	height: 4px;
	border-radius: 2px;
}

.llum-shop-sidebar .price_label {
	font-size: 13px;
	color: var(--llum-text);
	margin-top: 12px;
	font-weight: 500;
}

.llum-shop-sidebar .price_slider_amount .price_label {
	color: var(--llum-primary);
	font-weight: 600;
}

/* Botón limpiar filtros */
.llum-clear-filters {
	display: inline-block;
	margin-top: 20px;
	padding: 8px 16px;
	background-color: transparent;
	color: var(--llum-text-light);
	text-decoration: none;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 500;
	transition: all 0.2s ease;
	border: 1px solid #e0e0e0;
	cursor: pointer;
}

.llum-clear-filters:hover {
	background-color: #f5f5f5;
	color: var(--llum-primary);
	border-color: var(--llum-primary);
}

/* ============================================
   CONTENIDO DE PRODUCTOS
   ============================================ */

.llum-shop-content {
	flex: 1;
	min-width: 0;
}

/* ============================================
   BOTÓN TOGGLE PARA OCULTAR/MOSTRAR FILTROS
   ============================================ */

.llum-filter-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	background: transparent;
	color: var(--llum-text);
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	margin-bottom: 20px;
	transition: all 0.2s ease;
}

.llum-filter-toggle:hover {
	background: #f5f5f5;
	border-color: var(--llum-primary);
	color: var(--llum-primary);
}

.llum-filter-toggle-icon {
	font-size: 16px;
	line-height: 1;
}

/* ============================================
   MEJORAS EN BLOQUES DE PRODUCTO (CARDS)
   ============================================ */

/* Contenedor de productos */
.products .product {
	background: var(--llum-bg);
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	border: 1px solid var(--llum-border);
	display: flex;
	flex-direction: column;
	height: 100%;
	/* Animación de entrada */
	animation: fadeInUp 0.5s ease-out;
	animation-fill-mode: both;
}

/* Animación escalonada para productos */
.products .product:nth-child(1) { animation-delay: 0.05s; }
.products .product:nth-child(2) { animation-delay: 0.1s; }
.products .product:nth-child(3) { animation-delay: 0.15s; }
.products .product:nth-child(4) { animation-delay: 0.2s; }
.products .product:nth-child(5) { animation-delay: 0.25s; }
.products .product:nth-child(6) { animation-delay: 0.3s; }
.products .product:nth-child(n+7) { animation-delay: 0.35s; }

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.products .product:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 32px rgba(0, 72, 78, 0.18);
	border-color: var(--llum-accent);
}

/* Overlay sutil en hover */
.products .product::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, 
		rgba(0, 72, 78, 0.02), 
		rgba(168, 151, 123, 0.02)
	);
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 1;
	pointer-events: none;
	border-radius: 12px;
}

.products .product:hover::before {
	opacity: 1;
}

/* Contenedor de imagen con tamaño fijo - Mejorado */
.products .product figure {
	position: relative;
	width: 100%;
	padding-top: 133.33%; /* Aspect ratio 3:4 (300x400) */
	overflow: hidden;
	background: linear-gradient(
		135deg,
		#f8f8f8 0%,
		#f0f0f0 50%,
		#f8f8f8 100%
	);
	background-size: 200% 200%;
	animation: shimmer 2s infinite;
	margin: 0;
	z-index: 1;
}

@keyframes shimmer {
	0% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}

/* Detener animación cuando la imagen carga */
.products .product figure img.loaded ~ *,
.products .product figure:has(img[src]) {
	animation: none;
	background: #f8f8f8;
}

.products .product figure a {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: block;
}

.products .product img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.4s ease;
}

.products .product:hover img {
	transform: scale(1.08);
}

/* Contenido del producto */
.products .product .woocommerce-loop-product__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

/* Título del producto - Mejorado */
.products .product .woocommerce-loop-product__title {
	font-size: 17px;
	font-weight: 600;
	line-height: 1.5;
	margin: 18px 18px 12px 18px;
	color: var(--llum-text);
	transition: color 0.2s ease;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 51px;
	position: relative;
	z-index: 2;
}

.products .product:hover .woocommerce-loop-product__title {
	color: var(--llum-primary);
}

.products .product .woocommerce-loop-product__title a {
	color: inherit;
	text-decoration: none;
}

/* Precio - Mejorado */
.products .product .price {
	font-size: 20px;
	font-weight: 700;
	color: var(--llum-accent);
	margin: 0 18px 18px 18px;
	letter-spacing: 0.5px;
	position: relative;
	z-index: 2;
}

.products .product .price del {
	color: var(--llum-text-light);
	font-size: 14px;
	font-weight: 400;
	margin-right: 8px;
	opacity: 0.7;
}

.products .product .price ins {
	text-decoration: none;
	color: var(--llum-accent);
}

/* Botón añadir al carrito - Mejorado */
.products .product .button,
.products .product .add_to_cart_button,
.products .product .product_type_simple {
	background: linear-gradient(135deg, var(--llum-primary), var(--llum-primary-light));
	color: var(--llum-bg);
	border: none;
	border-radius: 6px;
	padding: 14px 24px;
	font-size: 15px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: all 0.3s ease;
	margin: auto 18px 18px 18px;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0, 72, 78, 0.2);
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.products .product .button::before {
	content: '🛒';
	font-size: 16px;
	line-height: 1;
	display: inline-block;
}

.products .product .button:hover,
.products .product .add_to_cart_button:hover,
.products .product .product_type_simple:hover {
	background: linear-gradient(135deg, var(--llum-accent), var(--llum-accent-light));
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(187, 159, 68, 0.3);
	color: var(--llum-bg);
}

.products .product .button:active,
.products .product .add_to_cart_button:active {
	transform: translateY(0);
}

/* Estado "Añadido" */
.products .product .button.added {
	background: var(--llum-accent) !important;
}

.products .product .button.added::after {
	content: ' ✓';
	margin-left: 6px;
	font-weight: 700;
}

/* Badges de producto - Mejorados */
.products .product .onsale,
.products .product .out-of-stock-badge {
	position: absolute;
	top: 15px;
	right: 15px;
	background: linear-gradient(135deg, var(--llum-accent), var(--llum-accent-light));
	color: var(--llum-bg);
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	z-index: 15;
	box-shadow: 0 3px 10px rgba(168, 151, 123, 0.3);
	animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
	0%, 100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.05);
	}
}

/* Rating/Estrellas - Mejorado */
.products .product .star-rating {
	margin: 0 18px 12px 18px;
	font-size: 14px;
	position: relative;
	z-index: 2;
}

.products .product .star-rating::before {
	color: #e0e0e0;
}

.products .product .star-rating span {
	color: #ffa500;
}

/* ============================================
   ESTILOS ADICIONALES PARA WIDGETS WOOCOMMERCE
   ============================================ */

/* Widget de categorías */
.llum-shop-sidebar .widget_product_categories ul {
	padding-left: 0;
}

.llum-shop-sidebar .widget_product_categories ul li {
	padding: 8px 0;
}

.llum-shop-sidebar .widget_product_categories ul li a {
	color: var(--llum-text);
	text-decoration: none;
	transition: color 0.2s ease;
	display: flex;
	align-items: center;
}

.llum-shop-sidebar .widget_product_categories ul li a:hover {
	color: var(--llum-primary);
}

/* Widget de filtros por atributos */
.llum-shop-sidebar .widget_layered_nav ul li {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.llum-shop-sidebar .widget_layered_nav .count {
	font-size: 12px;
	color: var(--llum-text-light);
	background: var(--llum-border);
	padding: 2px 8px;
	border-radius: 12px;
	margin-left: auto;
}

/* Widget de precio */
.llum-shop-sidebar .widget_price_filter .price_slider_amount {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 15px;
	gap: 10px;
}

.llum-shop-sidebar .widget_price_filter button {
	padding: 8px 16px;
	background: var(--llum-accent);
	color: var(--llum-bg);
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 12px;
	font-weight: 600;
	transition: all 0.2s ease;
	flex: 1;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.llum-shop-sidebar .widget_price_filter button:hover {
	background: var(--llum-primary);
	transform: translateY(-1px);
	box-shadow: 0 2px 6px rgba(0, 72, 78, 0.2);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
	.llum-shop-sidebar {
		flex: 0 0 260px;
		max-width: 260px;
		padding: 20px;
	}
	
	.llum-shop-container {
		gap: 20px;
	}
}

@media (max-width: 768px) {
	.llum-shop-container {
		flex-direction: column;
		gap: 0;
	}
	
	.llum-filter-toggle {
		width: 100%;
		justify-content: center;
	}
	
	.llum-shop-sidebar {
		position: fixed;
		left: -100%;
		top: 0;
		width: 85%;
		max-width: 320px;
		height: 100vh;
		z-index: 10000;
		overflow-y: auto;
		overflow-x: hidden;
		transition: left 0.3s ease;
		background: #f8f8f8 !important;
		background-color: #f8f8f8 !important;
		padding: 20px;
		margin: 0;
		flex: none;
		max-width: none;
		border-right: 1px solid #e0e0e0;
		box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
	}
	
	.llum-shop-sidebar.active {
		left: 0;
	}
	
	/* Asegurar que los elementos interactivos dentro del sidebar sean clickeables */
	.llum-shop-sidebar input,
	.llum-shop-sidebar button,
	.llum-shop-sidebar select,
	.llum-shop-sidebar label,
	.llum-shop-sidebar a {
		pointer-events: auto !important;
		position: relative;
		z-index: 2;
	}
	
	/* En móvil, no usar display: none para llum-sidebar-hidden, 
	   ya que interfiere con el comportamiento de slide-in.
	   La clase llum-sidebar-hidden solo se usa en desktop. */
	
	.llum-shop-content {
		width: 100%;
	}
	
	/* Overlay cuando los filtros están abiertos */
	body.llum-filters-open::before {
		content: '';
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background-color: rgba(0, 0, 0, 0.5);
		z-index: 9999;
		pointer-events: auto;
	}
	
	/* Asegurar que el sidebar esté por encima del overlay */
	body.llum-filters-open .llum-shop-sidebar.active {
		z-index: 10000;
		pointer-events: auto;
	}
	
	/* Forzar que el widget de WooCommerce Product Filters muestre su contenido en móvil */
	@media (max-width: 768px) {
		.llum-shop-sidebar.active .wp-block-woocommerce-product-filters {
			display: block !important;
		}
		
		/* Ocultar el botón "Filtrar productos" del widget ya que tenemos nuestro propio botón */
		.llum-shop-sidebar .wc-block-product-filters__open-overlay {
			display: none !important;
		}
		
		/* Forzar que el overlay del widget se muestre siempre en móvil dentro del sidebar */
		.llum-shop-sidebar.active .wc-block-product-filters__overlay {
			position: static !important;
			display: block !important;
			visibility: visible !important;
			opacity: 1 !important;
			height: auto !important;
			width: 100% !important;
			background: transparent !important;
			z-index: auto !important;
		}
		
		.llum-shop-sidebar.active .wc-block-product-filters__overlay-wrapper {
			position: static !important;
			display: block !important;
			visibility: visible !important;
			opacity: 1 !important;
			height: auto !important;
			width: 100% !important;
		}
		
		.llum-shop-sidebar.active .wc-block-product-filters__overlay-dialog {
			position: static !important;
			display: block !important;
			visibility: visible !important;
			opacity: 1 !important;
			height: auto !important;
			width: 100% !important;
			max-width: 100% !important;
			margin: 0 !important;
			padding: 0 !important;
			transform: none !important;
			/* Eliminar fondo blanco y adaptar al diseño del sidebar */
			background: transparent !important;
			background-color: transparent !important;
			border: none !important;
			border-radius: 0 !important;
			box-shadow: none !important;
		}
		
		/* Asegurar que cualquier elemento hijo también use fondo transparente */
		.llum-shop-sidebar.active .wc-block-product-filters__overlay-dialog > * {
			background: transparent !important;
			background-color: transparent !important;
		}
		
		/* Ocultar el botón de cerrar del overlay interno ya que usamos nuestro propio sistema */
		.llum-shop-sidebar .wc-block-product-filters__overlay-header {
			display: none !important;
		}
		
		/* Asegurar que el contenido del overlay sea visible */
		.llum-shop-sidebar.active .wc-block-product-filters__overlay-dialog > *:not(.wc-block-product-filters__overlay-header) {
			display: block !important;
			visibility: visible !important;
			opacity: 1 !important;
		}
		
		/* Estilos personalizados para los títulos de los filtros */
		.llum-shop-sidebar.active .wc-block-product-filters__overlay-dialog h2,
		.llum-shop-sidebar.active .wc-block-product-filters__overlay-dialog h3 {
			color: var(--llum-text) !important;
			font-weight: 600 !important;
			margin: 20px 0 12px 0 !important;
			font-size: 16px !important;
		}
		
		.llum-shop-sidebar.active .wc-block-product-filters__overlay-dialog h2:first-child {
			margin-top: 0 !important;
		}
		
		/* Mejorar visibilidad de los checkboxes y labels */
		.llum-shop-sidebar.active .wc-block-product-filters__overlay-dialog label {
			color: var(--llum-text) !important;
			font-size: 14px !important;
			cursor: pointer !important;
		}
		
		.llum-shop-sidebar.active .wc-block-product-filters__overlay-dialog label:hover {
			color: var(--llum-primary) !important;
		}
		
		/* Estilos para los checkboxes */
		.llum-shop-sidebar.active .wc-block-product-filters__overlay-dialog input[type="checkbox"] {
			width: 18px !important;
			height: 18px !important;
			margin-right: 10px !important;
			accent-color: var(--llum-accent) !important;
			cursor: pointer !important;
		}
		
		/* Estilos para el botón Aplicar */
		.llum-shop-sidebar.active .wc-block-product-filters__overlay-dialog button[type="submit"],
		.llum-shop-sidebar.active .wc-block-product-filters__overlay-dialog .wc-block-product-filters__button {
			background: var(--llum-accent) !important;
			color: var(--llum-bg) !important;
			border: none !important;
			border-radius: 6px !important;
			padding: 12px 24px !important;
			font-weight: 600 !important;
			font-size: 14px !important;
			cursor: pointer !important;
			width: 100% !important;
			margin-top: 20px !important;
			transition: all 0.2s ease !important;
			box-shadow: none !important;
		}
		
		.llum-shop-sidebar.active .wc-block-product-filters__overlay-dialog button[type="submit"]:hover,
		.llum-shop-sidebar.active .wc-block-product-filters__overlay-dialog .wc-block-product-filters__button:hover {
			background: var(--llum-primary) !important;
			transform: translateY(-1px) !important;
			box-shadow: none !important;
		}
		
		/* Eliminar box-shadow del footer del overlay */
		.llum-shop-sidebar.active .wc-block-product-filters__overlay-footer {
			box-shadow: none !important;
		}
		
		/* Mejorar visibilidad de los campos de precio */
		.llum-shop-sidebar.active .wc-block-product-filters__overlay-dialog input[type="text"],
		.llum-shop-sidebar.active .wc-block-product-filters__overlay-dialog input[type="number"] {
			background: var(--llum-bg) !important;
			border: 1px solid var(--llum-border) !important;
			border-radius: 4px !important;
			padding: 8px 12px !important;
			color: var(--llum-text) !important;
			font-size: 14px !important;
		}
		
		/* Mejorar visibilidad de los grupos de filtros */
		.llum-shop-sidebar.active .wc-block-product-filters__overlay-dialog fieldset,
		.llum-shop-sidebar.active .wc-block-product-filters__overlay-dialog .wc-block-components-checkbox-group {
			border: none !important;
			padding: 0 !important;
			margin: 0 0 20px 0 !important;
		}
		
		/* Mejorar espaciado y visibilidad general */
		.llum-shop-sidebar.active .wc-block-product-filters__overlay-dialog > * {
			color: var(--llum-text) !important;
		}
	}
	
	/* Ajustar grid de productos en móvil - Mejorado */
	.products {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 15px !important;
	}
	
	.products .product figure {
		padding-top: 133.33%; /* Mantener aspect ratio 3:4 */
	}
	
	.products .product .woocommerce-loop-product__title {
		font-size: 15px;
		margin: 12px 12px 8px 12px;
		min-height: 45px;
	}
	
	.products .product .price {
		font-size: 18px;
		margin: 0 12px 12px 12px;
	}
	
	.products .product .button,
	.products .product .add_to_cart_button {
		padding: 12px 18px;
		font-size: 14px;
		margin: auto 12px 12px 12px;
	}
}

@media (max-width: 480px) {
	.llum-shop-sidebar {
		width: 90%;
		padding: 15px;
	}
	
	.llum-filter-title,
	.llum-shop-sidebar .widget-title {
		font-size: 14px;
	}
	
	.products {
		grid-template-columns: 1fr !important;
		gap: 20px !important;
	}
	
	.products .product .woocommerce-loop-product__title {
		font-size: 16px;
	}
	
	.products .product .price {
		font-size: 19px;
	}
}

/* ============================================
   ANIMACIONES
   ============================================ */

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.llum-filter-widget {
	animation: fadeIn 0.4s ease-out;
}

/* ============================================
   MEJORAS DE ACCESIBILIDAD
   ============================================ */

.llum-shop-sidebar:focus-within {
	outline: 2px solid var(--llum-accent);
	outline-offset: 2px;
}

.llum-filter-toggle:focus {
	outline: 2px solid var(--llum-bg);
	outline-offset: 2px;
}

.products .product .button:focus,
.products .product .add_to_cart_button:focus {
	outline: 2px solid var(--llum-accent);
	outline-offset: 2px;
}

/* ============================================
   CARRUSEL DE BANNERS PERSONALIZABLE
   ============================================ */

.llum-banners-carousel-wrapper {
	position: relative;
	width: 100%;
	height: var(--carousel-height, 500px);
	margin: 30px 0;
	overflow: hidden;
	border-radius: 0;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Altura automática cuando hay contenido personalizado */
.llum-banners-carousel-wrapper.llum-has-custom-content {
	height: auto;
	min-height: 0; /* Sin altura mínima para que se ajuste completamente al contenido */
}

.llum-banners-carousel {
	position: relative;
	width: 100%;
	height: 100%;
}

.llum-banners-carousel-wrapper.llum-has-custom-content .llum-banners-carousel {
	height: auto;
}

.llum-banner-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
	z-index: 1;
}

/* Cuando hay contenido personalizado, los slides no son absolutos */
.llum-banners-carousel-wrapper.llum-has-custom-content .llum-banner-slide {
	position: relative;
	height: auto;
	min-height: 0; /* Sin altura mínima para que se ajuste al contenido */
	display: block;
}

.llum-banners-carousel-wrapper.llum-has-custom-content .llum-banner-slide.active {
	position: relative;
	display: block;
}

/* Ocultar slides inactivos cuando hay contenido personalizado */
.llum-banners-carousel-wrapper.llum-has-custom-content .llum-banner-slide:not(.active) {
	display: none;
}

.llum-banner-slide.active {
	opacity: 1;
	visibility: visible;
	z-index: 2;
}

.llum-banner-link {
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none;
	color: inherit;
	position: relative;
}

/* Contenido personalizado desde el editor de bloques */
.llum-banner-custom-content {
	position: relative;
	width: 100%;
	z-index: 1;
	display: block;
}

/* Asegurar que los bloques de Gutenberg se muestren correctamente */
.llum-banner-custom-content > * {
	width: 100%;
}

/* Bloques de Stackable */
.llum-banner-custom-content .stk-block,
.llum-banner-custom-content .stk-block-content,
.llum-banner-custom-content .stk-inner-blocks {
	width: 100%;
}

/* Asegurar que los bloques de Gutenberg ocupen el espacio correcto */
.llum-banner-custom-content .wp-block-group,
.llum-banner-custom-content .wp-block-columns,
.llum-banner-custom-content .wp-block-cover {
	width: 100%;
}

/* Ajustar imágenes dentro del contenido personalizado */
.llum-banner-custom-content img {
	max-width: 100%;
	height: auto;
}

/* Carrusel de Stackable dentro del banner */
.llum-banner-custom-content .stk-carousel,
.llum-banner-custom-content .stk-carousel__wrapper {
	width: 100% !important;
	height: auto !important;
}

.llum-banner-custom-content .stk-carousel__slide {
	height: auto !important;
	min-height: auto !important;
}

/* Overlay solo para contenido personalizado - no debe afectar la altura */
.llum-banner-slide .llum-banner-overlay {
	pointer-events: none; /* No interfiere con el contenido */
}

/* Enlace overlay para contenido personalizado - solo si hay URL configurada */
.llum-banner-link-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 10;
	text-decoration: none;
	display: block;
	cursor: pointer;
	pointer-events: auto; /* Permite clics */
}

/* Asegurar que el overlay no interfiera con elementos interactivos */
.llum-banner-custom-content a,
.llum-banner-custom-content button {
	position: relative;
	z-index: 11;
	pointer-events: auto; /* Permite interacción con botones y enlaces */
}

.llum-banner-image-wrapper {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.llum-banner-image-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.llum-banner-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
	z-index: 1;
	pointer-events: none; /* No interfiere con el contenido */
}

/* Overlay en contenido personalizado - debe estar dentro del contenedor relativo */
.llum-banner-custom-content + .llum-banner-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 2;
}

.llum-banner-content {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 40px 50px;
	z-index: 2;
	text-align: center;
	color: #ffffff;
}

.llum-banner-title {
	font-size: 2.5rem;
	font-weight: 700;
	margin: 0 0 15px 0;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
	line-height: 1.2;
}

.llum-banner-description {
	font-size: 1.125rem;
	margin: 0 0 20px 0;
	text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
	line-height: 1.6;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

.llum-banner-button {
	display: inline-block;
	padding: 12px 30px;
	border: 2px solid currentColor;
	border-radius: 4px;
	font-size: 1rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: all 0.3s ease;
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(5px);
}

.llum-banner-button:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Flechas de navegación */
.llum-banner-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.2);
	border: none;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	cursor: pointer;
	z-index: 100; /* Z-index alto para que se vea sobre todo */
	display: flex !important; /* Forzar display para que siempre se vea */
	align-items: center;
	justify-content: center;
	color: #ffffff;
	transition: all 0.3s ease;
	backdrop-filter: blur(5px);
	opacity: 1 !important; /* Forzar opacidad */
	visibility: visible !important; /* Forzar visibilidad */
}

.llum-banner-arrow:hover {
	background: rgba(255, 255, 255, 0.3);
	transform: translateY(-50%) scale(1.1);
}

.llum-banner-arrow:active {
	transform: translateY(-50%) scale(0.95);
}

.llum-banner-arrow-prev {
	left: 20px;
}

.llum-banner-arrow-next {
	right: 20px;
}

.llum-banner-arrow svg {
	width: 24px;
	height: 24px;
}

/* Dots de navegación */
.llum-banner-dots {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
	z-index: 10;
}

.llum-banner-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.5);
	background: transparent;
	cursor: pointer;
	padding: 0;
	transition: all 0.3s ease;
}

.llum-banner-dot:hover {
	background: rgba(255, 255, 255, 0.5);
	transform: scale(1.2);
}

.llum-banner-dot.active {
	background: #ffffff;
	border-color: #ffffff;
	transform: scale(1.3);
}

/* Mensaje cuando no hay banners */
.llum-banners-empty {
	text-align: center;
	padding: 40px 20px;
	color: var(--llum-text-light);
	font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
	.llum-banners-carousel-wrapper {
		height: var(--carousel-height, 400px);
		margin: 20px 0;
		border-radius: 0;
	}
	
	.llum-banner-content {
		padding: 30px 25px;
	}
	
	.llum-banner-title {
		font-size: 1.75rem;
		margin-bottom: 10px;
	}
	
	.llum-banner-description {
		font-size: 1rem;
		margin-bottom: 15px;
	}
	
	.llum-banner-button {
		padding: 10px 25px;
		font-size: 0.9rem;
	}
	
	.llum-banner-arrow {
		width: 40px;
		height: 40px;
	}
	
	.llum-banner-arrow-prev {
		left: 10px;
	}
	
	.llum-banner-arrow-next {
		right: 10px;
	}
	
	.llum-banner-arrow svg {
		width: 20px;
		height: 20px;
	}
	
	.llum-banner-dots {
		bottom: 15px;
		gap: 8px;
	}
	
	.llum-banner-dot {
		width: 10px;
		height: 10px;
	}
}

@media (max-width: 480px) {
	.llum-banners-carousel-wrapper {
		height: var(--carousel-height, 300px);
	}
	
	.llum-banner-content {
		padding: 20px 15px;
	}
	
	.llum-banner-title {
		font-size: 1.5rem;
	}
	
	.llum-banner-description {
		font-size: 0.9rem;
		display: none; /* Ocultar descripción en móvil muy pequeño */
	}
	
	.llum-banner-button {
		padding: 8px 20px;
		font-size: 0.85rem;
	}
}

/* ============================================
   PERSONALIZACIÓN DE PÁGINAS DE CATEGORÍAS
   ============================================ */

/* Personalización de la hero-section en categorías */
.woocommerce-page .hero-section.is-width-constrained {
	margin-bottom: 60px;
	padding-bottom: 0;
}

/* Título de categoría personalizado - Diseño mejorado */
.woocommerce-page .hero-section.is-width-constrained .page-title {
	color: var(--llum-primary, #00484e);
	font-size: 3rem;
	font-weight: 700;
	margin-bottom: 30px;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

@media (max-width: 1024px) {
	.woocommerce-page .hero-section.is-width-constrained .page-title {
		font-size: 2.5rem;
	}
}

@media (max-width: 768px) {
	.woocommerce-page .hero-section.is-width-constrained .page-title {
		font-size: 2rem;
		margin-bottom: 25px;
	}
}

/* Contenedor personalizado para descripción y vídeo - Diseño mejorado */
.llum-category-custom-content {
	width: 100% !important;
	max-width: none !important;
	margin: 0 0 60px 0 !important;
	padding: 0 !important;
	position: relative;
}

.llum-category-content-wrapper {
	display: flex;
	gap: 50px;
	align-items: flex-start;
	background: #ffffff;
	padding: 40px;
	border-radius: 12px;
	box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
	/* Usar el mismo ancho que el hero-section y productos */
	width: 100%;
	max-width: 100%;
}

@media (max-width: 1024px) {
	.llum-category-content-wrapper {
		gap: 35px;
		padding: 30px;
	}
}

@media (max-width: 768px) {
	.llum-category-content-wrapper {
		flex-direction: column;
		gap: 30px;
		padding: 25px 20px;
		margin-left: 0;
		margin-right: 0;
	}
}

/* Descripción a la izquierda (70%) - Diseño mejorado */
.llum-category-description {
	flex: 0 0 70%;
	max-width: 70%;
}

.llum-category-description p {
	text-align: justify;
	line-height: 1.9;
	color: var(--llum-text, #4a4a4a);
	font-size: 1.05rem;
	margin-bottom: 1.2em;
	font-weight: 400;
}

.llum-category-description p:first-child {
	margin-top: 0;
	font-size: 1.1rem;
	color: var(--llum-text, #333);
}

.llum-category-description p:last-child {
	margin-bottom: 0;
}

/* Vídeo a la derecha (30%) - Diseño mejorado con popup */
.llum-category-video {
	flex: 0 0 30%;
	max-width: 30%;
	position: sticky;
	top: 100px;
	align-self: flex-start;
}

@media (max-width: 1024px) {
	.llum-category-video {
		position: relative;
		top: auto;
	}
}

/* Video popup - estilo sutil con solo flecha de play */
.llum-video-popup {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 aspect ratio */
	height: 0;
	overflow: hidden;
	border-radius: 12px;
	background: transparent;
	cursor: pointer;
	transition: opacity 0.3s ease;
}

.llum-video-popup:hover {
	opacity: 0.9;
}

.llum-video-popup__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border-radius: 12px;
}

.llum-video-popup__play-button {
	opacity: 0.8;
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.llum-video-popup:hover .llum-video-popup__play-button {
	opacity: 1;
	transform: scale(1.15);
}

.llum-video-popup__play-button svg path {
	fill: #7f715c;
	transition: fill 0.3s ease;
}

.llum-video-popup:hover .llum-video-popup__play-button svg path {
	fill: #7f715c;
}

/* Iframe del video - se muestra cuando se hace clic */
.llum-video-iframe {
	border: 0;
	border-radius: 12px;
}

@media (max-width: 768px) {
	.llum-video-modal__content {
		width: 95%;
	}
	
	.llum-video-modal__close {
		top: -35px;
		font-size: 35px;
	}
}

/* Responsive: en móvil, apilar verticalmente */
@media (max-width: 768px) {
	.llum-category-content-wrapper {
		flex-direction: column;
		gap: 30px;
	}
	
	.llum-category-description,
	.llum-category-video {
		flex: 1 1 100%;
		max-width: 100%;
	}
	
	.llum-category-description {
		order: 1;
	}
	
	.llum-category-video {
		order: 2;
		position: relative;
		top: auto;
	}
	
	.llum-category-description p {
		font-size: 1rem;
		text-align: left; /* En móvil, mejor left que justify */
	}
}

/* Si solo hay descripción sin vídeo, usar todo el ancho */
.llum-category-content-wrapper:only-child .llum-category-description,
.llum-category-content-wrapper .llum-category-description:only-of-type {
	flex: 1 1 100%;
	max-width: 100%;
}

/* Si solo hay vídeo sin descripción, usar todo el ancho */
.llum-category-content-wrapper:only-child .llum-category-video,
.llum-category-content-wrapper .llum-category-video:only-of-type {
	flex: 1 1 100%;
	max-width: 100%;
}

/* Separador visual antes de los productos */
.woocommerce-page .llum-category-custom-content + .woo-listing-top {
	margin-top: 40px;
	padding-top: 40px;
	border-top: 1px solid rgba(0, 72, 78, 0.1);
}

/* Mejorar espaciado del grid de productos */
.products {
	gap: 30px !important;
}

@media (max-width: 1200px) {
	.products {
		gap: 25px !important;
	}
}

/* Separador visual en top de productos */
.woo-listing-top {
	border-bottom: 2px solid rgba(0, 72, 78, 0.1);
	padding-bottom: 25px;
	margin-bottom: 40px;
}

/* Mejorar contraste en sidebar */
/* Estilos generales del sidebar - Solo para desktop */
	.llum-shop-sidebar {
	background: rgba(248, 248, 248, 0.5);
	padding: 25px;
	border-radius: 12px;
	border: 1px solid rgba(0, 72, 78, 0.08);
}

/* En móvil, el sidebar tiene fondo sólido para mejor visibilidad */
@media (max-width: 768px) {
	.llum-shop-sidebar {
		background: #f8f8f8 !important;
		background-color: #f8f8f8 !important;
	}
}

/* ============================================
   MEJORAS SUTILES PARA PÁGINA DE PRODUCTO
   ============================================ */

/* Título del producto - Ajuste sutil */
.single-product .product_title {
	color: var(--llum-primary);
}


.single-product .price del {
	color: var(--llum-text-light);
	opacity: 0.7;
}

/* Descripción corta - Mejor legibilidad */
.single-product .woocommerce-product-details__short-description {
	margin: 20px 0;
	line-height: 1.7;
}

.single-product .woocommerce-product-details__short-description p {
	margin-bottom: 1em;
}

/* Botón añadir al carrito - Mejora sutil */
.single-product .single_add_to_cart_button,
.single-product button[type="submit"].single_add_to_cart_button {
	transition: opacity 0.2s ease;
}

.single-product .single_add_to_cart_button:hover,
.single-product button[type="submit"].single_add_to_cart_button:hover {
	opacity: 0.9;
}

/* Meta información - Mejor separación */
.single-product .product_meta {
	margin-top: 30px;
	padding-top: 20px;
}

.single-product .product_meta a {
	color: var(--llum-primary);
	transition: color 0.2s ease;
}

.single-product .product_meta a:hover {
	color: var(--llum-accent);
}


.single-product .wc-tabs li a {
	transition: color 0.2s ease;
}

.single-product .wc-tabs li.active a,
.single-product .wc-tabs li a:hover {
	color: var(--llum-primary);
}

/* Contenido de pestañas - Mejor legibilidad */
.single-product .woocommerce-Tabs-panel {
	line-height: 1.7;
}

.single-product .woocommerce-Tabs-panel h2,
.single-product .woocommerce-Tabs-panel h4 {
	color: var(--llum-primary);
	margin-top: 25px;
	margin-bottom: 15px;
}

.single-product .woocommerce-Tabs-panel h2:first-child,
.single-product .woocommerce-Tabs-panel h4:first-child {
	margin-top: 0;
}

/* Productos relacionados - Mejor separación */
.single-product .related.products {
	padding-top: 40px;
	border-top: 1px solid var(--llum-border);
}

.single-product .related.products > h2 {
	color: var(--llum-primary);
	margin-bottom: 30px;
}