/* Shop page — additive stylesheet, loaded alongside style.css.
   Does not redefine or override any homepage selector. */

.shop-wrap{display:grid;grid-template-columns:260px 1fr;gap:22px;margin-top:18px;margin-bottom:36px;align-items:start}

.shop-filter-backdrop{display:none}

.shop-sidebar{position:sticky;top:100px}

/* product card — image+title+price link to the product detail page,
   the "Add to cart" button stays outside the link so it doesn't navigate */
.card-link{display:contents;color:inherit;text-decoration:none;cursor:pointer}

/* FILTERS panel — Car Brand / Warranty Period / Price Range / Brand */
.filters-box{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;margin-bottom:20px}
.filters-head{display:flex;align-items:center;justify-content:space-between;padding:16px 18px}
.filters-head span{font-weight:800;font-size:14px;letter-spacing:.6px;text-transform:uppercase;color:var(--ink)}
.filters-head-actions{display:flex;align-items:center;gap:10px}
.filters-clear{display:flex;align-items:center;gap:4px;background:none;border:none;color:var(--muted);font-size:12.5px;font-weight:600;font-family:'Inter',sans-serif;cursor:pointer;padding:0;transition:color .15s}
.filters-clear:hover{color:var(--orange)}
.filter-row{border-top:1px solid var(--line)}
.filter-row summary{display:flex;align-items:center;justify-content:space-between;list-style:none;cursor:pointer;padding:14px 18px;font-weight:700;font-size:13.5px;color:var(--ink);background:var(--bg)}
.filter-row summary::-webkit-details-marker{display:none}
.filter-row-chev{color:var(--muted);font-size:12px;transition:transform .2s}
.filter-row[open] .filter-row-chev{transform:rotate(180deg)}
.filter-row .filter-list{padding:12px 18px;max-height:none}

.filter-list{display:flex;flex-direction:column;gap:2px;max-height:230px;overflow-y:auto;padding-right:4px}
.filter-item{display:flex;align-items:center;gap:10px;padding:7px 4px;font-size:13.5px;color:var(--body);cursor:pointer;border-radius:6px;transition:background .15s}
.filter-item:hover{background:var(--bg)}
.filter-item input{accent-color:var(--orange);width:15px;height:15px;flex-shrink:0}
.filter-item span{flex:1}
.filter-item small{color:var(--muted);font-size:12px}

/* toolbar */
.shop-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:20px;flex-wrap:wrap}
.shop-count{font-size:13.5px;color:var(--body)}
.shop-toolbar-right{display:flex;align-items:center;gap:10px}
.shop-sort{height:40px;border:1px solid var(--line);border-radius:8px;padding:0 14px;font-size:13px;background:#fff;color:var(--ink);font-family:'Inter',sans-serif;cursor:pointer}
.shop-view{display:flex;gap:6px}
.shop-view button{width:40px;height:40px;border-radius:8px;border:1px solid var(--line);background:#fff;color:var(--muted);cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .15s}
.shop-view button.active{background:var(--orange);border-color:var(--orange);color:#fff}
.shop-view svg{width:16px;height:16px}

/* grid */
.shop-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.shop-grid.list-view{grid-template-columns:1fr}
.shop-grid.list-view .card{display:flex;align-items:center;gap:18px;padding:14px}
.shop-grid.list-view .card .card-img{width:130px;flex-shrink:0;height:130px;margin:0}
.shop-grid.list-view .card-body{flex:1;padding:0}
.shop-grid.list-view .card .add-cart{width:auto;padding:10px 24px}

.card .countdown{margin:6px 0}
.card .countdown div{padding:4px 3px;min-width:0;flex:1}
.card .countdown strong{font-size:11px}
.card .countdown small{font-size:7px}

.price-range{font-size:13px;font-weight:800;color:var(--orange);font-family:'Poppins',sans-serif}

.shop-pagination{display:flex;justify-content:center;gap:8px;margin-top:24px}
.shop-pagination button{width:38px;height:38px;border-radius:8px;border:1px solid var(--line);background:#fff;color:var(--ink);font-weight:700;font-size:13px;cursor:pointer;transition:all .15s}
.shop-pagination button.active,.shop-pagination button:hover{background:var(--orange);border-color:var(--orange);color:#fff}

@media(max-width:980px){
  .shop-wrap{grid-template-columns:1fr}
  .shop-grid{grid-template-columns:repeat(3,1fr)}
}

/* Filter button — mobile only trigger for the sidebar drawer */
.shop-filter-btn{display:none;align-items:center;gap:6px;height:40px;padding:0 14px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font-weight:700;font-size:13px;font-family:'Inter',sans-serif;cursor:pointer}
.shop-filter-btn svg{width:15px;height:15px}
.filters-close{display:none;background:none;border:none;font-size:22px;line-height:1;color:var(--muted);cursor:pointer;padding:0 0 0 10px}

@media(max-width:760px){
  .shop-wrap{margin-top:16px;margin-bottom:40px;gap:14px}
  .shop-toolbar{gap:8px}
  .shop-count{font-size:11.5px;order:1;width:100%}
  .shop-toolbar-right{order:2;width:100%;justify-content:space-between}
  .shop-filter-btn{display:flex;flex-shrink:0}
  .shop-sort{flex:1;font-size:11.5px;height:36px;padding:0 10px;min-width:0}
  .shop-view{display:none}
  .shop-grid{grid-template-columns:repeat(2,1fr);gap:10px}
  .shop-grid.list-view .card .card-img{width:90px;height:90px}
  .shop-pagination{margin-top:24px}
  .shop-pagination button{width:34px;height:34px;font-size:12px}

  /* sidebar becomes an off-canvas drawer */
  /* z-index:1000/999 (not the static theme's original 80/79) — partials/header.blade.php
     makes .header position:fixed with z-index:999 on mobile (for the sticky-header-on-
     scroll fix), which otherwise paints over and hides the top of this drawer. */
  .shop-sidebar{position:fixed;top:0;left:0;bottom:0;width:82%;max-width:320px;background:var(--bg);z-index:1000;padding:18px;overflow-y:auto;transform:translateX(-105%);transition:transform .25s ease;box-shadow:var(--shadow-lg)}
  .shop-sidebar.open{transform:translateX(0)}
  .filters-box{margin-bottom:0}
  .filters-close{display:block}
  .shop-filter-backdrop{display:none;position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:999}
  .shop-filter-backdrop.open{display:block}
}
