/* Customer/Home Page Additional Styling */

/* Category Cards */
.category-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

.category-card i {
  transition: transform 0.3s ease;
}

.category-card:hover i {
  transform: scale(1.2);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #e8f4f8 0%, #f0e8f4 100%);
  padding: 4rem 0;
  border-radius: 0 0 30px 30px;
  margin-bottom: 3rem;
}

.hero-title {
  color: var(--primary-soft);
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-subtitle {
  color: #6b7280;
  font-size: 1.2rem;
}

/* Category Pills */
.category-pill {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: white;
  border-radius: 25px;
  margin: 0.3rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-decoration: none;
  color: #4a5568;
  font-weight: 500;
}

.category-pill:hover {
  background: linear-gradient(
    135deg,
    var(--primary-soft) 0%,
    var(--primary-light) 100%
  );
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124, 156, 191, 0.3);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
}

/* Price Tag */
.price-tag {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-soft);
  margin: 0.5rem 0;
}

.price-original {
  text-decoration: line-through;
  color: #9ca3af;
  font-size: 1rem;
  margin-left: 0.5rem;
}

/* Stock Badge */
.stock-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--success-soft);
  color: #2d5a3d;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.out-of-stock {
  background: var(--danger-soft);
  color: #7a2c2a;
}

/* Search Bar */
.search-bar {
  max-width: 600px;
  margin: 2rem auto;
}

.search-bar .form-control {
  border-radius: 25px;
  padding: 0.8rem 1.5rem;
  border: 2px solid #e2e8f0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.search-bar .btn {
  border-radius: 25px;
  padding: 0.8rem 2rem;
}

/* Cart Badge */
.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--danger-soft);
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(244, 166, 163, 0.4);
}

/* Feature Box */
.feature-box {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}

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

.feature-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.feature-icon.delivery {
  background: linear-gradient(135deg, var(--success-soft) 0%, #b5e4ca 100%);
  color: #2d5a3d;
}

.feature-icon.payment {
  background: linear-gradient(135deg, var(--info-soft) 0%, #bde5f0 100%);
  color: #2a4a5a;
}

.feature-icon.quality {
  background: linear-gradient(135deg, var(--warning-soft) 0%, #f9dfb0 100%);
  color: #5a4a2a;
}

/* Testimonial Card */
.testimonial-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--card-shadow);
  margin-bottom: 1.5rem;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary-soft) 0%,
    var(--primary-light) 100%
  );
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.rating-stars {
  color: var(--warning-soft);
  font-size: 1.2rem;
}

/* Quick Add to Cart */
.quick-add-btn {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary-soft) 0%,
    var(--primary-light) 100%
  );
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(124, 156, 191, 0.3);
  opacity: 0;
  transition: all 0.3s ease;
}

.product-card:hover .quick-add-btn {
  opacity: 1;
}

.quick-add-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(124, 156, 191, 0.4);
}

/* Promo Banner */
.promo-banner {
  background: linear-gradient(135deg, var(--secondary-soft) 0%, #f4d4d7 100%);
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--card-shadow);
}

.promo-banner h3 {
  color: #7a2c2a;
  font-weight: 700;
}

/* Newsletter */
.newsletter-section {
  background: linear-gradient(
    135deg,
    var(--primary-soft) 0%,
    var(--primary-light) 100%
  );
  border-radius: 20px;
  padding: 3rem;
  color: white;
  text-align: center;
  margin: 3rem 0;
}

.newsletter-input {
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-input .form-control {
  border: none;
  border-radius: 25px 0 0 25px;
  padding: 1rem 1.5rem;
}

.newsletter-input .btn {
  border-radius: 0 25px 25px 0;
  padding: 1rem 2rem;
  background: white;
  color: var(--primary-soft);
  font-weight: 600;
}

/* Floating Action Button */
.fab-cart {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary-soft) 0%,
    var(--primary-light) 100%
  );
  color: white;
  border: none;
  box-shadow: 0 6px 20px rgba(124, 156, 191, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 1000;
  transition: all 0.3s ease;
}

.fab-cart:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(124, 156, 191, 0.5);
}

/* Loading Skeleton */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 8px;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Product Detail Page */
.product-detail-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.product-detail-image img {
  width: 100%;
  height: auto;
  transition: all 0.3s ease;
}

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

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.quantity-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 2px solid var(--primary-light);
  background: white;
  color: var(--primary-soft);
  font-weight: 700;
  transition: all 0.3s ease;
}

.quantity-btn:hover {
  background: var(--primary-light);
  color: white;
}

.quantity-input {
  width: 80px;
  text-align: center;
  font-weight: 700;
  font-size: 1.2rem;
}

/* Checkout Steps */
.checkout-steps {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.checkout-step {
  display: flex;
  align-items: center;
  position: relative;
}

.step-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: all 0.3s ease;
}

.step-circle.active {
  background: linear-gradient(
    135deg,
    var(--primary-soft) 0%,
    var(--primary-light) 100%
  );
  color: white;
  box-shadow: 0 4px 12px rgba(124, 156, 191, 0.3);
}

.step-line {
  width: 100px;
  height: 2px;
  background: #e2e8f0;
  margin: 0 1rem;
}

.step-line.active {
  background: var(--primary-light);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-state-icon {
  font-size: 5rem;
  color: #e2e8f0;
  margin-bottom: 1rem;
}

.empty-state h3 {
  color: #9ca3af;
  margin-bottom: 1rem;
}

/* Responsive Mobile */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }

  .fab-cart {
    bottom: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .checkout-steps {
    flex-direction: column;
    align-items: center;
  }

  .step-line {
    width: 2px;
    height: 50px;
    margin: 0.5rem 0;
  }
}
