/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* combi-buscador-categorias
 * Selector "Seleccionar categoría" del buscador: mostrar solo las 11 categorías
 * pedidas por el cliente, en una lista plana.
 * - Las categorías agrupadoras (Ventiladores, Ventiladores industriales,
 *   Ventiladores de techo, Estufas) se ocultan y sus hijas suben de nivel.
 * - Se ocultan: De pedestal, subcategorías de Extractores y Sin categoría.
 */
.wd-dropdown-search-cat .cat-item-49,
.wd-dropdown-search-cat .cat-item-106,
.wd-dropdown-search-cat .cat-item-40,
.wd-dropdown-search-cat .cat-item-75,
.wd-dropdown-search-cat .cat-item-49 > .children,
.wd-dropdown-search-cat .cat-item-106 > .children,
.wd-dropdown-search-cat .cat-item-40 > .children,
.wd-dropdown-search-cat .cat-item-75 > .children {
	display: contents;
}
.wd-dropdown-search-cat .cat-item-49 > a,
.wd-dropdown-search-cat .cat-item-106 > a,
.wd-dropdown-search-cat .cat-item-40 > a,
.wd-dropdown-search-cat .cat-item-75 > a,
.wd-dropdown-search-cat .cat-item-160,
.wd-dropdown-search-cat .cat-item-31 > .children,
.wd-dropdown-search-cat .cat-item-184,
.wd-dropdown-search-cat .cat-item-23,
.wd-dropdown-search-cat .cat-item-172 {
	display: none;
}
/* combi-buscador-categorias: sin sangría para las categorías que subieron de nivel */
.wd-dropdown-search-cat .children a.pf-value {
	padding-left: 0;
}

/* combi-movil: ajustes para celulares
 * 1. Menú móvil > Categorías: mostrar la flecha para desplegar las subcategorías
 *    de Ventiladores y Estufas (el tema la oculta en ítems con bloque HTML).
 */
.mobile-categories-menu .menu-item-28960 > .wd-nav-opener,
.mobile-categories-menu .menu-item-29202 > .wd-nav-opener {
	display: flex !important;
}
.mobile-categories-menu .wd-sub-menu .wd-nav-img {
	display: none;
}

@media (max-width: 767px) {
	/* 2. Listados de productos: ocultar la lista larga de categorías bajo cada producto */
	.wd-product .wd-product-cats {
		display: none;
	}
	/* 3. Ficha de producto: títulos de oferta de la descripción corta más compactos */
	.woocommerce-product-details__short-description h1,
	.woocommerce-product-details__short-description h2 {
		font-size: 22px;
		line-height: 1.3;
		margin-bottom: 8px;
	}
}

/* combi-franja-proyecto: franja azul bajo el banner de la Tienda (ver functions.php) */
.combi-franja-proyecto {
	grid-column: 1 / -1;
	order: -1;
	background: var(--wd-primary-color, #1f6fd1);
	box-shadow: 0 0 0 100vmax var(--wd-primary-color, #1f6fd1);
	clip-path: inset(0 -100vmax);
	text-align: center;
	padding: 16px 0;
}
.combi-franja-proyecto a {
	color: #fff;
	font-size: 17px;
	display: inline-block;
}
.combi-franja-proyecto a strong {
	text-decoration: underline;
	text-underline-offset: 3px;
}
.combi-franja-proyecto a:hover {
	color: #fff;
	opacity: .85;
}
@media (max-width: 767px) {
	.combi-franja-proyecto a {
		font-size: 15px;
		padding: 0 10px;
	}
}
/* combi-franja-proyecto: franja pegada al banner (sin espacio blanco arriba) */
main.wd-content-layout:has(> .combi-franja-proyecto) {
	padding-top: 0;
}

/* combi-footer-movil: enlaces inferiores del footer en celular,
 * sin separadores sueltos al final de línea y con más aire entre filas. */
@media (max-width: 767px) {
	.wd-footer .elementor-icon-list-items.elementor-inline-items {
		justify-content: center;
		row-gap: 10px;
		column-gap: 22px;
	}
	.wd-footer .elementor-icon-list-items.elementor-inline-items .elementor-icon-list-item {
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
	.wd-footer .elementor-icon-list-items.elementor-inline-items .elementor-icon-list-item::after {
		display: none;
	}
}
