:root {
  --primary: #8e44ad;
  --secondary: #9b59b6;
  --light: #f5f5f5;
  --dark: #333;
  --accent: #ff5a80;
  --accent2: #e67e22;
  --pink: #ff5a80;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #f9f9f9;
  color: var(--dark);
  line-height: 1.6;
}

header {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
}

.logo i {
  margin-right: 10px;
  color: var(--accent);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

/* Tombol Menu Mobile */
.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: white;
}

/* Hero Section dengan Animasi */
.hero {
  height: 80vh;
  background: url("banner3.png") no-repeat center center/cover;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
}

.hero-content {
  position: relative;
  z-index: 10;
  color: white;
  max-width: 600px;
  animation: fadeInUp 1s ease-out;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  position: relative;
  display: inline-block;
}

.hero h1::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #ff5a80;
  transform: scaleX(0);
  transform-origin: right;
  animation: underlineGrow 2s infinite alternate;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  animation: fadeIn 2s ease-out;
}

.btn {
  display: inline-block;
  background: linear-gradient(45deg, #ff83a0, #fd4a74);
  color: white;
  padding: 0.8rem 1.8rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.4s ease;
  box-shadow: 0 1px 4px #ff83a0;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #fd4a74, #ff83a0);
  transition: all 0.4s ease;
  z-index: -1;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 2px 6px #ff83a0;
}

.btn:hover::before {
  left: 0;
}

/* Tombol Scroll to Top */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #ff5a80;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.active {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background-color: var(--primary);
  transform: translateY(-5px);
}

/* Animasi Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes underlineGrow {
  from {
    transform: scaleX(0);
    transform-origin: right;
  }

  to {
    transform: scaleX(1);
    transform-origin: left;
  }
}

/* Bagian CSS lainnya tetap sama seperti sebelumnya */
.section-title {
  text-align: center;
  margin: 3rem 0;
  font-size: 2.5rem;
  color: var(--primary);
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--accent);
  margin: 0.5rem auto;
  border-radius: 2px;
}

.products {
  padding: 4rem 0;
  background-color: white;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.product-card.active {
  opacity: 1;
  transform: translateY(0);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-img {
  height: 300px;
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
  transform: scale(1.1);
}

.product-info {
  padding: 1.5rem;
}

.product-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.product-info p {
  color: #666;
  margin-bottom: 1rem;
}

.price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
  margin-bottom: 1rem;
}

.features {
  padding: 4rem 0;
  background-color: #f5f5f5;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card.active {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:nth-child(1) {
  transition-delay: 0.1s;
}

.feature-card:nth-child(2) {
  transition-delay: 0.2s;
}

.feature-card:nth-child(3) {
  transition-delay: 0.3s;
}

.feature-card:nth-child(4) {
  transition-delay: 0.4s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.testimonials {
  padding: 4rem 0;
  background: white;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.testimonial-card.active {
  opacity: 1;
  transform: translateX(0);
}

.testimonial-card:nth-child(1) {
  transition-delay: 0.1s;
}

.testimonial-card:nth-child(2) {
  transition-delay: 0.3s;
}

.testimonial-card:nth-child(3) {
  transition-delay: 0.5s;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.testimonial-text::before {
  content: '"';
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.2;
  position: absolute;
  top: -20px;
  left: -10px;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1rem;
}

.author-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  font-size: 1.1rem;
  color: var(--dark);
}

.author-info p {
  color: #666;
  font-size: 0.9rem;
}

.cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  text-align: center;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.cta.active {
  opacity: 1;
  transform: scale(1);
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

footer {
  background-color: var(--dark);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.footer-column.active {
  opacity: 1;
  transform: translateY(0);
}

.footer-column:nth-child(1) {
  transition-delay: 0.1s;
}

.footer-column:nth-child(2) {
  transition-delay: 0.2s;
}

.footer-column:nth-child(3) {
  transition-delay: 0.3s;
}

.footer-column:nth-child(4) {
  transition-delay: 0.4s;
}

.footer-column h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50%;
  height: 2px;
  background: var(--accent);
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.8rem;
}

.footer-column ul li a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--pink);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #aaa;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  height: 100vh;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 2rem;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  left: 0;
}

.mobile-menu .close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
}

.mobile-menu ul {
  list-style: none;
  margin-top: 3rem;
}

.mobile-menu ul li {
  margin-bottom: 1.5rem;
}

.mobile-menu ul li a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.mobile-menu ul li a:hover {
  color: var(--accent);
  padding-left: 10px;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .cta h2 {
    font-size: 2rem;
  }

  .testimonial-card {
    transform: translateX(0);
    transform: translateY(50px);
  }
}

.hero {
  height: 80vh;
  background: url("banner3.png") no-repeat center center/cover;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-waves {
  display: block;
  width: 100%;
  height: 60px;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 5;
}

.wave1 use {
  animation: move-forever1 10s linear infinite;
  animation-delay: -2s;
}

.wave2 use {
  animation: move-forever2 8s linear infinite;
  animation-delay: -2s;
}

.wave3 use {
  animation: move-forever3 6s linear infinite;
  animation-delay: -2s;
}

@keyframes move-forever1 {
  0% {
    transform: translate(85px, 0%);
  }

  100% {
    transform: translate(-90px, 0%);
  }
}

@keyframes move-forever2 {
  0% {
    transform: translate(-90px, 0%);
  }

  100% {
    transform: translate(85px, 0%);
  }
}

@keyframes move-forever3 {
  0% {
    transform: translate(-90px, 0%);
  }

  100% {
    transform: translate(85px, 0%);
  }
}

/* Untuk mobile */
@media (max-width: 768px) {
  .hero-waves {
    height: 40px;
    min-height: 40px;
  }
}

/* Hero Actions */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 1.5rem;
}

.video-box {
  position: relative;
  /* animation: pulse 2s infinite; */
}

.play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  /* background: rgba(255, 90, 128, 0.8); */
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  border: 3px solid rgb(255, 255, 255);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.play-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: scale(0);
  opacity: 1;
  transition: transform 0.5s ease, opacity 0.5s ease;
  z-index: -1;
}

.play-btn:hover {
  background: rgba(255, 90, 128, 1);
  transform: scale(1.1);
  animation: none; /* Hentikan animasi pulse saat hover */
}

.play-btn:hover::before {
  transform: scale(1.5);
  opacity: 0;
}

/* Animasi ripple infinite */
.play-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid rgb(255, 255, 255);
  border-radius: 50%;
  animation: ripple 2s infinite;
  z-index: -2;
}

.play-btn::after:nth-child(2) {
  animation-delay: 0.5s;
}

/* Keyframes untuk animasi */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes ripple {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Untuk tooltip atau teks di samping play button */
.video-box::after {
  content: "Lihat Video";
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 15px;
  color: white;
  font-weight: 500;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .video-box::after {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 10px;
    display: block;
  }
}

.price {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

.current-price {
  color: var(--primary);
}

.original-price {
  color: #999;
  text-decoration: line-through;
  font-size: 1rem;
  font-weight: 500;
}

a {
  text-decoration: none !important;
}

a:hover {
  text-decoration: none !important;
}

/* Product Modal */
.product-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1001;
  display: none;
  align-items: center;
  justify-content: center;
}

.product-modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.modal-container {
  position: relative;
  background: white;
  border-radius: 10px;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 2;
  animation: modalFadeIn 0.3s ease-out;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: var(--accent);
  transform: rotate(90deg);
}

.modal-content {
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

.modal-product-img-container {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.modal-product-img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 4px;
}

.modal-product-info h2 {
  font-size: 2rem;
  color: #000000;
  margin-bottom: 1rem;
}

.modal-product-info .price {
  font-size: 1.5rem;
  margin: 1rem 0;
}

.modal-product-info .description {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.modal-features {
  margin: 1.5rem 0;
}

.modal-features h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.modal-features ul {
  list-style-type: disc;
  padding-left: 1.5rem;
}

.modal-features li {
  margin-bottom: 0.5rem;
}

.modal-actions {
  margin-top: 2rem;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .modal-container {
    width: 95%;
    max-height: 85vh;
  }

  .modal-product-img {
    height: 300px;
  }

  .modal-product-info h2 {
    font-size: 1.5rem;
  }
}

/* Cara Pesan Modal */
.cara-pesan-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1001;
  display: none;
  align-items: center;
  justify-content: center;
}

.cara-pesan-modal.active {
  display: flex;
}

.social-links-modal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(142, 68, 173, 0.1);
  border-radius: 10px;
  transition: all 0.3s ease;
  color: var(--dark);
  text-decoration: none;
}

.social-link:hover {
  background: rgba(142, 68, 173, 0.2);
  transform: translateY(-5px);
}

.social-link i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.social-link img {
  margin-bottom: 0.5rem;
}

.social-link span {
  font-size: 0.9rem;
  font-weight: 500;
}

.modal-note {
  font-size: 0.9rem;
  color: #666;
  text-align: center;
  margin-top: 1rem;
}

/* Ukuran Modal */
.ukuran-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1001;
  display: none;
  align-items: center;
  justify-content: center;
}

.ukuran-modal.active {
  display: flex;
}

.size-item {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(142, 68, 173, 0.05);
  border-radius: 8px;
}

.size-item h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.size-details {
  list-style-type: none;
  padding-left: 0;
}

.size-details li {
  margin-bottom: 0.3rem;
  padding-left: 1rem;
  position: relative;
}

.size-details li:before {
  content: "•";
  color: var(--accent);
  position: absolute;
  left: 0;
}

.whatsapp-btn {
  background: #25d366;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.whatsapp-btn:hover {
  background: #128c7e;
}

/* FAQ Modal */
.faq-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1001;
  display: none;
  align-items: center;
  justify-content: center;
}

.faq-modal.active {
  display: flex;
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  padding: 1rem;
  background: rgba(142, 68, 173, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question h3 {
  font-size: 1rem;
  margin: 0;
  color: var(--dark);
}

.faq-question i {
  transition: transform 0.3s ease;
}

.faq-question.active i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
  padding: 1rem;
  max-height: 300px;
}

.faq-answer p {
  margin: 0;
  line-height: 1.6;
}

.contact-support {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.contact-support p {
  margin-bottom: 1rem;
  color: #666;
}

.ripple-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  animation: ripple 1s ease-out;
  z-index: -1;
}

/* Efek baru untuk product section */
.products {
  position: relative;
  overflow: hidden;
}

.product-grid {
  position: relative;
  z-index: 2;
}

.product-card {
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease;
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(142, 68, 173, 0.1),
    rgba(255, 90, 128, 0.1)
  );
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover::before {
  opacity: 1;
}

.product-img {
  position: relative;
}

.product-img::after {
  content: "Lihat Detail";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 90, 128, 0.9);
  color: white;
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 600;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 2;
}

.product-card:hover .product-img::after {
  opacity: 1;
}

.price {
  transition: all 0.3s ease;
}

.product-card:hover .price {
  transform: scale(1.05);
  color: var(--accent);
}

/* Efek background decorative */
.products::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(142, 68, 173, 0.1) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  z-index: 1;
}

.products::after {
  content: "";
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(255, 90, 128, 0.1) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  z-index: 1;
}

/* Efek hover button beli sekarang */
.product-info .btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.product-info .btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: all 0.5s ease;
}

.product-info .btn:hover::after {
  left: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .product-img::after {
    font-size: 0.8rem;
    padding: 5px 10px;
  }

  .products::before,
  .products::after {
    display: none;
  }
}

/* Animasi pertama kali muncul untuk produk */
.product-grid {
  perspective: 1000px;
}

.product-card {
  opacity: 0;
  transform: translateY(50px) rotateX(30deg);
  transition: all 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.product-card.active {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

/* Animasi berurutan untuk setiap card */
.product-card:nth-child(1) {
  transition-delay: 0.1s;
}

.product-card:nth-child(2) {
  transition-delay: 0.3s;
}

.product-card:nth-child(3) {
  transition-delay: 0.5s;
}

/* Efek kilat saat pertama muncul */
@keyframes flash {
  0% {
    box-shadow: 0 0 0 0 rgba(142, 68, 173, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(142, 68, 173, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(142, 68, 173, 0);
  }
}

.product-card.active {
  animation: flash 1.5s ease-out;
}

/* Animasi teks harga */
.price .current-price {
  display: inline-block;
  transform: scale(0);
  transition: transform 0.5s ease-out 0.7s;
}

.product-card.active .price .current-price {
  transform: scale(1);
}

.price .original-price {
  display: inline-block;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.5s ease-out 0.9s;
}

.product-card.active .price .original-price {
  opacity: 1;
  transform: translateX(0);
}

/* Animasi tombol beli */
.product-info .btn {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease-out 1.1s;
}

.product-card.active .product-info .btn {
  opacity: 1;
  transform: translateY(0);
}

/* Efek ripple saat pertama muncul */
@keyframes ripple {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.product-card.active::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(142, 68, 173, 0.2) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  border-radius: 50%;
  animation: ripple 1.5s ease-out;
  z-index: 0;
}
