/* BUY C+ v7.6 — mobile shop page (loaded only by products/index.blade.php).
   Phones (<=720px): products come first. A sticky "Filter | Sort" bar sits above
   the grid; Filter opens the existing filter form as a full-screen sheet.
   Tablet and desktop keep the left filter sidebar unchanged.
   Rules are scoped under .catalog-page because this file loads before buyc-v2.css. */

.catalog-page .bc-filter-check{position:absolute;width:1px;height:1px;margin:0;opacity:0;pointer-events:none}
.catalog-page .bc-shop-bar,.catalog-page .bc-filter-close{display:none}

@media (max-width:720px){
    /* Shorter page header so the clothes show sooner */
    .catalog-page{padding-top:8px}
    .catalog-page .breadcrumbs{margin:4px 0 14px}
    .catalog-page .catalog-intro{padding-bottom:18px}
    .catalog-page .catalog-intro h1{font-size:38px;margin-bottom:0}
    .catalog-page .catalog-intro > p{display:none}

    /* Filter | Sort bar */
    .catalog-page .bc-shop-bar{display:grid;grid-template-columns:1fr 1fr;position:sticky;top:0;z-index:20;margin:0 -17px;background:var(--ivory,#faf9f4);border-top:1px solid var(--line,#e8e6dd);border-bottom:1px solid var(--line,#e8e6dd)}
    .catalog-page .bc-shop-bar__btn,.catalog-page .bc-shop-bar__sort{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;height:52px;margin:0;padding:0 8px;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--ink,#121212);cursor:pointer;-webkit-tap-highlight-color:transparent;white-space:nowrap}
    .catalog-page .bc-shop-bar__btn{border-right:1px solid var(--line,#e8e6dd)}
    .catalog-page .bc-shop-bar__btn.is-active{background:var(--yellow,#f4ea35)}
    .catalog-page .bc-shop-bar__btn:focus-visible,.catalog-page .bc-shop-bar__sort:focus-within{outline:2px solid var(--ink,#121212);outline-offset:-2px}
    .catalog-page .bc-shop-bar__sort select{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;font-size:16px}
    .catalog-page .bc-shop-bar__sort noscript button{position:relative;margin-left:6px}
    .catalog-page .catalog-layout{border-top:0;padding-top:18px}
    .catalog-page .results-header{margin-bottom:14px}

    /* Filter sheet */
    .catalog-page .filter-panel{position:fixed;inset:0;align-self:stretch;height:100%;max-height:100dvh;z-index:100;margin:0;padding:0 17px;background:var(--ivory,#faf9f4);overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;visibility:hidden;transform:translateY(100%);transition:transform .25s ease,visibility 0s linear .25s}
    .catalog-page .bc-filter-check:checked ~ .catalog-layout .filter-panel{visibility:visible;transform:none;transition:transform .25s ease}
    body:has(.bc-filter-check:checked){overflow:hidden}
    .catalog-page .bc-filter-head{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;height:58px;margin:0 -17px;padding:0 17px;background:var(--ivory,#faf9f4);border-bottom:1px solid var(--line,#e8e6dd)}
    .catalog-page .bc-filter-head h2{margin:0}
    .catalog-page .bc-filter-close{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;margin-right:-11px;color:var(--ink,#121212);cursor:pointer}
    .catalog-page .filter-panel input,.catalog-page .filter-panel select{font-size:16px} /* 16px stops iPhone zooming into fields */
    .catalog-page .filter-panel .v7-price-pair{grid-column:1/-1;grid-template-columns:1fr 1fr;gap:0 12px}
    .catalog-page .filter-panel .btn{position:sticky;bottom:12px;z-index:3;margin-top:8px;box-shadow:0 14px 0 var(--ivory,#faf9f4),0 -14px 18px var(--ivory,#faf9f4)}
    .catalog-page .filter-panel .clear-link{padding-bottom:24px}
}
