/* ============================================
   SHIV Inter-Comercial – Products Page Styles
   ============================================ */

/* ── Page Hero ──────────────────────────────── */
.products-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* NO margin-top – hero sits behind the fixed transparent navbar,
     exactly like index.html does. The dark overlay makes nav text readable. */
  background-color: var(--blue); /* dark fallback while image loads */
}

.products-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/Image_1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 8s ease;
}

.products-hero-bg.loaded {
  transform: scale(1);
}

.products-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(11, 37, 69, 0.88) 0%,
    rgba(11, 37, 69, 0.72) 60%,
    rgba(74, 163, 192, 0.45) 100%
  );
}

.products-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 110px 0 70px; /* top 110px = navbar height (~70px) + visual breathing room */
}

.products-hero-content .container {
  display: flex;
  align-items: center;
  gap: 48px;
}

.products-hero-text {
  flex: 1;
}

.products-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(74, 163, 192, 0.2);
  border: 1px solid rgba(74, 163, 192, 0.4);
  color: #7dd3ea;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.products-hero-content h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.products-hero-content h1 span {
  color: var(--sky);
}

.products-hero-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.products-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.products-hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 20px 28px;
  backdrop-filter: blur(8px);
}

.hero-stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--sky);
  line-height: 1;
  margin-bottom: 6px;
}

.hero-stat span {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Breadcrumb ──────────────────────────────── */
.breadcrumb-bar {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 12px 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--gray-600);
}

.breadcrumb a {
  color: var(--sky-dark);
  font-weight: 500;
}

.breadcrumb a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.breadcrumb svg {
  color: var(--gray-400);
  flex-shrink: 0;
}

/* ── Filter Bar ─────────────────────────────── */
.filter-section {
  padding: 14px 0;          /* was 48px 0 24px – that 48px caused the "floating" look */
  background: #fff;
  position: sticky;
  top: 58px;                /* match actual scrolled-navbar height, not 70px */
  z-index: 50;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 2px 16px rgba(11, 37, 69, 0.06);
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.filter-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-tab {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--gray-100);
  color: var(--gray-800);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.filter-tab:hover {
  background: var(--sky-light);
  color: var(--sky-dark);
  border-color: var(--sky);
}

.filter-tab.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.filter-count {
  font-size: 0.75rem;
  color: var(--gray-600);
  font-weight: 500;
}

/* ── Products Grid ──────────────────────────── */
.products-section {
  padding: 56px 0 80px;
  background: var(--gray-50);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ── Product Card ───────────────────────────── */
.product-catalog-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-catalog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--sky);
}

.product-catalog-card.hidden {
  display: none;
}

.product-card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, #e8f4f8, #d1ecf5);
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.product-catalog-card:hover .product-card-img img {
  transform: scale(1.07);
}

.product-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(11, 37, 69, 0.3) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.product-catalog-card:hover .product-img-overlay {
  opacity: 1;
}

.product-card-category-icon {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  opacity: 0;
  transform: scale(0.8);
  transition: var(--transition);
  color: var(--blue);
}

.product-catalog-card:hover .product-card-category-icon {
  opacity: 1;
  transform: scale(1);
}

.product-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--sky-light);
  color: var(--sky-dark);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.product-card-tag.tag-tech {
  background: #e8f0fe;
  color: #3b5bdb;
}

.product-card-tag.tag-org {
  background: #e6f5ec;
  color: #2d6a4f;
}

.product-catalog-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-catalog-card p {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
}

.product-card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.product-feature-pill {
  padding: 3px 10px;
  background: var(--gray-100);
  color: var(--gray-800);
  font-size: 0.72rem;
  border-radius: 100px;
  font-weight: 500;
}

.product-card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.btn-inquire {
  flex: 1;
  padding: 11px 18px;
  background: var(--blue);
  color: #fff;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  border: 2px solid var(--blue);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-inquire:hover {
  background: var(--navy);
  border-color: var(--navy);
  transform: translateY(-1px);
}

.btn-wa-small {
  padding: 11px 14px;
  background: #25d366;
  color: #fff;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-wa-small:hover {
  background: #128c7e;
  transform: translateY(-1px);
}

/* ── Featured Banner ────────────────────────── */
.image-banner {
  position: relative;
  height: 420px;
  overflow: hidden;
  border-radius: 0;
}

.image-banner-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/Image_1.jpg');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

.image-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(11, 37, 69, 0.92) 0%,
    rgba(11, 37, 69, 0.70) 50%,
    rgba(74, 163, 192, 0.15) 100%
  );
}

.image-banner-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.image-banner-inner {
  max-width: 600px;
}

.image-banner-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 16px;
  padding: 6px 14px;
  border: 1px solid rgba(74, 163, 192, 0.4);
  border-radius: 100px;
}

.image-banner-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.image-banner-inner p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 28px;
}

.image-banner-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── CTA Section ────────────────────────────── */
.products-cta {
  background: linear-gradient(135deg, var(--blue) 0%, #163a6b 50%, #1a4d82 100%);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}

.products-cta::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(74, 163, 192, 0.1);
}

.products-cta::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(74, 163, 192, 0.08);
}

.products-cta .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.products-cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.products-cta p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.products-cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Contact Person Card ────────────────────── */
.contact-person-strip {
  background: var(--sky-light);
  border-top: 1px solid rgba(74, 163, 192, 0.2);
  border-bottom: 1px solid rgba(74, 163, 192, 0.2);
  padding: 20px 0;
}

.contact-person-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.contact-person-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  flex-shrink: 0;
  border: 3px solid var(--sky);
}

.contact-person-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue);
}

.contact-person-info p {
  font-size: 0.82rem;
  color: var(--gray-600);
}

.contact-person-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── No Results ─────────────────────────────── */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-600);
}

.no-results svg {
  margin: 0 auto 16px;
  color: var(--gray-400);
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .products-hero-content .container {
    flex-direction: column;
    gap: 32px;
  }

  .products-hero-stats {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .products-hero {
    min-height: 400px;
  }

  .products-hero-content {
    padding: 90px 0 40px; /* enough clearance above the fixed navbar */
  }

  .filter-section {
    padding: 12px 0;
    top: 56px; /* mobile scrolled-navbar is slightly smaller */
  }

  .filter-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .filter-tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .filter-tabs::-webkit-scrollbar { display: none; }

  .filter-tab {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .products-section {
    padding: 36px 0 56px;
  }

  .image-banner {
    height: 320px;
  }
}

@media (max-width: 560px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-card-img {
    height: 200px;
  }

  .products-hero-stats {
    gap: 16px;
  }

  .hero-stat {
    padding: 14px 20px;
  }
}

