/* Modern E-Commerce Site Styles */

:root {
  --primary-color: #0d6efd;
  --primary-dark: #0a58ca;
  --primary-light: #6ea8fe;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #0dcaf0;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --white: #ffffff;
  --border-radius: 12px;
  --box-shadow: 0 2px 12px rgba(13, 110, 253, 0.08);
  --box-shadow-lg: 0 8px 24px rgba(13, 110, 253, 0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--white);
}

/* Hero Banner */
.hero-banner {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 4rem 0;
}

.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Features Bar */
.features-bar {
  border-top: 1px solid #dee2e6;
  border-bottom: 1px solid #dee2e6;
}

.feature-icon-sm {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Category Cards Modern */
.category-card-modern {
  background: var(--white);
  border: 2px solid #e9ecef;
  border-radius: var(--border-radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  height: 100%;
}

.category-card-modern:hover {
  border-color: var(--primary-color);
  box-shadow: var(--box-shadow-lg);
  transform: translateY(-5px);
}

.category-icon-modern {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--white);
  font-size: 2rem;
  transition: var(--transition);
}

.category-card-modern:hover .category-icon-modern {
  transform: scale(1.1) rotate(5deg);
}

.category-title-modern {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.category-count-modern {
  color: var(--secondary-color);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Product Cards Modern */
.product-card-modern {
  background: var(--white);
  border: 1px solid #e9ecef;
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  position: relative;
}

.product-card-modern:hover {
  box-shadow: var(--box-shadow-lg);
  transform: translateY(-5px);
  border-color: var(--primary-color);
}

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--danger-color);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 2;
}

.product-image-modern {
  position: relative;
  overflow: hidden;
  background: #f8f9fa;
}

.product-image-modern img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: var(--transition);
}

.product-card-modern:hover .product-image-modern img {
  transform: scale(1.05);
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.product-card-modern:hover .product-overlay {
  opacity: 1;
}

.product-body-modern {
  padding: 1.25rem;
}

.product-title-modern {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-title-modern a {
  color: var(--dark-color);
  transition: var(--transition);
}

.product-title-modern a:hover {
  color: var(--primary-color);
}

.product-rating {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.product-price-modern {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-new {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.price-old {
  font-size: 1rem;
  color: var(--secondary-color);
  text-decoration: line-through;
}

/* Promotional Banner */
.promo-banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  box-shadow: var(--box-shadow-lg);
}

/* Navbar */
.navbar {
  background-color: var(--white) !important;
  box-shadow: var(--box-shadow);
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem;
  color: var(--dark-color) !important;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
}

/* Buttons */
.btn {
  border-radius: var(--border-radius);
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background: var(--dark-color);
  color: #adb5bd;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer h5, .footer h6 {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer a {
  color: #adb5bd;
  text-decoration: none;
  transition: var(--transition);
}

.footer a:hover {
  color: var(--primary-light);
}

/* Breadcrumb */
.breadcrumb {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: var(--border-radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: var(--secondary-color);
  font-size: 1.2rem;
  padding: 0 0.5rem;
}

.breadcrumb-item a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb-item a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: var(--dark-color);
  font-weight: 500;
}

/* Utility Classes */
.min-vh-50 {
  min-height: 50vh;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-banner {
    padding: 2rem 0;
  }
  
  .display-3 {
    font-size: 2.5rem;
  }
  
  .product-image-modern img {
    height: 220px;
  }
  
  .feature-icon-sm {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

/* Animations */
.fade-in {
  animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}


/* Theme Switcher */
.theme-switcher {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.theme-switcher .btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.theme-switcher .btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
