/* A shared compact scale for the customer-facing mobile experience. */
@media (max-width: 767.98px) {
    html { font-size: 15px !important; }

    #customer-app-shell {
        font-size: .9rem;
        line-height: 1.65;
    }

    #customer-app-shell :where(input, select, textarea) {
        font-size: 16px;
    }

    #customer-app-shell :where(.card, .shadow-box) {
        border-radius: 12px;
    }

    #customer-app-shell .card-body {
        padding: 11px;
    }

    /* Product rows used by Search, Home and related-product sections. */
    #customer-app-shell .b2b-simple.product-row-item {
        padding: 5px 4px !important;
    }

    #customer-app-shell .b2b-thumb {
        flex: 0 0 50px !important;
        width: 50px !important;
        height: 50px !important;
        aspect-ratio: 1 / 1 !important;
        overflow: hidden !important;
        border-radius: 9px !important;
    }

    #customer-app-shell .b2b-thumb img {
        display: block;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        aspect-ratio: 1 / 1 !important;
    }

    #customer-app-shell .b2b-title {
        font-size: .82rem !important;
        line-height: 1.45 !important;
    }

    #customer-app-shell .b2b-price-under-title {
        gap: 4px !important;
        margin-top: 2px !important;
        font-size: .74rem !important;
    }

    #customer-app-shell .b2b-price-under-title :where(.val, .val2) {
        font-size: .88rem !important;
    }

    #customer-app-shell .b2b-meta-mobile {
        gap: 3px 7px !important;
        margin-top: 1px !important;
        font-size: .73rem !important;
    }

    #customer-app-shell .b2b-mobile-actions-under-title {
        gap: 5px !important;
        margin-top: 4px !important;
    }

    #customer-app-shell .b2b-mobile-actions-under-title .b2b-btn-add,
    #customer-app-shell .b2b-cart-mobile .b2b-btn-add {
        min-height: 36px !important;
        height: 36px !important;
        padding-inline: 12px !important;
        border-radius: 10px !important;
        font-size: .8rem !important;
    }

    #customer-app-shell .b2b-mobile-actions-under-title .b2b-fav {
        min-height: 32px !important;
        width: 32px !important;
        height: 32px !important;
        border-radius: 9px !important;
    }

    #customer-app-shell .b2b-cart-mobile .b2b-qty-btn {
        min-height: 32px !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 16px !important;
    }

    #customer-app-shell .b2b-cart-mobile .b2b-qty-input {
        min-height: 32px !important;
        width: 40px !important;
        height: 32px !important;
        font-size: 14px !important;
    }

    #customer-app-shell .sub-stiky-toolbar { padding: 8px !important; }
    #customer-app-shell .toolbar-row { gap: 6px !important; }
    #customer-app-shell .search-box input {
        height: 40px !important;
        min-width: 0 !important;
        padding-right: 43px !important;
        border-radius: 11px !important;
    }
    #customer-app-shell .search-box .search-ico {
        right: 7px !important;
        width: 29px !important;
        height: 29px !important;
        border-radius: 8px !important;
    }
    #customer-app-shell .btn-toolbar {
        height: 40px !important;
        gap: 5px !important;
        padding-inline: 9px !important;
        border-radius: 11px !important;
        font-size: .75rem !important;
    }
    #customer-app-shell .btn-toolbar.btn-icon { width: 40px !important; padding: 0 !important; }
    #customer-app-shell .filter-chips { gap: 5px !important; margin-top: 7px !important; }
    #customer-app-shell .filter-chip {
        gap: 5px !important;
        padding: 6px 9px !important;
        font-size: .72rem !important;
    }

    /* Home categories and section headings. */
    #customer-app-shell .site-category-items-icon {
        width: 58px !important;
        height: 58px !important;
        min-width: 58px !important;
        max-width: 58px !important;
    }

    #customer-app-shell .site-category-items-icon img {
        width: 58px !important;
        height: 58px !important;
    }

    #customer-app-shell .site-category-items-title {
        font-size: .7rem !important;
    }

    #customer-app-shell .amazing-title {
        font-size: .98rem !important;
    }

    /* Category pages. */
    #customer-app-shell .catMobile-wrapper summary {
        padding: 9px 12px !important;
        font-size: 13px !important;
    }

    #customer-app-shell .catMobile-wrapper details {
        margin-bottom: 13px !important;
    }

    #customer-app-shell .catMobile-wrapper .swiper-slide.item-cat-slide-horizental {
        width: 66px !important;
        margin-right: 5px !important;
    }

    #customer-app-shell .catMobile-wrapper .site-category-items-icon img,
    #customer-app-shell .catMobile-wrapper .cat-placeholder-circle {
        width: 56px !important;
        height: 56px !important;
        margin-bottom: 6px !important;
    }

    #customer-app-shell .catMobile-wrapper h6 {
        font-size: .7rem !important;
    }

    /* Brand page. */
    #customer-app-shell #brandGrid {
        gap: 9px !important;
        margin-top: 14px !important;
    }

    #customer-app-shell #brandGrid .brand-item {
        gap: 5px !important;
    }

    #customer-app-shell #brandGrid .img-container {
        width: 58px !important;
    }

    #customer-app-shell #brandGrid .ratio::before {
        min-width: 58px !important;
    }

    #customer-app-shell #brandGrid h6 {
        margin-bottom: 5px;
        font-size: .7rem !important;
    }

    /* Product details. */
    #customer-app-shell .product-details-card,
    #customer-app-shell .product-info-card {
        border-radius: 12px !important;
    }

    #customer-app-shell .product-title {
        font-size: .9rem !important;
        line-height: 1.6 !important;
    }

    #customer-app-shell .product-detail-title,
    #customer-app-shell .product-details-title {
        font-size: .92rem !important;
    }

    #customer-app-shell :where(.accordion-button, .nav-link, .list-group-item) {
        font-size: .78rem;
    }
}
