/* Collection pages: shop, product categories, product search.
   Loaded after home-layout.css (see inc/home-layout.php); header, footer and tokens come from there.
   Refactored according to taste-skill 2.5 anti-slop guidelines (Figma / x.ai level). */

body.acc-collection{background:#f8fafc;color-scheme:light;accent-color:var(--blue)}
body.acc-collection ::selection{background:#d6e6ff;color:var(--ink)}
.acc-collection-main{padding:28px 0 64px}
.acc-collection-main :focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.acc-collection-main svg{display:block;flex:none;fill:none;stroke:currentColor;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round}

/* Breadcrumb */
.cl-crumb{margin-bottom:18px;font-size:12.5px;color:#64748b}
.cl-crumb ol{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0;padding:0;list-style:none}
.cl-crumb li{display:flex;align-items:center;gap:8px}
.cl-crumb a{transition:color .15s}
.cl-crumb a:hover{color:var(--blue)}
.cl-crumb [aria-current]{color:#334155;font-weight:650}
.cl-crumb-sep{width:13px;height:13px;color:#94a3b8}

/* Heading lead - Confident, editorial headline */
.cl-lead{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:32px;align-items:center;margin-bottom:24px}
.cl-title{margin:0;font-size:32px;line-height:1.2;font-weight:780;letter-spacing:-.03em;color:var(--ink);text-wrap:balance}
.cl-sub{margin:8px 0 0;max-width:64ch;font-size:14px;line-height:1.55;color:#64748b}
.cl-trust{display:flex;align-items:center;gap:8px;margin:0;padding:0;list-style:none}
.cl-trust li{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;color:#334155;font-size:12px;font-weight:600;white-space:nowrap}
.cl-trust svg{width:15px;height:15px;color:var(--blue);stroke-width:2.2}

/* Category Quick Chips */
.cl-chips{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:22px}
.cl-chip{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:6px 13px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;color:#475569;font-size:12.5px;font-weight:600;white-space:nowrap;transition:border-color .15s,background-color .15s,color .15s}
.cl-chip em{font-style:normal;font-size:11px;padding:1px 6px;border-radius:99px;background:#e2e8f0;color:#334155;font-weight:600}
.cl-chip:hover{border-color:#cbd5e1;background:#f8fafc;color:var(--ink)}
.cl-chip.is-active{background:#eff6ff;border-color:#bfdbfe;color:var(--blue);font-weight:700}
.cl-chip.is-active em{background:#bfdbfe;color:#1e40af}

/* WooCommerce Notices */
.cl-notices:empty{display:none}
.cl-notices{margin-bottom:16px}
.cl-notices .woocommerce-message,.cl-notices .woocommerce-error,.cl-notices .woocommerce-info{margin:0 0 8px;padding:12px 16px;list-style:none;border:1px solid #d9e8ff;border-radius:10px;background:#f1f6ff;color:#1e3a8a;font-size:13px}
.cl-notices .woocommerce-error{border-color:#fecaca;background:#fef2f2;color:#991b1b}
.cl-notices a{font-weight:700;text-decoration:underline;text-underline-offset:3px}

/* Layout Grid: 240px sidebar + content */
.cl-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:24px;align-items:start}
.cl-catalog{min-width:0}

/* Filter Sidebar */
.cl-side{position:sticky;top:20px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;box-shadow:0 1px 2px rgba(15,23,42,.03);overflow:hidden}
.cl-side-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #f1f5f9}
.cl-side-toggle{display:inline-flex;align-items:center;gap:8px;padding:0;border:0;background:none;color:var(--ink);font-size:14px;font-weight:750;pointer-events:none;cursor:default}
.cl-side-chevron{display:none;width:16px;height:16px;transition:transform .2s}
.cl-side-count{display:inline-grid;place-items:center;min-width:19px;height:19px;padding:0 5px;border-radius:99px;background:var(--blue);color:#fff;font-size:11px;font-weight:700}
.cl-reset{font-size:12px;font-weight:650;color:var(--blue);transition:color .15s}
.cl-reset:hover{color:var(--blue-dark);text-decoration:underline;text-underline-offset:3px}
.cl-group{border-bottom:1px solid #f1f5f9}
.cl-group:last-of-type{border-bottom:0}
.cl-group summary{display:flex;align-items:center;justify-content:space-between;padding:14px 16px 0;list-style:none;cursor:pointer;font-size:13px;font-weight:720;color:var(--ink)}
.cl-group summary::-webkit-details-marker{display:none}
.cl-group summary svg{width:15px;height:15px;color:#64748b;transition:transform .2s}
.cl-group:not([open]) summary{padding-bottom:14px}
.cl-group:not([open]) summary svg{transform:rotate(-90deg)}
.cl-group-body{padding:12px 16px 16px}
.cl-option{display:flex;align-items:center;gap:9px;margin:0 -4px;padding:6px 8px;border-radius:6px;color:#475569;font-size:13px;line-height:1.35;transition:background-color .15s,color .15s}
.cl-option:hover{background:#f8fafc;color:var(--ink)}
.cl-option.is-checked{background:#eff6ff;color:var(--blue);font-weight:650}
.cl-option-checkbox{position:relative;cursor:pointer}
.cl-option-checkbox input[type=checkbox]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;opacity:0}
.cl-option-checkbox input[type=checkbox]:checked ~ .cl-check{background:var(--blue);border-color:var(--blue)}
.cl-option-checkbox input[type=checkbox]:checked ~ .cl-check svg{opacity:1}
.cl-option-checkbox input[type=checkbox]:checked ~ .cl-option-label{font-weight:650;color:var(--ink)}
.cl-option-checkbox input[type=checkbox]:focus-visible ~ .cl-check{outline:2px solid var(--blue);outline-offset:2px}
.cl-check{display:grid;place-items:center;width:16px;height:16px;border:1.5px solid #cbd5e1;border-radius:4px;background:#fff;color:#fff;transition:background-color .15s,border-color .15s}
.cl-check svg{width:11px;height:11px;stroke-width:3;opacity:0}
.cl-option.is-checked .cl-check{background:var(--blue);border-color:var(--blue)}
.cl-option.is-checked .cl-check svg{opacity:1}
.cl-option-label{min-width:0;flex:1}
.cl-option em{font-style:normal;font-size:11.5px;font-weight:500;color:#64748b;font-variant-numeric:tabular-nums}

/* Price Range Slider */
.cl-range{position:relative;height:20px;margin:6px 4px 10px}
.cl-range-track{position:absolute;left:0;right:0;top:8px;height:4px;border-radius:4px;background:#e2e8f0}
.cl-range-fill{position:absolute;top:0;bottom:0;left:var(--lo,0%);right:calc(100% - var(--hi,100%));border-radius:4px;background:var(--blue)}
.cl-range input[type=range]{position:absolute;inset:0;width:100%;height:20px;margin:0;padding:0;background:none;pointer-events:none;-webkit-appearance:none;appearance:none}
.cl-range input[type=range]::-webkit-slider-runnable-track{height:20px;background:transparent}
.cl-range input[type=range]::-moz-range-track{height:20px;background:transparent}
.cl-range input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:16px;height:16px;margin-top:2px;border:2.5px solid var(--blue);border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(15,23,42,.18);pointer-events:auto;cursor:grab}
.cl-range input[type=range]::-moz-range-thumb{width:10px;height:10px;border:2.5px solid var(--blue);border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(15,23,42,.18);pointer-events:auto;cursor:grab}
.cl-range input[type=range]:active::-webkit-slider-thumb{cursor:grabbing}
.cl-range input[type=range]:focus-visible{outline:0}
.cl-range input[type=range]:focus-visible::-webkit-slider-thumb{outline:2px solid var(--blue);outline-offset:2px}
.cl-range-label{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:#64748b;font-variant-numeric:tabular-nums}

/* Duration pills */
.cl-pills{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.cl-pill{position:relative;display:block}
.cl-pill input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.cl-pill span{display:block;padding:7px 0;border:1px solid #e2e8f0;border-radius:6px;background:#f8fafc;color:#475569;font-size:12px;font-weight:600;text-align:center;transition:background-color .15s,border-color .15s,color .15s}
.cl-pill:hover span{border-color:#cbd5e1}
.cl-pill input:checked + span{border-color:#bad4ff;background:#eff6ff;color:var(--blue);font-weight:700}
.cl-pill input:focus-visible + span{outline:2px solid var(--blue);outline-offset:2px}
.cl-apply{width:calc(100% - 32px);margin:0 16px 16px;height:38px;border:0;border-radius:8px;background:var(--ink);color:#fff;font-size:13px;font-weight:700;cursor:pointer}

/* Toolbar */
.cl-top{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px}
.cl-top-meta{display:flex;align-items:baseline;gap:8px;min-width:0}
.cl-list-title{margin:0;font-size:18px;font-weight:780;letter-spacing:-.02em;color:var(--ink);white-space:nowrap}
.cl-count-sub{font-size:12px;color:#64748b}
.cl-tools{display:flex;align-items:center;gap:8px}
.cl-search,.cl-sort{position:relative;display:flex;align-items:center;height:38px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;color:#475569;transition:border-color .15s,box-shadow .15s}
.cl-search{width:220px}
.cl-search svg{position:absolute;left:11px;width:15px;height:15px;color:#64748b;pointer-events:none}
.cl-search input{width:100%;height:100%;padding:0 10px 0 34px;border:0;border-radius:8px;outline:0;background:transparent;color:var(--ink);font-size:13px;caret-color:var(--blue)}
.cl-search input::placeholder{color:#64748b}
.cl-search:focus-within,.cl-sort:focus-within{border-color:#b6d1ff;box-shadow:0 0 0 3px #e9f2ff}
.cl-sort{min-width:140px}
.cl-sort select{width:100%;height:100%;padding:0 30px 0 10px;border:0;border-radius:8px;outline:0;background:transparent;color:#334155;font-size:12.5px;font-weight:550;-webkit-appearance:none;appearance:none;cursor:pointer}
.cl-sort svg{position:absolute;right:10px;width:14px;height:14px;color:#64748b;pointer-events:none}
.cl-view{display:flex;border:1px solid #e2e8f0;border-radius:8px;background:#fff;overflow:hidden}
.cl-view button{display:grid;place-items:center;width:38px;height:36px;border:0;background:transparent;color:#64748b;transition:background-color .15s,color .15s}
.cl-view button + button{border-left:1px solid #f1f5f9}
.cl-view button svg{width:16px;height:16px}
.cl-view button:hover{color:var(--ink)}
.cl-view button.is-active{background:#eff6ff;color:var(--blue)}

/* Active Filter Chips Bar (Shown only when filters active) */
.cl-active-filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:16px;padding:10px 14px;background:#fff;border:1px solid #e2e8f0;border-radius:10px}
.cl-active-label{font-size:12px;font-weight:650;color:#64748b}
.cl-tags{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none}
.cl-tag{display:inline-flex;align-items:center;gap:5px;padding:3px 8px 3px 9px;border:1px solid #bfdbfe;border-radius:6px;background:#eff6ff;color:var(--blue);font-size:11.5px;font-weight:650;transition:background-color .15s}
.cl-tag svg{width:11px;height:11px;stroke-width:2.2}
.cl-tag:hover{background:#dbeafe}
.cl-clear-all{margin-left:auto;font-size:12px;font-weight:650;color:#dc2626;text-decoration:none}
.cl-clear-all:hover{text-decoration:underline}

/* Product grid */
.cl-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:stretch}
.cl-card{position:relative;display:flex;flex-direction:column;min-width:0;padding:10px;border:1px solid #e6ebf2;border-radius:14px;background:#fff;box-shadow:0 1px 3px rgba(15,23,42,.03);overflow:hidden;transition:transform .22s cubic-bezier(0.16, 1, 0.3, 1),box-shadow .22s ease,border-color .22s ease}
.cl-card:hover{transform:translateY(-3px);border-color:#cbd5e1;box-shadow:0 12px 24px -4px rgba(15,23,42,.08),0 4px 8px -2px rgba(15,23,42,.02)}
.cl-card::before{content:"";position:absolute;inset:0;border-radius:inherit;background:radial-gradient(340px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),rgba(23,105,232,.08),transparent 65%);pointer-events:none;opacity:0;transition:opacity .3s ease;z-index:1}
.cl-card:hover::before{opacity:1}
.cl-card-media{position:relative;display:block;flex:none;aspect-ratio:16/10;border-radius:10px;background:#f8fafc;overflow:hidden}
.cl-card-media img{width:100%;height:100%;object-fit:cover;object-position:center;transition:transform .35s cubic-bezier(0.16, 1, 0.3, 1)}
.cl-card-media img[src*="placeholder"]{opacity:.3;filter:grayscale(1);padding:18px;object-fit:contain}
.cl-card:hover .cl-card-media img{transform:scale(1.035)}
.cl-badge-stack{position:absolute;top:8px;left:8px;display:flex;gap:4px;flex-wrap:wrap;z-index:2}
.cl-badge{display:inline-flex;align-items:center;padding:3px 7px;border-radius:6px;font-size:11px;font-weight:750;line-height:1.15;letter-spacing:-.01em}
.cl-badge.is-sale{background:#dc2626;color:#fff}
.cl-badge.is-auth{background:#1d4ed8;color:#fff}
.cl-badge.is-out{background:#475569;color:#fff}

.cl-card-body{display:flex;flex:1;flex-direction:column;padding:10px 2px 2px}
.cl-card-title{margin:0 0 6px;min-height:38px;font-size:14px;line-height:1.35;font-weight:750;letter-spacing:-.015em;color:#111827;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-wrap:pretty}
.cl-card-title a{transition:color .15s}
.cl-card-title a:hover{color:var(--blue)}

/* Feature Chips (Replacing raw clipped text) */
.cl-card-chips{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:8px;min-height:20px}
.cl-card-chip{display:inline-flex;align-items:center;padding:2px 6px;border-radius:4px;background:#f1f5f9;color:#475569;font-size:11px;font-weight:600;line-height:1.25;white-space:nowrap}

/* Pricing */
.cl-card-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 6px;margin-top:auto;min-height:28px;font-variant-numeric:tabular-nums}
.cl-from{font-size:11px;font-weight:500;color:#64748b}
.cl-card-price strong{font-size:15.5px;line-height:1.3;font-weight:850;letter-spacing:-.02em;color:#dc2626}
.cl-old{font-size:12px;color:#64748b;text-decoration:line-through}

/* Proof & SLA Guarantee row */
.cl-card-proof{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:4px 0 9px;padding-top:6px;border-top:1px solid #f1f5f9;font-size:11.5px;color:#64748b}
.cl-card-rating{display:inline-flex;align-items:center;gap:3px;font-size:11px;color:#64748b}
.cl-card-rating strong{color:var(--ink);font-weight:700}
.cl-star{width:12px;height:12px;fill:#f59e0b;stroke:#f59e0b}
.cl-card-guarantee{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:650;color:#15803d}
.cl-guarantee-icon{width:12px;height:12px;stroke:#16a34a;stroke-width:2.2}
.cl-proof-sla{font-size:11px;color:#64748b}

/* Action CTAs: One prominent primary button + sleek quick-cart icon */
.cl-card-actions{display:grid;grid-template-columns:minmax(0,1fr) 40px;gap:6px;margin-top:4px}
.cl-card-actions.is-single{grid-template-columns:1fr}
.cl-btn{display:inline-flex;align-items:center;justify-content:center;border-radius:8px;text-align:center;text-decoration:none;cursor:pointer}
.cl-btn-primary{height:40px;padding:0 12px;background:var(--blue);border:1px solid var(--blue);color:#fff;font-size:12.5px;font-weight:750;gap:6px;transition:background-color .15s,border-color .15s,transform .15s}
.cl-btn-primary:hover{background:var(--blue-dark);border-color:var(--blue-dark);color:#fff;transform:translateY(-1px)}
.cl-btn-arrow{width:14px;height:14px;stroke-width:2.2;transition:transform .18s ease}
.cl-btn-primary:hover .cl-btn-arrow{transform:translateX(2px)}
.cl-btn-cart{height:40px;width:40px;padding:0;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc;color:#334155;display:grid;place-items:center;transition:background-color .15s,border-color .15s,color .15s}
.cl-btn-cart:hover{background:#eff6ff;border-color:#bfdbfe;color:var(--blue)}
.cl-btn-cart svg{width:16px;height:16px}
.cl-btn-outline{height:40px;border:1px solid #e2e8f0;background:#fff;color:#172033;font-size:12.5px;font-weight:700;transition:background-color .15s,border-color .15s}
.cl-btn-outline:hover{background:#f8fafc;border-color:#cbd5e1}

/* Empty state */
.cl-empty{padding:48px 24px;border:1px dashed #d6e0eb;border-radius:12px;background:#fff;text-align:center}
.cl-empty h3{margin:0 0 8px;font-size:18px;font-weight:760;color:var(--ink)}
.cl-empty p{margin:0 auto 18px;max-width:46ch;font-size:13.5px;line-height:1.6;color:#64748b}
.cl-empty .cl-btn{display:inline-flex;width:auto;min-width:170px;padding:0 20px}

/* Pagination */
.cl-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:24px;padding-top:18px;border-top:1px solid #e2e8ef}
.cl-pager-text{font-size:12.5px;color:#64748b}
.cl-pages{display:flex;gap:6px}
.cl-pages .page-numbers{display:grid;place-items:center;min-width:34px;height:34px;padding:0 8px;border:1px solid #dfe6ef;border-radius:8px;background:#fff;color:#475569;font-size:13px;font-variant-numeric:tabular-nums;transition:border-color .15s,background-color .15s,color .15s}
.cl-pages a.page-numbers:hover{border-color:#b6d1ff;background:#f4f8ff;color:var(--blue)}
.cl-pages .page-numbers.current{border-color:var(--blue);background:var(--blue);color:#fff;font-weight:700}
.cl-pages .page-numbers.dots{border-color:transparent;background:none}
.cl-pages .page-numbers.prev,.cl-pages .page-numbers.next{padding:0}
.cl-pages .page-numbers svg{width:16px;height:16px;stroke-width:2.2}

/* List view (wide screens only) */
@media(min-width:721px){
  .cl-grid.is-list{grid-template-columns:1fr;gap:10px}
  .cl-grid.is-list .cl-card{flex-direction:row;gap:16px;align-items:stretch}
  .cl-grid.is-list .cl-card-media{width:240px;aspect-ratio:16/10;align-self:flex-start}
  .cl-grid.is-list .cl-card-body{padding:4px 2px 2px}
  .cl-grid.is-list .cl-card-title{min-height:0}
  .cl-grid.is-list .cl-card-actions{max-width:240px}
}

/* Responsive */
@media(max-width:1200px){
  .cl-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .cl-lead{grid-template-columns:1fr;gap:16px}
}
@media(max-width:1000px){
  .cl-layout{grid-template-columns:210px minmax(0,1fr);gap:16px}
  .cl-tools{flex-wrap:wrap;justify-content:flex-end}
  .cl-search{width:190px}
}
@media(max-width:900px){
  .acc-collection-main{padding-top:20px}
  .cl-layout{grid-template-columns:1fr;gap:14px}
  .cl-side{position:static}
  .cl-side-toggle{pointer-events:auto;cursor:pointer;min-height:40px}
  .cl-side-chevron{display:block}
  .cl-side-toggle[aria-expanded=true] .cl-side-chevron{transform:rotate(180deg)}
  .cl-side-head{padding:6px 16px}
  .cl-side-body{display:none}
  .cl-side.is-open .cl-side-body{display:block}
  .cl-side.is-open .cl-side-head{border-bottom:1px solid #f1f5f9}
  .cl-side:not(.is-open) .cl-side-head{border-bottom:0}
  .cl-chips{flex-wrap:nowrap;overflow-x:auto;margin-inline:-18px;padding:0 18px 6px;scrollbar-width:thin;scrollbar-color:#cbd5e1 transparent;-webkit-overflow-scrolling:touch}
  .cl-chip{flex:none}
  .cl-top{flex-wrap:wrap}
  .cl-tools{width:100%;justify-content:stretch;flex-wrap:nowrap}
  .cl-search{flex:1;width:auto;min-width:0}
  .cl-view{display:none}
}
@media(max-width:720px){
  .cl-title{font-size:26px}
  .cl-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .cl-trust{flex-wrap:wrap;gap:6px}
  .cl-trust li{padding:7px 9px;font-size:11.5px}
  .cl-card-actions{grid-template-columns:minmax(0,1fr) 36px;gap:5px}
  .cl-btn-primary{height:36px;font-size:11.5px;padding:0 8px}
  .cl-btn-cart{height:36px;width:36px}
  .cl-sort{min-width:120px}
  .cl-pager{flex-direction:column-reverse;align-items:flex-start}
}
@media(max-width:450px){
  .cl-grid{gap:8px}
  .cl-card{padding:7px;border-radius:10px}
  .cl-card-media{border-radius:8px}
  .cl-card-body{padding:8px 1px 1px}
  .cl-card-title{min-height:32px;font-size:12.5px;margin-bottom:4px}
  .cl-card-chip{font-size:10px;padding:1px 5px}
  .cl-card-price strong{font-size:13.5px}
  .cl-from{font-size:10.5px}
  .cl-badge{top:6px;left:6px;padding:2px 5px;font-size:10px}
  .cl-btn-primary{height:34px;font-size:11px}
  .cl-btn-cart{height:34px;width:34px}
  .cl-pages{flex-wrap:wrap}
}
@media(pointer:coarse){
  .cl-chip{min-height:38px}
  .cl-option{padding:9px 6px}
}
@media(prefers-reduced-motion:reduce){
  .cl-card,.cl-card-media img,.cl-chip,.cl-btn,.cl-option,.cl-side-chevron,.cl-tag{transition:none!important}
}
