/* =========================================================
   PRODUCT-DETAIL.CSS
   PRODUCT DETAIL PAGE

   Breadcrumb
   Gallery
   Product Info
   Story
   Feature Cards
   CTA
========================================================= */

.product-divider {
  height: 58px;
  background: var(--purple-dark);
}

.product-breadcrumb {
  padding: 28px 0 0;
}

.product-breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.product-breadcrumb a {
  color: var(--purple-dark);
  font-weight: 700;
}

.product-detail-section {
  padding: 42px 0 70px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 38px;
    align-items: flex-start;
    padding: clamp(22px, 4vw, 44px);
    border-radius: 42px;
    background: radial-gradient(circle at 8% 0, rgba(255,107,107,.12), transparent 330px), radial-gradient(circle at 100% 0, rgba(121,74,250,.13), transparent 360px), rgba(255,255,255,.78);
    border: 1px solid rgba(229,232,236,.88);
    box-shadow: var(--shadow-sm);
}

.product-main-image {
  overflow: hidden;
  border-radius: 34px;
  background: linear-gradient(135deg,#f7f4ef,#fff);
  box-shadow: var(--shadow-md);
}

.product-main-image img {
  width: 100%;
  height: 610px;
  object-fit: contain;
  object-position: center;
  padding: 18px;
}

.product-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.product-thumb {
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: .24s var(--ease);
}

.product-thumb.active {
  border-color: var(--purple);
}

.product-thumb:hover {
  transform: translateY(-3px);
}

.product-thumb img {
  width: 100%;
  height: 130px;
  object-fit: contain;
  padding: 10px;
  background: linear-gradient(135deg,#f7f4ef,#fff);
}

.product-kicker {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--purple);
  background: rgba(121,74,250,.11);
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 18px;
}

.product-info h1 {
  color: var(--ink);
  font-size: clamp(38px, 4.6vw, 68px);
  line-height: 1.02;
  letter-spacing: -.065em;
  font-weight: 900;
}

.product-lead {
  margin-top: 18px;
  color: #493f5f;
  font-size: clamp(15px,1.25vw,18px);
  line-height: 1.75;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.product-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(121,74,250,.09);
  color: var(--purple-dark);
  font-size: 12px;
  font-weight: 800;
}

.product-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.product-meta div {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(229,232,236,.88);
}

.product-meta strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  margin-bottom: 5px;
}

.product-meta span {
  color: var(--muted);
  font-size: 12px;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.product-story-card {
  padding: clamp(26px, 4vw, 48px);
  border-radius: 36px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(229,232,236,.88);
  box-shadow: var(--shadow-sm);
}

.product-story-card p:last-child {
  margin-top: 16px;
  max-width: 980px;
  color: #4d435f;
  font-size: 15px;
  line-height: 1.85;
}

.product-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.product-feature-grid article {
  padding: 30px 26px;
  border-radius: 30px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(229,232,236,.88);
  box-shadow: var(--shadow-sm);
  transition: .25s var(--ease);
}

.product-feature-grid article:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.product-feature-grid i {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg,var(--purple),var(--primary));
  font-size: 30px;
  margin-bottom: 18px;
}

.product-feature-grid h3 {
  color: var(--ink);
  font-size: 22px;
  letter-spacing: -.03em;
}

.product-feature-grid p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.product-info {
    padding-top: 70px;
}

.product-main-image img {
    height: 560px;
}

.product-detail-cta {
  padding: 0 0 80px;
}

.product-cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 10% 0, rgba(255,255,255,.16), transparent 360px),
    linear-gradient(135deg,var(--ink),var(--purple-dark));
  box-shadow: var(--shadow-md);
}

.product-cta-card h2 {
  font-size: clamp(28px,3.5vw,50px);
  line-height: 1.05;
  letter-spacing: -.055em;
}

.product-cta-card p {
  margin-top: 10px;
  color: rgba(255,255,255,.72);
}

@media (max-width: 980px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .product-main-image img {
    height: 480px;
  }

  .product-feature-grid {
    grid-template-columns: 1fr;
  }

  .product-cta-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .product-divider {
    height: 44px;
  }

  .product-detail-section {
    padding: 24px 0 48px;
  }

  .product-detail-grid {
    padding: 18px;
    border-radius: 26px;
  }

  .product-main-image {
    border-radius: 24px;
  }

  .product-main-image img {
    height: 340px;
    padding: 12px;
  }

  .product-thumbs {
    gap: 10px;
  }

  .product-thumb {
    border-radius: 16px;
  }

  .product-thumb img {
    height: 92px;
  }

  .product-info h1 {
    font-size: 34px;
  }

  .product-lead {
    font-size: 14px;
  }

  .product-meta {
    grid-template-columns: 1fr;
  }

  .product-actions .btn {
    width: 100%;
  }

  .product-story-card {
    border-radius: 26px;
  }

  .product-feature-grid article {
    border-radius: 24px;
    padding: 24px 20px;
  }

  .product-detail-cta {
    padding-bottom: 54px;
  }

  .product-cta-card {
    padding: 24px;
    border-radius: 26px;
  }

  .product-cta-card .btn {
    width: 100%;
  }


}