:root{
  --bg-local:var(--bg);
  --panel:var(--surface);
  --panel2:var(--surface-base);
  --line:var(--border);
  --line2:var(--border);
  --text-local:var(--text);
  --muted:var(--text-secondary);
  --dim:var(--text-disabled);
  --accent:var(--accent-amber);
  --r14:14px;
  --r18:18px;
  --r22:22px;
  --r28:28px;
  --t:170ms;
  --w:1180px;
}

.wrap{
  width:min(var(--w), calc(100% - 28px));
  margin:0 auto;
  padding: 14px 0 36px;
}

/* ═══ Seller Hero ═══ */
.sellerHero{
  border-radius:var(--r28);
  background:var(--surface);
  border:1px solid var(--border);
  overflow:hidden;
  position:relative;
}
.sellerHero::after{
  content:"";
  position:absolute;
  left:16px; right:16px; bottom:0;
  height:1px;
  background:rgba(252, 180, 98,.22);
  opacity:.55;
  pointer-events:none;
}
.heroInner{
  padding:16px;
  display:grid;
  gap:14px;
}
.heroTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.heroLeft{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}
.avatar{
  width:84px;height:84px;border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:var(--surface-raised);
  overflow:hidden;
  display:grid;
  place-items:center;
  flex:0 0 auto;
}
.avatar img{width:100%;height:100%;object-fit:cover;display:block}
.avatar .ph{
  font-weight:950;
  font-size:30px;
  color:rgba(255,255,255,.86);
}
.heroText{min-width:0}
.heroText h1{
  margin:0;
  font-weight:980;
  font-size:28px;
  letter-spacing:.1px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.heroText h1.sellerNameBlocked{
  color:#ff6b6b;
  text-decoration:line-through;
  text-decoration-color:#ff3f3f;
}
.sellerBlockedBadge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:24px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid rgba(255, 77, 77, .46);
  background:rgba(255, 77, 77, .16);
  color:#ff8585;
  font-size:12px;
  font-weight:980;
}
.heroMeta{
  margin-top:8px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  color:var(--muted);
  font-weight:900;
  font-size:13px;
  line-height:1.35;
}

/* Rating pill */
.ratingBlock{
  display: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);
  user-select:none;
}
.ratingBlock .num{
  font-weight:980;
  font-size:16px;
  letter-spacing:-.2px;
  color:rgba(255,255,255,.94);
}
.stars{display:flex;gap:4px;align-items:center;color:var(--accent)}
.stars svg{width:16px;height:16px}
.stars svg.on{fill:var(--accent)}

/* ═══ Tabs ═══ */
.tabsBar{
  margin-top:12px;
  border-radius:var(--r22);
  background:var(--surface);
  border:1px solid var(--border);
  padding:8px;
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
  position:sticky;
  top:10px;
  z-index:10;
}
.tab{
  height:44px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  color:rgba(255,255,255,.88);
  font-weight:980;
  font-size:13px;
  cursor:pointer;
  transition:background var(--t), border-color var(--t), box-shadow var(--t), transform 90ms;
  display:inline-flex;
  align-items:center;
  gap:6px;
  user-select:none;
}
.tab:hover{
  border-color:rgba(252, 180, 98,.22);
  box-shadow:0 0 0 3px rgba(252, 180, 98,.10);
}
.tab:active{transform:translateY(1px)}
.tab.isOn{
  border-color:rgba(252, 180, 98,.38);
  background:rgba(252, 180, 98,.10);
  box-shadow:0 0 0 3px rgba(252, 180, 98,.12);
  color:rgba(255,255,255,.96);
}
.tabCount{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:22px;
  height:22px;
  padding:0 6px;
  border-radius:999px;
  background:rgba(255,255,255,.10);
  font-size:11px;
  font-weight:980;
  color:rgba(255,255,255,.80);
}
.tab.isOn .tabCount{
  background:rgba(252, 180, 98,.22);
  color:rgba(255,255,255,.96);
}

/* ═══ Sections ═══ */
.section{
  margin-top:12px;
  border-radius:var(--r28);
  background:var(--surface);
  border:1px solid var(--border);
  padding:14px;
  display:none;
}
.section.isOn{display:block}

/* ═══ Products ═══ */
.toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  padding-bottom:12px;
  border-bottom:1px solid var(--line2);
}
.search{
  position:relative;
  flex: 1 1 520px;
  min-width:240px;
}
.search input{
  width:100%;
  height:52px;
  border-radius:18px;
  background:var(--surface-input);
  border:1px solid var(--border);
  outline:none;
  color:rgba(255,255,255,.95);
  font-weight:900;
  font-size:14px;
  padding:0 46px 0 14px;
  transition:border-color var(--t), box-shadow var(--t), background var(--t);
}
.search input:focus{
  border-color:rgba(252, 180, 98,.35);
  box-shadow:0 0 0 3px rgba(252, 180, 98,.12);
  background:var(--surface-raised);
}
.search svg{
  position:absolute;
  right:14px;top:50%;transform:translateY(-50%);
  width:18px;height:18px;fill:rgba(255,255,255,.78);pointer-events:none;
}
.select{
  height:52px;
  border-radius:18px;
  background:var(--surface-input);
  border:1px solid var(--border);
  color:rgba(255,255,255,.94);
  font-weight:980;font-size:13px;
  padding:0 12px;outline:none;cursor:pointer;
  transition:border-color var(--t), box-shadow var(--t), background var(--t);
  min-width:190px;
}
.select:focus{
  border-color:rgba(252, 180, 98,.35);
  box-shadow:0 0 0 3px rgba(252, 180, 98,.12);
  background:var(--surface-raised);
}
.chips{display:flex;flex-wrap:wrap;gap:8px;padding-top:12px}
.chip{
  height:34px;padding:0 12px;border-radius:999px;
  border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.04);
  color:rgba(255,255,255,.88);font-weight:980;font-size:12px;
  cursor:pointer;transition:border-color var(--t), box-shadow var(--t), background var(--t);
  display:inline-flex;align-items:center;line-height:1;user-select:none;white-space:nowrap;
}
.chip:hover{border-color:rgba(252,180,98,.22);box-shadow:0 0 0 3px rgba(252,180,98,.10)}
.chip.isOn{border-color:rgba(252,180,98,.40);background:rgba(252,180,98,.10);box-shadow:0 0 0 3px rgba(252,180,98,.12)}

.grid{
  margin-top:12px;
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:12px;
}
.pCard{
  width:100%;border-radius:18px;
  border:1px solid rgba(255,255,255,.07);
  background:rgba(255,255,255,.03);overflow:hidden;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
  text-decoration:none;color:inherit;
}
.pCard:hover{
  transform: translateY(-2px);
  border-color: rgba(252,180,98,.35);
  box-shadow: 0 0 0 1px rgba(252,180,98,.55), 0 0 22px rgba(252,180,98,.14);
}
.pImg{width:100%;aspect-ratio:16/9;object-fit:cover;display:block;background:var(--bg-deep)}
.pBody{padding:12px 12px 14px}
.pTitle{
  margin:0;font-size:14px;font-weight:800;line-height:1.25;letter-spacing:.15px;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:36px;
}
.pMeta{margin-top:8px;display:flex;align-items:center;justify-content:space-between;gap:10px;color:rgba(169,179,189,1);font-size:12px}
.pPrice{margin-top:10px;display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.pPrice b{color:var(--accent-amber);font-size:18px;letter-spacing:.2px}
.pPrice s{color:rgba(111,122,131,1);font-size:12px;font-weight:700}
.pBadge{
  margin-top:10px;display:inline-flex;align-items:center;gap:8px;
  padding:6px 10px;border-radius:999px;
  border:1px solid rgba(255,77,77,.22);background:rgba(255,77,77,.14);
  color:#fff;font-size:12px;font-weight:800;
}

/* ═══════════════════════════════════════════
   REVIEWS — Summary block
   ═══════════════════════════════════════════ */
.rvSummary{
  display:flex;
  align-items:baseline;
  gap:16px;
  flex-wrap:wrap;
  padding-bottom:16px;
  border-bottom:1px solid rgba(255,255,255,.06);
  margin-bottom:14px;
}
.rvSummaryLeft{
  display:flex;
  align-items:baseline;
  gap:12px;
  flex-wrap:wrap;
}
.rvBigNum{
  font-size:56px;
  font-weight:950;
  letter-spacing:-1.5px;
  line-height:1;
  color:rgba(255,255,255,.98);
}
.rvBigMeta{
  display:flex;
  flex-direction:column;
  gap:6px;
  padding-bottom:6px;
}
.rvBigStars{display:flex;gap:3px}
.rvBigStars svg{width:18px;height:18px}
.rvBigStars svg.on{fill:var(--accent)}
.rvTotal{
  font-size:13px;
  font-weight:900;
  color:rgba(169,179,189,.85);
}

/* Star distribution bars */
.rvBars{
  flex:1 1 0;
  min-width:200px;
  display:flex;
  flex-direction:column;
  gap:5px;
  margin-left:auto;
}
.rvBarRow{display:flex;align-items:center;gap:8px}
.rvBarLabel{
  width:36px;text-align:right;font-size:12px;font-weight:900;
  color:rgba(255,255,255,.72);flex:0 0 auto;
}
.rvBarTrack{
  flex:1;height:8px;border-radius:999px;
  background:rgba(255,255,255,.07);overflow:hidden;
}
.rvBarFill{
  height:100%;border-radius:999px;background:var(--accent);
  transition:width .4s ease;min-width:0;
}
.rvBarCnt{
  width:28px;text-align:left;font-size:12px;font-weight:900;
  color:rgba(169,179,189,.75);flex:0 0 auto;
}

.rvFilters{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom:12px;
}
.rvFilterRow{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}
.rvChip{
  height:36px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:rgba(255,255,255,.92);
  font-size:12px;
  font-weight:900;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.rvChip.isOn{
  border-color:rgba(252,180,98,.42);
  background:rgba(252,180,98,.12);
}
.rvSelect{
  height:36px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:rgba(255,255,255,.94);
  font-size:12px;
  font-weight:900;
  padding:0 10px;
}

/* ═══════════════════════════════════════════
   REVIEWS — Card grid (matches reviews.html)
   ═══════════════════════════════════════════ */
#sellerReviewsList{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
  min-width: 0;
}
.rvCard{
  border-radius:26px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.06);
  padding:14px;
  min-height:156px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  display:flex;
  flex-direction:column;
  gap:10px;
  transition: border-color .2s, box-shadow .2s;
}
.rvCard:hover{
  border-color:rgba(255,255,255,.12);
  box-shadow:0 0 0 1px rgba(255,255,255,.06);
}

/* Card header */
.rvCardHead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  min-width: 0;
  flex-wrap: wrap;
}
.rvWho{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  flex: 1 1 0;
}
.rvAvatar{
  width:32px;height:32px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  display:grid;place-items:center;
  flex:0 0 auto;
  overflow:hidden;
  font-weight:950;
  color:rgba(255,255,255,.92);
}
.rvAvatar img{width:100%;height:100%;object-fit:cover;display:block}
.rvAvatar span{font-weight:950;font-size:14px;color:rgba(255,255,255,.95)}
.rvWhoText{min-width:0;flex:1 1 0}
.rvWhoText b{
  display:block;font-weight:950;font-size:13px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;
}
.rvWhoText small{
  display:block;margin-top:4px;font-weight:900;font-size:12px;
  color:rgba(169,179,189,.85);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;
}
.rvDate{
  font-size:12px;font-weight:900;
  color:rgba(169,179,189,.85);
  white-space:nowrap;
  flex-shrink: 0;
  margin-left: auto;
  text-align: right;
}

/* Stars */
.rvStars{
  display:inline-flex;
  align-items:center;
  gap:3px;
  flex-wrap: wrap;
  max-width: 100%;
  min-width: 0;
}
.rvStars svg{
  width:14px;height:14px;fill:var(--accent);
}

/* Body */
.rvBody{
  color:rgba(255,255,255,.86);
  font-size:13px;
  font-weight:850;
  line-height:1.4;
  min-height:38px;
  word-break:break-word;
}

/* Footer - product mini */
.rvFooter{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:auto;
  padding-top:10px;
  border-top:1px solid rgba(255,255,255,.06);
  min-width:0;
}
.rvFootInfo{
  min-width:0;
  flex: 1 1 0;
}
.rvFootInfo b{
  display:block;font-weight:950;font-size:13px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.rvFootInfo small{
  display:block;margin-top:4px;font-weight:900;font-size:12px;
  color:rgba(169,179,189,.85);
}
.rvFootPrice{
  margin-left:auto;
  flex-shrink: 0;
  font-weight:950;
  color:var(--accent);
  white-space:nowrap;
  letter-spacing:-.2px;
}

/* Empty */
.rvEmpty{
  grid-column:1/-1;
  border-radius:14px;
  border:1px dashed rgba(255,255,255,.14);
  color:rgba(169,179,189,.78);
  padding:24px 16px;
  text-align:center;
  font-weight:900;
  font-size:14px;
}

/* ═══ Load more ═══ */
.rvMoreWrap{
  display:flex;
  justify-content:center;
  padding-top:16px;
}
.rvMoreBtn{
  height:46px;padding:0 28px;border-radius:999px;
  border:1px solid rgba(252,180,98,.28);
  background:rgba(252,180,98,.08);
  color:rgba(255,255,255,.94);font-weight:980;font-size:13px;
  cursor:pointer;
  transition:border-color var(--t), box-shadow var(--t), background var(--t), transform 90ms;
}
.rvMoreBtn:hover{
  border-color:rgba(252,180,98,.45);
  box-shadow:0 0 0 3px rgba(252,180,98,.12), 0 0 18px rgba(252,180,98,.10);
  background:rgba(252,180,98,.12);
}
.rvMoreBtn:active{transform:translateY(1px)}
.rvMoreBtn:disabled{opacity:.5;cursor:default;transform:none;box-shadow:none}

/* ═══ Responsive ═══ */
@media (max-width: 1140px){
  .grid{grid-template-columns: repeat(3, minmax(0, 1fr))}
}
@media (max-width: 1020px){
  #sellerReviewsList{grid-template-columns: repeat(2, minmax(0, 1fr))}
}
@media (max-width: 880px){
  .grid{grid-template-columns: repeat(2, minmax(0, 1fr))}
  .heroText h1{font-size:24px}
  .avatar{width:78px;height:78px}
}
@media (max-width: 720px){
  #sellerReviewsList{grid-template-columns: minmax(0, 1fr)}
  .rvBigNum{font-size:46px}
  /* Длинные названия товара: перенос вместо вылета за край карточки */
  .rvWhoText small{
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.35;
  }
  .rvFootInfo b{
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    word-break: break-word;
    overflow-wrap: anywhere;
    line-height: 1.35;
  }
  .rvCardHead{
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .rvWho{width: 100%}
  .rvDate{
    margin-left: 0;
    align-self: flex-end;
    text-align: right;
  }
}
@media (max-width: 520px){
  .grid{grid-template-columns: 1fr}
  .wrap{
    width:min(var(--w), calc(100% - 16px));
    padding:8px 0 16px;
  }
  .heroText h1{
    font-size: clamp(30px, 8vw, 34px);
    line-height:1.1;
  }
  .ratingBlock{width:100%; justify-content:space-between}
  .select{
    min-width: 100%;
    min-height:40px;
    border-radius:14px;
  }
  .search{flex-basis: 100%}
  .search input{
    height:42px;
    border-radius:14px;
    font-size:14px;
  }
  .chip{
    min-height:34px;
    border-radius:12px;
    font-size:11px;
  }
  .pCard{
    border-radius:14px;
  }
  .pBody{padding:10px 10px 12px}
  .pTitle{font-size:13px; min-height:32px}
  .pPrice b{font-size:16px}
  .rvSummary{flex-direction:column}
  .rvBars{min-width:0}
  .rvSelect{width:100%}
}
