/* Main WooCommerce shop grouped by product categories. All other archives remain unchanged. */
body.yalla-pv-grouped-shop .ypv-grouped-shop {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
body.yalla-pv-grouped-shop .ypv-grouped-shop-sections {
    display: flex;
    flex-direction: column;
    gap: var(--ypv-sections-gap, 58px);
    width: 100%;
}
body.yalla-pv-grouped-shop .ypv-category-section {
    min-width: 0;
    width: 100%;
    --ypv-section-title-color: var(--ypv-heading-color, #284B38);
}
body.yalla-pv-grouped-shop .ypv-category-section__title {
    font-family: var(--ypv-heading-font, inherit) !important;
    font-size: var(--ypv-heading-size, 30px) !important;
    font-weight: var(--ypv-heading-weight, 700) !important;
    line-height: 1.22 !important;
    color: var(--ypv-section-title-color, #284B38) !important;
    margin: 0 0 26px !important;
    padding: 0 !important;
    text-transform: none !important;
    text-align: left;
}
body.yalla-pv-grouped-shop .ypv-category-section ul.products,
body.yalla-pv-grouped-shop .ypv-category-section ol.products {
    display: grid !important;
    grid-template-columns: repeat(var(--ypv-cols-desktop, 4), minmax(0, 1fr)) !important;
    column-gap: var(--ypv-card-gap, 24px) !important;
    row-gap: var(--ypv-card-gap, 24px) !important;
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    float: none !important;
    clear: both;
}
body.yalla-pv-grouped-shop .ypv-category-section ul.products > li,
body.yalla-pv-grouped-shop .ypv-category-section ol.products > li {
    float: none !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    flex-basis: auto !important;
    clear: none !important;
}
body.yalla-pv-grouped-shop .ypv-groups-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 4px 0 34px;
}
body.yalla-pv-grouped-shop .ypv-groups-filter__button {
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: #284B38;
    border: 1px solid #d9e1db;
    border-radius: 999px;
    background: #fff;
    text-decoration: none;
    padding: 10px 19px;
    transition: background .18s, color .18s, border-color .18s;
}
body.yalla-pv-grouped-shop .ypv-groups-filter__button:is(:hover, :focus-visible, .is-active) {
    background: #284B38;
    border-color: #284B38;
    color: #fff;
}
body.yalla-pv-grouped-shop .ypv-groups-filter__button:focus-visible { outline: 2px solid #284B38; outline-offset: 3px; }
body.yalla-pv-grouped-shop .ypv-groups-filter.is-loading { opacity: .6; pointer-events: none; }
body.yalla-pv-grouped-shop .ypv-grouped-shop-empty { margin: 30px 0; }
@media (max-width: 1024px) {
    body.yalla-pv-grouped-shop .ypv-category-section ul.products,
    body.yalla-pv-grouped-shop .ypv-category-section ol.products {
        grid-template-columns: repeat(var(--ypv-cols-tablet, 2), minmax(0,1fr)) !important;
    }
    body.yalla-pv-grouped-shop .ypv-category-section__title { font-size: calc(var(--ypv-heading-size, 30px) * .88) !important; }
}
@media (max-width: 767px) {
    body.yalla-pv-grouped-shop .ypv-category-section ul.products,
    body.yalla-pv-grouped-shop .ypv-category-section ol.products {
        grid-template-columns: repeat(var(--ypv-cols-mobile, 1), minmax(0,1fr)) !important;
    }
    body.yalla-pv-grouped-shop .ypv-category-section__title { font-size: calc(var(--ypv-heading-size,30px) * .8) !important; margin-bottom: 19px !important; }
    body.yalla-pv-grouped-shop .ypv-groups-filter { margin-bottom: 22px; }
}

body.yalla-pv-grouped-shop .ypv-shop-sorting {display:flex;justify-content:flex-end;align-items:center;margin:0 0 24px;}
body.yalla-pv-grouped-shop .ypv-shop-sorting form.woocommerce-ordering {margin:0;float:none;}
body.yalla-pv-grouped-shop .ypv-shop-sorting select.orderby {border:1px solid #d9e1db;border-radius:8px;padding:10px 12px;background:#fff;color:#284B38;min-height:42px;}
