.lots-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gf-lots-gap, 14px);
}

.lots-grid{
  transition: opacity var(--gf-transition-fast, 0.18s ease);
}

@media (min-width: 991px) {
  :root { --gf-lots-gap: 14px; }
}

@media (max-width: 990px) and (min-width: 768px) {
  :root { --gf-lots-gap: 12px; }
}

@media (max-width: 767px) and (min-width: 480px) {
  :root { --gf-lots-gap: 10px; }
}

@media (max-width: 479px) {
  :root { --gf-lots-gap: 10px; }
}

@media (max-width: 900px) {
  .lots-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 580px) {
  .lots-grid { grid-template-columns: 1fr; }
}

.lot-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 14px 12px;
  border-radius: var(--gf-radius-xl, 16px);
  min-width: 0;
  position: relative;
}

.lot-card-top {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.lot-card-category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(15, 23, 42, 0.55);
  text-transform: uppercase;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lot-card-title {
  font-size: 14.5px;
  font-weight: 650;
  color: rgba(15, 23, 42, 0.85);
  line-height: 1.25;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}

.lot-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.seller-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.seller-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(148, 163, 253, 0.18);
  background-size: cover;
  background-position: center;
  flex: 0 0 auto;
  border: 1px solid rgba(148, 163, 253, 0.35);
}

.seller-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.seller-name {
  font-size: 14px;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.89);

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.seller-rating {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.55);
}

.seller-avatar-link {
  display: block;
  line-height: 0;
  text-decoration: none;
}

.seller-name-link {
  text-decoration: none;
  color: inherit;
}

.seller-avatar-link:hover .seller-avatar,
.seller-name-link:hover {
  opacity: 0.9;
}

.lot-card-price {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.92);
  letter-spacing: -0.01em;
}

.lot-card-price--unit {
  font-weight: 700;
  font-size: 14px;
  color: rgba(15, 23, 42, 0.88);
}

.lots-skeleton {
  padding: 10px 2px;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.45);
}

.seller-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 11px;
  height: 11px;
  color: #f5c542;
}

.seller-star svg {
  width: 11px;
  height: 11px;
  stroke: currentColor;
  fill: currentColor;
  display: block;
}

.seller-stars {
  display: inline-flex;
  gap: 2px;
}

@media (max-width: 768px) {
  .seller-rating { font-size: 10.5px; }
  .seller-star,
  .seller-star svg {
    width: 9.5px;
    height: 9.5px;
  }

  .seller-stars { gap: 2px; }
}

@media (max-width: 479px) {
  .seller-rating { font-size: 10px; }
  .seller-star,
  .seller-star svg {
    width: 8.5px;
    height: 8.5px;
  }

  .seller-stars { gap: 2px; }
}

@media (max-width: 768px) {
  .lot-card-category { font-size: 10.5px; }
  .lot-card-title { font-size: 14px; }
  .seller-name { font-size: 12.5px; }
  .lot-card-price { font-size: 14px; }
  .lot-card-price--unit { font-size: 13px; }
}

@media (max-width: 479px) {
  .lot-card-category { font-size: 10px; }
  .lot-card-title { font-size: 13.5px; }
  .seller-name { font-size: 12px; }
  .lot-card-price { font-size: 13.5px; }
  .lot-card-price--unit { font-size: 12.5px; }
}

.lot-card-auto-badge,
.lot-card-auto { 
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; 
  height: 20px;
  border-radius: 8px;
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--gf-brand-blue); 
  opacity: 0.98;
}

.lot-card-auto-badge svg,
.lot-card-auto svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  fill: currentColor;
  display: block;
}

@media (max-width: 768px) {
  .lot-card-auto-badge,
  .lot-card-auto {
    width: 19px;
    height: 19px;
  }

  .lot-card-auto-badge svg,
  .lot-card-auto svg {
    width: 19px;
    height: 19px;
  }
}

@media (max-width: 479px) {
  .lot-card-auto-badge,
  .lot-card-auto {
    top: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
  }

  .lot-card-auto-badge svg,
  .lot-card-auto svg {
    width: 18px;
    height: 18px;
  }
}
@media (max-width: 580px) {
  .lot-card-title {
    min-height: 0;
  }
}
.lot-card-auto-badge .gf-icon,
.lot-card-auto .gf-icon {
  color: var(--gf-brand-blue);
}

/* Гарантируем "полную" молнию (не только stroke) */
.lot-card-auto-badge .gf-icon svg,
.lot-card-auto .gf-icon svg {
  stroke: currentColor;
  fill: currentColor;
}

@media (max-width: 990px) and (min-width: 768px) {
  .seller-row {
    gap: 10px;
  }

  .seller-avatar {
    width: 32px;
    height: 32px;
  }

  .seller-name {
    font-size: 13.5px;
    max-width: 170px;
  }

  .seller-rating {
    font-size: 11.5px;
    gap: 7px;
  }

  .seller-star,
  .seller-star svg {
    width: 10px;
    height: 10px;
  }
}

.seller-avatar,
.seller-avatar-link {
  position: relative;
}

.seller-online-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.9);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
  background: #94a3b8; 
}

.seller-online-dot.is-online {
  background: #22c55e;
}

.seller-online-dot.is-offline {
  background: #94a3b8;
}

.seller-online-dot.is-hidden {
  display: none;
}

@media (max-width: 479px) {
  .seller-online-dot {
    width: 8px;
    height: 8px;
    border-width: 1.5px;
  }
}