:root {
    --pv-shop-green-950: #062417;
    --pv-shop-green-900: #0A3622;
    --pv-shop-green-800: #0F5132;
    --pv-shop-green-700: #176B43;
    --pv-shop-green-600: #1F8A4C;
    --pv-shop-lime: #B8E85A;
    --pv-shop-cream: #F6F1E6;
    --pv-shop-ice: #EAF7F3;
    --pv-shop-white: #FFFFFF;
    --pv-shop-muted: #68766E;
    --pv-shop-line: rgba(10, 54, 34, 0.12);
    --pv-shop-shadow: 0 22px 70px rgba(6, 36, 23, 0.13);
    --pv-shop-shadow-strong: 0 36px 100px rgba(6, 36, 23, 0.25);
    --pv-shop-radius-xl: 46px;
    --pv-shop-radius-lg: 30px;
    --pv-shop-radius-md: 20px;
}

body {
    background: var(--pv-shop-cream);
}

.pv-shop-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 5%, rgba(184, 232, 90, 0.28), transparent 28%),
        radial-gradient(circle at 86% 0%, rgba(31, 138, 76, 0.18), transparent 30%),
        linear-gradient(180deg, #FCFAF4 0%, #FFFFFF 42%, #F6F1E6 100%);
    color: var(--pv-shop-green-950);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.pv-shop-container {
    width: min(1220px, calc(100% - 40px));
    margin: 0 auto;
}

.pv-shop-hero {
    position: relative;
    padding: 96px 0 72px;
    overflow: hidden;
}

.pv-shop-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 56px;
    align-items: center;
}

.pv-shop-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 15px;
    border-radius: 999px;
    background: rgba(31, 138, 76, .10);
    border: 1px solid rgba(31, 138, 76, .12);
    color: var(--pv-shop-green-950);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .10em;
    text-transform: uppercase;
}

.pv-shop-eyebrow::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--pv-shop-lime);
    box-shadow: 0 0 0 7px rgba(184, 232, 90, .25);
}

.pv-shop-hero h1 {
    margin: 20px 0 20px;
    max-width: 820px;
    color: var(--pv-shop-green-950);
    font-size: clamp(42px, 6vw, 82px);
    line-height: .9;
    letter-spacing: -0.075em;
    font-weight: 1000;
    text-wrap: balance;
}

.pv-shop-hero p {
    max-width: 700px;
    margin: 0;
    color: var(--pv-shop-muted);
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.58;
}

.pv-shop-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.pv-shop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 15px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 950;
    transition: transform .22s ease, box-shadow .22s ease;
}

.pv-shop-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.pv-shop-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--pv-shop-green-600), var(--pv-shop-green-950));
    box-shadow: 0 18px 42px rgba(31, 138, 76, .32);
}

.pv-shop-btn-secondary {
    color: var(--pv-shop-green-950);
    background: rgba(255, 255, 255, .86);
    border: 1px solid var(--pv-shop-line);
    box-shadow: var(--pv-shop-shadow);
}

.pv-shop-hero-card {
    position: relative;
    min-height: 480px;
    border-radius: var(--pv-shop-radius-xl);
    background:
        radial-gradient(circle at 20% 10%, rgba(184, 232, 90, .45), transparent 30%),
        linear-gradient(145deg, var(--pv-shop-green-950), var(--pv-shop-green-700));
    box-shadow: var(--pv-shop-shadow-strong);
    overflow: hidden;
}

.pv-shop-hero-card::before {
    content: "";
    position: absolute;
    inset: 28px;
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, .18);
}

.pv-shop-dose-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(76%, 420px);
    transform: translate(-50%, -50%) rotate(-3deg);
    padding: 42px;
    border-radius: 36px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 34px 90px rgba(0, 0, 0, .22);
    text-align: center;
}

.pv-shop-dose-card span {
    display: block;
    color: var(--pv-shop-muted);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.pv-shop-dose-card strong {
    display: block;
    margin-top: 12px;
    color: var(--pv-shop-green-950);
    font-size: clamp(34px, 4vw, 56px);
    line-height: .95;
    letter-spacing: -0.06em;
}

.pv-shop-dose-card p {
    margin: 16px auto 0;
    color: var(--pv-shop-muted);
    font-size: 16px;
}

.pv-shop-floating {
    position: absolute;
    z-index: 2;
    padding: 16px 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 20px 55px rgba(0, 0, 0, .18);
}

.pv-shop-floating strong {
    display: block;
    color: var(--pv-shop-green-700);
    font-size: 34px;
    line-height: 1;
}

.pv-shop-floating span {
    display: block;
    margin-top: 6px;
    color: var(--pv-shop-green-900);
    font-size: 13px;
    font-weight: 850;
}

.pv-shop-floating.one {
    top: 46px;
    right: 34px;
}

.pv-shop-floating.two {
    bottom: 42px;
    left: 34px;
}

.pv-shop-toolbar-section {
    padding: 30px 0;
}

.pv-shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 28px;
    border-radius: 32px;
    background: rgba(255, 255, 255, .86);
    border: 1px solid var(--pv-shop-line);
    box-shadow: var(--pv-shop-shadow);
}

.pv-shop-toolbar h2 {
    margin: 0;
    color: var(--pv-shop-green-950);
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.pv-shop-toolbar p {
    margin: 8px 0 0;
    color: var(--pv-shop-muted);
}

.pv-shop-tools {
    min-width: min(100%, 360px);
}

.pv-shop-tools label {
    display: block;
    margin-bottom: 8px;
    color: var(--pv-shop-green-950);
    font-size: 13px;
    font-weight: 950;
}

.pv-shop-tools input {
    width: 100%;
    height: 52px;
    border-radius: 18px;
    border: 1px solid var(--pv-shop-line);
    padding: 0 16px;
    outline: none;
    font-size: 16px;
    background: #fff;
}

.pv-shop-tools input:focus {
    border-color: var(--pv-shop-green-600);
    box-shadow: 0 0 0 5px rgba(31, 138, 76, .13);
}

.pv-shop-products-section {
    padding: 42px 0 86px;
}

.pv-shop-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
}

.pv-shop-result-count,
.pv-shop-result-count p {
    margin: 0;
    color: var(--pv-shop-muted);
    font-weight: 800;
}

.pv-shop-ordering select {
    height: 46px;
    border-radius: 999px;
    border: 1px solid var(--pv-shop-line);
    padding: 0 14px;
    background: #fff;
    color: var(--pv-shop-green-950);
    font-weight: 800;
}

.woocommerce .pv-shop-page ul.products,
.pv-shop-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.pv-product-card {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 34px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(10, 54, 34, .08);
    box-shadow: var(--pv-shop-shadow);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.pv-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 90px rgba(6, 36, 23, .18);
}

.pv-product-image-link {
    display: block;
    text-decoration: none;
}

.pv-product-image {
    position: relative;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 20%, rgba(184, 232, 90, .30), transparent 36%),
        linear-gradient(180deg, var(--pv-shop-ice), #fff);
    overflow: hidden;
}

.pv-product-image img {
    width: 82%;
    height: 82%;
    object-fit: contain;
    transition: transform .25s ease;
}

.pv-product-card:hover .pv-product-image img {
    transform: scale(1.05) rotate(-2deg);
}

.pv-product-placeholder {
    width: 74%;
    aspect-ratio: 1 / 1.18;
    display: grid;
    place-items: center;
    border-radius: 28px;
    background: #fff;
    color: var(--pv-shop-green-950);
    font-size: 24px;
    font-weight: 1000;
    box-shadow: 0 20px 55px rgba(6, 36, 23, .12);
}

.pv-product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--pv-shop-green-950);
    background: var(--pv-shop-lime);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.pv-product-content {
    padding: 22px;
}

.pv-product-category {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(31, 138, 76, .10);
    color: var(--pv-shop-green-800);
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.pv-product-title {
    margin: 0 0 12px;
    font-size: 22px !important;
    line-height: 1.05;
    letter-spacing: -0.04em;
    font-weight: 1000;
}

.pv-product-title a {
    color: var(--pv-shop-green-950);
    text-decoration: none;
}

.pv-product-title a:hover {
    color: var(--pv-shop-green-700);
}

.pv-product-short {
    min-height: 58px;
    color: var(--pv-shop-muted);
    font-size: 14px;
    line-height: 1.45;
}

.pv-product-short p {
    margin: 0;
}

.pv-product-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-top: 18px;
}

.pv-product-price {
    color: var(--pv-shop-green-950);
    font-size: 20px;
    font-weight: 1000;
}

.pv-product-price del {
    color: rgba(104, 118, 110, .65);
    font-size: 14px;
}

.pv-product-price ins {
    text-decoration: none;
}

.pv-product-rating {
    font-size: 12px;
}

.pv-product-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 18px;
}

.pv-product-view,
.pv-product-cart,
.pv-product-card .button {
    width: 100%;
    min-height: 46px;
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    border-radius: 999px !important;
    padding: 12px 16px !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    transition: transform .2s ease, background .2s ease !important;
}

.pv-product-view {
    color: var(--pv-shop-green-950);
    background: var(--pv-shop-ice);
}

.pv-product-view:hover {
    background: #dff5ed;
}

.pv-product-cart,
.pv-product-card .button {
    color: #fff !important;
    background: var(--pv-shop-green-700) !important;
}

.pv-product-cart:hover,
.pv-product-card .button:hover {
    transform: translateY(-2px);
    background: var(--pv-shop-green-950) !important;
}

.pv-shop-pagination {
    margin-top: 42px;
    text-align: center;
}

.pv-shop-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    margin: 0 4px;
    border-radius: 50%;
    background: #fff;
    color: var(--pv-shop-green-950);
    text-decoration: none;
    font-weight: 950;
    box-shadow: 0 10px 28px rgba(6, 36, 23, .08);
}

.pv-shop-pagination .page-numbers.current {
    color: #fff;
    background: var(--pv-shop-green-700);
}

.pv-shop-empty {
    padding: 60px;
    border-radius: 34px;
    text-align: center;
    background: #fff;
    box-shadow: var(--pv-shop-shadow);
}

.pv-shop-empty h2 {
    margin: 0 0 10px;
    color: var(--pv-shop-green-950);
}

.pv-shop-empty p {
    margin: 0;
    color: var(--pv-shop-muted);
}

.pv-shop-info {
    padding: 40px 0 96px;
}

.pv-shop-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.pv-shop-info article {
    padding: 30px;
    border-radius: 32px;
    background: var(--pv-shop-green-950);
    color: #fff;
    box-shadow: var(--pv-shop-shadow);
}

.pv-shop-info article span {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--pv-shop-lime);
    color: var(--pv-shop-green-950);
    font-weight: 1000;
    margin-bottom: 22px;
}

.pv-shop-info article h3 {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1;
    letter-spacing: -0.04em;
}

.pv-shop-info article p {
    margin: 0;
    color: rgba(255, 255, 255, .72);
    line-height: 1.6;
}

@media (max-width: 980px) {
    .pv-shop-hero-grid {
        grid-template-columns: 1fr;
    }
    .woocommerce .pv-shop-page ul.products,
    .pv-shop-page ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .pv-shop-toolbar,
    .pv-shop-meta {
        flex-direction: column;
        align-items: stretch;
    }

    .woocommerce .pv-shop-page ul.products,
    .pv-shop-page ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pv-shop-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .pv-shop-hero {
        padding: 66px 0 48px;
    }

    .pv-shop-hero-card {
        min-height: 390px;
    }

    .pv-shop-dose-card {
        padding: 28px;
    }

    .woocommerce .pv-shop-page ul.products,
    .pv-shop-page ul.products {
        grid-template-columns: 1fr;
    }
}


/* =====================================================
   CORRECCIÓN GRILLA TIENDA PASTO VERDE
   ===================================================== */

/* Contenedor de productos WooCommerce */
.pv-shop-page ul.products,
.woocommerce .pv-shop-page ul.products,
.woocommerce-page .pv-shop-page ul.products {
    width: 100% !important;
    max-width: 1220px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    list-style: none !important;

    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 28px !important;

    align-items: stretch !important;
}

/* Cada tarjeta debe comportarse como card, no como columna flotante de WooCommerce */
.pv-shop-page ul.products li.product,
.woocommerce .pv-shop-page ul.products li.product,
.woocommerce-page .pv-shop-page ul.products li.product,
.pv-product-card {
    float: none !important;
    clear: none !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;

    display: flex !important;
    flex-direction: column !important;

    border-radius: 34px !important;
    overflow: hidden !important;
}

/* Imagen del producto */
.pv-product-image-link {
    display: block !important;
    width: 100% !important;
}

.pv-product-image {
    width: 100% !important;
    min-height: 270px !important;
    aspect-ratio: 1 / 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 24px !important;
    box-sizing: border-box !important;
}

.pv-product-image img {
    width: 100% !important;
    max-width: 230px !important;
    height: 230px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Contenido interno */
.pv-product-content {
    flex: 1 !important;
    width: 100% !important;
    padding: 24px !important;
    box-sizing: border-box !important;

    display: flex !important;
    flex-direction: column !important;
}

/* Texto */
.pv-product-title {
    margin-bottom: 12px !important;
}

.pv-product-short {
    flex: 1 !important;
    min-height: 78px !important;
}

/* Precio */
.pv-product-meta-row {
    margin-top: 18px !important;
}

/* Acciones */
.pv-product-actions {
    width: 100% !important;
    margin-top: 22px !important;

    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
}

/* Botones */
.pv-product-view,
.pv-product-cart,
.pv-product-card .button,
.woocommerce .pv-product-card .button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;

    margin: 0 !important;
    float: none !important;
    clear: both !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    text-align: center !important;
    white-space: normal !important;
}

/* Evita que WooCommerce meta estilos heredados raros */
.woocommerce ul.products li.product a.button {
    margin-top: 0 !important;
}

/* Responsive */
@media (max-width: 1180px) {
    .pv-shop-page ul.products,
    .woocommerce .pv-shop-page ul.products,
    .woocommerce-page .pv-shop-page ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 860px) {
    .pv-shop-page ul.products,
    .woocommerce .pv-shop-page ul.products,
    .woocommerce-page .pv-shop-page ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 580px) {
    .pv-shop-page ul.products,
    .woocommerce .pv-shop-page ul.products,
    .woocommerce-page .pv-shop-page ul.products {
        grid-template-columns: 1fr !important;
    }

    .pv-product-image {
        min-height: 240px !important;
    }

    .pv-product-image img {
        max-width: 230px !important;
        height: 230px !important;
    }
}

.pv-shop-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.pv-product-card {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.pv-product-image {
    min-height: 240px !important;
    padding: 20px !important;

}

.pv-product-image img {
    max-width: 190px !important;
    height: 190px !important;
    object-fit: contain !important;

}


/* =====================================================
   FIX FINAL: 4 PRODUCTOS EN UNA SOLA FILA
   ===================================================== */

main.pv-shop-page .pv-shop-products-section ul.products,
main.pv-shop-page .pv-shop-products-section ul.products.columns-4,
main.pv-shop-page .pv-shop-products-section ul.products.pv-products-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 22px !important;

    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    list-style: none !important;

    grid-template-columns: none !important;
}

main.pv-shop-page .pv-shop-products-section ul.products li.product,
main.pv-shop-page .pv-shop-products-section ul.products li.pv-product-card,
main.pv-shop-page .pv-product-card {
    flex: 0 0 290px !important;
    width: 290px !important;
    max-width: 290px !important;
    min-width: 290px !important;

    float: none !important;
    clear: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Imagen compacta */
main.pv-shop-page .pv-product-image {
    height: 305px !important;
    min-height: 325px !important;
    padding: 12px !important;
}

main.pv-shop-page .pv-product-image img {
    width: 100% !important;
    max-width: 300px !important;
    height: 300px !important;
    object-fit: contain !important;
}

/* Contenido compacto */
main.pv-shop-page .pv-product-content {
    padding: 16px !important;
}

main.pv-shop-page .pv-product-title {
    font-size: 18px !important;
    line-height: 1.08 !important;
}

main.pv-shop-page .pv-product-short {
    min-height: 76px !important;
    font-size: 12.5px !important;
    line-height: 1.45 !important;
}

main.pv-shop-page .pv-product-price {
    font-size: 18px !important;
}

main.pv-shop-page .pv-product-view,
main.pv-shop-page .pv-product-cart,
main.pv-shop-page .pv-product-card .button {
    width: 100% !important;
    min-height: 42px !important;
    font-size: 12.5px !important;
    padding: 10px 12px !important;
    box-sizing: border-box !important;
}

/* En pantallas medianas permitimos que se acomoden */
@media (max-width: 1050px) {
    main.pv-shop-page .pv-shop-products-section ul.products,
    main.pv-shop-page .pv-shop-products-section ul.products.columns-4,
    main.pv-shop-page .pv-shop-products-section ul.products.pv-products-grid {
        flex-wrap: wrap !important;
    }
}

@media (max-width: 760px) {
    main.pv-shop-page .pv-shop-products-section ul.products li.product,
    main.pv-shop-page .pv-shop-products-section ul.products li.pv-product-card,
    main.pv-shop-page .pv-product-card {
        flex: 0 0 calc(50% - 12px) !important;
        width: calc(50% - 12px) !important;
        max-width: calc(50% - 12px) !important;
        min-width: 0 !important;
    }
}

@media (max-width: 520px) {
    main.pv-shop-page .pv-shop-products-section ul.products li.product,
    main.pv-shop-page .pv-shop-products-section ul.products li.pv-product-card,
    main.pv-shop-page .pv-product-card {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}