/* ==========================================================================
   SDT HEALTHCARE LLP - PRODUCTS STYLESHEET (MODERN LIGHT & REFINED CARDS)
   ========================================================================== */

/* Search & Filter Toolbar */
.products-toolbar {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 2.5rem;
}

.search-box-wrapper {
  position: relative;
  max-width: 100%;
  margin-bottom: 1.5rem;
}

.search-input {
  width: 100%;
  padding: 0.95rem 1.25rem 0.95rem 3.4rem;
  font-size: 1rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  background-color: var(--bg-pearl);
  color: var(--text-dark);
  transition: all 0.2s ease;
}

.search-input:focus {
  outline: none;
  background-color: #FFFFFF;
  border-color: var(--cyan-600);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.search-icon {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  width: 22px;
  height: 22px;
}

.filter-categories-list {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.filter-pill {
  background-color: var(--bg-slate);
  color: var(--text-body);
  border: 1px solid transparent;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.filter-pill:hover {
  background-color: var(--cyan-100);
  color: var(--cyan-600);
}

.filter-pill.active {
  background: var(--grad-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.filter-pill .count-badge {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  background-color: rgba(0, 0, 0, 0.08);
}

.filter-pill.active .count-badge {
  background-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 1.5rem;
}

.product-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-card);
  position: relative;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(2, 132, 199, 0.4);
  box-shadow: var(--shadow-card-hover);
}

.product-card-thumb {
  background: radial-gradient(circle at center, #FFFFFF 0%, #F1F5F9 100%);
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.product-card-thumb img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card-thumb img {
  transform: scale(1.04);
}

.product-category-tag {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  color: var(--navy-900);
  z-index: 2;
}

.product-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
  line-height: 1.35;
}

.product-card-title a:hover {
  color: var(--cyan-600);
}

.product-meta-specs {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.75rem 0 1.25rem 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.product-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed var(--bg-slate);
  padding-bottom: 0.35rem;
}

.product-meta-row .label {
  font-weight: 600;
  color: var(--text-body);
}

.product-meta-row .val {
  font-weight: 800;
  color: var(--navy-900);
  text-align: right;
  max-width: 60%;
}

.product-card-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--bg-slate);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* Empty Search */
.no-products-found {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background-color: #FFFFFF;
  border: 1.5px dashed var(--border-light);
  border-radius: var(--radius-lg);
}

.no-products-found h3 {
  margin-bottom: 0.5rem;
  color: var(--navy-900);
}

.no-products-found p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Product Detail Page */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: start;
}

.product-gallery-box {
  background-color: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
}

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

.product-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem 0;
  background-color: #FFFFFF;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.product-specs-table th, .product-specs-table td {
  padding: 0.95rem 1.25rem;
  font-size: 0.925rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.product-specs-table th {
  background-color: var(--bg-slate);
  color: var(--navy-900);
  font-weight: 700;
  width: 35%;
}

.regulatory-support-box {
  background: linear-gradient(135deg, #F0FDFA 0%, #E0F2FE 100%);
  border: 1.5px solid var(--teal-100);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  margin: 2rem 0;
}

.regulatory-support-box h4 {
  color: var(--teal-600);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.regulatory-support-box p {
  color: #115E59;
  font-size: 0.925rem;
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .product-gallery-box {
    position: static;
  }
}

@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .products-toolbar {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.75rem;
  }
  .search-input {
    font-size: 16px;
    padding-left: 3rem;
  }
  .search-icon {
    left: 1rem;
  }
  .filter-categories-list {
    gap: 0.4rem;
  }
  .filter-pill {
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
  }
  .product-card-thumb img {
    height: 180px;
  }
  .product-card-body {
    padding: 1.25rem;
  }
  .product-gallery-box {
    padding: 1.5rem 1rem;
    border-radius: var(--radius-lg);
  }
  .product-gallery-box img {
    max-height: 280px;
  }
  .regulatory-support-box {
    padding: 1.25rem;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
  }
}

@media (max-width: 540px) {
  .product-specs-table,
  .product-specs-table tbody,
  .product-specs-table tr,
  .product-specs-table th,
  .product-specs-table td {
    display: block;
    width: 100%;
  }
  .product-specs-table tr {
    border-bottom: 1px solid var(--border-light);
    padding: 0.5rem 0;
  }
  .product-specs-table tr:last-child {
    border-bottom: none;
  }
  .product-specs-table th {
    background: transparent;
    padding: 0.25rem 0.75rem 0 0.75rem;
    color: var(--cyan-600);
    font-size: 0.775rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .product-specs-table td {
    padding: 0.25rem 0.75rem 0.5rem 0.75rem;
    border-bottom: none;
    font-size: 0.925rem;
  }
}