/**
 * AgiaCare mobile UX – less widgety shopping path (P0/P1)
 * Scope: max-width 991px; desktop untouched.
 * Brand colors: existing #4e87b7 / #D4A3A9 skin – no new palette.
 */

@media (max-width: 991px) {

    /* --- Navigation / chrome noise --- */
    .block-compare,
    .block-poll,
    .block-tags,
    .block-viewed,
    .block-compared,
    .block-reorder,
    .paypal-logo,
    #like-box,
    .sidebar .block.block-list.block-viewed,
    .sidebar .block.block-compared {
        display: none !important;
    }

    /* Homepage: calm first composition – hide secondary product carousels / CMS clutter after first hero zone */
    .cms-index-index .col-left,
    .cms-index-index .col-right {
        display: none !important;
    }

    .cms-index-index .col-main {
        width: 100% !important;
        float: none !important;
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Reduce stacked widget “cards” feel */
    .cms-index-index .widget,
    .cms-index-index .ktmcore-products-list,
    .cms-index-index .owl-carousel {
        margin-bottom: 18px !important;
    }

    .cms-index-index .owl-carousel .owl-item .item {
        box-shadow: none !important;
        border-radius: 0 !important;
        border: none !important;
        background: transparent !important;
    }

    /* Limit banner slider chrome on small screens */
    .cms-index-index .magebees-banner,
    .cms-index-index .responsivebannerslider,
    .cms-index-index .owl-dots {
        margin-bottom: 12px;
    }

    .cms-index-index .owl-nav {
        display: none !important;
    }

    /* Category listing: tighter rhythm */
    .catalog-category-view .page-title,
    .catalogsearch-result-index .page-title {
        margin: 8px 0 12px !important;
    }

    .catalog-category-view .category-products .products-grid .item,
    .catalogsearch-result-index .products-grid .item {
        margin-bottom: 16px;
        padding: 8px 6px;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
    }

    .catalog-category-view .toolbar,
    .catalogsearch-result-index .toolbar {
        margin-bottom: 12px;
        padding: 8px 0;
    }

    /* PDP: price + ATC first; soft related widgets */
    .catalog-product-view .product-view .product-shop {
        padding-top: 4px;
    }

    .catalog-product-view .product-shop .price-box {
        margin: 10px 0 14px !important;
    }

    .catalog-product-view .product-shop .add-to-cart,
    .catalog-product-view .product-shop .btn-cart,
    .catalog-product-view .product-shop button.button.btn-cart {
        min-height: 48px;
        padding: 12px 18px !important;
        font-size: 16px !important;
        width: 100%;
        max-width: 100%;
    }

    .catalog-product-view .product-collateral {
        margin-top: 20px;
    }

    .catalog-product-view .box-up-sell,
    .catalog-product-view .box-related,
    .catalog-product-view .block-related {
        margin-top: 28px;
        padding-top: 16px;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }

    /* Cart + checkout tap targets */
    .checkout-cart-index .button,
    .checkout-onepage-index .button,
    .opc .button,
    .iwd-opc .button,
    .checkout-onepage-index input.input-text,
    .checkout-onepage-index select,
    .checkout-onepage-index textarea,
    .opc input.input-text,
    .opc select,
    .iwd-opc input.input-text,
    .iwd-opc select {
        min-height: 44px;
        font-size: 16px; /* reduces iOS zoom */
    }

    .checkout-onepage-index .col-right,
    .checkout-cart-index .col-right .block:not(.block-progress):not(.checkout-progress) {
        /* keep totals; hide promo side noise when present */
    }

    .checkout-cart-index .crosssell,
    .checkout-cart-index .block-related {
        display: none !important;
    }

    /* Menu: less dense accordion padding */
    #ktmnav,
    .nav-mobile,
    .mobilemenu {
        font-size: 15px;
    }

    .header-inner {
        height: auto;
        min-height: 64px;
        padding-top: 10px;
        padding-bottom: 8px;
    }

    .header-inner .dist,
    .header-inner .contact {
        display: none !important;
    }

    .header-inner .logo img {
        max-height: 56px;
        margin-top: 0;
    }
}

@media (max-width: 767px) {

    /* Stronger homepage declutter */
    .cms-index-index .col-main > *:nth-child(n+4) {
        /* content editors: keep hero + 1 CTA block + optional category strip in first 3 CMS children */
    }

    .cms-index-index .products-grid .item .actions .button,
    .catalog-category-view .products-grid .item .actions .button {
        min-height: 44px;
        width: 100%;
    }

    .bread-top {
        min-height: 44px;
        margin-bottom: 8px;
    }

    .page-title h1,
    .category-title h1 {
        font-size: 22px !important;
        line-height: 1.25 !important;
        margin: 0 0 10px !important;
    }
}
