/* Skeleton Shimmer Animation */
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-card {
  pointer-events: none;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  padding: 80px 0 60px;
  color: white;
  text-align: center;
}

.page-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #fff;
}

.page-subtitle {
  font-size: 1.2rem;
  color: #ccc;
  margin-bottom: 0;
}

/* Product Filter */
.product-filter {
  background: #f8f9fa;
  padding: 40px 0;
  border-bottom: 1px solid #e9ecef;
}

.filter-container {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.filter-item {
  flex: 1;
  min-width: 200px;
}

.filter-select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 14px;
  background: white;
  transition: all 0.3s ease;
}

.filter-select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.filter-select:disabled {
  background: #f8f9fa;
  color: #6c757d;
  cursor: not-allowed;
}

.filter-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn-clear,
.btn-search {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-clear {
  background: #6c757d;
  color: white;
}

.btn-clear:hover {
  background: #5a6268;
  transform: translateY(-2px);
}

.btn-search {
  background: #007bff;
  color: white;
}

.btn-search:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

/* Products Grid */
.products-grid {
  padding: 60px 0;
  background: white;
}

.products-header {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e9ecef;
}

.products-count {
  font-size: 1.1rem;
  color: #6c757d;
}

.sort-options {
  text-align: right;
}

.sort-select {
  padding: 8px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background: white;
  font-size: 14px;
}

.products-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
  min-height: 600px;
}

.product-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.product-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.product-badge {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-new {
  background: #28a745;
  color: white;
}

.badge-bestseller {
  background: #ff6b35;
  color: white;
}

.badge-discount {
  background: #dc3545;
  color: white;
}

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-code {
  font-size: 0.8rem;
  color: #6c757d;
  margin-bottom: 8px;
}

.product-name {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}

.price-main {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2fb5d2;
}

.price-unit {
  font-size: 0.85rem;
  color: #999;
  text-decoration: line-through;
}

.product-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.btn-add-cart {
  flex: 1;
  background: linear-gradient(135deg, #2fb5d2 0%, #2593a9 100%);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-add-cart:hover {
  background: linear-gradient(135deg, #2593a9 0%, #1e7a8a 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(47, 181, 210, 0.3);
}

.btn-wishlist {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  color: #6c757d;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-wishlist:hover {
  background: #e9ecef;
  color: #dc3545;
  border-color: #dc3545;
}

/* Pagination */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 30px 0;
  margin-top: 20px;
}

.pagination-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #2fb5d2 0%, #2593a9 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #2593a9 0%, #1e7a8a 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(47, 181, 210, 0.3);
}

.pagination-btn:disabled {
  background: #e9ecef;
  color: #adb5bd;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.pagination-info {
  font-size: 14px;
  color: #6c757d;
  font-weight: 500;
}

/* No Products */
.no-products {
  text-align: center;
  padding: 80px 20px;
}

.no-products-content i {
  font-size: 4rem;
  color: #ddd;
  margin-bottom: 20px;
}

.no-products-content h3 {
  font-size: 1.8rem;
  color: #6c757d;
  margin-bottom: 15px;
}

.no-products-content p {
  color: #999;
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .page-title {
    font-size: 2rem;
  }

  .filter-row {
    flex-direction: column;
  }

  .filter-item {
    width: 100%;
    min-width: auto;
  }

  .filter-actions {
    width: 100%;
    justify-content: center;
  }

  .products-header .row {
    flex-direction: column;
    gap: 15px;
  }

  .sort-options {
    text-align: left;
  }

  .products-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 576px) {
  .page-header {
    padding: 60px 0 40px;
  }

  .filter-container {
    padding: 20px;
    margin: 0 15px;
  }

  .product-info {
    padding: 20px;
  }
}
