/**
 * Learning Fun + Shoptimizer — marca y tienda
 * Colores: primary #0C71C3, accent #F9CC00, dark #0D1B2A, surface #F4F7FA, danger #DD3333
 */

body.lf-lf-brand {
	--lf-primary: #0c71c3;
	--lf-primary-dark: #095593;
	--lf-accent: #f9cc00;
	--lf-dark: #0d1b2a;
	--lf-muted: #607d8b;
	--lf-surface: #f4f7fa;
	--lf-danger: #dd3333;
	font-family: "DM Sans", system-ui, -apple-system, sans-serif !important;
	color: var(--lf-dark);
	background-color: var(--lf-surface) !important;
}

body.lf-lf-brand .site,
body.lf-lf-brand #page {
	background-color: var(--lf-surface) !important;
}

body.lf-lf-brand #masthead.site-header {
	background: #fff !important;
	box-shadow: 0 2px 20px rgba(13, 27, 42, 0.06) !important;
	border-bottom: 1px solid rgba(12, 113, 195, 0.12) !important;
}

body.lf-lf-brand .main-header {
	background: transparent !important;
}

/* Navegación clara (sin barra negra): alinea con cabecera blanca y marca LF */
body.lf-lf-brand .col-full-nav {
	background: #fff !important;
	border-top: 1px solid rgba(12, 113, 195, 0.12) !important;
	border-bottom: 1px solid rgba(13, 27, 42, 0.06) !important;
	box-shadow: 0 6px 24px rgba(13, 27, 42, 0.04) !important;
}

body.lf-lf-brand #site-navigation.main-navigation,
body.lf-lf-brand #site-navigation.main-navigation ul.menu {
	background: transparent !important;
}

body.lf-lf-brand #site-navigation.main-navigation ul.menu > li > a {
	color: var(--lf-dark) !important;
	font-weight: 600 !important;
	font-family: "Nunito", sans-serif !important;
}

body.lf-lf-brand #site-navigation.main-navigation ul.menu > li > a:hover,
body.lf-lf-brand #site-navigation.main-navigation ul.menu > li.current-menu-item > a {
	color: var(--lf-primary) !important;
}

body.lf-lf-brand #site-navigation.main-navigation ul.menu ul.sub-menu {
	background: #fff !important;
	border-radius: 0.75rem !important;
	box-shadow: 0 12px 40px rgba(13, 27, 42, 0.12) !important;
}

body.lf-lf-brand #site-navigation.main-navigation ul.menu ul.sub-menu a {
	color: var(--lf-dark) !important;
}

body.lf-lf-brand #site-navigation.main-navigation ul.menu ul.sub-menu a:hover {
	color: var(--lf-primary) !important;
}

body.lf-lf-brand .below-header,
body.lf-lf-brand .top-bar {
	background: var(--lf-accent) !important;
	color: var(--lf-dark) !important;
}

body.lf-lf-brand .below-header a,
body.lf-lf-brand .top-bar a {
	color: var(--lf-dark) !important;
	font-weight: 600 !important;
}

body.lf-lf-brand .woocommerce-breadcrumb,
body.lf-lf-brand .archive-header .woocommerce-breadcrumb {
	color: var(--lf-muted) !important;
	font-size: 0.875rem !important;
}

body.lf-lf-brand .woocommerce-breadcrumb a {
	color: var(--lf-primary) !important;
}

body.lf-lf-brand .shoptimizer-archive .archive-header {
	background: linear-gradient(180deg, #fff 0%, var(--lf-surface) 100%) !important;
	border-bottom: 1px solid rgba(13, 27, 42, 0.06) !important;
	padding-bottom: 1rem !important;
}

/* Vídeo cabecera tienda: ancho pantalla, altura contenida, fondo = superficie del template */
body.lf-lf-brand.lf-shop-has-header-video #content.site-content {
	overflow-x: clip !important;
}

body.lf-lf-brand.lf-shop-has-header-video .shoptimizer-archive .archive-header {
	padding-top: 0 !important;
	background: var(--lf-surface, #f4f7fa) !important;
	border-bottom: none !important;
}

body.lf-lf-brand .lf-shop-header-video {
	position: relative !important;
	left: 50% !important;
	transform: translateX(-50%) !important;
	width: 80vw !important;
	max-width: 100% !important;
	height: auto !important;
	border-radius: 0 !important;
	overflow: hidden !important;
	margin: 0 0 2rem !important;
	background: var(--lf-surface, #f4f7fa) !important;
	box-shadow: none !important;
	border: none !important;
	display: block !important;
}

body.lf-lf-brand .lf-shop-header-video__media {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	object-fit: cover !important;
	object-position: center center !important;
}

@media (max-width: 782px) {
	body.lf-lf-brand .lf-shop-header-video {
		height: auto !important;
		border-radius: 0 !important;
		margin-bottom: 1.5rem !important;
	}
}

body.lf-lf-brand .woocommerce-products-header__title,
body.lf-lf-brand .woocommerce-page-title,
body.lf-lf-brand .archive-header .page-title {
	font-family: "Nunito", sans-serif !important;
	font-weight: 800 !important;
	color: var(--lf-dark) !important;
	letter-spacing: -0.02em !important;
}

body.lf-lf-brand .woocommerce-result-count,
body.lf-lf-brand .woocommerce-ordering {
	font-family: "DM Sans", sans-serif !important;
}

body.lf-lf-brand .woocommerce-ordering select {
	border-radius: 999px !important;
	border: 1px solid rgba(12, 113, 195, 0.25) !important;
	padding: 0.5rem 2rem 0.5rem 1rem !important;
	font-weight: 600 !important;
}

body.lf-lf-brand ul.products {
	gap: 1.25rem !important;
}

body.lf-lf-brand ul.products li.product {
	background: #fff !important;
	border-radius: 1.25rem !important;
	box-shadow: 0 8px 32px rgba(13, 27, 42, 0.08) !important;
	border: 1px solid rgba(13, 27, 42, 0.06) !important;
	overflow: hidden !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

body.lf-lf-brand ul.products li.product:hover {
	transform: translateY(-4px) !important;
	box-shadow: 0 16px 48px rgba(13, 27, 42, 0.12) !important;
}

body.lf-lf-brand ul.products li.product .woocommerce-loop-product__title,
body.lf-lf-brand ul.products li.product h2 {
	font-family: "Nunito", sans-serif !important;
	font-weight: 700 !important;
	color: var(--lf-dark) !important;
}

body.lf-lf-brand ul.products li.product .price {
	color: var(--lf-primary) !important;
	font-weight: 700 !important;
}

body.lf-lf-brand ul.products li.product .price del {
	opacity: 0.55 !important;
}

body.lf-lf-brand ul.products li.product .price ins {
	color: var(--lf-danger) !important;
	text-decoration: none !important;
}

body.lf-lf-brand span.onsale,
body.lf-lf-brand .wc-block-grid__product-onsale {
	background: var(--lf-accent) !important;
	color: var(--lf-dark) !important;
	font-weight: 800 !important;
	border-radius: 999px !important;
}

body.lf-lf-brand .woocommerce a.button,
body.lf-lf-brand .woocommerce button.button,
body.lf-lf-brand .woocommerce input.button,
body.lf-lf-brand .woocommerce #respond input#submit,
body.lf-lf-brand .woocommerce a.button.alt,
body.lf-lf-brand .woocommerce button.button.alt {
	background: var(--lf-primary) !important;
	color: #fff !important;
	border: none !important;
	border-radius: 999px !important;
	font-family: "Nunito", sans-serif !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.04em !important;
	box-shadow: 0 4px 0 var(--lf-primary-dark) !important;
}

body.lf-lf-brand .woocommerce a.button:hover,
body.lf-lf-brand .woocommerce button.button:hover,
body.lf-lf-brand .woocommerce a.button.alt:hover,
body.lf-lf-brand .woocommerce button.button.alt:hover {
	background: var(--lf-primary-dark) !important;
	filter: brightness(1.02);
}

body.lf-lf-brand .header-cart .cart-contents .count,
body.lf-lf-brand .site-header-cart .count {
	background: var(--lf-accent) !important;
	color: var(--lf-dark) !important;
}

body.lf-lf-brand.single-product .product .summary .product_title {
	font-family: "Nunito", sans-serif !important;
	font-weight: 800 !important;
	color: var(--lf-dark) !important;
}

body.lf-lf-brand.single-product .lf-pdp-long-description {
	margin-top: 1rem !important;
	padding-top: 1rem !important;
	border-top: 1px solid rgba(13, 27, 42, 0.08) !important;
	font-size: 0.95rem !important;
	line-height: 1.65 !important;
	color: #333 !important;
}

body.lf-lf-brand.single-product .lf-pdp-long-description p:first-child {
	margin-top: 0 !important;
}


body.lf-lf-brand .site-footer,
body.lf-lf-brand #colophon {
	background: var(--lf-dark) !important;
}

body.lf-lf-brand .site-footer a:hover {
	color: var(--lf-accent) !important;
}

body.lf-lf-brand .woocommerce-message {
	border-top-color: var(--lf-primary) !important;
	background: #fff !important;
	color: var(--lf-dark) !important;
}

body.lf-lf-brand .woocommerce-message::before {
	color: var(--lf-primary) !important;
}

body.lf-lf-brand .woocommerce nav.woocommerce-pagination ul li a,
body.lf-lf-brand .woocommerce nav.woocommerce-pagination ul li span {
	border-radius: 999px !important;
}

body.lf-lf-brand .woocommerce nav.woocommerce-pagination ul li span.current {
	background: var(--lf-primary) !important;
	border-color: var(--lf-primary) !important;
	color: #fff !important;
}

body.lf-lf-brand .site-search input[type="search"],
body.lf-lf-brand form.woocommerce-product-search input[type="search"] {
	border-radius: 999px !important;
	border: 2px solid rgba(12, 113, 195, 0.2) !important;
}

/* Barra lateral da loja: filtros legíveis */
body.lf-lf-brand.woocommerce #secondary.widget-area,
body.lf-lf-brand.woocommerce-page #secondary.widget-area {
	background: #fff !important;
	border-radius: 1rem !important;
	padding: 1rem 1rem 0.25rem !important;
	border: 1px solid rgba(13, 27, 42, 0.06) !important;
	box-shadow: 0 8px 28px rgba(13, 27, 42, 0.06) !important;
}

body.lf-lf-brand #secondary .widget {
	margin-bottom: 1.25rem !important;
}

body.lf-lf-brand #secondary .widget .widget-title,
body.lf-lf-brand #secondary .widgettitle {
	color: var(--lf-dark) !important;
	border-bottom: 2px solid var(--lf-accent) !important;
	padding-bottom: 0.35rem !important;
}

body.lf-lf-brand #secondary .widget_price_filter .ui-slider .ui-slider-range,
body.lf-lf-brand #secondary .widget_price_filter .ui-slider .ui-slider-handle {
	background-color: var(--lf-primary) !important;
}

/* Catálogo: sin fila de migas bajo el vídeo; dos columnas (sidebar + productos); 3 por fila */
body.lf-lf-brand.lf-catalog-no-breadcrumb .archive-header .woocommerce-breadcrumb,
body.lf-lf-brand.lf-catalog-no-breadcrumb .archive-header nav.woocommerce-breadcrumb {
	display: none !important;
}

body.lf-lf-brand.lf-catalog-no-breadcrumb .archive-header .woocommerce:empty {
	display: none !important;
}

@media (min-width: 993px) {
	body.lf-lf-brand.left-woocommerce-sidebar.woocommerce:not(.single-product) .site-content > .col-full,
	body.lf-lf-brand.left-woocommerce-sidebar.woocommerce-page:not(.single-product) .site-content > .col-full {
		display: flow-root !important;
	}

	body.lf-lf-brand.left-woocommerce-sidebar.woocommerce:not(.single-product) #secondary.widget-area,
	body.lf-lf-brand.left-woocommerce-sidebar.woocommerce-page:not(.single-product) #secondary.widget-area {
		float: left !important;
		width: 24% !important;
		max-width: 300px !important;
		clear: left !important;
	}

	body.lf-lf-brand.left-woocommerce-sidebar.woocommerce:not(.single-product) #primary.content-area,
	body.lf-lf-brand.left-woocommerce-sidebar.woocommerce-page:not(.single-product) #primary.content-area {
		float: right !important;
		width: calc(76% - 1.25rem) !important;
	}

	body.lf-lf-brand.left-woocommerce-sidebar.woocommerce:not(.single-product) ul.products,
	body.lf-lf-brand.left-woocommerce-sidebar.woocommerce-page:not(.single-product) ul.products {
		display: grid !important;
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
		column-gap: 1.25rem !important;
		row-gap: 1.5rem !important;
	}

	body.lf-lf-brand.left-woocommerce-sidebar.woocommerce:not(.single-product) ul.products li.product,
	body.lf-lf-brand.left-woocommerce-sidebar.woocommerce-page:not(.single-product) ul.products li.product {
		width: 100% !important;
		margin: 0 !important;
	}
}

/* Tablet: sidebar + catálogo en dúas columnas e 3 produtos */
@media (min-width: 769px) and (max-width: 992px) {
	body.lf-lf-brand.left-woocommerce-sidebar.woocommerce:not(.single-product) .site-content > .col-full,
	body.lf-lf-brand.left-woocommerce-sidebar.woocommerce-page:not(.single-product) .site-content > .col-full {
		display: flex !important;
		flex-direction: row !important;
		align-items: flex-start !important;
		gap: 1.25rem !important;
	}

	body.lf-lf-brand.left-woocommerce-sidebar.woocommerce:not(.single-product) #secondary.widget-area,
	body.lf-lf-brand.left-woocommerce-sidebar.woocommerce-page:not(.single-product) #secondary.widget-area {
		float: none !important;
		width: 260px !important;
		max-width: 38% !important;
		flex: 0 0 auto !important;
		order: 1 !important;
	}

	body.lf-lf-brand.left-woocommerce-sidebar.woocommerce:not(.single-product) #primary.content-area,
	body.lf-lf-brand.left-woocommerce-sidebar.woocommerce-page:not(.single-product) #primary.content-area {
		float: none !important;
		flex: 1 1 0 !important;
		width: auto !important;
		min-width: 0 !important;
		order: 2 !important;
	}

	body.lf-lf-brand.left-woocommerce-sidebar.woocommerce:not(.single-product) ul.products,
	body.lf-lf-brand.left-woocommerce-sidebar.woocommerce-page:not(.single-product) ul.products {
		display: grid !important;
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
		column-gap: 1rem !important;
		row-gap: 1.5rem !important;
		width: 100% !important;
		margin-left: 0 !important;
	}

	body.lf-lf-brand.left-woocommerce-sidebar.woocommerce:not(.single-product) ul.products li.product,
	body.lf-lf-brand.left-woocommerce-sidebar.woocommerce-page:not(.single-product) ul.products li.product {
		width: 100% !important;
		float: none !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
}

/* Fix footer layout overlap due to floats */
#colophon, .site-footer {
	clear: both !important;
}

/* Hide header on the store page so the banner is at the top */
body.lf-catalog-no-breadcrumb #masthead,
body.lf-catalog-no-breadcrumb .top-bar,
body.lf-catalog-no-breadcrumb .below-header {
	display: none !important;
}
