/*
 Theme Name:   Astra Child
 Theme URI:    http://localhost:8080
 Description:  Astra Child Theme
 Author:       Developer
 Author URI:   http://localhost:8080
 Template:     astra
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  astra-child
*/

/* Hide Astra hover cart/quick view icon */
.ast-on-card-button {
    display: none !important;
}

/* Hide out of stock badge over product image */
.woocommerce ul.products li.product .ast-shop-product-out-of-stock,
.woocommerce ul.products li.product .ast-oos-badge,
.woocommerce ul.products li.product span.ast-out-of-stock,
.woocommerce ul.products li.product .out-of-stock-label,
.woocommerce span.onsale.out-of-stock {
    display: none !important;
}

/* Product Catalog Grid */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 0;
    margin: 0;
}

/* Product Card */
.woocommerce ul.products li.product {
    border: 1px solid #e5e5e5;
    padding: 0;
    margin: 0 !important;
    width: 100% !important;
    background: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Product Image */
.woocommerce ul.products li.product .astra-shop-thumbnail-wrap {
    margin: 0;
    padding: 0;
    background: #f8f8f8;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.woocommerce ul.products li.product .astra-shop-thumbnail-wrap img {
    margin: 0;
    padding: 0;
    border: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Product Info Section */
.woocommerce ul.products li.product .astra-shop-summary-wrap {
    padding: 12px 15px 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* SKU Display */
.woocommerce ul.products li.product .product-sku {
    color: #999;
    font-size: 11px;
    margin: 0;
    display: block;
    padding: 0 0 0 15px;
}

/* Product Title */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin: 0;
    padding: 0 !important;
}


/* Price */
.woocommerce ul.products li.product .price {
    color: var(--ast-global-color-0);
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px 0;
    margin-top: auto;
    display: block;
}

/* Quantity + Add to Cart Row */
.woocommerce ul.products li.product .qty-cart-row {
    display: flex;
    align-items: stretch;
    border-radius: 4px;
    overflow: hidden;
}

.woocommerce ul.products li.product .qty-cart-row .qty-selector {
    background: #fff;
    display: flex;
    align-items: center;
    padding: 0;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 4px 0 0 4px;
}

.woocommerce ul.products li.product .qty-cart-row .qty_select {
    width: 55px;
    height: 36px;
    border: none;
    padding: 0 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    background: #fff;
    text-align: center;
    appearance: auto;
}

.woocommerce ul.products li.product .qty-cart-row a.button,
.woocommerce ul.products li.product .qty-cart-row a.add_to_cart_button,
.woocommerce ul.products li.product .qty-cart-row span.button {
    background-color: var(--ast-global-color-0) !important;
    color: #fff !important;
    border: none;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 4px 4px 0;
    box-sizing: border-box;
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
}

/* Mobile: smaller add to cart button */
@media (max-width: 480px) {
    .woocommerce ul.products li.product .qty-cart-row a.button,
    .woocommerce ul.products li.product .qty-cart-row a.add_to_cart_button,
    .woocommerce ul.products li.product .qty-cart-row span.button {
        padding: 8px 10px;
        font-size: 11px;
    }
    
    .woocommerce ul.products li.product .qty-cart-row .qty_select {
        width: 45px;
        padding: 0 4px;
        font-size: 12px;
    }
}

.woocommerce ul.products li.product .qty-cart-row a.button:hover,
.woocommerce ul.products li.product .qty-cart-row a.add_to_cart_button:hover {
    background-color: color-mix(in srgb, var(--ast-global-color-0) 85%, black) !important;
}

/* Out of Stock styling */
.woocommerce ul.products li.product .qty-cart-row.out-of-stock-row {
    width: 100%;
}

.woocommerce ul.products li.product .qty-cart-row.out-of-stock-row .qty-selector {
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 4px 0 0 4px;
}

.woocommerce ul.products li.product .qty-cart-row span.button.disabled {
    background-color: #888 !important;
    cursor: not-allowed;
    min-height: 36px;
}

.woocommerce ul.products li.product .qty-cart-row.out-of-stock-row .qty_select {
    color: #999;
    cursor: not-allowed;
}

/* Clear Cart button padding */
.clear-cart-button {
    padding: 10px 20px !important;
    background-color: #dc3545 !important;
    color: #fff !important;
    border-color: #dc3545 !important;
}

.clear-cart-button:hover {
    background-color: #c82333 !important;
    border-color: #c82333 !important;
}

@media (max-width: 768px) {
    .woocommerce-cart .clear-cart-button {
        margin-top: 10px;
    }
}

/* Hide old quantity dropdown */
.woocommerce ul.products li.product .quantity_drop_down {
    display: none;
}

/* Responsive */
@media (max-width: 992px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }
}


/* Below Header Widget Area */
.below-header-widget-area {
    width: 100%;
    background: #f5f5f5;
}

.below-header-widget-area .below-header-widget-inner {
    max-width: calc(var(--ast-normal-container-width, 1200px) + 40px);
    margin: 0 auto;
    padding: 10px 20px;
}

.below-header-widget-area .widget {
    margin: 0;
}

.below-header-widget-area .widget-title {
    display: none;
}

/* Remove empty paragraph margins in YMM widget */
.below-header-widget-area .widget_block p {
    margin: 0;
    padding: 0;
    line-height: 0;
}


/* YMM Search Widget Styling - Always inline, responsive dropdowns */
.ymm-selector.ymm-horizontal .ymm-clear {
    display: none;
}

.ymm-selector.ymm-horizontal .ymm-inline-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: 800px;
    margin: 0 auto;
}

.ymm-selector.ymm-horizontal .ymm-inline-row .level {
    flex: 1 1 0;
    min-width: 0;
    float: none;
    width: auto;
}

.ymm-selector.ymm-horizontal .ymm-inline-row .level select {
    width: 100%;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

.ymm-selector.ymm-horizontal .ymm-inline-row .ymm-button-level {
    flex: 0 0 auto;
    width: auto;
    float: none;
}

/* Desktop: Show text button */
.ymm-selector.ymm-horizontal .ymm-inline-row button.ymm-submit-any-selection {
    height: 38px;
    padding: 0 20px;
    margin: 0;
    background-color: var(--ast-global-color-0);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    box-sizing: border-box;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.ymm-selector.ymm-horizontal .ymm-inline-row button.ymm-submit-any-selection:hover {
    background-color: color-mix(in srgb, var(--ast-global-color-0) 85%, black);
}

/* Responsive - keep inline but adjust sizes, icon button on mobile */
@media (max-width: 768px) {
    .ymm-selector.ymm-horizontal .ymm-inline-row {
        gap: 4px;
    }
    
    .ymm-selector.ymm-horizontal .ymm-inline-row .level select {
        height: 30px;
        padding: 0 4px;
        font-size: 11px;
    }
    
    /* Mobile: Icon-only button */
    .ymm-selector.ymm-horizontal .ymm-inline-row button.ymm-submit-any-selection {
        width: 30px;
        height: 30px;
        padding: 0;
        font-size: 0; /* Hide text */
    }
    
    .ymm-selector.ymm-horizontal .ymm-inline-row button.ymm-submit-any-selection::before {
        content: '\f002';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 14px;
    }
}



/* Prevent sidebar flash during AJAX filtering */
.woocommerce.ajax-loading #secondary,
.woocommerce.processing #secondary {
    opacity: 1;
    visibility: visible;
}

/* Hide default WordPress sidebar widgets that might flash */
#secondary .widget_search,
#secondary .widget_recent_entries,
#secondary .widget_recent_comments,
#secondary .widget_archives,
#secondary .widget_categories:not(.woocommerce),
#secondary .widget_meta,
#secondary .widget_pages,
#secondary .widget_calendar,
#secondary .widget_tag_cloud:not(.woocommerce) {
    display: none;
}

/* Remove left border on main content area */
.woocommerce #primary.content-area,
.ast-separate-container #primary {
    border-left: none !important;
}

/* Remove padding above Shop title */
.woocommerce-products-header,
.woocommerce .woocommerce-products-header {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.woocommerce .ast-woocommerce-container {
    padding-top: 0 !important;
}

#primary .ast-woocommerce-container {
    padding-top: 0 !important;
}


/* Remove left padding from primary content */
#primary {
    padding-left: 0 !important;
}


/* Remove border from sidebar */
.widget-area.secondary,
#secondary.widget-area {
    border: none !important;
}


/* Fix search widget button */
.woocommerce-product-search button[type="submit"],
.search-form button[type="submit"],
.ast-search-menu-icon .search-submit {
    white-space: nowrap;
    min-width: 80px;
    padding: 8px 15px;
}

/* Header search widget fix */
.ast-search-menu-icon form button.search-submit {
    white-space: nowrap;
}


/* Header product search widget fixes */
.site-header .woocommerce-product-search label,
header .woocommerce-product-search label {
    display: none !important;
}

.site-header .woocommerce-product-search,
header .woocommerce-product-search {
    display: flex;
    align-items: center;
}

.site-header .woocommerce-product-search input[type="search"],
header .woocommerce-product-search input[type="search"] {
    flex: 1;
}

.site-header .woocommerce-product-search button,
header .woocommerce-product-search button {
    white-space: nowrap;
    min-width: auto;
    padding: 10px 20px;
}


/* Header search widget - hide label and fix button */
.ast-builder-layout-element .woocommerce-product-search>label,
.ast-builder-layout-element form[role="search"]>label,
.widget_product_search label,
.woocommerce-product-search>label {
    display: none !important;
}

/* Make search form inline */
.woocommerce-product-search {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
}

.woocommerce-product-search input[type="search"] {
    flex: 1;
    min-width: 150px;
}

.woocommerce-product-search button[type="submit"] {
    white-space: nowrap !important;
    flex-shrink: 0;
}


/* Astra header builder search widget - hide Search text label */
.ast-builder-layout-element [role="search"] {
    font-size: 0;
}

.ast-builder-layout-element [role="search"]>* {
    font-size: 14px;
}

.ast-builder-layout-element [role="search"] input,
.ast-builder-layout-element [role="search"] button {
    font-size: 14px;
}


/* Hide Search label text in header - more aggressive approach */
.site-header-section form[role="search"],
.ast-header-widget-area form[role="search"] {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.site-header-section form[role="search"]::before,
.ast-header-widget-area form[role="search"]::before {
    content: none;
}


/* Hide Search label in Astra header widget */
.ast-builder-layout-element .woocommerce-product-search>span:first-child,
.ast-builder-layout-element .woocommerce-product-search>div:first-child:not(.search-field-wrap),
.woocommerce-product-search>label {
    display: none !important;
}


/* WordPress Block Search Widget - hide label and fix button */
.wp-block-search__label {
    display: none !important;
}

.wp-block-search__button {
    white-space: nowrap !important;
    min-width: 80px;
}

.wp-block-search {
    display: flex;
    align-items: center;
}

.wp-block-search__inside-wrapper {
    display: flex;
    align-items: center;
}


/* Better styling for search button */
.wp-block-search__button {
    background-color: var(--ast-global-color-0) !important;
    color: #fff !important;
    border: none !important;
    padding: 0 24px !important;
    border-radius: 0 4px 4px 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    height: 44px !important;
    line-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

.wp-block-search__button:hover {
    background-color: color-mix(in srgb, var(--ast-global-color-0) 85%, black) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--ast-global-color-0) 30%, transparent);
}

.wp-block-search__input {
    border-radius: 4px 0 0 4px !important;
    border: 1px solid #ddd !important;
    border-right: none !important;
    padding: 12px 15px !important;
    font-size: 14px !important;
    transition: border-color 0.3s ease;
    height: 44px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    flex: 1 !important;
}

.wp-block-search__input:focus {
    border-color: var(--ast-global-color-0) !important;
    outline: none !important;
}

.wp-block-search__inside-wrapper {
    display: flex !important;
    align-items: stretch !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    gap: 0 !important;
    margin: 0 !important;
}

.wp-block-search {
    margin: 0 !important;
}

/* Force search widget to be visible on mobile */
.ast-header-widget-area .wp-block-search,
.ast-builder-layout-element .wp-block-search,
.site-header .wp-block-search,
header .wp-block-search {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Mobile responsive styles */
@media (max-width: 921px) {

    /* Keep search visible in mobile menu */
    .ast-header-break-point .ast-header-widget-area,
    .ast-header-break-point .ast-builder-layout-element {
        display: block !important;
    }

    .ast-header-break-point .wp-block-search {
        display: block !important;
        width: 100% !important;
        padding: 10px 15px !important;
        box-sizing: border-box !important;
    }

    .ast-header-break-point .wp-block-search__inside-wrapper {
        width: 100% !important;
    }

    .ast-header-break-point .wp-block-search__input {
        min-width: 0 !important;
        width: 100% !important;
    }

    .ast-header-break-point .wp-block-search__button {
        min-width: 80px !important;
        padding: 0 16px !important;
        font-size: 12px !important;
    }
}

/* Ensure search is visible in Astra mobile menu */
.ast-mobile-popup-content .wp-block-search,
.ast-mobile-menu-content .wp-block-search {
    display: block !important;
    margin: 10px 0 !important;
}

/* Disable typing animation on site title/brand */
.site-title,
.site-title a,
.ast-site-identity .site-title,
.ast-site-identity .site-title a,
.site-branding .site-title,
.site-branding .site-title a {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    width: auto !important;
    overflow: visible !important;
    white-space: normal !important;
}

/* Align shop pagination to the right with top margin */
.woocommerce nav.woocommerce-pagination,
.woocommerce-page nav.woocommerce-pagination,
nav.woocommerce-pagination {
    text-align: right !important;
    margin-top: 30px !important;
    display: block !important;
}

.woocommerce nav.woocommerce-pagination ul,
.woocommerce-page nav.woocommerce-pagination ul,
nav.woocommerce-pagination ul {
    justify-content: flex-end !important;
    display: flex !important;
    float: right !important;
}

.woocommerce nav.woocommerce-pagination ul li,
.woocommerce-page nav.woocommerce-pagination ul li {
    float: none !important;
}

/* My Account Dashboard Grid Layout */
.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 100%;
    float: none;
    margin-bottom: 30px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    margin: 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    transition: all 0.3s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    padding: 25px 20px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 16px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background: #f8f9fa;
    color: #0073aa;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:before {
    content: '';
    display: inline-block;
    width: 50px;
    height: 50px;
    margin-right: 15px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

/* Font Awesome Icons for each menu item */
.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--dashboard a:before {
    content: '\f015';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0073aa;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--orders a:before {
    content: '\f466';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0073aa;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--edit-address a:before {
    content: '\f3c5';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0073aa;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--edit-account a:before {
    content: '\f007';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0073aa;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-logout a:before {
    content: '\f2f5';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0073aa;
}

.woocommerce-account .woocommerce-MyAccount-content {
    width: 100%;
    float: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .woocommerce-account .woocommerce-MyAccount-navigation ul {
        grid-template-columns: 1fr;
    }
}

/* Add icon for tax exemption menu item */
.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--tax-exemption a:before {
    content: '\f571';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0073aa;
}

/* Add icon for payment methods menu item */
.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--payment-methods a:before {
    content: '\f09d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0073aa;
}

/* Capitalize first letter of each word in menu items */
.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    text-transform: capitalize;
}

/* Add icon for wishlist menu item */
.woocommerce-account .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--wishlist a:before {
    content: '\f004';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0073aa;
}






/* Mobile filter button - hidden by default, shown only on mobile */
.mobile-filter-btn {
    display: none !important;
}

@media (max-width: 600px) {
    .mobile-filter-btn {
        /* Reset any inherited styles */
        all: unset;
        box-sizing: border-box;
        
        /* Full width like original */
        width: 100% !important;
        
        /* Match original button exactly */
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        
        /* Exact padding/sizing from original WooCommerce button */
        padding: 12px 24px !important;
        height: auto !important;
        min-height: unset !important;
        
        /* Visual styling */
        background: rgb(4, 107, 210) !important;
        color: #fff !important;
        border: none !important;
        border-radius: 4px !important;
        
        /* Typography - match original exactly */
        font-size: 14.592px !important;
        font-weight: 500 !important;
        font-family: inherit !important;
        line-height: normal !important;
        
        /* Spacing below button */
        margin-top: 10px !important;
        margin-bottom: 20px !important;
        
        /* Cursor */
        cursor: pointer !important;
    }
    
    .mobile-filter-btn svg {
        width: 18px !important;
        height: 18px !important;
        fill: currentColor !important;
        flex-shrink: 0 !important;
        margin-right: 8px !important;
    }
    
    .mobile-filter-btn span {
        display: inline !important;
    }
}


/* Hide display name field on account details page */
.woocommerce-account .woocommerce-EditAccountForm .woocommerce-form-row--display-name,
.woocommerce-account .edit-account .form-row-display-name,
.woocommerce-account #account_display_name_field,
.woocommerce-account p.woocommerce-form-row:has(#account_display_name) {
    display: none !important;
}


/* Cart Page - Right align subtotal price in cart totals */
.woocommerce-page .cart_totals table td,
.woocommerce-page .cart_totals .shop_table td,
.woocommerce-page .cart_totals tr.cart-subtotal td,
.woocommerce-page .cart_totals tr.order-total td,
.woocommerce .cart_totals table td,
.woocommerce .cart_totals .shop_table td,
.cart_totals .cart-subtotal td,
.cart_totals tr td {
    text-align: right !important;
}

/* Cart totals notice */
.cart-totals-notice {
    font-size: 13px;
    color: #666;
    font-style: italic;
    margin-top: 15px;
    padding: 10px 15px;
    background: #f8f8f8;
    border-left: 3px solid var(--ast-global-color-0);
    border-radius: 0 4px 4px 0;
}


/* ========================================
   GROUPED SEARCH RESULTS BY CATEGORY
   ======================================== */

.grouped-search-results {
    width: 100%;
}

.grouped-search-results .search-results-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e5e5;
}

.grouped-search-results .search-results-count {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.grouped-search-results .search-category-section {
    margin-bottom: 40px;
}

.grouped-search-results .search-category-header {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid var(--ast-global-color-0);
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.grouped-search-results .search-category-header a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.grouped-search-results .search-category-header a:hover {
    color: var(--ast-global-color-0);
}

.grouped-search-results .search-category-header .category-count {
    font-size: 14px;
    font-weight: 400;
    color: #888;
}

/* Ensure product grid displays correctly within sections */
.grouped-search-results .search-category-section ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 0;
    margin: 0;
}

/* Responsive adjustments for grouped search */
@media (max-width: 992px) {
    .grouped-search-results .search-category-section ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grouped-search-results .search-category-header {
        font-size: 18px;
        padding: 12px 15px;
    }
}

@media (max-width: 768px) {
    .grouped-search-results .search-category-section ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grouped-search-results .search-category-header {
        font-size: 16px;
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .grouped-search-results .search-category-section ul.products {
        grid-template-columns: 1fr;
    }
    
    .grouped-search-results .search-category-header {
        font-size: 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}
