/* Custom CSS for E-commerce Frontend */

:root {
  --primary-color: #3490dc;
  --secondary-color: #38c172;
  --accent-color: #f6993f;
  --dark-color: #343a40;
  --light-color: #f8f9fa;
  --danger-color: #e3342f;
  --success-color: #38c172;
  --text-color: #333;
  --light-text: #f8f9fa;
  --border-radius: 0.25rem;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
}

/* Header Styles */
.site-header {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.nav-link {
  font-weight: 500;
  transition: var(--transition);
}

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

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 4rem 0;
  margin-bottom: 2rem;
}

.hero-section h1 {
  font-weight: 700;
  font-size: 2.5rem;
}

.hero-section p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Product Cards */
.product-card {
  border: none;
  transition: var(--transition);
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  height: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
}

.product-card .card-img-top {
  height: 220px;
  object-fit: cover;
  border-top-left-radius: var(--border-radius);
  border-top-right-radius: var(--border-radius);
}

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

.product-card .card-text {
  color: #6c757d;
  font-size: 0.9rem;
  height: 3em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card .price {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

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

.product-card .btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
}

/* Product Detail Page */
.product-detail-img {
  max-height: 500px;
  object-fit: contain;
}

.product-detail-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.product-detail-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.product-detail-description {
  margin-bottom: 1.5rem;
}

.color-option {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 10px;
  cursor: pointer;
  border: 2px solid transparent;
}

.color-option.active {
  border-color: var(--dark-color);
}

/* Footer */
.site-footer {
  background-color: var(--dark-color);
  color: var(--light-text);
  padding: 3rem 0;
  margin-top: 3rem;
}

.site-footer h5 {
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.site-footer a:hover {
  color: white;
  text-decoration: none;
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 1rem 0;
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .product-card .card-img-top {
    height: 180px;
  }
  
  .hero-section {
    padding: 2rem 0;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
}

/* Carousel */
.carousel-item {
  height: 350px;
  border-radius: 15px;
  overflow: hidden;
}

.carousel-item img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

/* Category Pills */
.category-pill {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: rgba(var(--primary-color-rgb), 0.1);
  color: var(--primary-color);
  border-radius: 50px;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  transition: var(--transition);
}

.category-pill:hover {
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
}
