.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: left;
  align-items: center;
  margin-bottom: 20px;
  padding: 10px;
  border-radius: 8px;
}

.search-input,
.category-select {
  min-width: 200px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: var(--font-md);
  transition: all 0.3s ease;
}

.search-input:focus,
.category-select:focus {
  border-color: var(--color-orange);
  outline: none;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

@media (max-width: 600px) {
  .filter-form {
    flex-direction: column;
  }

  .search-input,
  .category-select {
    width: 100%;
  }
}

.pcard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.pcard-content {
  display: flex;
  flex-direction: row;
  gap: 20px;
  text-align: left;
}

.pcard-text-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.pcard-name {
  padding: 8px 0;
  height: 70px;
  line-height: 20px;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.pcard-image-container {
  padding: 8px 0;
}

.pcard-image {
  object-fit: cover;
  background: #f8f8f8;
  width: 100px;
  height: auto;
  border-radius: 10px;
}

.pcard-shortdetails {
  display: flex;
  flex-direction: column;
  justify-content: left;
  color: rgb(87, 87, 87);
  padding: 5px 0;
}

.pcard-shortdetails p {
  margin: 2px 0;
  border-bottom: 1px solid #e0e0e0;
}

.pcard {
  padding: 15px;
  border: 1px solid #cdcdcd;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: transform 0.2s;
}


.pcard:hover {
  transform: translateY(-5px) rotate(3deg);
}


.pcard .btn-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  margin-top: auto;
}

/* Base button style */
.pcard .btn {
  all: unset;
  display: inline-block;
  position: relative;
  padding: 10px 15px;
  font-size: 0.75rem;

  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  text-decoration: none;
  border-radius: 0.5rem;
  cursor: pointer;
  overflow: hidden; /* ✅ prevents faint border curve issue */
  transition: transform 0.3s ease, color 0.3s ease;
  z-index: 0;
}

/* Hover overlay (shared animation) */
.pcard .view-btn::before {
  content: "";
  position: absolute;
  inset: 0; /* shorthand for top/right/bottom/left: 0 */
  background-color: #0c8829; /* use same color as text */
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: -1;
}

.pcard .quote-btn::before {
  content: "";
  position: absolute;
  inset: 0; /* shorthand for top/right/bottom/left: 0 */
  background-color: #0063cc; /* use same color as text */
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: -1;
}

/* Hover effect */
.pcard .btn:hover {
  color: #fff;
  /*transform: translateY(-1px);*/
}
.pcard .btn:hover::before {
  transform: scaleX(1);
}

/* Focus */
.pcard .btn:focus {
  outline: 1px solid currentColor;
}

/* Active */
.pcard .btn:active {
  transform: translateY(0);
}

/* Disabled */
.pcard .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Variants */
.pcard .quote-btn {
  --btn-color: #fff;
  color: var(--btn-color);
  background-color: #28a745;
}
.pcard .view-btn {
  --btn-color: #ffff;
  color: var(--btn-color);
  background-color: #007bff;
}

