button {
  cursor: pointer;
}
.hero-wrapper {
  width: 100%;
  padding: 105px 48px 65px 48px;
  background-image: url("/assets/images/6abdea28c22d6de657b12040939104921673a9b4.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
  .hero {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    flex-direction: column;
    gap: 10px;
    h1 {
      color: #ffffff;
      font-weight: 600;
      font-size: 40px;
      line-height: 60px;
      text-align: center;
      width: 100%;
    }
    .breadcrumb {
      width: 100%;

      display: flex;
      align-items: center;
      justify-content: center;
      gap: 14px;
      a {
        color: #ffffffe5;
        font-weight: 400;
        font-size: 20px;
        line-height: normal;
        text-align: left;
        text-decoration: none;
        cursor: pointer;
        &.active {
          color: #ffc527;
          cursor: default;
        }
      }
      img {
        min-width: 13px;
        width: 13px;
        height: 30px;
        min-height: 30px;
        object-fit: contain;
      }
    }
  }
  &::after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 1;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
  }
}
.cars-container {
  max-width: 1440px;
  width: 100%;
  margin: 60px auto 0;
  padding: 0 30px;
  .cars-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    h2 {
      font-weight: 600;
      font-size: 36px;
      line-height: 50px;
      color: #ffc527;
    }
    p {
      font-weight: 500;
      font-size: 16px;
      line-height: 24px;
      color: #9d9d9d;
    }
  }
  .filterBtn {
    border: none;
    width: max-content;
    margin-top: 30px;
    display: none;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    padding: 8px 12px;
    background: #ffc527;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    color: #000;
    svg {
      width: 20px;
      height: 20px;
    }
  }
  .cars-main {
    width: 100%;
    display: flex;
    align-items: start;
    gap: 20px;
    margin-top: 50px;
    .sidebar {
      transition: 0.3s ease-in-out;
      min-width: 300px;
      width: 300px;
      display: flex;
      align-items: start;
      justify-content: start;
      .filter {
        width: 100%;
        background: #fdfdfd;
        border-radius: 16px;
        border: 1px solid #eeeeee;
        box-shadow: 3px 5px 4px 0px rgba(194, 194, 194, 0.25);
        padding: 30px 24px;
        .filter-head {
          width: 100%;
          display: none;
          align-items: center;
          justify-content: space-between;
          gap: 20px;
          h3 {
            font-size: 20px;
            line-height: 32px;
            font-weight: 500;
            color: #000;
          }
          .close-filter {
            width: 16px;
            height: 16px;
            min-width: 16px;
            border: none;
            background: transparent;
            display: flex;
            align-items: center;
            justify-content: center;
            svg {
              width: 100%;
              height: 100%;
            }
          }
        }
        .filter-boxes {
          width: 100%;
          display: flex;
          flex-direction: column;
          align-items: start;
          gap: 30px;
          .filter-box {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: start;
            gap: 16px;
            .filter-box-head {
              display: flex;
              align-items: center;
              width: 100%;
              justify-content: space-between;
              gap: 12px;
              border: none;
              background: transparent;
              h4 {
                font-weight: 600;
                font-size: 20px;
                line-height: 30px;
                color: #050708;
              }
              .icon {
                min-width: 24px;
                width: 24px;
                height: 24px;
                display: flex;
                align-items: center;
                justify-content: center;
                transition: 0.2s ease-in-out;
                svg {
                  width: 100%;
                  height: 100%;
                }
              }
            }
            .filter-items {
              width: 100%;
              display: none;
              flex-direction: column;
              align-items: start;
              gap: 16px;
              .filter-item {
                width: 100%;
                display: flex;
                align-items: center;
                gap: 16px;
                input {
                  width: 16px;
                  height: 16px;
                  accent-color: #ffc527;
                }
                label {
                  font-weight: 400;
                  font-size: 14px;
                  line-height: 21px;
                  color: #050708;
                }
              }
            }
            .filter-year {
              width: 100%;
              display: none;
              align-items: center;
              gap: 12px;
              select {
                padding: 12px 16px;
                font-weight: 400;
                font-size: 14px;
                line-height: 21px;
                color: #050708;
                border-radius: 14px;
                background: #f5f5f5;
                width: 100%;
                border: none;
                outline: none;
              }
              p {
                font-weight: 400;
                font-size: 14px;
                line-height: 21px;
                color: #050708;
              }
            }
          }
          .filter-box.active {
            .filter-box-head {
              .icon {
                transform: rotate(180deg);
              }
            }
            .filter-items {
              display: flex;
            }
            .filter-year {
              display: flex;
            }
          }
        }
      }
    }
    .content-section {
      width: calc(100% - 320px);
      display: flex;
      flex-direction: column;
      align-items: start;
      gap: 30px;
      .car-card {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: start;
        gap: 30px;
        padding: 20px;
        border: 1px solid #eeeeee;
        border-radius: 16px;
        background: #fdfdfd;
        box-shadow: 3px 5px 4px 0px rgba(194, 194, 194, 0.25);
        .card-head {
          display: flex;
          align-items: start;
          width: 100%;
          gap: 30px;
          .card-img {
            max-width: 300px;
            width: 100%;
            height: 200px;
            border-radius: 16px;
            position: relative;
            img {
              width: 100%;
              height: 100%;
              border-radius: 16px;
              object-fit: cover;
            }
            .car-tag {
              top: 12px;
              left: 12px;
              padding: 6px 10px;
              color: #fff;
              position: absolute;
              z-index: 1;
              border-radius: 8px;
              background: #3bb752;
              font-size: 14px;
            }
          }
          .card-head-content {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: start;
            .content-head {
              width: 100%;
              display: flex;
              align-items: center;
              justify-content: space-between;
              gap: 20px;
              h3 {
                font-weight: 600;
                font-size: 24px;
                line-height: 34px;
                color: #050708;
              }
              .car-logo {
                width: 36px;
                height: 36px;
                min-width: 36px;
                display: flex;
                align-items: center;
                justify-content: center;
                border: 1px solid #c2c2c2;
                border-radius: 10px;
                img {
                  min-width: 26px;
                  width: 26px;
                }
              }
            }
            .description {
              margin-top: 16px;
              width: 100%;
              font-weight: 400;
              font-size: 16px;
              line-height: 24px;
              color: #767676;
            }
            .content-bottom {
              width: 100%;
              display: flex;
              align-items: start;
              justify-content: space-between;
              gap: 20px;
              margin-top: 20px;
              .prices {
                display: flex;
                align-items: center;
                gap: 16px;
                .price-item {
                  display: flex;
                  flex-direction: column;
                  align-items: start;
                  p {
                    font-weight: 700;
                    font-size: 20px;
                    line-height: 30px;
                    color: #050708;
                  }
                  span {
                    font-weight: 500;
                    font-size: 12px;
                    line-height: 18px;
                    color: #afafaf;
                  }
                }
                .line {
                  font-size: 28px;
                  color: #afafaf;
                }
              }
              .content-links {
                display: flex;
                align-items: center;
                gap: 16px;
                .phone-link {
                  text-decoration: none;
                  display: block;
                  width: max-content;
                  padding: 10px 16px;
                  border-radius: 16px;
                  background: #f5f7f6;
                  font-weight: 500;
                  font-size: 14px;
                  line-height: 21px;
                  color: #999a9e;
                  text-wrap: nowrap;
                }
                .car-quete {
                  border: none;
                  max-width: 150px;
                  width: 150px;
                  text-decoration: none;
                  display: block;
                  padding: 10px 16px;
                  border-radius: 16px;
                  background: #ffc527;
                  font-weight: 500;
                  font-size: 14px;
                  line-height: 21px;
                  color: #fff;
                }
              }
            }
          }
        }
        .card-trims {
          width: 100%;
          border-top: 1px solid #c3c3c3;
          padding: 24px 0 0 10px;
          display: none;
          flex-direction: column;
          align-items: start;
          gap: 24px;
          .trim-item {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: start;
            gap: 14px;
            .item-title {
              font-weight: 700;
              font-style: Bold;
              font-size: 18px;
              line-height: 27px;
              color: #050708;
            }
            .item-details {
              width: 100%;
              display: flex;
              align-items: center;
              flex-wrap: wrap;
              gap: 16px 24px;
              p {
                font-weight: 500;
                font-size: 16px;
                line-height: 24px;
                color: #68696c;
              }
            }
          }
        }
        .card-bottom {
          display: flex;
          align-items: center;
          justify-content: space-between;
          padding-top: 20px;
          gap: 20px;
          width: 100%;
          border-top: 1px solid #c3c3c3;
          .bottom-characteristic {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 12px 32px;
            .characteristic-item {
              position: relative;
              font-weight: 400;
              font-size: 14px;
              line-height: 21px;
              color: #9a9a9a;
              &::after {
                content: "";
                position: absolute;
                right: -16px;
                width: 4px;
                height: 4px;
                top: 50%;
                transform: translateY(-50%);
                border-radius: 12px;
                background: #9a9a9a;
              }
              &:last-child {
                &::after {
                  display: none;
                }
              }
            }
          }
          .showAllBtn {
            margin-left: auto;
            display: flex;
            align-items: center;
            gap: 10px;
            border: none;
            background: transparent;
            p {
              font-weight: 500;
              font-size: 14px;
              line-height: 21px;
              color: #070707;
            }
            .onHideTxt {
              display: none;
            }
            .onShowTxt {
              display: block;
            }
            span {
              transition: 0.2s ease-in-out;
              min-width: 24px;
              width: 24px;
              height: 24px;
              svg {
                width: 100%;
                height: 100%;
              }
            }
          }
        }
      }
      .car-card.active {
        .card-trims {
          display: flex;
        }
        .card-bottom {
          .bottom-characteristic {
            display: none;
          }
          .showAllBtn {
            .onHideTxt {
              display: block;
            }
            .onShowTxt {
              display: none;
            }
            span {
              transform: rotate(180deg);
            }
          }
        }
      }
    }
  }
}
.car-quote-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  .modal {
    max-width: 970px;
    width: 100%;
    max-height: calc(100svh - 60px);
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    .closeCarQuoteModal {
      width: 24px;
      height: 24px;
      min-width: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-left: auto;
      border: none;
      background: transparent;
      svg {
        width: 100%;
        height: 100%;
      }
    }
    h2 {
      font-weight: 700;
      font-size: 32px;
      line-height: 45px;
      text-transform: uppercase;
      color: #ffc527;
      text-align: center;
      width: 100%;
      margin-top: 50px;
    }
    form {
      margin-top: 60px;
      width: 100%;
      p {
        font-weight: 500;
        font-size: 20px;
        line-height: 30px;
        color: #050708;
      }
      .inputs {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        margin-top: 20px;
        gap: 30px;
        input {
          width: 100%;
          border: 1px solid #aeaeae;
          font-size: 16px;
          line-height: 20px;
          color: #000;
          font-weight: 400;
          border-radius: 16px;
          padding: 12px 20px;
          &::placeholder {
            color: #aeaeae;
          }
        }
      }
      .submitForm {
        border: none;
        width: 100%;
        text-align: center;
        margin-top: 50px;
        padding: 10px;
        border-radius: 16px;
        background: #ffc527;
        font-weight: 500;
        font-size: 16px;
        line-height: 24px;
        text-transform: capitalize;
      }
    }
  }
}
@media only screen and (max-width: 1200px) {
  .cars-container {
    margin: 40px auto 0;
    padding: 0 16px;
    .cars-head {
      h2 {
        font-size: 18px;
        line-height: 28px;
      }
      p {
        font-size: 14px;
        line-height: 20px;
      }
    }
    .cars-main {
      margin-top: 30px;
      .sidebar {
        min-width: 270px;
        width: 270px;
        .filter {
          .filter-boxes {
            gap: 20px;
            .filter-box {
              .filter-box-head {
                h4 {
                  font-size: 18px;
                  line-height: 28px;
                }
                .icon {
                  min-width: 22px;
                  width: 22px;
                  height: 22px;
                }
              }
              .filter-items {
                gap: 12px;
                .filter-item {
                  gap: 12px;
                }
              }
              .filter-year {
                select {
                  padding: 10px 13px;
                }
              }
            }
          }
        }
      }
      .content-section {
        width: calc(100% - 290px);
        gap: 24px;
        .car-card {
          gap: 20px;
          padding: 16px;
          .card-head {
            gap: 20px;
            .card-img {
              max-width: 300px;
              height: 200px;
              .car-tag {
                top: 10px;
                left: 10px;
                padding: 4px 8px;
                border-radius: 6px;
                font-size: 12px;
              }
            }
            .card-head-content {
              .content-head {
                gap: 14px;
                h3 {
                  font-size: 20px;
                  line-height: 32px;
                }
                .car-logo {
                  width: 32px;
                  height: 32px;
                  min-width: 32px;
                  img {
                    min-width: 24px;
                    width: 24px;
                  }
                }
              }
              .description {
                margin-top: 12px;
                font-size: 14px;
                line-height: 20px;
              }
              .content-bottom {
                gap: 14px;
                margin-top: 14px;
                .prices {
                  gap: 12px;
                  .price-item {
                    p {
                      font-size: 18px;
                      line-height: 28px;
                    }
                  }
                  .line {
                    font-size: 24px;
                  }
                }
                .content-links {
                  gap: 12px;
                  flex-direction: column;
                  .phone-link {
                    padding: 8px 14px;
                  }
                  .car-quete {
                    padding: 8px 14px;
                  }
                }
              }
            }
          }
          .card-trims {
            padding: 20px 0 0 10px;
            gap: 20px;
            .trim-item {
              gap: 12px;
              .item-title {
                font-size: 16px;
                line-height: 24px;
              }
              .item-details {
                gap: 12px 20px;
                p {
                  font-size: 14px;
                  line-height: 20px;
                }
              }
            }
          }
          .card-bottom {
            padding-top: 16px;
            gap: 14px;
            .bottom-characteristic {
              gap: 10px 24px;
              .characteristic-item {
                &::after {
                  right: -12px;
                }
              }
            }
            .showAllBtn {
              gap: 8px;
              span {
                min-width: 22px;
                width: 22px;
                height: 22px;
              }
            }
          }
        }
      }
    }
  }
  .car-quote-modal {
    .modal {
      max-width: 670px;
      padding: 20px;
      .closeCarQuoteModal {
        width: 20px;
        height: 20px;
        min-width: 20px;
      }
      h2 {
        font-size: 24px;
        line-height: 32px;
        margin-top: 20px;
      }
      form {
        margin-top: 30px;
        width: 100%;
        p {
          font-size: 18px;
          line-height: 28px;
        }
        .inputs {
          margin-top: 16px;
          gap: 20px;
          input {
            padding: 10px 16px;
          }
        }
        .submitForm {
          margin-top: 30px;
          padding: 8px;
          font-size: 14px;
          line-height: 20px;
        }
      }
    }
  }
}
@media only screen and (max-width: 992px) {
  .cars-container {
    .filterBtn {
      display: flex;
    }
    .cars-main {
      margin-top: 20px;
      .sidebar {
        min-width: 0px;
        width: 100%;
        position: fixed;
        top: 0;
        left: -100%;
        z-index: 11;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        .filter {
          box-shadow: none;
          border-radius: 0;
          width: 350px;
          height: 100%;
          overflow-y: auto;
          .filter-head {
            display: flex;
          }
          .filter-boxes {
            gap: 20px;
            margin-top: 24px;
          }
        }
      }
      .content-section {
        width: 100%;
      }
    }
  }
}
@media only screen and (max-width: 768px) {
  .cars-container {
    .cars-main {
      .content-section {
        .car-card {
          .card-head {
            flex-direction: column;
            gap: 12px;
            .card-img {
              max-width: 100%;
              width: 100%;
              height: auto;
            }
            .card-head-content {
              .content-head {
                gap: 12px;
                h3 {
                  font-size: 18px;
                  line-height: 28px;
                }
              }
              .description {
                margin-top: 12px;
                font-size: 14px;
                line-height: 20px;
              }
              .content-bottom {
                flex-direction: column;
                width: 100%;
                .content-links {
                  flex-direction: row;
                  width: 100%;
                  .phone-link {
                    width: 100%;
                  }
                  .car-quete {
                    width: 100%;
                    max-width: 100%;
                  }
                }
              }
            }
          }
          .card-trims {
            padding: 16px 0 0 0;
            gap: 14px;
            .trim-item {
              gap: 10px;
            }
          }
          .card-bottom {
            align-items: start;
            flex-direction: column;
            .showAllBtn {
              margin-left: auto;
              gap: 8px;
              span {
                min-width: 22px;
                width: 22px;
                height: 22px;
              }
            }
          }
        }
      }
    }
  }
  .car-quote-modal {
    .modal {
      form {
        .inputs {
          grid-template-columns: repeat(1, 1fr);
        }
      }
    }
  }
}
@media only screen and (max-width: 575px) {
  .cars-container {
    .cars-main {
      .sidebar {
        .filter {
          width: 100%;
        }
      }
    }
  }
}
