
.analytics {
  background: var(--card);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--card-shadow-strong);
  margin-top: 14px;
  border: 1px solid rgba(0,0,0,0.04);
}


.analytics-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: var(--text);
}

/* metrics layout */
.metrics {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 10px;
}

.spacer {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
}

div {
  display: flex;
  gap: 10px;
  margin: 0;
}

.metric.large {
  background: var(--white);
  border-radius: 10px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  /* justify-content: center; */
  border: 1px solid var(--border-light);
}

.metric.small {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--white);
  border-radius: 10px;
  padding: 15px;
  min-height: 56px;
  border: 1px solid var(--border-light);
}


.page-header h3 { 
  padding: 20px 10px 0px;
  color: var(--text); 
  font-weight: 600;
}

.grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 8px;
}

.card.product-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--card-shadow-soft);
  border: 1px solid var(--border-light);
  overflow: visible;
}

/* картинка продукта слева */
.card-img, .no-image {
  width: 86px;
  height: 110px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--image-bg);
  flex: 0 0 86px;
  display: block;
  border: 1px solid #E1E1E1;
}

/* тело карточки */
.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

/* строка названия */
.title {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;


  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;

}

.meta {
  display: flex;
  gap: 1px;
  flex-direction: column;
  color: var(--muted);
  font-size: 12.5px;
}

.brand { 
    font-weight:500; 
    color:#666;
    padding-bottom: 5px;
}
.rating { 
    display:inline-flex; 
    gap:6px; 
    align-items:center; 
    color:#b88600; 
    font-size: 13px;
}

.price {
  font-weight: 800;
  font-size: 16px;
  color: var(--text);
  margin-top: 2px;
}
.sku { color: var(--muted); font-size: 12px; }

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  gap: 12px;
}

.btn-link {
  background: var(--kaspi-bg);
  color: var(--white);
  border: none;
  padding: 8px 14px;
  border-radius: 18px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(31,31,31,0.12);
  display: inline-flex;
  gap: 8px;
  align-items: center;
  text-decoration: none;
}


.btn-link img { 
    width: 12px; 
    height: 12px; 
    display: inline-block; 
    vertical-align: middle; 
}

.grid > .card.product-card + .card.product-card { margin-top: 8px; }

/* .wrap { padding-bottom: 120px; } */














