/* ==========================================================================
   Mobile fixes for the shop & product details pages
   ========================================================================== */
@media (max-width: 767.98px) {
    /* ---------- Shop: filters first (compact), then a 2-column product grid ---------- */
    .shop-inner-page { padding-top: 24px !important; padding-bottom: 56px !important; }
    .shop-inner-page .container > .row > .order-2 { order: -1 !important; }
    .shop-sidebar { margin-bottom: 18px; }
    .shop-sidebar .widget { margin-bottom: 14px !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; background: transparent !important; }
    .shop-sidebar .sidebar-title { font-size: 14px !important; margin-bottom: 8px !important; padding: 0 !important; }
    .shop-sidebar .sidebar-title::before, .shop-sidebar .sidebar-title::after { display: none !important; }
    .shop-sidebar .sidebar-search input { height: 46px; border-radius: 999px !important; font-size: 14px; }

    /* categories become a horizontal row of chips */
    .shop-sidebar #shop-categories-list {
        display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; scrollbar-width: none;
        margin: 0 -12px; padding: 2px 12px 6px; list-style: none;
    }
    .shop-sidebar #shop-categories-list::-webkit-scrollbar { display: none; }
    .shop-sidebar #shop-categories-list li { flex: 0 0 auto; margin: 0 !important; padding: 0 !important; border: 0 !important; }
    .shop-sidebar #shop-categories-list li a {
        display: inline-flex !important; align-items: center; gap: 6px; white-space: nowrap;
        padding: 7px 12px !important; font-size: 13px !important; line-height: 1.3;
        background: #fff; border: 1px solid #EFE7DB !important; border-radius: 999px; color: #3D2F1F !important;
    }
    .shop-sidebar #shop-categories-list li a.active { background: #1A1206 !important; color: #fff !important; border-color: #1A1206 !important; }
    .shop-sidebar #shop-categories-list li a span { font-size: 11px; opacity: .7; }

    /* price filter: one compact line */
    .shop-sidebar .price_filter #slider-range { margin: 6px 8px 12px !important; }
    .shop-sidebar .price_slider_amount input[type="text"] { height: 40px; font-size: 13px; }
    .shop-sidebar .price_slider_amount input[type="button"] { height: 40px; padding: 0 16px; border-radius: 999px; }

    /* product grid */
    #shop-products-grid { --bs-gutter-x: 10px; --bs-gutter-y: 10px; margin-left: -5px !important; margin-right: -5px !important; }
    #shop-products-grid > .yo-shop-col { padding-left: 5px !important; padding-right: 5px !important; margin-bottom: 10px !important; }
    .yo-shop-col .shop-item { padding: 8px !important; border-radius: 14px !important; }
    .yo-shop-col .shop-thumb { height: 140px !important; border-radius: 10px !important; }
    .yo-shop-col .shop-content .title { font-size: 12.5px !important; min-height: 33px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .yo-shop-col .shop-content .cat { font-size: 9px !important; }
    .yo-shop-col .shop-bottom { margin-top: 8px !important; padding-top: 8px !important; }
    .yo-shop-col .shop-bottom .price { font-size: 13px !important; }
    .shop-wrap h4.title { font-size: 20px; }
    .shop-wrap .shop-page-meta, .shop-wrap .shop-meta-bar { flex-wrap: wrap; gap: 8px; }

    /* ---------- Product details: related products ---------- */
    .related-products-wrap { margin-top: 28px !important; }
    .related-products-wrap .title { font-size: 20px !important; margin-bottom: 14px !important; }
    .related-products-wrap .shop-slide-item { padding: 0 5px; }
    .related-products-wrap .shop-item { margin-bottom: 16px !important; padding: 8px !important; border-radius: 14px; }
    .related-products-wrap .shop-thumb { height: 130px !important; }
    .related-products-wrap .shop-content .title { font-size: 12.5px !important; }
}
