/* ===========================================================================
   Category Grid for Elementor — "Ashcroft 4 Pets" theme
   Extracted from the supplied design's .main root. Fully self-contained:
   Poppins bundled locally, all styles scoped under .cge-theme-ashcroft so
   nothing leaks into (or is clobbered by) the host WordPress theme.
   Brand colours are exposed as CSS variables for the upcoming settings panel.
   =========================================================================== */

/* ---- Bundled Poppins (latin subset, weights 400-800) ---- */
@font-face{font-family:'CGEPoppins';font-style:normal;font-weight:400;font-display:swap;src:url('fonts/poppins-400.woff2') format('woff2')}
@font-face{font-family:'CGEPoppins';font-style:normal;font-weight:500;font-display:swap;src:url('fonts/poppins-500.woff2') format('woff2')}
@font-face{font-family:'CGEPoppins';font-style:normal;font-weight:600;font-display:swap;src:url('fonts/poppins-600.woff2') format('woff2')}
@font-face{font-family:'CGEPoppins';font-style:normal;font-weight:700;font-display:swap;src:url('fonts/poppins-700.woff2') format('woff2')}
@font-face{font-family:'CGEPoppins';font-style:normal;font-weight:800;font-display:swap;src:url('fonts/poppins-800.woff2') format('woff2')}

/* ---- Theme root + design tokens ---- */
.cge-theme-ashcroft{
  --cge-pink:#e82c8a; --cge-pink-d:#c81f7c; --cge-pink-bg:#fde9f3; --cge-pink-br:#f7c9e1;
  --cge-teal:#29a7ca;
  --cge-ink:#1f1f1f; --cge-muted:#6b6b6b; --cge-line:#ececec; --cge-line-2:#f0f0f0;
  --cge-dog:#f4a83a; --cge-dog-ink:#4a2e00; --cge-dog-tint:#f6ead9;
  --cge-cat:#8bbf3c; --cge-cat-ink:#22350a; --cge-cat-tint:#eef4d6;
  --cge-mix:#e82c8a; --cge-mix-ink:#ffffff; --cge-mix-tint:#f2e4ee;
  --cge-card-radius:8px;
  font-family:'CGEPoppins',system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
  color:var(--cge-ink);
  -webkit-font-smoothing:antialiased;
  line-height:1.5;
}
.cge-theme-ashcroft *{box-sizing:border-box}
.cge-theme-ashcroft a{color:inherit;text-decoration:none}
.cge-theme-ashcroft img{max-width:100%}

/* ---- Main container ---- */
.cge-theme-ashcroft .main{position:relative;z-index:1;max-width:1240px;margin:0 auto;padding:8px 4px 16px}
.cge-theme-ashcroft .h1{text-align:center;font-size:38px;font-weight:800;margin:6px 0 30px;color:var(--cge-ink)}
.cge-theme-ashcroft .layout{display:flex;gap:32px;align-items:flex-start}
.cge-theme-ashcroft .layout.m-right{flex-direction:row-reverse}
.cge-theme-ashcroft .grid-wrap{flex:1;min-width:0}

/* ---- Result bar + chips ---- */
.cge-theme-ashcroft .resbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px;flex-wrap:wrap}
.cge-theme-ashcroft .rescount{font-size:14px;color:var(--cge-muted);font-weight:500}
.cge-theme-ashcroft .rescount b{color:var(--cge-ink);font-weight:700}
.cge-theme-ashcroft .chips{display:flex;flex-wrap:wrap;gap:8px}
.cge-theme-ashcroft .fchip{display:inline-flex;align-items:center;gap:7px;background:var(--cge-pink-bg);color:var(--cge-pink-d);border:1px solid var(--cge-pink-br);font-size:12px;font-weight:600;padding:5px 10px;border-radius:20px;cursor:pointer}
.cge-theme-ashcroft .fchip .x{font-weight:700;opacity:.7}
.cge-theme-ashcroft .clearall{font-size:12.5px;font-weight:600;color:var(--cge-teal);cursor:pointer;background:none;border:none;font-family:inherit}

/* ---- Card grid ---- */
.cge-theme-ashcroft .grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.cge-theme-ashcroft .card{border:1px solid var(--cge-line);border-radius:var(--cge-card-radius);overflow:hidden;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.04);display:flex;flex-direction:column;transition:box-shadow .18s,transform .18s;cursor:pointer}
.cge-theme-ashcroft .card:hover{box-shadow:0 10px 26px rgba(0,0,0,.1);transform:translateY(-3px)}
.cge-theme-ashcroft .thumb{height:180px;position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;background-size:8px 8px;background-image:repeating-linear-gradient(135deg,rgba(0,0,0,.05) 0 1px,transparent 1px 9px)}
.cge-theme-ashcroft .thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.cge-theme-ashcroft .tint-dog{background-color:var(--cge-dog-tint)}
.cge-theme-ashcroft .tint-cat{background-color:var(--cge-cat-tint)}
.cge-theme-ashcroft .tint-mix{background-color:var(--cge-mix-tint)}
.cge-theme-ashcroft .pbadge{position:absolute;top:12px;left:12px;z-index:2;font-size:10.5px;font-weight:700;padding:4px 9px;border-radius:20px;letter-spacing:.3px;text-transform:uppercase}
.cge-theme-ashcroft .pb-dog{background:var(--cge-dog);color:var(--cge-dog-ink)}
.cge-theme-ashcroft .pb-cat{background:var(--cge-cat);color:var(--cge-cat-ink)}
.cge-theme-ashcroft .pb-mix{background:var(--cge-mix);color:var(--cge-mix-ink)}
.cge-theme-ashcroft .cbody{padding:20px 20px 6px;flex:1}
.cge-theme-ashcroft .ctitle{font-size:17px;font-weight:700;line-height:1.32;margin:0 0 10px;color:var(--cge-ink)}
.cge-theme-ashcroft .card:hover .ctitle{color:var(--cge-pink)}
.cge-theme-ashcroft .cexc{font-size:13px;line-height:1.6;color:var(--cge-muted);margin:0}
.cge-theme-ashcroft .cmore{padding:10px 20px 16px;font-size:12px;font-weight:700;letter-spacing:.4px;color:var(--cge-pink);text-transform:uppercase}
.cge-theme-ashcroft .cfoot{border-top:1px solid var(--cge-line-2);padding:12px 20px;font-size:12px;color:#9a9a9a}
.cge-theme-ashcroft .empty{border:1.5px dashed #e3e3e3;border-radius:10px;padding:56px 24px;text-align:center;color:#8a8a8a}
.cge-theme-ashcroft .empty .em1{font-size:16px;font-weight:600;color:#5a5a5a;margin-bottom:6px}
.cge-theme-ashcroft .loadmore{display:flex;justify-content:center;margin-top:40px}
.cge-theme-ashcroft .loadmore button{background:linear-gradient(#f0389a,#e01f82);color:#fff;border:none;font-family:inherit;font-weight:600;font-size:15px;padding:13px 40px;border-radius:30px;cursor:pointer;box-shadow:0 6px 16px rgba(232,44,138,.28)}
.cge-theme-ashcroft .loadmore[hidden]{display:none}
/* ---- Numbered pagination ---- */
.cge-theme-ashcroft .pager{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px;margin-top:40px}
.cge-theme-ashcroft .pager[hidden]{display:none}
.cge-theme-ashcroft .pgnums{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.cge-theme-ashcroft .pgbtn{min-width:40px;height:40px;padding:0 12px;display:inline-flex;align-items:center;justify-content:center;gap:5px;border:1.5px solid var(--cge-line);background:#fff;color:var(--cge-ink);font-family:inherit;font-size:14px;font-weight:600;border-radius:10px;cursor:pointer;transition:border-color .13s,color .13s,background-color .13s}
.cge-theme-ashcroft .pgbtn:hover:not(:disabled):not(.on){border-color:var(--cge-teal);color:var(--cge-teal)}
.cge-theme-ashcroft .pgnum.on{background:var(--cge-pink);border-color:var(--cge-pink);color:#fff}
.cge-theme-ashcroft .pgbtn:disabled{opacity:.45;cursor:default}
.cge-theme-ashcroft .pgellipsis{min-width:24px;text-align:center;color:var(--cge-muted);font-weight:700}

/* ---- Filter rail ---- */
.cge-theme-ashcroft .filters{width:270px;flex:none;background:#fff;border:1px solid var(--cge-line);border-radius:12px;box-shadow:0 2px 14px rgba(0,0,0,.05);overflow:hidden;align-self:flex-start;position:sticky;top:16px}
.cge-theme-ashcroft .fhead{background:var(--cge-teal);color:#fff;padding:15px 18px;font-weight:700;font-size:15px;display:flex;align-items:center;justify-content:space-between;gap:9px}
.cge-theme-ashcroft .fheadlabel{display:flex;align-items:center;gap:9px}
.cge-theme-ashcroft .fheadicon{display:inline-flex;align-items:center;justify-content:center;line-height:1;flex:none;vertical-align:middle}
.cge-theme-ashcroft svg.fheadicon,.cge-theme-ashcroft .fheadicon svg,.cge-theme-ashcroft img.fheadicon,.cge-theme-ashcroft .fheadicon img{width:16px;height:16px;display:inline-block;fill:currentColor}
.cge-theme-ashcroft i.fheadicon,.cge-theme-ashcroft .fheadicon i{font-size:15px;line-height:1;color:currentColor}
.cge-theme-ashcroft .fclose{display:none;background:rgba(255,255,255,.22);border:none;color:#fff;width:30px;height:30px;border-radius:50%;font-size:13px;cursor:pointer;font-family:inherit;align-items:center;justify-content:center}
.cge-theme-ashcroft .fsec{padding:16px 18px;border-bottom:1px solid #f2f2f2}
.cge-theme-ashcroft .fsec:last-child{border-bottom:none}
.cge-theme-ashcroft .ftitle{font-size:11px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:#a0a0a0;margin:0 0 12px}
.cge-theme-ashcroft .fsearch{display:flex;align-items:center;border:1.5px solid var(--cge-line);border-radius:9px;padding:9px 12px;gap:8px}
.cge-theme-ashcroft .fsearch .mag{color:var(--cge-pink);font-weight:700;font-size:13px}
.cge-theme-ashcroft .fsearch input{border:none;outline:none;font-family:inherit;font-size:13.5px;width:100%;color:var(--cge-ink);background:transparent}
.cge-theme-ashcroft .fsearch input::placeholder{color:#b5b5b5}
.cge-theme-ashcroft .pet-toggle{display:flex;background:#f4f4f4;border-radius:9px;padding:3px;gap:3px}
.cge-theme-ashcroft .pet-toggle button{flex:1;border:none;background:none;font-family:inherit;font-size:13px;font-weight:600;color:#7a7a7a;padding:8px 0;border-radius:7px;cursor:pointer;transition:.15s}
.cge-theme-ashcroft .pet-toggle button.on{background:#fff;color:var(--cge-pink);box-shadow:0 1px 4px rgba(0,0,0,.12)}
.cge-theme-ashcroft .catlist{display:flex;flex-direction:column;gap:2px}
.cge-theme-ashcroft .cat-item{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;border-radius:8px;cursor:pointer;font-size:13.5px;font-weight:500;color:#3a3a3a;transition:.13s}
.cge-theme-ashcroft .cat-item:hover{background:#f6f6f6}
.cge-theme-ashcroft .cat-l1{margin-left:14px;font-size:13px;color:#5c5c5c;font-weight:400}
.cge-theme-ashcroft .cat-l1 .cname::before{content:"\203A";margin-right:7px;color:#c4c4c4}
.cge-theme-ashcroft .cat-active{background:var(--cge-pink-bg);color:var(--cge-pink-d);font-weight:700}
.cge-theme-ashcroft .cat-active:hover{background:var(--cge-pink-bg)}
.cge-theme-ashcroft .cat-item .cnt{font-size:11px;font-weight:600;color:#b0b0b0;background:#f3f3f3;padding:2px 8px;border-radius:20px;min-width:22px;text-align:center}
.cge-theme-ashcroft .cat-active .cnt{background:var(--cge-pink-br);color:var(--cge-pink-d)}
.cge-theme-ashcroft .tags{display:flex;flex-wrap:wrap;gap:7px}
.cge-theme-ashcroft .tag{font-size:12px;font-weight:600;padding:6px 11px;border-radius:20px;border:1.5px solid var(--cge-line);color:var(--cge-muted);cursor:pointer;transition:.13s;background:#fff}
.cge-theme-ashcroft .tag:hover{border-color:#d8d8d8}
.cge-theme-ashcroft .tag.on{background:var(--cge-pink);border-color:var(--cge-pink);color:#fff}
.cge-theme-ashcroft .sortsel{display:flex;flex-direction:column;gap:6px}
.cge-theme-ashcroft .sortopt{display:flex;align-items:center;gap:9px;font-size:13.5px;color:#3a3a3a;cursor:pointer;padding:5px 2px}
.cge-theme-ashcroft .sortopt .dot{width:16px;height:16px;border-radius:50%;border:2px solid #d0d0d0;flex:none;position:relative}
.cge-theme-ashcroft .sortopt.on .dot{border-color:var(--cge-pink)}
.cge-theme-ashcroft .sortopt.on .dot::after{content:"";position:absolute;inset:3px;border-radius:50%;background:var(--cge-pink)}
.cge-theme-ashcroft .sortopt.on{color:var(--cge-ink);font-weight:600}

/* ---- Drawer bits (hidden on desktop) ---- */
.cge-theme-ashcroft .scrim{display:none;position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:99998;opacity:0;pointer-events:none;transition:opacity .25s}
.cge-theme-ashcroft .filterbar{display:none;align-items:center;gap:12px;margin-bottom:18px}
.cge-theme-ashcroft .fbtn{display:inline-flex;align-items:center;gap:9px;background:var(--cge-teal);color:#fff;border:none;font-family:inherit;font-weight:600;font-size:14px;padding:12px 18px;border-radius:11px;cursor:pointer;box-shadow:0 5px 14px rgba(41,167,202,.26)}
.cge-theme-ashcroft .fbtncount{background:var(--cge-pink);color:#fff;font-size:11px;font-weight:700;min-width:20px;height:20px;border-radius:50%;display:none;align-items:center;justify-content:center;padding:0 5px}
.cge-theme-ashcroft .fbtncount.on{display:inline-flex}
.cge-theme-ashcroft .fbquick{margin-left:auto;font-size:13px;color:var(--cge-muted);font-weight:500}
.cge-theme-ashcroft .fapply{display:none;padding:14px 16px;border-top:1px solid var(--cge-line-2);gap:10px;background:#fff}
.cge-theme-ashcroft .applybtn{flex:1;background:linear-gradient(#f0389a,#e01f82);color:#fff;border:none;font-family:inherit;font-weight:600;font-size:14px;padding:13px;border-radius:11px;cursor:pointer}

/* ---- Top-bar placement (optional future layout) ---- */
.cge-theme-ashcroft .layout.m-top{flex-direction:column}
.cge-theme-ashcroft .m-top .filters{width:100%;position:static;display:flex;flex-wrap:wrap;align-items:flex-end;gap:0;padding:0}
.cge-theme-ashcroft .m-top .fhead{display:none}
.cge-theme-ashcroft .m-top .fsec{border-bottom:none;border-right:1px solid #f2f2f2;flex:1;min-width:180px}
.cge-theme-ashcroft .m-top .catlist{flex-direction:row;flex-wrap:wrap;gap:7px}
.cge-theme-ashcroft .m-top .cat-item{background:#f6f6f6;padding:6px 12px}
.cge-theme-ashcroft .m-top .cat-l1{margin-left:0}
.cge-theme-ashcroft .m-top .cat-item .cnt{display:none}
.cge-theme-ashcroft .m-top .fsec-cats{flex-basis:100%;border-right:none}

/* ===========================================================================
   RESPONSIVE — the design's Tablet/Mobile viewports, driven by real media
   queries (the preview's viewport selector is intentionally not reproduced).
   =========================================================================== */
@media (max-width:1024px){
  .cge-theme-ashcroft .grid{grid-template-columns:repeat(2,1fr)}
  .cge-theme-ashcroft .h1{font-size:32px}
  .cge-theme-ashcroft .filterbar{display:flex}
  .cge-theme-ashcroft .scrim{display:block}
  .cge-theme-ashcroft .filters{position:fixed;top:0;left:0;height:100%;width:340px;max-width:87%;border-radius:0;border:none;z-index:99999;transform:translateX(-100%);transition:transform .3s cubic-bezier(.4,0,.2,1);display:flex;flex-direction:column;box-shadow:0 0 46px rgba(0,0,0,.32);overflow-y:auto}
  .cge-theme-ashcroft .fhead{position:sticky;top:0;z-index:2}
  .cge-theme-ashcroft .fclose{display:flex}
  .cge-theme-ashcroft .fapply{display:flex;position:sticky;bottom:0}
  .cge-theme-ashcroft.cge-open .filters{transform:none}
  .cge-theme-ashcroft.cge-open .scrim{opacity:1;pointer-events:auto}
}
@media (max-width:600px){
  .cge-theme-ashcroft .grid{grid-template-columns:1fr}
  .cge-theme-ashcroft .h1{font-size:26px;margin-bottom:22px}
}
/* Respect reduced-motion preferences */
@media (prefers-reduced-motion:reduce){
  .cge-theme-ashcroft .card,
  .cge-theme-ashcroft .filters,
  .cge-theme-ashcroft .scrim{transition:none}
}
