/*
 * SAI HERBS Product Archive Cleanup V4
 * Loaded only on WooCommerce shop/product archive pages.
 */

body.sai-herbs-archive-cleanup-v4 {
    --sai-archive-green: #0b5d35;
    --sai-archive-deep-green: #063b25;
    --sai-archive-cream: #fffdf8;
    --sai-archive-soft: #f7fbf4;
    --sai-archive-gold: #c9a44c;
    --sai-archive-ink: #1f2a24;
}

body.sai-herbs-archive-cleanup-v4 .woocommerce ul.products,
body.sai-herbs-archive-cleanup-v4 ul.products,
body.sai-herbs-archive-cleanup-v4 .products {
    row-gap: 18px;
}

body.sai-herbs-archive-cleanup-v4 .woocommerce ul.products li.product,
body.sai-herbs-archive-cleanup-v4 ul.products li.product,
body.sai-herbs-archive-cleanup-v4 .products .product,
body.sai-herbs-archive-cleanup-v4 .product-grid-item,
body.sai-herbs-archive-cleanup-v4 .wd-product {
    background: var(--sai-archive-cream);
    border: 1px solid rgba(11, 93, 53, 0.1);
    border-radius: 15px;
    box-shadow: 0 9px 22px rgba(6, 59, 37, 0.07);
    overflow: hidden;
    padding: 9px;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

body.sai-herbs-archive-cleanup-v4 .woocommerce ul.products li.product:hover,
body.sai-herbs-archive-cleanup-v4 ul.products li.product:hover,
body.sai-herbs-archive-cleanup-v4 .products .product:hover,
body.sai-herbs-archive-cleanup-v4 .product-grid-item:hover,
body.sai-herbs-archive-cleanup-v4 .wd-product:hover {
    border-color: rgba(201, 164, 76, 0.45);
    box-shadow: 0 14px 32px rgba(6, 59, 37, 0.11);
    transform: translateY(-1px);
}

body.sai-herbs-archive-cleanup-v4 .product-element-top,
body.sai-herbs-archive-cleanup-v4 .product-image-link,
body.sai-herbs-archive-cleanup-v4 .woocommerce ul.products li.product > a:first-child,
body.sai-herbs-archive-cleanup-v4 ul.products li.product > a:first-child {
    align-items: center;
    aspect-ratio: 1 / 0.9;
    background: linear-gradient(180deg, #ffffff 0%, var(--sai-archive-soft) 100%);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
    max-height: 195px;
    overflow: hidden;
}

body.sai-herbs-archive-cleanup-v4 .product-element-top img,
body.sai-herbs-archive-cleanup-v4 .product-image-link img,
body.sai-herbs-archive-cleanup-v4 .woocommerce ul.products li.product img,
body.sai-herbs-archive-cleanup-v4 ul.products li.product img {
    aspect-ratio: 1 / 1;
    background: #ffffff;
    border-radius: 11px;
    display: block;
    height: auto;
    margin: 0 auto;
    max-height: 182px;
    object-fit: contain;
    padding: 7px;
    width: 100%;
}

body.sai-herbs-archive-cleanup-v4 .product-information,
body.sai-herbs-archive-cleanup-v4 .product-wrapper,
body.sai-herbs-archive-cleanup-v4 .product-meta,
body.sai-herbs-archive-cleanup-v4 .product-element-bottom {
    border-radius: 0 0 12px 12px;
}

body.sai-herbs-archive-cleanup-v4 .woocommerce-loop-product__title,
body.sai-herbs-archive-cleanup-v4 .wd-entities-title,
body.sai-herbs-archive-cleanup-v4 .product-title,
body.sai-herbs-archive-cleanup-v4 .product-title a,
body.sai-herbs-archive-cleanup-v4 .wd-entities-title a {
    color: var(--sai-archive-ink);
    display: -webkit-box;
    font-size: 13.5px;
    font-weight: 760;
    letter-spacing: 0;
    line-height: 1.25;
    margin: 0 0 6px;
    max-height: 2.5em;
    min-height: 2.5em;
    overflow: hidden;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

body.sai-herbs-archive-cleanup-v4 .woocommerce-loop-product__title:hover,
body.sai-herbs-archive-cleanup-v4 .wd-entities-title a:hover,
body.sai-herbs-archive-cleanup-v4 .product-title a:hover {
    color: var(--sai-archive-green);
}

body.sai-herbs-archive-cleanup-v4 .price,
body.sai-herbs-archive-cleanup-v4 .price ins,
body.sai-herbs-archive-cleanup-v4 .product-price,
body.sai-herbs-archive-cleanup-v4 .woocommerce-Price-amount {
    color: var(--sai-archive-deep-green);
    font-size: 14.5px;
    font-weight: 880;
    line-height: 1.2;
}

body.sai-herbs-archive-cleanup-v4 .price del {
    color: rgba(31, 42, 36, 0.42);
    font-size: 12px;
    font-weight: 650;
}

body.sai-herbs-archive-cleanup-v4 .variations_form,
body.sai-herbs-archive-cleanup-v4 .wd-product .wd-swatches-grid,
body.sai-herbs-archive-cleanup-v4 .wd-product .wd-product-sku,
body.sai-herbs-archive-cleanup-v4 .wd-product .wd-product-brands-links,
body.sai-herbs-archive-cleanup-v4 .product-small .woocommerce-product-details__short-description,
body.sai-herbs-archive-cleanup-v4 .product-small .product-attributes,
body.sai-herbs-archive-cleanup-v4 .wd-product .wd-product-stock {
    font-size: 11.5px;
    line-height: 1.2;
    margin-bottom: 4px;
    margin-top: 4px;
}

body.sai-herbs-archive-cleanup-v4 .products .product .button,
body.sai-herbs-archive-cleanup-v4 .woocommerce ul.products li.product .button,
body.sai-herbs-archive-cleanup-v4 ul.products li.product .button,
body.sai-herbs-archive-cleanup-v4 .product-grid-item .button,
body.sai-herbs-archive-cleanup-v4 .wd-product .button,
body.sai-herbs-archive-cleanup-v4 .products .product .add_to_cart_button,
body.sai-herbs-archive-cleanup-v4 .woocommerce ul.products li.product .add_to_cart_button,
body.sai-herbs-archive-cleanup-v4 ul.products li.product .add_to_cart_button,
body.sai-herbs-archive-cleanup-v4 .product-grid-item .add_to_cart_button,
body.sai-herbs-archive-cleanup-v4 .wd-product .add_to_cart_button,
body.sai-herbs-archive-cleanup-v4 .wd-add-btn a {
    background: var(--sai-archive-green);
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 11.5px;
    font-weight: 850;
    justify-content: center;
    line-height: 1.1;
    min-height: 32px;
    padding: 8px 13px;
    text-align: center;
}

body.sai-herbs-archive-cleanup-v4 .products .product .button:hover,
body.sai-herbs-archive-cleanup-v4 .woocommerce ul.products li.product .button:hover,
body.sai-herbs-archive-cleanup-v4 ul.products li.product .button:hover,
body.sai-herbs-archive-cleanup-v4 .product-grid-item .button:hover,
body.sai-herbs-archive-cleanup-v4 .wd-product .button:hover,
body.sai-herbs-archive-cleanup-v4 .wd-add-btn a:hover {
    background: var(--sai-archive-deep-green);
    color: #ffffff;
}

body.sai-herbs-archive-cleanup-v4 .onsale,
body.sai-herbs-archive-cleanup-v4 .product-labels .onsale,
body.sai-herbs-archive-cleanup-v4 .product-label.onsale,
body.sai-herbs-archive-cleanup-v4 .product-label.sale {
    background: rgba(17, 17, 17, 0.78);
    border: 1px solid rgba(201, 164, 76, 0.5);
    border-radius: 999px;
    color: #f3d98a;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1;
    min-height: 0;
    padding: 4px 6px;
}

body.sai-herbs-archive-cleanup-v4 .products .product .compare,
body.sai-herbs-archive-cleanup-v4 .woocommerce ul.products li.product .compare,
body.sai-herbs-archive-cleanup-v4 ul.products li.product .compare,
body.sai-herbs-archive-cleanup-v4 .product-grid-item .compare,
body.sai-herbs-archive-cleanup-v4 .wd-product .compare,
body.sai-herbs-archive-cleanup-v4 .products .product .wd-compare-btn,
body.sai-herbs-archive-cleanup-v4 .woocommerce ul.products li.product .wd-compare-btn,
body.sai-herbs-archive-cleanup-v4 ul.products li.product .wd-compare-btn,
body.sai-herbs-archive-cleanup-v4 .product-grid-item .wd-compare-btn,
body.sai-herbs-archive-cleanup-v4 .wd-product .wd-compare-btn,
body.sai-herbs-archive-cleanup-v4 .products .product .compare-button,
body.sai-herbs-archive-cleanup-v4 .woocommerce ul.products li.product .compare-button,
body.sai-herbs-archive-cleanup-v4 ul.products li.product .compare-button,
body.sai-herbs-archive-cleanup-v4 .product-grid-item .compare-button,
body.sai-herbs-archive-cleanup-v4 .wd-product .compare-button,
body.sai-herbs-archive-cleanup-v4 .products .product .quick-view,
body.sai-herbs-archive-cleanup-v4 .woocommerce ul.products li.product .quick-view,
body.sai-herbs-archive-cleanup-v4 ul.products li.product .quick-view,
body.sai-herbs-archive-cleanup-v4 .product-grid-item .quick-view,
body.sai-herbs-archive-cleanup-v4 .wd-product .quick-view,
body.sai-herbs-archive-cleanup-v4 .products .product .quick-view-button,
body.sai-herbs-archive-cleanup-v4 .woocommerce ul.products li.product .quick-view-button,
body.sai-herbs-archive-cleanup-v4 ul.products li.product .quick-view-button,
body.sai-herbs-archive-cleanup-v4 .product-grid-item .quick-view-button,
body.sai-herbs-archive-cleanup-v4 .wd-product .quick-view-button,
body.sai-herbs-archive-cleanup-v4 .products .product .open-quick-view,
body.sai-herbs-archive-cleanup-v4 .woocommerce ul.products li.product .open-quick-view,
body.sai-herbs-archive-cleanup-v4 ul.products li.product .open-quick-view,
body.sai-herbs-archive-cleanup-v4 .product-grid-item .open-quick-view,
body.sai-herbs-archive-cleanup-v4 .wd-product .open-quick-view,
body.sai-herbs-archive-cleanup-v4 .products .product .wd-quick-view-btn,
body.sai-herbs-archive-cleanup-v4 .woocommerce ul.products li.product .wd-quick-view-btn,
body.sai-herbs-archive-cleanup-v4 ul.products li.product .wd-quick-view-btn,
body.sai-herbs-archive-cleanup-v4 .product-grid-item .wd-quick-view-btn,
body.sai-herbs-archive-cleanup-v4 .wd-product .wd-quick-view-btn {
    display: none !important;
}

body.sai-herbs-archive-cleanup-v4 .wishlist,
body.sai-herbs-archive-cleanup-v4 .yith-wcwl-add-to-wishlist,
body.sai-herbs-archive-cleanup-v4 .wd-wishlist-btn {
    opacity: 0.66;
    transform: scale(0.86);
}

body.sai-herbs-archive-cleanup-v4 .star-rating[title*="Rated 0 out of 5"],
body.sai-herbs-archive-cleanup-v4 .star-rating[aria-label*="Rated 0 out of 5"],
body.sai-herbs-archive-cleanup-v4 .sai-herbs-archive-v4__zero-rating,
body.sai-herbs-archive-cleanup-v4 .star-rating:empty {
    display: none !important;
}

body.sai-herbs-archive-cleanup-v4 .star-rating {
    color: var(--sai-archive-gold);
    font-size: 10px;
    margin-bottom: 4px;
}

body.sai-herbs-archive-cleanup-v4 .sai-herbs-archive-v4__empty-green-bar {
    display: none !important;
}

@media (max-width: 767px) {
    body.sai-herbs-archive-cleanup-v4 .woocommerce ul.products,
    body.sai-herbs-archive-cleanup-v4 ul.products {
        display: grid;
        gap: 8px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.sai-herbs-archive-cleanup-v4 .woocommerce ul.products li.product,
    body.sai-herbs-archive-cleanup-v4 ul.products li.product,
    body.sai-herbs-archive-cleanup-v4 .products .product,
    body.sai-herbs-archive-cleanup-v4 .product-grid-item,
    body.sai-herbs-archive-cleanup-v4 .wd-product {
        border-radius: 12px;
        box-shadow: 0 7px 18px rgba(6, 59, 37, 0.07);
        margin: 0 !important;
        padding: 5px;
        width: auto !important;
    }

    body.sai-herbs-archive-cleanup-v4 .product-information,
    body.sai-herbs-archive-cleanup-v4 .product-wrapper,
    body.sai-herbs-archive-cleanup-v4 .product-meta,
    body.sai-herbs-archive-cleanup-v4 .product-element-bottom {
        padding-bottom: 1px !important;
        padding-top: 2px !important;
    }

    body.sai-herbs-archive-cleanup-v4 .wd-add-btn,
    body.sai-herbs-archive-cleanup-v4 .product-buttons,
    body.sai-herbs-archive-cleanup-v4 .product-actions {
        margin-top: 4px !important;
    }

    body.sai-herbs-archive-cleanup-v4 .product-element-top,
    body.sai-herbs-archive-cleanup-v4 .product-image-link,
    body.sai-herbs-archive-cleanup-v4 .woocommerce ul.products li.product > a:first-child,
    body.sai-herbs-archive-cleanup-v4 ul.products li.product > a:first-child {
        aspect-ratio: auto;
        border-radius: 10px;
        height: 106px;
        margin-bottom: 5px;
        max-height: 106px;
        min-height: 0;
    }

    body.sai-herbs-archive-cleanup-v4 .product-element-top img,
    body.sai-herbs-archive-cleanup-v4 .product-image-link img,
    body.sai-herbs-archive-cleanup-v4 .woocommerce ul.products li.product img,
    body.sai-herbs-archive-cleanup-v4 ul.products li.product img {
        max-height: 98px;
        padding: 4px;
    }

    body.sai-herbs-archive-cleanup-v4 .woocommerce-loop-product__title,
    body.sai-herbs-archive-cleanup-v4 .wd-entities-title,
    body.sai-herbs-archive-cleanup-v4 .product-title,
    body.sai-herbs-archive-cleanup-v4 .product-title a,
    body.sai-herbs-archive-cleanup-v4 .wd-entities-title a {
        font-size: 11.5px;
        line-height: 1.18;
        margin-bottom: 4px;
        max-height: 2.36em;
        min-height: 2.36em;
    }

    body.sai-herbs-archive-cleanup-v4 .price,
    body.sai-herbs-archive-cleanup-v4 .price ins,
    body.sai-herbs-archive-cleanup-v4 .product-price,
    body.sai-herbs-archive-cleanup-v4 .woocommerce-Price-amount {
        font-size: 12.5px;
        line-height: 1.15;
    }

    body.sai-herbs-archive-cleanup-v4 .price del {
        font-size: 10px;
    }

    body.sai-herbs-archive-cleanup-v4 .variations_form,
    body.sai-herbs-archive-cleanup-v4 .wd-product .wd-swatches-grid,
    body.sai-herbs-archive-cleanup-v4 .wd-product .wd-product-sku,
    body.sai-herbs-archive-cleanup-v4 .wd-product .wd-product-brands-links,
    body.sai-herbs-archive-cleanup-v4 .product-small .woocommerce-product-details__short-description,
    body.sai-herbs-archive-cleanup-v4 .product-small .product-attributes,
    body.sai-herbs-archive-cleanup-v4 .wd-product .wd-product-stock {
        font-size: 10px;
        line-height: 1.12;
        margin-bottom: 2px;
        margin-top: 2px;
    }

    body.sai-herbs-archive-cleanup-v4 .products .product .button,
    body.sai-herbs-archive-cleanup-v4 .woocommerce ul.products li.product .button,
    body.sai-herbs-archive-cleanup-v4 ul.products li.product .button,
    body.sai-herbs-archive-cleanup-v4 .product-grid-item .button,
    body.sai-herbs-archive-cleanup-v4 .wd-product .button,
    body.sai-herbs-archive-cleanup-v4 .products .product .add_to_cart_button,
    body.sai-herbs-archive-cleanup-v4 .woocommerce ul.products li.product .add_to_cart_button,
    body.sai-herbs-archive-cleanup-v4 ul.products li.product .add_to_cart_button,
    body.sai-herbs-archive-cleanup-v4 .product-grid-item .add_to_cart_button,
    body.sai-herbs-archive-cleanup-v4 .wd-product .add_to_cart_button,
    body.sai-herbs-archive-cleanup-v4 .wd-add-btn a {
        font-size: 10.5px;
        min-height: 28px;
        padding: 7px 8px;
    }

    body.sai-herbs-archive-cleanup-v4 .onsale,
    body.sai-herbs-archive-cleanup-v4 .product-labels .onsale,
    body.sai-herbs-archive-cleanup-v4 .product-label.onsale,
    body.sai-herbs-archive-cleanup-v4 .product-label.sale {
        display: none !important;
    }

    body.sai-herbs-archive-cleanup-v4 .wishlist,
    body.sai-herbs-archive-cleanup-v4 .yith-wcwl-add-to-wishlist,
    body.sai-herbs-archive-cleanup-v4 .wd-wishlist-btn {
        opacity: 0.48;
        transform: scale(0.76);
    }
}

@media (max-width: 380px) {
    body.sai-herbs-archive-cleanup-v4 .product-element-top,
    body.sai-herbs-archive-cleanup-v4 .product-image-link,
    body.sai-herbs-archive-cleanup-v4 .woocommerce ul.products li.product > a:first-child,
    body.sai-herbs-archive-cleanup-v4 ul.products li.product > a:first-child {
        height: 96px;
        max-height: 96px;
    }

    body.sai-herbs-archive-cleanup-v4 .product-element-top img,
    body.sai-herbs-archive-cleanup-v4 .product-image-link img,
    body.sai-herbs-archive-cleanup-v4 .woocommerce ul.products li.product img,
    body.sai-herbs-archive-cleanup-v4 ul.products li.product img {
        max-height: 88px;
    }
}
