/* Greenness shop only. Keep this after older shop styling. */
body.woocommerce-shop {
    --gs-ink: #263f36;
    --gs-muted: #627269;
    --gs-green: #456c59;
    --gs-line: #dce5dc;
    --gs-soft: #edf3e9;
}
body.woocommerce-shop #layout {
    width: calc(100% - 64px) !important;
    max-width: 1440px !important;
    margin: 0 auto !important;
    padding: 12px 0 64px !important;
    box-sizing: border-box;
}
body.woocommerce-shop #content .wpf-search-container {
    width: 100%;
    max-width: none;
    margin: 0;
}
body.woocommerce-shop #content .greenness-toolbar {
    display: flex;
    width: 100% !important;
    margin: 0 0 16px !important;
    padding: 0;
    gap: 16px;
}
body.woocommerce-shop #content .greenness-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 600px);
    gap: 16px;
    margin: 0;
}
body.woocommerce-shop #content .gf-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: auto;
    min-width: 0;
    margin: 0;
}
body.woocommerce-shop #content .gf-label {
    color: var(--gs-muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
}
body.woocommerce-shop #content .greenness-filters select {
    appearance: auto;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid #cbd8ce;
    border-radius: 4px;
    background: #fff;
    color: var(--gs-ink);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    box-sizing: border-box;
}
body.woocommerce-shop #content .greenness-filters select:disabled {
    color: #707970;
    background: #f4f5f2;
    cursor: not-allowed;
    opacity: 1;
}
body.woocommerce-shop #sidebar .widget {
    width: 100%;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}
body.woocommerce-shop #sidebar .widget > p:empty {
    display: none;
}
body.woocommerce-shop #sidebar .wpfMainWrapper {
    width: 100% !important;
    margin: 0;
}
body.woocommerce-shop #sidebar .wpfFilterWrapper {
    padding: 12px 0;
    margin: 0;
    border-bottom: 1px solid var(--gs-line);
}
body.woocommerce-shop #sidebar .wpfFilterTitle {
    margin: 0;
    color: var(--gs-ink);
    font-size: 14px;
    line-height: 1.5;
}
body.woocommerce-shop #sidebar .wpfFilterContent {
    font-size: 13px;
    line-height: 1.5;
}
body.woocommerce-shop #sidebar .wpfLiLabel {
    min-height: 36px;
    align-items: center !important;
}
body.woocommerce-shop #sidebar .wpfFilterButtons {
    padding-top: 12px;
}
body.woocommerce-shop #sidebar .wpfClearButton {
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid var(--gs-green);
    border-radius: 4px;
    background: #fff;
    color: var(--gs-green);
    font-size: 12px;
}
body.woocommerce-shop #content ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px 20px;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}
body.woocommerce-shop #content ul.products::before,
body.woocommerce-shop #content ul.products::after,
body.woocommerce-shop #content ul.products > .grid-sizer {
    display: none !important;
}
body.woocommerce-shop #content ul.products > li.product {
    display: flex !important;
    flex-direction: column;
    position: relative !important;
    inset: auto !important;
    float: none !important;
    clear: none !important;
    width: auto !important;
    min-width: 0;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    background: #fff;
    border: 1px solid #e5eae3;
    border-radius: 6px !important;
    box-shadow: none !important;
    overflow: hidden;
    text-align: left;
    box-sizing: border-box;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}
body.woocommerce-shop #content li.product > a.woocommerce-LoopProduct-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    color: var(--gs-ink);
    text-decoration: none;
}
body.woocommerce-shop #content li.product figure.product-image {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    margin: 0 !important;
    overflow: hidden;
    border-radius: 0;
    background: #f6f7f3;
}
body.woocommerce-shop #content li.product .product-image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    margin: 0 !important;
    object-fit: contain;
    border-radius: 0;
    transition: transform 250ms ease;
}
body.woocommerce-shop #content li.product h2.woocommerce-loop-product__title {
    margin: 0 !important;
    padding: 15px 14px 8px !important;
    font-family: inherit;
    font-size: 14px !important;
    font-weight: 500;
    line-height: 1.5 !important;
    letter-spacing: 0;
    color: var(--gs-ink);
    text-align: left;
    text-transform: none;
    overflow-wrap: anywhere;
}
body.woocommerce-shop #content li.product .price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    margin: auto 0 0 !important;
    padding: 12px 14px 16px;
    color: var(--gs-ink);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
}
body.woocommerce-shop #content li.product .price ins {
    background: transparent;
    text-decoration: none;
}
body.woocommerce-shop #content li.product .price del {
    font-size: 12px;
    opacity: 0.65;
}
body.woocommerce-shop #content li.product .star-rating {
    margin: 2px 14px 6px;
    float: none;
}
body.woocommerce-shop #content li.product .onsale {
    top: 10px !important;
    left: 10px !important;
    right: auto !important;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 6px 10px;
    background: var(--gs-green);
    color: #fff;
    border-radius: 3px;
    font-size: 11px;
    line-height: 1.4;
}
body.woocommerce-shop #content .woocommerce-pagination {
    margin: 38px 0 0;
}
body.woocommerce-shop #content .woocommerce-pagination ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    border: 0;
}
body.woocommerce-shop #content .woocommerce-pagination li {
    border: 0;
}
body.woocommerce-shop #content .woocommerce-pagination li > a,
body.woocommerce-shop #content .woocommerce-pagination li > span {
    display: grid;
    place-items: center;
    min-width: 42px;
    min-height: 44px;
    padding: 8px;
    border: 1px solid var(--gs-line);
    border-radius: 4px;
    box-sizing: border-box;
    color: var(--gs-ink);
    background: #fff;
}
body.woocommerce-shop #content .woocommerce-pagination .current {
    background: var(--gs-green);
    border-color: var(--gs-green);
    color: #fff;
}
body.woocommerce-shop #content :is(a, button, select, summary):focus-visible {
    outline: 3px solid #5a9779;
    outline-offset: 3px;
}
@media (hover: hover) {
    body.woocommerce-shop #content ul.products > li.product:hover {
        border-color: #b5c9b8;
        box-shadow: 0 8px 22px #253e3610 !important;
    }
    body.woocommerce-shop #content li.product:hover .product-image img {
        transform: scale(1.025);
    }
}
@media (max-width: 1199px) {
    body.woocommerce-shop #content ul.products {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (max-width: 1023px) {
    body.woocommerce-shop #layout {
        width: calc(100% - 40px) !important;
        padding-top: 24px !important;
    }
    body.woocommerce-shop #content ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px 16px;
    }
            }
@media (max-width: 600px) {
    body.woocommerce-shop #layout {
        width: calc(100% - 28px) !important;
        padding: 16px 0 40px !important;
    }
                    body.woocommerce-shop #content .greenness-filters {
        width: 100%;
        gap: 10px;
    }
    body.woocommerce-shop #content .greenness-filters select {
        font-size: 16px;
        padding: 9px 8px;
    }
                body.woocommerce-shop #content ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 10px;
    }
    body.woocommerce-shop #content li.product h2.woocommerce-loop-product__title {
        font-size: 12px !important;
        padding: 12px 10px 4px !important;
    }
    body.woocommerce-shop #content li.product .price {
        padding: 10px 10px 14px;
        font-size: 13px;
    }
}
@media (prefers-reduced-motion: reduce) {
    body.woocommerce-shop #content ul.products > li.product,
    body.woocommerce-shop #content li.product .product-image img {
        transition: none;
    }
    body.woocommerce-shop #content li.product:hover .product-image img {
        transform: none;
    }
}
/* Preserve the existing sidebar and four-column desktop composition. */
body.woocommerce-shop #layout {
    display: grid !important;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
body.woocommerce-shop #layout::before,
body.woocommerce-shop #layout::after {
    display: none;
}
body.woocommerce-shop #layout > #content {
    grid-column: 2;
    grid-row: 1;
    width: 100% !important;
    min-width: 0;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.woocommerce-shop #layout > #sidebar {
    grid-column: 1;
    grid-row: 1;
    position: static !important;
    transform: none !important;
    float: none !important;
    width: 100% !important;
    min-width: 0;
    height: auto !important;
    margin: 0px 0 0 !important;
    padding: 0 16px 16px !important;
    border: 1px solid var(--gs-line);
    border-radius: 6px;
    background: #fbfcf9;
    box-sizing: border-box;
}
body.woocommerce-shop .gs-mobile-filter-toggle {
    display: none;
}
@media (min-width: 768px) and (max-width: 1023px) {
    body.woocommerce-shop #layout {
        grid-template-columns: 180px minmax(0, 1fr);
        gap: 18px;
    }
    body.woocommerce-shop #layout > #sidebar {
        padding-inline: 12px !important;
    }
}
@media (max-width: 767px) {
    body.woocommerce-shop #layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
    body.woocommerce-shop #layout > #content {
        grid-column: 1;
        grid-row: 3;
    }
    body.woocommerce-shop #layout > #sidebar {
        grid-column: 1;
        grid-row: 2;
        margin: 0 !important;
    }
    body.woocommerce-shop #layout.gs-mobile-ready:not(.gs-filters-open) > #sidebar {
        display: none !important;
    }
    body.woocommerce-shop .gs-mobile-filter-toggle {
        display: flex;
        justify-content: space-between;
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        min-height: 46px;
        padding: 12px 16px;
        border: 1px solid var(--gs-line);
        border-radius: 4px;
        background: #f2f6ed;
        color: var(--gs-ink);
        font: inherit;
        font-size: 14px;
        text-transform: none;
        letter-spacing: 0;
        cursor: pointer;
    }
    body.woocommerce-shop .gs-mobile-filter-toggle::after {
        content: '+';
    }
    body.woocommerce-shop .gs-mobile-filter-toggle[aria-expanded="true"]::after {
        content: '−';
    }
    body.woocommerce-shop #content ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
/* Full-width hero above the sidebar and products. */
body.woocommerce-shop .gs-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 36px 40px;
    margin: 0 0 24px;
    background: #ebf4e9;
    border: 1px solid #dfe9db;
    border-radius: 6px;
    color: var(--gs-ink);
}
body.woocommerce-shop #layout > .gs-hero {
    grid-column: 1 / -1;
    grid-row: 1;
    margin: 0;
}
body.woocommerce-shop #layout.gs-has-hero > #content,
body.woocommerce-shop #layout.gs-has-hero > #sidebar {
    grid-row: 2;
}
body.woocommerce-shop .gs-hero-copy {
    min-width: 0;
}
body.woocommerce-shop .gs-hero-eyebrow {
    margin: 0 0 12px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.16em;
}
body.woocommerce-shop #gs-hero-heading {
    margin: 0 0 14px;
    color: var(--gs-ink);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(30px, 3.2vw, 46px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.035em;
    text-transform: none;
}
body.woocommerce-shop .gs-hero-description {
    margin: 0;
    max-width: 610px;
    color: var(--gs-muted);
    font-size: 14px;
    line-height: 1.7;
}
body.woocommerce-shop .gs-hero-aside {
    flex-shrink: 0;
    border-left: 1px solid #c9d7c6;
    padding-left: 36px;
    color: #5d735d;
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: 25px;
    line-height: 1.3;
}
/* These two existing filter groups stay expanded on desktop. */
@media (min-width: 1024px) {
    body.woocommerce-shop #sidebar .wpfFilterWrapper:is([data-taxonomy="product_cat"], [data-taxonomy="product_tag"]) > .wpfFilterContent {
        display: block !important;
        height: auto !important;
        max-height: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        overflow: visible !important;
        margin-top: 12px;
    }
    body.woocommerce-shop #sidebar .wpfFilterWrapper:is([data-taxonomy="product_cat"], [data-taxonomy="product_tag"]) .wpfFilterVerScroll {
        max-height: none !important;
        height: auto !important;
        overflow: visible !important;
    }
    body.woocommerce-shop #sidebar .wpfFilterWrapper:is([data-taxonomy="product_cat"], [data-taxonomy="product_tag"]) .wpfTitleToggle {
        display: none !important;
    }
    body.woocommerce-shop #sidebar .wpfFilterWrapper:is([data-taxonomy="product_cat"], [data-taxonomy="product_tag"]) .wpfFilterTitle,
    body.woocommerce-shop #sidebar .wpfFilterWrapper:is([data-taxonomy="product_cat"], [data-taxonomy="product_tag"]) .wfpClickable {
        cursor: default;
        pointer-events: none;
    }
}
@media (max-width: 1023px) {
    body.woocommerce-shop .gs-hero {
        padding: 28px;
    }
    body.woocommerce-shop .gs-hero-aside {
        display: none;
    }
}
@media (max-width: 767px) {
    body.woocommerce-shop #layout.gs-has-hero > .gs-mobile-filter-toggle {
        grid-row: 2;
    }
    body.woocommerce-shop #layout.gs-has-hero > #sidebar {
        grid-row: 3;
    }
    body.woocommerce-shop #layout.gs-has-hero > #content {
        grid-row: 4;
    }
    body.woocommerce-shop .gs-hero {
        padding: 26px 20px;
    }
    body.woocommerce-shop #gs-hero-heading {
        font-size: 32px;
    }
    body.woocommerce-shop .gs-hero-description {
        font-size: 13px;
    }
}
