/* 
 * Main CSS - Yesitos V1
 * Mobile-First, BEM, Native Custom Properties
 */

/* =Reset & Base
-------------------------------------------------------------- */
*,
*::before,
*::after {
    box_sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--wp--preset--color--background);
    color: var(--wp--preset--color--text);
    font-family: var(--wp--preset--font-family--system);
    font-size: var(--wp--preset--font-size--medium);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =Typography
-------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
    color: var(--wp--preset--color--primary);
}

h1 {
    font-size: var(--wp--preset--font-size--xxlarge);
}

h2 {
    font-size: var(--wp--preset--font-size--xlarge);
}

h3 {
    font-size: var(--wp--preset--font-size--large);
}

a {
    color: var(--wp--preset--color--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    text-decoration: underline;
}

/* =Layout (Grid)
-------------------------------------------------------------- */
/* Contenedor principal para Sticky Footer */
.site {
    display: grid;
    min-height: 100vh;
    grid-template-rows: auto 1fr auto;
    /* Header, Main, Footer */
}

.site-content {
    width: 100%;
    max-width: var(--wp--style--global--wide-size, 1200px);
    margin: 0 auto;
    padding: 1rem;
}

/* =Header
-------------------------------------------------------------- */
.site-header {
    background: var(--wp--preset--color--surface);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.site-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--wp--style--global--wide-size, 1200px);
    margin: 0 auto;
    padding: 0 1rem;
}

/* =Navigation (Mobile First)
-------------------------------------------------------------- */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

/* Mobile Toggler (Simple CSS fallback or JS usually needed, assuming basic inline list for simplicity in v1 or standard Flex) */
/* Para V1 Mobile-First: en móviles (default) podría ser stack, en desktop flex row. */

.main-navigation {
    display: none;
    /* Hidden on mobile if implementing toggler, or just scrollable row */
}

@media (min-width: 768px) {
    .main-navigation {
        display: block;
    }
}

/* =WooCommerce Grid
-------------------------------------------------------------- */
.products {
    display: grid !important;
    /* Override Woo floats */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.woocommerce ul.products li.product {
    width: 100%;
    float: none;
    margin: 0;
}

.woocommerce img {
    height: auto;
    max-width: 100%;
}

/* =Buttons
-------------------------------------------------------------- */
.button,
button,
input[type="submit"] {
    display: inline-block;
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--surface);
    padding: 0.75rem 1.5rem;
    border: none;
    cursor: pointer;
    font-size: var(--wp--preset--font-size--medium);
    text-align: center;
}

.button:hover {
    background: var(--wp--preset--color--accent);
}

/* =Footer
-------------------------------------------------------------- */
.site-footer {
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--surface);
    padding: 2rem 1rem;
    text-align: center;
}