:root {
  --sidebar-bg: #111827;
  --sidebar-link: #cbd5e1;
  --page-bg: #f3f4f6;
}

html,
body {
  height: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page-bg);
  overflow-x: hidden;
}

.admin-shell {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 250px;
  background: var(--sidebar-bg);
  color: #fff;
  padding: 1.5rem 1rem;
}

.admin-sidebar .brand {
  font-size: 1.2rem;
  font-weight: 700;
}

.admin-sidebar .nav-link {
  color: var(--sidebar-link);
  border-radius: 10px;
  margin-bottom: 0.35rem;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.admin-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-content {
  padding: 1.5rem;
  overflow-x: hidden;
}

.metric-card {
  border: 0;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.auth-body {
  background: linear-gradient(135deg, #4f46e5, #0ea5e9);
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.auth-card {
  border: 0;
  border-radius: 16px;
  width: 100%;
  max-width: 620px;
}

.product-card {
  border: 1px solid #eceff4;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 1rem;
}

.product-grid-item {
  min-width: 0;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

.product-image {
  height: 250px;
  object-fit: contain;
  background: #f8fafc;
  padding: 12px;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

.product-title {
  min-height: 44px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-order-form .form-control {
  max-width: 90px;
}

.product-order-form .input-group {
  flex-wrap: nowrap;
}

.product-order-form .input-group > * {
  min-width: 0;
}

@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}