/* =============================================================
   IIHR Varieties Page — table with gallery-style filter bar
   ============================================================= */

.iihr-varieties-wrap {
  margin: 0;
  padding: 10px 0 40px;
}

/* Active filter tags */
.iihr-var-active-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.iihr-var-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #eaf4ea;
  border: 1px solid #c8e6c9;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: #16650a;
}
.iihr-var-filter-tag a {
  color: #888;
  text-decoration: none;
  line-height: 1;
}
.iihr-var-filter-tag a:hover {
  color: #c0392b;
}
.iihr-var-clear-all {
  font-size: 12px;
  color: #888 !important;
  text-decoration: none !important;
  margin-left: 4px;
}
.iihr-var-clear-all:hover {
  color: #c0392b !important;
  text-decoration: underline !important;
}

/* Table */
.iihr-varieties-table {
  overflow-x: auto;
  margin-bottom: 20px;
}
.iihr-varieties-table table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #d8edda;
}
.iihr-varieties-table thead th {
  background: #16650a;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 14px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 2px solid #0f4a07;
}
.iihr-varieties-table tbody tr {
  border-bottom: 1px solid #e8f5e9;
  transition: background 0.12s;
}
.iihr-varieties-table tbody tr:hover { background: #f5fbf5; }
.iihr-varieties-table tbody tr:nth-child(even) { background: #fafefa; }
.iihr-varieties-table tbody tr:nth-child(even):hover { background: #f0f8f0; }

.iihr-varieties-table td {
  padding: 10px 14px;
  font-size: 13px;
  color: #333;
  vertical-align: middle;
}

/* Columns */
.iihr-var-th-sl, .iihr-var-sl {
  width: 50px;
  text-align: center;
  font-weight: 600;
  color: #16650a;
}
.iihr-var-th-crop, .iihr-var-crop {
  width: 120px;
  font-weight: 600;
  color: #145d01;
}
.iihr-var-th-name, .iihr-var-name { width: 200px; }
.iihr-var-name a {
  color: #16650a;
  text-decoration: none;
  font-weight: 600;
}
.iihr-var-name a:hover {
  text-decoration: underline;
  color: #0f4a07;
}
.iihr-var-th-desc, .iihr-var-desc {
  min-width: 250px;
  line-height: 1.45;
  color: #555;
}
.iihr-var-th-img, .iihr-var-img {
  width: 130px;
  text-align: center;
}
.iihr-var-img img {
  max-width: 110px;
  max-height: 90px;
  border-radius: 4px;
  border: 1px solid #d8edda;
  object-fit: cover;
  transition: transform 0.2s;
}
.iihr-var-img img:hover { transform: scale(1.08); }
.iihr-var-no-img {
  font-size: 11px;
  color: #aaa;
  font-style: italic;
}
.iihr-var-empty {
  text-align: center;
  padding: 10px 14px !important;
}

/* Responsive */
@media (max-width: 768px) {
  .iihr-varieties-table td,
  .iihr-varieties-table th {
    padding: 8px 10px;
    font-size: 12px;
  }
  .iihr-var-img img {
    max-width: 70px;
    max-height: 60px;
  }
  .iihr-var-th-desc, .iihr-var-desc { min-width: 180px; }
}
