/* ======================================
   GLOBAL OVERLAY SAFETY (CRITICAL)
   ====================================== */

.gc-overlay,
.products-overlay {
  display: none !important;
  pointer-events: none !important;
}

.gc-overlay.show,
.products-overlay.show {
  display: flex !important;
  pointer-events: auto !important;
}



/* ================= OVERLAY BASE ================= */
.products-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.products-overlay.show {
  display: flex;
}

/* ================= PANEL ================= */
.products-panel {
  background: #ffffff;
  width: 1100px;
  max-width: 96%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 20px;
  padding: 32px 36px;
  box-shadow: 0 40px 80px rgba(0,0,0,.35);
  position: relative;
  animation: overlayFade .25s ease;
}

@keyframes overlayFade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================= CLOSE ================= */
.products-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 18px;
}

/* ================= HEADINGS ================= */
.products-panel h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}

.products-sub {
  color: #64748b;
  margin-bottom: 26px;
}

/* ================= GRID ================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.products-col h3 {
  font-size: 16px;
  margin-bottom: 10px;
  font-weight: 700;
}

.products-col a,
.products-col button {
  display: block;
  padding: 8px 0;
  color: #334155;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
}

.products-col a:hover,
.products-col button:hover {
  color: #2563eb;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .products-panel {
    padding: 24px;
  }
}
/* ===============================
   OVERLAY BASE FIX (CRITICAL)
   =============================== */

.gc-overlay,
.products-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  pointer-events: none;   /* ⛔ block clicks when hidden */
}

/* When overlay is OPEN */
.gc-overlay.show,
.products-overlay.show {
  display: flex;
  pointer-events: auto;   /* ✅ allow interaction */
}
