/* Course Shop Products Page Styles */

.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
  border: none;
  background-color: var(--bs-body-bg);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.product-image {
  height: 240px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.sale-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
  border-radius: 50px;
  padding: 0.5rem 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.section-py {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.section-title {
  position: relative;
  color: var(--bs-primary);
  font-weight: 700;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--bs-primary);
  border-radius: 3px;
}

.filter-card {
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: none;
  position: sticky;
  top: 20px;
}

.filter-header {
  background-color: var(--bs-primary-bg-subtle);
  border-bottom: none;
  padding: 1.2rem 1.5rem;
}

.category-label {
  transition: color 0.3s ease;
}

.form-check-input:checked~.category-label {
  color: var(--bs-primary);
  font-weight: 600;
}

.price-slider {
  height: 5px;
  margin: 1.5rem 0;
}

.product-card .card-body {
  padding: 1.5rem;
}

.product-card .card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-add-cart {
  border-radius: 50px;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.btn-view {
  border-radius: 50px;
  padding: 0.5rem 1rem;
}

.stock-badge {
  border-radius: 50px;
  padding: 0.4rem 0.8rem;
  font-size: 0.75rem;
}

.collection-badge {
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
}

.pagination {
  gap: 0.3rem;
}

.pagination .page-item .page-link {
  border-radius: 8px;
  border: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.pagination .page-item.active .page-link {
  background-color: var(--bs-primary);
}

.product-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.product-price {
  font-size: 1.1rem;
}

.filter-btn {
  border-radius: 8px;
  font-weight: 600;
}

/* Enhanced styles inspired by events-list */
.hover-shadow {
  transition: all 0.3s ease;
}

.hover-shadow:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.course-card .card {
  border: none;
  border-radius: 16px;
  overflow: hidden;
}

.course-title {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
}

.course-description {
  line-height: 1.5;
}

.form-check-input:checked {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

.badge {
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
}

.btn {
  border-radius: 8px;
  font-weight: 500;
}

.btn-primary {
  background-color: #696cff;
  border-color: #696cff;
}

.btn-primary:hover {
  background-color: #5a5dff;
  border-color: #5a5dff;
}

.text-primary {
  color: #696cff !important;
}

.bg-primary-subtle {
  background-color: rgba(105, 108, 255, 0.1) !important;
}

/* Search and filter enhancements */
.input-group-text {
  background-color: #f8f9fa;
  border-color: #dee2e6;
}

.form-control:focus, .form-select:focus {
  border-color: #696cff;
  box-shadow: 0 0 0 0.2rem rgba(105, 108, 255, 0.25);
}

/* Pagination styling */
.pagination .page-link {
  color: #696cff;
  border-radius: 8px;
  margin: 0 2px;
  border: 1px solid #dee2e6;
}

.pagination .page-item.active .page-link {
  background-color: #696cff;
  border-color: #696cff;
}

.pagination .page-link:hover {
  color: #5a5dff;
  background-color: #f8f9fa;
}
