body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #f8f9fa;
}

.top-bar {
  font-size: 0.875rem;
}

.navbar-brand {
  font-size: 1.5rem;
  transition: transform 0.2s;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.nav-link {
  transition: color 0.2s;
}

.nav-link:hover {
  color: #0d6efd !important;
}

.product-img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: white;
  padding: 15px;
  border-radius: 8px 8px 0 0;
}

.card {
  transition: all 0.3s ease;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  background: white;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  min-height: 48px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price-tag {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0d6efd;
}

.old-price {
  text-decoration: line-through;
  color: #999;
  font-size: 1rem;
}

.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #dc3545;
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.stock-badge {
  font-size: 0.85rem;
  padding: 4px 8px;
  border-radius: 4px;
}

.category-badge {
  background: #e7f3ff;
  color: #0d6efd;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  display: inline-block;
  margin-bottom: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  padding: 10px 24px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-outline-primary {
  border: 2px solid #0d6efd;
  color: #0d6efd;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-outline-primary:hover {
  background: #0d6efd;
  color: white;
  transform: translateY(-2px);
}

.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 60px 0;
  color: white;
}

.search-box {
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border-radius: 50px;
  overflow: hidden;
}

.search-box input {
  border: none;
  padding: 15px 25px;
}

.search-box button {
  border: none;
  padding: 15px 30px;
  background: #0d6efd;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar .nav-link {
  color: #333;
  padding: 0.75rem 1rem;
  transition: all 0.2s;
}

.sidebar .nav-link:hover {
  background-color: #e9ecef;
  padding-left: 1.5rem;
}

.sidebar .nav-link.active {
  background-color: #0d6efd;
  color: white;
}

footer {
  background: #1a1a2e;
  color: #e9ecef;
}

footer a {
  transition: color 0.2s;
}

footer a:hover {
  color: #667eea !important;
}

.product-detail-img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

@media (max-width: 768px) {
  .product-img {
    height: 180px;
  }

  .hero-section {
    padding: 40px 0;
  }

  .top-bar {
    font-size: 0.75rem;
  }
}
