/* Zhifa Fashion Custom Styles */

:root {
  --primary-color: #997950;
  --secondary-color: #8b6b4a;
  --accent-color: #a68a6b;
  --dark-color: #4a3a2a;
  --light-color: #f5f2ed;
  --success-color: #997950;
  --warning-color: #997950;
  --danger-color: #997950;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #4a3a2a;
}

/* Navbar Styles */
.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: #997950 !important;
}

.navbar-nav .nav-link {
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #997950 !important;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #997950, #8b6b4a);
  color: white;
  padding: 100px 0;
  margin-top: 76px;
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Product Cards */
.product-card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 30px;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-card .card-img-top {
  height: 300px;
  object-fit: cover;
}

.product-card .card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.product-card .card-title {
  font-weight: 600;
  color: #4a3a2a;
  margin-bottom: 0.5rem;
}

.product-card .card-text {
  flex-grow: 1;
  margin-bottom: 1rem;
}

/* Rating and Price Container */
.product-info-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.product-rating {
  color: #997950;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.9rem;
}

.product-rating i {
  font-size: 0.85rem;
}

/* Filter Rating Stars - Horizontal Layout */
.form-check-label .product-rating {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.form-check-label .fas.product-rating,
.form-check-label .far.product-rating {
  display: inline;
  margin-right: 2px;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #997950;
  margin: 0;
}

/* Ensure buttons are at bottom */
.product-card .mt-auto {
  margin-top: auto !important;
}

/* Category Cards */
.category-card {
  background: linear-gradient(45deg, #997950, #8b6b4a);
  color: white;
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease;
  margin-bottom: 30px;
}

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

.category-card i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Features Section */
.features-section {
  background-color: #f5f2ed;
  padding: 80px 0;
}

.feature-item {
  text-align: center;
  padding: 2rem;
}

.feature-item i {
  font-size: 3rem;
  color: #997950;
  margin-bottom: 1rem;
}

/* Footer */
.footer {
  background-color: #4a3a2a;
  color: white;
  padding: 50px 0 20px;
}

.footer h5 {
  color: #997950;
  margin-bottom: 1rem;
}

.footer a {
  color: #d4c4b0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #997950;
}

.footer-bottom {
  border-top: 1px solid #8b6b4a;
  padding-top: 20px;
  margin-top: 30px;
}

/* Buttons */
.btn-primary {
  background-color: #997950;
  border-color: #997950;
  border-radius: 25px;
  padding: 10px 25px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #8b6b4a;
  border-color: #8b6b4a;
  transform: translateY(-2px);
}

.btn-outline-primary {
  color: #997950;
  border-color: #997950;
  border-radius: 25px;
  padding: 10px 25px;
  font-weight: 500;
}

.btn-outline-primary:hover {
  background-color: #997950;
  border-color: #997950;
}

/* Form Styles */
.form-control {
  border-radius: 10px;
  border: 2px solid #e9ecef;
  padding: 12px 15px;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: #997950;
  box-shadow: 0 0 0 0.2rem rgba(153, 121, 80, 0.25);
}

/* Carousel */
.carousel-item {
  height: 500px;
}

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

.carousel-caption {
  background: rgba(0,0,0,0.5);
  border-radius: 15px;
  padding: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .hero-section {
    padding: 60px 0;
  }
  
  .carousel-item {
    height: 300px;
  }
  
  /* Mobile Navbar Improvements */
  .navbar-collapse {
    background-color: white;
    border-radius: 15px;
    margin-top: 10px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  }
  
  .navbar-nav {
    margin-bottom: 20px;
  }
  
  .navbar-nav .nav-item {
    margin-bottom: 8px;
  }
  
  .navbar-nav .nav-link {
    padding: 12px 20px;
    border-radius: 10px;
    background-color: #f8f9fa;
    margin-bottom: 5px;
    font-weight: 500;
    color: #4a3a2a !important;
    transition: all 0.3s ease;
  }
  
  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active {
    background-color: #997950;
    color: white !important;
    transform: translateX(5px);
  }
  
  /* Mobile Search Bar */
  .mobile-search {
    width: 100% !important;
    margin-bottom: 15px;
  }
  
  .mobile-search .form-control {
    border-radius: 25px;
    padding: 12px 20px;
    border: 2px solid #e9ecef;
  }
  
  .mobile-search .btn {
    border-radius: 25px;
    padding: 12px 20px;
  }
  
  /* Mobile Action Buttons */
  .mobile-actions {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }
  
  .mobile-actions .btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 15px;
    border-radius: 25px;
    font-weight: 500;
    font-size: 14px;
  }
  
  .mobile-actions .position-relative {
    flex: 1;
  }
  
  .mobile-actions .dropdown {
    flex: 1;
  }
  
  .mobile-actions .dropdown .btn {
    width: 100%;
  }
  
  /* Cart Badge Mobile */
  .cart-badge {
    top: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    font-size: 11px;
  }
  
  /* Navbar Toggler */
  .navbar-toggler {
    border: 2px solid #997950;
    border-radius: 8px;
    padding: 8px 12px;
  }
  
  .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(153, 121, 80, 0.25);
  }
  
  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23997950' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }
}

/* Extra small devices */
@media (max-width: 576px) {
  .mobile-actions {
    flex-direction: column;
    gap: 8px;
  }
  
  .mobile-actions .btn,
  .mobile-actions .dropdown {
    width: 100%;
    flex: none;
  }
  
  .navbar-collapse {
    padding: 15px;
  }
  
  .navbar-nav .nav-link {
    padding: 10px 15px;
    font-size: 14px;
  }
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Shopping Cart Badge */
.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #997950;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 30px 0;
}

/* Newsletter Section */
.newsletter-section {
  background: linear-gradient(135deg, #a68a6b, #8b6b4a);
  color: white;
  padding: 60px 0;
  text-align: center;
}

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

/* Testimonials */
.testimonial-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

/* Override Bootstrap colors */
.text-warning {
  color: #997950 !important;
}

.text-success {
  color: #997950 !important;
}

.text-danger {
  color: #997950 !important;
}

.text-info {
  color: #997950 !important;
}

.bg-primary {
  background-color: #997950 !important;
}

.bg-secondary {
  background-color: #8b6b4a !important;
}

.bg-success {
  background-color: #997950 !important;
}

.bg-warning {
  background-color: #997950 !important;
}

.bg-danger {
  background-color: #997950 !important;
}

.bg-info {
  background-color: #997950 !important;
}

.btn-outline-secondary {
  color: #997950 !important;
  border-color: #997950 !important;
}

.btn-outline-secondary:hover {
  background-color: #997950 !important;
  border-color: #997950 !important;
  color: white !important;
}

.btn-secondary {
  background-color: #8b6b4a !important;
  border-color: #8b6b4a !important;
}

.btn-secondary:hover {
  background-color: #997950 !important;
  border-color: #997950 !important;
}

.btn-outline-danger {
  color: #997950 !important;
  border-color: #997950 !important;
}

.btn-outline-danger:hover {
  background-color: #997950 !important;
  border-color: #997950 !important;
  color: white !important;
}

.btn-danger {
  background-color: #997950 !important;
  border-color: #997950 !important;
}

.btn-danger:hover {
  background-color: #8b6b4a !important;
  border-color: #8b6b4a !important;
}

.btn-light {
  background-color: #f5f2ed !important;
  border-color: #f5f2ed !important;
  color: #4a3a2a !important;
}

.btn-light:hover {
  background-color: #e8e0d8 !important;
  border-color: #e8e0d8 !important;
  color: #4a3a2a !important;
}

.btn-outline-light {
  color: #f5f2ed !important;
  border-color: #f5f2ed !important;
}

.btn-outline-light:hover {
  background-color: #f5f2ed !important;
  border-color: #f5f2ed !important;
  color: #4a3a2a !important;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.text-primary {
  color: #997950 !important;
}

/* Ikon visi/misi dan statistik */
.visi-misi-icon, .statistic-number {
  color: #997950 !important;
}