/* PRODUCT CATALOGS SECTION STYLES */

.catalogs-section {
  padding: 5rem 1rem;
  background-color: #f9fafb;
}

/* Container */
.catalogs-container {
  max-width: 80rem;
  margin: 0 auto;
}

/* Header */
.catalogs-header {
  text-align: center;
  margin-bottom: 4rem;
}

.catalogs-main-title {
  font-size: 36px;
  font-family: serif;
  margin-bottom: 1rem;
  color: rgb(36, 94, 96);
  font-weight: 500;
  line-height: 1.2;
}

.catalogs-description {
  color: #4b5563;
  max-width: 42rem;
  margin: 0 auto;
  /* font-size: 1.125rem; */
  line-height: 1.6;
}

/* Catalogs wrapper - FLEXBOX */
.catalogs-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Tablet */
@media (min-width: 768px) {
  .catalogs-wrapper {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
  }

  .catalog-card {
    flex: 0 0 calc(50% - 1rem);
    max-width: calc(50% - 1rem);
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .catalog-card {
    flex: 0 0 calc(33.333% - 1.334rem);
    max-width: calc(33.333% - 1.334rem);
  }
}

/* Catalog Card */
.catalog-card {
  background-color: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.catalog-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(-4px);
}

/* Image Container */
.catalog-image-box {
  position: relative;
  height: 16rem;
  width: 100%;
}

.catalog-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    transparent 100%
  );
}

.catalog-info {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 1;
}

.catalog-category {
  font-size: 1.5rem;
  font-family: serif;
  color: white;
  margin-bottom: 0.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.catalog-category-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  line-height: 1.4;
}

/* Content */
.catalog-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Features List */
.catalog-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  flex-grow: 1;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.feature-item:last-child {
  margin-bottom: 0;
}

.feature-bullet {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background-color: rgb(217, 182, 143);
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.feature-text {
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Buttons */
.catalog-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
}

/* Base button styles */
.btn {
  display: inline-block;
  text-align: center;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: 0.375rem;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  font-family: inherit;
  line-height: 1.2;
}

.btn-view {
  background-color: #d9b68f;
  color: white;
}

.btn-view:hover {
  background-color: #d9b68f;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-download {
  background-color: white;
  color: #d9b68f;
  border: 2px solid #d9b68f;
}

.btn-download:hover {
  background-color: #d9b68f;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Button group on larger screens */
@media (min-width: 640px) {
  .catalog-buttons {
    flex-direction: row;
    gap: 0.75rem;
  }

  .btn {
    flex: 1;
  }
}

/* Responsive adjustments */
@media (min-width: 640px) {
  .catalogs-section {
    padding: 5rem 1.5rem;
  }

  .catalogs-main-title {
    font-size: 2.5rem;
  }

  .catalog-category {
    font-size: 1.75rem;
  }
}

@media (min-width: 768px) {
  .catalogs-section {
    padding: 5rem 2rem;
  }

  .catalogs-main-title {
    font-size: 3rem;
  }

  .catalog-image-box {
    height: 18rem;
  }
}

@media (min-width: 1024px) {
  .catalogs-section {
    padding: 5rem 2rem;
  }

  .catalogs-main-title {
    font-size: 36px;
  }
}

/* Animation for cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.catalog-card {
  animation: fadeInUp 0.6s ease-out both;
}

.catalog-card:nth-child(1) {
  animation-delay: 0.1s;
}
.catalog-card:nth-child(2) {
  animation-delay: 0.2s;
}
.catalog-card:nth-child(3) {
  animation-delay: 0.3s;
}
.catalog-card:nth-child(4) {
  animation-delay: 0.4s;
}
.catalog-card:nth-child(5) {
  animation-delay: 0.5s;
}
.catalog-card:nth-child(6) {
  animation-delay: 0.6s;
}

/* Focus styles for accessibility */
.btn:focus {
  outline: 2px solid #d9b68f;
  outline-offset: 2px;
}

/* Additional styles for featured catalog */
.catalog-card.featured {
  border: 2px solid rgb(217, 182, 143);
}

.catalog-card.featured::before {
  content: "Featured";
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: rgb(217, 182, 143);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
}

/* Empty state */
.catalogs-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: #6b7280;
}

.catalogs-empty p {
  font-size: 1.125rem;
  margin: 0;
}
