/* comparison and floating contact button */
/* bar */
.cmp-bar{position:fixed;left:50%;bottom:1.2rem;transform:translate(-50%,6rem);z-index:92;display:flex;align-items:center;gap:1rem;padding:0.65rem 0.8rem 0.65rem 1.1rem;border-radius:2rem;background:#16212e;color:#fff;box-shadow:0 12px 34px rgba(10,26,45,.35);white-space:nowrap;opacity:0;pointer-events:none;transition:transform .3s,opacity .3s;max-width:calc(100vw - 1.5rem)}
.cmp-bar.show{transform:translate(-50%,0);opacity:1;pointer-events:auto}
.cmp-bar__th{display:flex}
.cmp-bar__th span{width:2.4rem;height:2.4rem;border-radius:50%;background:#fff;border:2px solid #16212e;margin-left:-0.5rem;display:grid;place-items:center;overflow:hidden}
.cmp-bar__th span:first-child{margin-left:0}
.cmp-bar__th img{width:78%;height:78%;object-fit:contain}
.cmp-bar__th .emp{background:transparent;border:1.5px dashed #5b6c7c;color:#8da0b0;font-size:1.1rem}
.cmp-bar__t b{display:block;font-size:0.86rem}
.cmp-bar__t small{display:block;font-size:0.7rem;color:#9fb3c0;margin-top:1px}
.cmp-bar__go{height:2.5rem;padding:0 1.3rem;border-radius:1.25rem;background:var(--teal);color:#fff;font-weight:600;font-size:0.82rem;cursor:pointer;transition:background .2s}
.cmp-bar__go:hover{background:var(--teal-d)}
.cmp-bar__go.off{background:#3a4a5b;color:#9fb3c0}
.cmp-bar__clr{color:#9fb3c0;font-size:0.76rem;cursor:pointer;padding:0.4rem 0.3rem}
.cmp-bar__clr:hover{color:#fff}

/* floating contact button */
.fab{position:fixed;right:1.2rem;bottom:4.5rem;z-index:60;display:flex;flex-direction:column;align-items:flex-end;gap:0.5rem;transition:bottom .3s}
body.has-cmp .fab{bottom:8.7rem}
.fab__list{display:flex;flex-direction:column;align-items:flex-end;gap:0.45rem;opacity:0;visibility:hidden;transform:translateY(0.6rem);transition:opacity .22s,transform .22s,visibility .22s}
.fab.open .fab__list{opacity:1;visibility:visible;transform:none}
.fab__i{display:flex;align-items:center;gap:0.5rem}
.fab__l{padding:0.35rem 0.75rem;border-radius:1rem;background:#16212e;color:#fff;font-size:0.72rem;font-weight:600;box-shadow:0 6px 18px rgba(10,26,45,.3);white-space:nowrap}
.fab__b{width:2.5rem;height:2.5rem;border-radius:50%;background:#fff;color:var(--teal-d);display:grid;place-items:center;box-shadow:0 8px 22px rgba(10,26,45,.25);transition:transform .2s}
.fab__i:hover .fab__b{transform:scale(1.08)}
.fab__b svg{width:1.15rem;height:1.15rem;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.fab__b.wa{background:linear-gradient(135deg,#12c3d6,#0897ab);color:#fff;box-shadow:0 6px 16px rgba(6,182,200,.45)}
.fab__b.wa svg{width:1.3rem;height:1.3rem;fill:currentColor;stroke:none}
.fab__main{position:relative;width:3rem;height:3rem;border-radius:50%;background:linear-gradient(135deg,#12c3d6,#0897ab);color:#fff;display:grid;place-items:center;box-shadow:0 8px 20px rgba(6,182,200,.45);cursor:pointer}
.fab__main::after{content:'';position:absolute;inset:-4px;border-radius:50%;border:2px solid rgba(6,182,200,.35);animation:fabPulse 2.6s ease-out infinite}
@keyframes fabPulse{0%{transform:scale(.92);opacity:.9}100%{transform:scale(1.25);opacity:0}}
.fab__ic{grid-area:1/1;display:grid;place-items:center;transition:opacity .2s,transform .25s}
.fab__ic svg{width:1.4rem;height:1.4rem;fill:none;stroke:#fff;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.fab__ic--x{opacity:0;transform:rotate(-60deg)}
.fab.open .fab__ic--chat{opacity:0;transform:rotate(60deg)}
.fab.open .fab__ic--x{opacity:1;transform:none}
.fab.open .fab__main::after{animation:none;opacity:0}
.fab__dot{position:absolute;right:0;top:0;width:0.7rem;height:0.7rem;border-radius:50%;background:#2bb673;border:2px solid #fff}
.fab.open .fab__dot{display:none}
.fab__hint{position:relative;padding:0.65rem 0.95rem;border-radius:0.9rem;background:#fff;color:var(--navy);font-size:0.76rem;line-height:1.35;box-shadow:0 8px 24px rgba(10,26,45,.22);max-width:12rem;animation:fabIn .3s}
.fab__hint[hidden]{display:none}
.fab__hint small{display:block;color:var(--muted);font-weight:400;font-size:0.72rem;margin-top:0.15rem}
.fab__hint::after{content:'';position:absolute;right:1.5rem;bottom:-6px;width:12px;height:12px;background:#fff;transform:rotate(45deg)}
@keyframes fabIn{from{opacity:0;transform:translateY(0.4rem)}to{opacity:1;transform:none}}
/* hide under the windows and the cart */
body:has(.modal.show) .fab,body:has(.drawer.show) .fab,body.cmp-open .fab,body.cmp-open .cmp-bar{display:none}

@media (max-width:900px){
  .cmp-bar{bottom:0.8rem;gap:0.6rem;padding:0.55rem 0.6rem 0.55rem 0.8rem}
  .cmp-bar__t small{display:none}
  .cmp-bar__th span{width:2.1rem;height:2.1rem}
  .cmp-bar__go{padding:0 1rem}
  .cmp-bar__th .emp{display:none}
  .cmp-bar__clr{font-size:0;width:2rem;height:2rem;border-radius:50%;background:#2a3949;position:relative;padding:0;flex:none}
  .cmp-bar__clr::before,.cmp-bar__clr::after{content:"";position:absolute;left:50%;top:50%;width:46%;height:2px;margin:-1px 0 0 -23%;background:#cbd7e0;border-radius:2px}
  .cmp-bar__clr::before{transform:rotate(45deg)}.cmp-bar__clr::after{transform:rotate(-45deg)}
  .fab{right:0.8rem;bottom:4.8rem}
  body.has-cmp .fab{bottom:8.4rem}
  .fab__main{width:2.8rem;height:2.8rem}
}


/* ===== comparison: buttons on cards ===== */
.pcard,.prod,.cx-card__img{position:relative}
.cmp-chip{position:absolute;right:0.55rem;top:3.05rem;z-index:3;width:2rem;height:2rem;padding:0;border-radius:50%;border:0;background:rgba(255,255,255,.92);box-shadow:0 1px 4px rgba(22,33,46,.15);display:grid;place-items:center;color:#8794a1;cursor:pointer;transition:color .15s,transform .15s,background .15s}
.cmp-chip svg{width:1.1rem;height:1.1rem}
.cmp-chip:hover{color:var(--teal);transform:scale(1.08)}
.cmp-chip.on{background:var(--teal);color:#fff;box-shadow:0 2px 8px rgba(6,182,200,.45)}
.cmp-chip__ok{display:none}
.cx-card.sel .cx-card__img{box-shadow:inset 0 0 0 2px var(--teal)}
.pcard.sel,.prod.sel{border-color:var(--teal);box-shadow:0 0 0 3px rgba(6,182,200,.15)}
.cmp-btn{display:inline-flex;align-items:center;gap:0.45rem;height:2.5rem;padding:0 1rem;border-radius:1.25rem;border:1.5px solid #c3d2dc;background:#fff;color:var(--navy);font-size:0.8rem;font-weight:600;cursor:pointer;transition:border-color .2s,color .2s,background .2s}
.cmp-btn svg{width:1.05rem;height:1.05rem;flex:none}
.cmp-btn:hover{border-color:var(--teal);color:var(--teal-d)}
.cmp-btn.on{border-color:var(--teal);background:#eafafc;color:var(--teal-d)}
.prod2__buy,.pd__buy{flex-wrap:wrap}

/* ===== comparison window ===== */
.cmp-shade{position:fixed;inset:0;z-index:100;background:rgba(14,28,44,.55);display:flex;align-items:flex-start;justify-content:center;padding:1.5rem 1rem;overflow:auto;opacity:0;visibility:hidden;transition:opacity .2s,visibility .2s}
.cmp-shade.show{opacity:1;visibility:visible}
body.cmp-open{overflow:hidden}
.cmp-box{position:relative;background:#fff;border-radius:1.2rem;width:min(60rem,100%);box-sizing:border-box;padding:1.5rem 1.5rem 1.2rem;box-shadow:0 24px 70px rgba(10,26,45,.4)}
.cmp-top{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}
.cmp-box h3{font-family:'Montserrat','Montserrat Fallback',sans-serif;font-size:1.35rem;color:var(--navy);margin:0 0 0.2rem}
.cmp-sub{font-size:0.82rem;color:var(--muted);margin:0 0 1rem}
.cmp-x{flex:none;width:2.2rem;height:2.2rem;border-radius:50%;background:var(--bg);position:relative;cursor:pointer;border:0}
.cmp-x::before,.cmp-x::after{content:"";position:absolute;left:50%;top:50%;width:42%;height:2px;margin:-1px 0 0 -21%;background:#4b5b69;border-radius:2px}
.cmp-x::before{transform:rotate(45deg)}.cmp-x::after{transform:rotate(-45deg)}
.cmp-tools{display:flex;gap:0.5rem;margin:0 0 1.1rem;flex-wrap:wrap}
.cmp-tools button{padding:0.42rem 1rem;border-radius:1.4rem;border:1.5px solid #d3dee6;background:#fff;font-size:0.78rem;color:#2f3e4c;cursor:pointer}
.cmp-tools button.on{background:var(--teal);border-color:var(--teal);color:#fff;font-weight:600}

/* the grid: label column + one column per product; every cell may shrink, so nothing can overlap */
.cmp-grid{--lw:9.5rem;--gap:0.7rem;min-width:0}
.cmp-heads,.cmp-prosrow,.cmp-row{display:grid;grid-template-columns:var(--lw) repeat(var(--n,3),minmax(0,1fr));column-gap:var(--gap);align-items:stretch}
.cmp-lab{display:flex;align-items:center;gap:0.5rem;min-width:0;font-size:0.78rem;font-weight:600;color:#5a6b7a;padding:0.7rem 0.2rem 0.7rem 0}
.cmp-lab svg{flex:none;width:1.15rem;height:1.15rem;color:var(--teal-d)}
.cmp-lab span{min-width:0;overflow-wrap:anywhere}
.cmp-lab--e{padding:0}

.cmp-heads{margin-bottom:0.8rem}
.cmp-p{position:relative;display:flex;flex-direction:column;gap:0.45rem;min-width:0;background:var(--bg);border-radius:1rem;padding:2.2rem 0.8rem 0.9rem}
.cmp-p__b{position:absolute;left:0.6rem;top:0.6rem;right:2.4rem;display:flex;flex-wrap:wrap;gap:0.25rem}
.cmp-bdg{display:inline-block;padding:0.18rem 0.55rem;border-radius:1rem;background:#2bb673;color:#fff;font-size:0.62rem;font-weight:700;line-height:1.25}
.cmp-bdg--star{background:#f2a516}
.cmp-p__rm{position:absolute;right:0.5rem;top:0.5rem;width:1.5rem;height:1.5rem;border-radius:50%;background:#fff;font-size:1.05rem;line-height:1;color:#7d8a97;display:grid;place-items:center;cursor:pointer;border:0;padding:0}
.cmp-p__rm:hover{color:#16212e}
.cmp-p__img{display:grid;place-items:center;height:7rem}
.cmp-p__img img{display:block;width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}
.cmp-p__n{font-size:0.84rem;line-height:1.35;color:var(--navy);font-weight:600;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.cmp-p__n:hover{color:var(--teal)}
.cmp-p__pr{font-family:'Montserrat','Montserrat Fallback',sans-serif;font-size:1.1rem;color:var(--navy);font-weight:700}
.cmp-p .btn{white-space:nowrap;padding:0 0.6rem;height:2.4rem;font-size:0.8rem;justify-content:center;margin-top:auto;width:100%;box-sizing:border-box}

.cmp-prosrow{margin-bottom:0.4rem;border-bottom:1px solid var(--line);padding-bottom:0.7rem}
.cmp-pros{min-width:0;background:#eefaf3;border-radius:0.8rem;padding:0.6rem 0.7rem}
.cmp-pros ul{list-style:none;margin:0;padding:0;display:grid;gap:0.4rem}
.cmp-pros li{display:flex;gap:0.45rem;align-items:flex-start;font-size:0.76rem;line-height:1.35;color:#14663a;min-width:0}
.cmp-pros li i{flex:none;width:1rem;height:1rem;border-radius:50%;background:#2bb673;color:#fff;display:grid;place-items:center;margin-top:1px}
.cmp-pros li i svg{width:0.6rem;height:0.6rem}
.cmp-pros li span{min-width:0;overflow-wrap:anywhere}
.cmp-pros p{margin:0;font-size:0.76rem;color:var(--muted)}
.cmp-prosrow .cmp-lab{align-self:start}


.cmp-row{border-bottom:1px solid var(--line)}
.cmp-row:last-child{border-bottom:0}
.cmp-v{display:flex;align-items:flex-start;gap:0.4rem;min-width:0;padding:0.7rem 0.7rem;font-size:0.84rem;line-height:1.4;color:var(--text);margin:0.2rem 0}
.cmp-v span{min-width:0;overflow-wrap:anywhere}
.cmp-v.diff{background:#eefafc;border-radius:0.6rem}
.cmp-v.best{background:#e3f6ea;color:#14663a;font-weight:700;border-radius:0.6rem}
.cmp-ok{flex:none;margin-left:auto;width:1.15rem;height:1.15rem;border-radius:50%;background:#2bb673;color:#fff;display:grid;place-items:center}
.cmp-ok svg{width:0.7rem;height:0.7rem}
.cmp-leg{display:flex;gap:1.2rem;flex-wrap:wrap;margin-top:1rem;font-size:0.76rem;color:var(--muted)}
.cmp-leg span{display:inline-flex;align-items:center;gap:0.45rem}
.cmp-leg i{width:0.95rem;height:0.95rem;border-radius:0.25rem;display:inline-block}
.cmp-leg .g{background:#e3f6ea;border:1px solid #2bb673}
.cmp-leg .b{background:#eefafc;border:1px solid #b9e8ee}

/* phone: the name of a parameter goes on its own line above the values, so the columns keep the full width */
@media (max-width:700px){
  .cmp-shade{padding:0;align-items:stretch}
  .cmp-box{border-radius:0;width:100%;min-height:100%;padding:1rem 0.7rem 1.4rem}
  .cmp-box h3{font-size:1.15rem}
  .cmp-grid{--gap:0.4rem}
  .cmp-heads,.cmp-prosrow,.cmp-row{grid-template-columns:repeat(var(--n,3),minmax(0,1fr))}
  .cmp-lab{grid-column:1/-1;padding:0.65rem 0 0.1rem;font-size:0.72rem}
  .cmp-lab--e{display:none}
  .cmp-p{padding:2rem 0.45rem 0.6rem;gap:0.3rem;border-radius:0.8rem}
  .cmp-p__b{left:0.35rem;right:1.9rem;top:0.4rem}
  .cmp-bdg{font-size:0.54rem;padding:0.12rem 0.4rem}
  .cmp-p__rm{right:0.3rem;top:0.3rem;width:1.35rem;height:1.35rem}
  .cmp-p__img{height:4.6rem}
  .cmp-p__n{font-size:0.68rem;-webkit-line-clamp:4}
  .cmp-p__pr{font-size:0.82rem}
  .cmp-p .btn{height:2.1rem;font-size:0.68rem;padding:0 0.2rem}
  .cmp-prosrow{padding-bottom:0.4rem}
  .cmp-prosrow .cmp-lab{padding-top:0.5rem}
  .cmp-pros{padding:0.45rem 0.4rem}
  .cmp-pros li{font-size:0.66rem;gap:0.3rem}
  .cmp-pros li i{width:0.85rem;height:0.85rem}
    .cmp-row .cmp-lab{margin-top:0.2rem}
  .cmp-v{padding:0.5rem 0.4rem;font-size:0.72rem}
  .cmp-ok{width:0.95rem;height:0.95rem}
}

/* product photo in the comparison head: its own box, never overlaps the name */
.cmp-p__img{display:block;position:relative;flex:none;height:7rem}
.cmp-p__img img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
@media (max-width:700px){.cmp-p__img{height:4.6rem}}


/* ===== brand colours (logo): teal and navy, no green ===== */
.cmp-bdg{background:linear-gradient(135deg,#12c3d6,#0897ab);color:#fff}
.cmp-bdg--star{background:#16212e;color:#fff}
.cmp-pros{background:#eefafc;border:1px solid #d6f1f5}
.cmp-pros li{color:var(--navy)}
.cmp-pros li i,.cmp-ok{background:linear-gradient(135deg,#12c3d6,#0897ab);color:#fff;box-shadow:0 1px 3px rgba(8,151,171,.35)}
.cmp-pros li i{width:1.15rem;height:1.15rem;margin-top:0}
.cmp-pros li i svg{width:0.75rem;height:0.75rem}
.cmp-ok{width:1.3rem;height:1.3rem}
.cmp-ok svg{width:0.8rem;height:0.8rem}
.cmp-v.diff{background:#f3f7fa}
.cmp-v.best{background:#e6f8fa;color:#075f6b;box-shadow:inset 0 0 0 1px rgba(6,182,200,.4)}
.cmp-leg .g{background:#e6f8fa;border:1px solid #12c3d6}
.cmp-leg .b{background:#f3f7fa;border:1px solid #d3dee6}
@media (max-width:700px){.cmp-ok{width:1.05rem;height:1.05rem}.cmp-ok svg{width:0.65rem;height:0.65rem}.cmp-pros li i{width:0.95rem;height:0.95rem}.cmp-pros li i svg{width:0.6rem;height:0.6rem}}


/* legend works as a filter */
.cmp-leg{gap:0.5rem}
.cmp-leg__b{display:inline-flex;align-items:center;gap:0.5rem;padding:0.4rem 0.9rem 0.4rem 0.7rem;border-radius:1.4rem;border:1.5px solid #d3dee6;background:#fff;font-size:0.78rem;font-weight:600;color:var(--navy);cursor:pointer;transition:border-color .15s,background .15s,color .15s}
.cmp-leg__b:hover{border-color:var(--teal);color:var(--teal-d)}
.cmp-leg__b.on{border-color:var(--teal);background:#eafafc;color:var(--teal-d)}
.cmp-leg__b i{width:1rem;height:1rem;border-radius:0.3rem;display:inline-block;flex:none}


/* prices and buttons of the product cards always sit on one line, whatever the length of the names */
.cmp-p__n{flex:1 1 auto}
.cmp-p__pr{margin-top:auto}
.cmp-p .btn{margin-top:0}

/* phone: the window is a normal block so its white background grows with the content (nothing shows through at the bottom) */
@media (max-width:700px){
  .cmp-shade{display:block;padding:0;background:#fff}
  .cmp-box{min-height:100%;height:auto;box-shadow:none}
}


/* every characteristic cell has the same light grey box; the best value stays teal */
.cmp-v,.cmp-v.diff{background:#f6f9fb;box-shadow:inset 0 0 0 1px #dfe7ed;border-radius:0.6rem}
.cmp-v.best{background:#e6f8fa;box-shadow:inset 0 0 0 1px rgba(6,182,200,.45)}
