.vendor-app { background: #f6f7fb; }

.vendor-topbar {
  background: #fff; border-bottom: 1px solid #eaeaea; padding: .75rem 1rem;
}

.vendor-logo {
  width: 42px; height: 42px; object-fit: cover; border-radius: 8px;
  border: 1px solid #eee; background: #fff;
}

.vendor-grid {
  display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 56px);
}
@media (max-width: 992px) { .vendor-grid { grid-template-columns: 1fr; } }

.vendor-sidebar {
  background: #0f172a; color: #e2e8f0; padding: 1rem .75rem;
}
.vendor-nav .nav-link { color: #cbd5e1; padding: .5rem .75rem; border-radius: .5rem; }
.vendor-nav .nav-link:hover, .vendor-nav .nav-link.active { background: rgba(255,255,255,.08); color: #fff; }
.vendor-nav .nav-link i { margin-right: .5rem; }

.vendor-content { padding: 1rem; }

.vendor-footer { background: #fff; border-top: 1px solid #eaeaea; }

.stat-card .stat-label { font-size: .85rem; color: #6b7280; }
.stat-card .stat-value { font-size: 1.5rem; font-weight: 700; }
.stat-card .stat-icon { font-size: 1.25rem; color: #94a3b8; }

/* price layout: main price + truncated compare price under on CARDS */
.product-card .product-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.product-card .current-price-row {
  line-height: 1.2;
}

.product-card .current-price {
  font-weight: 700;
  font-size: 1rem;
}

.product-card .original-price-row {
  margin-top: 2px;
  font-size: 0.8rem;
  color: #6b7280;
  text-decoration: line-through;
  max-width: 60%;              /* <== this is what makes it “half shown” */
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* optional: similar style on PRODUCT DETAIL page */
.product-detail-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.product-detail-price .current-price-row .current-price {
  font-weight: 700;
  font-size: 1.15rem;
}

.product-detail-price .original-price-row {
  margin-top: 2px;
  font-size: 0.9rem;
  color: #6b7280;
  text-decoration: line-through;
  max-width: 60%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
