/* ============================================================
   TeslaHubs — Rich Product Description Styles
   Used inside WooCommerce .woocommerce-product-details__short-description
   and .woocommerce-tabs .entry-content
   ============================================================ */

/* ── Description base ─────────────────────────────────────── */
.woocommerce-product-details__short-description p,
.entry-content p {
  color: #555;
  line-height: 1.75;
  margin-bottom: 14px;
}

/* ── PD: Section wrapper ───────────────────────────────────── */
.pd-section {
  padding: 40px 0;
  border-top: 1px solid #e5e5e5;
}
.pd-section:first-child { border-top: none; padding-top: 0; }
.pd-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.2;
}
.pd-section-subtitle {
  font-size: .95rem;
  color: #666;
  margin-bottom: 28px;
  max-width: 640px;
}

/* ── PD: Hero tagline ──────────────────────────────────────── */
.pd-hero {
  background: linear-gradient(135deg, #111 0%, #1a1a2e 100%);
  color: #fff;
  border-radius: 14px;
  padding: 40px 36px;
  margin-bottom: 32px;
  text-align: center;
}
.pd-hero h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  margin-bottom: 10px;
  line-height: 1.2;
}
.pd-hero p {
  color: rgba(255,255,255,.7) !important;
  font-size: 1rem;
  max-width: 580px;
  margin: 0 auto !important;
}
.pd-hero .pd-hero-badge {
  display: inline-block;
  background: #E3342F;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 14px;
}

/* ── PD: Feature grid ──────────────────────────────────────── */
.pd-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.pd-features--2 { grid-template-columns: repeat(2, 1fr); }
.pd-features--4 { grid-template-columns: repeat(4, 1fr); }
.pd-feature {
  padding: 24px 20px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #fff;
}
.pd-feature__icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
  display: block;
}
.pd-feature__title {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #111;
}
.pd-feature__desc {
  font-size: .85rem;
  color: #666;
  line-height: 1.6;
  margin: 0 !important;
}

/* ── PD: Image + text split block ─────────────────────────── */
.pd-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 32px;
}
.pd-split--reverse .pd-split__img { order: 2; }
.pd-split--reverse .pd-split__text { order: 1; }
.pd-split__img {
  border-radius: 12px;
  overflow: hidden;
  background: #f7f7f7;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pd-split__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pd-split__img-emoji {
  font-size: 5rem;
}
.pd-split__text h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.25;
  color: #111;
}
.pd-split__text p {
  font-size: .9rem;
  color: #555;
  line-height: 1.75;
  margin-bottom: 12px !important;
}
.pd-split__text ul {
  padding-left: 0;
  list-style: none;
  margin-bottom: 16px;
}
.pd-split__text ul li {
  font-size: .88rem;
  color: #444;
  padding: 5px 0;
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}
.pd-split__text ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #1a56db;
  font-weight: 700;
}

/* ── PD: Stats row ─────────────────────────────────────────── */
.pd-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
  background: #f7f7f7;
  border-radius: 14px;
  padding: 28px;
}
.pd-stat {
  text-align: center;
}
.pd-stat__num {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 4px;
  color: #111;
}
.pd-stat__label {
  font-size: .8rem;
  color: #888;
}

/* ── PD: Video embed ───────────────────────────────────────── */
.pd-video {
  margin-bottom: 32px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/9;
  background: #111;
}
.pd-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.pd-video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  cursor: pointer;
}
.pd-video-placeholder .play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  border: 2px solid rgba(255,255,255,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: .2s;
}
.pd-video-placeholder:hover .play-btn {
  background: rgba(255,255,255,.3);
}
.pd-video-title {
  font-size: .9rem;
  font-weight: 600;
}

/* ── PD: What's Included ───────────────────────────────────── */
.pd-includes {
  background: #f7f7f7;
  border-radius: 14px;
  padding: 28px 32px;
  margin-bottom: 32px;
}
.pd-includes h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: #111;
}
.pd-includes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.pd-include-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: .85rem;
  font-weight: 500;
}
.pd-include-item__icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}
.pd-include-item__text strong {
  display: block;
  font-size: .82rem;
  font-weight: 700;
}
.pd-include-item__text span {
  font-size: .75rem;
  color: #888;
}
.pd-include-free {
  background: #E3342F;
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 10px;
  margin-left: 4px;
  vertical-align: middle;
}

/* ── PD: Specs table ───────────────────────────────────────── */
.pd-specs {
  margin-bottom: 32px;
}
.pd-specs h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: #111;
}
.pd-specs table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.pd-specs table tr {
  border-bottom: 1px solid #e5e5e5;
}
.pd-specs table tr:last-child { border-bottom: none; }
.pd-specs table td {
  padding: 10px 14px;
}
.pd-specs table td:first-child {
  font-weight: 600;
  color: #111;
  width: 40%;
  background: #f9f9f9;
}
.pd-specs table td:last-child {
  color: #555;
}

/* ── PD: Comparison table ──────────────────────────────────── */
.pd-compare {
  margin-bottom: 32px;
  overflow-x: auto;
}
.pd-compare table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
  min-width: 480px;
}
.pd-compare th {
  background: #111;
  color: #fff;
  padding: 12px 16px;
  text-align: center;
  font-weight: 700;
}
.pd-compare th:first-child { text-align: left; border-radius: 8px 0 0 0; }
.pd-compare th:last-child { border-radius: 0 8px 0 0; }
.pd-compare td {
  padding: 10px 16px;
  border-bottom: 1px solid #e5e5e5;
  text-align: center;
  color: #555;
}
.pd-compare td:first-child { text-align: left; font-weight: 600; color: #111; }
.pd-compare .check { color: #22c55e; font-size: 1.1rem; }
.pd-compare .cross { color: #ef4444; font-size: 1rem; }

/* ── PD: Guarantee blocks ──────────────────────────────────── */
.pd-guarantees {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.pd-guarantee {
  padding: 20px;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  text-align: center;
}
.pd-guarantee__icon { font-size: 2rem; margin-bottom: 8px; display: block; }
.pd-guarantee__title { font-size: .88rem; font-weight: 700; margin-bottom: 4px; color: #111; }
.pd-guarantee__desc { font-size: .78rem; color: #888; line-height: 1.5; }

/* ── PD: FAQ accordion in description ─────────────────────── */
.pd-faq {
  margin-bottom: 32px;
}
.pd-faq h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: #111;
}
.pd-faq-item {
  border-bottom: 1px solid #e5e5e5;
}
.pd-faq-item:first-of-type { border-top: 1px solid #e5e5e5; }
.pd-faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  background: none;
  border: none;
  text-align: left;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  color: #111;
}
.pd-faq-q:hover { color: #555; }
.pd-faq-arrow { transition: transform .2s; font-size: .8rem; color: #999; }
.pd-faq-q.open .pd-faq-arrow { transform: rotate(180deg); }
.pd-faq-a { display: none; padding-bottom: 14px; font-size: .87rem; color: #666; line-height: 1.7; }
.pd-faq-a.open { display: block; }

/* ── PD: Installation steps ────────────────────────────────── */
.pd-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
  counter-reset: step;
}
.pd-step {
  text-align: center;
  position: relative;
}
.pd-step::after {
  content: '';
  position: absolute;
  top: 24px;
  left: 60%;
  width: 80%;
  height: 2px;
  background: #e5e5e5;
}
.pd-step:last-child::after { display: none; }
.pd-step__num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.pd-step__title { font-size: .85rem; font-weight: 700; margin-bottom: 4px; }
.pd-step__desc { font-size: .78rem; color: #888; line-height: 1.5; }

/* ── PD: Review summary bar ────────────────────────────────── */
.pd-reviews-summary {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 20px 24px;
  background: #f7f7f7;
  border-radius: 12px;
  margin-bottom: 20px;
}
.pd-reviews-score {
  text-align: center;
  flex-shrink: 0;
}
.pd-reviews-score .score { font-size: 3rem; font-weight: 900; line-height: 1; color: #111; }
.pd-reviews-score .stars { color: #f79e1b; font-size: 1.1rem; margin: 4px 0; }
.pd-reviews-score .count { font-size: .78rem; color: #888; }
.pd-reviews-bars { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.pd-bar-row { display: flex; align-items: center; gap: 10px; font-size: .78rem; }
.pd-bar-row span:first-child { width: 36px; color: #888; text-align: right; flex-shrink: 0; }
.pd-bar-track { flex: 1; height: 6px; background: #e5e5e5; border-radius: 3px; overflow: hidden; }
.pd-bar-fill { height: 100%; background: #f79e1b; border-radius: 3px; }
.pd-bar-row span:last-child { width: 28px; color: #888; flex-shrink: 0; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .pd-features { grid-template-columns: repeat(2, 1fr); }
  .pd-features--4 { grid-template-columns: repeat(2, 1fr); }
  .pd-split { grid-template-columns: 1fr; gap: 20px; }
  .pd-split--reverse .pd-split__img,
  .pd-split--reverse .pd-split__text { order: unset; }
  .pd-stats { grid-template-columns: repeat(2, 1fr); }
  .pd-includes-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-guarantees { grid-template-columns: 1fr; }
  .pd-steps { grid-template-columns: repeat(2, 1fr); }
  .pd-steps .pd-step::after { display: none; }
  .pd-hero { padding: 28px 20px; }
  .pd-reviews-summary { flex-direction: column; gap: 16px; }
  .pd-reviews-bars { width: 100%; }
}
@media (max-width: 480px) {
  .pd-features { grid-template-columns: 1fr; }
  .pd-includes-grid { grid-template-columns: 1fr; }
  .pd-steps { grid-template-columns: 1fr; }
  .pd-stats { grid-template-columns: 1fr 1fr; }
}
