/**
* Theme Name:        avanam-bloomcraft
* Theme URI:         https://templatemela.com/
* Template:          avanam
* Author:            TemplateMela
* Author URI:        #
* Description:       This is a child theme of Avanam, generated by TemplateMela.
* Version:           1.0.4
* License:           GNU General Public License v3.0 (or later)
* License URI:       https://www.gnu.org/licenses/gpl-3.0.html
* Text Domain:       avanam-bloomcraft
* Requires at least: 6.2
* Tested up to:      6.6
* Requires PHP:      7.4
* Tags: translation-ready, two-columns, right-sidebar, left-sidebar, footer-widgets, blog, custom-logo, custom-background, custom-menu, rtl-language-support, editor-style, threaded-comments, custom-colors, featured-images, wide-blocks, full-width-template, theme-options, e-commerce

*/

/* Partner Bungaku catalogue cards — start */
.pb-card-sku,
.pb-card-actions {
    display: none;
}

@media (min-width: 1200px) {
    :where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) .content-container.site-container {
        grid-template-columns: 272px minmax(0, 932px);
        gap: 32px;
        max-width: 1236px;
    }
}

:where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) ul.products.product-archive {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
    align-items: stretch;
}

:where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) ul.products.product-archive > li.product {
    position: relative;
    display: flex !important;
    flex-direction: column;
    min-width: 0;
    height: 620px;
    overflow: hidden;
    border: 1px solid rgba(40, 23, 26, 0.08);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(40, 23, 26, 0.08);
}

:where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) ul.products.product-archive > li.product .product-thumbnail {
    position: relative;
    flex: 0 0 375px;
    width: 100%;
    height: 375px;
    overflow: hidden;
    background: #fff8f7;
}

:where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) ul.products.product-archive > li.product .woocommerce-loop-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

:where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) ul.products.product-archive > li.product .product-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    object-fit: cover;
    object-position: center;
}

:where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) ul.products.product-archive > li.product .secondary-product-image {
    display: none !important;
}

:where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) ul.products.product-archive > li.product .product-details {
    display: flex !important;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    height: 245px;
    min-height: 245px;
    padding: 24px !important;
    border-top: 1px solid rgba(40, 23, 26, 0.08);
    background: #ffffff;
    box-sizing: border-box;
}

:where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) .pb-card-sku {
    display: block;
    margin: 0 0 4px;
    color: rgba(40, 23, 26, 0.48);
    font-family: Lora, serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
}

:where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) ul.products.product-archive > li.product .woocommerce-loop-product__title {
    display: -webkit-box;
    min-height: 44px;
    max-height: 44px;
    margin: 0 0 10px !important;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

:where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) ul.products.product-archive > li.product .woocommerce-loop-product__title a {
    color: #28171a !important;
    font-family: Lora, serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 22px !important;
}

:where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) ul.products.product-archive > li.product .star-rating-block,
:where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) ul.products.product-archive > li.product .product-excerpt,
:where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) ul.products.product-archive > li.product .product-action-wrap {
    display: none !important;
}

:where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) ul.products.product-archive > li.product .price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0 !important;
    color: #b80049 !important;
    font-family: Lora, serif;
    font-size: 16px !important;
    font-weight: 600;
    line-height: 22px;
}

:where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) ul.products.product-archive > li.product .price del {
    color: rgba(40, 23, 26, 0.48) !important;
    font-size: 12px;
    font-weight: 400;
}

:where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) ul.products.product-archive > li.product .price ins {
    color: #b80049 !important;
    text-decoration: none;
}

:where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) .pb-card-actions {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 12px;
    margin-top: auto;
}

:where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) .pb-card-actions a {
    display: inline-flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    font-family: Lora, serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

:where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) .pb-card-buy {
    border: 1px solid #1b6d24;
    background: #1b6d24;
    color: #fcf8f0 !important;
}

:where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) .pb-card-detail {
    border: 1px solid #b80049;
    background: transparent;
    color: #b80049 !important;
}

:where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) .pb-card-buy:hover,
:where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) .pb-card-buy:focus {
    border-color: #14551c;
    background: #14551c;
    color: #ffffff !important;
}

:where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) .pb-card-detail:hover,
:where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) .pb-card-detail:focus {
    background: #b80049;
    color: #ffffff !important;
}

:where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) .product-onsale {
    top: 12px !important;
    left: 12px !important;
    z-index: 5;
}

:where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) .product-onsale .onsale {
    min-width: 0 !important;
    height: 28px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    background: #b80049 !important;
    color: #fcf8f0 !important;
    font-family: Lora, serif;
    font-size: 11px !important;
    font-weight: 500;
    line-height: 28px !important;
}

:where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) li.product.featured:not(.sale)::before {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 6;
    content: "Best Seller";
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: #ff9d00;
    color: #fcf8f0;
    font-family: Lora, serif;
    font-size: 11px;
    font-weight: 500;
    line-height: 28px;
}

:where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) .product-thumbnail .product-actions {
    position: static !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
}

:where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) .product-thumbnail .product-actions > * {
    display: none !important;
}

:where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) .product-thumbnail .product-actions .woosw-btn {
    position: absolute !important;
    right: 12px;
    bottom: 12px;
    z-index: 7;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #ff9d00 !important;
    color: #ffffff !important;
    opacity: 1 !important;
    transform: none !important;
}

:where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) .product-thumbnail .product-actions .woosw-btn .woosw-btn-icon,
:where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) .product-thumbnail .product-actions .woosw-btn .woosw-btn-text {
    display: none !important;
}

:where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) .product-thumbnail .product-actions .woosw-btn::before {
    content: "☆";
    font-family: Arial, sans-serif;
    font-size: 23px;
    font-weight: 400;
    line-height: 1;
}

:where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) li.product_tag_hot .product-thumbnail::after {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 7;
    width: 36px;
    height: 36px;
    border: 1px solid #a83206;
    border-radius: 50%;
    background-color: #fff8f7;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23A83206' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2c.4 3.2-2.8 4.6-2.8 7.6 0 1.7 1.2 2.8 2.8 2.8 1.8 0 3-1.3 3-3.1 0-1.1-.4-2-.8-2.8 2.4 1.6 4.3 4.1 4.3 7.2A6.5 6.5 0 0 1 12 20.2a6.5 6.5 0 0 1-6.5-6.5c0-3.2 1.8-5.6 4.3-7.8-.1 2.1.8 3.6 2.2 4.2'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    content: "";
    box-sizing: border-box;
}

@media (max-width: 1199px) {
    :where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) ul.products.product-archive {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767px) {
    :where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) ul.products.product-archive {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    :where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) ul.products.product-archive > li.product {
        height: auto;
        min-height: 620px;
    }

    :where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) ul.products.product-archive > li.product .product-thumbnail {
        height: auto;
        min-height: 375px;
        aspect-ratio: 4 / 5;
    }
}
/* Partner Bungaku catalogue cards — end */


/* Partner Bungaku catalogue card theme overrides */
:where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) ul.products.product-archive > li.product {
    overflow: hidden !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(40, 23, 26, 0.08) !important;
}

:where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) ul.products.product-archive > li.product .product-action-wrap {
    display: block !important;
    width: 100%;
    margin-top: auto;
}

:where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) ul.products.product-archive > li.product .product-action-wrap > .button {
    display: none !important;
}

:where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) ul.products.product-archive > li.product .product-action-wrap .pb-card-actions {
    margin-top: 0;
}

:where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) .product-onsale .onsale {
    font-size: 0 !important;
}

:where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) .product-onsale .onsale::before {
    content: "Harga Spesial";
    font-family: Lora, serif;
    font-size: 11px;
    font-weight: 500;
}
/* Partner Bungaku catalogue card theme overrides — end */


/* Partner Bungaku catalogue card content-flow fix */
:where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) ul.products.product-archive > li.product .product-details > .pb-card-sku {
    order: 1;
}

:where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) ul.products.product-archive > li.product .product-details > .woocommerce-loop-product__title {
    order: 2;
}

:where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) ul.products.product-archive > li.product .product-details > .price {
    order: 3;
}

:where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) ul.products.product-archive > li.product .product-details > .product-action-wrap {
    position: static !important;
    order: 4;
    width: 100% !important;
    margin-top: auto !important;
    padding: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
}

:where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) ul.products.product-archive > li.product .product-details > .product-action-wrap .pb-card-actions {
    width: 100%;
}
/* Partner Bungaku catalogue card content-flow fix — end */


/* Partner Bungaku catalogue card final alignment */
:where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) ul.products.product-archive > li.product .woocommerce-loop-product__title,
:where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) ul.products.product-archive > li.product .woocommerce-loop-product__title a {
    width: 100%;
    text-align: left !important;
}

:where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) .product-onsale {
    right: auto !important;
    width: auto !important;
    max-width: none !important;
    overflow: visible !important;
}

:where(body.post-type-archive-product, body.tax-product_cat, body.tax-product_tag) .product-onsale .onsale {
    display: inline-flex !important;
    align-items: center;
    width: auto !important;
    max-width: none !important;
    white-space: nowrap;
}
/* Partner Bungaku catalogue card final alignment — end */


/* Partner Bungaku functional catalogue filters — start */
#secondary .pb-catalog-filter {
    width: 100%;
    padding: 24px;
    border: 1px solid rgba(40, 23, 26, 0.04);
    border-radius: 12px;
    background: rgba(40, 23, 26, 0.04);
    color: #28171a;
    font-family: Lora, serif;
    box-sizing: border-box;
}

#secondary .pb-catalog-filter .pb-filter-form {
    margin: 0;
}

#secondary .pb-catalog-filter details {
    margin: 0 0 32px !important;
    border: 0 !important;
}

#secondary .pb-catalog-filter details:last-of-type {
    margin-bottom: 24px !important;
}

#secondary .pb-catalog-filter summary {
    position: relative;
    padding: 0 28px 12px 0 !important;
    color: #28171a;
    font-family: Lora, serif;
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 26px !important;
}

#secondary .pb-catalog-filter summary::after {
    right: 0 !important;
    color: #b80049 !important;
    font-size: 20px !important;
}

#secondary .pb-catalog-filter ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
}

#secondary .pb-catalog-filter li {
    margin: 0 !important;
    padding: 0 !important;
}

#secondary .pb-catalog-filter .pb-filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    color: #28171a;
    font-family: Lora, serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    cursor: pointer;
}

#secondary .pb-catalog-filter .pb-filter-checkbox {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 0;
    border: 1px solid rgba(40, 23, 26, 0.24);
    border-radius: 4px;
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    box-sizing: border-box;
    cursor: pointer;
}

#secondary .pb-catalog-filter .pb-filter-checkbox:checked {
    border-color: #b80049;
    background-color: #b80049;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.2 4.6 9 10 3' fill='none' stroke='%23fff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

#secondary .pb-catalog-filter .pb-filter-checkbox:focus-visible {
    outline: 2px solid rgba(184, 0, 73, 0.35);
    outline-offset: 2px;
}

#secondary .pb-catalog-filter .pb-filter-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: #b80049;
    color: #fcf8f0;
    font-family: Lora, serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
}

#secondary .pb-catalog-filter .pb-filter-submit:hover,
#secondary .pb-catalog-filter .pb-filter-submit:focus {
    background: #96003c;
    color: #ffffff;
}
/* Partner Bungaku functional catalogue filters — end */
