/* AG Store - product compare v1 */

/* ── Product-page compare button (next to wishlist heart) ── */
.ag-cmp-wrap{flex-shrink:0;display:flex;align-items:center;align-self:center;position:relative;z-index:6}
.ag-cmp-btn{
  position:relative;width:40px;height:40px;margin:0;border:none;border-radius:50%;
  background:transparent!important;box-shadow:none;cursor:pointer;display:flex;align-items:center;justify-content:center;
  padding:0;-webkit-tap-highlight-color:transparent;transition:transform .16s;outline:none;overflow:visible;
}
/* Soft blue circle halo on hover - same idea as heart’s pink ring (drawn on ::before
   so theme/button background rules cannot hide it). */
.ag-cmp-btn::before{
  content:"";position:absolute;inset:0;border-radius:50%;
  background:transparent;box-shadow:none;pointer-events:none;z-index:0;
  transition:background .18s,box-shadow .18s,transform .16s;
}
.ag-cmp-btn:active{transform:scale(.9)}
.ag-cmp-btn:focus,.ag-cmp-btn:focus-visible{outline:none}
.ag-cmp-btn:focus-visible{outline:2px solid rgba(1,113,227,.4);outline-offset:3px}
/* Idle gray matches wishlist heart (#b0b0b8). */
.ag-cmp-ic{position:relative;z-index:1;width:24px;height:24px;display:flex;align-items:center;justify-content:center;opacity:1;transition:opacity .18s}
.ag-cmp-ic svg{width:24px;height:24px;display:block;overflow:visible;filter:drop-shadow(0 1px 2px rgba(0,0,0,.06))}
.ag-cmp-ic svg rect{fill:#b0b0b8!important;stroke:none!important;transition:fill .18s}
.ag-cmp-ic svg path,.ag-cmp-ic svg line,.ag-cmp-ic svg polyline,.ag-cmp-ic svg polygon,.ag-cmp-ic svg circle,.ag-cmp-ic svg ellipse{stroke:#b0b0b8!important;fill:none!important;transition:stroke .22s}
.ag-cmp-btn.is-on .ag-cmp-ic svg rect{fill:#0171e3!important}
.ag-cmp-btn.is-on .ag-cmp-ic svg path,
.ag-cmp-btn.is-on .ag-cmp-ic svg line,
.ag-cmp-btn.is-on .ag-cmp-ic svg polyline,
.ag-cmp-btn.is-on .ag-cmp-ic svg polygon,
.ag-cmp-btn.is-on .ag-cmp-ic svg circle,
.ag-cmp-btn.is-on .ag-cmp-ic svg ellipse{stroke:#0171e3!important;fill:none!important}
/* Real mouse only — sticky :hover on touch kept the blue halo after remove. */
@media (hover:hover) and (pointer:fine){
  .ag-cmp-btn:hover{transform:scale(1.08)}
  .ag-cmp-btn:hover::before{
    background:rgba(1,113,227,.12);
    box-shadow:0 0 0 2px rgba(1,113,227,.06),0 2px 10px rgba(1,113,227,.18);
  }
  .ag-cmp-btn:hover .ag-cmp-ic svg rect{fill:#0171e3!important}
  .ag-cmp-btn:hover .ag-cmp-ic svg path,
  .ag-cmp-btn:hover .ag-cmp-ic svg line,
  .ag-cmp-btn:hover .ag-cmp-ic svg polyline,
  .ag-cmp-btn:hover .ag-cmp-ic svg polygon,
  .ag-cmp-btn:hover .ag-cmp-ic svg circle,
  .ag-cmp-btn:hover .ag-cmp-ic svg ellipse{stroke:#0171e3!important;fill:none!important}
}
.ag-cmp-btn.ag-cmp-animate{animation:agCmpPop .26s cubic-bezier(.34,1.4,.64,1)}
.ag-cmp-btn.ag-cmp-animate-off{animation:agCmpPopOut .28s cubic-bezier(.34,1.2,.64,1)}
@keyframes agCmpPopOut{0%{transform:scale(1)}35%{transform:scale(.88)}100%{transform:scale(1)}}
@keyframes agCmpPop{0%{transform:scale(1)}40%{transform:scale(1.16)}100%{transform:scale(1)}}

/* ── Fly-to-account feedback ── */
.ag-cmp-fly{position:fixed;left:0;top:0;z-index:2147483646;pointer-events:none;width:30px;height:30px;will-change:transform,opacity;filter:drop-shadow(0 4px 10px rgba(1,113,227,.35))}
.ag-cmp-fly svg{width:100%;height:100%;display:block}
.ag-cmp-fly svg rect{fill:#0171e3}
.ag-cmp-acc-pop{position:fixed;left:0;top:0;z-index:2147483646;pointer-events:none;width:36px;height:36px;transform:translate(-50%,-50%) scale(.7);opacity:0;transition:opacity .12s ease,transform .16s cubic-bezier(.34,1.4,.64,1)}
.ag-cmp-acc-pop.in{opacity:1;transform:translate(-50%,-50%) scale(1)}
.ag-cmp-acc-pop.out{opacity:0;transform:translate(-50%,-50%) scale(.92)}
.ag-cmp-acc-pop-lottie{position:absolute;inset:0;width:100%;height:100%}
.ag-cmp-acc-pop-lottie svg{width:100%!important;height:100%!important;display:block}
.ag-cmp-acc-ring{position:absolute;left:50%;top:50%;width:18px;height:18px;border-radius:50%;border:2px solid rgba(1,113,227,.5);transform:translate(-50%,-50%) scale(.4);opacity:.9;animation:agCmpRing .42s cubic-bezier(.2,.7,.3,1) forwards}
@keyframes agCmpRing{to{transform:translate(-50%,-50%) scale(2.1);opacity:0}}

/* ── Transient count badge near account icon (blue, lower-right) ── */
.ag-cmp-acc-badge{
  position:fixed;left:0;top:0;z-index:2147483646;pointer-events:none;display:none;
  align-items:center;justify-content:center;box-sizing:border-box;min-width:18px;height:18px;padding:0 5px;
  background:#0171e3;color:#fff;text-align:center;border-radius:999px;
  font:700 10px/18px Inter,system-ui,-apple-system,sans-serif;letter-spacing:-.02em;
  box-shadow:0 0 0 2px #fff;transform-origin:center;opacity:0;transform:scale(.5);
  transition:opacity .2s ease,transform .26s cubic-bezier(.34,1.5,.64,1);
}
.ag-cmp-acc-badge.show{opacity:1;transform:scale(1)}
@media(prefers-reduced-motion:reduce){.ag-cmp-acc-badge{transition:opacity .2s}.ag-cmp-acc-badge.show{transform:none}}

/* ── Dropdown badge (account menu compare row) ── */
.ag-cmp-dd-badge{
  display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;
  border-radius:999px;background:#0171e3;color:#fff;font:700 11px/20px Inter,system-ui,sans-serif;
  margin-left:auto;box-sizing:border-box;letter-spacing:-.01em;box-shadow:0 1px 4px rgba(1,113,227,.25);
}
.ag-cmp-dd-badge:empty,.ag-cmp-dd-badge[data-count="0"]{display:none}

/* ── Toast ── */
.ag-cmp-toast{
  position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(16px);
  z-index:2147483644;display:flex;align-items:center;gap:10px;
  background:#0f172a;color:#fff;border-radius:14px;padding:12px 14px;
  box-shadow:0 12px 40px rgba(0,0,0,.22);opacity:0;transition:opacity .25s,transform .25s;
  font:600 13px/1.3 Inter,system-ui,-apple-system,sans-serif;max-width:calc(100vw - 28px);
}
.ag-cmp-toast.on{opacity:1;transform:translateX(-50%) translateY(0)}
.ag-cmp-toast-ic{width:20px;height:20px;flex-shrink:0}
.ag-cmp-toast-ic svg{width:20px;height:20px;display:block}
.ag-cmp-toast-ic svg rect{fill:#7dbaf7}
.ag-cmp-toast-msg{white-space:nowrap}
.ag-cmp-toast-msg b{font-weight:800}
.ag-cmp-toast-open{
  border:none;background:#0171e3;color:#fff;border-radius:9px;padding:7px 12px;cursor:pointer;
  font:700 12.5px/1 Inter,system-ui,sans-serif;transition:background .15s;white-space:nowrap;flex-shrink:0;
}
.ag-cmp-toast-open:hover{background:#0a63c4}

/* ── Popup ── */
.ag-cmp-ov{
  position:fixed;inset:0;
  background:rgba(15,23,42,.55);
  backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);
  z-index:2147483646;opacity:0;visibility:hidden;transition:opacity .22s,visibility .22s;
  display:flex;align-items:stretch;justify-content:center;
  padding:clamp(8px,1.6vh,16px) clamp(8px,1.6vw,20px);box-sizing:border-box;
}
.ag-cmp-ov.on{opacity:1;visibility:visible}
/* Overlay covers the whole viewport including header. */
.ag-cmp-panel{
  width:min(1480px,100%);max-height:100%;background:#fff;border-radius:22px;
  display:flex;flex-direction:column;overflow:hidden;
  box-shadow:0 32px 64px -12px rgba(0,0,0,.3),0 0 0 1px rgba(0,0,0,.04);
  transform:translateY(8px);transition:transform .25s ease;
  font-family:var(--font-golos),"Golos Text",Inter,system-ui,-apple-system,sans-serif;
}
.ag-cmp-ov.on .ag-cmp-panel{transform:translateY(0)}
.ag-cmp-head{
  flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:14px 18px 12px;border-bottom:1px solid #f1f5f9;
}
.ag-cmp-head-text{min-width:0;flex:1}
.ag-cmp-head-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.ag-cmp-head-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.ag-cmp-title{margin:0;font:800 18px/1.2 inherit;color:#0f172a;letter-spacing:-.02em}
.ag-cmp-sub{margin:2px 0 0;font:500 12.5px/1.35 inherit;color:#64748b}
.ag-cmp-count{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:26px;padding:0 10px;border-radius:999px;
  background:#e8f8fd;color:#0b4a63;font:700 12px/1 inherit;letter-spacing:-.01em;
}
.ag-cmp-filter{
  border:1.5px solid #e2e8f0;background:#fff;color:#334155;cursor:pointer;
  border-radius:999px;padding:9px 14px;font:600 13px/1 inherit;
  transition:background .15s,border-color .15s,color .15s,transform .12s;
}
.ag-cmp-filter:hover{border-color:#8ae6fe;background:#f7fcfe}
.ag-cmp-filter.is-on{background:#313131;border-color:#313131;color:#fafafa}
.ag-cmp-filter:active{transform:scale(.98)}
.ag-cmp-x{
  width:36px;height:36px;border:none;border-radius:50%;background:#f1f5f9;color:#475569;cursor:pointer;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background .15s,color .15s;
}
.ag-cmp-x:hover{background:#e2e8f0;color:#0f172a}

.ag-cmp-body{flex:1;min-height:0;overflow:hidden;display:flex;flex-direction:column}
.ag-cmp-loading{flex:1;display:flex;align-items:center;justify-content:center;padding:60px}
.ag-cmp-loading svg{width:46px;height:46px;opacity:.25}
.ag-cmp-loading svg rect{fill:#94a3b8;animation:agCmpPulse 1.1s ease-in-out infinite}
@keyframes agCmpPulse{0%,100%{opacity:.4}50%{opacity:1}}
.ag-cmp-empty{
  flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;
  padding:64px 28px;text-align:center;color:#64748b;font:500 14px/1.55 inherit;
}
.ag-cmp-empty-ic{
  width:72px;height:72px;border-radius:22px;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(145deg,#e8f8fd,#f7fcfe);border:1.5px solid rgba(138,230,254,.55);
  margin-bottom:6px;
}
.ag-cmp-empty-ic svg{width:32px;height:32px;opacity:.9}
.ag-cmp-empty-ic svg rect{fill:#0171e3}
.ag-cmp-empty h3{margin:0;font:700 20px/1.25 inherit;color:#0f172a;letter-spacing:-.3px}
.ag-cmp-empty p{margin:0;max-width:360px;color:#64748b}
.ag-cmp-empty-cta{
  margin-top:10px;display:inline-flex;align-items:center;justify-content:center;
  min-height:44px;padding:0 22px;border-radius:999px;text-decoration:none;
  background:#313131;color:#fafafa;font:600 14px/1 inherit;
  transition:background .15s,transform .12s;
}
.ag-cmp-empty-cta:hover{background:#151515}
.ag-cmp-empty-cta:active{transform:scale(.98)}

.ag-cmp-scroll{flex:1;min-height:0;overflow:auto;-webkit-overflow-scrolling:touch}
.ag-cmp-table{border-collapse:separate;border-spacing:0;width:100%}
.ag-cmp-table th,.ag-cmp-table td{
  padding:12px 14px;border-bottom:1px solid #f1f5f9;vertical-align:top;
  font:500 13.5px/1.45 inherit;color:#0f172a;text-align:left;word-break:break-word;
}
/* row-label column (sticky left) */
.ag-cmp-rowh,.ag-cmp-corner{
  position:sticky;left:0;z-index:2;background:#fafafa;
  width:200px;min-width:180px;max-width:200px;
  font-weight:700;color:#64748b;
}
.ag-cmp-corner{z-index:5;top:0}
.ag-cmp-corner-inner{padding:8px 4px}
.ag-cmp-corner-label{font:700 12px/1.35 inherit;color:#64748b;letter-spacing:.02em;text-transform:uppercase}
.ag-cmp-hint{font:600 12px/1.35 inherit;color:#0171e3}
/* product column headers - ultra-compact strip; specs dominate the panel */
.ag-cmp-colh{
  position:sticky;top:0;z-index:3;background:#fff;text-align:left;
  min-width:min(168px,38vw);width:auto;border-bottom:2px solid #eef2f7;
  padding:6px 6px 8px;vertical-align:middle;
}
.ag-cmp-card{
  position:relative;display:grid;grid-template-columns:36px minmax(0,1fr);
  gap:8px;align-items:center;
  padding:6px 22px 6px 6px;border-radius:12px;background:#fafafa;border:1.5px solid #f1f1f1;
  box-sizing:border-box;min-height:0;
}
.ag-cmp-colmeta{min-width:0;display:flex;flex-direction:column;gap:2px;align-items:stretch}
.ag-cmp-best{
  display:inline-flex;align-items:center;padding:2px 6px;border-radius:999px;background:#8ae6fe;color:#151515;
  font:700 8px/1 inherit;letter-spacing:.02em;text-transform:uppercase;white-space:nowrap;
}
.ag-cmp-colx{
  position:absolute;top:4px;right:4px;z-index:2;width:20px;height:20px;border:none;border-radius:50%;
  background:#fff;color:#94a3b8;cursor:pointer;display:flex;align-items:center;justify-content:center;
  border:1.5px solid #f1f1f1;transition:background .15s,color .15s,border-color .15s;
}
.ag-cmp-colx:hover{background:#fff;border-color:#e8364e;color:#e8364e}
.ag-cmp-colimg-wrap{
  display:block;width:36px;height:36px;margin:0;border-radius:9px;background:#fff;
  border:1px solid #f1f1f1;overflow:hidden;flex-shrink:0;
}
.ag-cmp-colimg{width:100%;height:100%;object-fit:contain;padding:3px;box-sizing:border-box}
.ag-cmp-colname{
  display:block;font:600 11.5px/1.2 inherit;color:#0f172a;text-decoration:none;margin:0;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;
  padding-right:2px;
}
.ag-cmp-colname:hover{color:#0171e3}
.ag-cmp-chips{display:flex;flex-wrap:wrap;gap:4px;justify-content:flex-start;margin:0}
.ag-cmp-chip{
  display:inline-flex;align-items:center;padding:2px 6px;border-radius:999px;
  background:#fff;border:1px solid #eef2f7;color:#334155;font:600 10px/1 inherit;
}
.ag-cmp-chip--mute{color:#64748b;font-weight:500}
.ag-cmp-colprice-row{display:flex;align-items:center;gap:5px;flex-wrap:nowrap;margin:0;min-width:0}
.ag-cmp-colprice{font:800 12.5px/1 inherit;color:#0b1220;letter-spacing:-.02em;margin:0;white-space:nowrap}
.ag-cmp-colacts{display:none}
.ag-cmp-colcart{
  border:none;border-radius:999px;background:#313131;color:#fafafa;cursor:pointer;
  padding:5px 9px;font:700 10.5px/1 inherit;transition:background .15s,transform .12s;
  white-space:nowrap;margin-left:auto;flex-shrink:0;
}
.ag-cmp-colcart:hover{background:#151515}
.ag-cmp-colcart:active{transform:scale(.98)}
.ag-cmp-colmore{display:none}
.ag-cmp-colh--slot{min-width:min(148px,34vw)}
.ag-cmp-colh--slot-mini{min-width:52px;width:52px}
.ag-cmp-slot{
  display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px;
  min-height:48px;padding:6px 10px;border-radius:12px;text-decoration:none;box-sizing:border-box;
  border:1.5px dashed rgba(1,113,227,.35);background:rgba(138,230,254,.12);
  color:#0f172a;transition:background .15s,border-color .15s,transform .15s;
}
.ag-cmp-slot:hover{background:rgba(138,230,254,.22);border-color:#0171e3;transform:translateY(-1px)}
.ag-cmp-slot--mini{
  min-height:48px;padding:0;justify-content:center;min-width:48px;
}
.ag-cmp-slot--mini .ag-cmp-slot-plus{width:28px;height:28px;font-size:18px}
.ag-cmp-slot-plus{
  width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:#fff;border:1.5px solid rgba(138,230,254,.8);color:#0171e3;font:700 18px/1 inherit;flex-shrink:0;
}
.ag-cmp-slot-text{display:flex;flex-direction:column;gap:1px;min-width:0;align-items:flex-start}
.ag-cmp-slot-title{font:700 11.5px/1.2 inherit;letter-spacing:-.2px}
.ag-cmp-slot-cta{font:600 10.5px/1 inherit;color:#0171e3}
.ag-cmp-td-slot{background:transparent!important;border-bottom:none!important}
/* value cells */
.ag-cmp-table tbody td{text-align:center;color:#334155;font-weight:500;background:#fff}
.ag-cmp-table tbody tr:nth-child(even) td,.ag-cmp-table tbody tr:nth-child(even) .ag-cmp-rowh{background:#fbfcfe}
.ag-cmp-table tbody tr:hover td,.ag-cmp-table tbody tr:hover .ag-cmp-rowh{background:#f5f9ff}
.ag-cmp-rowh span{display:inline-flex;flex-direction:column;align-items:flex-start;gap:4px}
.ag-cmp-same-tag{font:600 10px/1 inherit;color:#94a3b8;font-style:normal;letter-spacing:.02em;text-transform:uppercase}
.ag-cmp-val{display:inline-block}
.ag-cmp-diff{box-shadow:inset 3px 0 0 #8ae6fe}
.ag-cmp-diff .ag-cmp-rowh{color:#0f172a;font-weight:700}
.ag-cmp-diff td{color:#0b1220;font-weight:600;background:rgba(138,230,254,.08)!important}
.ag-cmp-val--diff{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:28px;padding:4px 10px;border-radius:999px;
  background:#fff;border:1.5px solid rgba(138,230,254,.95);color:#0f172a;font-weight:700;
}
.ag-cmp-same td{color:#64748b}

/* Compare sits above the site header */
html[data-ag-cmp-open] header{
  z-index:1 !important;
}
html[data-ag-cmp-open] #ag-asst-fab,
html[data-ag-cmp-open] .ag-asst-fab,
html[data-ag-cmp-open] #ag-asst-nudge,
html[data-ag-cmp-open] .ag-asst-nudge,
html[data-ag-cmp-open] #ag-sticky-buy,
html[data-ag-cmp-open] .ag-sticky-buy{
  display:none !important;
}

@media(max-width:900px){
  .ag-cmp-ov{padding:0}
  .ag-cmp-panel{width:100%;max-height:100%;border-radius:18px 18px 0 0}
  .ag-cmp-head{padding:12px 14px 10px;gap:8px;flex-wrap:wrap}
  .ag-cmp-head-actions{gap:6px}
  .ag-cmp-title{font-size:17px}
  .ag-cmp-sub{font-size:12px}
  .ag-cmp-filter{padding:8px 11px;font-size:12px}
  .ag-cmp-scroll{padding:0 6px 8px;box-sizing:border-box}
  /* Fit columns into the panel: fixed layout + flexible product cols. */
  .ag-cmp-table{table-layout:fixed;width:100%}
  .ag-cmp-rowh,.ag-cmp-corner{
    width:96px;min-width:88px;max-width:104px;font-size:11px;padding-left:8px;padding-right:6px;
  }
  .ag-cmp-table th,.ag-cmp-table td{padding:8px 6px;font-size:12px}
  .ag-cmp-colh{min-width:0;width:auto;padding:4px}
  .ag-cmp-colh--slot,.ag-cmp-colh--slot-mini{min-width:44px;width:44px;padding:4px 2px}
  .ag-cmp-card{
    grid-template-columns:28px minmax(0,1fr);gap:5px;
    padding:4px 18px 4px 4px;border-radius:10px;
  }
  .ag-cmp-colimg-wrap{width:28px;height:28px;border-radius:7px}
  .ag-cmp-colname{font-size:10.5px}
  .ag-cmp-colprice{font-size:11.5px}
  .ag-cmp-best{display:none}
  .ag-cmp-chips{display:none}
  .ag-cmp-colcart{display:none} /* price-row was colliding with cart CTA */
  .ag-cmp-slot{min-height:40px;padding:4px 6px;gap:4px}
  .ag-cmp-slot-plus{width:24px;height:24px;font-size:16px}
  .ag-cmp-slot--mini{min-width:36px;min-height:40px}
}
@media(max-width:520px){
  .ag-cmp-panel{border-radius:0}
  .ag-cmp-head{padding:10px 12px 8px}
  .ag-cmp-head-actions{width:100%;justify-content:flex-end}
  .ag-cmp-scroll{padding:0 8px 10px}
  .ag-cmp-corner-label{font-size:9px;letter-spacing:.02em}
  .ag-cmp-best{display:none}
  .ag-cmp-rowh,.ag-cmp-corner{
    width:88px;min-width:80px;max-width:96px;font-size:10.5px;padding:8px 6px;
  }
  .ag-cmp-same-tag{font-size:8.5px}
  .ag-cmp-table th,.ag-cmp-table td{padding:7px 4px;font-size:11.5px}
  .ag-cmp-colh{padding:3px}
  .ag-cmp-card{
    grid-template-columns:32px minmax(0,1fr);gap:6px;
    padding:6px 20px 6px 6px;align-items:start;
  }
  .ag-cmp-colimg-wrap{width:32px;height:32px}
  .ag-cmp-colname{font-size:11px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.25}
  .ag-cmp-colprice-row{flex-wrap:wrap}
  .ag-cmp-colprice{font-size:12px}
  .ag-cmp-colx{top:2px;right:2px;width:22px;height:22px}
  .ag-cmp-val--diff{min-height:24px;padding:3px 7px;font-size:11px}
  .ag-cmp-colh--slot,.ag-cmp-colh--slot-mini{min-width:40px;width:40px}
  .ag-cmp-slot--mini{min-width:34px;min-height:36px}
  .ag-cmp-slot-plus{width:26px;height:26px;font-size:16px}
}
