/* static/css/compare.css */

.cmp-page{ padding: 22px 0 36px; }

.cmp-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  margin: 6px 0 18px;
}
.cmp-title{
  margin:0;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: -.4px;
  color: rgba(255,255,255,.96);
}
.cmp-sub{
  margin-top:8px;
  color: rgba(255,255,255,.68);
  font-size: 13px;
}

.cmp-pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: rgba(255,255,255,.90);
}
.cmp-pill .muted{ color: rgba(255,255,255,.65); font-size:12px; }
.cmp-pill .strong{ font-weight: 950; }

/* tabs */
.cmp-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin: 14px 0 16px;
}
.cmp-tab{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: rgba(255,255,255,.90);
  cursor:pointer;
  transition: transform .16s var(--ease), border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.cmp-tab:hover{
  transform: translateY(-2px);
  border-color: rgba(255,138,0,.35);
  box-shadow: 0 0 0 1px rgba(255,138,0,.15) inset;
}
.cmp-tab.is-active{
  border-color: var(--accentLine);
  box-shadow: 0 0 0 1px var(--accentIn) inset;
  background: rgba(255,255,255,.06);
}
.cmp-tab-title{ font-weight: 900; font-size: 13px; }
.cmp-tab-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 26px;
  height: 20px;
  padding: 0 8px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.85);
  font-size: 12px;
  font-weight: 900;
}

.cmp-panel{ display:none; }
.cmp-panel.is-active{ display:block; }

.cmp-table-wrap{
  border-radius: 26px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.cmp-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
}
.cmp-th, .cmp-td{
  padding: 14px;
  vertical-align: top;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.cmp-th{
  background: rgba(0,0,0,.12);
  color: rgba(255,255,255,.88);
}
.cmp-param{
  width: 220px;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .8px;
}
.cmp-td{
  color: rgba(255,255,255,.90);
  font-size: 13px;
}

.cmp-product{ display:flex; flex-direction:column; gap:10px; }
.cmp-product-link{ text-decoration:none; color: inherit; }
.cmp-product-media{
  width:100%;
  height: 110px;
  border-radius: 16px;
  overflow:hidden;
  background: rgba(0,0,0,.20);
}
.cmp-product-media img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.cmp-product-empty{
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(255,255,255,.55);
  font-size:12px;
}
.cmp-product-name{
  margin-top:10px;
  font-weight: 950;
  font-size: 13px;
  line-height: 1.2;
  color: rgba(255,255,255,.95);
}
.cmp-product-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.cmp-product-price{
  display:flex;
  align-items:baseline;
  gap:6px;
}
.cmp-product-price .price{ font-weight: 950; font-size: 14px; }
.cmp-product-price .cur{ color: rgba(255,255,255,.60); font-size: 12px; }

.cmp-remove{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition: transform .16s var(--ease), border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.cmp-remove:hover{
  transform: translateY(-2px);
  border-color: var(--accentLine);
  box-shadow: 0 0 0 1px var(--accentIn) inset;
}

/* highlight rows with differences */
.cmp-row-diff td{
  background: rgba(255,138,0,.10);
}
.cmp-row-diff td.cmp-param{
  background: rgba(255,138,0,.14);
  color: rgba(255,255,255,.92);
}

/* note */
.cmp-note{
  margin-top: 12px;
  color: rgba(255,255,255,.65);
  font-size: 12px;
}

/* responsive */
@media(max-width: 980px){
  .cmp-param{ width: 160px; }
  .cmp-th, .cmp-td{ padding: 12px; }
}
@media(max-width: 720px){
  .cmp-head{ flex-direction:column; align-items:flex-start; }
  .cmp-param{ width: 140px; }
}

/* ======================================================
   Sticky footer FIX (локально, без base)
   Делаем так, чтобы main.content был достаточно высоким,
   и футер не “поднимался” на пустых страницах.
   ====================================================== */

@supports (height: 100svh){
  .content{ min-height: calc(100svh - 420px); }
}
@supports not (height: 100svh){
  .content{ min-height: calc(100vh - 420px); }
}

@media (max-width: 900px){
  @supports (height: 100svh){
    .content{ min-height: calc(100svh - 520px); }
  }
  @supports not (height: 100svh){
    .content{ min-height: calc(100vh - 520px); }
  }
}

@media (max-width: 520px){
  @supports (height: 100svh){
    .content{ min-height: calc(100svh - 620px); }
  }
  @supports not (height: 100svh){
    .content{ min-height: calc(100vh - 620px); }
  }
}
