/* =========================================
   PAGE HERO (used on standalone pages)
   ========================================= */
.page-hero {
  position: relative;
  min-height: 46vh;
  margin-top: 0;
  padding: 140px 24px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: url('/images/gallery/prod1.png');
  background-size: cover;
  background-position: center;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 15, 20, 0.6) 0%, rgba(10, 15, 20, 0.75) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.page-hero-title {
  color: #ffffff;
  font-size: 2.8rem;
  font-weight: 800;
  margin: 8px 0 16px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.page-hero-subtitle {
  color: #e8e8e8;
  font-size: 1.05rem;
}

/* =========================================
   PRODUCTS PAGE
   ========================================= */
.products-section {
  padding: 90px 0 100px;
  background-color: #ffffff;
}

.products-section .section-inner {
  text-align: center;
  margin-bottom: 40px;
}

.products-section .section-lead {
  margin: 0 auto;
}

.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto 50px;
  padding: 0 32px;
}

.filter-btn {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: #4a4a4a;
  background-color: #f7f9fa;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  padding: 10px 22px;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.filter-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(192, 32, 47, 0.3);
}

.filter-btn.active {
  background-color: #c0202f;
  color: #ffffff;
  border-color: #c0202f;
}

.products-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

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

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
}

.product-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #14181c;
}

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

.product-card:hover .product-image img {
  transform: scale(1.08);
}

.product-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: rgba(192, 32, 47, 0.92);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}

.product-body {
  padding: 22px 22px 24px;
}

.product-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.product-body p {
  font-size: 0.9rem;
  color: #6a6a6a;
  line-height: 1.55;
  margin-bottom: 18px;
}

.product-enquire {
  font-size: 0.9rem;
  font-weight: 700;
  color: #c0202f;
  transition: padding-left 0.2s ease;
  display: inline-block;
}

.product-enquire:hover {
  padding-left: 4px;
}

.no-results {
  text-align: center;
  color: #8a8a8a;
  font-size: 1rem;
  margin-top: 40px;
}

.products-cta {
  background-color: #14181c;
  padding: 60px 0;
}

.products-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.products-cta-inner h2 {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.products-cta-inner p {
  color: #a8a8a8;
  font-size: 0.95rem;
  max-width: 480px;
}

.btn-primary-solid {
  display: inline-block;
  background-color: #c0202f;
  color: #ffffff;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.btn-primary-solid:hover {
  background-color: #a31b28;
  transform: translateY(-2px);
}

@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .page-hero-title {
    font-size: 2.1rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
  }

  .filter-btn {
    flex-shrink: 0;
  }

  .products-cta-inner {
    flex-direction: column;
    text-align: center;
  }
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 15, 20, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background-color: #ffffff;
  border-radius: 16px;
  max-width: 860px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  display: grid;
  grid-template-columns: 340px 1fr;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.3s ease;
}

.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
  background-color: #c0202f;
  color: #ffffff;
  transform: rotate(90deg);
}

.modal-image {
  position: relative;
  background-color: #14181c;
}

.modal-image img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.modal-image .product-tag {
  position: absolute;
  top: 14px;
  left: 14px;
}

.modal-content {
  padding: 24px 26px;
  overflow-y: auto;
}

.modal-content h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.modal-description {
  font-size: 0.95rem;
  color: #5c5c5c;
  line-height: 1.6;
  margin-bottom: 22px;
}

.modal-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 14px;
  margin-bottom: 20px;
  padding: 16px;
  background-color: #f7f9fa;
  border-radius: 12px;
}

.modal-field {
  display: flex;
  flex-direction: column;
}

.modal-field-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #8a8a8a;
  margin-bottom: 4px;
}

.modal-field-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
}

.modal-uses {
  margin-bottom: 26px;
}

.modal-uses h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.modal-uses p {
  font-size: 0.92rem;
  color: #5c5c5c;
  line-height: 1.6;
}

.modal-enquire {
  width: 100%;
  text-align: center;
}

.product-card {
  cursor: pointer;
}

.view-details-btn {
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
}

@media (max-width: 640px) {
  .modal-box {
    grid-template-columns: 1fr;
    max-height: 90vh;
    border-radius: 14px;
  }

  .modal-image {
    max-height: 200px;
    overflow: hidden;
  }

  .modal-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }

  .modal-fields {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .modal-content {
    padding: 18px 18px;
  }

  .modal-content h3 {
    font-size: 1.15rem;
  }

  .modal-description {
    font-size: 0.88rem;
  }
}