/* ✅ 정렬바 스타일 */
.sort-nav {
  background-color: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px 20px;
}

.sort-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.sort-link {
  color: #666;
  text-decoration: none;
  font-size: 17px;
  transition: color 0.2s;
}

.sort-link:hover {
  color: #007bff;
}

.sort-link.active {
  color: #007bff;
  font-weight: 600;
}

.sort-link.active::before {
  content: "✓ ";
  font-weight: bold;
}

/* ✅ 개수 선택 */
.per-page-select .form-select {
  width: auto;
  min-width: 130px;
  font-size: 14px;
  border-color: #dee2e6;
}

/* ✅ 상품 카드 */
.product-card {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  transition: transform 0.15s ease;
  cursor: pointer;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.product-card .card-img-top {
  height: 240px;
  object-fit: cover;
  background-color: #f8f9fa;
}

.product-card .card-body {
  padding: 16px;
  text-align: center; /* ✅ 중앙정렬 */
}

/* ✅ 상품명 */
.product-card .card-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

/* ✅ 부가정보 (품종, 보관방법) */
.product-card .text-secondary {
  font-size: 15px;
  color: #777 !important;
}

/* ✅ kg당 가격 */
.product-card .price-per-kg {
  font-size: 14px;
}

/* ✅ 총 가격 - 기존 스타일 유지 */
.product-card .total-price {
  color: #111;
  font-size: 1.4rem;
  font-weight: bold;
}

.product-card .total-price .text-muted {
  font-size: 0.85rem;
}

/* ✅ 반응형 */
@media (max-width: 768px) {
  .sort-nav {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start !important;
  }
  
  .sort-links {
    gap: 16px;
    flex-wrap: wrap;
  }
  
  .per-page-select {
    width: 100%;
  }
  
  .per-page-select .form-select {
    width: 100%;
  }
}