/*
Theme Name: EnergyLink Parts Child
Theme URI: https://www.energylinkparts.com
Description: EnergyLink Parts PV B2B child theme for GeneratePress. Reads product data from ACF (pv-products) and renders B2B product pages, archives and server-side datasheet PDFs.
Author: EnergyLink Parts
Author URI: https://www.energylinkparts.com
Template: generatepress
Version: 1.5.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: energylink
*/

/* ============================================================
   EnergyLink Parts - Child theme custom styles
   ============================================================ */

:root {
  --elp-brand: #0b6e4f;
  --elp-brand-dark: #08543c;
  --elp-accent: #e8a33d;
  --elp-text: #1f2937;
  --elp-muted: #6b7280;
  --elp-border: #e5e7eb;
  --elp-bg-soft: #f6f8f7;
}

body {
  color: var(--elp-text);
}

/* ---------- Product archive (list) ---------- */
.elp-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.elp-product-card {
  border: 1px solid var(--elp-border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow .2s ease, transform .2s ease;
}

.elp-product-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  transform: translateY(-2px);
}

.elp-product-card .elp-card-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--elp-bg-soft);
}

.elp-product-card .elp-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.elp-product-card .elp-card-body {
  padding: 16px 18px 20px;
}

.elp-product-card .elp-card-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 8px;
}

.elp-product-card .elp-card-title a {
  color: var(--elp-text);
  text-decoration: none;
}

.elp-product-card .elp-card-title a:hover {
  color: var(--elp-brand);
}

.elp-product-card .elp-card-meta {
  font-size: 13px;
  color: var(--elp-muted);
  margin: 0 0 12px;
}

.elp-product-card .elp-card-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--elp-brand);
  text-decoration: none;
}

.elp-product-card .elp-card-link:hover {
  text-decoration: underline;
}

/* ---------- Product detail ---------- */
.elp-product {
  display: block;
}

.elp-breadcrumb {
  font-size: 13px;
  color: var(--elp-muted);
  margin-bottom: 12px;
}

.elp-breadcrumb a {
  color: var(--elp-muted);
  text-decoration: none;
}

.elp-breadcrumb a:hover {
  color: var(--elp-brand);
}

.elp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 32px;
}

@media (max-width: 767px) {
  .elp-hero {
    grid-template-columns: 1fr;
  }
}

.elp-gallery {
  position: relative;
}

.elp-gallery-main {
  border: 1px solid var(--elp-border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.elp-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.elp-gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.elp-gallery-thumbs button {
  width: 72px;
  height: 72px;
  border: 2px solid var(--elp-border);
  border-radius: 8px;
  padding: 0;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s ease;
}

.elp-gallery-thumbs button.is-active,
.elp-gallery-thumbs button:hover {
  border-color: var(--elp-brand);
}

.elp-gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.elp-info h1 {
  font-size: 26px;
  line-height: 1.35;
  margin: 0 0 10px;
}

.elp-info .elp-sub {
  font-size: 14px;
  color: var(--elp-muted);
  margin-bottom: 16px;
}

.elp-cta-box {
  border: 1px solid var(--elp-border);
  border-radius: 12px;
  padding: 18px;
  background: var(--elp-bg-soft);
  margin-top: 18px;
}

.elp-cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.elp-btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s ease;
}

.elp-btn-primary {
  background: var(--elp-brand);
  color: #fff;
}

.elp-btn-primary:hover {
  background: var(--elp-brand-dark);
  color: #fff;
}

.elp-btn-outline {
  background: #fff;
  color: var(--elp-brand);
  border-color: var(--elp-brand);
}

.elp-btn-outline:hover {
  background: var(--elp-brand);
  color: #fff;
}

.elp-section {
  margin: 36px 0;
}

.elp-section h2 {
  font-size: 20px;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--elp-brand);
  display: inline-block;
}

.elp-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.elp-spec-table th,
.elp-spec-table td {
  border: 1px solid var(--elp-border);
  padding: 10px 14px;
  text-align: left;
}

.elp-spec-table th {
  width: 34%;
  background: var(--elp-bg-soft);
  font-weight: 600;
  color: #374151;
}

.elp-certs {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.elp-cert {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--elp-border);
  border-radius: 10px;
  padding: 10px 16px;
  background: #fff;
}

.elp-cert img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.elp-cert span {
  font-size: 14px;
  font-weight: 600;
}

.elp-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.elp-tag {
  display: inline-block;
  background: var(--elp-bg-soft);
  border: 1px solid var(--elp-border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: #374151;
}

.elp-faq-item {
  border: 1px solid var(--elp-border);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 12px;
}

.elp-faq-item h3 {
  font-size: 15px;
  margin: 0 0 8px;
}

.elp-faq-item p {
  margin: 0;
  font-size: 14px;
  color: #4b5563;
}

.elp-entry-content {
  font-size: 15px;
  line-height: 1.75;
}

.elp-entry-content h2, .elp-entry-content h3 {
  margin-top: 28px;
}

/* ---------- Single column layout for product pages ---------- */
.single-pv-products .site-content .inside-article {
  max-width: 1000px;
}

/* ---------- Deploy verification badge ---------- */
.elp-version-badge {
  margin-top: 32px;
  padding-top: 12px;
  border-top: 1px dashed #d8d8d8;
  font-size: 11px;
  color: #9aa0a6;
  text-align: right;
  letter-spacing: 0.3px;
}
