/*
Theme Name: Pasto Verde Theme
Theme URI: https://pastoverde.cl
Description: Tema propio personalizado para Pasto Verde y WooCommerce.
Author: Pasto Verde
Version: 1.0.0
Text Domain: pastoverde-theme
Requires at least: 6.0
Requires PHP: 8.0
*/

body {
    margin: 0;
    background: #f6f1e6;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.pv-global-container {
    width: min(1220px, calc(100% - 40px));
    margin: 0 auto;
}

/* HEADER GLOBAL */

.pv-global-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: rgba(246, 241, 230, 0.88);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(10, 54, 34, 0.10);
}

.admin-bar .pv-global-header {
    top: 32px;
}

.pv-global-nav {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.pv-global-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #062417;
    text-decoration: none;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.pv-global-brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.pv-global-brand span {
    font-size: 21px;
}

.pv-global-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pv-global-menu a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 999px;
    color: #0a3622;
    text-decoration: none;
    font-size: 14px;
    font-weight: 900;
    transition: background .2s ease, transform .2s ease;
}

.pv-global-menu a:hover {
    background: rgba(31, 138, 76, .10);
    transform: translateY(-1px);
}

.pv-global-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pv-global-cart {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 13px;
    border-radius: 999px;
    color: #0a3622;
    background: #ffffff;
    border: 1px solid rgba(10, 54, 34, .10);
    text-decoration: none;
    font-weight: 900;
    font-size: 14px;
}

.pv-global-cart span {
    min-width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: #b8e85a;
    color: #062417;
    font-size: 12px;
    font-weight: 950;
}

.pv-global-btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #1f8a4c, #062417);
    box-shadow: 0 16px 36px rgba(31, 138, 76, .24);
    text-decoration: none;
    font-weight: 950;
}

.pv-global-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.pv-global-menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: #062417;
    color: #ffffff;
    font-size: 22px;
    cursor: pointer;
}

.pv-global-mobile-menu {
    display: none;
    width: min(1220px, calc(100% - 40px));
    margin: 0 auto 14px;
    padding: 14px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(6, 36, 23, .12);
}

.pv-global-mobile-menu a {
    display: block;
    padding: 14px 16px;
    border-radius: 16px;
    color: #062417;
    text-decoration: none;
    font-weight: 900;
}

.pv-global-mobile-menu a:hover {
    background: #eaf7f3;
}

/* FOOTER GLOBAL */

.pv-global-footer {
    background: #07120d;
    color: #ffffff;
    padding: 76px 0 30px;
}

.pv-global-footer-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 56px;
}

.pv-global-footer-column h3 {
    margin: 0 0 28px;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.pv-global-footer-column p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 17px;
    line-height: 1.6;
}

.pv-global-footer-column strong {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 900;
}

.pv-global-footer-column a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
}

.pv-global-footer-column a:hover {
    color: #b8e85a;
}

.pv-global-social {
    display: flex;
    gap: 14px;
    margin: 8px 0 28px;
}

.pv-global-social a {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ffffff;
    color: #07120d;
    font-weight: 950;
    font-size: 22px;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease;
}

.pv-global-social a:hover {
    transform: translateY(-3px);
    background: #b8e85a;
}

.pv-global-footer-note {
    max-width: 320px;
}

.pv-global-footer-bottom {
    width: min(1180px, calc(100% - 40px));
    margin: 54px auto 0;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.pv-global-footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.45);
    font-size: 14px;
}

/* RESPONSIVE */

@media (max-width: 980px) {
    .pv-global-menu {
        display: none;
    }

    .pv-global-cart {
        display: none;
    }

    .pv-global-menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .pv-global-mobile-menu.is-open {
        display: block;
    }

    .pv-global-footer-container {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .pv-global-footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .admin-bar .pv-global-header {
        top: 46px;
    }

    .pv-global-brand span {
        display: none;
    }

    .pv-global-btn {
        display: none;
    }
}

/* Ocultar sidebar/widgets antiguos en páginas de producto */
.single-product .widget-area,
.single-product aside,
.single-product .sidebar,
.single-product #secondary {
    display: none !important;
}

/* Evitar que quede espacio reservado */
.single-product .content-area,
.single-product main,
.single-product .site-main {
    width: 100% !important;
    max-width: 100% !important;
}