/**
 * Product Showcase Widget Styles
 * Compatible with layered visual structure
 *
 * .product-visual
 * ├── .product-visual-bg
 * └── .product-visual-media
 */

/* =========================
   CONTAINER
========================= */

.product-showcase-container {
  width: 100%;
  padding: 96px 0;
  background-color: #ffffff;
}

.product-showcase-wrapper {
  display: flex;
  flex-direction: column;
  gap: 96px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

/* =========================
   ITEM LAYOUT
========================= */

.product-showcase-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;

  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

.product-showcase-item.reversed {
  direction: rtl;
}

.product-showcase-item.reversed > * {
  direction: ltr;
}

/* =========================
   VISUAL SIDE
========================= */

.product-visual-wrapper {
  width: 100%;
}

.product-visual {
  position: relative;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
}

/* Gradient layer */
.product-visual-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Media layer */
.product-visual-media {
  position: relative;
  z-index: 1;

  width: 100%;
  height: 100%;
  padding: 48px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* =========================
   ICON MODE
========================= */

.product-visual-media svg,
.product-visual-media i {
  color: #ffffff;
  fill: currentColor;
}

.product-visual-title {
  margin-top: 24px;
  font-size: 30px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
}

/* =========================
   IMAGE / VIDEO / EMBED
========================= */

.product-visual-media img,
.product-visual-media video,
.product-visual-media iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  border: none;
}

/* =========================
   CONTENT SIDE
========================= */

.product-content {
  padding: 0 24px;
}

.product-tagline {
  display: inline-block;
  padding: 8px 16px;
  background-color: rgba(249, 198, 3, 0.1);
  color: #040533;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}

.product-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  color: #040533;
  margin: 0 0 24px;
}

.product-description {
  font-size: 18px;
  line-height: 1.6;
  color: #6b7280;
  margin: 0 0 32px;
}

/* =========================
   FEATURES
========================= */

.product-features-heading {
  font-size: 20px;
  font-weight: 600;
  color: #040533;
  margin: 0 0 16px;
}

.product-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  color: #374151;
  line-height: 1.5;
}

.product-features svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #f9c603;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1024px) {
  .product-showcase-item {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product-showcase-item.reversed {
    direction: ltr;
  }

  .product-content {
    padding: 0;
  }
}

@media (max-width: 768px) {
  .product-showcase-container {
    padding: 64px 0;
  }

  .product-title {
    font-size: 28px;
  }

  .product-description {
    font-size: 16px;
  }

  .product-features {
    grid-template-columns: 1fr;
  }

  .product-visual-title {
    font-size: 24px;
  }
}

/* =========================
   ANIMATIONS
========================= */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-showcase-item:nth-child(1) {
  animation-delay: 0s;
}
.product-showcase-item:nth-child(2) {
  animation-delay: 0.2s;
}
.product-showcase-item:nth-child(3) {
  animation-delay: 0.4s;
}
.product-showcase-item:nth-child(4) {
  animation-delay: 0.6s;
}
.product-showcase-item:nth-child(5) {
  animation-delay: 0.8s;
}

/* Disable animations in Elementor editor */
.elementor-editor-active .product-showcase-item {
  opacity: 1;
  transform: none;
  animation: none;
}
