/* ═══════════════════════════════════════════════════════
   PUMP ONE — Additions for Home v2
   Append this to assets/css/style.css (or replace matching rules)
   ═══════════════════════════════════════════════════════ */

/* ─── Logo image (replaces SVG icon block) ────────────────── */
.logo-img {
  width: 44px; height: 44px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  flex-shrink: 0;
}

/* ─── Brands section ──────────────────────────────────────── */
.brands-section { padding: 64px 0; background: var(--white); }
.brands-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 36px;
}
.brand-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 22px; display: flex; flex-direction: column; gap: 10px;
  transition: all .2s; box-shadow: var(--shadow);
}
.brand-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--navy-l); }
.brand-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.brand-name {
  font-family: var(--f-head); font-size: 20px; font-weight: 800;
  color: var(--navy-d); letter-spacing: -.3px; line-height: 1.2;
}
.brand-country {
  font-size: 11px; color: var(--muted); font-weight: 600;
  display: inline-flex; align-items: center; gap: 5px;
}
.brand-country i { color: var(--orange); font-size: 10px; }
.brand-desc { font-size: 13.5px; color: var(--muted); line-height: 1.7; flex: 1; }
.brand-card-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 10px; border-top: 1px solid var(--line);
}
.brand-link {
  color: var(--navy); font-weight: 700; font-size: 13px;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-head); letter-spacing: .3px;
}
.brand-link:hover { color: var(--orange); }
.brand-ext { color: var(--muted); font-size: 13px; padding: 6px 8px; border-radius: 6px; }
.brand-ext:hover { background: var(--sky); color: var(--navy); }

/* ─── Ongoing projects section ────────────────────────────── */
.ongoing-section { padding: 64px 0; background: var(--sky); }
.ongoing-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top: 36px;
}
.ongoing-card {
  background: #fff; border-radius: 12px; padding: 22px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px;
  transition: all .2s;
}
.ongoing-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.ongoing-status {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: #166534;
  background: #dcfce7; padding: 4px 10px; border-radius: 100px;
  align-self: flex-start;
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,.25);
  animation: status-pulse 2s infinite;
}
@keyframes status-pulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(34,197,94,.25); }
  50%     { box-shadow: 0 0 0 6px rgba(34,197,94,.10); }
}
.ongoing-title {
  font-family: var(--f-head); font-size: 17px; font-weight: 800;
  color: var(--navy-d); line-height: 1.3;
}
.ongoing-meta {
  display: flex; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: var(--muted);
}
.ongoing-meta span { display: inline-flex; align-items: center; gap: 5px; }
.ongoing-meta i { color: var(--orange); font-size: 11px; }
.ongoing-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ─── Logo-pill text fallback (no image yet) ──────────────── */
.logo-pill-text {
  font-family: var(--f-head); font-size: 11px; font-weight: 700;
  color: var(--navy); text-align: center; line-height: 1.2;
  text-transform: uppercase; letter-spacing: .3px;
}

/* ─── Responsive tweaks ───────────────────────────────────── */
@media (max-width: 768px) {
  .brands-section, .ongoing-section { padding: 44px 0; }
  .brand-card, .ongoing-card { padding: 18px; }
}

/* ═══════════════════════════════════════════════════════════════
   PRODUCT PAGE — v2 fixes
   ═══════════════════════════════════════════════════════════════ */

/* 3. Square 1:1 gallery on product page
   Scoped with :not(.proj-gallery-main) — the Projects detail page
   reuses .gallery-main (for the shared thumbnail click-to-swap JS)
   but needs its own fixed 380px height, not this square override. */
.gallery-main:not(.proj-gallery-main) {
  position: relative;
  width: 100%;
  padding-bottom: 100%;   /* forces 1:1 aspect ratio */
  height: 0 !important;   /* override old fixed height */
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--line);
  background: #fff;
  margin-bottom: 12px;
}
.gallery-main:not(.proj-gallery-main) img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;    /* contain so full product visible */
  padding: 16px;
}
.gallery-thumb {
  width: 68px;
  height: 68px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--line);
  cursor: pointer;
  transition: border-color .2s;
  background: #fff;
}
.gallery-thumb img { width:100%;height:100%;object-fit:contain;padding:6px; }
.gallery-thumb.active { border-color: var(--orange); }

/* 5. Specs section — no gap, flush */
.specs-section { margin-top: 24px; }
.specs-section h3 {
  font-family: var(--f-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.specs-table { width: 100%; border-collapse: collapse; font-size: 13.5px; border-radius: 8px; overflow: hidden; }
.specs-table tr:nth-child(odd)  { background: var(--sky,#f1f5fb); }
.specs-table tr:nth-child(even) { background: #fff; }
.specs-table td { padding: 9px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.specs-table td:first-child { font-weight: 600; color: var(--navy); width: 42%; }
.specs-table tr:last-child td { border-bottom: none; }

/* 6. QTY input centered */
.qty-control input[type=number] {
  text-align: center !important;
  -moz-appearance: textfield;
}
.qty-control input[type=number]::-webkit-inner-spin-button,
.qty-control input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; }

/* 7. Remove big redundant page-banner h1 gap — banner is now breadcrumb only */
.page-banner .wrap h1:last-child:first-child { display: none; }
/* But keep h1 when it's the only real content (non-product pages) */
.page-banner h1 { margin-bottom: 6px; }

/* Product info h1 (the real title on product page) */
.product-info h1 {
  font-family: var(--f-head);
  font-size: 28px;
  font-weight: 800;
  color: var(--navy-d);
  margin: 8px 0 8px;
  line-height: 1.2;
}

/* Related products — square images */
.sol-img-square {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  height: 0 !important;
  background: #fff;
  overflow: hidden;
}
.sol-img-square img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

/* Add-to-quote bar layout */
.add-to-quote-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: nowrap;
  background: var(--sky,#f1f5fb);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 20px;
}
.btn-add-to-quote {
  flex: 1;
  justify-content: center;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  height: 42px;
  border-radius: 7px;
  font-family: var(--f-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .3px;
  background: var(--orange);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background .2s;
}
.btn-add-to-quote:hover { background: var(--orange-h,#d9541a); }
.btn-add-to-quote.in-cart { background: #166534; cursor: default; }
.btn-add-to-quote:disabled { opacity: .85; cursor: default; }

/* ── PRODUCTS UNDER BRANDS (brands.php) ──────────────────────── */
/* Already in brands.php inline, but ensure object-fit consistent */
.brand-prod-img img { object-fit: contain !important; }
