/* ======================================================
   Xpress Vending Catalog – NYC Showroom Edition
====================================================== */

/* ================= Catalog Section ================= */
.catalog-section {
  padding: 6rem 0;
}

.catalog-header h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: #111;
}

.catalog-header p {
  font-size: 1rem;
  color: #6B7280;
  max-width: 600px;
  margin: 0.5rem auto 2rem auto;
  line-height: 1.5;
}

/* ================= Catalog Filters ================= */
.catalog-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  border-radius: 2rem;
  border: 1px solid #E5E7EB;
  background: #fff;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: #1CA3C7;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

/* ================= Catalog Grid ================= */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  justify-items: center;
}

/* ================= Catalog Card ================= */
.catalog-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  width: 100%;
  max-width: 380px;
}

.catalog-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 28px 64px rgba(0,0,0,0.18);
}

/* ================= Image Wrapper ================= */
.catalog-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 0.7;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem;
  gap: 2.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.catalog-image-wrapper img {
  max-height: 100%;
  object-fit: contain;
  border-radius: 1rem;
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  cursor: zoom-in;
  transition: transform 0.4s ease, filter 0.4s ease, box-shadow 0.4s ease;
}

.catalog-image-wrapper img:hover {
  transform: scale(1.08);
  filter: brightness(1.05);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.catalog-image-wrapper::-webkit-scrollbar {
  height: 6px;
}

.catalog-image-wrapper::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.08);
  border-radius: 3px;
}

/* ================= Content ================= */
.catalog-content {
  padding: 1.5rem 2rem;
  flex-grow: 1;
  text-align: center;
}

.catalog-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0.5rem 0 0.75rem;
  line-height: 1.3;
  color: #111;
}

.catalog-content p {
  font-size: 0.9rem;
  color: #4B5563;
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* ================= Category Tag ================= */
.catalog-tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(120deg, #1CA3C7, #28A745, #8B4513);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 1rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ================= View Installed Toggle ================= */
.image-toggle {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: #ffffff;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}

.image-toggle:hover {
  background: #1CA3C7;
  color: #ffffff;
  transform: translateY(-2px);
}

/* ================= Fullscreen Image Modal ================= */
.catalog-image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.catalog-image-modal.active {
  opacity: 1;
  visibility: visible;
}

.catalog-image-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 1rem;
  box-shadow: 0 20px 48px rgba(0,0,0,0.6);
  cursor: pointer;
}

/* ================= Responsive ================= */
@media (max-width: 1024px) {
  .catalog-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .catalog-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
  }

  .catalog-content h3 {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .catalog-card {
    max-width: 100%;
    height: auto;
  }

  .catalog-image-wrapper {
    gap: 1rem;
    padding: 1rem;
  }
}






/* ================= Category Tag ================= */
.catalog-tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: #F3F4F6; /* Light silver/white base */
  color: #111;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 1rem;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

/* Category-specific accent colors */
.catalog-card[data-category="vending"] .catalog-tag {
  background: #EFF9FF;  /* very light blue */
  border-color: #1CA3C7;
  color: #1CA3C7;
}

.catalog-card[data-category="micro-market"] .catalog-tag {
  background: #F0FDF4; /* very light green */
  border-color: #28A745;
  color: #28A745;
}

.catalog-card[data-category="coffee"] .catalog-tag {
  background: #FAF5F0; /* very light brown/cream */
  border-color: #8B4513;
  color: #8B4513;
}
