/* ================================================================
   product_details_page.css
   Design tone: Premium-structured — deep forest header, crisp
   split layout, tactile enquiry buttons, clean spec table.
   ================================================================ */

/* ── Root tokens ── */
:root {
  --pdp-forest:       #163d26;
  --pdp-green:        #257a4a;
  --pdp-green-soft:   #e3f4ea;
  --pdp-green-pale:   #f4fbf6;
  --pdp-amber:        #d4821e;
  --pdp-red:          #c0392b;
  --pdp-text:         #1a2820;
  --pdp-muted:        #587265;
  --pdp-border:       #cce3d5;
  --pdp-bg:           #f2f9f5;
  --pdp-card:         #ffffff;
  --pdp-radius:       12px;
  --pdp-shadow:       0 4px 22px rgba(22, 61, 38, .10);
}

/* ── Base ── */
.hbody { padding-bottom: 4rem; }

/* ── Layout (flex wrapper defined in sidebar.css) ── */
.page-wrapper { min-height: calc(100vh - var(--header-h, 88px) - var(--footer-h, 60px)); }
.home-content  { background: var(--pdp-bg); }

/* ── Breadcrumb ── */
.breadcrumb-bar {
  background: var(--pdp-card);
  border-bottom: 1px solid var(--pdp-border);
  padding: 0.65rem 1.5rem;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  font-size: 0.8rem;
  flex-wrap: wrap;
}
.breadcrumb-item + .breadcrumb-item::before {
  content: '›';
  color: var(--pdp-muted);
  margin-right: .4rem;
}
.breadcrumb-item a {
  color: var(--pdp-green);
  text-decoration: none;
  font-weight: 500;
}
.breadcrumb-item a:hover { text-decoration: underline; }
.breadcrumb-item.active { color: var(--pdp-muted); }

/* ── PDP Main Section ── */
.pdp-section { padding: 1.5rem 1.5rem 0; }

.pdp-wrapper {
  display: flex;
  gap: 2.5rem;
  background: var(--pdp-card);
  border: 1px solid var(--pdp-border);
  border-radius: var(--pdp-radius);
  padding: 2rem;
  box-shadow: var(--pdp-shadow);
  max-width: 1100px;
}

/* ── Left column ── */
.pdp-left {
  flex: 0 0 300px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

/* Special price badge */
.pdp-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--pdp-red);
  border-radius: 20px;
  padding: 4px 14px;
  align-self: flex-start;
}

/* Product image */
.pdp-img-card {
  width: 100%;
  border: 1px solid var(--pdp-border);
  border-radius: var(--pdp-radius);
  overflow: hidden;
  background: var(--pdp-green-soft);
}
.pdp-img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  display: block;
  padding: 0.5rem;
}

/* Enquiry buttons */
.pdp-enquiry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  width: 100%;
}
.enq-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .2s, transform .15s;
  color: #fff;
}
.enq-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.enq-phone    { background: #2a6dd9; }
.enq-email    { background: #c0392b; }
.enq-whatsapp { background: #25d366; }
.enq-sms      { background: #6c5ce7; }

/* Compare button */
.pdp-compare-wrap { width: 100%; }
.pdp-compare-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 9px;
  background: var(--pdp-forest);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: .04em;
  animation: pdp-pulse 2s ease-in-out infinite;
  transition: background .2s;
}
.pdp-compare-btn:hover {
  background: var(--pdp-green);
  color: #fff;
  animation: none;
}
@keyframes pdp-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22,61,38,.35); }
  50%       { box-shadow: 0 0 0 7px rgba(22,61,38,0); }
}

/* ── Right column ── */
.pdp-right { flex: 1; display: flex; flex-direction: column; gap: 1.25rem; }

.pdp-product-title {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--pdp-forest);
  line-height: 1.2;
}
.pdp-title-rule {
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--pdp-green), var(--pdp-amber));
  border-radius: 4px;
}

/* Price table */
.pdp-price-table {
  border: 1px solid var(--pdp-border);
  border-radius: var(--pdp-radius);
  overflow: hidden;
}
.pdp-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--pdp-border);
}
.pdp-price-row:last-child { border-bottom: none; }
.pdp-price-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pdp-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.pdp-price-value { font-size: 1rem; font-weight: 700; }
.pdp-sale    { color: var(--pdp-forest); font-size: 1.2rem; }
.pdp-mrp     { color: var(--pdp-muted); text-decoration: line-through; font-weight: 500; }
.pdp-discount { color: var(--pdp-red); }

/* Description card */
.pdp-desc-card {
  background: var(--pdp-green-pale);
  border: 1px solid var(--pdp-border);
  border-radius: var(--pdp-radius);
  padding: 1rem;
}
.pdp-desc {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--pdp-muted);
}
.read-toggle {
  color: var(--pdp-green);
  cursor: pointer;
  text-decoration: underline;
  font-weight: 500;
  font-size: 0.85rem;
  margin-left: 4px;
}
.read-toggle:hover { color: var(--pdp-forest); }

/* Reviews */
.pdp-reviews {
  background: var(--pdp-card);
  border: 1px solid var(--pdp-border);
  border-radius: var(--pdp-radius);
  padding: 1rem;
}
.pdp-reviews-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.pdp-reviews-header h3 {
  font-family: 'Libre Baskerville', serif;
  font-size: 1rem;
  color: var(--pdp-forest);
  margin: 0;
}
.pdp-avg-rate {
  font-size: 0.85rem;
  color: var(--pdp-amber);
  font-weight: 700;
}
.pdp-rate-btn {
  margin-left: auto;
  padding: 5px 14px;
  background: var(--pdp-forest);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  transition: background .2s;
}
.pdp-rate-btn:hover { background: var(--pdp-green); color: #fff; }
.pdp-review-list { display: flex; flex-direction: column; gap: 0.75rem; }
.pdp-review-item {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--pdp-border);
  font-size: 0.875rem;
}
.pdp-review-item:last-child { border-bottom: none; }
.pdp-review-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}
.pdp-review-meta strong { color: var(--pdp-forest); }
.pdp-review-date { font-size: 0.75rem; color: var(--pdp-muted); }

/* ── Section shared ── */
.pdp-section-header {
  margin-bottom: 1rem;
  padding: 0 1.5rem;
}
.pdp-section-header h2 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  color: var(--pdp-forest);
  font-weight: 700;
}
.pdp-section-rule {
  width: 40px;
  height: 3px;
  background: var(--pdp-green);
  border-radius: 4px;
  margin-top: 0.4rem;
}

/* ── Specifications ── */
.pdp-specs-section { padding: 1.5rem 1.5rem 0; }
.specs-grid {
  background: var(--pdp-card);
  border: 1px solid var(--pdp-border);
  border-radius: var(--pdp-radius);
  overflow: hidden;
  max-width: 1100px;
  margin: 0 1.5rem;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1.25rem;
  border-bottom: 1px solid var(--pdp-border);
  font-size: 0.875rem;
}
.spec-row:nth-child(even) { background: var(--pdp-green-pale); }
.spec-row:last-child { border-bottom: none; }
.spec-key   { font-weight: 600; color: var(--pdp-forest); min-width: 150px; }
.spec-value { color: var(--pdp-muted); text-align: right; max-width: 65%; word-break: break-word; }

/* ── Description ── */
.pdp-description-section { padding: 1.5rem; }
.pdp-description-body {
  background: var(--pdp-card);
  border: 1px solid var(--pdp-border);
  border-radius: var(--pdp-radius);
  padding: 1.5rem;
  max-width: 1100px;
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--pdp-muted);
  text-align: justify;
  box-shadow: var(--pdp-shadow);
}

/* ── Modal ── */
.pdp-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.pdp-modal-inner {
  background: #fff;
  border-radius: var(--pdp-radius);
  padding: 2rem;
  max-width: 560px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 8px 40px rgba(0,0,0,.25);
  position: relative;
}
.pdp-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--pdp-muted);
  line-height: 1;
}
.pdp-modal-close:hover { color: var(--pdp-forest); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .pdp-wrapper { flex-direction: column; padding: 1.25rem; gap: 1.5rem; }
  .pdp-left { flex: unset; max-width: 100%; width: 100%; align-items: stretch; }
  .pdp-img { height: 220px; }
  .pdp-section { padding: 1rem 1rem 0; }
  .pdp-specs-section { padding: 1rem 1rem 0; }
  .specs-grid { margin: 0 1rem; }
  .pdp-description-section { padding: 1rem; }
  .pdp-section-header { padding: 0 1rem; }
}
@media (max-width: 480px) {
  .pdp-enquiry { grid-template-columns: 1fr 1fr; }
  .spec-row { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
  .spec-value { text-align: left; max-width: 100%; }
}