/* 

SEARCH BOARD

*/

.search__board {
  width: 100%;
  padding: 15px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(
    89.72deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  box-shadow: rgba(255, 255, 255, 0.05) 0px 0px 0px 1px;
  border-radius: 20px;
}
.sb__form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.sbf__input {
  width: 400px;
  padding: 20px;
  border-radius: 10px;
  background: #2a2a2a;
  border: none;
  color: #d2d2d2;
  font-size: 16px;
}
.sbf__input::placeholder {
  color: #d2d2d2d7;
}
.sb__selects {
  display: flex;
  gap: 20px;
  margin-right: 10px;
  flex-wrap: wrap;
}
.sb__select {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
.sb__select p {
  color: #d2d2d2;
  font-size: 16px;
}
.sb__select select {
  width: 120px;
  padding: 15px;
  font-size: 16px;
  border-radius: 10px;
  background: #2a2a2a;
  border: none;
  color: #fff;
}
.sb__select select[name="sort"] {
  width: 210px;
}
.sb__pagination {
  display: flex;
  gap: 10px;
}
.sbp__btn {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: linear-gradient(
    89.72deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  border: 0.1px solid #fff;
  color: #fff;
  font-size: 18px;
  transition: 0.3s ease-in-out;
}

a.sbp__btn{
  display: flex;
  align-items: center;
  justify-content: center;
}
.sbp__btn:hover {
  cursor: pointer;
  color: #0090ff;
  border: 1px solid #0090ff;
}
.sbp__gray {
  color: #6e6e6e;
  border: 1px solid #6e6e6e;
}
.sbp__blue {
  color: #0090ff;
  border: 1px solid #0090ff;
}
#search-input {
background: url('../img/icon/search.svg') no-repeat right 15px center;
    background-size: 16px 16px;
    background-color: #2a2a2a;
}

#marka-search {
background: url('../img/icon/search.svg') no-repeat right 15px center;
    background-size: 14px 14px;
    background-color: #2a2a2a;
}

#items-per-page, #sort-by {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: url('../img/icon/chevron_down.svg') no-repeat right 15px center;
    background-size: 12px 12px;
        background-color: #2a2a2a;

}


@media (max-width: 1450px) {
  .sb__select {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }
  .sb__select select {
    width: 160px;
  }
  .sb__form {
    align-items: flex-end;
  }
  .sbf__input {
    height: 50px;
    width: 300px;
  }
  .sb__pagination {
    height: 80px;
    align-items: flex-end;
  }
  .sb__selects {
    margin-right: 10px;
  }
}
@media (max-width: 1300px) {
  .search__board {
    flex-direction: column;
  }
  .sb__select {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }
}
@media (max-width: 1000px) {
  .sb__select {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }
}
@media (max-width: 750px) {
  .sb__form {
    width: 100%;
    flex-direction: column;
  }
  .sbf__input {
    width: 100%;
  }
  .sb__selects {
    width: 100%;
    margin: 0;
  }
  .sb__select {
    width: 100%;
  }
  .sb__select select, .sb__select select[name="sort"] {
    width: 100%;
  }
}
@media (max-width: 600px) {

  .sb__select {
    width: 25%;
        order: 1;
  }
  .search__board {
    padding: 12px 15px;
  }
  .sb__form {
    gap: 12px;
  }
  .sb__select p {
    font-size: 14px;
  }
  .sb__select {
    gap: 6px;
  }
  .sb__pagination {
    height: 50px;
    flex-wrap:wrap;
  }
  .sbp__btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

@media (max-width: 500px) {
.sb__pagination{ flex-wrap:wrap; gap: 9px; height: 90px; }

  .sbp__btn {
    width: 35px;
    height: 35px;
  }




}

/* 

BAR AND CARS

*/

.bar__and__cars {
  margin: 25px 0;
  width: 100%;
  gap: 40px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.bac__bar {
  padding: 25px;
  width: 300px;
  background: linear-gradient(
    89.72deg,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  box-shadow: rgba(255, 255, 255, 0.05) 0px 0px 0px 1px;
  border-radius: 20px;
}

.bar-item {
  width: 100%;
  opacity: 0.9;
}

.bar-title {
  border-bottom: 1px solid #ffffff4d;
  margin-bottom: 10px;
  padding-bottom: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 20px;
  font-weight: 300;
  color: #fff;
  user-select: none;
  transition: 0.2s ease-in-out;
}
.bar-content {
  margin: 10px 0;
  display: none;
  color: #fff;
}
.bc__input {
  width: 100%;
  background: #2a2a2a;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 17px;
  color: #fff;
}



.bc__checkboxes {
    display: flex;
    flex-direction: column;
    margin: 15px 0 20px;
    gap: 15px;
    padding-right: 5px;
    height: fit-content;
    max-height: 175px;
    overflow-y: hidden;
}

.bc__checkboxes:has(:nth-child(5)) {
    overflow-y: auto;
}

.bc__checkboxes::-webkit-scrollbar {
    width: 10px;
}

.bc__checkboxes::-webkit-scrollbar-track {
    background-color: transparent;
    border-radius: 10px;
    border: 1px solid rgba(42, 42, 42, 1);
}

.bc__checkboxes::-webkit-scrollbar-thumb {
    background: rgba(42, 42, 42, 1);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
    box-sizing: border-box;
    width: 6px;
    height: 19px;
    min-height: 19px;
}

.bc__checkbox {
  display: flex;
  gap: 10px;
  cursor: pointer;
}
.bc__checkbox input {
  width: 22px;
  background-color: #000 !important;
  accent-color: #000;
  color: #000;
}
.bc__checkbox p {
  color: #d2d2d2;
}
.bar-item.active {
  opacity: 1;
}

.filter-tag  {

    height: 40px;
    border-radius: 5px;
    background: #2a2a2a;
    color: #d2d2d2;
    border: none;
    font-size: 18px;
    text-align: center;
    padding: 0 10px;
    cursor: pointer;
}
.clear-all-filters {
    height: 40px;
    color: #0090ff;
    border: 1px solid #0090ff;
    background: none;
    font-size: 16px;
    border-radius: 10px;
        padding: 0 10px;
    cursor: pointer;
}
.clear-all-filters:hover {
    background: #007edf !important;
    cursor: pointer;
    color: #fff;
}
.bar-item.active .bar-content {
  display: block;
}

.bar-item .arrow {
  transform: rotate(-90deg);
  transition: 0.2s ease;
}

.bar-item.active .arrow {
  transform: rotate(90deg);
}
.bc__calc {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
}
.bcc__btns {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.bccb__clk {
  width: 38%;
  height: 40px;
  border-radius: 5px;
  background: #2a2a2a;
  color: #d2d2d2;
  border: none;
  font-size: 18px;
  text-align: center;
}
.bccb__number {
  font-size: 20px;
}
.bcc__smt {
  width: 100%;
  height: 50px;
  color: #0090ff;
  border: 1px solid #0090ff;
  background: none;
  font-size: 16px;
  border-radius: 10px;
}
.bar-item-last {
  border-bottom: none;
}
.bac__bar__svg {
  display: none;
}
.bac__ximg {
  display: none;
}
label[for="items-per-page"], label[for="sort-by"] {
  color: #fff;
}

/* 


CARS


*/

.bac__cars {
  width: calc(100% - 300px);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  margin: 0 auto;
}

.ulubione .bac__cars {
  width: calc(100%);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  margin: 0 auto;
}

.section__marks {
  width: 100%;
  margin-bottom: 60px;
}
.mark__items {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  color: #fff;
}
.mark__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 10px 0;
}
.mark__btn button {
  color: #0090ff;
  background: none;
  border: 1px solid #0090ff;
  width: 260px;
  height: 50px;
  border-radius: 10px;
  font-size: 18px;
}

.mark-item {
  width: 100%;
}

.mark {
  background: #272727;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s ease;
}

.mark:hover {
  background: #333;
}

.mark img {
  height: 22px;
  margin-right: 8px;
  transition: 0.3s;
}

.mark-item.active .mark img {
  transform: rotate(90deg);
}

.mark p {
  font-size: 16px;
  color: #fff;
}

/* Accordion pastki qismi */
.mark__content {
  background: #272727;
  margin-top: 6px;
  border-radius: 10px;
  padding: 0 14px;
  max-height: 0;
  overflow: hidden;
  transition: 0.4s ease-in-out;
}

.mark-item.active .mark__content {
  padding: 12px 14px;
  max-height: 200px; /* ochilganda */
  overflow-y: auto;
}

.mark__content label {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 300;
}

.mark__content input {
  margin-right: 6px;
}

.bc__checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.bc__checkbox input[type="checkbox"] {
    display: none;
}

.bc__checkbox p {
    padding-left: 30px;
    position: relative;
}

.bc__checkbox p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: url('../img/icon/checkbox.svg') no-repeat center;
    background-size: contain;
    transition: all 0.2s ease;
}

.bc__checkbox input:checked + p::before {
    background: url('../img/icon/checkbox_checked.svg');
}

/* Добавьте в CSS */
.swiper-lazy-preloader {
    border-color: rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
}

img.swiper-lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.swiper-lazy-loaded {
    opacity: 1;
}

.lazy-load-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}


@media (max-width: 1100px) {
  .mark__items {
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
  }

}

@media (max-width: 1350px) {
  .bar-title {
    font-size: 18px;
  }
  .bac__bar {
    min-width: 250px;
    max-width: 250px;
    padding: 25px 18px;
  }
  .bar-title {
    padding-bottom: 5px;
    margin-bottom: 10px;
  }
  .bc__input::placeholder {
    font-size: 14px;
  }
  .bc__input {
    padding: 8px 10px;
  }
  .bc__checkbox {
    gap: 5px;
    padding: 5px 0;
  }
  .bc__checkbox input {
    width: 15px;
  }
  .bc__checkbox p {
    font-size: 16px;
  }
  .bcc__smt {
    height: 40px;
    font-size: 16px;
  }
  .bccb__clk {
    font-size: 16px;
    height: 30px;
  }
}

@media (max-width: 1100px) {

  .bac__cars {
    width: calc(100%);
}
  .sticky__bar {
    position: fixed;
    top: 0;
    right: -5000px;
    z-index: 999;
    background: #1e1e1eaf;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    justify-content: flex-end;
    transition: 0.4s ease-in-out;
  }
  .sticky__bar__search {
    right: 0;
  }
  .bac__bar {
    position: relative;
    border-radius: 0;
    z-index: 99;
    background: #000;
    padding-top: 50px;
    overflow-y: auto;
  }
   .sticky__bar__search .bac__ximg {
    display: block;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    color: #fff;
    height: 16px;
    width: 16px;
    /* padding: 20px; */
  }
  .section__header {
    width: 100%;
    display: flex;
    justify-content: space-between;
  }
  .section__header svg {
    display: block;
    width: 36px;
    height: 36px;
  }
  .ulubione   .section__header svg {
    display: none;
  }
}
@media (max-width: 850px) {
  .mark__btn button {
    width: 200px;
    height: 44px;
    font-size: 16px;
  }
}
@media (max-width: 760px) {
  .mark__items {
    grid-template-columns: repeat(4, 1fr);
  }
  .mark {
    padding: 8px 10px;
  }
  .mark img {
    margin-right: 0;
  }
  .mark__content label {
    font-size: 14px;
  }
  .mark__content input {
    margin-right: 4px;
  }
  .mark-item.active .mark__content {
    padding: 8px 10px;
  }
}
@media (max-width: 800px) {
  .section__header svg {
    width: 28px;
    height: 28px;
  }
}
@media (max-width: 680px) {

  .bc__input {
    font-size: 15px;
    font-weight: 300;
    padding: 10px;
}
  .sb__sort {
    flex: 1;
    order: 0;
  }
  .bac__bar {
    min-width: 100%;
  }
  .bar-title {
    font-size: 20px;
  }
  .bcc__smt {
    height: 50px;
    font-size: 16px;
  }
  .bccb__clk {
    font-size: 16px;
    height: 40px;
  }
}
@media (max-width: 500px) {
  .section__header svg {
    width: 26px;
    height: 26px;
    min-width: 26px;
  }
}


@media (max-width: 630px) {

  .bac__cars {
  width: 100%;
}
}
@media (max-width: 630px) {

  .mark-item.active .mark__content {
    padding: 6px 8px;
  }
  .mark__items {
    grid-template-columns: repeat(3, 1fr);
  }
  .mark {
    padding: 8px 8px;
  }
  .mark img {
    margin-right: 0;
    height: 16px;
  }
  .mark p {
    font-size: 14px;
  }
  .mark__content label {
    font-size: 12px;
  }
  .mark__content input {
    height: 10px;
  }
}
@media (max-width: 480px) {
  .mark__items {
    grid-template-columns: repeat(2, 1fr);
  }
}


