/* ══ PRODUCT DETAIL PAGE ══ */

/* ── HERO ── */
.pd-hero {
  min-height: 52vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 8rem 2.5rem 3.5rem;
  background: var(--navy);
}
.pd-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(to right, var(--navy) 30%, rgba(2,11,26,.7) 60%, transparent 100%),
    linear-gradient(to top, var(--navy) 0%, transparent 50%),
    url("../asset/product/bg01.png") right center / cover no-repeat;
}
.pd-hero-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.pd-hero-back {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 1.4rem;
  transition: color .2s;
}
.pd-hero-back:hover { color: var(--cyan); }
.pd-hero-back i { font-size: .75rem; }
.pd-hero-tag {
  display: inline-block;
  color: var(--cyan);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: .7rem;
  background: rgba(0,180,255,.08);
  border: 1px solid rgba(0,180,255,.2);
  padding: .25rem .8rem;
  border-radius: 20px;
}
.pd-hero-title {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: #fff;
}
.pd-hero-title span { color: var(--cyan); }
.pd-hero-desc {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 2rem;
}
.pd-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.pd-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(0,180,255,.08);
  border: 1px solid rgba(0,180,255,.2);
  color: var(--text);
  font-size: .78rem;
  font-weight: 600;
  padding: .35rem .9rem;
  border-radius: 20px;
}
.pd-badge i { color: var(--cyan); font-size: .75rem; }

/* hero image */
.pd-hero-img-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pd-hero-img-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,180,255,.15) 0%, transparent 70%);
  pointer-events: none;
}
.pd-hero-img {
  width: 100%;
  max-width: 560px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 20px 60px rgba(0,180,255,.2));
}

/* ── HERO FADE IN ── */
.pd-hero-left {
  opacity: 0;
  transform: translateY(24px);
  animation: pdHeroIn .7s ease .1s forwards;
}
.pd-hero-img-wrap {
  opacity: 0;
  transform: translateY(24px);
  animation: pdHeroIn .7s ease .3s forwards;
}
@keyframes pdHeroIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ── SECTION COMMON ── */
.pd-section {
  padding: 5rem 2.5rem;
  position: relative;
  z-index: 1;
}
.pd-section-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.pd-section-alt { background: rgba(4,18,48,.6); }

.pd-sec-tag {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: .6rem;
}
.pd-sec-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: .6rem;
  line-height: 1.25;
}
.pd-sec-sub {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 3rem;
}

/* ── WHAT IS IT ── */
.pd-what-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.pd-what-lead {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 480px;
}
.pd-what-points {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.pd-what-point {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.pd-what-point-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0,180,255,.1);
  border: 1px solid rgba(0,180,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--cyan);
  flex-shrink: 0;
  margin-top: 2px;
}
.pd-what-point-title {
  font-size: .92rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .25rem;
}
.pd-what-point-desc {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.65;
}

/* right image */
.pd-what-img-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pd-what-img-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,180,255,.12) 0%, transparent 70%);
  pointer-events: none;
}
.pd-what-img {
  width: 100%;
  max-width: 620px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 24px 60px rgba(0,180,255,.18));
  border-radius: 16px;
}
/* floating stat badges */
.pd-what-stat {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: .6rem;
  background: rgba(4,18,48,.92);
  border: 1px solid rgba(0,180,255,.25);
  border-radius: 12px;
  padding: .6rem 1rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.pd-what-stat i {
  color: var(--cyan);
  font-size: 1.1rem;
}
.pd-what-stat-val {
  font-size: .9rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.pd-what-stat-label {
  font-size: .7rem;
  color: var(--muted);
  margin-top: 2px;
}
.pd-what-stat-1 { top: 10%; left: -5%; }
.pd-what-stat-2 { bottom: 10%; right: -5%; }

@media (max-width: 900px) {
  .pd-what-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .pd-what-stat-1 { top: -5%; left: 5%; }
  .pd-what-stat-2 { bottom: -5%; right: 5%; }
}

/* ── FEATURES GRID ── */
.pd-feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
}
.pd-feat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.6rem 1.4rem;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.pd-feat-card:hover {
  border-color: rgba(0,180,255,.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,180,255,.1);
}
.pd-feat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0,180,255,.1);
  border: 1px solid rgba(0,180,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--cyan);
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 8px rgba(0,180,255,.3));
}
.pd-feat-title {
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .4rem;
}
.pd-feat-desc {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── HOW IT WORKS ── */
.pd-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  counter-reset: step-counter;
}
.pd-step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.8rem 1.4rem 1.4rem;
  transition: border-color .25s, transform .25s;
}
.pd-step:hover {
  border-color: rgba(0,180,255,.35);
  transform: translateY(-3px);
}
.pd-step-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--cyan);
  opacity: .3;
  line-height: 1;
  margin-bottom: .6rem;
}
.pd-step-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(0,180,255,.1);
  border: 1px solid rgba(0,180,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--cyan);
  margin-bottom: .8rem;
  flex-shrink: 0;
}
.pd-step-title {
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .4rem;
}
.pd-step-desc {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.6;
}
/* connector line between steps */
.pd-steps-wrap {
  position: relative;
}

/* ── SPECS TABLE ── */
.pd-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.pd-spec-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.2rem;
}
.pd-spec-label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--cyan);
  min-width: 130px;
  flex-shrink: 0;
}
.pd-spec-val {
  font-size: .85rem;
  color: var(--text);
  line-height: 1.5;
}

/* ── BENEFITS ── */
.pd-benefit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 3rem;
  margin-top: .5rem;
}
.pd-benefit-item {
  display: grid;
  grid-template-columns: auto 2px 1fr;
  gap: 0 1.4rem;
  align-items: stretch;
  padding: 1.6rem 0;
  border-bottom: 1px solid rgba(0,180,255,.08);
}
.pd-benefit-num-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  min-width: 64px;
}
.pd-benefit-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0,180,255,.1);
  border: 1px solid rgba(0,180,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--cyan);
  flex-shrink: 0;
}
.pd-benefit-num {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--cyan);
  line-height: 1;
  letter-spacing: -1px;
}
.pd-benefit-line {
  width: 2px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  border-radius: 2px;
  opacity: .35;
  align-self: stretch;
}
.pd-benefit-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .35rem;
}
.pd-benefit-title {
  font-size: .95rem;
  font-weight: 800;
  color: #fff;
}
.pd-benefit-desc {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 760px) {
  .pd-benefit-grid { grid-template-columns: 1fr; gap: 0; }
}

/* ── WHO IS IT FOR ── */
.pd-who-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: .8rem;
}
/* card แรกใหญ่ — span 2 rows */
.pd-who-card:first-child {
  grid-row: span 2;
  min-height: 480px;
}
/* card ที่ 4-5 เรียงแถวล่างเต็มความกว้าง */
.pd-who-card:nth-child(4),
.pd-who-card:nth-child(5) {
  grid-column: span 1;
}
.pd-who-card:nth-child(4) { grid-column: 2; }
.pd-who-card:nth-child(5) { grid-column: 3; }
.pd-who-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 220px;
  cursor: default;
  background: var(--bg) center / cover no-repeat;
  transition: transform .35s ease, box-shadow .35s ease;
}
.pd-who-card:hover {
  transform: translateY(-5px) scale(1.015);
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
  z-index: 1;
}
.pd-who-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(2,8,24,.95) 0%,
    rgba(2,8,24,.45) 50%,
    rgba(2,8,24,.15) 100%
  );
  transition: background .35s ease;
}
.pd-who-card:hover .pd-who-overlay {
  background: linear-gradient(
    to top,
    rgba(2,8,24,.98) 0%,
    rgba(2,8,24,.6) 55%,
    rgba(0,100,200,.12) 100%
  );
}
.pd-who-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.4rem 1.2rem;
  z-index: 1;
}
.pd-who-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(0,180,255,.15);
  border: 1px solid rgba(0,180,255,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  color: var(--cyan);
  margin-bottom: .6rem;
}
.pd-who-title {
  font-size: .95rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: .3rem;
}
.pd-who-desc {
  font-size: .78rem;
  color: rgba(255,255,255,.65);
  line-height: 1.5;
}

@media (max-width: 860px) {
  .pd-who-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: unset;
  }
  .pd-who-card:first-child {
    grid-row: unset;
    grid-column: span 2;
    min-height: 240px;
  }
  .pd-who-card { min-height: 200px; }
}
@media (max-width: 500px) {
  .pd-who-grid { grid-template-columns: 1fr; }
  .pd-who-card:first-child { grid-column: unset; }
}

/* ── COMPATIBLE BRANDS ── */
.pd-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.pd-brand-chip {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: .6rem 1.1rem;
  font-size: .82rem;
  color: var(--text);
  font-weight: 600;
  transition: border-color .2s, background .2s;
}
.pd-brand-chip img {
  height: 28px;
  width: auto;
  object-fit: contain;
}
.pd-brand-chip:hover {
  border-color: rgba(0,180,255,.3);
  background: rgba(0,180,255,.06);
}

/* ── CTA STRIP ── */
.pd-cta {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0,180,255,.25);
  border-radius: 20px;
  padding: 3rem 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  background:
    linear-gradient(to right, rgba(2,8,24,.92) 40%, rgba(2,8,24,.6) 70%, rgba(2,8,24,.3) 100%),
    url("../asset/bg3.png") center / cover no-repeat;
}
.pd-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,74,143,.35) 0%, rgba(108,63,197,.2) 100%);
  pointer-events: none;
}
.pd-cta-text, .pd-cta-btns {
  position: relative;
  z-index: 1;
}
.pd-cta-text h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: .4rem;
}
.pd-cta-text p {
  color: var(--muted);
  font-size: .9rem;
}
.pd-cta-btns {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
}
.pd-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: linear-gradient(135deg, #4f9fff 0%, #7b5fff 50%, #a855f7 100%);
  color: #fff;
  border: none;
  padding: .7rem 1.6rem;
  border-radius: 10px;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(120,100,255,.4);
  transition: opacity .2s, transform .2s;
}
.pd-btn-primary:hover { opacity: .9; transform: translateY(-2px); }
.pd-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: transparent;
  border: 1px solid rgba(0,180,255,.4);
  color: var(--cyan);
  padding: .7rem 1.6rem;
  border-radius: 10px;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, border-color .2s, transform .2s;
}
.pd-btn-outline:hover {
  background: rgba(0,180,255,.1);
  border-color: var(--cyan);
  transform: translateY(-2px);
}

/* ── FADE IN ── */
.pd-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.pd-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .pd-hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .pd-hero-img-wrap { display: none; }
  .pd-specs-grid { grid-template-columns: 1fr; }
  .pd-cta { flex-direction: column; text-align: center; }
  .pd-cta-btns { justify-content: center; }
}
@media (max-width: 560px) {
  .pd-hero { padding: 7rem 1.5rem 2.5rem; }
  .pd-section { padding: 3.5rem 1.5rem; }
  .pd-feat-grid { grid-template-columns: 1fr; }
  .pd-steps { grid-template-columns: 1fr; }
  .pd-cta { padding: 2rem 1.5rem; }
}
