/**
 * RiversideHiFi - Shop Styles
 * Estilos específicos para páginas de tienda y productos
 */

/* ========================================
   LAYOUT DE TIENDA
======================================== */
.rh-shop-wrapper {
	background-color: transparent;
	min-height: auto;
	padding-bottom: 3rem;
		padding-top: 1rem;
}

.rh-shop-layout {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 1.2rem;
	position: relative;
}

.rh-shop-sidebar {
	/* position: relative; */
	/* z-index: 1000; */

	& .rh-sidebar-toggle {
		display: none;
		width: auto;
		padding: 0.81rem 1rem;
		background: #0ea5ea;
		color: #fff !important;
		border: none;
		border-radius: 9px;
		font-size: 1.1rem;
		font-weight: 600;
		cursor: pointer;
		margin-bottom: 1rem;
		transition: background-color 0.2s;

		&:hover {
			background-color: #0d92d1;
		}

		& i {
			margin-right: 0.5rem;
			vertical-align: middle;
		}
	}

	& .rh-sidebar-inner {
		background: var(--rh-bg-white);
		border: 1px solid var(--rh-border);
		border-radius: var(--rh-radius-lg);
		padding: 1.5rem;
		box-shadow: var(--rh-shadow-sm);
	}

	& .rh-sidebar-mobile-header {
		display: none;
	}
}



@media (min-width: 1400px) {
	.rh-shop-layout {
		grid-template-columns: 350px 1fr;
	}
}

@media (max-width: 1200px) {
	.rh-shop-layout {
		grid-template-columns: 200px 1fr;
	}
}

/* ========================================
   BREADCRUMBS
======================================== */
.rh-breadcrumbs {
	background-color: var(--rh-background-alt);
	padding: 1rem 0;
	margin-bottom: 2rem;
}

.rh-breadcrumb-nav {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: var(--rh-text-light);
}

.rh-breadcrumb-nav a {
	color: var(--rh-text-light);
}

.rh-breadcrumb-nav a:hover {
	color: var(--rh-primary);
}

/* ========================================
   HEADER DE TIENDA
======================================== */
.rh-shop-header {
	background: transparent;
	padding: 1.5rem 0;
	margin-bottom: 1.5rem;
	text-align: center;
}

.rh-page-title,
.woocommerce-products-header__title {
	font-size: 2rem;
	font-weight: 700;
	margin: 0 0 0.75rem;
	color: #1f2937;
}

.term-description {
	font-size: 1rem;
	color: #6b7280;
	max-width: 600px;
	margin: 0 auto;
}

/* ========================================
   SIDEBAR
======================================== */
.rh-sidebar-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 999;
}

.rh-filter-title {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 1.5rem;
	color: #1f2937;
	letter-spacing: -0.01em;
	position: relative;
}

.rh-filter-title svg {
	width: 20px;
	height: 20px;
	color: #0EA5E9;
	opacity: 0.9;
	transition: transform 0.2s ease;
}

.rh-filter-section:hover .rh-filter-title svg {
	transform: rotate(-5deg);
}

.rh-filter-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.rh-filter-section--categories {
	max-height: 650px !important;
	overflow: hidden !important;
}

.rh-filter-section--categories .rh-filter-list {
	max-height: 560px !important;
	overflow-y: scroll !important;
	overflow-x: hidden !important;
	scrollbar-width: thin;
	scrollbar-color: #d1d5db transparent;
}

.rh-filter-section--categories .rh-filter-list::-webkit-scrollbar {
	width: 4px;
}

.rh-filter-section--categories .rh-filter-list::-webkit-scrollbar-track {
	background: transparent;
}

.rh-filter-section--categories .rh-filter-list::-webkit-scrollbar-thumb {
	background-color: #d1d5db;
	border-radius: 4px;
}

.rh-filter-item {
	margin-bottom: 0.5rem;
}

.rh-filter-item a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1px 11px 6px 6px;
	color: #374151;
	border-radius: 8px;
	transition: all 0.2s;
	text-decoration: none;
}

.rh-filter-item a:hover,
.rh-filter-item.active a {
	background-color: #ecfeff;
	color: #0EA5E9;
}

span.rh-filter-name {
	font-size: 14px;
	padding: 2px 4px 0px 0px;
}

.rh-filter-count {
	display: none;
}

/* ========================================
   FILTRO DE PRECIOS
======================================== */
.rh-filter-section {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 1rem 18px;
	margin-bottom: 1.5rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	transition: box-shadow 0.3s ease;
}

.rh-filter-section:last-child {
	margin-bottom: 0;
}

.rh-filter-section:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Ocultar el título original de WooCommerce */
.rh-filter-section .widgettitle {
	display: none;
}

/* Wrapper del slider */
.price_slider_wrapper {
	padding: 0;
}

/* Slider principal */
.price_slider {
	position: relative;
	height: 4px;
	background: #e5e7eb;
	border-radius: 10px;
	margin: 1rem 0 1.5rem;
	cursor: pointer;
}

/* Barra de rango seleccionado */
.price_slider .ui-slider-range {
	position: absolute;
	height: 100%;
	background: #0EA5E9;
	border-radius: 10px;
}

/* Handles (pomos) del slider */
.price_slider .ui-slider-handle {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	background: #ffffff;
	border: 2px solid #0EA5E9;
	border-radius: 50%;
	cursor: grab;
	outline: none;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
	transition: all 0.2s ease;
	z-index: 2;
}

.price_slider .ui-slider-handle:hover {
	transform: translateY(-50%) scale(1.1);
	background: #0EA5E9;
}

.price_slider .ui-slider-handle:first-of-type,
.price_slider .ui-slider-handle:last-of-type {
	margin-left: -9px;
}

/* Área de valores y botón */
.price_slider_amount {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: 0.5rem;
}

/* Etiqueta de precio */
.price_label {
	flex: 1;
	padding: 0.35rem 0.5rem;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	font-size: 0.75rem;
	font-weight: 500;
	color: #4b5563;
	text-align: center;
}

.price_label .from,
.price_label .to {
	font-weight: 600;
	color: #111827;
}

/* Botón de filtro */
.price_slider_amount .button {
	padding: 0.4rem 1rem;
	background: #0EA5E9;
	color: #ffffff;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.2s;
}

.price_slider_amount .button:hover {
	background: #0284c7;
	transform: none;
	box-shadow: none;
}

/* Sección específica de precio */
.rh-filter-section--price {
	padding: 1rem 14px !important;
}

.rh-filter-section--price .rh-filter-title {
	margin-bottom: 0.75rem;
}

/* Campos ocultos */
.price_slider_amount input[type="text"] {
	display: none !important;
}

/* Estados de carga */
.price_slider_amount .button.loading {
	opacity: 0.7;
	cursor: wait;
	pointer-events: none;
	position: relative;
	color: transparent;
}

.price_slider_amount .button.loading::after {
	content: '';
	position: absolute;
	width: 16px;
	height: 16px;
	top: 50%;
	left: 50%;
	margin: -8px 0 0 -8px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: spin 0.6s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* ========================================
   BUSCADOR DE PRODUCTOS
======================================== */
.woocommerce-product-search button[type="submit"] {
	display: none !important;
}

.woocommerce-product-search {
	display: flex;
	align-items: center;
	position: relative;
	width: 100%;
}

.woocommerce-product-search .search-field {
	width: 100%;
	height: 48px;
	padding: 12px 48px 12px 16px;
	font-size: 0.95rem;
	color: #1a1a1a;
	background-color: #ffffff;
	border: 2px solid #e0e0e0;
	border-radius: 12px;
	outline: none;
	transition: all 0.2s ease;
	box-sizing: border-box;
}

.woocommerce-product-search .search-field:focus {
	border-color: #000000;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.woocommerce-product-search .search-field::placeholder {
	color: #999;
	font-weight: 300;
	opacity: 1;
}

.woocommerce-product-search::after {
	content: '';
	position: absolute;
	right: 16px;
	width: 20px;
	height: 20px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23666'%3E%3Cpath d='M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z'%3E%3C/path%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	pointer-events: none;
	opacity: 0.6;
	transition: opacity 0.2s ease;
}

.woocommerce-product-search:focus-within::after {
	opacity: 1;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23000'%3E%3Cpath d='M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z'%3E%3C/path%3E%3C/svg%3E");
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

/* ========================================
   TOOLBAR
======================================== */
.rh-shop-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.5rem;
	background-color: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	margin-bottom: 1.5rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.woocommerce-result-count {
	margin: 0;
	font-size: 0.875rem;
	color: #6b7280;
	font-weight: 500;
}

.woocommerce-ordering select {
	padding: 0.5rem 2rem 0.5rem 1rem;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background-color: #ffffff;
	color: #374151;
	font-size: 0.875rem;
	cursor: pointer;
	transition: border-color 0.2s;
}

.woocommerce-ordering select:hover {
	border-color: #0EA5E9;
}

.woocommerce-ordering select:focus {
	outline: none;
	border-color: #0EA5E9;
	box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* ========================================
   PRODUCTOS - TARJETAS CLARAS Y MODERNAS
======================================== */
.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce ul.products li.product {
	margin: 0;
	padding: 0;
	background-color: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	position: relative;
}

.woocommerce ul.products li.product:hover {
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
	transform: translateY(-4px);
	border-color: #0EA5E9;
}

.woocommerce ul.products li.product .rh-product-image {
	position: relative;
	overflow: hidden;
	background-color: #f9fafb;
}

.woocommerce ul.products li.product .rh-product-image a {
	display: block;
	position: relative;
}

.woocommerce ul.products li.product img {
	width: 100%;
	height: auto;
	aspect-ratio: 1/1;
	object-fit: cover;
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	background-color: #f9fafb;
}

.woocommerce ul.products li.product:hover img {
	transform: scale(1.05);
}

.woocommerce ul.products li.product .rh-product-content {
	padding: 1rem;
}

.woocommerce ul.products li.product .rh-product-category {
	font-size: 0.75rem;
	color: #6b7280;
	margin-bottom: 0.5rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.woocommerce ul.products li.product .rh-product-title {
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 0.75rem;
	line-height: 1.4;
}

.woocommerce ul.products li.product .rh-product-title a {
	color: #1f2937;
	text-decoration: none;
	transition: color 0.2s;
}

.woocommerce ul.products li.product .rh-product-title a:hover {
	color: #0EA5E9;
}

.woocommerce ul.products li.product .rh-product-price {
	font-size: 1.25rem;
	font-weight: 700;
	color: #0EA5E9;
	margin-bottom: 0.75rem;
}

.woocommerce ul.products li.product .rh-product-price del {
	font-size: 0.875rem;
	color: #9ca3af;
	margin-right: 0.5rem;
	font-weight: 500;
}

.woocommerce ul.products li.product .rh-product-price ins {
	text-decoration: none;
	color: #ef4444;
	font-weight: 700;
}

.woocommerce ul.products li.product .rh-product-actions {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 1rem;
	background: linear-gradient(to top, rgba(255, 255, 255, 0.95), transparent);
	opacity: 0;
	transform: translateY(10px);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	pointer-events: none;
}

.woocommerce ul.products li.product:hover .rh-product-actions {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.woocommerce ul.products li.product .button {
	width: 164px;
	padding: 12px 14px;
	background: #0EA5E9;
	color: #ffffff;
	font-size: 0.875rem;
	line-height: 1.1;
	font-weight: 600;
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border: none;
	border-radius: 5px;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	box-shadow: 0 2px 8px rgba(14, 165, 233, 0.2);
}

.woocommerce ul.products li.product .button:hover {
	background: #0284c7;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.woocommerce ul.products li.product .button:active {
	transform: translateY(0);
}

.woocommerce ul.products li.product .button::before {
	content: "";
	display: inline-block;
	width: 16px;
	height: 16px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6h15l-1.5 9h-12L5 3H3'/%3E%3Ccircle cx='9' cy='20' r='1'/%3E%3Ccircle cx='18' cy='20' r='1'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

/* Badges */
.rh-badge {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	padding: 0.375rem 0.75rem;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	border-radius: 6px;
	z-index: 5;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rh-badge-sale {
	background: #ef4444;
	color: #ffffff;
}

.rh-badge-featured {
	background: #f59e0b;
	color: #ffffff;
	top: 3rem;
}

.onsale {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	padding: 0.375rem 0.75rem;
	background: #ef4444;
	color: #ffffff;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	border-radius: 6px;
	z-index: 5;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ========================================
   PAGINACIÓN
======================================== */
.woocommerce-pagination {
	margin-top: 2.5rem;
	text-align: center;
}

.woocommerce-pagination ul {
	display: inline-flex;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.woocommerce-pagination a,
.woocommerce-pagination span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 0.75rem;
	background-color: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	color: #374151;
	font-weight: 600;
	transition: all 0.2s;
	text-decoration: none;
}

.woocommerce-pagination a:hover,
.woocommerce-pagination .current {
	background-color: #0EA5E9;
	border-color: #0EA5E9;
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(14, 165, 233, 0.2);
}

/* ========================================
   CATEGORÍAS
======================================== */
.rh-category-card {
	list-style: none;
	background-color: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.3s;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.rh-category-card:hover {
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
	transform: translateY(-4px);
	border-color: #0EA5E9;
}

.rh-category-image {
	position: relative;
	overflow: hidden;
	background-color: #f9fafb;
	aspect-ratio: 4/3;
}

.rh-category-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.rh-category-card:hover .rh-category-image img {
	transform: scale(1.05);
}

.rh-category-content {
	padding: 1.5rem;
}

.rh-category-title {
	font-size: 1.125rem;
	font-weight: 600;
	margin: 0 0 0.5rem;
	color: #1f2937;
	word-break: break-word;
	overflow-wrap: break-word;
}

.rh-category-desc {
	font-size: 0.875rem;
	color: #6b7280;
	margin: 0;
	line-height: 1.5;
	word-break: break-word;
	overflow-wrap: break-word;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1024px) {
	.rh-shop-layout {
		grid-template-columns: 280px 1fr;
	}

	.rh-sidebar-inner {
		display: block;
	}

	.rh-shop-sidebar {
		/* position: relative; */
		top: 0;
		max-height: none;
		/* z-index: 1000; */
	}

	.woocommerce ul.products {
		grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
		gap: 1rem;
	}
}

@media (max-width: 768px) {

	.rh-page-title,
	.woocommerce-products-header__title {
		font-size: 2rem;
	}

	span.rh-filter-name {
		font-size: 12px;
	}

	.rh-shop-toolbar {
		flex-direction: column;
		gap: 1rem;
		align-items: stretch;
	}

	.woocommerce ul.products {
		grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
		gap: 1rem;
	}

	.rh-filter-section {
		padding: 1rem 18px;
	}

	.rh-filter-title {
		font-size: 0.9375rem;
		margin-bottom: 1.25rem;
	}

	.rh-filter-title svg {
		width: 18px;
		height: 18px;
	}

	.price_slider {
		margin: 0.5rem 0 1.5rem;
	}

	.price_slider .ui-slider-handle {
		width: 20px;
		height: 20px;
	}

	.price_slider_amount {
		flex-direction: column;
		gap: 0.75rem;
	}

	.price_label {
		width: 100%;
		font-size: 0.875rem;
	}

	.price_slider_amount .button {
		width: 100%;
		padding: 0.75rem;
	}
}

@media (max-width: 500px) {

	.rh-page-title,
	.woocommerce-products-header__title {
		font-size: 1.5rem;
	}

	.woocommerce-product-search .search-field {
		height: 44px;
		font-size: 0.9rem;
	}

	.rh-filter-section {
		padding: 1rem 18px;
	}

	.rh-filter-title {
		margin-bottom: 1rem;
	}

	.price_slider .ui-slider-handle {
		width: 18px;
		height: 18px;
	}

	.price_slider .ui-slider-handle:first-of-type,
	.price_slider .ui-slider-handle:last-of-type {
		margin-left: -9px;
	}

	.rh-shop-layout {
		grid-template-columns: 1fr;
	}

	.woocommerce ul.products {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.5rem;
	}

	/* Cards más compactas en mobile */
	.rh-category-content {
		padding: 0.625rem 0.75rem;
	}

	.rh-category-title {
		font-size: 0.75rem;
		margin-bottom: 0.25rem;
	}

	.rh-category-card {
		border-radius: 8px;
	}

	.rh-sidebar-inner {
		width: 100%;
	}
}

/* Por debajo de 320px vuelve a 1 columna — demasiado estrecho para 50/50 */
@media (max-width: 319px) {
	.woocommerce ul.products {
		grid-template-columns: 1fr;
	}
}

@media (min-width: 501px) and (max-width: 768px) {
	.rh-shop-layout {
		grid-template-columns: 220px 1fr;
	}

	.woocommerce ul.products {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.75rem;
	}

	.rh-category-content {
		padding: 0.875rem 1rem;
	}

	.rh-category-title {
		font-size: 0.875rem;
		margin-bottom: 0.25rem;
	}

	.rh-category-desc {
		font-size: 0.75rem;
		-webkit-line-clamp: 2;
		line-clamp: 2;
	}
}

/* ========================================
   REDUCED MOTION
======================================== */
@media (prefers-reduced-motion: reduce) {

	.rh-filter-section,
	.rh-filter-title svg,
	.price_slider .ui-slider-handle,
	.price_slider_amount .button,
	.price_slider_amount .button::before,
	.woocommerce ul.products li.product,
	.woocommerce ul.products li.product img,
	.rh-category-card,
	.rh-category-image img {
		transition: none !important;
		animation: none !important;
		transform: none !important;
	}
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1024px) {
	.rh-shop-wrapper {
		width: 100%;
		overflow-x: hidden;
	}

	.rh-shop-container.container {
		width: 100% !important;
		max-width: 100% !important;
		padding: 27px 15px 0px 15px !important;
		margin: 0 !important;
	}

	.rh-shop-layout {
		display: block;
		width: 100%;
	}

	.rh-shop-sidebar .rh-sidebar-toggle {
		display: flex;
	}

	.rh-shop-sidebar .rh-sidebar-inner {
		position: fixed;
		top: 0;
		left: 0;
		transform: translateX(-100%);
		width: 300px; /* Ancho fijo razonable */
		height: 100vh;
		background: #ffffff;
		z-index: 91000; /* Aumentar z-index */
		border-radius: 0;
		box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
		transition: transform 0.3s ease;
		display: flex !important;
		flex-direction: column;
		padding: 0 !important;
		overflow: hidden;

		&.active {
			transform: translateX(0);
		}
	}

	.rh-sidebar-mobile-header {
		display: flex !important;
		align-items: center;
		justify-content: space-between;
		padding: 1.25rem 1.5rem;
		background: #ffffff;
		border-bottom: 1px solid #e5e7eb;
		flex-shrink: 0;

		& span {
			font-size: 1.1rem;
			font-weight: 700;
			color: #111827;
		}
	}

	.rh-sidebar-content {
		flex: 1;
		overflow-y: auto;
		padding: 0.7rem;
		-webkit-overflow-scrolling: touch;
	}

	.rh-sidebar-close {
		display: flex !important;
		align-items: center;
		justify-content: center;
		width: 20px !important;
		height: 25px !important;
		padding: 14px 16px !important;
		background: #ef4444 !important;
		border: 1px solid #d53333 !important;
		border-radius: 50%;
		cursor: pointer;
		color: #fdfdfd !important;
		z-index: 910001;
		/* position: absolute; */
		/* right: 0; */
		/* top: 43px; */

		&:hover {
			background: #e5e7eb;
			color: #000;
		}

		& i {
			font-size: 1.25rem;
			font-weight: bold;
		}
	}

	/* Ocultar widget de búsqueda en móvil */
	.rh-filter-section--search {
		display: none !important;
	}

	/* Ajustar tamaño de secciones en móvil */
	.rh-filter-section {
		padding: 1rem !important;
		margin-bottom: 1rem !important;
		border-radius: 8px !important;
	}

	.rh-filter-section--categories {
		max-height: none !important;
		margin: 0 0 1rem 0 !important;
	}

	.rh-filter-section--categories .rh-filter-list {
		max-height: 250px !important;
		overflow-y: auto !important;
	}

	.rh-sidebar-overlay {
		display: block;
		background-color: rgba(0, 0, 0, 0.6);
		z-index: 999;
	}

	.rh-product-price,
	li.product .price {
		font-size: 0.825rem !important;
	}

	.rh-product-title,
	.woocommerce-loop-product__title {
		font-size: 0.71rem !important;
	}
}

@media (max-width: 768px) {
	.rh-shop-toolbar {
		flex-direction: column;
		gap: 1rem;
		align-items: stretch;
	}

	.rh-shop-toolbar .woocommerce-result-count {
		text-align: center;
	}

	.rh-shop-toolbar .woocommerce-ordering {
		text-align: center;
	}
}

@media (max-width: 480px) {
	.rh-shop-sidebar .rh-sidebar-inner {
		width: 280px; /* Un poco más estrecho en móviles muy pequeños */
	}
}

@keyframes slideInLeft {
	from { transform: translateX(-100%); }
	to { transform: translateX(0); }
}
