/* static/css/favorites.css */

.fav-page{ padding: 26px 0 44px; }

.fav-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  margin-bottom: 18px;
}

.fav-title{
  margin:0;
  font-size: 30px;
  font-weight: 950;
  letter-spacing: -.6px;
}

.fav-sub{
  margin-top:8px;
  color: rgba(255,255,255,.68);
  font-size:13px;
  max-width: 760px;
}

.fav-pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: rgba(255,255,255,.88);
  font-size:12px;
  white-space:nowrap;
}
.fav-pill .strong{ font-weight: 900; }

.fav-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.fav-card{
  border-radius: 24px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.045);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  transition: transform .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
  display:flex;
  flex-direction:column;
  min-height: 100%;
}

.fav-card:hover{
  transform: translateY(-3px);
  border-color: var(--accentLine);
  background: rgba(255,255,255,.060);
  box-shadow: 0 0 0 1px var(--accentIn) inset, var(--shadow2);
}

.fav-media{
  display:block;
  height: 210px;
  background: rgba(0,0,0,.20);
}

.fav-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transform: scale(1.01);
  transition: transform .22s var(--ease);
}

.fav-card:hover .fav-media img{ transform: scale(1.06); }

.fav-media-empty{
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(255,255,255,.55);
  font-size:12px;
}

.fav-body{
  padding: 14px 14px 16px;
  display:flex;
  flex-direction:column;
  gap: 10px;
  min-width:0;
  flex:1;
}

.fav-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
}

.fav-meta{ min-width:0; }

.fav-sku{
  font-size:11px;
  color: rgba(255,255,255,.55);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.fav-remove{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition: transform .16s var(--ease), border-color .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease);
}

.fav-remove:hover{
  transform: translateY(-2px);
  border-color: rgba(255,138,0,.35);
  box-shadow: 0 0 0 1px rgba(255,138,0,.18) inset;
}

.fav-name{
  margin:0;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.25;
  letter-spacing: -.2px;
}

.fav-name a{
  color: rgba(255,255,255,.96);
  text-decoration:none;
}

.fav-name a:hover{ color: rgba(255,255,255,.92); }

.fav-bottom{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-top:auto;
}

.fav-price{
  display:flex;
  align-items:baseline;
  gap:6px;
}

.fav-price .price{
  font-size: 18px;
  font-weight: 950;
}

.fav-price .cur{
  font-size: 12px;
  color: rgba(255,255,255,.55);
}

.btn-open{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.92);
  text-decoration:none;
  font-weight: 900;
  font-size: 13px;
  transition: transform .16s var(--ease), border-color .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease);
  white-space:nowrap;
}

.btn-open:hover{
  transform: translateY(-2px);
  border-color: var(--accentLine);
  box-shadow: 0 0 0 1px var(--accentIn) inset;
}

/* Empty state */
.empty{
  margin-top: 12px;
  padding: 22px;
  border-radius: 26px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.empty-title{
  font-size:16px;
  font-weight:950;
}

.empty-sub{
  margin-top:8px;
  color: rgba(255,255,255,.68);
}

@media(max-width:1100px){
  .fav-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media(max-width:640px){
  .fav-head{ flex-direction:column; align-items:flex-start; }
  .fav-grid{ grid-template-columns: 1fr; }
  .fav-media{ height: 190px; }
}

/* ======================================================
   Sticky footer FIX (локально, без base)
   ====================================================== */

@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); }
  }
}
