/* PRODUCTS SECTION */

.products-section {
  padding: clamp(4rem, 7vw, 6rem) 0;
  background: #f9fbff;
}

.products-container {
  max-width: 1200px;
  margin: auto;
  padding: 0 2rem;
}

/* Header */
.products-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.products-header h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 0.75rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: #0f172a;
}

.products-header h1 span {
  color: #1072BB;
}

.products-header p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
}

/* Search */
.products-search {
  max-width: 460px;
  margin: 0 auto 2rem;
}

.products-search input {
  width: 100%;
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  border: 1.5px solid #dbe7f5;
  font-size: 0.9rem;
  outline: none;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
}

.products-search input:focus {
  border-color: #1072BB;
  box-shadow: 0 0 0 3px rgba(16, 114, 187, 0.15);
}

/* Category Filter Tabs */
.product-tabs-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2.5rem;
}

.product-tab-btn {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  color: #475569;
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.product-tab-btn:hover {
  border-color: #1072BB;
  color: #1072BB;
  background: #f0f7ff;
}

.product-tab-btn.active {
  background: #1072BB;
  border-color: #1072BB;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 114, 187, 0.25);
}

/* Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

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

@media (max-width: 480px) {
  .products-container {
    padding: 0 1rem;
  }
  .product-tabs-wrapper {
    gap: 6px;
  }
  .product-tab-btn {
    padding: 6px 12px;
    font-size: 0.78rem;
  }
}

/* Original Card Design */
.product-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.25rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: #1072BB;
  box-shadow: 0 12px 28px rgba(16, 114, 187, 0.12);
}

/* Inner Body Layout (Horizontal Flex) */
.product-card-body {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 0.85rem;
}

/* Product Image Box */
.product-img-box {
  width: 110px;
  min-width: 110px;
  height: 110px;
  background: #ffffff;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem;
  border: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.product-img-box img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

@media (max-width: 480px) {
  .product-card-body {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
  .product-img-box {
    width: 90px;
    min-width: 90px;
    height: 90px;
    padding: 0.4rem;
  }
}

/* Product Text Info */
.product-info-box {
  flex: 1;
}

.product-info-box h3.product-title {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: #1072BB;
  font-weight: 700;
  line-height: 1.35;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.product-info-box p.product-desc {
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 0;
  font-family: 'Inter', system-ui, sans-serif;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Footer */
.product-card-footer {
  border-top: 1px solid #f1f5f9;
  padding-top: 0.75rem;
  margin-top: auto;
}

.product-brochure-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.product-brochure-btn:hover {
  background: #f0f7ff;
  border-color: #1072BB;
}

.brochure-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pdf-icon {
  color: #ef4444;
  font-size: 1.1rem;
}

.brochure-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
}

.pdf-tag {
  font-size: 0.725rem;
  color: #64748b;
  background: #e2e8f0;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 500;
}

.download-icon {
  color: #1072BB;
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.product-brochure-btn:hover .download-icon {
  transform: translateY(2px);
}

/* Disabled brochure button state */
.product-brochure-btn.disabled {
  background: #f1f5f9;
  border-color: #e2e8f0;
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.product-brochure-btn.disabled .pdf-icon {
  color: #94a3b8;
}

.product-brochure-btn.disabled .brochure-label {
  color: #94a3b8;
}

.product-brochure-btn.disabled .pdf-tag {
  background: #cbd5e1;
  color: #64748b;
}

.product-brochure-btn.disabled .download-icon {
  color: #94a3b8;
}

/* Hidden cards */
.product-card.hidden,
.product-card.is-hidden {
  display: none !important;
}

.product-card.is-visible {
  display: flex !important;
}

/* Load More Button */
.products-load-more {
  text-align: center;
  margin-top: 2.5rem;
  padding-bottom: 1rem;
}

#loadMoreBtn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 2rem;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  transition: all 0.25s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

#loadMoreBtn:hover {
  background: #1072BB;
  border-color: #1072BB;
  color: #fff;
  box-shadow: 0 6px 20px rgba(16, 114, 187, 0.3);
  transform: translateY(-2px);
}
