:root {
  --primary: #5f633b; /* Adjusted to match the logo's primary color */
  --secondary: #f5f2e6; /* Adjusted to match the logo's secondary color */
  --text-dark: #333;
  --text-light: #777;
  --bg-light: #f8f9fa;
  --white: #f5f2e6;
  --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --hover-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
}

header {
  background-color: var(--white);
  background-color: var(--white);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  z-index: 1000;
  top: 0;
  left: 0; /* Ensure it spans the full width */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px; /* Set a consistent height for the logo */
  width: auto; /* Maintain aspect ratio */
  margin-right: 10px; /* Add spacing between the image and text */
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0; /* Remove default margin */
}

.nav-menu li {
  margin-left: 25px;
}

.nav-menu a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
  padding-bottom: 5px;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-menu a:hover {
  color: var(--primary);
}

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 24px;
}

.hero {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--text-dark);
  padding: 120px 0 80px;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
  opacity: 0.9;
}

.features {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.section-title p {
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: var(--white);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature-icon {
  font-size: 40px;
  color: var(--primary);
  margin-bottom: 20px;
}

.feature-card h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.feature-card p {
  color: var(--text-light);
}

.products {
  padding: 80px 0;
  background-color: var(--white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.product-image {
  height: 200px;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding: 20px;
}

.product-category {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.product-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.product-rating {
  color: #ffc107;
  margin-bottom: 10px;
}

.product-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

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

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

.commission {
  background-color: #e9f5ff;
  color: var(--primary);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 15px;
  display: inline-block;
}

.product-button {
  display: block;
  background-color: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 12px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s;
}

.product-button:hover {
  background-color: var(--secondary);
  color: var(--text-dark);
  border-radius: 5px;
  border: 1px solid var(--primary);
}

.testimonials {
  padding: 80px 0;
  background-color: #f0f7ff;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background-color: var(--white);
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--card-shadow);
  position: relative;
}

.testimonial-quote {
  font-size: 18px;
  margin-bottom: 20px;
  font-style: italic;
  color: var(--text-dark);
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
  background-color: #e0e0e0;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.author-info p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.cta {
  padding: 100px 0;
  background: linear-gradient(135deg, #8338ec, var(--primary));
  color: var(--white);
  text-align: center;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

.cta-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.cta-input {
  flex: 1 1 300px;
  padding: 15px;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
}

.cta-submit {
  padding: 15px 30px;
  background-color: var(--secondary);
  color: var(--white);
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 15px rgba(255, 0, 110, 0.3);
}

.cta-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 0, 110, 0.4);
}

/* Footer Styles */
footer {
  background-color: var(--primary);
  color: var(--secondary);
  padding: 60px 0 30px;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo img {
  height: 40px;
  width: auto;
  border-radius: 50%;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  font-size: 18px;
  transition: background-color 0.3s;
}

.social-icon:hover {
  background-color: var(--primary);
}

footer p {
  color: #bbb;
  font-size: 14px;
  margin: 0;
}

footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #333;
  color: #bbb;
  font-size: 14px;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  overflow: auto;
  animation: fadeIn 0.3s;
}

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

.modal-content {
  background-color: var(--white);
  margin: 10% auto;
  padding: 30px;
  width: 90%;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: slideIn 0.3s;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close-modal {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 24px;
  cursor: pointer;
  color: #777;
}

.close-modal:hover {
  color: var(--text-dark);
}

.modal-header {
  margin-bottom: 20px;
  text-align: center;
}

.modal-header h3 {
  font-size: 1.8rem;
  color: var(--primary);
}

.login-form,
.signup-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.form-button {
  background-color: var(--primary);
  color: var(--white);
  padding: 12px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.form-button:hover {
  background-color: #2e6ed1;
}

.form-footer {
  text-align: center;
  margin-top: 20px;
  color: var(--text-light);
}

.form-footer a {
  color: var(--primary);
  text-decoration: none;
}

/* Accordion styles */
.faq {
  padding: 80px 0;
}

.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.accordion-header {
  background-color: var(--white);
  padding: 15px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-header h3 {
  font-size: 1.1rem;
  margin: 0;
}

.accordion-header i {
  transition: transform 0.3s;
}

.accordion-content {
  background-color: #f9f9f9;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-content p {
  padding: 0 20px;
  color: var(--text-light);
}

.active .accordion-header i {
  transform: rotate(180deg);
}

.active .accordion-content {
  padding: 20px 0;
  max-height: 1000px;
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    background-color: var(--white);
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 1000;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 15px 0;
  }

  .hamburger {
    display: block;
  }

  .hero h1 {
    font-size: 2rem;
    text-align: center;
    padding: 0 15px;
  }

  .hero p {
    font-size: 1rem;
    text-align: center;
    padding: 0 15px;
  }

  .section-title h2 {
    font-size: 1.75rem;
    text-align: center;
  }

  .cta h2 {
    font-size: 1.75rem;
    text-align: center;
    padding: 0 10px;
  }

  .cta p {
    font-size: 1rem;
    text-align: center;
    padding: 0 10px;
  }
}

/* Search bar styles */
.search-container {
  margin-left: auto;
  margin-right: 20px;
  position: relative;
}

.search-form {
  display: flex;
}

.search-input {
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 0.9rem;
  width: 200px;
  transition: width 0.3s;
  padding: 8px 15px;
}

.search-input:focus {
  width: 250px;
  outline: none;
  border-color: var(--primary);
}

.search-button {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 1.1rem;
  margin-left: -35px;
}

@media screen and (max-width: 992px) {
  .search-container {
    display: none;
  }
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  box-shadow: 0 2px 10px rgba(0, 0, 150, 0.2);
  z-index: 900;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #2e6ed1;
}

/* Toast notification styles */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: white;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.toast.show {
  opacity: 1;
  visibility: visible;
}

.toast i {
  margin-right: 10px;
  font-size: 1.2rem;
}

.toast.success {
  background-color: #4caf50;
}

.toast.error {
  background-color: #f44336;
}
