/* ==========================================================================
   VietLegacy - Product Page Styles
   ========================================================================== */

/* ==========================================================================
   Product Hero
   ========================================================================== */

.product-hero {
  padding-top: calc(var(--header-height-mobile) + var(--space-8));
  padding-bottom: var(--space-12);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
}

.product-hero__content {
  max-width: 720px;
}

.product-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.product-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
}

.product-hero__badge-icon {
  width: 16px;
  height: 16px;
}

.product-hero__title {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-4);
  line-height: var(--leading-tight);
}

.product-hero__tagline {
  font-size: var(--text-xl);
  opacity: 0.9;
  margin-bottom: var(--space-8);
}

.product-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .product-hero {
    padding-top: calc(var(--header-height) + var(--space-12));
    padding-bottom: var(--space-16);
  }

  .product-hero__title {
    font-size: var(--text-5xl);
  }
}

/* ==========================================================================
   Product Overview
   ========================================================================== */

.product-overview {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}

.product-overview__text {
  max-width: 600px;
}

.product-overview__description {
  font-size: var(--text-lg);
  color: var(--color-gray-600);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
}

.product-overview__benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.benefit-item {
  display: flex;
  gap: var(--space-4);
}

.benefit-item__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary-light);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: var(--radius-lg);
  color: var(--color-white);
}

.benefit-item__icon svg {
  width: 24px;
  height: 24px;
}

.benefit-item__content h4 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--color-gray-900);
  margin-bottom: var(--space-1);
}

.benefit-item__content p {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
}

.product-overview__image {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.product-overview__image img {
  width: 100%;
  height: auto;
}

@media (min-width: 640px) {
  .product-overview__benefits {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .product-overview {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .product-overview__benefits {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Features Detail
   ========================================================================== */

.feature-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  align-items: center;
  padding: var(--space-12) 0;
  border-bottom: 1px solid var(--color-gray-200);
}

.feature-block:last-child {
  border-bottom: none;
}

.feature-block__content {
  max-width: 500px;
}

.feature-block__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-weight: var(--font-bold);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.feature-block__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--color-gray-900);
  margin-bottom: var(--space-4);
}

.feature-block__description {
  font-size: var(--text-base);
  color: var(--color-gray-600);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.feature-block__list {
  list-style: none;
}

.feature-block__list-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--color-gray-700);
}

.feature-block__list-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-success);
}

.feature-block__image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.feature-block__image img {
  width: 100%;
  height: auto;
}

@media (min-width: 1024px) {
  .feature-block {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }

  .feature-block--reverse {
    direction: rtl;
  }

  .feature-block--reverse > * {
    direction: ltr;
  }
}

/* ==========================================================================
   What's Included
   ========================================================================== */

.included-section {
  background-color: var(--color-gray-50);
}

.included-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.included-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.included-item__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-gray-100);
  border-radius: var(--radius-md);
  color: var(--color-primary);
}

.included-item__icon svg {
  width: 20px;
  height: 20px;
}

.included-item__text {
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  color: var(--color-gray-800);
}

@media (min-width: 768px) {
  .included-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   Best For Section
   ========================================================================== */

.best-for-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.best-for-card {
  padding: var(--space-6);
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all var(--transition-base);
}

.best-for-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.best-for-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  color: var(--color-primary);
}

.best-for-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--color-gray-900);
  margin-bottom: var(--space-2);
}

.best-for-card__description {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
}

@media (min-width: 640px) {
  .best-for-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .best-for-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */

.pricing-card {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--space-8);
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  text-align: center;
}

.pricing-card__header {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-gray-200);
}

.pricing-card__label {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-2);
}

.pricing-card__price {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: var(--font-bold);
  color: var(--color-primary);
}

.pricing-card__note {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  margin-top: var(--space-2);
}

.pricing-card__addons {
  margin-bottom: var(--space-6);
}

.pricing-card__addons-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-gray-700);
  margin-bottom: var(--space-3);
}

.pricing-card__addon-list {
  list-style: none;
  text-align: left;
}

.pricing-card__addon-item {
  display: flex;
  justify-content: space-between;
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  border-bottom: 1px dashed var(--color-gray-200);
}

.pricing-card__addon-price {
  font-weight: var(--font-medium);
  color: var(--color-gray-800);
}

/* ==========================================================================
   Timeline/Process Section
   ========================================================================== */

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--color-gray-200);
}

.timeline__item {
  position: relative;
  padding-left: 60px;
  padding-bottom: var(--space-8);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__number {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-weight: var(--font-bold);
  border-radius: var(--radius-full);
  z-index: 1;
}

.timeline__content {
  background-color: var(--color-white);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.timeline__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--color-gray-900);
  margin-bottom: var(--space-2);
}

.timeline__description {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
}

.timeline__duration {
  display: inline-block;
  margin-top: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background-color: var(--color-gray-100);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  color: var(--color-gray-600);
}

@media (min-width: 768px) {
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline__item {
    width: 50%;
    padding-left: 0;
    padding-right: var(--space-10);
  }

  .timeline__item:nth-child(even) {
    margin-left: 50%;
    padding-left: var(--space-10);
    padding-right: 0;
  }

  .timeline__number {
    left: auto;
    right: -20px;
  }

  .timeline__item:nth-child(even) .timeline__number {
    left: -20px;
    right: auto;
  }
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.faq-section {
  background-color: var(--color-gray-50);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

/* ==========================================================================
   Related Case Studies
   ========================================================================== */

.related-cases__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .related-cases__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .related-cases__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
