/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  color: #333;
  background: #f9f9f9;
  line-height: 1.6;
}

/* CONTAINER */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* HERO SECTION */
.hero-section {
  background: linear-gradient(135deg, #6AA9FD, #4A90E2);
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}
.hero-section h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.hero-section p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}
.cta-button {
  display: inline-block;
  background: #fff;
  color: #4A90E2;
  padding: 15px 30px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: 0.3s;
}
.cta-button:hover {
  background: #e0e0e0;
  color: #333;
}

/* SECTION STYLES */
main section {
  background: #fff;
  margin: 20px 0;
  padding: 40px 0;
  text-align: center;
}
main section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
main section p,
main section ul {
  font-size: 1rem;
  line-height: 1.8;
  margin: 0 auto 15px;
  max-width: 800px;
}
main section ul {
  list-style: none;
}
main section ul li {
  position: relative;
  margin: 10px 0;
  padding-left: 25px;
}
main section ul li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4A90E2;
}

/* LEGAL SECTION */
#legal article {
  text-align: left;
  margin-bottom: 20px;
  max-width: 800px;
  margin: 0 auto 20px;
}
#legal article h3 {
  color: #4A90E2;
  margin-bottom: 10px;
}

/* FOOTER */
footer {
  background: #333;
  color: #fff;
  padding: 40px 0;
  text-align: center;
}
.footer-social a {
  color: #fff;
  margin: 0 10px;
  font-size: 1.5rem;
  transition: 0.3s;
}
.footer-social a:hover {
  color: #4A90E2;
}
.footer-links p {
  margin: 20px 0;
}
.footer-links a {
  color: #4A90E2;
  text-decoration: underline;
}

/* AFFILIATE CART STYLES */
.affiliate-cart {
  margin-top: 30px;
  color: #fff;
  text-align: center;
}
.affiliate-cart h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}
.cart-intro {
  margin-bottom: 20px;
  font-size: 1rem;
}
.show-tools-btn {
  background: #4A90E2;
  color: #fff;
  border: none;
  padding: 8px 16px;
  margin-left: 5px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}
.show-tools-btn:hover {
  background: #6AA9FD;
}
.cart-grid {
  display: none; /* hidden by default; toggled via JS */
  margin-top: 30px;
  text-align: left;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
@media (min-width: 768px) {
  .cart-grid {
    display: flex;
  }
}
.cart-item {
  background: #444;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  padding: 20px;
  margin-bottom: 20px;
  width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cart-item h3 {
  margin-bottom: 10px;
  color: #fff;
}
.cart-item p {
  margin-bottom: 20px;
  color: #ddd;
  font-size: 0.95rem;
}
.cart-btn {
  background: #4A90E2;
  color: #fff;
  text-decoration: none;
  text-align: center;
  padding: 10px;
  border-radius: 4px;
  font-weight: bold;
  transition: background 0.3s;
}
.cart-btn:hover {
  background: #6AA9FD;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  .hero-section p {
    font-size: 1rem;
  }
  main section h2 {
    font-size: 1.6rem;
  }
  .cart-grid {
    display: block; /* fallback for smaller screens */
  }
  .cart-item {
    margin: 0 auto 20px;
    width: 90%;
  }
}
