/* ============================================
   ENVIROTEC — Product Detail Page Styles
   Layered on top of styles.css
   ============================================ */

/* ---- Product hero ---- */
.pd-hero {
  background: linear-gradient(160deg, #f0faf3 0%, #e6f5ed 50%, #eef6f0 100%);
  padding: calc(var(--nav-h) + 60px) var(--pad) 70px;
  position: relative;
  overflow: hidden;
}
.pd-hero::before {
  content: ''; position: absolute;
  top: -150px; right: -150px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11,122,62,0.08), transparent 70%);
  pointer-events: none;
}

.pd-hero-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
  position: relative;
}

.pd-breadcrumb {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.pd-breadcrumb a { color: var(--text-muted); transition: color 0.3s; }
.pd-breadcrumb a:hover { color: var(--green); }
.pd-breadcrumb span { color: var(--green); }

.pd-model-badge {
  display: inline-block;
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.1em; color: var(--green);
  background: var(--green-pale); padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.pd-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400; line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.pd-tagline {
  font-size: 1.05rem; line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.pd-quick-specs {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 32px;
}
.pd-spec-pill {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  padding: 8px 16px; border: 1px solid var(--border);
  border-radius: 100px; color: var(--green);
  background: var(--white);
}

.pd-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.pd-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; background: var(--green); color: #fff;
  font-weight: 600; font-size: 0.85rem; border-radius: 10px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s;
}
.pd-btn-primary:hover {
  background: var(--green-dark); transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(11,122,62,0.3);
}

.pd-btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border: 1.5px solid var(--border);
  color: var(--text-body); font-weight: 600; font-size: 0.85rem; border-radius: 10px;
  transition: border-color 0.3s, color 0.3s, background 0.3s, transform 0.3s var(--ease);
}
.pd-btn-outline:hover {
  border-color: var(--green); color: var(--green);
  background: var(--green-pale); transform: translateY(-2px);
}

/* Right side image */
.pd-hero-img {
  border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: var(--white);
}
.pd-hero-img img {
  width: 100%; height: 460px; object-fit: cover; display: block;
}

/* ---- Sections inside detail page ---- */
.pd-section {
  padding: clamp(60px, 8vw, 100px) var(--pad);
  background: var(--white);
}
.pd-section.alt { background: var(--off-white); }
.pd-section-inner { max-width: var(--max-w); margin: 0 auto; }

.pd-section-label {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
  display: inline-flex; align-items: center; gap: 10px;
}
.pd-section-label::before {
  content: ''; width: 20px; height: 1.5px; background: var(--green);
}

.pd-section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400; line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 32px;
}

/* Specs table */
.pd-specs-table {
  width: 100%;
  border-collapse: separate; border-spacing: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
}
.pd-specs-table thead {
  background: var(--off-white);
}
.pd-specs-table th {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-primary);
  text-align: left; padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.pd-specs-table td {
  padding: 16px 18px;
  font-size: 0.9rem; color: var(--text-body);
  border-bottom: 1px solid var(--border);
}
.pd-specs-table tbody tr:last-child td { border-bottom: none; }
.pd-specs-table tbody tr:hover { background: var(--off-white); }
.pd-specs-table td:first-child {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600;
  color: var(--green);
}

.pd-specs-note {
  font-size: 0.85rem; color: var(--text-muted);
  margin-top: 14px; font-style: italic;
}

/* Specifications list */
.pd-specs-list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  margin-top: 8px;
}
.pd-spec-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.pd-section.alt .pd-spec-item { background: var(--white); }
.pd-spec-item-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  background: var(--green-pale);
  color: var(--green);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.pd-spec-item-content {}
.pd-spec-item-label {
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.pd-spec-item-value {
  font-size: 0.92rem; font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
}

/* Two column content */
.pd-two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 4vw, 60px);
  align-items: start;
}
.pd-col-img {
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
}
.pd-col-img img { width: 100%; height: auto; display: block; }
.pd-col-content {}

/* Safety / Features lists */
.pd-feature-list {
  list-style: none; padding: 0; margin: 0;
}
.pd-feature-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; gap: 14px;
  font-size: 0.92rem; line-height: 1.6;
  color: var(--text-body);
}
.pd-feature-list li:last-child { border-bottom: none; }
.pd-feature-list li::before {
  content: '';
  flex-shrink: 0;
  width: 20px; height: 20px;
  background: var(--green-pale);
  border-radius: 50%;
  margin-top: 1px;
  position: relative;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b7a3e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---- Inquiry form ---- */
.pd-inquiry {
  background: linear-gradient(180deg, var(--white) 0%, var(--green-pale) 100%);
  padding: clamp(60px, 8vw, 100px) var(--pad);
  border-top: 1px solid var(--border);
}
.pd-inquiry-inner {
  max-width: 900px; margin: 0 auto;
}
.pd-inquiry-header {
  text-align: center;
  margin-bottom: 44px;
}

.pd-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-md);
}

.pd-form-section {
  margin-bottom: 32px;
}
.pd-form-section:last-of-type { margin-bottom: 24px; }

.pd-form-section-title {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.pd-form-row {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  margin-bottom: 16px;
}
.pd-form-row.three-col { grid-template-columns: repeat(3, 1fr); }
.pd-form-row.full { grid-template-columns: 1fr; }

.pd-form-group {
  display: flex; flex-direction: column; gap: 6px;
}

.pd-form-group label {
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted);
}

.pd-form-group input,
.pd-form-group select,
.pd-form-group textarea {
  padding: 12px 14px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-sans); font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.pd-form-group input::placeholder,
.pd-form-group textarea::placeholder { color: var(--text-faint); }
.pd-form-group input:focus,
.pd-form-group select:focus,
.pd-form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow);
  background: var(--white);
}
.pd-form-group textarea { min-height: 100px; resize: vertical; }

/* Radio group for model selection */
.pd-radio-group {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.pd-radio-option {
  position: relative;
  display: flex; flex-direction: column;
  padding: 14px 16px;
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s, transform 0.2s var(--ease);
}
.pd-radio-option:hover {
  border-color: var(--green-pale);
  background: var(--green-pale);
}
.pd-radio-option input[type="radio"] {
  position: absolute; opacity: 0;
}
.pd-radio-option input[type="radio"]:checked + .pd-radio-content {
  color: var(--green);
}
.pd-radio-option:has(input:checked) {
  border-color: var(--green);
  background: var(--green-pale);
}
.pd-radio-content {
  display: flex; flex-direction: column; gap: 4px;
}
.pd-radio-name {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700;
  color: var(--text-primary);
}
.pd-radio-desc {
  font-size: 0.78rem; color: var(--text-muted);
}

/* Checkbox grid */
.pd-checkbox-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px;
}
.pd-checkbox-option {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
  font-size: 0.84rem;
}
.pd-checkbox-option:hover {
  border-color: var(--green-pale);
  background: var(--green-pale);
}
.pd-checkbox-option input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--green);
  cursor: pointer;
}
.pd-checkbox-option:has(input:checked) {
  border-color: var(--green);
  background: var(--green-pale);
  color: var(--green);
}

.pd-form-submit {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 40px;
  background: var(--green); color: #fff;
  font-weight: 700; font-size: 0.88rem; letter-spacing: 0.04em;
  border-radius: 10px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s;
  align-self: flex-start;
  border: none; cursor: pointer; font-family: inherit;
}
.pd-form-submit:hover {
  background: var(--green-dark); transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(11,122,62,0.3);
}

.pd-form-disclaimer {
  font-size: 0.78rem; color: var(--text-muted);
  text-align: center; margin-top: 18px;
  line-height: 1.6;
}

/* Related products */
.pd-related-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
  .pd-hero-img img { height: 380px; }
}

@media (max-width: 768px) {
  .pd-hero-inner { grid-template-columns: 1fr; }
  .pd-hero-img { order: -1; }
  .pd-hero-img img { height: 280px; }
  .pd-specs-list { grid-template-columns: 1fr; }
  .pd-two-col { grid-template-columns: 1fr; }
  .pd-form-row { grid-template-columns: 1fr; }
  .pd-form-row.three-col { grid-template-columns: 1fr; }
  .pd-radio-group { grid-template-columns: 1fr; }
}

/* DARK THEME OVERRIDES */
[data-theme="dark"] .pd-hero {
  background: linear-gradient(160deg, #0a0f1a 0%, #111827 50%, #0a0f1a 100%);
}
[data-theme="dark"] .pd-hero::before {
  background: radial-gradient(circle, rgba(59,130,246,0.08), transparent 70%);
}
[data-theme="dark"] .pd-breadcrumb { color: #64748b; }
[data-theme="dark"] .pd-breadcrumb a { color: #64748b; }
[data-theme="dark"] .pd-breadcrumb a:hover,
[data-theme="dark"] .pd-breadcrumb span { color: #3b82f6; }
[data-theme="dark"] .pd-model-badge { background: rgba(59,130,246,0.15); color: #60a5fa; }
[data-theme="dark"] .pd-title { color: #e2e8f0; }
[data-theme="dark"] .pd-tagline { color: #94a3b8; }
[data-theme="dark"] .pd-spec-pill { background: #1e293b; border-color: rgba(255,255,255,0.06); color: #60a5fa; }
[data-theme="dark"] .pd-btn-primary { background: #3b82f6; }
[data-theme="dark"] .pd-btn-primary:hover { background: #2563eb; }
[data-theme="dark"] .pd-btn-outline { color: #94a3b8; border-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .pd-btn-outline:hover { color: #3b82f6; border-color: #3b82f6; background: rgba(59,130,246,0.08); }
[data-theme="dark"] .pd-hero-img { background: #1e293b; }

[data-theme="dark"] .pd-section { background: #0a0f1a; }
[data-theme="dark"] .pd-section.alt { background: #111827; }
[data-theme="dark"] .pd-section-label { color: #3b82f6; }
[data-theme="dark"] .pd-section-label::before { background: #3b82f6; }
[data-theme="dark"] .pd-section-title { color: #e2e8f0; }

[data-theme="dark"] .pd-specs-table { background: #1e293b; border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .pd-specs-table thead { background: #0f172a; }
[data-theme="dark"] .pd-specs-table th { color: #e2e8f0; border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .pd-specs-table td { color: #cbd5e1; border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .pd-specs-table tbody tr:hover { background: rgba(59,130,246,0.04); }
[data-theme="dark"] .pd-specs-table td:first-child { color: #60a5fa; }
[data-theme="dark"] .pd-specs-note { color: #94a3b8; }

[data-theme="dark"] .pd-spec-item { background: #1e293b; border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .pd-spec-item-icon { background: rgba(59,130,246,0.15); color: #60a5fa; }
[data-theme="dark"] .pd-spec-item-label { color: #94a3b8; }
[data-theme="dark"] .pd-spec-item-value { color: #e2e8f0; }

[data-theme="dark"] .pd-feature-list li { color: #cbd5e1; border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .pd-feature-list li::before {
  background: rgba(59,130,246,0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2360a5fa' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

[data-theme="dark"] .pd-col-img { background: #1e293b; border-color: rgba(255,255,255,0.06); }

[data-theme="dark"] .pd-inquiry {
  background: linear-gradient(180deg, #0a0f1a 0%, #111827 100%);
  border-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .pd-form { background: #1e293b; border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .pd-form-section-title { color: #3b82f6; border-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .pd-form-group label { color: #94a3b8; }
[data-theme="dark"] .pd-form-group input,
[data-theme="dark"] .pd-form-group select,
[data-theme="dark"] .pd-form-group textarea {
  background: #111827; border-color: rgba(255,255,255,0.08); color: #e2e8f0;
}
[data-theme="dark"] .pd-form-group input::placeholder,
[data-theme="dark"] .pd-form-group textarea::placeholder { color: #475569; }
[data-theme="dark"] .pd-form-group input:focus,
[data-theme="dark"] .pd-form-group select:focus,
[data-theme="dark"] .pd-form-group textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
  background: #0f172a;
}
[data-theme="dark"] .pd-radio-option { background: #111827; border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .pd-radio-option:hover { background: rgba(59,130,246,0.08); border-color: rgba(59,130,246,0.3); }
[data-theme="dark"] .pd-radio-option:has(input:checked) { background: rgba(59,130,246,0.12); border-color: #3b82f6; }
[data-theme="dark"] .pd-radio-name { color: #e2e8f0; }
[data-theme="dark"] .pd-radio-desc { color: #94a3b8; }
[data-theme="dark"] .pd-checkbox-option { background: #111827; border-color: rgba(255,255,255,0.08); color: #cbd5e1; }
[data-theme="dark"] .pd-checkbox-option:hover { background: rgba(59,130,246,0.08); }
[data-theme="dark"] .pd-checkbox-option:has(input:checked) { background: rgba(59,130,246,0.12); border-color: #3b82f6; color: #60a5fa; }
[data-theme="dark"] .pd-form-submit { background: #3b82f6; }
[data-theme="dark"] .pd-form-submit:hover { background: #2563eb; }
[data-theme="dark"] .pd-form-disclaimer { color: #94a3b8; }
