/*
Theme Name: United Auto Supplies Storefront Child
Theme URI: https://unitedautosupplies.com/
Description: Upgrade-safe child theme for WooCommerce Storefront used by United Auto Supplies.
Author: United Auto Supplies
Version: 1.4.1
Template: storefront
Text Domain: united-auto-supplies-storefront-child
*/

/*
 * Add site-specific Storefront CSS below this line.
 * The parent Storefront theme can be updated safely without overwriting this file.
 */


/* Header Year / Make / Model vehicle finder. */
.uas-storefront-header-vehicle-search {
    clear: both;
    width: 100%;
    padding-top: 16px;
}
.uas-storefront-header-vehicle-search .uas-header-vehicle-search {
    margin: 0;
}
.uas-storefront-header-vehicle-search .uas-header-vehicle-form {
    display: grid;
    grid-template-columns: minmax(150px,.8fr) repeat(3,minmax(145px,1fr)) auto;
    gap: 10px;
    align-items: center;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #e1e5e9;
    border-radius: 10px;
    background: #f7f8f9;
    box-shadow: 0 3px 12px rgba(0,0,0,.04);
}
.uas-storefront-header-vehicle-search .uas-header-vehicle-label {
    font-weight: 700;
    color: #222;
    white-space: nowrap;
}
.uas-storefront-header-vehicle-search select {
    width: 100%;
    min-width: 0;
    height: 42px;
    margin: 0;
    padding: 0 34px 0 11px;
    border: 1px solid #cfd4da;
    border-radius: 6px;
    background-color: #fff;
    color: #333;
}
.uas-storefront-header-vehicle-search select:focus {
    outline: 0;
    border-color: #7a7a7a;
    box-shadow: 0 0 0 2px rgba(0,0,0,.07);
}
.uas-storefront-header-vehicle-search select:disabled {
    opacity: .58;
    cursor: not-allowed;
}
.uas-storefront-header-vehicle-search button {
    min-height: 42px;
    margin: 0;
    padding: 0 18px;
    border: 0;
    border-radius: 6px;
    background: #222;
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}
.uas-storefront-header-vehicle-search button:hover,
.uas-storefront-header-vehicle-search button:focus {
    background: #444;
    color: #fff;
}

@media (max-width: 980px) {
    .uas-storefront-header-vehicle-search .uas-header-vehicle-form {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }
    .uas-storefront-header-vehicle-search .uas-header-vehicle-label,
    .uas-storefront-header-vehicle-search button {
        grid-column: 1 / -1;
    }
    .uas-storefront-header-vehicle-search button {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .uas-storefront-header-vehicle-search {
        padding-top: 10px;
    }
    .uas-storefront-header-vehicle-search .uas-header-vehicle-form {
        grid-template-columns: 1fr;
        padding: 12px;
    }
    .uas-storefront-header-vehicle-search .uas-header-vehicle-label,
    .uas-storefront-header-vehicle-search button {
        grid-column: auto;
    }
}
/* Site-wide Storefront sidebar removal.
 * Only the primary content sidebar (#secondary) is hidden; header search,
 * YMM vehicle search, footer widgets, and WooCommerce account navigation remain intact.
 */
#secondary.widget-area,
.site-content #secondary.widget-area {
    display: none !important;
}

.site-content .content-area {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin-right: 0 !important;
}



/* WooCommerce single-product tabs: horizontal navigation with full-width content. */
body.single-product .woocommerce-tabs {
    width: 100%;
    clear: both;
}

body.single-product .woocommerce-tabs ul.tabs {
    float: none !important;
    width: 100% !important;
    margin: 0 0 28px !important;
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0;
    list-style: none !important;
    border-top: 0 !important;
    border-bottom: 1px solid #d9dde1;
}

body.single-product .woocommerce-tabs ul.tabs::before,
body.single-product .woocommerce-tabs ul.tabs::after {
    display: none !important;
}

body.single-product .woocommerce-tabs ul.tabs li {
    display: block !important;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

body.single-product .woocommerce-tabs ul.tabs li::after {
    display: none !important;
}

body.single-product .woocommerce-tabs ul.tabs li a {
    display: block !important;
    padding: 13px 18px !important;
    border: 0 !important;
    border-bottom: 3px solid transparent !important;
    background: transparent !important;
    color: #50667a;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
}

body.single-product .woocommerce-tabs ul.tabs li a:hover,
body.single-product .woocommerce-tabs ul.tabs li a:focus {
    color: #111;
    background: #f7f8f9 !important;
}

body.single-product .woocommerce-tabs ul.tabs li.active a,
body.single-product .woocommerce-tabs ul.tabs li.active a:hover,
body.single-product .woocommerce-tabs ul.tabs li.active a:focus {
    color: #111;
    border-bottom-color: #111 !important;
    background: transparent !important;
}

body.single-product .woocommerce-tabs .panel {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    clear: both;
}

@media (max-width: 767px) {
    body.single-product .woocommerce-tabs ul.tabs {
        align-items: stretch;
        margin-bottom: 20px !important;
    }

    body.single-product .woocommerce-tabs ul.tabs li a {
        padding: 11px 12px !important;
        font-size: 14px;
        white-space: normal;
    }
}


/* Product search results: one product per row (list view).
 * Applied when functions.php marks either <body> or the WooCommerce product loop.
 */
body.uas-product-search-list ul.products,
ul.products.uas-product-search-list-loop {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.uas-product-search-list ul.products::before,
ul.products.uas-product-search-list-loop::before,
body.uas-product-search-list ul.products::after,
ul.products.uas-product-search-list-loop::after {
    display: none !important;
}

body.uas-product-search-list ul.products li.product,
ul.products.uas-product-search-list-loop li.product {
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 28px 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 28px;
    align-items: center;
    text-align: left !important;
    border-bottom: 1px solid #e2e5e8;
}

body.uas-product-search-list ul.products li.product:first-child,
ul.products.uas-product-search-list-loop li.product:first-child {
    border-top: 1px solid #e2e5e8;
}

body.uas-product-search-list ul.products li.product .woocommerce-LoopProduct-link,
ul.products.uas-product-search-list-loop li.product .woocommerce-LoopProduct-link,
body.uas-product-search-list ul.products li.product .woocommerce-loop-product__link,
ul.products.uas-product-search-list-loop li.product .woocommerce-loop-product__link {
    min-width: 0;
    width: 100%;
    display: grid !important;
    grid-template-columns: 220px minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 24px;
    row-gap: 9px;
    align-items: start;
    text-align: left !important;
    text-decoration: none;
}

body.uas-product-search-list ul.products li.product img,
ul.products.uas-product-search-list-loop li.product img {
    grid-column: 1;
    grid-row: 1 / 5;
    width: 220px !important;
    height: 220px !important;
    max-width: 220px !important;
    margin: 0 !important;
    padding: 8px;
    object-fit: contain !important;
    object-position: center !important;
    background: #fff;
    border: 1px solid #d8dde2;
    box-sizing: border-box;
}

body.uas-product-search-list ul.products li.product .woocommerce-loop-product__title,
ul.products.uas-product-search-list-loop li.product .woocommerce-loop-product__title {
    grid-column: 2;
    margin: 2px 0 4px !important;
    padding: 0 !important;
    font-size: 20px !important;
    line-height: 1.5 !important;
    text-align: left !important;
}

body.uas-product-search-list ul.products li.product .star-rating,
ul.products.uas-product-search-list-loop li.product .star-rating,
body.uas-product-search-list ul.products li.product .price,
ul.products.uas-product-search-list-loop li.product .price {
    grid-column: 2;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;
}

body.uas-product-search-list ul.products li.product .price,
ul.products.uas-product-search-list-loop li.product .price {
    display: block !important;
    margin-top: 8px !important;
    font-size: 18px !important;
}

body.uas-product-search-list ul.products li.product > .button,
ul.products.uas-product-search-list-loop li.product > .button,
body.uas-product-search-list ul.products li.product > .added_to_cart,
ul.products.uas-product-search-list-loop li.product > .added_to_cart {
    align-self: center;
    justify-self: end;
    margin: 0 !important;
    white-space: nowrap;
}

@media (max-width: 767px) {
    body.uas-product-search-list ul.products li.product,
    ul.products.uas-product-search-list-loop li.product {
        grid-template-columns: 1fr;
        row-gap: 16px;
        padding: 20px 0 !important;
    }

    body.uas-product-search-list ul.products li.product .woocommerce-LoopProduct-link,
    ul.products.uas-product-search-list-loop li.product .woocommerce-LoopProduct-link,
    body.uas-product-search-list ul.products li.product .woocommerce-loop-product__link,
    ul.products.uas-product-search-list-loop li.product .woocommerce-loop-product__link {
        grid-template-columns: 120px minmax(0, 1fr);
        column-gap: 16px;
    }

    body.uas-product-search-list ul.products li.product img,
    ul.products.uas-product-search-list-loop li.product img {
        width: 120px !important;
        height: 120px !important;
        max-width: 120px !important;
        padding: 5px;
    }

    body.uas-product-search-list ul.products li.product .woocommerce-loop-product__title,
    ul.products.uas-product-search-list-loop li.product .woocommerce-loop-product__title {
        font-size: 17px !important;
        line-height: 1.4 !important;
    }

    body.uas-product-search-list ul.products li.product > .button,
    ul.products.uas-product-search-list-loop li.product > .button,
    body.uas-product-search-list ul.products li.product > .added_to_cart,
    ul.products.uas-product-search-list-loop li.product > .added_to_cart {
        justify-self: start;
    }
}

@media (max-width: 480px) {
    body.uas-product-search-list ul.products li.product .woocommerce-LoopProduct-link,
    ul.products.uas-product-search-list-loop li.product .woocommerce-LoopProduct-link,
    body.uas-product-search-list ul.products li.product .woocommerce-loop-product__link,
    ul.products.uas-product-search-list-loop li.product .woocommerce-loop-product__link {
        display: block !important;
    }

    body.uas-product-search-list ul.products li.product img,
    ul.products.uas-product-search-list-loop li.product img {
        width: 180px !important;
        height: 180px !important;
        max-width: 100% !important;
        margin: 0 0 14px !important;
    }
}


/* Search-result pages already render the filtered WooCommerce product loop below.
 * Hide the separate UAS catalog-card block so customers do not see the same
 * products twice (grid first, list second). Normal unfiltered Shop/catalog use
 * remains unchanged.
 */
body.uas-product-search-list .uas-catalog {
    display: none !important;
}

/* ============================================================
 * v1.2.0 Homepage + footer
 * ============================================================ */
.home .storefront-breadcrumb {
    display: none !important;
}

.uas-home-content-area {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

.uas-homepage {
    padding: 8px 0 48px;
}

.uas-home-panel {
    margin: 0 0 34px;
    padding: 28px 30px;
    background: #fff;
    border: 1px solid #e3e6e8;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.uas-home-welcome h1 {
    margin: 0 0 24px;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.2;
}

.uas-home-welcome p {
    max-width: 1120px;
    margin: 0 0 20px;
    color: #262626;
    font-size: 17px;
    line-height: 1.9;
}

.uas-home-welcome p:last-child {
    margin-bottom: 0;
}

.uas-home-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.uas-home-section-heading h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 500;
}

.uas-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 5px;
    background: #222;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none !important;
}

.uas-view-all:hover,
.uas-view-all:focus {
    background: #444;
}

.uas-category-carousel {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0,1fr) 34px;
    gap: 12px;
    align-items: center;
}

.uas-category-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(190px, 1fr);
    gap: 18px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    padding: 2px;
}

.uas-category-track::-webkit-scrollbar {
    display: none;
}

.uas-category-card {
    scroll-snap-align: start;
    min-width: 0;
    padding: 12px 12px 14px;
    border: 1px solid #d8dde2;
    border-radius: 5px;
    background: #fff;
    color: #333 !important;
    text-align: center;
    text-decoration: none !important;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.uas-category-card:hover,
.uas-category-card:focus {
    transform: translateY(-2px);
    border-color: #b8c0c8;
    box-shadow: 0 5px 15px rgba(0,0,0,.08);
}

.uas-category-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    margin-bottom: 10px;
}

.uas-category-image-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.uas-category-name {
    display: block;
    font-size: 16px;
    line-height: 1.35;
}

.uas-category-arrow {
    width: 34px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #222;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.uas-category-arrow:hover,
.uas-category-arrow:focus {
    color: #666;
    background: transparent;
}

/* Custom site footer inspired by the user's reference, with UAS content. */
.site-footer {
    padding: 0 !important;
    background: #333 !important;
    color: #f5f5f5;
}

.site-footer > .col-full {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.uas-custom-footer {
    width: 100%;
}

.uas-footer-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 72px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 54px 28px 42px;
}

.uas-footer-column h2 {
    margin: 0 0 14px;
    padding-bottom: 9px;
    border-bottom: 1px solid rgba(255,255,255,.23);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.uas-footer-column p,
.uas-footer-column a {
    color: #f2f2f2;
    font-size: 14px;
    line-height: 1.55;
}

.uas-footer-column a {
    display: block;
    margin: 0 0 9px;
    text-decoration: none;
}

/* Storefront can apply a darker site-footer link/visited color with a more
 * specific selector. Keep Customer Service links readable on the dark footer. */
.site-footer .uas-footer-column a,
.site-footer .uas-footer-column a:link,
.site-footer .uas-footer-column a:visited {
    color: #f2f2f2 !important;
}

.site-footer .uas-footer-column a:hover,
.site-footer .uas-footer-column a:focus,
.site-footer .uas-footer-column a:active {
    color: #ffffff !important;
    text-decoration: underline;
}

.uas-footer-signup {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 10px;
    margin-top: 12px;
}

.uas-footer-signup input[type="email"] {
    min-width: 0;
    height: 42px;
    margin: 0;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: #fff;
    color: #222;
}

.uas-footer-signup button {
    min-height: 42px;
    margin: 0;
    padding: 0 16px;
    border: 0;
    border-radius: 4px;
    background: #222;
    color: #fff;
    font-weight: 700;
}

.uas-footer-signup button:hover,
.uas-footer-signup button:focus {
    background: #555;
}

.uas-footer-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.uas-footer-form-message {
    margin: 8px 0 0 !important;
    padding: 8px 10px;
    border-radius: 4px;
    background: rgba(255,255,255,.08);
}

.uas-footer-form-message.success { color: #d6f4d6; }
.uas-footer-form-message.error { color: #ffd3d3; }

.uas-payment-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.uas-payment-badges span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    min-height: 34px;
    padding: 4px 8px;
    border-radius: 3px;
    background: #fff;
    color: #222;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.uas-footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 10px;
    min-height: 48px;
    padding: 12px 22px;
    background: #232323;
    color: #fff;
    font-size: 13px;
    text-align: center;
}

.uas-footer-bottom a {
    color: #fff;
    text-decoration: none;
}

.uas-footer-bottom a:hover,
.uas-footer-bottom a:focus {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .uas-footer-columns {
        grid-template-columns: 1fr 1fr;
        gap: 34px;
    }

    .uas-footer-payments {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .uas-homepage {
        padding-top: 8px;
    }

    .uas-home-panel {
        padding: 22px 18px;
    }

    .uas-home-welcome p {
        font-size: 16px;
        line-height: 1.7;
    }

    .uas-home-section-heading {
        align-items: flex-start;
    }

    .uas-category-carousel {
        grid-template-columns: 24px minmax(0,1fr) 24px;
        gap: 5px;
    }

    .uas-category-track {
        grid-auto-columns: minmax(160px, 78vw);
        gap: 12px;
    }

    .uas-category-image-wrap {
        height: 130px;
    }

    .uas-category-arrow {
        width: 24px;
        font-size: 28px;
    }

    .uas-footer-columns {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 38px 20px 32px;
    }

    .uas-footer-payments {
        grid-column: auto;
    }

    .uas-footer-signup {
        grid-template-columns: 1fr;
    }
}


/* Search/YMM result-page cleanup: keep only the matching vertical product list. */
body.uas-product-search-list .woocommerce-products-header,
body.uas-product-search-list .woocommerce-products-header__title,
body.uas-product-search-list .page-title,
body.uas-product-search-list .woocommerce-ordering,
body.uas-product-search-list .woocommerce-result-count {
    display: none !important;
}

body.uas-product-search-list .storefront-sorting {
    display: none !important;
}

/* v1.3.0 customer-service pages and functional forms. */
.uas-service-page {
    max-width: 980px;
    margin: 0 auto 48px;
    color: #2f3337;
    font-size: 16px;
    line-height: 1.75;
}

.uas-service-page > p:first-child {
    margin-top: 0;
}

.uas-service-page ul {
    margin: 18px 0 26px 1.25em;
}

.uas-service-form {
    display: grid;
    gap: 16px;
    max-width: 860px;
    margin-top: 24px;
}

.uas-service-form label {
    display: grid;
    gap: 6px;
    margin: 0;
    color: #262a2d;
    font-weight: 700;
}

.uas-service-form input,
.uas-service-form select,
.uas-service-form textarea {
    width: 100%;
    margin: 0;
    border: 1px solid #c7ccd1;
    border-radius: 5px;
    background: #fff;
    color: #222;
    box-sizing: border-box;
}

.uas-service-form input,
.uas-service-form select {
    min-height: 44px;
}

.uas-service-form textarea {
    min-height: 150px;
    resize: vertical;
}

.uas-service-form button {
    justify-self: start;
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 5px;
    background: #222;
    color: #fff;
    font-weight: 700;
}

.uas-service-form button:hover,
.uas-service-form button:focus {
    background: #444;
    color: #fff;
}

.uas-service-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.uas-service-message {
    margin: 20px 0;
    padding: 12px 14px;
    border-radius: 5px;
    font-weight: 600;
}

.uas-service-message.success {
    border: 1px solid #b8d8ba;
    background: #edf8ee;
    color: #245b29;
}

.uas-service-message.error {
    border: 1px solid #e2b9b9;
    background: #fff1f1;
    color: #8a2525;
}

.uas-native-order-tracking {
    margin-top: 24px;
    padding: 24px;
    border: 1px solid #dde1e5;
    border-radius: 8px;
    background: #fafbfc;
}

.uas-native-order-tracking .woocommerce-form-track-order {
    margin: 0;
}

.uas-native-order-tracking .form-row {
    margin-bottom: 14px;
}

/* Use the supplied accepted-credit-cards artwork in the footer. */
.uas-payment-badges {
    display: block;
}

.uas-payment-badges .uas-payment-logo {
    display: block;
    width: auto;
    max-width: min(100%, 371px);
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

@media (max-width: 640px) {
    .uas-service-page {
        font-size: 15px;
    }

    .uas-native-order-tracking {
        padding: 18px;
    }

    .uas-service-form button {
        width: 100%;
        justify-self: stretch;
    }
}



/* v1.3.3: pull the custom homepage content closer to Storefront navigation. */
body.home .site-header {
    margin-bottom: 16px !important;
}

body.home .site-content {
    padding-top: 0 !important;
}

body.home .site-content > .col-full {
    padding-top: 0 !important;
}

/* v1.3.2: product-category archives use the same clean vertical parts list. */
body.tax-product_cat .woocommerce-ordering,
body.tax-product_cat .woocommerce-result-count,
body.tax-product_cat .storefront-sorting {
    display: none !important;
}



/* v1.3.4: keep cart/checkout rows compact by hiding product short-description metadata. */
body.woocommerce-cart .wc-block-components-product-metadata__description,
body.woocommerce-checkout .wc-block-components-product-metadata__description {
    display: none !important;
}


/* Aligned header discovery rows. */
.site-header .uas-storefront-header-product-search {
    clear: both;
    width: 100%;
    padding: 12px 0 8px;
}
.site-header .uas-header-vehicle-form,
.site-header .uas-header-product-form {
    grid-template-columns: minmax(150px,.8fr) repeat(3,minmax(0,1fr)) 112px;
}
.site-header .uas-header-product-form {
    display: grid;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #e1e5e9;
    border-radius: 10px;
    background: #f7f8f9;
    box-shadow: 0 3px 12px rgba(0,0,0,.04);
}
.site-header .uas-header-product-form label {
    margin: 0;
    color: #222;
    font-weight: 700;
}
.site-header .uas-header-product-form input[type=search] {
    grid-column: 2 / 5;
    width: 100%;
    min-width: 0;
    height: 42px;
    margin: 0;
    padding: 0 13px;
    border: 1px solid #cfd4da;
    border-radius: 6px;
    background: #fff;
    color: #333;
    box-shadow: none;
    box-sizing: border-box;
}
.site-header .uas-header-product-form button {
    position: static;
    width: 100%;
    height: 42px;
    margin: 0;
    padding: 0 16px;
    border: 0;
    border-radius: 6px;
    background: #222;
    color: #fff;
    font-weight: 700;
}
.site-header .uas-header-product-form button:hover { background: #444; }
.site-header .uas-header-product-form input:focus-visible,
.site-header .uas-header-product-form button:focus-visible {
    outline: 2px solid #2271b1;
    outline-offset: 3px;
}
@media (max-width:980px) {
    .site-header .uas-header-vehicle-form { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .site-header .uas-header-product-form { grid-template-columns: minmax(0,1fr) 112px; }
    .site-header .uas-header-product-form label { grid-column: 1 / -1; }
    .site-header .uas-header-product-form input[type=search] { grid-column: 1; }
}
@media (max-width:767px) {
    .site-header .uas-header-vehicle-form,
    .site-header .uas-header-product-form { grid-template-columns: minmax(0,1fr); padding: 12px; }
    .site-header .uas-header-product-form label,
    .site-header .uas-header-product-form input[type=search] { grid-column: auto; }
}

/* Category panels start collapsed; native details supports keyboard operation. */
.uas-category-browser { width: 100%; max-width: 1120px; margin: 0 auto 48px; }
.uas-category-browser-heading { margin-bottom: 26px; }
.uas-category-eyebrow { color: #6b7280; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.uas-category-browser-heading h1 { margin: 8px 0 10px; color: #20252b; font-size: clamp(28px,4vw,38px); line-height: 1.2; }
.uas-category-browser-heading p { margin: 0; max-width: 720px; color: #68717b; font-size: 15px; line-height: 1.6; }
.uas-category-panels { display: grid; gap: 12px; }
.uas-category-panel { border: 1px solid #dfe4e9; border-radius: 12px; background: #fff; overflow: hidden; box-shadow: 0 2px 8px rgba(25,35,45,.025); }
.uas-category-panel > summary { display: flex; align-items: center; gap: 16px; padding: 20px 22px; color: #252b33; list-style: none; cursor: pointer; }
.uas-category-panel > summary::-webkit-details-marker { display: none; }
.uas-category-panel > summary::marker { content: ''; }
.uas-category-panel > summary:hover { background: #f8fafb; }
.uas-category-panel > summary:focus-visible { outline: 2px solid #2271b1; outline-offset: -4px; border-radius: 12px; }
.uas-category-panel-name { min-width: 0; flex: 1; overflow-wrap: anywhere; font-size: 18px; font-weight: 600; line-height: 1.4; }
.uas-category-panel-count { padding: 5px 11px; border-radius: 30px; background: #f0f3f5; color: #596572; font-size: 13px; font-weight: 600; white-space: nowrap; }
.uas-category-panel-toggle { display: inline-flex; flex: 0 0 32px; width: 32px; height: 32px; align-items: center; justify-content: center; border: 1px solid #dce2e7; border-radius: 50%; background: #fff; color: #303943; font-size: 23px; line-height: 1; }
.uas-category-panel-toggle::before { content: '+'; }
.uas-category-panel[open] > summary { border-bottom: 1px solid #e6e9ec; background: #f7f9fa; }
.uas-category-panel[open] .uas-category-panel-toggle::before { content: '−'; }
.uas-category-panel-content { padding: 6px 22px 20px; }
.uas-category-status { margin: 12px 0; color: #68717b; font-size: 14px; }
.uas-category-status:empty { display: none; }
.uas-category-product-list { margin: 0; padding: 0; list-style: none; }
.uas-category-product { margin: 0; padding: 0; border-bottom: 1px solid #edf0f2; }
.uas-category-product:last-child { border-bottom: 0; }
.uas-category-product > a { display: grid; grid-template-columns: 150px minmax(0,1fr); align-items: center; gap: 24px; padding: 22px 0; color: #222; text-decoration: none; }
.uas-category-product > a:focus-visible { outline: 2px solid #2271b1; outline-offset: 4px; }
.uas-category-product-image { display: flex; align-items: center; justify-content: center; width: 150px; height: 130px; padding: 8px; background: #fff; box-sizing: border-box; }
.uas-category-product-image img { display: block; width: 100%; height: 100%; object-fit: contain; margin: 0; }
.uas-category-product-info { min-width: 0; }
.uas-category-product-title { display: block; color: #252b33; font-size: 16px; font-weight: 600; line-height: 1.55; overflow-wrap: anywhere; }
.uas-category-product-sku { display: block; margin-top: 7px; color: #6b7480; font-size: 12px; }
.uas-category-product-price { display: block; margin-top: 7px; color: #1e293b; font-size: 17px; font-weight: 700; }
.uas-category-product-link { display: inline-block; margin-top: 8px; color: #1f6392; font-size: 13px; font-weight: 600; }
.uas-category-product > a:hover .uas-category-product-title { color: #1f6392; }
.uas-category-panel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 14px; border-top: 1px solid #edf0f2; }
.uas-category-panel-actions .button { border-radius: 6px; font-size: 14px; }
.uas-category-panel-actions [hidden] { display: none !important; }
.uas-category-browse-link { color: #1f6392; font-size: 14px; font-weight: 600; }
@media (max-width:600px) {
    .uas-category-panel > summary { gap: 10px; padding: 16px 14px; }
    .uas-category-panel-name { font-size: 16px; }
    .uas-category-panel-count { padding: 4px 8px; font-size: 12px; }
    .uas-category-panel-content { padding: 4px 14px 16px; }
    .uas-category-product > a { grid-template-columns: 90px minmax(0,1fr); gap: 14px; padding: 18px 0; }
    .uas-category-product-image { width: 90px; height: 100px; padding: 3px; }
    .uas-category-product-title { font-size: 14px; }
}
