@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");

* {
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

html,
body {
  margin: 0px;
  min-height: 100%;
}

a {
  text-decoration: none;
}

@font-face {
  font-family: "Single Day-Regular";
  src: local("Single Day-Regular");
}
@font-face {
    font-family: "Vividly-Regular";
    src: url("./Vividly-Regular.otf") format("woff2"),
         url("./Vividly-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}
@font-face {
  font-family: "Vividly-Regular";
  src: local("Vividly-Regular");
}

/* ===== MAIN SCREEN ===== */
.screen {
  background-color: #fff5fa;
  overflow-x: hidden;
  width: 100%;
  min-width: 320px;
  min-height: 100vh;
  position: relative;
  padding-bottom: 60px;
}

/* ===== HEADER ===== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  position: relative;
  z-index: 10;
}

.logo {
  font-family: "Single Day";
  font-size: 22px;
  color: #5b1133;
}

.back-btn {
  font-family: "Vividly-Regular", Helvetica;
  font-size: 12px;
  color: #5b1133;
  border: 1.5px solid #ffd5ea;
  padding: 8px 16px;
  border-radius: 50px;
  background: #ffffff;
  transition: all 0.3s ease;
}

.back-btn:hover {
  background: #ffe3f1;
}

/* ===== DECORATIVE ELLIPSES ===== */
.ellipse-main {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background-color: #ffffff;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
  z-index: 0;
}

.ellipse-2 {
  position: absolute;
  top: 300px;
  left: -80px;
  width: 200px;
  height: 200px;
  background-color: #ffffff;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.5;
  z-index: 0;
}

.ellipse-3 {
  position: absolute;
  top: 800px;
  right: -80px;
  width: 250px;
  height: 250px;
  background-color: #ffffff;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  z-index: 0;
}

/* ===== PRODUCT DETAIL SECTION ===== */
.product-detail-section {
  position: relative;
  z-index: 1;
  padding: 20px 15px 40px;
  max-width: 700px;
  margin: 0 auto;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  background: #ffffff;
  border-radius: 30px;
  border: 1.5px solid #ffd5ea;
  padding: 25px;
}

/* ===== PRODUCT IMAGE ===== */
.product-detail-image {
  position: relative;
  width: 100%;
  height: 280px;
  border-radius: 20px;
  overflow: hidden;
}

.product-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  font-family: "Vividly-Regular", Helvetica;
  font-size: 11px;
  color: #ffffff;
  background: #ffb2d8;
  padding: 5px 14px;
  border-radius: 50px;
}

/* ===== PRODUCT INFO ===== */
.product-category {
  font-family: "Vividly-Regular", Helvetica;
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.product-name {
  font-family: "Vividly-Regular", Helvetica;
  font-size: 26px;
  color: #5b1133;
  margin-bottom: 8px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.product-rating .stars {
  font-size: 16px;
  color: #ffafd7;
}

.product-rating .rating-count {
  font-family: "Vividly-Regular", Helvetica;
  font-size: 12px;
  color: #888;
}

.product-price {
  font-family: "Vividly-Regular", Helvetica;
  font-size: 28px;
  color: #5b1133;
  margin-bottom: 15px;
}

.product-description {
  font-family: "Vividly-Regular", Helvetica;
  font-size: 14px;
  color: #5b1133;
  line-height: 1.6;
  margin-bottom: 15px;
}

.product-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-bottom: 20px;
}

.benefit-item {
  font-family: "Vividly-Regular", Helvetica;
  font-size: 13px;
  color: #5b1133;
}

/* ===== PRODUCT ACTIONS ===== */
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  margin-bottom: 20px;
}

.quantity-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff5fa;
  padding: 5px 12px;
  border-radius: 50px;
  border: 1.5px solid #ffd5ea;
}

.qty-btn {
  background: none;
  border: none;
  font-size: 18px;
  color: #5b1133;
  cursor: pointer;
  padding: 0 4px;
}

.qty-number {
  font-family: "Vividly-Regular", Helvetica;
  font-size: 16px;
  color: #5b1133;
  min-width: 20px;
  text-align: center;
}

.add-to-cart-btn {
  display: inline-block;
  font-family: "Vividly-Regular", Helvetica;
  font-size: 14px;
  color: #5b1133;
  background: #ffe3f1;
  padding: 12px 30px;
  border-radius: 50px;
  transition: all 0.3s ease;
  flex: 1;
  text-align: center;
}

.add-to-cart-btn:hover {
  background: #ffd5ea;
  color: #5b1133;
}

.product-meta {
  font-family: "Vividly-Regular", Helvetica;
  font-size: 13px;
  color: #5b1133;
  line-height: 1.8;
}

.product-meta strong {
  font-weight: bold;
}

/* ===== RELATED SECTION ===== */
.related-section {
  position: relative;
  z-index: 1;
  padding: 30px 15px;
  max-width: 700px;
  margin: 0 auto;
}

.section-number {
  font-family: "Vividly-Regular", Helvetica;
  font-size: 28px;
  color: #5b1133;
  margin-bottom: 5px;
}

.section-title {
  font-family: "Vividly-Regular", Helvetica;
  font-size: 26px;
  color: #5b1133;
  margin-bottom: 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.related-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1.5px solid #ffd5ea;
  padding: 15px;
  text-align: center;
  transition: all 0.3s ease;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 213, 234, 0.25);
}

.related-img {
  width: 100%;
  height: 120px;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 10px;
}

.related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.related-card h3 {
  font-family: "Vividly-Regular", Helvetica;
  font-size: 16px;
  color: #5b1133;
  margin-bottom: 4px;
}

.related-price {
  font-family: "Vividly-Regular", Helvetica;
  font-size: 14px;
  color: #5b1133;
  margin-bottom: 10px;
}

.related-btn {
  display: inline-block;
  font-family: "Vividly-Regular", Helvetica;
  font-size: 11px;
  color: #5b1133;
  background: #fff5fa;
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid #ffd5ea;
  transition: all 0.3s ease;
}

.related-btn:hover {
  background: #ffe3f1;
}

/* ===== CTA SECTION ===== */
.cta-section {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 15px;
}

.cta-title {
  font-family: "Vividly-Regular", Helvetica;
  font-size: 26px;
  color: #5b1133;
  margin-bottom: 15px;
  line-height: 1.3;
}

.cta-btn {
  display: inline-block;
  font-family: "Vividly-Regular", Helvetica;
  font-size: 14px;
  color: #5b1133;
  background: #ffffff;
  padding: 12px 30px;
  border-radius: 50px;
  border: 1.5px solid #ffd5ea;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  background: #ffe3f1;
  transform: scale(1.05);
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 30px 15px;
}

.footer p {
  font-family: "Vividly-Regular", Helvetica;
  font-size: 12px;
  color: #5b1133;
  line-height: 1.6;
}

/* ===== SCROLL ANIMATIONS ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }

.animate-on-scroll.scale-up {
  transform: scale(0.92);
}
.animate-on-scroll.scale-up.visible {
  transform: scale(1);
}

/* ===== LOAD ANIMATIONS ===== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.load-fade-down {
  animation: fadeInDown 0.7s ease forwards;
}

.load-fade-up {
  animation: fadeInUp 0.7s ease forwards;
}

.load-fade-scale {
  animation: fadeInScale 0.7s ease forwards;
}

.load-delay-1 { animation-delay: 0.1s; opacity: 0; }
.load-delay-2 { animation-delay: 0.2s; opacity: 0; }
.load-delay-3 { animation-delay: 0.3s; opacity: 0; }
.load-delay-4 { animation-delay: 0.4s; opacity: 0; }
.load-delay-5 { animation-delay: 0.5s; opacity: 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 380px) {
  .product-detail-image {
    height: 200px;
  }
  
  .product-name {
    font-size: 22px;
  }
  
  .product-price {
    font-size: 24px;
  }
  
  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 600px) {
  .product-detail-grid {
    padding: 35px;
  }
  
  .product-detail-image {
    height: 350px;
  }
  
  .product-name {
    font-size: 32px;
  }
  
  .related-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  
  .related-img {
    height: 140px;
  }
}