/*
Theme Name: De Mi Pueblo
Theme URI: https://example.com/de-mi-pueblo
Author: De Mi Pueblo
Description: Tema de bloques para tiendas WooCommerce inspirado en sabores, productos y tradiciones latinoamericanas.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: demipueblo
Tags: block-patterns, block-styles, editor-style, full-site-editing, e-commerce, wide-blocks
*/

/* La mayor parte del sistema visual vive en theme.json para que sea editable. */
:where(.wp-site-blocks) { overflow: clip; }

a { text-underline-offset: 0.18em; }

:where(a, button, input, select, textarea, .wp-element-button):focus-visible {
	outline: 3px solid var(--wp--preset--color--sun);
	outline-offset: 3px;
}

.dmp-shell {
	width: min(calc(100% - 2rem), var(--wp--style--global--wide-size));
	margin-inline: auto;
}

.dmp-card {
	box-shadow: var(--wp--preset--shadow--soft);
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.dmp-card:hover {
	box-shadow: var(--wp--preset--shadow--lifted);
	transform: translateY(-2px);
}

.dmp-category-card { min-height: 7rem; }
.dmp-category-card .wp-block-heading { margin-top: auto; }
.dmp-section-link a { text-decoration: none; }

.dmp-hero {
	background-image:
		radial-gradient(circle at 88% 14%, rgba(255,255,255,.12) 0 2px, transparent 3px),
		linear-gradient(135deg, var(--wp--preset--color--leaf), var(--wp--preset--color--forest));
}

.dmp-promo-warm {
	background: linear-gradient(135deg, var(--wp--preset--color--maize), var(--wp--preset--color--sun));
}

.dmp-promo-cool {
	background: linear-gradient(135deg, var(--wp--preset--color--mint), #dceee1);
}

.dmp-product-collection .wc-block-product,
.dmp-product-collection li.product {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--sand);
	border-radius: var(--wp--custom--radius--medium);
	box-shadow: var(--wp--preset--shadow--soft);
	box-sizing: border-box;
	overflow: hidden;
	padding: var(--wp--preset--spacing--30);
}

.dmp-product-collection .wc-block-components-product-image img,
.dmp-product-collection .wc-block-grid__product-image img {
	aspect-ratio: 1 / 1;
	object-fit: contain;
}

.wc-block-components-product-button .wp-element-button,
.wp-block-woocommerce-product-button .wp-element-button {
	width: 100%;
}

.wc-block-components-product-rating__stars,
.wc-block-grid__product-rating .star-rating { color: var(--wp--preset--color--sun); }

.wc-block-mini-cart__badge { background: var(--wp--preset--color--sun); color: var(--wp--preset--color--ink); }

@media (max-width: 781px) {
	.dmp-shell { width: min(calc(100% - 1rem), var(--wp--style--global--wide-size)); }
	.dmp-desktop-only { display: none !important; }
	.dmp-hero { min-height: 32rem !important; }
	.dmp-hero-copy { max-width: 100% !important; }
}

@media (prefers-reduced-motion: reduce) {
	.dmp-card { transition: none; }
}
