/* ==== RESET & BODY ==== */
body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  background: #f9f8fb;
  color: #2d2640;
  font-size: 16px;
  line-height: 1.5;
}
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ==== HERO SECTION ==== */
.hero {
  background: linear-gradient(110deg, #ffe2f0 70%, #f3e4ff 100%);
  padding: 42px 0 20px 0;
  border-bottom: 1.5px solid #f7c2e6;
}
.hero-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}
.hero-main > div {
  flex: 1 1 350px;
}
.hero-img,
#heroSlideImg {
  width: 340px;
  height: 340px;
  max-width: 100vw;
  max-height: 65vw;
  border-radius: 32px;
  margin-left: 40px;
  box-shadow: 0 8px 36px rgba(201,79,138,0.12);
  transition: opacity .35s;
  object-fit: contain;
  background: #fff6fa;
  display: block;
}
#heroSlideImg.fadeout { opacity: 0.17; }

.hero h1 {
  color: #be2580;
  font-size: 2.3rem;
  font-weight: 800;
  margin: 0 0 12px 0;
  letter-spacing: -0.5px;
}
.subtitle {
  color: #8b3b69;
  font-size: 1.09rem;
  margin-bottom: 14px;
}
.top-benefits {
  display: flex;
  gap: 18px;
  margin-bottom: 18px;
  padding-left: 0;
  list-style: none;
}
.top-benefits li {
  display: flex;
  align-items: center;
  background: #fff5fa;
  color: #ab3381;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 22px;
  padding: 5px 18px 5px 8px;
  box-shadow: 0 1.5px 6px #f9e2f3;
}
.top-benefits img {
  width: 21px; height: 21px; margin-right: 8px;
}
.btn, .sticky-btn, .table-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #c94f8a 40%, #ff87bb 100%);
  color: #fff;
  padding: 12px 34px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.18rem;
  border: none;
  box-shadow: 0 2px 10px rgba(201,79,138,0.11);
  text-decoration: none;
  transition: background .18s, box-shadow .18s, transform .16s;
  cursor: pointer;
  text-align: center;
}
.btn:hover, .sticky-btn:hover, .table-buy:hover {
  background: linear-gradient(90deg, #a42e60 30%, #ff7dbb 100%);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 5px 22px rgba(201,79,138,0.15);
}
.hero-btn { margin-top: 18px; }

/* ==== TRUST BADGES ==== */
.trust-row {
  margin-top: 20px;
  display: flex;
  gap: 36px;
  justify-content: flex-start;
  align-items: center;
}
.trust-row img {
  width: 48px; height: 48px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 8px rgba(180,60,130,0.10);
}

/* ==== SECTION TITLES ==== */
.section-title {
  font-size: 1.42rem;
  color: #a02b7d;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-top: 38px;
  margin-bottom: 22px;
  text-align: left;
}
@media (max-width: 650px) {
  .section-title { margin-top: 26px; text-align: center; }
}

/* ==== PRODUCT GRID ==== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(285px,1fr));
  gap: 30px;
}
.product-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 20px rgba(180,60,130,.09);
  padding: 26px 18px 22px 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow .17s;
}
.product-card:hover {
  box-shadow: 0 10px 40px rgba(180,60,130,.17);
  transform: translateY(-3px) scale(1.015);
}
.product-card img {
  width: 165px;
  height: 165px;
  object-fit: contain;
  margin-bottom: 13px;
  background: #f7e6fb;
  border-radius: 20px;
  box-shadow: 0 2px 7px #fbe8fa;
}
.card-info { width: 100%; }
.product-card h3 {
  margin: 10px 0 8px 0;
  color: #8c3872;
  font-size: 1.17rem;
  font-weight: 700;
  min-height: 44px;
  text-align: left;
  letter-spacing: -0.3px;
}
.product-card h3 span {
  font-weight: 400;
  color: #ad5d96;
  font-size: 0.98rem;
}
.stars {
  color: #ffbe36;
  font-size: 1.11rem;
  margin-bottom: 8px;
}
.product-card ul {
  padding-left: 16px;
  color: #58576a;
  font-size: 1.05rem;
  margin-bottom: 9px;
}
.price {
  font-weight: 700;
  color: #c94f8a;
  font-size: 1.18rem;
  margin-bottom: 4px;
}
.price-old {
  color: #be2580cc;
  text-decoration: line-through;
  margin-right: 9px;
  font-weight: 400;
  font-size: 0.98em;
  opacity: .7;
}
.price-sale {
  color: #d02a67;
  font-weight: 800;
  font-size: 1.12em;
  background: #fff0fa;
  padding: 2px 10px;
  border-radius: 13px;
  margin-left: 3px;
  box-shadow: 0 1px 4px #f7d7e777;
}

/* ==== PRODUCT CARD BADGES ==== */
.ribbon {
  position: absolute;
  left: -12px;
  top: 16px;
  background: linear-gradient(90deg, #ff87bb 50%, #c94f8a 100%);
  color: #fff;
  font-size: 0.97rem;
  font-weight: 700;
  padding: 4px 18px;
  border-radius: 0 18px 18px 0;
  z-index: 2;
  letter-spacing: 0.3px;
  box-shadow: 0 1.5px 8px #f2ecf9;
}
.ribbon.bestseller {
  background: linear-gradient(90deg, #eebeff 40%, #d754a8 100%);
}
.ribbon.limited {
  background: linear-gradient(90deg, #ffbe42 40%, #fa5875 100%);
  color: #7a2222;
}
.ribbon.choice, .ribbon.amz {
  background: linear-gradient(90deg, #72c6ff 40%, #3c6fd4 100%);
  color: #fff;
}
.ribbon.overall {
  background: linear-gradient(90deg, #ffe179 40%, #fc9f4c 100%);
  color: #885200;
}
.ribbon.user-recommend, .ribbon.userrec {
  background: linear-gradient(90deg, #5ee27d 40%, #1fb788 100%);
  color: #00533f;
}

/* ==== COMPARISON TABLE ==== */
.compare-table-wrap {
  margin: 36px 0 0 0;
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 2px 14px #f2ecf9;
  padding: 20px 8px 10px 8px;
}
.table-scroll,
.compare-table-scroll {
  overflow-x: auto;
  width: 100%;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
  background: none;
}
.compare-table th, .compare-table td {
  padding: 9px 10px;
  border-bottom: 1.3px solid #f3d7eb;
  text-align: left;
  font-size: 1.02rem;
}
.compare-table th {
  color: #b74690;
  font-size: 1.04rem;
  background: #fceaf6;
}
.compare-table td {
  color: #502f57;
}
.compare-table .product-thumb {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid #eee;
  background: #fff;
  margin-right: 6px;
  vertical-align: middle;
}
.table-buy {
  background: linear-gradient(90deg, #be2580 40%, #ff87bb 100%);
  color: #fff;
  padding: 8px 22px;
  border-radius: 18px;
  font-size: 1.02rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  transition: background 0.18s;
  box-shadow: 0 1px 6px #0001;
}
.table-buy:hover {
  background: linear-gradient(90deg, #a42e60 20%, #ff7dbb 100%);
}

/* ==== TESTIMONIALS ==== */
.testimonials {
  margin: 50px 0 0 0;
  text-align: center;
  background: #fff6fa;
  padding: 36px 12px 24px 12px;
  border-radius: 18px;
  box-shadow: 0 2px 10px #fae5f7;
}
.testimonial-slider {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 22px;
  margin-top: 24px;
  min-height: 74px;
  position: relative;
}
.testimonial {
  opacity: 0.46;
  pointer-events: none;
  transition: opacity .18s;
  max-width: 390px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: #7a3b57;
  background: #fff;
  border-radius: 17px;
  padding: 18px 20px 14px 20px;
  box-shadow: 0 1px 10px #f1e2fa;
  position: absolute;
  left: 0; right: 0;
  z-index: 0;
  visibility: hidden;
}
.testimonial.active {
  opacity: 1;
  pointer-events: all;
  position: relative;
  visibility: visible;
  z-index: 2;
}
.testimonial:before {
  content: "“";
  font-size: 2.7em;
  color: #f5bde4;
  vertical-align: top;
  margin-right: 7px;
  position: absolute;
  left: 10px;
  top: 2px;
  z-index: 1;
  font-family: serif;
  opacity: 0.5;
}
.testimonial-nav {
  margin-top: 18px;
}
.testimonial-nav button {
  background: #e2a0c9;
  border: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  margin: 0 3px;
  cursor: pointer;
  transition: background .15s;
}
.testimonial-nav button:hover,
.testimonial-nav button:focus {
  background: #c94f8a;
}

/* ==== FAQ & CTA ==== */
.faq {
  margin: 36px 0 0 0;
  background: #fff7fa;
  border-radius: 18px;
  padding: 28px 18px 10px 18px;
  box-shadow: 0 2px 9px #f7d7e7;
}
.faq ul {
  color: #6a4c70;
  padding-left: 20px;
  font-size: 1.01rem;
}
.faq ul li {
  margin-bottom: 9px;
}
.final-cta {
  text-align: center;
  margin: 44px 0 32px 0;
}
.final-cta h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: #a02b7d;
  margin-bottom: 13px;
}
.big-cta {
  font-size: 1.19rem;
  padding: 18px 46px;
  border-radius: 30px;
  margin-top: 10px;
}

/* ==== Sticky CTA ==== */
.sticky-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, #c94f8a 50%, #ff87bb 100%);
  z-index: 50;
  box-shadow: 0 -3px 18px #ef95bc77;
  text-align: center;
  padding: 0;
}
.sticky-btn {
  font-size: 1.16rem;
  font-weight: 700;
  padding: 8px 0;
  width: 100%;
  background: transparent;
  box-shadow: none;
  border: none;
  border-radius: 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-height: 52px;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 900px){
  .container { max-width: 100vw; }
  .hero-img,
  #heroSlideImg { width: 270px; height: 270px; }
  .product-card img { width: 140px; height: 140px; }
  .compare-table .product-thumb { width: 40px; height: 40px; }
}
@media (max-width: 650px) {
  .container {
    padding: 0 5vw;
  }
  .hero-main {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
  }
  .hero-main > div {
    width: 100%;
    max-width: 95vw;
  }
  .hero-img, #heroSlideImg {
    margin: 0 auto 16px auto !important;
    width: 75vw;
    height: 75vw;
    max-width: 325px;
    max-height: 325px;
    display: block;
    object-fit: contain;
  }
  .hero h1, .subtitle {
    text-align: center;
    width: 100%;
    word-break: break-word;
  }
  .top-benefits {
    flex-direction: column;
    align-items: center;
    gap: 7px;
    margin-bottom: 13px;
    width: 100%;
    padding-left: 0;
  }
  .top-benefits li {
    justify-content: center;
    width: 90vw;
    max-width: 350px;
    font-size: 1.08rem;
    padding: 10px 12px 10px 9px;
  }
  .trust-row {
    gap: 12px;
    justify-content: center;
    margin-top: 12px;
    flex-wrap: wrap;
  }
  .trust-row img {
    width: 35px !important;
    height: 35px !important;
    border-radius: 10px !important;
  }
  .btn, .hero-btn {
    display: block;
    width: 98vw;
    max-width: 340px;
    margin: 14px auto 0 auto;
    font-size: 1.14rem;
    padding: 13px 0;
    border-radius: 19px;
    min-height: 40px;
    text-align: center;
    line-height: 1.1;
    justify-content: center;
  }
  .products-grid { gap: 17px; }
  .product-card { padding: 13px 6px 14px 6px; }
  .product-card img { width: 110px; height: 110px; }
  .product-card h3 { font-size: 1.08rem; min-height: 30px;}
  .ribbon { font-size: 0.82rem; left: -7px; top: 12px; }
  .final-cta h2 { font-size: 1.19rem;}
  .faq, .testimonials, .compare-table-wrap { padding: 13px 5px 7px 5px;}
    .sticky-cta {
    display: block;
    padding: 0;
  }
  .sticky-btn {
    min-height: 44px;
    max-height: 48px;
    font-size: 1.08rem;
    padding: 7px 0;
    width: 100vw;
    border-radius: 0;
    text-align: center;
    align-items: center;
    justify-content: center;
    display: flex;
  }
}

/* Ensure sticky button doesn't hide footer */
@media (max-width: 650px) {
  footer {
    margin-bottom: 56px !important; /* Enough space for sticky button */
  }
}
