/* Product Category Showcase Element Styles */

/* Main container */
.product-category-showcase {
  width: 100%;
  max-width: 100%;
  position: relative;
  margin-bottom: 30px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Header */
.product-category-showcase-header {
  margin-bottom: 30px;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

.product-category-showcase-header:after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 80px;
  height: 2px;
  background-color: #0d6efd;
}

.product-category-showcase-heading {
  font-size: 28px;
  font-weight: 700;
  color: #111;
  margin: 0;
  padding: 0;
  position: relative;
  letter-spacing: -0.5px;
}

/* Categories Carousel */
.product-category-carousel-wrapper {
  position: relative;
  margin-bottom: 35px;
  padding: 10px 0;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

/* Carousel Navigation */
.product-category-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.category-nav-prev,
.category-nav-next {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  color: #333333;
  font-size: 14px;
  transition: all 0.3s ease;
  pointer-events: auto;
  margin: 0 -12px;
}

.category-nav-prev:hover,
.category-nav-next:hover {
  background-color: #0d6efd;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
  color: #fff;
}

.category-nav-prev {
  left: 0;
  position: relative;
}

.category-nav-next {
  right: 0;
  position: relative;
}

/* Categories Carousel */
.product-category-carousel {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 15px 5px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  gap: 20px;
}

.product-category-carousel::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Category Items */
.product-category-item {
  flex: 0 0 auto;
  min-width: 150px;
  max-width: 200px;
  text-align: center;
  padding: 15px 12px;
  border-radius: 10px;
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.product-category-item.active {
  background-color: rgba(13, 110, 253, 0.08);
  box-shadow: 0 3px 12px rgba(13, 110, 253, 0.15);
}

.product-category-item.active:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background-color: #0d6efd;
  border-radius: 4px;
}

.product-category-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
}

.product-category-thumbnail {
  width: 120px;
  height: 120px;
  margin: 0 auto 12px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background-color: #fff;
}

.product-category-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-category-item:hover .product-category-thumbnail img {
  transform: scale(1.1);
}

.product-category-name {
  font-size: 16px;
  font-weight: 600;
  margin: 10px 0 0;
  color: #222;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.product-category-name a {
  color: #222;
  text-decoration: none;
  transition: color 0.3s ease;
}

.product-category-item:hover .product-category-name a,
.product-category-item.active .product-category-name a {
  color: #0d6efd;
}

/* Products Wrapper */
.product-category-products-wrapper {
  padding: 20px 0;
  position: relative;
}

/* Filtering - Simplified Version */
.product-category-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding: 10px 0;
  border: none;
  background-color: transparent;
  width: 100%;
}

.product-filter-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.product-filter-wrapper:before {
  display: none;
}

.filter-label {
  font-size: 14px;
  margin-right: 10px;
  color: #333;
  font-weight: 400;
  white-space: nowrap;
}

.product-filter-select {
  padding: 6px 30px 6px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
  background-color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  box-shadow: none;
}

.product-filter-select:hover,
.product-filter-select:focus {
  border-color: #999;
  box-shadow: none;
}

/* Products Grid */
.product-category-products {
  display: grid;
  grid-gap: 25px;
}

.product-category-products[data-columns="2"] {
  grid-template-columns: repeat(2, 1fr);
}

.product-category-products[data-columns="3"] {
  grid-template-columns: repeat(3, 1fr);
}

.product-category-products[data-columns="4"] {
  grid-template-columns: repeat(4, 1fr);
}

/* Product Item */
.product-item {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid #f0f0f0;
}

.product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  border-color: #e5e5e5;
}

.product-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
}

.product-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 70%, rgba(0,0,0,0.05) 100%);
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.product-item:hover .product-image::before {
  opacity: 1;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-item:hover .product-image img {
  transform: scale(1.08);
}

.product-details {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px;
  line-height: 1.4;
}

.product-title a {
  color: #222;
  text-decoration: none;
  transition: color 0.3s ease;
}

.product-title a:hover {
  color: #0d6efd;
}

.product-price {
  color: #e53935;
  font-weight: 600;
  margin-bottom: 18px;
  font-size: 16px;
}

.product-actions {
  margin-top: auto;
}

.product-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  background-color: #0d6efd;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  width: 100%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.product-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.product-link:hover {
  background-color: #0b5ed7;
  transform: translateY(-2px);
}

.product-link:hover::before {
  transform: translateX(0);
}

/* No Products */
.no-products {
  grid-column: 1 / -1;
  padding: 40px;
  text-align: center;
  color: #666666;
  background-color: #f9f9f9;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
}

/* Pagination */
.product-category-pagination {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

/* Pagination Info - Move to Filters */
.pagination-info {
  color: #555;
  font-size: 14px;
  font-weight: 400;
  margin: 0;
}

.pagination-numbers {
  display: flex;
  align-items: center;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  margin: 0 3px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background-color: #ffffff;
  color: #444;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.page-numbers.current {
  background-color: #0d6efd;
  border-color: #0d6efd;
  color: #ffffff;
  box-shadow: 0 3px 6px rgba(13, 110, 253, 0.2);
}

.page-numbers:hover {
  background-color: #f5f5f5;
  border-color: #0d6efd;
}

.page-numbers.current:hover {
  background-color: #0b5ed7;
  border-color: #0b5ed7;
}

.page-numbers.dots {
  border: none;
  padding: 0 5px;
  color: #666;
}

.page-numbers.prev,
.page-numbers.next {
  font-size: 12px;
  background-color: #fafafa;
}

.page-numbers.prev:hover,
.page-numbers.next:hover {
  background-color: #f0f0f0;
}

/* Loading State */
.product-category-products.loading {
  opacity: 0.5;
  pointer-events: none;
}

.product-category-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 3px solid rgba(13, 110, 253, 0.3);
  border-radius: 50%;
  border-top-color: #0d6efd;
  animation: spin 1s infinite linear;
  display: none;
}

.product-category-products-wrapper.loading .product-category-loading {
  display: block;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive Styles */
@media (max-width: 991px) {
  .product-category-products[data-columns="4"] {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .product-category-showcase-heading {
    font-size: 24px;
  }
  
  .product-category-thumbnail {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 767px) {
  .product-category-showcase-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-category-products[data-columns="3"],
  .product-category-products[data-columns="4"] {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .product-category-showcase-heading {
    font-size: 22px;
  }
  
  .product-category-pagination {
    flex-direction: column;
  }
  
  .pagination-info {
    margin-bottom: 15px;
  }
  
  .product-category-filters {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .category-nav-prev,
  .category-nav-next {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
  
  .product-category-item {
    min-width: 120px;
  }
  
  .product-category-thumbnail {
    width: 85px;
    height: 85px;
  }
  
  .product-category-name {
    font-size: 14px;
  }

  .product-filter-wrapper {
    width: auto;
    justify-content: flex-start;
  }
  
  .product-filter-select {
    width: auto;
  }
}

@media (max-width: 479px) {
  .product-category-products[data-columns] {
    grid-template-columns: 1fr;
  }
  
  .product-category-carousel {
    gap: 12px;
  }
  
  .product-category-item {
    min-width: 100px;
    padding: 10px 8px;
  }
  
  .product-title {
    font-size: 15px;
  }
  
  .page-numbers {
    min-width: 34px;
    height: 34px;
    font-size: 13px;
    margin: 0 2px;
  }

  .product-filter-wrapper {
    width: 100%;
    justify-content: space-between;
  }
  
  .product-filter-select {
    width: 75%;
  }
} 