:root {
  --primary: #0033a0; /* Ruziwellness blue */
  --secondary: #f8f9fa;
  --accent: #e11ba9; /* Ruziwellness accent color - made more vibrant for better contrast */
  --accent-secondary: #7b68ee;
  --text-primary: #212529;
  --text-secondary: #6c757d; /* Changed from #f0c813 to ensure readability */
  --light: #ffffff;
  --dark: #343a40;
  --border-radius: 8px;
  --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
  --gradient-primary: linear-gradient(135deg, #0033a0 0%, #4169e1 100%);
  --gradient-accent: linear-gradient(135deg, #e11ba9 0%, #ff7f50 100%);
  --gradient-dark: linear-gradient(135deg, rgb(247, 191, 5) 0%, rgb(220, 115, 176) 100%);
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-primary);
  background-color: #f8f9fa;
  overflow-x: hidden;
}

/* Header & Navigation */
/* .navbar {
  background-color: white !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-brand img {
  max-height: 40px;
}

.nav-link {
  color: var(--text-primary) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary) !important;
} */

.dropdown-menu {
  border: none;
  box-shadow: var(--box-shadow);
  border-radius: var(--border-radius);
}

.dropdown-item:hover {
  background-color: rgba(0, 51, 160, 0.05);
  color: var(--primary);
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 500px;
  overflow: hidden;
  margin-bottom: 0;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

/* Remove the semi-transparent overlay */
.hero-overlay {
  display: none;
}

/* Update hero content to handle multiple contents */
.hero-content {
  position: absolute;
  z-index: 2;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 0 20px;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  pointer-events: none;
}

.hero-content.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.2rem;
  max-width: 700px;
  margin-bottom: 30px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Add content background for better readability */
.hero-content-inner {
  background: linear-gradient(135deg, rgba(224, 203, 8, 0.728) 0%, rgba(225, 27, 169, 0.7) 100%);
  padding: 30px;
  border-radius: 10px;
  max-width: 800px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-search {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 30px;
  position: relative;
}

.hero-search input {
  width: 100%;
  padding: 15px 20px;
  border-radius: 30px;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  font-size: 1rem;
  padding-right: 50px;
}

.hero-search button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero navigation dots */
.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 3;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  margin: 0 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot.active {
  background-color: white;
  transform: scale(1.2);
}

/* Button styles */
.btn {
  border-radius: 30px;
  padding: 10px 20px;
  font-weight: 500;
  transition: var(--transition);
  text-transform: none;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--light);
  border-color: var(--primary);
  color: var(--light); /* Ensure text is white for contrast */
}

.btn-primary:hover {
  background: #aec2ea;
  /* border-color: #002a80; */
  color: var(--light);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 51, 160, 0.2);
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: white; /* Ensure text is white for contrast */
}

.btn-accent:hover {
  background: #c0168f; /* Darker shade for hover */
  border-color: #c0168f;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(225, 27, 169, 0.2);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  background: transparent; /* Ensure background is transparent */
}

.btn-outline-primary:hover {
  background: var(--primary);
  color: white;
}

.btn-outline-light {
  color: white;
  border-color: white;
  background: transparent; /* Ensure background is transparent */
}

.btn-outline-light:hover {
  background: white;
  color: var(--primary);
}

/* Section titles */
.section-title {
  position: relative;
  display: inline-block;
  font-weight: 600;
  margin-bottom: 30px;
  color: var(--text-primary);
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 50px;
  height: 3px;
  background: var(--primary);
}

/* Promotional Banner */
.promo-section {
  padding: 30px 0;
  background-color: #f8f9fa;
}

.promo-banner {
  display: flex;
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.promo-content {
  flex: 1;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.promo-image {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 300px;
}

.promo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.promo-banner:hover .promo-image img {
  transform: scale(1.05);
}

.promo-badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 15px;
  animation: pulse 2s infinite;
}

.promo-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.promo-discount {
  display: flex;
  align-items: baseline;
  margin-bottom: 15px;
}

.discount-value {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.discount-symbol {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-left: 5px;
}

.promo-description {
  font-size: 1rem;
  color: var(--text-primary); /* Changed from var(--text-secondary) for better readability */
  margin-bottom: 20px;
  max-width: 500px;
  line-height: 1.6;
}

.promo-timer {
  display: flex;
  margin-bottom: 20px;
  gap: 10px;
}

.timer-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f8f9fa;
  padding: 10px;
  border-radius: var(--border-radius);
  min-width: 60px;
}

.timer-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.timer-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

/* Featured Categories */
.category-card {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 180px;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.category-card:hover img {
  transform: scale(1.05);
}

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  color: white;
}

.category-name {
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 5px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  background-color: #f8f9fa;
  padding: 5px 10px;
  border-radius: 20px;
  box-shadow: #212529 0 2px 5px;
}

.category-count {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Product Cards */
.product-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Update product image to make it more interactive on hover */
.product-image {
  position: relative;
  overflow: hidden;
  height: 200px;
  cursor: pointer; /* Add cursor pointer to indicate it's clickable */
  transition: transform 0.3s ease;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

/* Add overlay effect on hover */
.product-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 51, 160, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-image:hover::after {
  opacity: 1;
}

.product-discount {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent);
  color: white;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  animation: pulse 2s infinite;
}

.product-actions {
  position: absolute;
  bottom: -40px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.9);
  transition: bottom 0.3s;
  z-index: 10;
}

.product-card:hover .product-actions {
  bottom: 0;
}

.product-action-btn {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: white;
  border: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary); /* Ensure icon color has contrast */
  transition: var(--transition);
  cursor: pointer;
}

.product-action-btn:hover {
  background: var(--primary);
  color: white; /* Ensure text is white for contrast on hover */
  border-color: var(--primary);
  transform: translateY(-2px);
}

.product-details {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-category {
  font-size: 0.8rem;
  color: var(--text-primary); /* Changed from var(--text-secondary) for better readability */
  margin-bottom: 5px;
}

.product-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.4rem;
}

.product-rating {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.rating-stars {
  color: #ffc107;
  font-size: 0.9rem;
  margin-right: 5px;
}

.rating-count {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.product-price {
  margin-top: auto;
  display: flex;
  align-items: baseline;
}

.current-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.original-price {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: line-through;
  margin-left: 8px;
}

/* Make add to cart button more prominent */
.add-to-cart {
  margin-top: 10px;
  width: 100%;
  padding: 10px;
  background: var(--primary);
  color: white; /* Ensure text is white for contrast */
  border: none;
  border-radius: 30px;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}

.add-to-cart:hover {
  background: #002a80;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 51, 160, 0.2);
}

/* Featured Boxes */
.feature-box {
  display: flex;
  align-items: center;
  background: white;
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 100%;
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: rgba(0, 51, 160, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
  margin-right: 15px;
  transition: var(--transition);
}

.feature-box:hover .feature-icon {
  background: var(--primary);
  color: white;
}

.feature-content h5 {
  font-weight: 600;
  margin: 0;
  font-size: 1rem;
}

.feature-content p {
  margin: 5px 0 0;
  font-size: 0.8rem;
  color: var(--text-primary); /* Changed from var(--text-secondary) for better readability */
}

/* Brands Section */
.brands-section {
  padding: 50px 0;
  background-color: white;
}

.brand-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  padding: 15px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.brand-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
}

.brand-card img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
  transition: var(--transition);
  /* Remove grayscale and opacity */
}

.brand-card:hover img {
  transform: scale(1.05);
  /* Remove filter change on hover since we're showing full color by default */
}

/* Newsletter Section */
.newsletter-section {
  padding: 50px 0;
  background: var(--gradient-dark);
  color: white;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-content h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.newsletter-content p {
  margin-bottom: 25px;
  opacity: 0.9;
}

.newsletter-form {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  width: 100%;
  padding: 15px 20px;
  border-radius: 30px;
  border: none;
  font-size: 1rem;
  padding-right: 150px;
}

.newsletter-form button {
  position: absolute;
  top: 5px;
  right: 5px;
  padding: 10px 20px;
  border-radius: 30px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  font-weight: 600;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background: var(--primary);
}

/* Testimonials */
.testimonial-section {
  padding: 50px 0;
  background: var(--gradient-primary);
  color: white;
}

.testimonial-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: var(--box-shadow);
  height: 100%;
}

.testimonial-content {
  font-style: italic;
  color: var(--text-primary); /* Changed from var(--text-secondary) for better readability */
  margin-bottom: 20px;
  position: relative;
  padding-left: 25px;
}

.testimonial-content::before {
  content: '"';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 2rem;
  color: var(--primary);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-author-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
}

.testimonial-author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-author-info h5 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
}

.testimonial-author-info p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Recently Viewed & Popular Now */
.small-product-card {
  display: flex;
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  margin-bottom: 15px;
}

.small-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.small-product-image {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.small-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.small-product-details {
  padding: 10px;
  flex: 1;
}

.small-product-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.small-product-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Footer */
.footer {
  background-color: #f8f9fa;
  padding: 50px 0 20px;
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-primary); /* Changed from var(--text-secondary) for better readability */
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
  text-decoration: none;
}

.footer-contact {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: var(--text-primary); /* Changed from var(--text-secondary) for better readability */
}

.footer-contact i {
  width: 30px;
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid #eee;
  padding-top: 20px;
  margin-top: 30px;
  text-align: center;
  color: var(--text-primary); /* Changed from var(--text-secondary) for better readability */
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-link {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary);
  color: white;
}

/* Animations */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(15deg);
  }
  50% {
    transform: translateY(-10px) rotate(15deg);
  }
  100% {
    transform: translateY(0) rotate(15deg);
  }
}

/* Responsive */
@media (max-width: 991px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .promo-content,
  .promo-image {
    flex: 1;
  }

  .promo-title {
    font-size: 1.8rem;
  }

  .discount-value {
    font-size: 3rem;
  }
}

@media (max-width: 767px) {
  .hero-section {
    height: 400px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .promo-banner {
    flex-direction: column-reverse;
  }

  .promo-image {
    height: 200px;
  }

  .promo-title {
    font-size: 1.5rem;
  }

  .discount-value {
    font-size: 2.5rem;
  }

  .feature-box {
    margin-bottom: 15px;
  }
}

@media (max-width: 575px) {
  .hero-section {
    height: 350px;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-search input {
    padding: 12px 15px;
  }

  .promo-content {
    padding: 20px;
  }

  .timer-unit {
    min-width: 50px;
    padding: 8px;
  }

  .timer-value {
    font-size: 1.2rem;
  }
}
