
$text-color: #fff;
$hover-color: #0056b3;
$font-size-small: var(--font-size-small);

.Product-Category-Modal{
    &.adminbar-active{
    top:32px;
    @media screen and (max-width: 576px){
        top:0px;
        z-index: 111111;
    }
}
}

.filter-modal {
  &.adminbar-active{
    top:32px;
     @media screen and (max-width: 576px){
        top:0px;
        z-index: 111111;
    }
  }
  &.modal {
    background: rgba(255, 255, 255, 0);
  }
  .filter-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 10px;
}

  .modal-dialog {
    margin: 0;
    position: fixed;
    right: 0;
    top: 72px;
    bottom: 0;
    width: 300px;
  }

  .modal-content {
    border-radius: 0;
    border: none;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;

    &::after,
    &::before {
      content: '';
      display: none;
    }
  }

  .modal-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin: 0;
  }

  .close {
    font-size: 21px;
    opacity: 0.5;
    margin: -8px;
    padding: 8px;
  }

  .modal-body {
    padding: 0px 5px;
    flex: 1;
    overflow-y: auto;
  }

  .checkbox-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .checkbox-item {
    margin-bottom: 12px;

    &:last-child {
      margin-bottom: 0;
    }
  }

  .custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;

    input[type="checkbox"] {
      margin: 0 10px 0 0;
      width: 18px;
      height: 18px;
      border: 2px solid #ddd;
      border-radius: 3px;
      appearance: none;
      -webkit-appearance: none;
      cursor: pointer;

      &:checked {
        background-color: $primary-color;
        border-color: $primary-color;
        position: relative;

        &:after {
          content: '';
          position: absolute;
          left: 5px;
          top: 2px;
          width: 5px;
          height: 10px;
          border: solid white;
          border-width: 0 2px 2px 0;
          transform: rotate(45deg);
        }
      }
    }

    label {
      font-weight: normal;
      color: #333;
      margin: 0;
      cursor: pointer;
    }
  }

  .modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #eee;
    background: white;
    display: flex;

    .btn {
      width: 100%;
    }
  }

  .btn-apply {
    width: 100%;
    background-color: $primary-color;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: 500;
    text-transform: none;
    font-size: 14px;

    &:hover,
    &:focus {
      background-color: $hover-color;
    }
  }

  &.fade .modal-dialog {
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
  }

  &.in .modal-dialog {
    transform: translateX(0);
  }
}

.sticky-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  display: flex;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 11;
}

.sticky-footer-btn {
  flex: 1;
  padding: 15px;
  text-align: center;
  background: $primary-color;
  border: none;
  font-size: 16px;
  color: $text-color;
  font-weight: 500;
  border-top: 1px solid $primary-color;
  transition: background-color 0.2s;

  &:first-child {
    border-right: 1px solid #e5e5e5;
  }

  &:hover,
  &:focus {
    background-color: $hover-color;
    text-decoration: none;
    color: $text-color;
  }
}

.filterDropdown {
  display: flex;
  flex-direction: column;
  gap: 10px;

  .custom-checkbox {
    input[type="checkbox"] {
      display: none;
    }

    .checkmark {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 18px;
      height: 18px;
      background-color: #fff;
      border: 2px solid #666;
      border-radius: 4px;
      margin-right: 8px;
      vertical-align: middle;
      transition: 0.3s;

      .check-icon {
        display: none;
      }
    }

    input[type="checkbox"]:checked + .checkmark {
      background-color: $primary-color;
      border-color: $primary-color;

      .check-icon {
        display: block;
      }
    }
  }

  .checkbox {
    label {
      padding: 0;
      font-size: $font-size-small;
      display: flex;
      justify-content: space-between;
      width: 100%;
    }
  }
}

.filter-wapper {
  .filter-header {
      
      & .accordion-button{
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        font-weight: bold;
        box-shadow: none !important;
        &:focus,
        &:hover{
            background-color: transparent;
            background: transparent;
            color: inherit;
        }
        & svg{
            display: inline-flex;
        }
        &[aria-expanded="true"] {
            .plus-icon {
                display: none !important;
            }
        }

        &[aria-expanded="false"] {
            .minus-icon {
                display: none !important;
            }
        }
        &::after{
            display: none;
        }
    }
  }

  .filter-section {
    border-bottom: 1px solid #e5e5e5;
    padding: 15px 0;
  }

  .filter-content {
    // padding-top: 10px;
  }

  .checkbox-item {
    margin-bottom: 10px;
  }

  .checkbox-label {
    font-weight: normal;
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  .item-count {
    color: #777;
  }

  .show-results-btn {
    background-color: #000;
    color: #fff;
    border: none;
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    font-size: 16px;
  }

  .icon-circle {
    display: inline-flex;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #000;
    text-align: center;
    line-height: 18px;
  }
}
@media (max-width: 1024px) {
  .sticky-footer-btn {
    font-size: 14px;
    padding: 12px;
  }

  .filter-modal .modal-dialog {
    width: 280px;
    top: 56px;
  }
}
@media (max-width: 1199px) {
  .filter-modal {
    &.fade .modal-dialog {
      transform: translateX(-100%);
    }

    &.in .modal-dialog {
      transform: translateX(0);
    }

    .modal-dialog {
      left: 0;
      right: initial;
    }
  }
}
