/* ── PRODUCTS PAGE CSS ── */

/* Page Body */
.products-page-body { background: var(--off-white); }

/* ── PRODUCTS HERO ── */
#products-hero {
  background: linear-gradient(135deg, var(--brand-pine-dark) 0%, var(--brand-pine) 60%, var(--brand-ocean) 100%);
  padding: 130px 24px 60px;
  position: relative;
  overflow: hidden;
}
#products-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 90%, rgba(0,176,144,0.15) 0%, transparent 50%),
    radial-gradient(circle at 90% 10%, rgba(255,255,255,0.04) 0%, transparent 50%);
}
.products-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.products-hero-content .hero-tag {
  background: rgba(0,176,144,0.25);
  color: var(--brand-mint);
  border: 1px solid rgba(0,176,144,0.3);
}
.products-hero-content h1 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin: 16px 0 14px;
}
.products-hero-content h1 span { color: var(--brand-mint); }
.products-hero-content p {
  font-size: 15px;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  line-height: 1.7;
}
.products-hero-stats {
  display: flex;
  gap: 32px;
  flex-shrink: 0;
}
.phero-stat {
  text-align: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  padding: 20px 28px;
  min-width: 100px;
  backdrop-filter: blur(4px);
}
.phero-num {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: var(--brand-mint);
  font-family: 'Poppins', sans-serif;
  line-height: 1;
  margin-bottom: 6px;
}
.phero-label {
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* ── LAYOUT ── */
.products-layout {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  gap: 32px;
  align-items: flex-start;
  position: relative;
}

/* ── SIDEBAR ── */
.cat-sidebar {
  width: 240px;
  flex-shrink: 0;
  position: sticky;
  top: 90px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--mid-gray);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.cat-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--light-gray);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--brand-pine);
}
.cat-sidebar-close {
  display: none;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-mid);
  padding: 0;
  line-height: 1;
}
.cat-nav { padding: 8px 0; }
.cat-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  border-radius: 0;
}
.cat-nav-item:hover {
  background: rgba(0,176,144,0.06);
  color: var(--brand-pine);
  border-left-color: var(--teal);
}
.cat-nav-item.active {
  background: rgba(0,176,144,0.1);
  color: var(--teal-dark);
  border-left-color: var(--teal);
  font-weight: 600;
}
.cat-nav-item .cat-icon { font-size: 16px; flex-shrink: 0; }
.cat-count {
  margin-left: auto;
  background: var(--light-gray);
  color: var(--text-light);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}
.cat-nav-item.active .cat-count {
  background: rgba(0,176,144,0.2);
  color: var(--teal-dark);
}

/* ── MAIN CONTENT ── */
.products-main { flex: 1; min-width: 0; }

/* TOPBAR */
.products-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.cat-toggle-btn {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--brand-pine);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.products-search-wrap {
  position: relative;
  flex: 1;
  max-width: 400px;
}
.products-search {
  width: 100%;
  padding: 11px 40px 11px 16px;
  border: 1.5px solid var(--mid-gray);
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s;
}
.products-search:focus { border-color: var(--teal); }
.search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  pointer-events: none;
}
.products-count {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
  margin-left: auto;
}

/* ── CATEGORY SECTION ── */
.cat-section {
  margin-bottom: 60px;
  scroll-margin-top: 100px;
}
.cat-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--light-gray);
}
.cat-section-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,176,144,0.15), rgba(30,115,120,0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.cat-section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand-pine);
  line-height: 1;
}
.cat-section-desc {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 3px;
}
.cat-section-badge {
  margin-left: auto;
  background: var(--light-gray);
  color: var(--text-mid);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

/* ── PRODUCT CARDS GRID ── */
.products-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.prod-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--mid-gray);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.prod-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0,176,144,0.3);
}
.prod-img-wrap {
  position: relative;
  height: 190px;
  background: #fafbfb;
  border-bottom: 1px solid var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
}
.prod-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.prod-card:hover .prod-img-wrap img { transform: scale(1.06); }
.prod-available-dot {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,176,144,0.2);
}
.prod-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.prod-subcat {
  font-size: 10px;
  font-weight: 700;
  color: var(--brand-ocean);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.prod-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--brand-pine);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prod-desc {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.prod-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--light-gray);
  display: flex;
  gap: 8px;
}
.prod-btn-view {
  flex: 1;
  text-align: center;
  padding: 8px 12px;
  border-radius: 7px;
  background: var(--steel-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  display: block;
}
.prod-btn-view:hover {
  background: var(--steel-blue-dark);
  transform: translateY(-1px);
}
.prod-btn-enquire {
  padding: 8px 12px;
  border-radius: 7px;
  border: 1.5px solid var(--teal);
  background: transparent;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.prod-btn-enquire:hover {
  background: var(--teal);
  color: #fff;
}

/* NO RESULTS */
.no-results {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-light);
}
.no-results-icon { font-size: 56px; margin-bottom: 16px; }
.no-results h3 { font-size: 20px; font-weight: 700; color: var(--brand-pine); margin-bottom: 8px; }
.no-results p { font-size: 14px; }

/* ── ENQUIRY STRIP ── */
.enquiry-strip {
  background: linear-gradient(135deg, var(--brand-pine) 0%, var(--brand-ocean) 100%);
  padding: 48px 24px;
}
.enquiry-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.enquiry-strip h3 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.enquiry-strip p {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
}
.enquiry-strip-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.enquiry-strip-actions .btn-secondary {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.enquiry-strip-actions .btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* ── MOBILE OVERLAY SIDEBAR ── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 900;
}
.sidebar-overlay.open { display: block; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .products-layout { padding: 32px 16px 60px; }
  .cat-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    height: 100%;
    width: 260px;
    border-radius: 0;
    z-index: 1000;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: var(--shadow-lg);
  }
  .cat-sidebar.open { left: 0; }
  .cat-sidebar-close { display: block; }
  .cat-toggle-btn { display: flex; }
}

@media (max-width: 768px) {
  #products-hero { padding: 110px 16px 40px; }
  .products-hero-inner { flex-direction: column; align-items: flex-start; }
  .products-hero-stats { gap: 12px; }
  .phero-stat { padding: 14px 20px; }
  .products-section-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .enquiry-strip-inner { flex-direction: column; text-align: center; }
  .enquiry-strip-actions { justify-content: center; }
}

@media (max-width: 480px) {
  .products-section-grid { grid-template-columns: 1fr; }
  .products-topbar { flex-wrap: wrap; }
  .products-search-wrap { max-width: 100%; }
}

/* Nav active link */
.nav-links .nav-active {
  color: var(--teal-dark) !important;
}
.nav-links .nav-active::after {
  width: 100% !important;
}
