/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #ff6b6b;
  --secondary-color: #4ecdc4;
  --dark-color: #1a535c;
  --light-color: #f7fff7;
  --gray-color: #ced4da;
  --text-color: #2d3436;
  --success-color: #2ecc71;
  --logo-color: #ff7846; /* Added logo color variable to match the orange in the logo */
}

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

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

a {
  text-decoration: none;
  color: var(--dark-color);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

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

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

.btn-buy {
  background-color: var(--secondary-color);
  color: white;
  width: 100%;
  padding: 12px;
}

.btn-buy:hover {
  background-color: #3dbeb6;
  transform: translateY(-2px);
}

.section-title {
  text-align: center;
  margin-bottom: 20px;
  color: var(--dark-color);
  font-size: 2.2rem;
}

.section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #666;
}

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

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

/* Logo Styles */
.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo-image {
  height: 50px;
  width: auto;
  margin-bottom: 5px;
  transition: height 0.3s ease;
}

.tagline {
  font-size: 0.9rem;
  color: #777;
}

nav ul {
  display: flex;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  font-weight: 500;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: var(--logo-color);
}

/* Hero Section */
.hero {
  background-color: var(--dark-color);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.highlight {
  color: var(--logo-color);
  font-weight: 700;
}

/* Products Section */
.products {
  padding: 80px 0;
  background-color: #f9f9f9;
}

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

.product-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

.product-image {
  height: 200px;
  overflow: hidden;
}

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

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

.product-content {
  padding: 20px;
}

.product-content h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: var(--dark-color);
}

.product-content p {
  color: #666;
  margin-bottom: 15px;
  font-size: 0.9rem;
  min-height: 85px;
}

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

.original-price {
  text-decoration: line-through;
  color: #999;
  margin-right: 10px;
}

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

/* How It Works Section */
.how-it-works {
  padding: 80px 0;
  background-color: white;
}

.steps {
  display: flex;
  justify-content: space-between;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 250px;
  text-align: center;
  padding: 20px;
  margin: 10px;
}

.step-number {
  width: 50px;
  height: 50px;
  background-color: var(--secondary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 15px;
}

.step h3 {
  margin-bottom: 10px;
  color: var(--dark-color);
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background-color: #f9f9f9;
  text-align: center;
}

.contact p {
  margin-bottom: 30px;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.contact-item {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  min-width: 250px;
}

.contact-item h3 {
  margin-bottom: 10px;
  color: var(--dark-color);
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 50px 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.footer-logo h2 {
  color: var(--logo-color);
  margin-bottom: 10px;
}

.footer-links,
.footer-contact {
  margin-top: 20px;
}

.footer-links h3,
.footer-contact h3 {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a {
  color: #ddd;
  transition: color 0.3s;
}

.footer-links ul li a:hover {
  color: var(--logo-color);
}

/* Footer Policy Links */
.footer-policy-links {
  text-align: center;
  margin-bottom: 20px;
}

.footer-policy-links ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-policy-links ul li a {
  color: #ddd;
  transition: color 0.3s;
  font-size: 0.9rem;
  position: relative;
}

.footer-policy-links ul li a:hover {
  color: var(--logo-color);
}

.footer-policy-links ul li:not(:last-child) a:after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  height: 12px;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.3);
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: white;
  margin: 10% auto;
  padding: 30px;
  border-radius: 8px;
  max-width: 500px;
  position: relative;
}

.close-modal,
.close-confirmation {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: #aaa;
}

.close-modal:hover,
.close-confirmation:hover {
  color: #333;
}

#selected-product {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

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

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

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

.form-help {
  font-size: 0.8rem;
  color: #777;
  margin-top: 5px;
}

.payment-details {
  margin-top: 30px;
}

.payment-details h3 {
  margin-bottom: 15px;
}

.price-summary {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.confirmation-message {
  text-align: center;
}

.confirmation-message h2 {
  color: var(--success-color);
  margin-bottom: 20px;
}

.confirmation-message p {
  margin-bottom: 15px;
}

#confirmation-email {
  font-weight: 700;
}

.close-confirmation-btn {
  margin-top: 20px;
}

/* Policy Pages */
.policy-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.policy-header {
  text-align: center;
  margin-bottom: 40px;
}

.policy-header h1 {
  color: var(--dark-color);
  margin-bottom: 10px;
}

.policy-content {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.policy-content h2 {
  color: var(--dark-color);
  margin: 25px 0 15px;
}

.policy-content p {
  margin-bottom: 15px;
}

.policy-content ul {
  margin-bottom: 15px;
  padding-left: 20px;
}

.policy-content ul li {
  margin-bottom: 8px;
  list-style-type: disc;
}

.back-to-home {
  display: inline-block;
  margin-top: 30px;
  color: var(--logo-color);
  font-weight: 500;
}

.back-to-home:hover {
  text-decoration: underline;
}

/* FAQ Page Styles */
.faq-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.faq-header {
  text-align: center;
  margin-bottom: 40px;
}

.faq-header h1 {
  color: var(--dark-color);
  margin-bottom: 10px;
  font-size: 2.2rem;
}

.faq-header p {
  color: #666;
  font-size: 1.1rem;
}

.faq-content {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}

.category-btn {
  background: none;
  border: none;
  padding: 8px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.category-btn:hover {
  color: var(--logo-color);
}

.category-btn.active {
  background-color: var(--logo-color);
  color: white;
}

.faq-section {
  display: none;
}

.faq-section.active {
  display: block;
}

.faq-section h2 {
  color: var(--dark-color);
  margin-bottom: 20px;
  font-size: 1.5rem;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--secondary-color);
  display: inline-block;
}

.faq-item {
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.faq-question {
  padding: 15px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question h3 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--dark-color);
}

.toggle-icon {
  font-size: 1.5rem;
  color: var(--logo-color);
  transition: transform 0.3s ease;
}

.faq-question.active .toggle-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 0 15px;
  color: #666;
}

.faq-answer a {
  color: var(--logo-color);
  text-decoration: underline;
}

.contact-cta {
  margin-top: 40px;
  text-align: center;
  padding: 30px;
  background-color: #f9f9f9;
  border-radius: 8px;
}

.contact-cta h3 {
  color: var(--dark-color);
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.contact-cta p {
  margin-bottom: 20px;
  color: #666;
}

/* Responsive Styles */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    text-align: center;
  }

  .logo {
    align-items: center;
    margin-bottom: 10px;
  }

  .logo-image {
    height: 40px;
  }

  nav ul {
    margin-top: 20px;
    justify-content: center;
  }

  nav ul li {
    margin: 0 15px;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .steps {
    flex-direction: column;
  }

  .step {
    margin-bottom: 30px;
  }

  .footer-content > div {
    width: 100%;
    margin-bottom: 30px;
    text-align: center;
  }

  .faq-categories {
    flex-direction: column;
    align-items: center;
  }

  .category-btn {
    width: 100%;
    max-width: 250px;
    margin-bottom: 5px;
  }
}

@media (max-width: 480px) {
  .logo-image {
    height: 35px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 60px 0;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .modal-content {
    margin: 20% auto;
    padding: 20px;
  }

  .footer-policy-links ul {
    flex-direction: column;
    gap: 10px;
  }

  .footer-policy-links ul li:not(:last-child) a:after {
    display: none;
  }

  .faq-question h3 {
    font-size: 1rem;
  }
}
