/*
 * Restaurant Pro Shop — feature styles added alongside the AutoQuotes /
 * financing / manufacturers work. Loaded AFTER style.css (handle rps-features)
 * so live style.css can be edited freely without losing these.
 */

/* Enable Add-to-cart buttons in product loops. The !important display beats
   the theme's original combined hide rule if it still exists in style.css. */
.hm-ftr-prdcts .products li.product .add_to_cart_button,
.woocommerce-shop ul.products li.product .button,
.tax-product_tag ul.products li.product .button,
.tax-product_cat ul.products li.product .button,
.tax-product_brand ul.products li.product .button,
.woocommerce-cart ul.wc-block-grid__products li.wc-block-grid__product .wp-block-button,
.single-product .related.products ul.products li.product .add_to_cart_button,
.parent-category-block .products-grid li .button {
    display: block !important;
}
/* Add to cart button in product loops (shop, categories, brands, tags, related, home grids) */
 ul.products li.product .button.add_to_cart_button, ul.products li.product a.button, .parent-category-block .products-grid li .button, .hm-ftr-prdcts .products li.product .button{
     display: block;
     margin: 0 10px 12px;
     padding: 12px 14px;
     background: #073a29;
     color: #fff;
     font-size: 13px;
     font-weight: 600;
     text-align: center;
     text-decoration: none;
     border: none;
     border-radius: 0;
     transition: background .2s ease-in-out;
}
 ul.products li.product .button.add_to_cart_button:hover, ul.products li.product a.button:hover, .parent-category-block .products-grid li .button:hover, .hm-ftr-prdcts .products li.product .button:hover{
     background: #00af99;
     color: #fff;
}
 ul.products li.product .added_to_cart.wc-forward, .parent-category-block .products-grid li .added_to_cart.wc-forward{
     display: block;
     margin: -4px 10px 12px;
     text-align: center;
     font-size: 13px;
     color: #00af99;
}
 ul.products li.product .button.add_to_cart_button.loading{
     opacity: .6;
}


/* ----------------------------------------------------------------------------------- */
/* Manufacturers Directory ([manufacturers_directory])
/* ----------------------------------------------------------------------------------- */
.mfr-directory {
    padding: 20px 0 60px;
}
.mfr-directory .sec-heading h3,
.mfr-directory h2 {
    font-size: 26px;
    color: #073a29;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: .3px;
}
.mfr-featured {
    margin-bottom: 30px;
}

/* Featured logo cards */
.mfr-featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.mfr-featured-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 1px solid #e8ecea;
    border-radius: 10px;
    padding: 18px 16px 12px;
    text-align: center;
    text-decoration: none;
    transition: box-shadow .22s ease, border-color .22s ease, transform .22s ease;
}
.mfr-featured-card:hover {
    border-color: #00af99;
    box-shadow: 0 8px 20px rgba(7, 58, 41, .10);
    transform: translateY(-2px);
    background: #fff; /* cancel the green fill from style.css */
}
/* Keep text readable on hover (style.css turns it white for the green fill) */
.mfr-featured-card:hover .mfr-featured-name {
    color: #073a29;
}
.mfr-featured-card:hover .mfr-featured-label {
    color: #00af99;
}
.mfr-featured-card img {
    height: 46px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 12px;
}
.mfr-featured-name {
    height: 46px;
    display: flex;
    align-items: center;
    font-size: 17px;
    font-weight: 700;
    color: #073a29;
    margin-bottom: 12px;
}
.mfr-featured-label {
    font-size: 12.5px;
    font-weight: 600;
    color: #103a28;
    padding-top: 10px;
    border-top: 1px solid #eef2f0;
    width: 100%;
}

/* A-Z navigation pills */
.mfr-az {
    margin-top: 20px;
}
.mfr-az-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 40px;
    padding: 14px 16px;
    background: #f4f7f6;
    border: 1px solid #e8ecea;
    border-radius: 10px;
}
.mfr-az-nav a,
.mfr-az-nav .is-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
}
.mfr-az-nav a {
    color: #073a29;
    background: #fff;
    border: 1px solid #dfe5e2;
    transition: background .15s ease, color .15s ease;
}
.mfr-az-nav a:hover {
    background: #073a29;
    border-color: #073a29;
    color: #fff;
}
.mfr-az-nav .is-empty {
    color: #c3ccc8;
}

/* Letter sections */
.mfr-letter-group {
    padding: 0 0 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eef2f0;
    scroll-margin-top: 120px;
}
.mfr-letter-head {
    margin-bottom: 12px;
}
.mfr-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #073a29;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border-radius: 6px;
}

/* Manufacturer logo cards in the A-Z directory */
.mfr-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}
.mfr-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    background: #fff;
    border: 1px solid #e8ecea;
    border-radius: 8px;
    padding: 14px 10px 11px;
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.mfr-card:hover {
    border-color: #00af99;
    box-shadow: 0 6px 14px rgba(7, 58, 41, .08);
    transform: translateY(-2px);
}
.mfr-card-logo {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.mfr-card-logo img {
    max-height: 40px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}
.mfr-card-initial {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef7f4;
    color: #073a29;
    font-size: 16px;
    font-weight: 700;
    border-radius: 6px;
}
.mfr-card-name {
    font-size: 12px;
    font-weight: 600;
    color: #103a28;
    text-align: center;
    line-height: 1.3;
}
.mfr-card:hover .mfr-card-name {
    color: #00af99;
}

@media (max-width: 991px) {
    .mfr-featured-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .mfr-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 600px) {
    .mfr-featured-grid,
    .mfr-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Shop sidebar product search (block widget) */
.sidebar-left .shop-sidebar-search {
    margin-bottom: 30px;
}
.sidebar-left .shop-sidebar-search .wp-block-search__inside-wrapper {
    display: flex;
    border: 1px solid #dfe5e2;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}
.sidebar-left .shop-sidebar-search .wp-block-search__input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 12px;
    font-size: 14px;
    min-width: 0;
}
.sidebar-left .shop-sidebar-search .wp-block-search__button {
    border: none;
    background: #073a29;
    color: #fff;
    padding: 0 14px;
    cursor: pointer;
    transition: background .2s ease;
}
.sidebar-left .shop-sidebar-search .wp-block-search__button:hover {
    background: #00af99;
}

/* Checkout financing option */
#rps-financing-option {
    margin: 0 0 20px;
    padding: 18px 20px;
    background: #f2faf8;
    border: 1px solid #bfe5dd;
    border-radius: 6px;
}
#rps-financing-option h3 {
    font-size: 17px;
    color: #073a29;
    margin: 0 0 10px;
}
#rps-financing-option .rps-financing-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #103a28;
    cursor: pointer;
}
#rps-financing-option .rps-financing-label input {
    margin-top: 3px;
}
#rps-financing-option .rps-financing-note {
    margin: 10px 0 0;
    font-size: 13px;
    color: #333;
}
/* Thank-you page financing notice */
.rps-financing-redirect {
    margin: 0 0 30px;
    padding: 25px 28px;
    background: #f2faf8;
    border: 1px solid #bfe5dd;
    border-radius: 6px;
    text-align: center;
}
.rps-financing-redirect h2 {
    color: #073a29;
    font-size: 24px;
    margin-bottom: 12px;
}
.rps-financing-redirect p {
    font-size: 15px;
    margin-bottom: 10px;
}
.rps-financing-count {
    font-weight: 600;
    color: #103a28;
}
a.button.rps-financing-go {
    display: inline-block;
    background: #073a29;
    color: #fff;
    padding: 11px 22px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
}
a.button.rps-financing-go:hover {
    background: #00af99;
    color: #fff;
}

/* Financing checkbox box in the block checkout: the JS portals it into a
   .rps-financing-host node inserted at the TOP of the sidebar, above the
   Order Summary. */
.rps-financing-host {
    margin: 0 0 15px;
}
.rps-financing-box {
    margin: 0 0 20px;
    padding: 18px 20px;
    background: #f2faf8;
    border: 1px solid #bfe5dd;
    border-radius: 6px;
}
.rps-financing-box h3 {
    font-size: 17px;
    color: #073a29;
    margin: 0 0 10px;
}
.rps-financing-box .rps-financing-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #103a28;
    cursor: pointer;
}
.rps-financing-box .rps-financing-label input {
    margin-top: 3px;
}
/* The theme strips native input rendering on checkout (appearance:none),
   which hides the checkmark - restore it for the financing checkbox. */
.woocommerce-checkout .rps-financing-box input[type="checkbox"] {
    -webkit-appearance: auto !important;
    appearance: auto !important;
    padding: 0 !important;
    width: 18px;
    height: 18px;
    min-width: 18px;
    accent-color: #073a29;
    cursor: pointer;
}
.rps-financing-box .rps-financing-note {
    margin: 10px 0 0;
    font-size: 13px;
    color: #333;
}
/* The checkbox is the control - hide the financing row from the payment list */
label[for="radio-control-wc-payment-method-options-rps_financing"] {
    display: none !important;
}
/* While financing is selected, hide the payment options card */
.wp-block-woocommerce-checkout.rps-financing-active .wp-block-woocommerce-checkout-payment-block {
    display: none !important;
}

/* Product Downloads tab (AutoQuotes documents + drawings) */
.rps-downloads-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.rps-downloads-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #e8ecea;
}
.rps-downloads-list li a {
    color: #073a29;
    font-weight: 600;
    text-decoration: none;
}
.rps-downloads-list li a:hover {
    color: #00af99;
    text-decoration: underline;
}
.rps-download-type {
    font-size: 12px;
    color: #6b7a75;
    background: #f5f7f6;
    border: 1px solid #dfe5e2;
    border-radius: 4px;
    padding: 3px 8px;
    white-space: nowrap;
}

/* --- AutoQuotes product display enhancements --- */
/* Loop cards */
.rps-loop-snippet {
    font-size: 12px;
    color: #777;
    line-height: 1.45;
    padding: 0 10px;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Financing tag as a corner badge over the product image */
ul.products li.product,
.parent-category-block .products-grid li.product {
    position: relative;
}
ul.products li.product .rps-loop-financing,
.parent-category-block .products-grid li.product .rps-loop-financing {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .2px;
    color: #fff;
    background: #073a29;
    border-radius: 3px;
    margin: 0;
    padding: 3px 9px;
    pointer-events: none;
}
del.rps-list-price {
    color: #a3a3a3;
    font-size: .85em;
    font-weight: 400;
    margin-right: 6px;
}
.rps-price-unit {
    font-size: .8em;
    color: #777;
    font-weight: 400;
    margin-left: 2px;
}
/* Single product summary */
.rps-single-brandline {
    font-size: 13px;
    letter-spacing: .3px;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.rps-single-brandline a {
    color: #00af99;
    font-weight: 600;
    text-decoration: none;
}
.rps-single-brandline span {
    color: #b5bdb9;
    margin: 0 4px;
}
.rps-single-snippet {
    color: #555;
    font-size: 14px;
    margin: 6px 0 12px;
}
.rps-you-save {
    color: #0d7a3f;
    font-weight: 600;
    font-size: 14px;
    margin: -6px 0 8px;
}
.rps-single-financing {
    font-size: 13px;
    margin: 0 0 14px;
}
.rps-single-financing a {
    color: #073a29;
    font-weight: 600;
}
.rps-cert-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 14px;
}
.rps-cert-badge {
    font-size: 12px;
    font-weight: 600;
    color: #073a29;
    background: #f2faf8;
    border: 1px solid #bfe5dd;
    border-radius: 12px;
    padding: 3px 10px;
}
.rps-key-facts {
    list-style: none;
    margin: 0 0 18px;
    padding: 12px 15px;
    background: #f8faf9;
    border: 1px solid #e8ecea;
    border-radius: 6px;
    font-size: 13px;
}
.rps-key-facts li {
    padding: 2px 0;
}
/* Specifications tab */
.rps-spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.rps-spec-table th {
    width: 35%;
    text-align: left;
    font-weight: 600;
    color: #073a29;
    background: #f8faf9;
}
.rps-spec-table th, .rps-spec-table td {
    padding: 9px 12px;
    border: 1px solid #e8ecea;
}
.rps-spec-table tr:nth-child(even) td {
    background: #fcfdfd;
}
/* Series + manufacturer sections */
.rps-series-viewall {
    display: inline-block;
    margin-top: 12px;
    color: #00af99;
    font-weight: 600;
    text-decoration: none;
}
.rps-mfr-box {
    display: flex;
    align-items: center;
    gap: 25px;
    margin: 35px 0;
    padding: 22px 25px;
    background: #f8faf9;
    border: 1px solid #e8ecea;
    border-radius: 8px;
}
.rps-mfr-logo {
    max-width: 140px;
    max-height: 80px;
    object-fit: contain;
    flex-shrink: 0;
    background: #fff;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #eee;
}
.rps-mfr-box h3 {
    color: #073a29;
    font-size: 18px;
    margin-bottom: 6px;
}
.rps-mfr-box a {
    color: #00af99;
    font-weight: 600;
    text-decoration: none;
}
@media (max-width: 600px) {
    .rps-mfr-box { flex-direction: column; text-align: center; }
}

/* Overview tab sections */
.rps-overview-description {
    margin-bottom: 25px;
    font-size: 15px;
    line-height: 1.7;
}
h2.rps-overview-heading {
    font-size: 20px;
    color: #073a29;
    margin: 32px 0 16px;
    padding-top: 26px;
    border-top: 1px solid #e8ecea;
}
/* External product gallery: main image + thumbnail strip */
.single-product .woocommerce-product-gallery__image img.aqpi-external-image {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    background: #fff;
}
/* Theme hides all h2s inside tab panels - restore ours (Specifications /
   Documents section headings in the Overview tab). */
.woocommerce div.product .woocommerce-tabs .wc-tab > h2.rps-overview-heading {
    display: block;
}
/* Gallery: main image on top, thumbnail row at the BOTTOM.
   NOTE: the import plugin wraps each thumbnail in its own
   .woocommerce-product-gallery__image div INSIDE .aqpi-external-gallery-thumbnails,
   so main-image styling must target the wrapper's DIRECT child only, and
   thumbnail sizing needs enough specificity to beat WooCommerce's
   div.images img { width:100% }. */
.single-product div.product .woocommerce-product-gallery__wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.single-product div.product .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image {
    order: 1;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px;
    background: #fff;
}
.single-product div.product .aqpi-external-gallery-thumbnails {
    order: 2;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
}
.single-product div.product .aqpi-external-gallery-thumbnails .woocommerce-product-gallery__image {
    width: 72px;
    height: 72px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}
.single-product div.product div.images .aqpi-external-gallery-thumbnails img {
    width: 72px !important;
    height: 72px !important;
    display: block;
    object-fit: contain;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 5px;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.single-product div.product .aqpi-external-gallery-thumbnails img:hover {
    border-color: #00af99;
}
.single-product div.product .aqpi-external-gallery-thumbnails img.is-active {
    border-color: #073a29;
    box-shadow: 0 0 0 1px #073a29;
}
/* Downloads: clickable icon cards */
.rps-downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 12px;
}
.rps-download-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    text-decoration: none;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.rps-download-card:hover {
    border-color: #00af99;
    box-shadow: 0 4px 12px rgba(7, 58, 41, .10);
}
.rps-download-icon {
    position: relative;
    flex-shrink: 0;
    color: #073a29;
}
.rps-download-icon em {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    font: bold 8px/1 sans-serif;
    font-style: normal;
    color: #fff;
    background: #073a29;
    border-radius: 2px;
    padding: 1px 3px;
    letter-spacing: .3px;
}
.rps-download-card--dwg .rps-download-icon em { background: #b05c10; }
.rps-download-card--zip .rps-download-icon em { background: #4a5568; }
.rps-download-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.rps-download-text strong {
    display: block;
    font-size: 14px;
    color: #073a29;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rps-download-text span {
    display: block;
    font-size: 12px;
    color: #8a948f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Homepage category cards: image on TOP, title at the BOTTOM
   (overrides the theme's row-reverse title/image squeeze). */
.hm-prdct-cat-sec .wc-cat-grid .wc-cat-item a {
    flex-direction: column !important;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 18px 12px 14px !important;
    background-color: #fff;
    border: 1px solid #e5efec;
    border-radius: 10px;
    height: 100%;
    transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.hm-prdct-cat-sec .wc-cat-grid .wc-cat-item a:hover {
    background-color: #fff;
    border-color: #00af99;
    box-shadow: 0 8px 18px rgba(7, 58, 41, .10);
    transform: translateY(-3px);
}
.hm-prdct-cat-sec .wc-cat-grid .wc-cat-item a img {
    width: auto !important;
    max-width: 100%;
    height: 90px !important;
    object-fit: contain;
    border-radius: 0;
}
.hm-prdct-cat-sec .wc-cat-grid .wc-cat-item a h3 {
    text-align: center;
    font-size: 13px;
    line-height: 1.35;
    color: #103a28;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hm-prdct-cat-sec .wc-cat-grid .wc-cat-item a:hover h3 {
    color: #073a29;
}
/* Responsive: 3 per row on tablet, 2 per row on mobile.
   The theme forces .wc-cat-grid to display:grid (with no columns = 1/row) and
   resets the card flex-direction at <=767px, so we set explicit grid columns
   and re-assert the vertical card. */
@media (max-width: 991px) {
    .hm-prdct-cat-sec .wc-cat-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }
    .hm-prdct-cat-sec .wc-cat-grid .wc-cat-item {
        flex: none !important;
        width: auto !important;
        max-width: none !important;
    }
    .hm-prdct-cat-sec .wc-cat-grid .wc-cat-item a {
        flex-direction: column !important;
    }
}
@media (max-width: 600px) {
    .hm-prdct-cat-sec .wc-cat-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .hm-prdct-cat-sec .wc-cat-grid .wc-cat-item a img {
        height: 70px !important;
    }
    /* Product loops: 2 per row on mobile (theme sets 1 per row at <=450px) */
    ul.products,
    .hm-ftr-prdcts .products {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
    }
    ul.products li.product .rps-loop-snippet {
        display: none; /* keep mobile cards compact */
    }
}

/* Loop card price: bold and prominent (covers ul.products AND the
   parent-category subcategory blocks which use div.products-grid) */
ul.products li.product .price,
.parent-category-block .products-grid li.product .price {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #073a29 !important;
}
ul.products li.product .price .woocommerce-Price-amount,
.parent-category-block .products-grid li.product .price .woocommerce-Price-amount {
    font-weight: 600;
}
ul.products li.product .price del .woocommerce-Price-amount,
.parent-category-block .products-grid li.product .price del .woocommerce-Price-amount {
    font-weight: 400;
    color: #a3a3a3;
    font-size: 13px;
}
ul.products li.product .price .rps-price-unit,
.parent-category-block .products-grid li.product .price .rps-price-unit {
    font-size: 12px;
    font-weight: 400;
}

/* 3 products per row on sidebar layouts (theme hardcodes 4-up widths) */
.shop-page-wrapper ul.products li.product {
    width: 31.6% !important;
}

@media (max-width: 991px) {
    .shop-page-wrapper ul.products li.product {
        width: 47% !important;
    }
    
}

/* Slim archive header (shop + category pages): light bar, title left,
   breadcrumb right - replaces the tall photo banner there. */
.single-custom-breadcrumb.rps-archive-header {
    background-image: none !important;
    background-color: #eef7f5;
    border-bottom: 1px solid #dfeee9;
    padding: 0 !important; /* theme's shared sec-pad rule sets 75px 0 */
}
.single-custom-breadcrumb.rps-archive-header:before {
    background-color: transparent !important;
}
.single-custom-breadcrumb.rps-archive-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 20px;
    text-align: left;
    color: #6b7a75;
    padding-top: 26px;
    padding-bottom: 26px;
}
.single-custom-breadcrumb.rps-archive-header h1 {
    color: #073a29;
    font-size: 30px;
    margin: 0;
}
.rps-archive-header .rps-crumbs {
    font-size: 13px;
    color: #6b7a75;
}
.rps-archive-header .rps-crumbs a {
    color: #00af99;
    text-decoration: none;
    font-weight: 600;
}
.rps-archive-header .rps-crumbs a:hover {
    text-decoration: underline;
}
.rps-archive-header .rps-crumbs span {
    color: #103a28;
}
@media (max-width: 600px) {
    .single-custom-breadcrumb.rps-archive-header .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .single-custom-breadcrumb.rps-archive-header h1 {
        font-size: 24px;
    }
}

/* Single product: linked category trail (Parent > Sub > Leaf) */
.rps-category-path .rps-cat-trail {
    display: inline;
}
.rps-category-path .rps-cat-trail a {
    color: #00af99;
    text-decoration: none;
}
.rps-category-path .rps-cat-trail a:hover {
    text-decoration: underline;
}
.rps-category-path .rps-cat-trail i {
    font-style: normal;
    color: #b5bdb9;
    margin: 0 6px;
}
.rps-category-path .rps-cat-trail a.rps-cat-current {
    color: #00af99;
    font-weight: 400;
}
/* All meta-row links (category trail, brand, manufacturer) share one style */
.single-product .product_meta a {
    color: #00af99;
    text-decoration: none;
}
.single-product .product_meta a:hover {
    text-decoration: underline;
}

/* Overview tab: Description + Specifications side by side, each in a card
   panel so uneven content heights still look intentional. */
.rps-overview-columns {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.rps-overview-columns .rps-overview-col {
    min-width: 0;
    background: #fbfcfc;
    border: 1px solid #e8ecea;
    border-radius: 10px;
    padding: 24px 26px;
}
/* Left column stacks Description + Documents cards */
.rps-overview-side {
    flex: 1 1 45%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.rps-overview-col--specs {
    flex: 1 1 55%;
}
/* Documents card: same heading treatment as the others, tidy card grid */
.rps-overview-col--docs h2.rps-overview-heading {
    margin-bottom: 16px;
}
.rps-overview-col--docs .rps-downloads-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
@media (max-width: 600px) {
    .rps-overview-col--docs .rps-downloads-grid {
        grid-template-columns: 1fr;
    }
}
/* Card headings: compact uppercase labels with a short brand underline */
.rps-overview-columns h2.rps-overview-heading {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
    text-align: left;
    font-size: 15px;
    letter-spacing: .6px;
    text-transform: uppercase;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #073a29;
    display: inline-block;
}
.rps-overview-columns .rps-overview-description {
    font-size: 14.5px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 0;
}
/* Spec table inside the card: hairline rows instead of a boxed grid */
.rps-overview-col--specs .rps-spec-table th,
.rps-overview-col--specs .rps-spec-table td {
    border: 0;
    border-bottom: 1px solid #e3eae7;
    background: transparent !important;
    padding: 9px 10px;
}
.rps-overview-col--specs .rps-spec-table tr:last-child th,
.rps-overview-col--specs .rps-spec-table tr:last-child td {
    border-bottom: 0;
}
@media (max-width: 900px) {
    .rps-overview-columns {
        flex-direction: column;
        gap: 16px;
    }
    .rps-overview-columns .rps-overview-col {
        width: 100%;
    }
}

.single-product .product_meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
}


/* Certification filter values in uppercase (NSF, CULUS, CSA FLAME...) */
.wp-block-woocommerce-product-filter-attribute .wc-block-product-filter-checkbox-list__label {
    text-transform: uppercase;
}


/* Loop add-to-cart button weight */
ul.products li.product .button.add_to_cart_button,
ul.products li.product a.button,
.parent-category-block .products-grid li .button,
.hm-ftr-prdcts .products li.product .button {
    font-weight: 500;
}


/* Category nav: original menu design, MEGA panel dropdowns.
   Panel anchors to the header row (full container width); the theme's
   li position:relative is overridden so the panel is not squeezed. */
.menu-header {
    position: relative;
}
.rps-cat-nav li.rps-mega-item {
    position: static !important;
}
/* hover bridge: keep the item hovered while moving down into the panel */
.rps-cat-nav > li.rps-mega-item > a {
    position: relative;
}
.rps-cat-nav > li.rps-mega-item:hover > a:after {
    content: '';
    position: absolute;
    left: -20px;
    right: -20px;
    top: 100%;
    height: 45px;
}
.rps-mega-panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 999;
    background: #fff;
    border-top: 3px solid #073a29;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 22px 40px rgba(7, 58, 41, .16);
    max-height: 72vh;
    overflow-y: auto;
    text-align: left;
}
.rps-cat-nav li.rps-mega-item:hover .rps-mega-panel {
    display: block;
}
.rps-mega-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px 28px;
    padding: 26px 30px;
}
.rps-mega-col-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #073a29 !important;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e8ecea;
    text-decoration: none;
}
.rps-mega-col-title:hover {
    color: #00af99 !important;
}
.rps-mega-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.rps-mega-col ul li a {
    display: block;
    font-size: 12.5px;
    color: #555 !important;
    padding: 3px 0;
    line-height: 1.4;
    text-decoration: none;
    text-transform: none;
}
.rps-mega-col ul li a:hover {
    color: #00af99 !important;
}
.rps-mega-viewall a {
    font-weight: 600;
    color: #00af99 !important;
}
.rps-mega-shopall {
    grid-column: 1 / -1;
    text-align: right;
    font-weight: 700;
    font-size: 13px;
    color: #073a29 !important;
    text-decoration: none;
    border-top: 1px solid #e8ecea;
    padding-top: 14px;
}
.rps-mega-shopall:hover {
    color: #00af99 !important;
}
@media (max-width: 991px) {
    .rps-mega-panel {
        display: none !important;
    }
}
/* --- Loop cards: equal padding around the image (all 3 sides, hover too) --- */
.hm-ftr-prdcts .products li.product img,
.woocommerce-shop ul.products li.product a img,
.tax-product_tag ul.products li.product a img,
.single-product .related.products ul.products li.product img,
.tax-product_cat ul.products li.product a img,
.tax-product_brand ul.products li.product a img,
.parent-category-block .products-grid li.product a img,
.rps-series-products ul.products li.product img {
    width: calc(100% - 24px) !important;
    margin: 12px 12px 10px !important;
}

/* Crumbs always right-aligned in the slim header, even when the h1 is
   hidden (single product pages). */
.rps-archive-header .rps-crumbs {
    margin-left: auto;
}

/* Subcategory tiles above the product loop on category pages */
.rps-subcat-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    /* container has no top padding; the shop wrapper below brings its own
       75px sec-pad - the negative bottom margin evens the rhythm out */
    margin: 40px 0 -35px;
}
.rps-subcat-card.is-hidden {
    display: none;
}
.rps-subcat-grid.is-expanded .rps-subcat-card.is-hidden {
    display: flex;
}
button.rps-subcat-toggle {
    cursor: pointer;
    background: #f2faf8;
    border: 1px dashed #9fd3c7;
    font-family: inherit;
}
button.rps-subcat-toggle:hover {
    border-style: solid;
}
.rps-subcat-toggle-icon {
    font-size: 34px;
    line-height: 70px;
    color: #073a29;
}
.rps-subcat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #e5efec;
    border-radius: 10px;
    padding: 16px 10px 12px;
    text-align: center;
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.rps-subcat-card:hover {
    border-color: #00af99;
    box-shadow: 0 8px 18px rgba(7, 58, 41, .10);
    transform: translateY(-2px);
}
.rps-subcat-img img {
    height: 70px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}
.rps-subcat-name {
    font-size: 12.5px;
    font-weight: 600;
    color: #103a28;
    line-height: 1.35;
}
.rps-subcat-name em {
    font-style: normal;
    font-weight: 400;
    color: #8a948f;
}
@media (max-width: 991px) {
    .rps-subcat-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 600px) {
    .rps-subcat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Single product: no tab bar - the Overview content flows directly */
.single-product .woocommerce-tabs ul.tabs {
    display: none !important;
}
.single-product .woocommerce-tabs .panel {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
/* PDF documents get the classic red icon/badge */
.rps-download-card--pdf .rps-download-icon {
    color: #c62828;
}
.rps-download-card--pdf .rps-download-icon em {
    background: #c62828;
}
/* "View all <series> products" link centered under the carousel */
.rps-series-viewall {
    display: block;
    text-align: center;
}
/* Mobile/tablet category menu (SlickNav): show the hamburger everywhere the
   desktop mega menu is hidden (<=1199px), not only <=767px. */
@media (max-width: 1199px) {
    .js .slicknav_menu {
        display: block !important;
        position: absolute;
        z-index: 999;
        width: 100%;
    }
    header .menu-lgt {
        display: none;
    }
}

/* ---- My Account login page (registration is off; login only) ---- */
.woocommerce-account:not(.logged-in) .woocommerce {
    max-width: 440px;
    margin: 55px auto 75px;
    padding: 0;
    background: transparent;
}
.woocommerce-account #customer_login {
    display: block;
}
.woocommerce-account #customer_login .u-column1,
.woocommerce-account #customer_login .u-column2 {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}
.woocommerce-account #customer_login h2 {
    text-align: center;
    font-size: 24px;
    color: #073a29;
    margin-bottom: 6px;
}
.woocommerce-account #customer_login h2:after {
    content: "Sign in to your Restaurant Pro Shop account";
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: #6b7a75;
    margin-top: 6px;
}
.woocommerce-account .woocommerce-form-login {
    background: #fff;
    border: 1px solid #e5efec;
    border-radius: 12px;
    padding: 32px 30px 28px;
    box-shadow: 0 14px 34px rgba(7, 58, 41, .07);
    margin-top: 18px;
}
.woocommerce-account .woocommerce-form-login .woocommerce-form-row {
    margin-bottom: 16px;
}
.woocommerce-account .woocommerce-form-login label {
    font-size: 13px;
    font-weight: 600;
    color: #103a28;
    margin-bottom: 6px;
    display: block;
}
.woocommerce-account .woocommerce-form-login input.input-text,
.woocommerce-account .woocommerce-form-login input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dfe5e2;
    border-radius: 8px;
    font-size: 14px;
}
.woocommerce-account .woocommerce-form-login input.input-text:focus,
.woocommerce-account .woocommerce-form-login input[type="password"]:focus {
    border-color: #00af99;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 175, 153, .18);
}
.woocommerce-account .woocommerce-form-login button.woocommerce-button {
    width: 100%;
    background: #073a29;
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 13px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease;
}
.woocommerce-account .woocommerce-form-login button.woocommerce-button:hover {
    background: #00af99;
}
.woocommerce-account .woocommerce-form-login .woocommerce-form-login__rememberme {
    display: block;
    margin: 4px 0 18px;
    font-size: 13px;
    color: #555;
    font-weight: 400;
}
.woocommerce-account .woocommerce-form-login .woocommerce-form-login__rememberme input {
    width: auto;
    margin-right: 6px;
}
.woocommerce-account .woocommerce-LostPassword {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
}
.woocommerce-account .woocommerce-LostPassword a {
    color: #00af99;
    text-decoration: none;
}
.woocommerce-account .woocommerce-LostPassword a:hover {
    text-decoration: underline;
}
/* Friendly note: new customers register during checkout */
.woocommerce-account:not(.logged-in) .woocommerce-form-login:after {
    content: "New here? Create an account at checkout when you place your first order.";
    display: block;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #eef2f0;
    font-size: 12.5px;
    line-height: 1.6;
    color: #6b7a75;
    text-align: center;
}

/* ---- Lost / reset password form — matched to the login card ----
   The theme sets this form to width:50% (style.css), which made the card
   ~220px; force it to fill the 440px account column instead. */
.woocommerce-account .woocommerce-ResetPassword.lost_reset_password {
    width: 100% !important;
    max-width: 100% !important;
    background: #fff;
    border: 1px solid #e5efec;
    border-radius: 12px;
    padding: 32px 30px 28px !important;
    box-shadow: 0 14px 34px rgba(7, 58, 41, .07);
    margin: 18px auto 0 !important;
}
.woocommerce-account .woocommerce-ResetPassword.lost_reset_password:before {
    content: "Reset Password";
    display: block;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #073a29;
    margin-bottom: 14px;
}
/* Intro paragraph (first child of the form). */
.woocommerce-account .woocommerce-ResetPassword > p:first-of-type {
    font-size: 13.5px;
    line-height: 1.6;
    color: #6b7a75;
    text-align: center;
    margin: 0 0 20px;
}
.woocommerce-account .woocommerce-ResetPassword label {
    font-size: 13px;
    font-weight: 600;
    color: #103a28;
    margin-bottom: 6px;
    display: block;
}
.woocommerce-account .woocommerce-ResetPassword input.input-text {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dfe5e2;
    border-radius: 8px;
    font-size: 14px;
}
.woocommerce-account .woocommerce-ResetPassword input.input-text:focus {
    border-color: #00af99;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 175, 153, .18);
}
.woocommerce-account .woocommerce-ResetPassword .woocommerce-form-row {
    margin-bottom: 6px;
}
.woocommerce-account .woocommerce-ResetPassword button {
    width: 100%;
    background: #073a29;
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 13px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease;
    margin-top: 6px;
}
.woocommerce-account .woocommerce-ResetPassword button:hover {
    background: #00af99;
}

/* ---- Mobile: keep the login / reset card off the screen edges ---- */
@media (max-width: 600px) {
    .woocommerce-account:not(.logged-in) .woocommerce {
        padding: 0 16px;
        margin-top: 30px;
        margin-bottom: 50px;
    }
    .woocommerce-account .woocommerce-form-login,
    .woocommerce-account .woocommerce-ResetPassword.lost_reset_password {
        padding: 26px 20px 24px;
    }
}

/* ---- Dynamic attribute filters — matched to the native block filters ---- */
.rps-attr-filters {
    margin-top: 30px;
}
.rps-attr-group {
    margin-bottom: 26px;
}
/* Heading already inherits .wp-block-heading (18px uppercase); just spacing */
.shop-page-wrapper .sidebar-left .rps-attr-title {
    margin: 0 0 0.625rem;
}
.rps-attr-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.rps-attr-item {
    margin: 0 0 6px;
}
.rps-attr-item label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .75em;           /* matches block checkbox list */
    line-height: 1.15;
    color: #1e1e1e;
    cursor: pointer;
}
/* Custom checkbox matching the native block filters (appearance:none box
   with a teal checked state + white tick). */
.rps-attr-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border: 1px solid #b9c2be;
    border-radius: 2px;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: background .15s ease, border-color .15s ease;
}
/* Checked = white box, teal tick (matches the native block-filter mark) */
.rps-attr-item input[type="checkbox"]:checked {
    background: #fff;
    border-color: #00ac96;
}
.rps-attr-item input[type="checkbox"]:checked:after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 4px;
    height: 9px;
    border: solid #00ac96;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.rps-attr-item input[type="checkbox"]:focus-visible {
    outline: 2px solid rgba(0, 172, 150, .4);
    outline-offset: 1px;
}
.rps-attr-item .rps-attr-name {
    flex: 1;
    text-transform: capitalize;
}
.rps-attr-item .rps-attr-count {
    color: #00af9a;             /* matches block filter count colour */
    flex-shrink: 0;
}
.rps-attr-item.rps-attr-more {
    display: none;
}
.rps-attr-showmore {
    margin-top: 8px;
    background: none;
    border: 0;
    padding: 0;
    color: #003a2a;            /* matches block "Show more" button */
    font-weight: 500;
    font-size: .875em;
    text-decoration: underline;
    cursor: pointer;
}
.rps-attr-showmore:hover {
    color: #00af9a;
}

/* ---- Brands Directory (series grouped by manufacturer) ---- */
.brands-featured {
    margin: 45px 0 0;   /* top gap below the page header */
}
.brands-az-nav {
    margin-top: 40px;
}
.brands-directory {
    padding: 0 0 60px;
}
.brand-group {
    padding: 0 0 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid #eef2f0;
    scroll-margin-top: 120px;
}
.brand-group--no-series .brand-group-head {
    margin-bottom: 0;
}
.brand-group-viewall {
    margin-left: auto;
    font-size: 13px;
    font-weight: 600;
    color: #00af99;
    text-decoration: none;
    white-space: nowrap;
}
.brand-group-viewall:hover {
    text-decoration: underline;
}
.brand-group-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.brand-group-logo {
    flex-shrink: 0;
    width: 90px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e8ecea;
    border-radius: 8px;
    padding: 6px;
}
.brand-group-logo img {
    max-height: 34px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}
.brand-group-initial {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef7f4;
    color: #073a29;
    font-size: 16px;
    font-weight: 700;
    border-radius: 6px;
}
.brand-group-name {
    font-size: 18px;
    font-weight: 500;
    color: #073a29;
    text-decoration: none;
}
.brand-group-name:hover {
    color: #00af99;
}
.brand-series {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding-left: 104px;
}
.brand-series-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: #f8faf9;
    border: 1px solid #e8ecea;
    border-radius: 8px;
    padding: 10px 14px;
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease;
}
.brand-series-item:hover {
    border-color: #00af99;
    background: #fff;
}
.brand-series-name {
    font-size: 13px;
    font-weight: 500;
    color: #103a28;
}
.brand-series-count {
    font-size: 12px;
    color: #00af9a;
    flex-shrink: 0;
}
@media (max-width: 991px) {
    .brand-series {
        grid-template-columns: repeat(3, 1fr);
        padding-left: 0;
    }
}
@media (max-width: 600px) {
    .brand-series {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---- Mobile filter overlay polish ---- */
@media (max-width: 991px) {
    /* "Filter products" trigger button: real button styling + spacing so it
       does not touch the subcategory tiles above it. */
    .wc-block-product-filters__open-overlay {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 22px 0 8px !important;
    padding: 12px 20px !important;
    background: #073a29 !important;
    color: #fff !important;
    border: 0 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer;
    font-family: 'Segoe UI';
    text-transform: uppercase;
}
    .wc-block-product-filters__open-overlay svg {
        color: #fff;
    }
    /* Overlay header sticks to the top, opaque + above content, so the search
       / first filter can't overlap the Close button. */
    .wc-block-product-filters__overlay-header {
        position: sticky;
        top: 0;
        z-index: 5;
        background: #fff !important;
        padding: 16px 20px !important;
        border-bottom: 1px solid #eef2f0;
        margin-bottom: 6px;
    }
    /* The product search is already in the mobile header — hide the duplicate
       inside the filter overlay to remove the overlap. */
    .wc-block-product-filters__overlay .shop-sidebar-search,
    .wc-block-product-filters__overlay-content .shop-sidebar-search,
    .wc-block-product-filters__overlay-content .wp-block-search {
        display: none !important;
    }
    /* Give the scrollable content a little breathing room below the header. */
    .wc-block-product-filters__overlay-content {
        padding-top: 6px !important;
    }
}

/* WooCommerce flips the filters block from pop-up overlay to INLINE at 601px
   (@media min-width:601px in the block's own CSS). But the rest of this site's
   mobile UX (bottom nav + filter modal) runs to 991px, so in the 601–991 band
   the block dumps filters inline while our overlay button is still forced on —
   the broken dark full-height column. Re-assert the modal behaviour here so
   tablets get the same clean pop-up as phones. */
@media (min-width: 601px) and (max-width: 991px) {
    /* Collapse the block back to just its trigger button; the filters live in
       the fixed overlay again, not inline. */
    .wc-block-product-filters {
        display: inline-flex !important;
    }
    .wc-block-product-filters .wc-block-product-filters__open-overlay {
        display: inline-flex !important;
    }
    .wc-block-product-filters .wc-block-product-filters__overlay {
        position: fixed !important;
        inset: 0 !important;
        pointer-events: none !important;
        background-color: transparent !important;
        z-index: 9999;
        transition: background-color .4s ease;
    }
    .wc-block-product-filters .wc-block-product-filters__overlay-wrapper {
        height: 100% !important;
        width: 100% !important;
    }
    .wc-block-product-filters .wc-block-product-filters__overlay-dialog {
        position: absolute !important;
        inset: 0 !important;
        max-height: 100% !important;
        transform: translateY(100%) !important;
        transition: transform .4s ease !important;
        background: #fff !important;
    }
    .wc-block-product-filters .wc-block-product-filters__overlay-header,
    .wc-block-product-filters .wc-block-product-filters__overlay-footer {
        display: flex !important;
    }
    .wc-block-product-filters .wc-block-product-filters__overlay-content {
        overflow-y: auto !important;
    }
    /* Open state (block toggles .is-overlay-opened on the button click). */
    .wc-block-product-filters.is-overlay-opened .wc-block-product-filters__overlay {
        pointer-events: auto !important;
        background-color: rgba(0, 0, 0, .4) !important;
    }
    .wc-block-product-filters.is-overlay-opened .wc-block-product-filters__overlay-dialog {
        transform: translateY(0) !important;
    }
}

/* ---- App-style mobile bottom navigation ---- */
.rps-bottomnav {
    display: none;
}
@media (max-width: 991px) {
    .rps-bottomnav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9990;
        background: #fff;
        border-top: 1px solid #e6ece9;
        box-shadow: 0 -4px 16px rgba(7, 58, 41, .07);
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    }
    /* button.rps-bottomnav-item needs a hard reset — WooCommerce/theme button
       styles (green bg, radius) otherwise bleed onto Categories & Search. */
    .rps-bottomnav .rps-bottomnav-item,
    .rps-bottomnav button.rps-bottomnav-item,
    .woocommerce .rps-bottomnav button.rps-bottomnav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        width: auto;
        margin: 0;
        padding: 4px 0 !important;
        background: none !important;
        background-color: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        cursor: pointer;
        color: #5b6b64 !important;
        text-decoration: none;
        font-family: inherit;
        text-transform: none;
        letter-spacing: normal;
        min-height: 0;
        line-height: 1;
    }
    .rps-bottomnav button.rps-bottomnav-item:hover,
    .rps-bottomnav button.rps-bottomnav-item:focus {
        background: none !important;
        color: #073a29 !important;
    }
    .rps-bottomnav-item svg {
        color: #4a5b54;
    }
    .rps-bottomnav-item span {
        font-size: 10.5px;
        font-weight: 600;
        line-height: 1;
    }
    .rps-bottomnav-item.is-active,
    .rps-bottomnav-item.is-active svg {
        color: #073a29;
    }
    .rps-bottomnav-item:active {
        transform: scale(.94);
    }
    /* Cart badge */
    .rps-bottomnav-cart-icon {
        position: relative;
        display: inline-flex;
    }
    .rps-bottomnav-cart-count {
        position: absolute;
        top: -6px;
        right: -9px;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        background: #00af99;
        color: #fff;
        font-size: 10px;
        font-weight: 700;
        line-height: 16px;
        text-align: center;
        border-radius: 9px;
    }
    .rps-bottomnav-cart-count.is-empty {
        display: none;
    }
    /* Keep page content clear of the fixed bar */
    body {
        padding-bottom: 64px;
    }
    /* Nudge the filter overlay's Apply/footer above the bottom bar */
    .wc-block-product-filters__overlay-footer {
        margin-bottom: 60px;
    }
}

/* ---- Modern mobile menu drawer (restyles the theme's SlickNav) ---- */
@media (max-width: 1199px) {
    /* Dimmed backdrop when the menu is open (theme adds body.no-scroll). */
    body.no-scroll:before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(7, 30, 22, .5);
        z-index: 9998;
        animation: rpsDrawerFade .25s ease;
    }
    @keyframes rpsDrawerFade { from { opacity: 0; } to { opacity: 1; } }

    /* The drawer itself: slides in from the right, clean white panel.
       CLOSED state. visibility is delayed by the slide duration so the panel
       stays rendered while it slides back out (visible -> hidden can't tween,
       so we hold it, then flip it after the transform finishes). */
    .slicknav_nav {
        display: block !important;
        visibility: hidden;
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        width: 86% !important;
        max-width: 360px !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 0 40px !important;
        background: #fff !important;
        color: #103a28 !important;
        z-index: 9999 !important;
        box-shadow: -6px 0 34px rgba(7, 58, 41, .22);
        transform: translateX(100%);
        transition: transform .36s cubic-bezier(.4, 0, .2, 1),
                    visibility 0s linear .36s;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }
    /* OPEN state: theme toggles body.no-scroll (afterOpen/afterClose) reliably.
       Show immediately, then slide in (right -> left). */
    body.no-scroll .slicknav_nav,
    .slicknav_open .slicknav_nav {
        visibility: visible !important;
        transform: translateX(0) !important;
        transition: transform .36s cubic-bezier(.4, 0, .2, 1),
                    visibility 0s linear 0s;
    }

    /* Header bar with the close action (aligned to the right). */
    .slicknav_nav .slicknav_close {
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        position: sticky;
        top: 0;
        z-index: 3;
        background: #073a29 !important;
        color: #fff !important;
        padding: 18px 20px !important;
        margin: 0 0 4px !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        text-align: right !important;
        cursor: pointer;
    }

    /* Top-level rows. */
    .slicknav_nav ul {
        margin: 0 !important;
        padding: 0 !important;
    }
    .slicknav_nav li {
        border-bottom: 1px solid #eef2f0;
    }
    .slicknav_nav a {
        display: block;
        color: #103a28 !important;
        text-transform: none !important;
        font-size: 14.5px !important;
        font-weight: 500 !important;
        padding: 15px 20px !important;
        margin: 0 !important;
    }
    .slicknav_nav a:hover {
        color: #00af99 !important;
        background: #f8faf9;
    }

    /* Parent rows with the accordion arrow. */
    .slicknav_nav .slicknav_row {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 0 !important;
        margin: 0 !important;
        border-bottom: 1px solid #eef2f0;
    }
    .slicknav_nav .slicknav_row > a,
    .slicknav_nav .slicknav_row .slicknav_item {
        flex: 1;
        border-bottom: 0 !important;
    }
    .slicknav_nav .slicknav_arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        align-self: stretch;
        margin: 0 !important;
        color: #073a29;
        font-size: 12px;
        border-left: 1px solid #eef2f0;
        transition: color .2s ease;
    }
    /* Theme swaps chevron-down/up icons itself; just tint + highlight when open. */
    li.slicknav_open > .slicknav_row .slicknav_arrow {
        color: #00af99;
    }
    li.slicknav_open > .slicknav_row {
        background: #f4faf8;
    }

    /* Sub-menu (child categories). */
    .slicknav_nav .sub-menu {
        background: #f8faf9;
    }
    .slicknav_nav .sub-menu a {
        font-size: 13px !important;
        font-weight: 500 !important;
        color: #46574f !important;
        padding: 12px 20px 12px 34px !important;
        border-bottom: 1px solid #eef2f0;
    }
    .slicknav_nav .sub-menu li:last-child a {
        border-bottom: 0;
    }

    /* ---- Modern hamburger: rounded bars, short middle, morphs to an X ---- */
    .slicknav_btn {
        margin: 0 !important;
        padding: 4px !important;
        background: transparent !important;
        border: 0 !important;
    }
    .slicknav_menu .slicknav_icon {
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: flex-end;
        width: auto !important;
        height: auto !important;
        padding: 10px 8px !important;
        float: none !important;
    }
    .slicknav_menu .slicknav_icon-bar {
        display: block !important;
        width: 26px !important;
        height: 3px !important;
        margin: 0 0 6px !important;
        border-radius: 2px !important;
        background-color: #073a29 !important;
        transition: transform .28s cubic-bezier(.4, 0, .2, 1),
                    opacity .2s ease, width .2s ease !important;
    }
    /* Short middle bar for a modern, deliberate look. */
    .slicknav_menu .slicknav_icon-bar:nth-of-type(2) {
        width: 18px !important;
    }
    .slicknav_menu .slicknav_icon-bar:last-of-type {
        margin-bottom: 0 !important;
    }
    /* Open -> clean X (retuned to the 3px bar / 9px pitch above). */
    .slicknav_open .slicknav_icon .slicknav_icon-bar:first-of-type {
        transform: translateY(9px) rotate(45deg) !important;
    }
    .slicknav_open .slicknav_icon .slicknav_icon-bar:nth-of-type(2) {
        width: 26px !important;
        opacity: 0 !important;
    }
    .slicknav_open .slicknav_icon .slicknav_icon-bar:last-of-type {
        transform: translateY(-9px) rotate(-45deg) !important;
    }

    /* Quick links below the categories — a thicker divider marks the section. */
    .slicknav_nav .rps-menu-extra.rps-menu-extra-first {
        border-top: 6px solid #f0f4f2;
    }
    .slicknav_nav .rps-menu-extra > a {
        color: #073a29 !important;
        font-weight: 500 !important;
    }

    /* Contact block pinned at the bottom of the drawer.
       Selectors are scoped under .slicknav_nav so they beat the generic
       ".slicknav_nav a" menu-link rule (which would otherwise indent/pad rows). */
    .slicknav_nav .rps-drawer-contact {
        margin-top: 6px;
        padding: 18px 20px 8px;
        border-top: 6px solid #f0f4f2;
    }
    .slicknav_nav .rps-drawer-contact-label {
        display: block;
        font-size: 11px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: .5px;
        color: #8a9a93;
        margin: 0 0 6px;
        padding: 0;
    }
    .slicknav_nav .rps-drawer-contact-row {
        display: flex;
        align-items: center;
        gap: 12px;
        margin: 0 !important;
        padding: 10px 0 !important;
        border: 0 !important;
        color: #103a28 !important;
        text-decoration: none;
        font-size: 13.5px !important;
        font-weight: 500 !important;
        line-height: 1.35;
    }
    .slicknav_nav .rps-drawer-contact-row + .rps-drawer-contact-row {
        border-top: 1px solid #eef2f0 !important;
    }
    .slicknav_nav .rps-drawer-contact-row svg {
        flex: 0 0 18px;
        width: 18px;
        height: 18px;
        color: #00af99;
    }
    .slicknav_nav a.rps-drawer-contact-row:hover {
        color: #00af99 !important;
        background: none !important;
    }
    /* Two-line address: top-align the pin with the first line. */
    .slicknav_nav .rps-drawer-contact-row.is-static {
        align-items: flex-start;
        color: #46574f !important;
        font-weight: 500 !important;
        cursor: default;
    }
    .slicknav_nav .rps-drawer-contact-row.is-static svg {
        margin-top: 2px;
    }
}

/* ---- Cart page: hide the "New in store" product suggestions shown in the
   empty-cart state (keep only the "Your cart is currently empty!" message). ---- */
.wp-block-woocommerce-empty-cart-block .wp-block-separator,
.wp-block-woocommerce-empty-cart-block .wp-block-heading:not(.wc-block-cart__empty-cart__title),
.wp-block-woocommerce-empty-cart-block .wp-block-woocommerce-product-new,
.wp-block-woocommerce-empty-cart-block .wc-block-product-new {
    display: none !important;
}

/* ---- Order received / Thank-you page — mobile responsiveness ----
   The theme leaves the order-details (65%) and customer-details (32%) cards
   side-by-side even on phones, crushing the table and address. Stack them and
   tighten spacing/typography for small screens. */
@media (max-width: 768px) {
    .woocommerce-order-received .woocommerce-order-details,
    .woocommerce-order-received .woocommerce-customer-details {
        display: block;
        width: 100% !important;
        margin: 0 0 20px !important;
        padding: 20px !important;
    }
    .woocommerce-order-received .woocommerce-order-overview {
        padding: 14px !important;
        gap: 10px;
        margin-bottom: 28px;
    }
    .woocommerce-order-received .woocommerce-order-overview li {
        padding: 12px !important;
    }
    .woocommerce-order-received .woocommerce-notice--success {
        padding: 18px 20px;
        font-size: 16px;
    }
    .woocommerce-order-received .woocommerce-order-overview + p {
        font-size: 20px !important;
    }
    .woocommerce-order-received h2 {
        font-size: 20px;
    }
    .woocommerce-order-received .woocommerce-table--order-details th,
    .woocommerce-order-received .woocommerce-table--order-details td {
        padding: 12px 12px !important;
        font-size: 14px;
        line-height: 1.4 !important;
    }
    .woocommerce-order-received .woocommerce-table--order-details a,
    .woocommerce-order-received .woocommerce-table--order-details td .amount,
    .woocommerce-order-received .woocommerce-customer-details address {
        font-size: 14px !important;
    }
}
@media (max-width: 420px) {
    .woocommerce-order-received .woocommerce-table--order-details th,
    .woocommerce-order-received .woocommerce-table--order-details td {
        padding: 10px 10px !important;
        font-size: 13px;
    }
    .woocommerce-order-received .woocommerce-notice--success {
        font-size: 15px;
        padding: 16px;
    }
}


/* responsive start */
@media(max-width:1199px){
    .shop-page-wrapper ul.products li.product {
    width: 31.4% !important;
}
}
@media(max-width:767px){
    .rps-overview-columns .rps-overview-col {
    padding: 15px;
}
    .brand-group-viewall {
    margin: 0 auto;
}
    .brand-group-head {
    flex-direction: column;
}
    .brand-series-count {
    font-size: 11px;
}
    .brand-series-name {
    font-size: 12px;
}
    .brand-series-item {
    gap: 5px;
    padding: 8px;
}
    .brand-group-name {
    font-size: 14px;
}
    .brand-group-viewall {
    font-size: 12px;
}
    .brand-group-head {
    gap: 10px;
}
    .shop-page-wrapper ul.products li.product {
    width: 31.6% !important;
}
    .woocommerce-shop ul.products, .tax-product_tag ul.products, .tax-product_cat ul.products, .tax-product_brand ul.products {
    gap: 10px;
}
}
@media(max-width:600px){
    .shop-page-wrapper ul.products li.product {
    width: 48.2% !important;
}
}
