/* ==========================================================================
   shop.css — archive layout: left filter rail + 3-per-row product grid.
   Loaded AFTER shortcodes.css. All grid rules are scoped to .shop-main so the
   4-col .lz-grid elsewhere (search, [lz_product_grid]) is untouched, and so
   they outrank the unscoped .lz-grid rules in mobile-fixes.css.
   ========================================================================== */

/* ---- breadcrumb strip (replaces the old full-width .page-hero band) ---- */
.shop-crumbs{background:var(--bg);padding:22px 0 0}
.shop-crumbs .breadcrumb{display:flex;align-items:center;gap:8px;font-size:11.5px;letter-spacing:.07em;color:var(--text-light);flex-wrap:wrap}
.shop-crumbs .breadcrumb a{color:var(--text-soft);transition:.3s}
.shop-crumbs .breadcrumb a:hover{color:var(--brand)}
.shop-crumbs .breadcrumb svg{width:11px;height:11px;flex:none;color:var(--text-light)}
.shop-crumbs .breadcrumb span{color:var(--brand)}

/* ---- two-column shell ---- */
.shop-grid{padding:26px 0 100px}
.shop-layout{display:grid;grid-template-columns:256px minmax(0,1fr);gap:52px;align-items:start}
.shop-layout--nofilters{grid-template-columns:minmax(0,1fr)}
.shop-main{min-width:0}

/* ---- compact, left-aligned page title inside the product column ---- */
.shop-main-head{margin-bottom:20px}
.shop-main-head h1{font-family:var(--font-head);font-size:clamp(24px,2.6vw,32px);font-weight:400;line-height:1.15;letter-spacing:.01em;color:var(--brand);margin:0;text-align:left}
.shop-main-head p{margin:9px 0 0;font-size:13.5px;line-height:1.7;color:var(--text-soft);max-width:62ch}

/* toolbar sits inside the product column now — strip the nested .wrap */
.shop-main .toolbar{background:transparent;border-bottom:1px solid var(--line);margin-bottom:26px}
.shop-main .toolbar .wrap{max-width:none;margin:0;padding:0 0 14px;justify-content:space-between}

/* 3 products per row */
.shop-main .lz-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--gap)}
.shop-main .prod-card{min-width:0}

/* ---- filter rail ---- */
.shop-sidebar{position:sticky;top:104px;min-width:0}
.shop-sidebar-inner{display:flex;flex-direction:column}

.filters-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:18px;border-bottom:1px solid var(--line)}
.filters-head h2{font-family:var(--font-body);font-size:11px;font-weight:400;letter-spacing:.24em;text-transform:uppercase;color:var(--brand);display:flex;align-items:center;gap:8px;margin:0}
.filters-count{display:grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--brand);color:#fff;font-size:9.5px;letter-spacing:.04em;font-weight:500}
.filters-close{display:none;background:none;border:none;cursor:pointer;color:var(--text-soft);padding:4px;transition:.3s}
.filters-close:hover{color:var(--brand)}
.filters-close svg{width:20px;height:20px}

/* active filter pills */
.filter-active{display:flex;flex-wrap:wrap;gap:7px;align-items:center;padding:18px 0 0}
.filter-pill{display:inline-flex;align-items:center;gap:7px;padding:6px 11px;background:var(--soft);border:1px solid var(--line);color:var(--text);font-size:11px;letter-spacing:.04em;border-radius:var(--radius);transition:.3s var(--ease)}
.filter-pill:hover{border-color:var(--brand);background:#fff}
.filter-pill svg{width:11px;height:11px;color:var(--text-light)}
.filter-pill:hover svg{color:var(--brand)}
.filter-clear{font-size:11px;letter-spacing:.06em;color:var(--text-soft);text-decoration:underline;text-underline-offset:3px;transition:.3s;padding:6px 2px}
.filter-clear:hover{color:var(--brand)}

/* groups */
.filter-group{padding:26px 0;border-bottom:1px solid var(--line)}
.filter-group-title{font-family:var(--font-body);font-size:10.5px;font-weight:400;letter-spacing:.22em;text-transform:uppercase;color:var(--text);margin:0 0 16px}

/* categories */
.filter-cats{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.filter-cats li{margin:0}
.filter-cats a{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:8px 0;font-size:13.5px;color:var(--text-soft);transition:.28s var(--ease);line-height:1.4}
.filter-cats a:hover{color:var(--brand)}
.filter-cats a span{min-width:0}
.filter-cats a em{font-style:normal;font-size:11px;color:var(--text-light);flex:none;letter-spacing:.02em}
.filter-cats a.is-active{color:var(--brand);font-weight:500}
.filter-cats a.is-active em{color:var(--text-soft)}

/* price */
.filter-price{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.filter-price label{display:block;min-width:0}
.filter-price-label{display:block;font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--text-light);margin-bottom:6px}
.filter-price-field{display:flex;align-items:center;border:1px solid var(--secondary);background:#fff;transition:.3s}
.filter-price-field:focus-within{border-color:var(--brand)}
.filter-price-field i{font-style:normal;padding:0 0 0 10px;font-size:12.5px;color:var(--text-light);flex:none}
.filter-price-field input{width:100%;min-width:0;border:none;background:transparent;padding:10px 10px 10px 4px;font-family:var(--font-body);font-size:13.5px;color:var(--brand);outline:none;-moz-appearance:textfield}
.filter-price-field input::-webkit-outer-spin-button,
.filter-price-field input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.filter-hint{font-size:11px;color:var(--text-light);margin-top:10px;letter-spacing:.02em}

/* checkboxes */
.filter-checks{display:flex;flex-direction:column;gap:12px}
.filter-check{display:flex;align-items:center;gap:10px;cursor:pointer;font-size:13.5px;color:var(--text-soft);transition:.28s;line-height:1.3}
.filter-check:hover{color:var(--brand)}
.filter-check input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.filter-check-box{width:17px;height:17px;flex:none;border:1px solid var(--secondary);background:#fff;display:grid;place-items:center;transition:.25s var(--ease);border-radius:2px}
.filter-check-box svg{width:11px;height:11px;color:#fff;opacity:0;transform:scale(.6);transition:.25s var(--ease)}
.filter-check input:checked+.filter-check-box{background:var(--brand);border-color:var(--brand)}
.filter-check input:checked+.filter-check-box svg{opacity:1;transform:none}
.filter-check input:focus-visible+.filter-check-box{outline:2px solid var(--brand);outline-offset:2px}
.filter-check-label{flex:1;min-width:0}
.filter-check em{font-style:normal;font-size:11px;color:var(--text-light);flex:none}

/* apply */
.filter-apply{margin-top:22px;padding:13px 20px;font-size:10.5px}

/* help block */
.filter-help{padding:26px 0 0}
.filter-help p{font-size:12.5px;color:var(--text-soft);line-height:1.7;margin-bottom:10px}
.filter-help-link{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--brand);border-bottom:1px solid var(--secondary);padding-bottom:3px;transition:.3s}
.filter-help-link:hover{border-color:var(--brand)}

/* ---- toolbar: mobile trigger (hidden on desktop) ---- */
.filter-toggle{display:none;align-items:center;gap:8px}
.filter-toggle-count{display:grid;place-items:center;min-width:17px;height:17px;padding:0 5px;border-radius:9px;background:var(--brand);color:#fff;font-size:9.5px;letter-spacing:0;font-weight:500}
.toolbar-left .result-count{letter-spacing:.06em}

/* empty state */
.shop-main .lz-empty{display:flex;flex-direction:column;align-items:center;gap:20px;padding:70px 20px;border:1px solid var(--line);border-radius:var(--radius);background:var(--soft)}
.shop-main .lz-empty p{margin:0}

/* backdrop (mobile drawer only) */
.filters-backdrop{display:none}

/* ---- responsive ---- */
@media(max-width:1180px){
  .shop-layout{grid-template-columns:232px minmax(0,1fr);gap:40px}
}

/* Below this the rail is an off-canvas drawer: a 3-col grid needs the full
   container width, otherwise the cards get too narrow to read. */
@media(max-width:1024px){
  .shop-layout{grid-template-columns:minmax(0,1fr)}
  .filter-toggle{display:inline-flex}

  .shop-sidebar{position:fixed;top:0;left:0;bottom:0;width:min(360px,88vw);z-index:10090;background:var(--bg);
    border-right:1px solid var(--line);box-shadow:0 0 40px rgba(61,54,50,.14);
    transform:translateX(-102%);transition:transform .42s var(--ease);visibility:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch}
  .shop-sidebar.is-open{transform:none;visibility:visible}
  .shop-sidebar-inner{padding:24px 24px 60px}
  .filters-close{display:grid;place-items:center}

  .filters-backdrop{display:block;position:fixed;inset:0;z-index:10080;background:rgba(61,54,50,.42);
    opacity:0;visibility:hidden;transition:opacity .4s var(--ease),visibility .4s}
  .filters-backdrop.is-open{opacity:1;visibility:visible}

  body.lz-filters-open{overflow:hidden}
}

@media(max-width:820px){
  .shop-main .lz-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  /* three classes: beats the unscoped centring rule in mobile-fixes.css */
  .shop-main .toolbar .wrap{justify-content:space-between}
  .shop-crumbs{padding-top:16px}
  .shop-main-head{margin-bottom:16px}
}

@media(max-width:560px){
  .shop-main .lz-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .toolbar-left{gap:12px}
  .filter-toggle{padding:9px 14px}
  .shop-main-head h1{font-size:23px}
}

/* Category description spans the full product column. */
.shop-main-description p{max-width:none;width:100%}
