.catalog-hero {
  background: linear-gradient(135deg, #0b1f14 0%, #0f172a 60%, #1a2e1a 100%);
  padding: 140px 5% 80px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.catalog-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 80% 50%,
      rgba(34, 197, 94, 0.08) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 20% 80%,
      rgba(34, 197, 94, 0.05) 0%,
      transparent 50%
    );
  pointer-events: none;
}
.catalog-hero-content {
  position: relative;
  max-width: 640px;
}
.catalog-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: #22c55e;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.catalog-hero-content h1 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 18px;
}
.catalog-hero-content p {
  color: #94a3b8;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 500px;
}
.catalog-hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-stat strong {
  font-family: "Montserrat", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}
.hero-stat span {
  font-size: 0.78rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}
.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
}

.gallery-container {
  padding: 70px 5% 100px;
  background: #f8fafc;
}
.gallery-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.filter-bar {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 10px 22px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.25s ease;
}
.filter-btn:hover {
  border-color: #22c55e;
  color: #22c55e;
}
.filter-btn.active {
  background: #0f172a;
  color: white;
  border-color: #0f172a;
}

.results-bar {
  margin-bottom: 36px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}
.results-bar span {
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.gallery-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  transition:
    transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1),
    box-shadow 0.35s ease,
    opacity 0.3s ease;
}
.gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
}

.gallery-card-image-wrap {
  position: relative;
  overflow: hidden;
  height: 240px;
}
.gallery-card-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s ease;
}
.gallery-card:hover .gallery-card-img {
  transform: scale(1.06);
}

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 31, 20, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-card:hover .gallery-card-overlay {
  opacity: 1;
}
.overlay-quote-btn {
  background: #22c55e;
  color: white;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  transform: translateY(10px);
  transition:
    transform 0.3s ease,
    background 0.2s ease;
}
.gallery-card:hover .overlay-quote-btn {
  transform: translateY(0);
}
.overlay-quote-btn:hover {
  background: #16a34a;
}

.gallery-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 50px;
  color: white;
}
.gallery-badge.bestseller {
  background: #22c55e;
}
.gallery-badge.new-badge {
  background: #0f172a;
}

.gallery-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.gallery-cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #22c55e;
  margin-bottom: 8px;
  display: block;
}
.gallery-card-body h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
  line-height: 1.3;
}
.gallery-card-body p {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
}

.gallery-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  gap: 12px;
}
.gallery-price {
  font-family: "Montserrat", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
}
.gallery-cta {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f172a;
  border: 2px solid rgba(15, 23, 42, 0.15);
  padding: 9px 18px;
  border-radius: 50px;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.gallery-cta i {
  font-size: 0.72rem;
  transition: transform 0.25s ease;
}
.gallery-cta:hover {
  background: #22c55e;
  color: white;
  border-color: #22c55e;
}
.gallery-cta:hover i {
  transform: translateX(4px);
}

.no-results {
  text-align: center;
  padding: 80px 0;
  color: #94a3b8;
  grid-column: 1/-1;
}
.no-results i {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.catalog-cta-section {
  background: linear-gradient(135deg, #0b1f14 0%, #0f172a 100%);
  padding: 80px 5%;
}
.catalog-cta-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.catalog-cta-text h2 {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}
.catalog-cta-text p {
  color: #64748b;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 480px;
}

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .catalog-hero {
    padding: 120px 5% 60px;
  }
  .catalog-hero-stats {
    gap: 20px;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .gallery-card-image-wrap {
    height: 200px;
  }
  .catalog-cta-inner {
    flex-direction: column;
    text-align: center;
  }
  .filter-btn {
    padding: 9px 16px;
    font-size: 0.8rem;
  }
}

/* Modal styles (shared) */
.product-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 15, 0.75);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.product-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.product-modal {
  background: #fff;
  border-radius: 24px;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(30px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
}
.product-modal-overlay.active .product-modal {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.modal-close:hover {
  background: rgba(15, 23, 42, 0.15);
}
.modal-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.modal-image {
  height: 100%;
  min-height: 340px;
  background-size: cover;
  background-position: center;
  border-radius: 24px 0 0 24px;
}
.modal-content {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
}
.modal-badge {
  display: inline-block;
  background: #22c55e;
  color: white;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}
.modal-category {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #22c55e;
  margin-bottom: 8px;
  display: block;
}
.modal-content h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
  line-height: 1.2;
}
.modal-price {
  font-family: "Montserrat", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 16px;
}
.modal-desc {
  font-size: 0.92rem;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 24px;
}
.modal-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 28px;
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px;
}
.spec-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.spec-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
}
.spec-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
}
.modal-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  flex-wrap: wrap;
}
.modal-catalog-link {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
  transition: color 0.2s;
}
.modal-catalog-link:hover {
  color: #0f172a;
}
@media (max-width: 640px) {
  .modal-inner {
    grid-template-columns: 1fr;
  }
  .modal-image {
    min-height: 220px;
    border-radius: 24px 24px 0 0;
  }
  .modal-content {
    padding: 28px 24px;
  }
}
