/*
Theme Name:   Juan Shop
Template:     hello-elementor
Description:  Child theme of Hello Elementor for Miralles Painting Academy.
Version:      0.7.0
*/

/* Colours, fonts and the dark header/footer live in assets/site/site.css;
   WooCommerce page styling in assets/shop/shop.css. This file keeps layout. */

/* --- Storefront edge inset (catalog-ux) --- */
body.wp-child-theme-juan-shop.woocommerce .site-main {
	padding-inline: 20px;
	box-sizing: border-box;
}

@media (min-width: 768px) {
	body.wp-child-theme-juan-shop.woocommerce .site-main {
		padding-inline: 32px;
	}
}

/* --- Catalog grid: keep cards tidy (WooCommerce handles the columns-N layout) --- */
.woocommerce ul.products li.product {
	margin-bottom: 2em;
}

.woocommerce ul.products li.product .price {
	display: block;
}

/* --- Header logo (template-parts/dynamic-header.php; inverted to light in site.css) --- */
.site-header .site-logo {
	display: block;
	line-height: 0;
}

.site-header .site-logo img {
	display: block;
	width: auto;
	height: 149px;
}

/* Same breakpoint as Hello's menu-dropdown-tablet: below 992 px the menu collapses to the toggle. */
@media (max-width: 991.98px) {
	.site-header .site-logo img {
		height: 67px;
	}

	/* Centre the logo, toggle on the right (the dropdown is absolutely
	   positioned, so it stays out of the grid). */
	#site-header .header-inner {
		display: grid;
		grid-template-columns: 1fr auto 1fr;
		align-items: center;
	}

	#site-header .site-branding {
		grid-column: 2;
	}

	#site-header .site-navigation-toggle-holder {
		grid-column: 3;
		justify-self: end;
	}
}

/* --- Language switcher in the primary menu --- */
.juan-lang-switcher .trp-language-switcher {
	display: inline-block;
}

/* TranslatePress sizes its overlay from a hidden <a> copy; Hello's menu-link
   padding made that copy narrower and clipped the name ("Span..."). */
#site-header .juan-lang-switcher a.trp-language-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 16px;
}
