:is(.woocommerce-shop, .tax-product_cat) #content > .tg-container--flex {
    align-items: flex-start;
    gap: clamp(18px, 3vw, 42px);
}

:is(.woocommerce-shop, .tax-product_cat) #content #primary { flex: 1 1 0; min-width: 0; padding-inline: 0; }
:is(.woocommerce-shop, .tax-product_cat) #content #secondary {
    flex: 0 0 clamp(210px, 21vw, 265px);
    padding: 0;
    border: 0;
}

:is(.woocommerce-shop, .tax-product_cat) #content .woocommerce-breadcrumb { margin: 0 0 12px; color: var(--trop-muted); font: 400 .9rem/1.45 var(--trop-sans); }
:is(.woocommerce-shop, .tax-product_cat) #content .woocommerce-breadcrumb a { color: var(--trop-green); }
:is(.woocommerce-shop, .tax-product_cat) #content .woocommerce-products-header {
    margin: 0 0 20px;
    padding: clamp(20px, 3vw, 34px);
    border: 1px solid var(--trop-line);
    border-top: 4px solid var(--trop-orange);
    border-radius: 14px;
    background: #eef2e8;
}

.woocommerce-shop #content .woocommerce-products-header {
    padding: clamp(22px, 4vw, 46px);
    border-inline: 0;
    border-bottom: 0;
    background-color: var(--trop-dark);
    background-image: linear-gradient(90deg, var(--trop-dark) 43%, #102a2180 67%, transparent 100%), url('images/loose-leaf-tea-hero-640.jpg');
    background-position: center, right center;
    background-repeat: no-repeat;
    background-size: cover, max(55%, 410px) auto;
    color: var(--trop-white);
}

:is(.woocommerce-shop, .tax-product_cat) #content .woocommerce-products-header .page-title {
    margin: 0;
    font-size: clamp(1.85rem, 3.5vw, 2.85rem);
    letter-spacing: -.03em;
}

.tax-product_cat #content .woocommerce-products-header .term-description { margin-top: 12px; color: var(--trop-ink); }
.tax-product_cat #content .woocommerce-products-header .term-description > :last-child { margin-bottom: 0; }
.woocommerce-shop #content .woocommerce-products-header .page-title { margin-bottom: 14px; color: var(--trop-white); font-size: clamp(2rem, 4vw, 3.15rem); }

.woocommerce-shop #content .woocommerce-products-header .buyers-guide {
    width: fit-content;
    max-width: 100%;
    margin: 0;
    border-color: #fffdf855;
    background: var(--trop-dark);
    color: var(--trop-white);
}

.woocommerce-shop #content .woocommerce-products-header .buyers-guide a { color: var(--trop-gold); }

:is(.woocommerce-shop, .tax-product_cat) #content .trop-shop-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    margin: 0 0 18px;
    padding: 9px 14px;
    border: 1px solid var(--trop-line);
    border-radius: 11px;
    background: var(--trop-white);
}

:is(.woocommerce-shop, .tax-product_cat) #content .trop-shop-tools > div:empty { display: none; }
:is(.woocommerce-shop, .tax-product_cat) #content .trop-shop-tools .woocommerce-result-count { float: none; margin: 0 auto 0 0; color: var(--trop-ink); font: 400 .9rem/1.4 var(--trop-sans); }
:is(.woocommerce-shop, .tax-product_cat) #content .trop-shop-tools .woocommerce-ordering { float: none; max-width: 100%; margin: 0; }
:is(.woocommerce-shop, .tax-product_cat) #content .trop-shop-tools .woocommerce-ordering select { min-height: 42px; max-width: 100%; color: var(--trop-green); }

:is(.woocommerce-shop, .tax-product_cat) #content .trop-shop-tools :is(.berocket_lgv_widget, .br_lgv_product_count_block) {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin: 0;
}

:is(.woocommerce-shop, .tax-product_cat) #content .trop-shop-tools .berocket_lgv_widget > .br_lgv_product_count_block { margin-inline-end: 6px; }
:is(.woocommerce-shop, .tax-product_cat) #content .trop-shop-tools .br_lgv_product_count_block > span:not(.text),
:is(.woocommerce-shop, .tax-product_cat) #content .trop-shop-tools .br_lgv_product_count_block > span:empty { display: none; }
:is(.woocommerce-shop, .tax-product_cat) #content .trop-shop-tools :is(.br_lgv_product_count_set, .berocket_lgv_button) {
    display: inline-grid;
    place-items: center;
    min-width: 38px;
    min-height: 38px;
    padding: 4px 7px;
    margin: 0;
    border: 1px solid var(--trop-line);
    border-radius: 7px;
    background: var(--trop-paper);
    box-shadow: none;
    color: var(--trop-green);
    font-size: .85rem;
    text-decoration: none;
}

:is(.woocommerce-shop, .tax-product_cat) #content .trop-shop-tools :is(.br_lgv_product_count_set, .berocket_lgv_button):hover { background: #e9eee4; }
:is(.woocommerce-shop, .tax-product_cat) #content .trop-shop-tools :is(.br_lgv_product_count_set, .berocket_lgv_button).selected { border-color: var(--trop-green); background: var(--trop-green); color: var(--trop-white); }

:is(.woocommerce-shop, .tax-product_cat) #content #secondary .widget { margin: 0 0 16px; padding: clamp(15px, 2vw, 22px); border-radius: 13px; box-shadow: 0 6px 20px #23462f0b; }
:is(.woocommerce-shop, .tax-product_cat) #content #secondary .widget_product_categories { border-top: 4px solid var(--trop-orange); }
:is(.woocommerce-shop, .tax-product_cat) #content #secondary .widget-title { margin: 0 0 12px; }
:is(.woocommerce-shop, .tax-product_cat) #content #secondary .product-categories { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
:is(.woocommerce-shop, .tax-product_cat) #content #secondary .product-categories li { margin: 0; padding: 0; border: 0; }
:is(.woocommerce-shop, .tax-product_cat) #content #secondary .product-categories a {
    display: block;
    padding: 8px 9px;
    border-inline-start: 3px solid transparent;
    border-radius: 7px;
    color: var(--trop-ink);
    font: 500 .9375rem/1.4 var(--trop-sans);
    text-decoration: none;
}

:is(.woocommerce-shop, .tax-product_cat) #content #secondary .product-categories a:hover { background: #e9eee4; }
.tax-product_cat #content #secondary .product-categories .current-cat > a {
    border-inline-start-color: var(--trop-orange);
    background: #e9eee4;
    color: var(--trop-green);
    font-weight: 650;
}
:is(.woocommerce-shop, .tax-product_cat) #content #secondary .yith-woocompare-widget-content { color: var(--trop-muted); }
:is(.woocommerce-shop, .tax-product_cat) #content #secondary .yith-woocompare-widget-content .button { border-radius: 7px; background: var(--trop-green); color: var(--trop-white); }

:is(.woocommerce-shop, .tax-product_cat) #content ul.products li.product:not(.berocket_lgv_list) { border-radius: 13px; box-shadow: 0 4px 14px #23462f0a; }
:is(.woocommerce-shop, .tax-product_cat) #content ul.products li.product:not(.berocket_lgv_list):hover { box-shadow: 0 8px 20px #23462f1a; }
:is(.woocommerce-shop, .tax-product_cat) #content ul.products li.product:not(.berocket_lgv_list) a img { aspect-ratio: 1; object-fit: cover; margin-bottom: 12px; }
:is(.woocommerce-shop, .tax-product_cat) #content ul.products li.product .woocommerce-loop-product__title { font-size: clamp(.94rem, 1.25vw, 1.0625rem); }
:is(.woocommerce-shop, .tax-product_cat) #content ul.products li.product .shortd { color: var(--trop-muted); font: 400 .875rem/1.45 var(--trop-sans); text-align: start; }
:is(.woocommerce-shop, .tax-product_cat) #content .woocommerce-pagination ul.page-numbers { display: inline-flex; flex-wrap: wrap; gap: 5px; border: 0; }
:is(.woocommerce-shop, .tax-product_cat) #content .woocommerce-pagination ul.page-numbers li { border: 0; }
:is(.woocommerce-shop, .tax-product_cat) #content .woocommerce-pagination ul.page-numbers li > .page-numbers { min-width: 38px; border: 1px solid var(--trop-line); border-radius: 7px; background: var(--trop-white); color: var(--trop-green); }
:is(.woocommerce-shop, .tax-product_cat) #content .woocommerce-pagination ul.page-numbers li > .current { border-color: var(--trop-green); background: var(--trop-green); color: var(--trop-white); }

@media (max-width: 830px) {
    :is(.woocommerce-shop, .tax-product_cat) #content > .tg-container--flex { flex-direction: column; }
    :is(.woocommerce-shop, .tax-product_cat) #content :is(#primary, #secondary) { width: 100%; flex: none; }
}

@media (max-width: 540px) {
    .woocommerce-shop #content .woocommerce-products-header {
        background-image: linear-gradient(90deg, var(--trop-dark), #102a21bb), url('images/loose-leaf-tea-hero-640.jpg');
        background-size: cover;
    }
    :is(.woocommerce-shop, .tax-product_cat) #content .trop-shop-tools .berocket_lgv_widget { flex-basis: 100%; }
}
