/* Shop Page Styles */

/* Product Card Styles */
.product-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 10px;
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.product-card .product-offer{
  color: #2E3191;
  font-weight: 500;
}
.product-img-wrapper {
  position: relative;
  overflow: hidden;
  padding-top: 100%; /* 1:1 Aspect Ratio */
  background-color: #f8f9fa;
}

.product-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: all 0.5s ease;
}

.product-img-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: all 0.5s ease;
}

.product-card:hover .product-img {
  opacity: 0;
}

.product-card:hover .product-img-hover {
  opacity: 1;
}

.quick-view-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 3;
}

.product-card:hover .quick-view-overlay {
  opacity: 1;
}

.quick-view-btn {
  background-color: white;
  color: #212529;
  border: none;
  border-radius: 5px;
  padding: 8px 15px;
  font-weight: 500;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.product-card:hover .quick-view-btn {
  transform: translateY(0);
}

.quick-view-btn:hover {
  background-color: #ff4c3b;
  color: white;
}

/* Mobile Filter Bar */
.mobile-filter-bar {
  position: sticky;
  top: 70px;
  z-index: 100;
  display: flex;
  background-color: #fff;
  padding: 10px 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.mobile-filter-bar .btn-filter,
.mobile-filter-bar .btn-sort {
  border-radius: 4px;
  font-weight: 500;
  padding: 10px;
  transition: all 0.3s ease;
}

.mobile-filter-bar .btn-filter {
  color: #fff;
  box-shadow: none !important;
}

.mobile-filter-bar .btn-sort {
  box-shadow: none !important;
  color: #fff;

}

.mobile-filter-bar .btn-filter:hover,
.mobile-filter-bar .btn-sort:hover {
  background-color: #e9ecef;
  color: #000;
}

/* Sort Modal */
.modal-content {
  border-radius: 8px;
  border: none;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.modal-header {
  border-bottom: 1px solid #f1f1f1;
  padding: 15px 20px;
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  border-top: 1px solid #f1f1f1;
  padding: 15px 20px;
}

.sort-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sort-option {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.sort-option:hover {
  background-color: #f8f9fa;
}

.sort-option.active {
  background-color: #f0f7ff;
}

.sort-option .form-check-input {
  margin-right: 12px;
}
.sort-option .form-check-input:checked {
  margin-right: 12px;
  background-color: #2E3191;
  border-color: #2E3191;
  box-shadow: none;
}
.sort-option label{
  color: #000;
}
.btn-apply-mobile {
  background-color: #ff4c3b;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
}
.btn-apply-filter {
  background-color: #ff4c3b;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
}
.btn-apply-filter:hover{
  background-color: #2E3191;
  transform: translateY(-1px);

}
.btn-apply:hover {
  background-color: #2E3191;
  transform: translateY(-1px);
}

/* Filter Offcanvas */
.offcanvas-header {
  border-bottom: 1px solid #f1f1f1;
  padding: 15px 20px;
}

.offcanvas-body {
  padding: 20px;
}

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

.filter-title {
  font-weight: 600;
  margin-bottom: 15px;
  color: #2E3191;
  font-size: 16px;
}

.price-slider-container {
  padding: 10px 0;
}

.price-value {
  font-weight: 500;
  color: #000;
}

.category-options,
.form-check {
  margin-bottom: 10px;
}

.form-check-label {
  color: #000;
  font-weight: 600;
}

.count {
  color: #999;
  font-size: 0.9em;
}

.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.color-option {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.color-option:hover {
  transform: scale(1.1);
}

.color-option.selected {
  border-color: #333;
  transform: scale(1.1);
}

.rating-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rating-option {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.rating-option:hover {
  background-color: #f8f9fa;
}

.rating-option.selected {
  background-color: #f0f7ff;
}

.rating-option i {
  color: #ffc107;
  margin-right: 2px;
}

.rating-count {
  margin-left: 8px;
  color: #999;
  font-size: 0.9em;
}

.filter-actions {
  display: flex;
  justify-content: flex-end;
}

/* Desktop Sidebar */
.filter-sidebar {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 90px;
}

.filter-header {
  margin-bottom: 15px;
}

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

.page-item {
  margin: 0 5px;
}

.page-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  color: #212529;
  font-weight: 500;
  border: 1px solid #dee2e6;
  transition: all 0.3s ease;
}

.page-item.active .page-link {
  background-color: #ff4c3b !important;
  border-color: #ff4c3b !important; 
  color: white;
  box-shadow: 0 5px 15px rgba(255, 76, 59, 0.2);
}

.page-item:not(.active) .page-link:hover {
  background-color: #f8f9fa !important;
  color: #ff4c3b !important;
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.page-item.disabled .page-link {
  color: #6c757d;
  pointer-events: none;
  background-color: #fff;
  border-color: #dee2e6;
}

/* Shop Header */
.shop-header {
  margin-bottom: 25px;
}
.shop-actions label{
  color: #2E3191;
  font-weight: bold;
  width: 100px;
}

.results-count h5 {
  font-weight: 500;
  color: #2E3191;
  font-size: 16px;
}

.shop-actions {
  display: flex;
  align-items: center;
}

.view-options {
  display: flex;
  gap: 10px;
}

.btn-view {
  background-color: transparent;
  border: 1px solid #dee2e6;
  color: #6c757d;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-view.active {
  background-color: #ff4c3b;
  color: white;
  border-color: #ff4c3b;
}

.sort-by-wrapper {
  display: flex;
  align-items: center;
}

.sort-select {
  min-width: 180px;
  border-radius: 4px;
  border: 1px solid #dee2e6;
  padding: 8px 12px;
  font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 767.98px) {
  .mobile-filter-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    z-index: 1030;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    margin-bottom: 0;
  }
  
  .offcanvas {
    width: 85%;
    max-width: 320px;
  }
  
  .sort-option {
    padding: 12px 15px;
  }
  
  .filter-actions {
    position: sticky;
    bottom: -19px;
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
  }
}

.noUi-connect{
  background-color: #2E3191;
}
.noUi-horizontal .noUi-handle {
    width: 17px;
    height: 24px;
    right: -17px;
    top: -6px;
    border-radius: 30px;
}

/* Custom Select Box Styling */
.shop-actions .custom-select {
  border: 2px solid #2E3191;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%232E3191' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  appearance: none;
  transition: all 0.3s ease-in-out;
}

.shop-actions .custom-select:focus {
  outline: none;
  border-color: #2E3191;
  box-shadow: 0 0 8px rgba(46, 49, 145, 0.4);
}

/* On hover */
.shop-actions .custom-select:hover {
  border-color: #2E3191;
  cursor: pointer;
}
