/* Product Category Page Styles */

/* Main Content Area */
.main-content {
  padding: 50px 0;
  min-height: 400px;
  flex: 1;
}

/* Product Category Container */
.product-category-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Sidebar Filters */
.filters-sidebar {
  background: #ffffff;
  padding: 0;
}

.filter-section {
  margin-bottom: 40px;
}

.filter-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #444241;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Price Range Filter */
.price-range-container {
  margin-bottom: 20px;
}

.price-range-slider {
  position: relative;
  height: 6px;
  background: #e5e5e5;
  border-radius: 3px;
  margin: 20px 0;
}

/* Range Track */
.range-track {
  position: absolute;
  width: 100%;
  height: 6px;
  background: #e5e5e5;
  border-radius: 3px;
  top: 0;
}

/* Range Fill */
.range-fill {
  position: absolute;
  height: 6px;
  background: #34b79d;
  border-radius: 3px;
  top: 0;
}

/* Range Input Styling */
.range-input {
  position: absolute;
  width: 100%;
  height: 6px;
  background: none;
  border: none;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  pointer-events: none;
  top: 0;
}

/* Range Input Thumb Styling */
.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: #34b79d;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: all;
  position: relative;
  z-index: 2;
}

.range-input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #444241;
  border-radius: 50%;
  cursor: pointer;
  pointer-events: all;
  border: none;
  position: relative;
  z-index: 2;
}

/* Active state */
.range-input::-webkit-slider-thumb:hover {
  background: #333;
}

.range-input::-moz-range-thumb:hover {
  background: #333;
}

.price-values {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  font-size: 14px;
  color: #666;
}

.filter-button {
  background: #444241;
  color: white;
  border: none;
  padding: 12px 24px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
  margin-bottom: 10px;
}

.filter-button:hover {
  background: #333;
}

/* Price Filter Form Styles */
.price-filter-form {
  width: 100%;
}

.price-filter-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.clear-filter-button {
  background: #999;
  color: white;
  border: none;
  padding: 8px 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  text-align: center;
  border-radius: 2px;
}

.clear-filter-button:hover {
  background: #777;
}

/* Product Type Filter */
.product-type-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-type-item {
  margin-bottom: 0px;
  padding-bottom: 0px;
}

.product-type-item a {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  color: #333333;
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
}

.product-type-item a:hover {
  color: #444241;
}

.product-type-item.active a {
  color: #444241;
  font-weight: 600;
}

.product-type-count {
  font-size: 13px;
  color: #999;
}

/* Products Section */
.products-section {
  background: #ffffff;
}

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e5e5e5;
}

.products-count {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  color: #666;
}

.products-sort {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-select {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  padding: 8px 30px 8px 12px;
  border: 1px solid #e5e5e5;
  background: white;
  color: #666;
  cursor: pointer;
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 3"><path fill="%23666" d="M0 0l2 3 2-3z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Product Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 253px);
  gap: 30px;
  margin-bottom: 50px;
  justify-content: center;
}

.product-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  width: 253px;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-image {
  position: relative;
  width: 253px;
  height: 253px;
  overflow: hidden;
  background: #f8f8f8;
}

.product-image-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.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-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background: rgba(0, 0, 0, 0.3); */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 2;
  padding: 15px;
  pointer-events: none;
}

.product-image-link:hover .product-overlay {
  opacity: 1;
  visibility: visible;
}

.read-more-text {
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 8px 36px;
  border: 1px solid white;
  border-radius: 3px;
  transition: all 0.3s ease;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  display: inline-block;
}

.product-image-link:hover .read-more-text {
  background: white;
  color: #444241;
  transform: scale(1.05);
}

.product-info {
  padding: 20px;
  text-align: left;
}

.product-title {
  font-family: 'Prompt', sans-serif !important;
  font-size: 14px;
  font-weight: 400;
  color: #000 !important;
  margin-bottom: 8px;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.product-title a {
  color: inherit;
  text-decoration: none;
}

.product-title a:hover {
  color: #aaa !important;
}

.product-description {
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.4;
}

.product-price {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #444241;
}

/* Pagination Styles */
.pagination-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 40px;
  margin-bottom: 30px;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  text-decoration: none;
  background: #f5f5f5;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.pagination-link:hover {
  color: #333;
  background: #e0e0e0;
}

.pagination-link.active {
  color: white;
  background: #5bb5a2;
  font-weight: 600;
}

.pagination-next {
  font-size: 16px;
  font-weight: bold;
  color: #666;
}

.pagination-next:hover {
  color: #333;
  background: #e0e0e0;
}

.pagination-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: #999;
  background: transparent;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .product-category-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .filters-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 253px);
    gap: 20px;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .filters-sidebar {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, minmax(200px, 253px));
    gap: 15px;
    justify-content: center;
  }
  
  .product-card {
    width: 100%;
    max-width: 253px;
  }
  
  .product-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }
  
  .products-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  
  .products-count {
    font-size: 13px;
  }
  
  .sort-select {
    font-size: 13px;
    padding: 6px 10px;
  }

  .pagination-container {
    justify-content: center;
    margin-top: 30px;
  }
  
  .pagination-link {
    min-width: 32px;
    height: 32px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .product-category-container {
    padding: 0 10px;
    gap: 20px;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-width: 100%;
  }
  
  .product-card {
    width: 100%;
    max-width: 180px;
    margin: 0 auto;
  }
  
  .product-image {
    width: 100%;
    height: 180px;
  }
  
  .product-info {
    padding: 12px;
  }
  
  .product-title {
    font-size: 14px;
    margin-bottom: 6px;
  }
  
  .product-description {
    font-size: 12px;
    margin-bottom: 10px;
  }
  
  .product-price {
    font-size: 16px;
  }
  
  .read-more-text {
    font-size: 12px;
    padding: 6px 12px;
  }
  
  .product-overlay {
    padding: 10px;
  }

  .pagination-link {
    min-width: 28px;
    height: 28px;
    font-size: 12px;
    padding: 0 6px;
  }
  
  .pagination {
    gap: 3px;
  }
}