.negarshop-product-compare {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(30px);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  transition: 0.2s;

  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }

  ::-webkit-scrollbar-track {
    background: #f1f1f1;
    padding: 3px;
  }

  ::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #555;
  }


  &:not(.visible) {
    visibility: hidden;
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
  }

  .compare-header {
    display: flex;
    justify-content: space-between;
    padding: 30px 60px 10px 60px;
    align-items: center;


    .header-title {
      font-size: 32px;
      margin-bottom: 0;
      color: #454545;
    }

    .header-buttons {
      display: flex;
      align-items: center;
      position: relative;

      .button {
        border: none;
        background: transparent;
        color: #454545;
        font-size: 16px;
        padding: 30px;
        outline: none;
        transition: 0.2s;
        gap: 20px;
        display: flex;
        align-items: center;

        i {
          font-size: 24px;
        }

        &:hover {
          color: #222;
        }
      }
    }
  }

  .compare-content {
    flex: 1;
    overflow-y: hidden;
    overflow-x: auto;
  }

  .compare-items {
    max-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;

    .table-header {
      td {
        background: #f5f5f5;
        border-color: #ddd;
        border-bottom: #ddd 1px solid;
      }

      .item-new {
        border-left: none;
      }
    }

    .table-footer {
      flex: 1;
      overflow-y: auto;
      overflow-x: hidden;
    }


    .item-thumbnail {
      height: 250px;
      width: 250px;
      overflow: hidden;
      position: relative;
      border-radius: var(--ns-radius) ;

      img {
        position: absolute;
        min-width: 100%;
        max-width: inherit;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
      }
    }

    .item-remove {
      text-align: center;
      margin-bottom: 10px;
    }

    .item-title {
      font-size: 14px;
      line-height: 2rem;
      margin-bottom: 0;
    }

    table {
      tr > * {
        max-width: 290px;
        min-width: 290px;
      }

      th {
        padding: 10px;
        min-width: 200px;
        max-width: 200px;
        text-align: center;
        border-left: #eee 1px solid;
        background: #f5f5f5;
        border-color: #ddd;

        &.item-new {
          min-width: 300px;
          max-width: 300px;
          background: transparent;
          border-color: transparent;
        }
      }

      td {
        padding: 10px 20px;
        text-align: center;
        border-left: #eee 1px solid;
      }
    }

    .item-attributes {
      border-bottom: #eee 1px solid;
    }
  }

  .compare-product-search-popup {
    background: #eee;
    position: absolute;
    width: 400px;
    padding: 20px;
    border-radius: var(--ns-radius) ;
    margin-top: 20px;
    text-align: right;
    left: 70px;
    top: 100%;
    transition: 0.2s;
    z-index: 999;
    box-shadow: rgba(0, 0, 0, 0.2) 0 3px 6px;

    &:not(.visible) {
      opacity: 0;
      visibility: hidden;
      transform: scale(0.9);
    }
  }

  @media (max-width: 768px) {
    .compare-header {
      padding: 15px 30px 5px 30px;


      .header-title {
        font-size: 18px;
      }

      .header-buttons {
        .button {
          font-size: 14px;
          padding: 15px;
          gap: 10px;

          i {
            font-size: 16px;
          }
        }
      }
    }
  }

  .empty-compare-list {
    text-align: center;
    font-size: 16px;
    padding: 30px 0;
  }
}

body.negarshop-compare-table-is-showing {
  overflow: hidden;
}