:root {
  --color-bg: #FCF8F3;
  --color-header: #EADCF8;
  --color-section: #F5EAEF;
  --color-cards: #ffffff;
  --color-primary: #D8BFD8;
  --color-secondary: #E6E6FA;
  --color-text: #333333;
  --radius: 16px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --transition: 0.3s ease;
}
/* ========== Hero Banner ========== */
.hero {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.hero-img.mobile {
  display: none;
}

@media (max-width: 768px) {
  .hero-img.desktop {
    display: none;
  }
  .hero-img.mobile {
    display: block;
  }
}

.hero-overlay {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.4);
  padding: 40px;
  border-radius: var(--radius);
  color: #fff;
  text-align: center;
  max-width: 800px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 24px;
}
.btn.primary {
  background: var(--color-primary);
  color: #fff;
}
.btn.secondary {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}
.btn.secondary:hover {
  background: var(--color-secondary);
  color: #333;
}
/* ========== Reset & Base ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Poppins', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ========== Layout ========== */
header {
  background: var(--color-header);
  padding: 40px 20px;
  text-align: center;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
}
header h1 {
  font-size: 2.5rem;
  font-weight: 600;
}
main {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}
footer {
  background: var(--color-section);
  padding: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  border-radius: var(--radius) var(--radius) 0 0;
  margin-top: auto;
}

/* ========== Section Titles ========== */
.section-title {
  font-size: 1.8rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 4px;
  background: var(--color-primary);
  bottom: -8px;
  left: 0;
  border-radius: 2px;
}

/* ========== Grids ========== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}

/* ========== Card ========== */
.card {
  background: var(--color-cards);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition);
  text-align: center;
}
.card img.card-img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}
.price {
  font-weight: 600;
  margin: 10px 0 6px;
}
.price s {
  color: #888;
  margin-right: 8px;
  font-weight: normal;
}
.btn {
  width: 100%;
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--color-primary);
  font-weight: 600;
  color: #fff;
  transition: background var(--transition), transform var(--transition);
}
.btn:hover {
  background: var(--color-secondary);
  transform: scale(1.05);
  color: #333;
}

/* ========== Newsletter CTA ========== */
.newsletter {
  background: var(--color-secondary);
  padding: 40px 20px;
  text-align: center;
  border-radius: var(--radius);
  margin-bottom: 60px;
}
.newsletter h2 {
  font-size: 1.9rem;
  margin-bottom: 12px;
}
.newsletter p {
  font-size: 1rem;
  margin-bottom: 24px;
  color: #444;
}
.newsletter-form {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.newsletter-form input[type="email"] {
  padding: 12px 16px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  width: 280px;
  max-width: 100%;
}
.newsletter-form button {
  padding: 12px 24px;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius);
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.newsletter-form button:hover {
  background: var(--color-text);
  transform: scale(1.05);
}

/* ========== Carousel (What Readers Say) ========== */
.carousel {
  overflow: hidden;
  position: relative;
  max-width: 600px;
  margin: 0 auto 60px;
  background: var(--color-cards);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 160px;
}
.carousel-track {
  display: flex;
  transition: transform 0.6s ease-in-out;
}
.review {
  flex: 0 0 100%;
  padding: 40px 20px;
  text-align: center;
  font-size: 1rem;
  color: #444;
}
.stars {
  color: #ffc107;
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.popup-content {
  background: #fff;
  padding: 30px;
  border-radius: var(--radius);
  text-align: center;
  width: 90%;
  max-width: 400px;
}
.popup-content h3 {
  margin-bottom: 10px;
}
.popup-content input[type="email"] {
  padding: 10px;
  width: 100%;
  margin-bottom: 12px;
  border-radius: var(--radius);
  border: 1px solid #ccc;
}
.popup-content button {
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius);
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
}
.popup-content .close-btn {
  background: transparent;
  color: #333;
  margin-top: 10px;
  text-decoration: underline;
}

