
/** Modern Shop Sidebar **/

.shop-sidebar{
  position: relative;
  font-family: var(--text-font);
}

.shop-sidebar .sidebar-widget{
  position: relative;
  display: block;
  background: #fff;
  border: 1px solid #e8eef3;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.shop-sidebar .sidebar-widget:hover{
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
  border-color: rgba(255, 107, 0, 0.2);
}

.shop-sidebar .sidebar-widget:last-child{
  margin-bottom: 0;
}

/* Sophisticated Widget Titles */
.shop-sidebar .sidebar-widget .widget-title{
  position: relative;
  display: block;
  background: #f6f7f9;
  color: #fff;
  margin: 0;
  padding: 18px 25px;
  /* border-radius: 12px 12px 0 0;
  border-bottom: 3px solid var(--theme-color); */
}

.shop-sidebar .sidebar-widget .widget-title h3{
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  margin: 0;
  text-transform: capitalize;
  letter-spacing: 0.3px;
  font-family: var(--title-font);
  position: relative;
}

.shop-sidebar .sidebar-widget .widget-title:before{
  position: absolute;
  content: '';
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  /* background: linear-gradient(180deg, var(--theme-color) 0%, #ff8533 100%); */
  border-radius: 12px 0 0 0;
}

.shop-sidebar .sidebar-widget .widget-title:after{
  position: absolute;
  content: '';
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: #f6f7f9;
  /* border-radius: 50%;
  border: 2px solid var(--theme-color); */
}

/* Sophisticated Widget Content */
.shop-sidebar .sidebar-widget .widget-content{
  position: relative;
  padding: 30px;
  background: #fff;
  border-top: 1px solid rgba(255, 107, 0, 0.1);
}

/* Elegant Brand Filter */
.brand-widget .widget-content{
  padding: 30px;
}

.brand-search{
  position: relative;
  margin-bottom: 25px;
}

.brand-search input{
  width: 100%;
  padding: 14px 50px 14px 20px;
  border: 1px solid #e1e8ed;
  border-radius: 30px;
  font-size: 14px;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  font-family: var(--text-font);
  color: var(--title-color);
}

.brand-search input:focus{
  outline: none;
  border-color: var(--theme-color);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.08), 0 4px 15px rgba(255, 107, 0, 0.15);
  transform: translateY(-2px);
}

.brand-search:before{
  position: absolute;
  content: '\f002';
  font-family: 'Font Awesome 5 Pro';
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #adb5bd;
  font-size: 14px;
  z-index: 1;
  transition: color 300ms ease;
}

.brand-search input:focus + .brand-search:before{
  color: var(--theme-color);
}

.widget-actions{
  display: flex;
  gap: 12px;
  margin-bottom: 25px;
  justify-content: center;
}

.select-all-btn, .clear-all-btn{
  padding: 10px 20px;
  border: 1px solid #e1e8ed;
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  border-radius: 25px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: var(--text-font);
  color: var(--title-color);
  position: relative;
  overflow: hidden;
}

.select-all-btn:before, .clear-all-btn:before{
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 0, 0.1), transparent);
  transition: left 600ms ease;
}

.select-all-btn:hover:before, .clear-all-btn:hover:before{
  left: 100%;
}

.select-all-btn:hover, .clear-all-btn:hover{
  background: linear-gradient(135deg, var(--theme-color) 0%, #ff8533 100%);
  color: #fff;
  border-color: var(--theme-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.category-list{
  max-height: 300px;
  overflow-y: auto;
  padding-right: 5px;
}

.category-list::-webkit-scrollbar{
  width: 4px;
}

.category-list::-webkit-scrollbar-track{
  background: #f1f1f1;
  border-radius: 10px;
}

.category-list::-webkit-scrollbar-thumb{
  background: var(--theme-color);
  border-radius: 10px;
}

.category-list::-webkit-scrollbar-thumb:hover{
  background: var(--secondary-color);
}

/* Sophisticated Brand Filter Items */
.brand-item{
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 107, 0, 0.08);
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.brand-item:last-child{
  border-bottom: none;
}

.brand-item:hover{
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.02) 0%, rgba(255, 107, 0, 0.05) 100%);
  padding-left: 15px;
  border-left: 3px solid var(--theme-color);
}

.brand-item:hover .brand-name{
  color: var(--theme-color);
  transform: translateX(5px);
}

.check-box{
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.check-box input[type="checkbox"]{
  display: none;
}

.check-box label{
  position: relative;
  padding-left: 45px;
  font-size: 15px;
  line-height: 24px;
  color: var(--title-color);
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  margin-bottom: 0;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--text-font);
}

.check-box label:before{
  position: absolute;
  content: '';
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: 2px solid #e1e8ed;
  border-radius: 6px;
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.check-box label:after{
  position: absolute;
  content: '\f00c';
  font-family: 'Font Awesome 5 Pro';
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  font-size: 11px;
  color: #fff;
  opacity: 0;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 3px;
}

.check-box input:checked + label:before{
  background: linear-gradient(135deg, var(--theme-color) 0%, #ff8533 100%);
  border-color: var(--theme-color);
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
  transform: translateY(-50%) scale(1.05);
}

.check-box input:checked + label:after{
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}

.brand-label{
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.brand-name{
  font-weight: 500;
  color: var(--title-color);
  transition: all 300ms ease;
}

.product-count{
  font-size: 12px;
  color: #adb5bd;
  font-weight: 400;
  background: rgba(173, 181, 189, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
  transition: all 300ms ease;
}

.brand-item:hover .product-count{
  background: rgba(255, 107, 0, 0.1);
  color: var(--theme-color);
}

/* Elegant Selected Brands Display */
.selected-brands{
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.05) 0%, rgba(255, 107, 0, 0.02) 100%);
  border: 1px solid rgba(255, 107, 0, 0.1);
  border-radius: 12px;
  padding: 20px;
  margin-top: 25px;
  position: relative;
}

.selected-brands:before{
  position: absolute;
  content: '';
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--theme-color) 0%, #ff8533 100%);
  border-radius: 12px 12px 0 0;
}

.selected-brands h5{
  font-size: 13px;
  font-weight: 700;
  color: var(--title-color);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: var(--title-font);
  position: relative;
}

.selected-brands h5:before{
  position: absolute;
  content: '';
  left: 0;
  bottom: -5px;
  width: 30px;
  height: 2px;
  background: var(--theme-color);
  border-radius: 1px;
}

.selected-brands-list{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.selected-brand-tag{
  background: linear-gradient(135deg, var(--theme-color) 0%, #ff8533 100%);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.2);
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.selected-brand-tag:before{
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 600ms ease;
}

.selected-brand-tag:hover:before{
  left: 100%;
}

.selected-brand-tag:hover{
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.selected-brand-tag button{
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 300ms ease;
  font-weight: bold;
}

.selected-brand-tag button:hover{
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Sophisticated Price Range Slider */
.price-range{
  position: relative;
  padding: 25px 0;
}

.price-range input[type="range"]{
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--theme-color) 0%, var(--theme-color) 50%, rgba(173, 181, 189, 0.3) 50%, rgba(173, 181, 189, 0.3) 100%);
  outline: none;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.price-range input[type="range"]:hover{
  height: 10px;
  border-radius: 5px;
}

.price-range input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--theme-color) 0%, #ff8533 100%);
  cursor: pointer;
  border: 4px solid #fff;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4), 0 0 0 1px rgba(255, 107, 0, 0.1);
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.price-range input[type="range"]::-webkit-slider-thumb:hover{
  transform: scale(1.15);
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.5), 0 0 0 2px rgba(255, 107, 0, 0.2);
}

.price-range input[type="range"]::-moz-range-thumb{
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--theme-color) 0%, #ff8533 100%);
  cursor: pointer;
  border: 4px solid #fff;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
}

.price-display{
  background: linear-gradient(135deg, var(--theme-color) 0%, #ff8533 100%);
  color: #fff;
  padding: 12px 20px;
  border-radius: 30px;
  text-align: center;
  margin-top: 20px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  font-family: var(--title-font);
  position: relative;
  overflow: hidden;
}

.price-display:before{
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 600ms ease;
}

.price-display:hover:before{
  left: 100%;
}

.price-display span{
  font-family: var(--title-font);
  position: relative;
  z-index: 1;
}

/* Sophisticated Stock Filter */
.stock-options{
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.stock-options li{
  display: flex;
  align-items: center;
  padding: 8px 0;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.stock-options li:hover{
  transform: translateX(5px);
}

.stock-widget .check-box label{
  font-size: 15px;
  font-weight: 500;
  color: var(--title-color);
  padding-left: 50px;
  font-family: var(--text-font);
  cursor: pointer;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.stock-widget .check-box label:before{
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #e1e8ed;
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.stock-widget .check-box label:after{
  left: 5px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.stock-widget .check-box input:checked + label:before{
  background: linear-gradient(135deg, var(--theme-color) 0%, #ff8533 100%);
  border-color: var(--theme-color);
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
  transform: scale(1.05);
}

.stock-widget .check-box input:checked + label:after{
  background: #fff;
  box-shadow: 0 2px 5px rgba(255, 255, 255, 0.8);
}

.stock-widget .check-box input:checked + label{
  color: var(--theme-color);
  font-weight: 600;
}

/* Enhanced Visual States */
.sidebar-widget.pb_40{
  animation: slideInUp 0.6s ease-out;
}

.brand-widget{
  animation: slideInUp 0.6s ease-out 0.1s both;
}

.price-widget{
  animation: slideInUp 0.6s ease-out 0.2s both;
}

.stock-widget{
  animation: slideInUp 0.6s ease-out 0.3s both;
}

@keyframes slideInUp{
  from{
    opacity: 0;
    transform: translateY(30px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading States */
.sidebar-widget.loading{
  opacity: 0.7;
  pointer-events: none;
}

.sidebar-widget.loading .widget-content:before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  z-index: 10;
}

.sidebar-widget.loading .widget-content:after{
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--theme-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 11;
}

@keyframes spin{
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}


/** rtl-css **/

.rtl .shop-sidebar .search-widget .search-inner .form-group .select-box .nice-select:before{
  right: inherit;
  left: 20px;
}

.rtl .shop-sidebar .category-widget .accordion .acc-btn:before{
  left: inherit;
  right: 0px;
}

.rtl .shop-sidebar .category-widget .accordion .acc-btn .icon-box{
  right: inherit;
  left: 0px;
}

.rtl .shop-sidebar .category-widget .accordion .acc-btn:after{
  left: inherit;
  right: 2px;
}

/** Responsive CSS **/

@media only screen and (max-width: 1200px){
  .shop-sidebar .sidebar-widget .widget-title{
    padding: 18px 20px;
  }

  .shop-sidebar .sidebar-widget .widget-title h3{
    font-size: 16px;
  }

  .shop-sidebar .sidebar-widget .widget-content{
    padding: 20px;
  }
}

@media only screen and (max-width: 991px){
  .shop-sidebar{
    margin-bottom: 30px;
  }

  .shop-sidebar .sidebar-widget{
    margin-bottom: 15px;
  }

  .widget-actions{
    flex-direction: column;
    gap: 8px;
  }

  .select-all-btn, .clear-all-btn{
    padding: 6px 12px;
    font-size: 11px;
  }
}

@media only screen and (max-width: 767px){
  .shop-sidebar .sidebar-widget .widget-title{
    padding: 15px 18px;
  }

  .shop-sidebar .sidebar-widget .widget-title h3{
    font-size: 15px;
  }

  .shop-sidebar .sidebar-widget .widget-content{
    padding: 18px;
  }

  .brand-search input{
    padding: 10px 40px 10px 12px;
    font-size: 13px;
  }

  .brand-item{
    padding: 10px 0;
  }

  .check-box label{
    font-size: 14px;
    padding-left: 30px;
  }

  .price-range{
    padding: 15px 0;
  }

  .price-display{
    padding: 8px 12px;
    font-size: 13px;
  }

  .stock-options{
    gap: 12px;
  }

  .selected-brands{
    padding: 12px;
  }

  .selected-brands h5{
    font-size: 13px;
  }

  .selected-brand-tag{
    font-size: 11px;
    padding: 4px 10px;
  }
}

@media only screen and (max-width: 599px){
  .shop-sidebar .sidebar-widget{
    margin-bottom: 12px;
    border-radius: 6px;
  }

  .shop-sidebar .sidebar-widget .widget-title{
    padding: 12px 15px;
    border-radius: 6px 6px 0 0;
  }

  .shop-sidebar .sidebar-widget .widget-title h3{
    font-size: 14px;
    letter-spacing: 0.3px;
  }

  .shop-sidebar .sidebar-widget .widget-content{
    padding: 15px;
  }

  .widget-actions{
    margin-bottom: 15px;
  }

  .select-all-btn, .clear-all-btn{
    padding: 5px 10px;
    font-size: 10px;
  }

  .brand-search{
    margin-bottom: 18px;
  }

  .brand-search input{
    padding: 8px 35px 8px 10px;
    font-size: 12px;
    border-radius: 20px;
  }

  .category-list{
    max-height: 250px;
  }

  .brand-item{
    padding: 8px 0;
  }

  .check-box label{
    font-size: 13px;
    line-height: 20px;
    padding-left: 28px;
  }

  .check-box label:before{
    width: 18px;
    height: 18px;
  }

  .check-box label:after{
    left: 2px;
    width: 12px;
    height: 12px;
    font-size: 9px;
  }

  .price-display{
    padding: 6px 10px;
    font-size: 12px;
    margin-top: 12px;
  }

  .stock-widget .check-box label{
    font-size: 14px;
    padding-left: 28px;
  }

  .stock-widget .check-box label:before{
    width: 20px;
    height: 20px;
  }

  .stock-widget .check-box label:after{
    left: 3px;
    width: 8px;
    height: 8px;
  }
}

@media only screen and (max-width: 499px){
  .shop-sidebar .sidebar-widget .widget-title{
    padding: 10px 12px;
  }

  .shop-sidebar .sidebar-widget .widget-title h3{
    font-size: 13px;
  }

  .shop-sidebar .sidebar-widget .widget-content{
    padding: 12px;
  }

  .widget-actions{
    margin-bottom: 12px;
  }

  .brand-search{
    margin-bottom: 15px;
  }

  .selected-brands{
    padding: 10px;
    margin-top: 15px;
  }

  .selected-brands h5{
    font-size: 12px;
    margin-bottom: 8px;
  }

  .selected-brand-tag{
    font-size: 10px;
    padding: 3px 8px;
    gap: 3px;
  }

  .selected-brand-tag button{
    width: 14px;
    height: 14px;
    font-size: 12px;
  }
}
