/* Collection template. Grid: four columns with a big picture on the right (Typology); on phones the picture comes after two products.
   View button (?v=b): huge tiles with the name inside. Top image: Aesop's thin band by default, Sunnies' image under the menu with ?top=b.
   The earlier three-column version is kept as coleccion-v1. */
.col{padding-top:var(--hd)}

/* heading and tabs */
/* Aesop: a thin band, the product on the right, the title on its ground colour */
.col-head{position:relative;overflow:hidden;background:var(--tone,#111110);color:var(--on-dark)}
.ch-img{position:absolute;top:-2px;right:clamp(0px,9vw,180px);height:calc(100% + 2px);width:auto;max-width:none;aspect-ratio:1.42;object-fit:cover;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 24%,#000 80%,transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 24%,#000 80%,transparent 100%)}
.ch-txt{position:relative;z-index:1;display:flex;flex-direction:column;justify-content:center;gap:14px;min-height:clamp(210px,22vw,340px);max-width:58%;padding:clamp(20px,2.4vw,36px) var(--pad)}
.col-head h1{font-size:clamp(56px,7.4vw,124px);line-height:.96;letter-spacing:-.01em;color:inherit;text-wrap:balance}
.col-head .crumbs{color:#e6e4dd}
.col-head h1.long{font-size:clamp(44px,5.6vw,92px)}
.col-head p{margin:0;max-width:40ch;color:#e6e4dd}
/* Sunnies: the image starts at the top and the menu sits on it, like the home hero */
.col.top-b{padding-top:0}
.top-b .col-head{background:#111110}
.top-b .ch-img{inset:-2px 0 auto 0;width:100%;height:calc(100% + 2px);aspect-ratio:auto;-webkit-mask-image:none;mask-image:none}
.top-b .col-head::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(10,9,8,.5) 0,rgba(10,9,8,0) 26%,rgba(10,9,8,0) 48%,rgba(10,9,8,.66) 100%);pointer-events:none}
/* the jugs fill this picture and the white text lands on their pale labels */
.top-b .col-head:has(.ch-img[src*="131-pool-gallons"])::after{background:linear-gradient(180deg,rgba(10,9,8,.5) 0,rgba(10,9,8,.08) 26%,rgba(10,9,8,.3) 48%,rgba(10,9,8,.86) 100%)}
.top-b .crumbs{grid-column:1/-1;align-self:end}
.top-b .ch-txt{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,36ch);align-items:end;gap:16px var(--pad);max-width:none;min-height:clamp(360px,34vw,560px);padding-top:calc(var(--hd) + 24px)}
.col-tabs{display:flex;gap:clamp(4px,1.2vw,20px);overflow-x:auto;padding:0 calc(var(--pad) - 8px);scrollbar-width:none;border-bottom:1px solid var(--line)}
.col-tabs::-webkit-scrollbar{display:none}
.col-tabs a{flex:none;display:flex;align-items:center;min-height:52px;padding:0 8px;color:var(--muted);text-decoration:none;font-weight:500;transition:color .2s}
.col-tabs a:hover{color:var(--ink)}
.col-tabs a[aria-current]{color:var(--ink);box-shadow:inset 0 -3px 0 var(--calendula)}

/* sticky bar: quick chips left, filters, count and sort right */
.col-bar{position:sticky;top:var(--hd);z-index:15;display:flex;align-items:center;justify-content:space-between;gap:12px 24px;padding:10px var(--pad);background:var(--bg);border-bottom:1px solid var(--line)}
.bar-quick{display:flex;gap:8px;min-width:0;overflow-x:auto;scrollbar-width:none}
.bar-quick::-webkit-scrollbar{display:none}
.bar-quick[hidden]{display:none}
.bar-tools{display:flex;align-items:center;gap:clamp(12px,1.6vw,24px);flex:none;margin-left:auto}
.fchip{flex:none;min-height:44px;padding:0 16px;border:1px solid var(--line-strong);background:none;color:inherit;font:inherit;font-size:18px;cursor:pointer;transition:background .2s,color .2s,border-color .2s}
.fchip:hover{border-color:var(--ink)}
.fchip[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:var(--on-dark);box-shadow:inset 0 -3px 0 var(--calendula)}
#col-open{min-height:44px;padding:0 16px;border:1px solid var(--ink);background:none;color:inherit;font:inherit;font-size:18px;font-weight:500;cursor:pointer}
#col-open[hidden]{display:none}
#col-open[aria-expanded="true"]{background:var(--ink);color:var(--on-dark)}
#col-count{color:var(--muted);white-space:nowrap}
.col-clear{min-height:44px;padding:0;border:0;background:none;color:inherit;font:inherit;font-size:18px;text-decoration:underline;text-underline-offset:4px;cursor:pointer;white-space:nowrap}
.col-clear:hover{text-decoration-color:var(--calendula);text-decoration-thickness:2px}
.col-clear[hidden]{display:none}
/* view button: the grid, or big tiles */
.vsw{display:flex;gap:2px}
.viewbtn{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid transparent;background:none;color:var(--muted);cursor:pointer;transition:color .2s,border-color .2s}
.viewbtn:hover{color:var(--ink)}
.viewbtn[aria-pressed="true"]{color:var(--ink);border-color:var(--line-strong)}
.viewbtn svg{display:block;width:22px;height:22px}
.col-sort :is(select,.dd-btn){min-height:44px;padding:0 34px 0 12px;border:1px solid var(--line-strong);border-radius:0;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23111110' stroke-width='1.6'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E") right 12px center/12px 8px no-repeat;color:inherit;font:inherit;font-size:18px;appearance:none;-webkit-appearance:none;cursor:pointer}

/* filter panel */
.col-panel{position:absolute;left:0;right:0;top:100%;display:grid;gap:clamp(16px,2vw,28px);padding:clamp(20px,2.4vw,32px) var(--pad);background:var(--bg);border-bottom:1px solid var(--line-strong);box-shadow:0 18px 30px -18px rgba(17,17,16,.25);animation:col-drop .3s cubic-bezier(.2,.8,.2,1)}
.col-panel[hidden]{display:none}
@keyframes col-drop{from{opacity:0;translate:0 -10px}to{opacity:1;translate:0 0}}
.col-groups{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:clamp(20px,3vw,48px)}
.fgroup .fg-t{font:500 21px/1.2 var(--d);margin:0 0 10px}
.fchips{display:flex;flex-wrap:wrap;gap:8px}
.col-panel-foot{display:none;align-items:center;gap:20px}
#col-see,#col-close{display:none}

/* grid */
.col-note{margin:18px var(--pad) 0;color:var(--muted)}
.col-note[hidden]{display:none}
.col-note a{color:var(--ink)}
.col-grid{display:grid;grid-auto-flow:dense;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(28px,2.6vw,40px) clamp(10px,1vw,16px);padding:clamp(20px,2.4vw,36px) var(--pad) clamp(48px,6vw,96px)}
.col-grid.enter .pc,.col-grid.enter .pc-photo{animation:pc-in .6s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--i,0)*45ms)}
@keyframes pc-in{from{opacity:0;translate:0 14px}to{opacity:1;translate:0 0}}
::view-transition-group(*){animation-duration:.45s;animation-timing-function:cubic-bezier(.2,.8,.2,1)}
.pc-photo{position:relative;margin:0;min-width:0;overflow:hidden;background:var(--panel)}
/* the big picture, on the right across two rows of products */
.pc-big{grid-column:3/5;grid-row:1/3}
/* the picture that closes the last row; how many columns it takes is set per product count (coleccion.js) */
@media (min-width:1280px){
  .col:not(.col-b) .pc-fill{grid-column:span var(--f4)}
  .col:not(.col-b) .pc-fill[data-f4="0"]{display:none}
}
@media (min-width:1101px) and (max-width:1279px){
  .col:not(.col-b) .col-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .col:not(.col-b) .pc-big{grid-column:2/4}
  .col:not(.col-b) .pc-fill{grid-column:span var(--f3)}
  .col:not(.col-b) .pc-fill[data-f3="0"]{display:none}
}
.col-b .pc-fill[data-fb="0"]{display:none}
.pc-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.pc{display:flex;flex-direction:column;min-width:0}
/* the whole product in a squarish box: name, picture and text (Rhode). Only the buying part can sit outside. */
.pc-box{position:relative;display:flex;flex-direction:column;flex:1;aspect-ratio:8/9;padding:clamp(12px,1.2vw,18px);background:#e2ddd7;transition:color .4s}
.art{position:relative;display:block;flex:1;min-height:clamp(120px,14vw,240px);margin:6px 0 4px;overflow:hidden;background:#e2ddd7;-webkit-mask-image:linear-gradient(180deg,transparent 0,#000 9%,#000 91%,transparent 100%);mask-image:linear-gradient(180deg,transparent 0,#000 9%,#000 91%,transparent 100%)}
.pc-box>h3,.pc-box>.line,.pc-box>.meta{position:relative;z-index:2}
/* hover: the next picture fills the box, with more life, and the text stays on it. Phones keep the first one. */
.pc-box .hv{position:absolute;inset:0;z-index:1;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .5s cubic-bezier(.2,.7,.2,1);pointer-events:none}
.pc-box::after{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(10,9,8,.55) 0,rgba(10,9,8,0) 30%,rgba(10,9,8,0) 50%,rgba(10,9,8,.72) 100%);opacity:0;transition:opacity .5s;pointer-events:none}
@media (hover:hover){
  .pc:hover .hv.ready,.pc:has(h3 a:focus-visible) .hv.ready,.pc:hover:has(.hv.ready) .pc-box::after,.pc:has(h3 a:focus-visible):has(.hv.ready) .pc-box::after{opacity:1}
  .pc:hover:has(.hv.ready) .pc-box,.pc:hover:has(.hv.ready) .line,.pc:hover:has(.hv.ready) .stars,.pc:hover:has(.hv.ready) .stars .count{color:var(--on-dark)}
}
.l-short{display:none}

/* buying, option a: a black bar joined to the box, with the size in it */
.bar{display:flex;background:var(--ink)}
.bar .add{flex:1;min-width:0;min-height:48px;width:auto;margin:0;padding:0 8px;border:0}
.bar .add:hover{background:#2b2a28;color:var(--on-dark)}
.bar:has(.add:disabled){background:none}
.sz-menu{flex:none;min-height:48px;padding:0 30px 0 14px;border:0;border-right:1px solid rgba(244,243,239,.3);border-radius:0;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23f4f3ef' stroke-width='1.6'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E") right 10px center/11px 7px no-repeat;box-shadow:inset 0 -3px 0 var(--calendula);color:var(--on-dark);font:inherit;font-size:18px;appearance:none;-webkit-appearance:none;cursor:pointer}
.sz-menu option{background:#fff;color:#111110}
/* buying, option b: a round + inside the box; sizes open over the bottom of the box */
.cta-b .pc-box>.meta{min-height:44px;padding-right:52px}
.pc-price{font-weight:600}
.plus{position:absolute;z-index:4;right:clamp(8px,.8vw,12px);bottom:clamp(8px,.8vw,12px);width:44px;height:44px;padding:0;border:0;border-radius:50%;background:var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath fill='%23f4f3ef' d='M9 14h12v2H9zM14 9h2v12h-2z'/%3E%3C/svg%3E") center/100% no-repeat;cursor:pointer;transition:scale .2s,rotate .25s}
.plus:hover{scale:1.08}
.pc.open .plus{top:clamp(8px,.8vw,12px);bottom:auto;rotate:45deg}
.pick{position:absolute;z-index:3;left:0;right:0;bottom:0;display:none;flex-direction:column;gap:8px;padding:12px;background:var(--bg);box-shadow:0 -1px 0 var(--line-strong)}
.pc.open .pick{display:flex}
.pick .add{margin:0}
/* buying, option c: size buttons and an outlined button under the box */
.pc-cta{display:flex;flex-direction:column;gap:6px;padding-top:8px}
.pc-cta .szs{padding:0}
.pc-cta .add{margin:0;background:none;color:var(--ink)}
.pc-cta .add:hover{background:var(--ink);color:var(--on-dark)}
.art .full{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:scale .9s cubic-bezier(.2,.7,.2,1)}
/* the real product photos, same as the home page: their surface melts into the box, so each product keeps its own shadow */
.stage{position:absolute;inset:-8% -4%;display:flex;align-items:center;justify-content:center;transition:scale .9s cubic-bezier(.2,.7,.2,1);transform-origin:50% 60%}
.pack{display:block;flex:none;width:auto;max-width:none;height:calc(100%*var(--z,1.1));-webkit-mask-image:radial-gradient(closest-side,#000 50%,transparent 94%);mask-image:radial-gradient(closest-side,#000 50%,transparent 94%)}
/* white-ground photos stay crisp on a white box; blending them into the box colour would also blend away pale packaging */
.pc.on-white .pc-box{background:#fff}
.pc.on-white .art{background:none;-webkit-mask-image:none;mask-image:none}
.pc.on-white .stage{inset:0}
.pc.on-white .pack{height:100%;-webkit-mask-image:none;mask-image:none}
/* The new main pictures (catalog.js MAIN, 2026-12-03): each is its own light grey card, so the box takes that grey and shows the picture whole, with no fade. */
.pc:has(.pack.main) .pc-box,.pc:has(.pack.main) .art{background:#f1f1ef}
.pc:has(.pack.main) .art{-webkit-mask-image:none;mask-image:none}
.stage:has(.pack.main){inset:0}
.pack.main{height:100%;-webkit-mask-image:none;mask-image:none}
/* one white photo among the AI ones in a kit's row takes the box colour */
.stage.many .pack.white{mix-blend-mode:multiply}
.stage.many .pack{height:auto;width:calc(100%/var(--n)*var(--w));margin-left:calc(100%/var(--n)*(1 - var(--w)));scale:calc(var(--z,1.1)*.92)}
.stage.many .pack:first-child{margin-left:0}
.stage[data-n="2"]{--n:2;--w:1.1}
.stage[data-n="3"]{--n:3;--w:1.7}
.stage[data-n="4"]{--n:4;--w:2.2}
.stage[data-n="7"]{--n:7;--w:3.4}
.pc:hover .stage,.pc:hover .art .full{scale:1.04}
.soon{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:var(--muted)}
.soon img{width:26%;opacity:.3}
.soon{padding-top:4px}
.pc h3{font:500 clamp(23px,1.8vw,28px)/1.12 var(--d);letter-spacing:0}
.pc h3 a{color:inherit;text-decoration:none}
.pc h3 a:hover{text-decoration:underline;text-decoration-color:var(--calendula);text-decoration-thickness:2px;text-underline-offset:4px}
.pc .line{margin:0;color:var(--muted);font-size:18px;line-height:1.35;transition:color .4s}
.pc .meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:2px 12px;padding-top:6px}
.pc .stars,.pc .stars .count{transition:color .4s}
.szs{display:flex;flex-wrap:wrap;gap:6px;padding-top:6px}
.sz{min-width:60px;min-height:44px;padding:0 12px;border:1px solid var(--line-strong);background:none;color:inherit;font:inherit;font-size:18px;cursor:pointer;transition:background .2s,color .2s,border-color .2s}
.sz:hover{border-color:var(--ink)}
.sz[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:var(--on-dark);box-shadow:inset 0 -3px 0 var(--calendula)}
.pc .add{width:100%;white-space:nowrap}
.pc .add:disabled,.pc .add:disabled:hover{background:none;border-color:var(--line-strong);color:var(--muted);cursor:not-allowed}
.pc.out .art{opacity:.62}
.col-empty{padding:clamp(40px,6vw,96px) var(--pad);text-align:left}
.col-empty[hidden]{display:none}
.col-empty p{margin:0 0 16px;font:500 clamp(24px,2.4vw,36px)/1.3 var(--d);max-width:24ch}
.col-empty div{display:flex;flex-wrap:wrap;align-items:center;gap:20px}

/* "where do I start": analysis and Kit Prueba side by side */
.col-band{display:grid;grid-template-columns:1fr 1fr;margin:0 var(--pad) clamp(56px,7vw,112px)}
.col-band[hidden]{display:none}
.col-band>div{display:flex;flex-direction:column;align-items:flex-start;gap:14px;padding:clamp(24px,3.4vw,56px)}
.col-band .b-ink{background:var(--ink);color:var(--on-dark)}
.col-band .b-ink p{color:#d6d4cd}
.col-band h2{font-size:clamp(32px,3.6vw,60px)}
.col-band p{margin:0;max-width:40ch}
.col-band .btn{margin-top:auto}
.col-band .b-kit{position:relative;background:var(--panel);padding-left:calc(32% + clamp(16px,2vw,32px))}
.col-band .b-kit img{position:absolute;left:0;top:0;width:32%;height:100%;object-fit:cover}
.col-band .b-kit h3{font:500 clamp(23px,2vw,30px)/1.12 var(--d)}

/* B: huge tiles, the name inside */
.col-b .col-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.col-b .pc-big{grid-column:auto;grid-row:auto;aspect-ratio:auto}
.col-b .pc-box{padding:clamp(16px,2vw,32px)}
.col-b .pc h3{font-size:clamp(36px,3.8vw,68px);line-height:1}
.col-b .art{margin-top:12px}

@media (max-width:1100px){
  .col-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pc-big{grid-column:1/-1;grid-row:auto;aspect-ratio:16/10}
  .col:not(.col-b) .pc-fill[data-f2="0"]{display:none}
}
@media (max-width:760px){
  /* the title sits beside the product; the sentence goes under the band */
  .col-head{--band:172px}
  .ch-img{top:-2px;right:0;bottom:auto;height:calc(var(--band) + 2px);-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 28%);mask-image:linear-gradient(90deg,transparent 0,#000 28%)}
  .ch-txt{display:block;max-width:none;min-height:0;padding:0}
  /* on phones the path sits at the top of the band */
  .col-head .crumbs{position:absolute;z-index:2;top:6px;left:var(--pad)}
  .top-b .col-head .crumbs{top:calc(var(--hd) + 6px);color:var(--on-dark)}
  .col-head h1{display:flex;align-items:center;max-width:58%;min-height:var(--band);padding:40px 0 0 var(--pad);font-size:clamp(40px,12vw,56px)}
  .col-head .crumbs{color:#e6e4dd}
.col-head h1.long{font-size:clamp(32px,9vw,42px)}
  .col-head p{max-width:none;padding:12px var(--pad) 16px;font-size:19px}
  .top-b .col-head{--band:clamp(300px,84vw,440px);background:var(--bg);color:var(--ink)}
  .top-b .ch-img{inset:-2px 0 auto 0;width:100%;height:calc(var(--band) + 2px)}
  .top-b .col-head::after{inset:0 0 auto 0;height:var(--band)}
  .top-b .ch-txt{display:block;min-height:0;padding:0}
  .top-b .col-head h1{align-items:flex-end;max-width:none;padding:0 var(--pad) 14px;color:var(--on-dark);position:relative;z-index:1}
  .top-b .col-head p{color:var(--muted)}
  /* the picture comes after two products, full width (Typology) */
  .pc-big{aspect-ratio:4/5}
  .col-b .pc-big{aspect-ratio:4/5}
  .col-b .pc-fill{display:none}
  /* only the view you can switch to; the row has no room for both */
  .viewbtn[aria-pressed="true"]{display:none}
  .col-tabs a{min-height:48px}
  /* the chips scroll away; the tools row stays */
  .col-bar{display:contents}
  .bar-quick{padding:12px var(--pad) 4px}
  .bar-tools{position:sticky;top:var(--hd);z-index:15;display:flex;justify-content:space-between;margin:0;padding:8px var(--pad);background:var(--bg);border-bottom:1px solid var(--line);gap:8px}
  .bar-tools .col-clear{display:none}
  #col-count{order:3;display:none}
  .col-sort :is(select,.dd-btn){max-width:170px}
  .fchip,#col-open,.col-clear,.col-sort :is(select,.dd-btn),.sz{font-size:18px}
  .col-grid{gap:24px 12px;padding-top:16px}
  .pc h3{font-size:21px}
  .pc h3 a{display:flex;align-items:center;min-height:44px}
  .pc .line,.pc .meta{font-size:18px}
  .pc .add{padding:0 4px}
  /* two columns: a few words on who it's for, and a box that stays close to square */
  .l-long{display:none}
  .l-short{display:block}
  .pc .line:empty{display:none}
  .col:not(.col-b) .pc .line:not(:has(.l-short)){display:none}
  .col-b .l-long{display:block}
  .col-b .l-short{display:none}
  .art{min-height:104px;margin:2px 0 4px}
  .bar.has-menu{flex-direction:column}
  .bar.has-menu .sz-menu{width:100%;border-right:0;border-bottom:1px solid rgba(244,243,239,.3)}
  .bar .add{flex:none;width:100%}
  .sz{min-width:0;flex:1 1 40%;padding:0 6px}
  .col-band{grid-template-columns:1fr}
  .col-band .b-kit{padding:0}
  .col-band .b-kit img{position:static;width:100%;height:auto;aspect-ratio:4/3}
  .col-band .b-kit>div{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:20px}
  /* filters come up as a sheet */
  .col-panel{position:fixed;inset:auto 0 0 0;z-index:50;max-height:82svh;overflow:auto;padding:20px var(--pad) 16px;border:0;box-shadow:0 -20px 60px rgba(17,17,16,.35);animation:col-sheet .32s cubic-bezier(.2,.8,.2,1)}
  @keyframes col-sheet{from{translate:0 40px;opacity:.4}to{translate:0 0;opacity:1}}
  body.col-sheet::after{content:"";position:fixed;inset:0;z-index:49;background:rgba(10,9,8,.45)}
  .col-groups{grid-template-columns:1fr}
  #col-close{display:block;justify-self:end;min-height:44px;padding:0;border:0;background:none;color:inherit;font:inherit;font-weight:500}
  .col-panel-foot{display:flex;position:sticky;bottom:-16px;justify-content:space-between;padding:12px 0 16px;background:var(--bg)}
  #col-see{display:flex;flex:1}
  /* B on phones: one huge tile per row */
  .col-b .col-grid{grid-template-columns:1fr}
  .col-b .pc h3{font-size:36px}
}
@media (prefers-reduced-motion:reduce){
  .col-grid.enter .pc,.col-grid.enter .pc-photo,.col-panel{animation:none}
  .pc-box .hv,.pc-box::after{transition:none}
  ::view-transition-group(*){animation-duration:.01ms}
}
/* rows that swipe sideways snap to their items; the partly visible next item is the cue */
.col-tabs,.bar-quick{scroll-snap-type:x proximity;scroll-padding-inline:var(--pad)}
.col-tabs a,.bar-quick .fchip{scroll-snap-align:start}
/* narrower screens: chips get their own row, so they never run under the tools */
@media (min-width:761px) and (max-width:1240px){
  .col-bar{flex-wrap:wrap}
  .bar-quick{flex:1 1 100%}
}
@media (max-width:1100px){
  .col-band{grid-template-columns:1fr}
}
.col-band .btn{white-space:nowrap}

/* Spacing: the same rule as style.css */
.col-head .crumbs{margin-bottom:calc(4px - var(--stack))}
.ch-txt{gap:var(--stack)}
.col-note{margin-top:var(--head)}
.col-grid,.col-b .col-grid{gap:var(--grid)}
.col-grid{padding-top:var(--head);padding-bottom:var(--section)}
.col-band{margin-bottom:var(--section)}
.col-band>div{gap:var(--stack)}
.col-band .b-kit>div{display:flex;flex-direction:column;align-items:flex-start;flex:1;gap:var(--stack)}
.col-band .b-kit>div>p:last-child{margin-top:auto}
@media (max-width:760px){
  .col-head .crumbs{margin-bottom:0}
}

/* The filter bar without boxes (Tag, 2026-11-11: "this is a bad design can we remove the boxes around them"). Every control is plain text; the chosen one is ink
   with the calendula underline the site already uses for the open menu item and the chosen size. Tap targets stay 44px tall. One block, removable whole. */
.bar-quick{gap:clamp(16px,2vw,28px)}
.fchip,#col-open,.col-sort :is(select,.dd-btn),.viewbtn,.viewbtn[aria-pressed="true"]{border-color:transparent}
.fchip{padding:0;color:var(--muted);text-decoration:underline 2px transparent;text-underline-offset:8px;transition:color .2s,text-decoration-color .2s}
.fchip:hover{border-color:transparent;color:var(--ink)}
.fchip[aria-pressed="true"]{background:none;border-color:transparent;color:var(--ink);box-shadow:none;text-decoration-color:var(--calendula)}
.fchips{gap:6px 24px}
#col-open{display:inline-flex;align-items:center;gap:8px;padding:0}
#col-open::before{content:"";width:18px;height:12px;background:linear-gradient(currentColor 0 0) 0 0/100% 1.6px no-repeat,linear-gradient(currentColor 0 0) 0 50%/70% 1.6px no-repeat,linear-gradient(currentColor 0 0) 0 100%/40% 1.6px no-repeat}
#col-open[aria-expanded="true"]{background:none;color:var(--ink);text-decoration:underline 2px var(--calendula);text-underline-offset:8px}
.col-sort :is(select,.dd-btn){padding-left:0;background-color:transparent}
.viewbtn{width:44px}
.fchip,.fchip:hover,.fchip[aria-pressed="true"],#col-open{border:0}

/* Augustinus Bader card (?card=ab, Tag 2026-12-02). A tall quiet tile with only the product in it; name, one line, price and sizes under it;
   "Compra rápida" opens a panel. Three columns on desktop, two on phones. &pic=0 drops the big picture. One block, removable whole. */
.card-ab .col-grid{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:clamp(36px,3.6vw,56px)}
.card-ab .pc-big{grid-column:2/4}
@media (min-width:1101px){
  /* three columns here too, so the closing picture follows the three-column count, not the four-column one */
  .col.card-ab:not(.col-b) .pc-fill{display:block;grid-column:span var(--f3)}
  .col.card-ab:not(.col-b) .pc-fill[data-f3="0"]{display:none}
}
.card-ab .pc{gap:6px}
.card-ab .pc-box{flex:none;aspect-ratio:4/5;padding:0;margin-bottom:10px}
.card-ab .pc-box::after{content:none}
.card-ab .art{position:absolute;inset:0;margin:0;min-height:0}
.card-ab .pc h3{font-size:clamp(22px,1.6vw,26px)}
.card-ab .pc .line{color:var(--muted)}
.card-ab .pc .meta{justify-content:flex-start;gap:4px 16px;margin:0;padding-top:2px}
.card-ab .pc .meta strong{font-weight:600}
.card-ab .pc .meta span:not(.stars){color:var(--muted)}
.card-ab .pc .meta .stars{margin-left:auto}
/* the text stays dark under the tile when the hover picture shows */
@media (hover:hover){
  .card-ab .pc:hover:has(.hv.ready) :is(.line,.stars,.stars .count){color:inherit}
  .card-ab .pc:hover:has(.hv.ready) .pc-box{color:inherit}
}
.qs-open{align-self:flex-start;min-height:44px;margin-top:6px;padding:0 18px;border:1px solid var(--ink);background:none;color:var(--ink);font:inherit;font-size:17px;font-weight:500;cursor:pointer;transition:background .2s,color .2s}
.qs-open:hover{background:var(--ink);color:var(--on-dark)}
/* the panel */
#qs{position:fixed;inset:0;z-index:50;background:rgba(10,9,8,.45);animation:qs-fade .25s ease}
#qs[hidden]{display:none}
body.qs-on{overflow:hidden}
.qs-panel{position:absolute;top:0;right:0;bottom:0;display:flex;flex-direction:column;width:min(480px,100vw);background:var(--bg);overflow:auto;animation:qs-in .35s cubic-bezier(.2,.8,.2,1)}
.qs-top{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;padding:8px var(--pad);background:var(--bg);border-bottom:1px solid var(--line)}
.qs-top p{margin:0;font-weight:500}
.qs-x{min-height:44px;padding:0;border:0;background:none;color:inherit;font:inherit;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.qs-body{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:20px var(--pad) 32px}
.qs-pic{width:100%}
.qs-pic .pc-box{aspect-ratio:1;padding:0}
.qs-pic .art{position:absolute;inset:0;margin:0}
.qs-body h2{margin-top:8px;font-size:clamp(30px,2.6vw,40px)}
.qs-line{margin:0;color:var(--muted)}
.qs-size{margin:0;color:var(--muted)}
.qs-body .szs{padding:4px 0 0}
.qs-body .add{align-self:stretch;margin-top:8px}
.qs-more{color:var(--ink);text-underline-offset:4px}
@keyframes qs-fade{from{opacity:0}}
@keyframes qs-in{from{translate:40px 0;opacity:.4}}
@media (max-width:1100px){
  .card-ab .col-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .card-ab .pc-big{grid-column:1/-1}
}
@media (max-width:760px){
  .card-ab .col-grid{row-gap:32px}
  .card-ab .pc h3 a{min-height:0}
  .card-ab .pc .meta .stars{display:none}
  .qs-open{align-self:stretch;padding:0 8px}
  .qs-panel{top:auto;left:0;width:auto;max-height:88svh;animation-name:qs-up}
  .qs-pic .pc-box{aspect-ratio:4/3}
  @keyframes qs-up{from{translate:0 40px;opacity:.4}}
}
@media (prefers-reduced-motion:reduce){#qs,.qs-panel{animation:none}}

/* Aleph card (?card=aleph, Tag 2026-12-02). The product tile and its in-use photo side by side, the same size: who it's for and the sizes in the
   top corners, name and price in the bottom ones. Two pairs a row on desktop; on phones one tile a row and no photo, as on theirs.
   &buy=1 adds a "Compra rápida" bar at the bottom of the tile. One block, removable whole. */
.col.card-al .col-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(8px,.8vw,12px)}
.col.card-al .al-fill{display:block;grid-column:span var(--f4)}
.col.card-al .al-fill[data-f4="0"]{display:none}
.card-al .pc.al{display:block}
.card-al .pc.pair{grid-column:span 2;display:grid;grid-template-columns:1fr 1fr;gap:inherit}
.card-al .pc-box{flex:none;display:flex;flex-direction:column;aspect-ratio:1/1;padding:clamp(14px,1.4vw,22px);gap:0}
.card-al .pc-box::after{content:none}
.card-al .art{flex:1;min-height:0;margin:8px 0}
.al-top{display:flex;justify-content:space-between;gap:12px;margin:0;font-size:16px;line-height:1.3;color:var(--muted)}
.al-top span:last-child{flex:none;text-align:right;white-space:nowrap}
.al-foot{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}
.card-al .pc h3{font-size:clamp(22px,1.7vw,28px);line-height:1.05}
.al-foot strong{flex:none;font-weight:600;font-size:17px}
.al-ph{position:relative;display:block;aspect-ratio:1/1;overflow:hidden;background:var(--panel)}
.al-ph img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:scale .9s cubic-bezier(.2,.7,.2,1)}
.card-al .pc:hover .al-ph img{scale:1.03}
.al-qs{align-self:stretch;min-height:44px;margin:14px calc(-1*clamp(14px,1.4vw,22px)) calc(-1*clamp(14px,1.4vw,22px));border:0;background:var(--ink);color:var(--on-dark);font:inherit;font-size:17px;font-weight:500;cursor:pointer;transition:background .2s}
.al-qs:hover{background:#2b2a28}
@media (max-width:1100px){
  .col.card-al .col-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .col.card-al .al-fill{display:block;grid-column:auto}
  .col.card-al .al-fill[data-f2="0"]{display:none}
}
@media (max-width:760px){
  .col.card-al .col-grid{grid-template-columns:1fr;gap:12px}
  .col.card-al .al-fill{display:none}
  .card-al .pc.pair{grid-column:auto;display:block}
  .al-ph{display:none}
  .card-al .pc-box{aspect-ratio:1/1;min-height:0}
  .card-al .pc h3 a{min-height:0}
  .card-al .l-short{display:none}
}

/* Quick add on hover, square tiles (Tag, 2026-12-02: "since now its cleaner can que product box be a square"; "when you hover the card it should have a quick add or a cta that shows thats the whole point").
   One size: "Agregar · $800" adds it. Several: "Compra rápida" opens the size panel. With a mouse it rises into the tile on hover or keyboard focus;
   on touch screens, where nothing hovers, it stays under the tile as with &buy=1. */
.card-al .pc-box{position:relative}
@media (hover:hover){
  /* the bar takes the tile's bottom strip, where the name and price were (Tag: "only show on the bottom section to cover the space of the previous text") */
  .col.card-al:not(.al-buy) .al-qs{position:absolute;z-index:2;left:0;right:0;bottom:0;min-height:48px;margin:0;font-size:17px;opacity:0;pointer-events:none;transition:opacity .25s,background .2s}
  .col.card-al:not(.al-buy) .pc.al:hover .al-qs,.col.card-al:not(.al-buy) .al-qs:focus-visible{opacity:1;pointer-events:auto}
  .col.card-al:not(.al-buy) .pc.al:hover .al-foot{opacity:0}
}
@media (prefers-reduced-motion:reduce){.col.card-al .al-qs{transition:none}}

/* Typology card (?card=ty, Tag 2026-12-02, the same family as the home page's ?vendidos=b): three tall cards a row, 5px apart; the size small at top right,
   "name — price" in 15px at the bottom; on hover the product in use and a white 48px bar 12px in from the edges, over the text. Phones: two a row, no bar. */
.col.card-ty .col-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.card-ty .pc{display:block}
.card-ty .pc-box{position:relative;aspect-ratio:5/7;padding:0;overflow:hidden}
.card-ty .pc-box::after{content:none}
.card-ty .art{position:absolute;inset:0;display:block}
.ty-hv{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .5s cubic-bezier(.2,.7,.2,1)}
.ty-tag{position:absolute;z-index:1;top:14px;right:16px;margin:0;font-size:13px;color:var(--muted);transition:opacity .3s}
.card-ty h3{position:absolute;z-index:1;left:16px;right:16px;bottom:16px;margin:0;font-size:15px;font-weight:500;line-height:1.3;transition:opacity .3s}
.card-ty h3 span{font-weight:400}
.ty-qs{display:none}
@media (hover:hover){
  .ty-qs{display:flex;align-items:center;justify-content:center;position:absolute;z-index:2;left:12px;right:12px;bottom:12px;min-height:48px;padding:0 12px;background:#fff;color:var(--ink);border:1px solid #fff;font:inherit;font-size:13px;font-weight:500;text-transform:uppercase;letter-spacing:.12em;cursor:pointer;opacity:0;pointer-events:none;transition:opacity .25s,background .2s,color .2s}
  .card-ty .pc:hover .ty-qs,.ty-qs:focus-visible{opacity:1;pointer-events:auto}
  .ty-qs:hover{background:var(--ink);color:#fff;border-color:var(--ink)}
  .card-ty .pc:hover h3,.card-ty .pc:has(.ty-hv):hover .ty-tag{opacity:0}
  .card-ty .pc:hover .ty-hv{opacity:1}
}
/* A few cards open on their second picture (.flip, set in coleccion.js); the name and size go white over it, and hover shows the clean card. */
.card-ty .pc.flip .ty-hv{opacity:1;pointer-events:none}
.card-ty .pc.flip .pc-box::after{content:"";z-index:0;opacity:1;transition:opacity .3s}
@media (min-width:761px){.card-ty .pc.flip :is(h3,.ty-tag){color:#fff}} /* on phones the text sits under the picture and stays dark */
@media (hover:hover){.card-ty .pc.flip:hover .ty-hv,.card-ty .pc.flip:hover .pc-box::after{opacity:0}}
@media (max-width:1100px){.col.card-ty .col-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Phones: two cards a row leave no room for the name over the picture (it sat on the bottle, sweep 2026-12-02), so the name and price go under it, inside the tile, and the sizes under the name (they sat on the pump). */
@media (max-width:760px){.card-ty .pc-box{aspect-ratio:auto;display:flex;flex-direction:column}.card-ty .art{position:relative;inset:auto;aspect-ratio:1}.card-ty h3{position:static;padding:2px 12px 4px;font-size:14px}.ty-tag{position:static;order:3;padding:0 12px 14px;font-size:12px}
  .card-ty .pc.flip .ty-hv{height:auto;aspect-ratio:1}.card-ty .pc.flip .pc-box::after{content:none}}
@media (prefers-reduced-motion:reduce){.ty-qs,.ty-hv{transition:none}}
