:root {
  --cream: #FFF5F2;
  --rose: #F5BABB;
  --rose-light: #FADDDD;
  --sage: #568F87;
  --sage-dark: #3E6B65;
  --forest: #064232;
}

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

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--forest);
  background: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* HEADER */
header {
  background: white;
  border-bottom: 1px solid rgba(245, 186, 187, 0.3);
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  animation: fadeDown 0.6s ease;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}
.logo {
  font-size: 24px;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  color: var(--forest);
  letter-spacing: -0.5px;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}
.nav-links a {
  text-decoration: none;
  color: var(--forest);
  font-weight: 500;
  font-size: 15px;
  transition: color .3s;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--rose);
  transition: width .3s ease;
}
.nav-links a:hover {
  color: var(--sage);
}
.nav-links a:hover::after {
  width: 100%;
}
.mobile-menu {
  display: none;
  font-size: 22px;
  cursor: pointer;
}

/* HERO */
.hero {
  padding: 90px 20px;
  text-align: center;
  animation: fadeUp 1s ease;
}
.hero h1 {
  font-size: 52px;
  font-weight: 700;
  margin-bottom: 20px;
  font-family: 'Playfair Display', serif;
}
.hero p {
  font-size: 18px;
  color: var(--sage-dark);
  margin-bottom: 30px;
}
.cta-button {
  background: var(--sage);
  color: white;
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: background .3s cubic-bezier(.19,1,.22,1),
              transform .25s cubic-bezier(.34,1.56,.64,1);
}
.cta-button:hover {
  background: var(--forest);
  transform: scale(1.07) rotate(-1deg);
}

/* SECTIONS */
.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin: 60px 0 40px;
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin: 12px auto 0;
  background: linear-gradient(90deg, var(--rose), var(--sage));
  border-radius: 2px;
}

/* CATEGORIES */
.categories {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.category-btn {
  background: white;
  border: 2px solid var(--rose);
  border-radius: 30px;
  padding: 10px 20px;
  text-decoration: none;
  font-size: 14px;
  color: var(--sage);
  transition: all .3s;
}
.category-btn:hover,
.category-btn.active {
  background: var(--sage);
  color: white;
  transform: translateY(-2px) scale(1.05);
}

/* PRODUCTS (Best Deals) */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.product-card {
  background: white;
  border-radius: 16px;
  border: 1px solid rgba(245, 186, 187, 0.3);
  overflow: hidden;
  padding: 26px;
  transition: transform .35s ease, box-shadow .35s ease, rotate .25s ease;
  animation: fadeIn 0.8s ease;
}
.products-grid .product-card:nth-child(odd) {
  animation-delay: .2s;
}
.product-card:hover {
  transform: translateY(-8px) scale(1.02);
  rotate: -1deg;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
}
.product-image {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
}
.product-info {
  padding: 20px 0 0;
}
.product-title {
  font-weight: 600;
  margin-bottom: 8px;
}
.product-rating {
  font-size: 13px;
  margin-bottom: 10px;
  color: #FFA726;
}
.product-price {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}
.affiliate-button {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 14px;
  background: var(--forest);
  color: white;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all .3s cubic-bezier(.19,1,.22,1);
}
.affiliate-button:hover {
  background: var(--sage);
  transform: translateY(-2px) scale(1.02);
}

/* REVIEWS */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-bottom: 60px;
}
.review-card {
  background: white;
  padding: 22px;
  border-radius: 14px;
  border: 1px solid rgba(245, 186, 187, 0.2);
  animation: fadeIn 1s ease;
}
.review-card p {
  font-size: 14px;
  color: var(--sage-dark);
}
.reviewer {
  margin-top: 10px;
  font-weight: 600;
}

/* CONTACT FORM */
.contact-form {
  max-width: 480px;
  margin: 0 auto 60px auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 6px 32px rgba(86, 143, 135, 0.08);
  padding: 36px 32px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 1px solid rgba(245, 186, 187, 0.15);
}
.contact-form label {
  font-weight: 500;
  color: var(--forest);
  margin-bottom: 4px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--rose);
  background: var(--cream);
  font-size: 15px;
  color: var(--forest);
  margin-bottom: 8px;
  transition: border-color .3s, box-shadow .3s;
  outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 2px rgba(86, 143, 135, 0.12);
}
.contact-form textarea {
  resize: vertical;
  min-height: 100px;
  max-height: 260px;
}
.contact-form .cta-button {
  margin-top: 10px;
  font-size: 16px;
  padding: 14px 0;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(86, 143, 135, 0.08);
}
.contact-form .cta-button:active {
  transform: scale(0.98);
}

@media (max-width: 600px) {
  .contact-form {
    padding: 22px 10px 18px 10px;
    max-width: 98vw;
  }
}

/* FOOTER */
footer {
  background: linear-gradient(135deg, var(--forest), var(--sage-dark));
  color: white;
  padding: 50px 20px 30px;
  width: 100%;
  margin-top: auto;
  position: relative;
  left: 0;
  bottom: 0;
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}
.footer-section h3 {
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--rose);
}
.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  position: relative;
  transition: color .3s;
}
.footer-section a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--rose);
  transition: width .3s;
}
.footer-section a:hover {
  color: white;
}
.footer-section a:hover::after {
  width: 100%;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .2);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, .7);
}

/* ANIMATIONS */
.animate-navbar {
  animation: navbarFadeIn 0.9s cubic-bezier(.19,1,.22,1) both;
}

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

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(32px) scale(0.98);
  }
  60% {
    opacity: 0.7;
    transform: translateY(8px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(48px) scale(0.97);
  }
  60% {
    opacity: 0.8;
    transform: translateY(12px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeDown {
  0% {
    opacity: 0;
    transform: translateY(-10px); /* start closer to final position */
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeLeft {
  0% {
    opacity: 0;
    transform: translateX(-32px) scale(0.98);
  }
  60% {
    opacity: 0.7;
    transform: translateX(-8px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes fadeRight {
  0% {
    opacity: 0;
    transform: translateX(32px) scale(0.98);
  }
  60% {
    opacity: 0.7;
    transform: translateX(8px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Animation utility classes */
.animate-fadeIn {
  animation: fadeIn 1.1s cubic-bezier(.19,1,.22,1) both;
}
.animate-fadeUp {
  animation: fadeUp 1.1s cubic-bezier(.19,1,.22,1) both;
}
.animate-fadeDown {
  animation: fadeDown 1.1s cubic-bezier(.19,1,.22,1) both;
}
.animate-fadeLeft {
  animation: fadeLeft 1.1s cubic-bezier(.19,1,.22,1) both;
}
.animate-fadeRight {
  animation: fadeRight 1.1s cubic-bezier(.19,1,.22,1) both;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 60px;
    right: 20px;
    padding: 20px;
    border: 1px solid #eee;
    z-index: 101;
    animation: fadeDown 0.4s ease;
  }
  .mobile-menu {
    display: block;
  }
}
