/* ==========================================================================
   HEALCORE — Product page styles
   ========================================================================== */

/* Product Hero */
.product-hero {
  position: relative;
  height: 68vh;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}

.product-hero-bg {
  position: absolute;
  top: -25%;
  left: 0;
  width: 100%;
  height: 150%;
  will-change: transform;
}

.product-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-hero-bg::after {
  content: '';
}

.product-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,13,12,0.35) 0%, rgba(10,13,12,0.85) 100%);
  z-index: 1;
}

.product-hero-inner {
  position: relative;
  z-index: 2;
  padding-bottom: 60px;
}

.product-hero .eyebrow {
  color: var(--color-mint);
}

.product-hero .eyebrow::before {
  background: var(--color-mint);
}

.product-hero h1 {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-top: 10px;
}

.product-hero-desc {
  margin-top: 18px;
  font-size: 16px;
  color: rgba(255,255,255,0.85);
}

.product-hero-tags {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.product-hero-tags span {
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.35);
  font-size: 13px;
  font-weight: 600;
}

/* Showcase */
.product-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}

.product-gallery-main {
  border-radius: 24px;
  overflow: hidden;
  background: var(--color-off-white);
  aspect-ratio: 1/1.05;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-gallery-main img {
  max-height: 90%;
  transition: opacity 0.15s ease;
}

.product-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.thumb-btn {
  border: 2px solid var(--color-line);
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: var(--color-off-white);
  aspect-ratio: 1/1;
  transition: var(--transition);
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thumb-btn.active,
.thumb-btn:hover {
  border-color: var(--color-mint-deep);
}

.product-info h2 {
  font-size: 32px;
  font-weight: 800;
  margin-top: 12px;
  letter-spacing: -0.01em;
}

.product-price-line {
  margin-top: 14px;
  font-size: 15px;
  color: var(--color-gray);
  font-weight: 600;
}

.product-price-line span {
  margin: 0 8px;
  color: var(--color-line);
}

.product-desc {
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-gray);
}

.product-feature-list {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--color-dark);
}

.product-feature-list i {
  color: var(--color-mint-deep);
  margin-top: 3px;
}

.product-actions {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.product-meta {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--color-line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-meta div {
  font-size: 14px;
  color: var(--color-gray);
}

.product-meta span {
  display: inline-block;
  width: 100px;
  color: var(--color-dark);
  font-weight: 700;
}

/* Benefit section */
.benefit-section {
  background: var(--color-off-white);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.benefit-card {
  text-align: center;
  padding: 46px 24px;
  background: #fff;
  border-radius: 22px;
  transition: var(--transition);
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.benefit-card i {
  font-size: 30px;
  color: var(--color-mint-deep);
  margin-bottom: 20px;
  display: block;
}

.benefit-card h3 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 12px;
}

.benefit-card p {
  font-size: 14px;
  color: var(--color-gray);
  line-height: 1.7;
}

/* How to use */
.howto-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
}

.howto-visual img {
  border-radius: 24px;
  width: 100%;
}

.howto-steps {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.howto-steps li {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}

.step-num {
  font-family: var(--font-en);
  font-size: 26px;
  font-weight: 800;
  color: var(--color-mint-light);
  flex-shrink: 0;
}

.howto-steps h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
}

.howto-steps p {
  font-size: 14.5px;
  color: var(--color-gray);
  line-height: 1.75;
}

.howto-note {
  margin-top: 36px;
  padding: 20px 24px;
  background: var(--color-off-white);
  border-radius: 14px;
  font-size: 13.5px;
  color: var(--color-gray);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.howto-note i {
  color: var(--color-mint-deep);
  margin-top: 2px;
}

/* Gallery masonry */
.product-gallery-section {
  background: var(--color-black);
}

.product-gallery-section .section-title {
  color: #fff;
}

.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* Responsive */
@media (max-width: 992px) {
  .product-showcase-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .howto-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .gallery-masonry {
    grid-template-columns: 1fr;
  }

  .product-gallery-thumbs {
    grid-template-columns: repeat(4, 1fr);
  }
}
