/* QST product category pages (templates/product-category.php) */
.qcat{--ink:#0a0a0b;--paper:#f2f3f5;--line:#e2e4e8;--red:#e8233a;--mute:#6f6b62;font-family:'Montserrat',system-ui,sans-serif;color:var(--ink);background:#fff;line-height:1.55}
.qcat *{box-sizing:border-box}
/* WoodMart wraps the page in a boxed container; this layout is full width (bands edge to edge) */
.qcat{flex:none;width:100vw;max-width:100vw;margin-left:calc(50% - 50vw)}
html:has(.qcat),html:has(.qcat) body{overflow-x:clip}
/* body + :has beats WoodMart's inline phone rule (.woodmart-archive-shop .wd-builder-off, max-width 1024px) that adds 20px above the page */
body .wd-content-layout:has(.qcat){padding-top:0;padding-bottom:0}
.qcat__wrap{max-width:1200px;margin:0 auto;padding:0 20px}

/* hero */
.qcat__hero{background:radial-gradient(60% 120% at 85% 0,rgba(232,35,58,.22),transparent 60%),var(--ink);color:#fff;padding:56px 0 64px}
.qcat__crumbs{display:flex;flex-wrap:wrap;gap:.5rem;font-size:.8rem;color:#a9a49a;margin-bottom:34px}
.qcat__crumbs a{color:#cfcac0;text-decoration:none}.qcat__crumbs a:hover{color:#fff}.qcat__crumbs em{font-style:normal;color:#fff}
.qcat__eyebrow{margin:0 0 .6rem;font-size:.78rem;letter-spacing:.2em;text-transform:uppercase;color:#ff6b78}
.qcat__title{margin:0 0 1rem;font-weight:800;font-size:clamp(2.4rem,6vw,4.6rem);line-height:1;letter-spacing:-.03em;color:#fff}
.qcat__lead{max-width:44rem;margin:0 0 1.8rem;font-size:1.08rem;color:#d6d1c6}
.qcat__actions{display:flex;flex-wrap:wrap;gap:.8rem}
.qcat__btn{display:inline-block;padding:.85rem 1.6rem;border-radius:999px;background:#c6ff3d;color:var(--ink);font-weight:600;font-size:.92rem;text-decoration:none;transition:transform .25s,box-shadow .25s}
.qcat__btn:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(0,0,0,.25);color:var(--ink)}
.qcat__btn--ghost{background:transparent;color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.4)}
.qcat__btn--ghost:hover{background:#fff;color:var(--ink)}

/* sections */
.qcat__sec{padding:64px 0}
.qcat__sec--alt{background:var(--paper)}
.qcat__head{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:28px}
.qcat__head h2{margin:0;font-weight:800;font-size:clamp(1.5rem,3vw,2.1rem);letter-spacing:-.02em;color:var(--ink)}
.qcat__head p{margin:0;color:var(--mute);font-size:.9rem}

/* sub-category cards */
.qcat__cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
/* cards per row from QST Site Settings (2-5); 4 and 5 step down on smaller laptops so the cards do not get too narrow */
.qcat__cards--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.qcat__cards--4{grid-template-columns:repeat(4,minmax(0,1fr))}
.qcat__cards--5{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:1279px){.qcat__cards--5{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1099px){.qcat__cards--4,.qcat__cards--5{grid-template-columns:repeat(3,minmax(0,1fr))}}
.qcat__card{position:relative;display:flex;flex-direction:column;gap:.5rem;min-height:170px;padding:26px 24px;border:1px solid var(--line);border-radius:20px;background:#fff;text-decoration:none;color:var(--ink);overflow:hidden;transition:transform .3s cubic-bezier(.2,.7,.2,1),box-shadow .3s,border-color .3s}
.qcat__card::before{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:var(--red);transform:scaleX(0);transform-origin:left;transition:transform .4s cubic-bezier(.2,.7,.2,1)}
.qcat__card:hover{transform:translateY(-5px);box-shadow:0 18px 40px rgba(10,10,11,.12);border-color:#c9ccd2;color:var(--ink)}
.qcat__card:hover::before{transform:scaleX(1)}
.qcat__num{font-weight:800;font-size:.8rem;letter-spacing:.16em;color:var(--red)}
.qcat__card h3{margin:0;font-weight:800;font-size:1.25rem;letter-spacing:-.01em;line-height:1.2;color:var(--ink)}
.qcat__card p{margin:0;color:var(--mute);font-size:.88rem}
.qcat__go{position:absolute;right:22px;bottom:18px;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--ink);color:#fff;transition:transform .3s,background .3s}
.qcat__card:hover .qcat__go{transform:translateX(4px);background:var(--red)}

/* products grid (WooCommerce loop) */
.qcat .products{margin-top:0}

/* empty state */
.qcat__empty{max-width:46rem;margin:0 auto;padding:44px 32px;text-align:center;border:1px dashed #c9ccd2;border-radius:24px;background:var(--paper)}
.qcat__empty h2{margin:0 0 .7rem;font-weight:800;font-size:1.8rem;color:var(--ink)}
.qcat__empty p{margin:0 0 1.4rem;color:#4b4840}
.qcat__empty .qcat__actions{justify-content:center}

/* facts */
.qcat__facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.qcat__facts div{padding:28px 24px 26px;border-radius:18px;background:#fff;border:1px solid var(--line)}
.qcat__facts div::before{content:"";display:block;width:34px;height:3px;margin-bottom:18px;border-radius:2px;background:var(--red)}
.qcat__facts b{display:block;font-weight:800;font-size:1.15rem;letter-spacing:-.01em;line-height:1.25;color:var(--ink)}
.qcat__facts span{display:block;margin-top:.55rem;color:var(--mute);font-size:.92rem;line-height:1.55}

/* faq + chips */
.qcat__two{display:grid;grid-template-columns:1.5fr 1fr;gap:48px}
.qcat__faq details{border-bottom:1px solid var(--line);padding:16px 0}
.qcat__faq summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:1rem;font-weight:600;color:var(--ink)}
.qcat__faq summary::-webkit-details-marker{display:none}
.qcat__faq summary::after{content:"+";font-size:1.3rem;line-height:1;color:var(--red);transition:transform .3s}
.qcat__faq details[open] summary::after{transform:rotate(45deg)}
.qcat__faq p{margin:.7rem 0 0;color:#4b4840}
.qcat__chips{display:flex;flex-wrap:wrap;gap:.6rem;list-style:none;margin:0;padding:0}
.qcat__chips a{display:inline-block;padding:.55rem 1.1rem;border:1px solid var(--line);border-radius:999px;color:var(--ink);font-size:.88rem;text-decoration:none;transition:background .25s,color .25s,border-color .25s}
.qcat__chips a:hover{background:var(--ink);color:#fff;border-color:var(--ink)}

/* closing band */
.qcat__band{background:var(--ink);color:#fff;text-align:center;padding:72px 0}
.qcat__band h2{margin:0 0 .6rem;font-weight:800;font-size:clamp(1.7rem,4vw,2.6rem);letter-spacing:-.02em;color:#fff}
.qcat__band p{margin:0 auto 1.6rem;max-width:36rem;color:#d6d1c6}
.qcat__band .qcat__actions{justify-content:center}

@media(max-width:899px){
  .qcat__cards.qcat__cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .qcat__facts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .qcat__two{grid-template-columns:1fr;gap:36px}
  .qcat__sec{padding:48px 0}
}
@media(max-width:560px){
  .qcat__cards.qcat__cards{grid-template-columns:1fr}
  .qcat__hero{padding:40px 0 48px}
}
@media(prefers-reduced-motion:reduce){.qcat__card,.qcat__btn,.qcat__go{transition:none}}

/* WoodMart sets its own font on headings: keep the brand font inside these pages */
.qcat h1,.qcat h2,.qcat h3,.qcat summary,.qcat .qcat__btn{font-family:'Montserrat',system-ui,sans-serif}

/* banner image (the category's thumbnail): full width, fades into the dark intro band below it */
.qcat__hero.has-banner{padding:0;background:var(--ink)}
.qcat__banner{position:relative;height:clamp(240px,37vw,600px);overflow:hidden;background:var(--ink)}
.qcat__bannerimg{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 40%}
.qcat__banner::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(10,10,11,.45) 0,rgba(10,10,11,0) 24%,rgba(10,10,11,0) 46%,rgba(10,10,11,.88) 82%,#0a0a0b 100%)}
.has-banner .qcat__herotext{position:relative;z-index:1;margin-top:-130px;padding-top:0;padding-bottom:60px}
.has-banner .qcat__crumbs{margin-bottom:22px}
@media(max-width:899px){.has-banner .qcat__herotext{margin-top:-90px;padding-bottom:48px}}
@media(max-width:560px){.qcat__bannerimg{object-position:72% 40%}.has-banner .qcat__herotext{margin-top:-60px}}

/* banner pages: keep the whole header (banner + intro) well under one screen so the ranges start peeking in on load */
.qcat__banner{height:clamp(200px,min(26vw,50vh),430px)}
.has-banner .qcat__herotext{margin-top:-120px;padding-bottom:40px}
.has-banner .qcat__title{font-size:clamp(2rem,4.4vw,3.5rem);margin-bottom:.7rem}
.has-banner .qcat__lead{font-size:1rem;margin-bottom:1.3rem}
.has-banner .qcat__crumbs{margin-bottom:14px}
.qcat__sec:first-of-type{padding-top:48px}
@media(max-width:899px){.qcat__banner{height:clamp(190px,46vw,320px)}.has-banner .qcat__herotext{margin-top:-80px}}
@media(max-width:560px){.has-banner .qcat__herotext{margin-top:-56px}}

/* buttons: brand red instead of neon lime */
.qcat__btn{background:#e8233a;color:#fff}
.qcat__btn:hover{background:#c91d31;color:#fff;box-shadow:0 10px 24px rgba(232,35,58,.35)}
.qcat__btn--ghost{background:transparent;color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.4)}
.qcat__btn--ghost:hover{background:#fff;color:#0a0a0b;box-shadow:none}

/* sub-category cards with a picture */
.qcat__card{padding:0;min-height:0;gap:0}
.qcat__thumb{position:relative;display:block;aspect-ratio:16/10;overflow:hidden;background:#15151a}
.qcat__thumb--none{background:linear-gradient(135deg,#1b1b20,#0a0a0b)}
.qcat__img{display:block;width:100%;height:100%;object-fit:cover;object-position:var(--op,50%) 50%;transition:transform .7s cubic-bezier(.2,.7,.2,1)}
.qcat__card:hover .qcat__img{transform:scale(1.07)}
.qcat__thumb::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(10,10,11,.28),rgba(10,10,11,0) 38%)}
.qcat__thumb .qcat__num{position:absolute;z-index:1;left:14px;top:12px;padding:.25rem .6rem;border-radius:999px;background:rgba(10,10,11,.7);color:#fff;font-size:.72rem}
.qcat__body{position:relative;display:flex;flex-direction:column;gap:.35rem;padding:18px 22px 24px;min-height:100px}
.qcat__body h3{margin:0;font-weight:800;font-size:1.15rem;letter-spacing:-.01em;line-height:1.2;color:var(--ink)}
.qcat__body p{margin:0;color:var(--mute);font-size:.86rem;padding-right:44px}
.qcat__body .qcat__go{right:20px;bottom:20px}
.qcat__card::before{z-index:2}

/* default picture = a crop of the wide banner: it is drawn wider than the card and shifted by --s (percent of the card width) */
.qcat__img.is-default{position:absolute;top:0;left:calc(var(--s,0) * -1%);width:170%;max-width:none;height:100%;object-fit:cover;object-position:50% 50%}

.qcat__body{min-height:0;justify-content:center;padding:20px 70px 20px 22px}
.qcat__body .qcat__go{top:50%;bottom:auto;transform:translateY(-50%)}
.qcat__card:hover .qcat__body .qcat__go{transform:translate(4px,-50%)}

/* product cards on category pages: no list of categories under the name (a product can sit in many categories) */
.qcat .wd-product .wd-product-cats,.qcat .wd-product .product-cats,.qcat .wd-product .wd-product-brands-links{display:none!important}

/* "Request a quote" can be a <button> (the Quote Cart plugin's add-to-basket button): same look as the links */
button.qcat__btn{border:0;cursor:pointer;font-family:'Montserrat',system-ui,sans-serif;font-weight:600;font-size:.92rem;line-height:1.55;text-transform:none;letter-spacing:normal;min-height:0;height:auto}
/* WoodMart's base.css styles every [type=button] grey: win over it for the quote buttons */
button.qcat__btn.qcat__btn{background:#e8233a;color:#fff;border-radius:999px;padding:.85rem 1.6rem;box-shadow:none}
button.qcat__btn.qcat__btn:hover{background:#c91d31;color:#fff;box-shadow:0 10px 24px rgba(232,35,58,.35)}
/* the Quote Cart's "Add to inquiry" under each product card: outlined pill, red on hover */
.qcat button.ma-enq-add-loop.ma-enq-add-loop{background:transparent;color:#0a0a0b;box-shadow:inset 0 0 0 1px #0a0a0b;border-radius:999px;padding:.5rem 1.1rem;font-family:'Montserrat',system-ui,sans-serif;font-weight:600;text-transform:none;letter-spacing:normal}
.qcat button.ma-enq-add-loop.ma-enq-add-loop:hover{background:#e8233a;color:#fff;box-shadow:inset 0 0 0 1px #e8233a}

/* product cards: a white rounded card like the range cards; name in two lines at most, so every card in a row is the same height and the
   "Add to inquiry" buttons line up at the bottom; "Price on request" is a quiet note, not a red price */
.qcat .wd-product .wd-product-wrapper{height:100%;display:flex;flex-direction:column;background:#fff;border:1px solid #e2e4e8;border-radius:18px;padding:12px 12px 18px;transition:transform .3s cubic-bezier(.2,.7,.2,1),box-shadow .3s}
.qcat .wd-product:hover .wd-product-wrapper{transform:translateY(-4px);box-shadow:0 16px 36px rgba(10,10,11,.1)}
.qcat .wd-product .wd-product-thumb{border-radius:12px;overflow:hidden;margin-bottom:14px}
.qcat .wd-product .wd-product-thumb img{transition:transform .5s cubic-bezier(.2,.7,.2,1)}
.qcat .wd-product:hover .wd-product-thumb img{transform:scale(1.05)}
.qcat .wd-product .wd-entities-title{font-family:'Montserrat',system-ui,sans-serif;font-size:.95rem;font-weight:600;line-height:1.35;color:#0a0a0b;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0 6px 6px}
.qcat .wd-product .wd-entities-title a{color:inherit}
.qcat .wd-product .wd-entities-title a:hover{color:#e8233a}
.qcat .wd-product .price,.qcat .wd-product .price .ma-enq-price-note{font-family:'Montserrat',system-ui,sans-serif;font-size:.8rem;font-weight:500;color:#6f6b62}
.qcat .wd-product .wd-product-wrapper > :last-child{margin-top:auto}
.qcat .wd-product .wd-product-wrapper > :nth-last-child(2){margin-bottom:12px} /* the gap above the button sits outside it, so the button text stays centred */
.qcat .wd-product .qcard__sku{display:block;font-family:'Montserrat',system-ui,sans-serif;font-size:.74rem;font-weight:500;letter-spacing:.04em;color:#6f6b62;margin:0 0 2px}
.qcat .wd-product .qcard__sku b{font-weight:700;color:#0a0a0b}
/* phones (2 narrow cards per row): names often differ only at the end (the colour), so show up to three lines */
@media(max-width:767px){
  .qcat .wd-product .wd-product-wrapper{padding:8px 8px 14px;border-radius:14px}
  .qcat .wd-product .wd-entities-title{font-size:.84rem;-webkit-line-clamp:3;margin:0 2px 4px}
  .qcat button.ma-enq-add-loop.ma-enq-add-loop{padding:.45rem .8rem;font-size:.8rem}
}

/* ---- category (archive) pages: wide layout with breathing room at the sides, sidebar with the category menu ---- */
.qcat--archive .qcat__wrap{max-width:1560px;padding-left:clamp(20px,4vw,64px);padding-right:clamp(20px,4vw,64px)}
.qcat__shop{display:grid;grid-template-columns:270px minmax(0,1fr);gap:clamp(28px,3vw,48px);align-items:start}
.qcat__side{position:sticky;top:100px}
.qcat__sidebox{background:#fff;border:1px solid var(--line);border-radius:20px;padding:6px 0 0}
.qcat__sidebox > summary{display:none}
.qcat__navtitle{margin:0;padding:16px 22px 10px;font-size:.74rem;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--mute)}
.qcat__nav ul{list-style:none;margin:0;padding:0}
.qcat__nav > ul > li{border-top:1px solid var(--line)}
.qcat__nav details > summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px 22px;cursor:pointer}
.qcat__nav details > summary::-webkit-details-marker{display:none}
.qcat__nav details > summary::after{content:"+";font-size:1.15rem;line-height:1;color:var(--red);transition:transform .25s}
.qcat__nav details[open] > summary::after{transform:rotate(45deg)}
.qcat__nav summary a{font-weight:700;font-size:.95rem;color:var(--ink);text-decoration:none}
.qcat__nav summary a:hover,.qcat__nav summary a[aria-current]{color:var(--red)}
.qcat__nav details ul{padding:0 12px 12px}
.qcat__nav details li a{display:flex;justify-content:space-between;gap:8px;padding:8px 10px;border-radius:10px;font-size:.88rem;color:#4b4840;text-decoration:none;transition:background .2s,color .2s}
.qcat__nav details li a:hover{background:var(--paper);color:var(--ink)}
.qcat__nav details li a[aria-current]{background:var(--ink);color:#fff}
.qcat__nav details li a span{font-size:.75rem;color:var(--mute)}
.qcat__nav details li a[aria-current] span{color:#cfcac0}
.qcat__navquote{display:block;margin:0;padding:16px 22px;border-top:1px solid var(--line);border-radius:0 0 20px 20px;background:var(--paper);font-size:.86rem;color:#4b4840;text-decoration:none}
.qcat__navquote b{color:var(--red)}
.qcat__navquote:hover{color:var(--ink)}
.qcat__main .qcat__empty{margin:0;max-width:none}
/* product grid next to the sidebar: 3 columns, 4 on very wide screens */
.qcat__main .wd-products{--wd-col-lg:3!important;--wd-col-md:3!important}
@media(min-width:1500px){.qcat__main .wd-products{--wd-col-lg:4!important}}
@media(max-width:1024px){.qcat__main .wd-products{--wd-col-md:2!important}}
/* tablet/phone: the menu sits above the products as a fold-out box */
@media(max-width:899px){
  .qcat__shop{grid-template-columns:1fr}
  .qcat__side{position:static}
  .qcat__sidebox > summary{display:flex;justify-content:space-between;padding:14px 22px 18px;font-weight:700;cursor:pointer;list-style:none}
  .qcat__sidebox > summary::-webkit-details-marker{display:none}
  .qcat__sidebox > summary::after{content:"+";color:var(--red);font-size:1.2rem;line-height:1}
  .qcat__sidebox[open] > summary::after{content:"\2212"}
  .qcat__sidebox .qcat__navtitle{display:none}
}

/* Hero fades on scroll, content slides up over it (assets/js/category.js adds .qcat-fx; no JS or reduced motion = normal scroll) */
.qcat-fx .qcat__hero{position:sticky;z-index:1}
.qcat-fx .qcat__banner,.qcat-fx .qcat__herotext{opacity:var(--qcat-fade,1);will-change:opacity}
.qcat-fx .qcat__hero.is-faded{pointer-events:none}
.qcat-fx .qcat__over{--qcat-round:0;position:relative;z-index:2;background:#fff;border-radius:calc(var(--qcat-round)*28px) calc(var(--qcat-round)*28px) 0 0;overflow:clip;box-shadow:0 -18px 40px rgba(10,10,11,calc(var(--qcat-round)*.28))}
.qcat__sec,.qcat__band{scroll-margin-top:90px}
@media(max-width:560px){.qcat-fx .qcat__over{border-radius:calc(var(--qcat-round)*20px) calc(var(--qcat-round)*20px) 0 0}}

/* product cards: colour thumbnails under "Price on request" (inc/category.php, assets/js/category.js) */
.qcat .qcard__colours{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px;min-height:42px;margin:10px 6px 0}
.qcat .qcard__colour{width:38px;height:38px;min-height:0;padding:0;border:1px solid #e2e4e8;border-radius:9px;background:#fff;overflow:hidden;cursor:pointer;line-height:0;box-shadow:none;transition:border-color .2s,box-shadow .2s}
.qcat .qcard__colour img{display:block;width:100%;height:100%;object-fit:cover;transform:none!important}
.qcat .qcard__colour:hover{border-color:#0a0a0b}
.qcat .qcard__colour.is-on{border-color:#e8233a;box-shadow:0 0 0 1px #e8233a}
.qcat .qcard__colour:focus-visible{outline:2px solid #0a0a0b;outline-offset:2px}
.qcat .qcard__more{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:9px;background:#f2f3f5;font-size:.74rem;font-weight:600;color:#0a0a0b;text-decoration:none}
.qcat .qcard__more:hover{background:#0a0a0b;color:#fff}
.qcat .qcard__note{position:absolute;left:50%;transform:translateX(-50%);white-space:nowrap;bottom:8px;z-index:3;max-width:calc(100% - 16px);padding:3px 8px;border-radius:999px;background:rgba(10,10,11,.78);color:#fff;font-size:.64rem;font-weight:500;line-height:1.3;pointer-events:none}
.qcat .qcard--picked .wd-product-img-hover{display:none}
@media(max-width:767px){.qcat .qcard__note{bottom:4px;padding:2px 7px;font-size:.58rem}.qcat .qcard__colours{flex-wrap:nowrap;gap:4px;min-height:32px;margin:8px 2px 0}.qcat .qcard__colour,.qcat .qcard__more{flex:0 1 28px;width:auto;height:auto;min-width:0;aspect-ratio:1;border-radius:7px}}

/* no empty space: a card without colour thumbnails has no thumbnail row, names take only the lines they need; the buttons still line up (they sit at the bottom of the card) */
.qcat .qcard__colours:empty{display:none}

/* "Add to inquiry": the label centred in the pill (equal space above and below) */
.qcat button.ma-enq-add-loop.ma-enq-add-loop{display:inline-flex;align-items:center;justify-content:center;line-height:1.2}
