/* Product detail page. Enqueued only on is_singular('product'), after Product/style.css,
   so it can reuse that file's variables, .btn styles and .productGrid/.productCard rules. */

/* Breadcrumb styling lives in common.css (.tvBreadcrumb), shared with single.php. */

/* Two-column detail. Sections below all use --tatvant-section on both sides, so the gap
   between any two of them matches .section-block pages. No section paints its own
   background, which is what left a hard colour edge under the assurance chips. */
.pdMain { padding: var(--tatvant-section) 0; }
.pdGrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }

.pdGallery { position: sticky; top: 104px; display: grid; gap: 1.25rem; }
.pdImageFrame { position: relative; margin: 0; border-radius: 24px; overflow: hidden; background: #f2f7f2; border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 24px 60px rgba(16, 61, 26, 0.12); }
.pdImageFrame img { width: 100%; height: 480px; object-fit: cover; transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.pdImageFrame:hover img { transform: scale(1.06); }
.pdImageTag { position: absolute; top: 20px; left: 20px; padding: 0.45rem 1rem; border-radius: 999px; background: rgba(255,255,255,0.93); color: #1b5e20; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; box-shadow: 0 8px 18px rgba(0,0,0,0.12); }

.pdAssurance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.pdAssurance li { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 1rem 0.75rem; border: 1px solid #e6efe7; border-radius: 16px; background: #f8fbf8; text-align: center; font-size: 0.85rem; font-weight: 600; color: #35553d; }
.pdAssurance svg { width: 22px; height: 22px; color: #2e7d32; }

.pdInfo > * + * { margin-top: 1.35rem; }
.pdCategory { display: inline-block; padding: 0.4rem 0.9rem; border-radius: 999px; background: #e8f5e9; color: #1b5e20; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.pdInfo .pdSectionTitle { margin: 0; }
.pdLead { margin: 0; font-size: 1.15rem; line-height: 1.7; color: #4a5c4f; }

/* Spec grid */
.pdSpecs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; margin: 0; padding: 0; border: 1px solid #e6efe7; border-radius: 20px; overflow: hidden; background: #e6efe7; }
.pdSpecRow { background: #fff; padding: 1.1rem 1.25rem; }
.pdSpecRow dt { margin: 0 0 0.35rem; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #7d8b80; }
.pdSpecRow dd { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.45; color: #1f3a26; }
.pdSpecRow dd a { color: #2e7d32; }
.pdSpecRow dd a:hover { text-decoration: underline; }

.pdActions { display: flex; flex-wrap: wrap; gap: 1rem; }
.pdActions .btn { gap: 0.5rem; }
.pdActions svg { width: 18px; height: 18px; }

.pdNote { display: flex; align-items: flex-start; gap: 0.65rem; padding: 1rem 1.15rem; border: 1px dashed #cfe3d2; border-radius: 16px; background: #f4f9f4; font-size: 0.95rem; line-height: 1.6; color: #4a5c4f; }
.pdNote svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; color: #2e7d32; }

/* Description */
.pdContent { padding: var(--tatvant-section) 0; }
.pdSectionTitle { margin: 0 0 1.5rem; font-family: var(--font-heading, "Poppins", sans-serif); font-size: clamp(1.55rem, 2.4vw, 2.1rem); font-weight: 800; color: #1b5e20; }
.pdProse { max-width: 900px; padding: 0; }
.pdProse > :first-child { margin-top: 0; }
.pdProse p, .pdProse li { font-size: 1.05rem; line-height: 1.8; color: #4a5c4f; }
.pdProse h2, .pdProse h3, .pdProse h4 { margin: 2rem 0 0.75rem; color: #1b5e20; }
.pdProse ul, .pdProse ol { padding-left: 1.35rem; }
.pdProse img { border-radius: 18px; margin: 1.5rem 0; }
.pdProse blockquote { margin: 1.5rem 0; padding: 1rem 1.5rem; border-left: 4px solid #2e7d32; border-radius: 0 16px 16px 0; background: #f4f9f4; }
.pdProse table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.pdProse th, .pdProse td { padding: 0.75rem 1rem; border: 1px solid #e6efe7; text-align: left; }
.pdProse th { background: #f4f9f4; color: #1b5e20; }
.pdEmptyContent { margin: 0; color: #7d8b80; font-style: italic; }

/* Related products */
.pdRelated { padding: var(--tatvant-section) 0; }
.pdRelatedHead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2.25rem; }
.pdRelatedHead .pdSectionTitle { margin: 0; }
.pdRelatedHead p { margin: 0.35rem 0 0; color: #6d7a6f; }
.pdRelated .productGrid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 32px; padding-bottom: 0; }
.pdRelated .imageContainer { height: 220px; }
.pdRelated .info { padding: 24px 20px; }
.pdRelated .title { font-size: 21px; }

/* Closing CTA */
.pdCta { padding: var(--tatvant-section) 0; }
.pdCtaInner { padding: clamp(2.25rem, 5vw, 3.75rem); border-radius: 28px; text-align: center; color: #fff; background: linear-gradient(135deg, #1b5e20, #2e7d32); box-shadow: 0 30px 60px rgba(27, 94, 32, 0.22); }
.pdCtaInner h2 { margin: 0 0 0.75rem; font-family: var(--font-heading, "Poppins", sans-serif); font-size: clamp(1.5rem, 2.6vw, 2.15rem); font-weight: 800; color: #fff; }
.pdCtaInner p { max-width: 620px; margin: 0 auto 2rem; color: rgba(255,255,255,0.9); }
.pdCtaActions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.pdCtaInner .btn { background: #fff; border-color: #fff; color: #1b5e20; gap: 0.5rem; }
.pdCtaInner .btn:hover { background: rgba(255,255,255,0.88); border-color: rgba(255,255,255,0.88); color: #14481a; }
.pdCtaInner .btn-ghost { background: transparent; border-color: rgba(255,255,255,0.7); color: #fff; }
.pdCtaInner .btn-ghost:hover { background: #fff; color: #1b5e20; }
.pdCtaInner svg { width: 18px; height: 18px; }

@media (max-width: 992px) {
  .pdGrid { grid-template-columns: 1fr; gap: 2.5rem; }
  .pdGallery { position: static; }
  .pdImageFrame img { height: 400px; }
}

@media (max-width: 600px) {
  .pdImageFrame img { height: 280px; }
  .pdAssurance { grid-template-columns: 1fr; }
  .pdAssurance li { flex-direction: row; justify-content: center; }
  .pdActions .btn { width: 100%; }
}
