:root {
  --border-box: 1px solid #aaa;
  --box-border-radius: 15px;
  --background-color: #111;
  --catalog-background-color: #333;
  --catalog-background-color-2: #222;


  --color: #ddd;
}

body {
  background-color: var(--catalog-background-color);
}

main {
  font-family: 'Montserrat' !important;
  background-color: var(--catalog-background-color);
  min-height: 80vh !important;
}

main h2,
main h1,
main h3,
main p,
main a {
  font-family: 'Montserrat' !important;
  color: var(--color);

}

.catalog {
  height: 100% !important;
}

.box__catalog {
  margin: 75px 25px;
  height: 100% !important;
  align-items: start;
  justify-content: space-around;
}

.dropdown-filter {
  display: none;
}

.filter {
  width: 30% !important;
  min-height: 500px;
  padding: 0 25px;
}

.filter,
.filter__type {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.filter__type {
  gap: 7px;
  padding: 0 0 0 20px;
}

.filter__type h4 {
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--action-color);
}

.filter__type ul li {
  margin: 3px 0;
  cursor: pointer;
  font-weight: 300;
  font-size: 14px;
}

.filter__type ul li a:hover {
  text-decoration: underline;
}

.catalog {
  width: 70% !important;
}

.catalog a,
.filter__type a {
  color: var(--color);
  text-decoration: none;
}

.catalogue {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  width: 100%;
  height: 100%;
  justify-content: center;
  gap: 50px 0;
}

.item:hover {
  box-shadow: 0px 5px 10px #111, 0px -5px 10px #111;
  /* transform: scale(.9, .9) */
}

.catalogue .item {
  width: 280px;
  height: 400px;
  background-color: var(--catalog-background-color-2);
  border: 1px solid var(--catalog-background-color-2);
  margin: 0 10px;
  transition: 300ms;
  cursor: pointer;
  border-radius: var(--box-border-radius);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: start;
}

.item .image {
  height: 50%;
  width: 100%;
}

.item .image img {
  width: 100%;
  height: 100%;
  overflow: hidden;
  max-inline-size: 100%;
  object-fit: cover;
  border-radius: 14px 14px 0 0;
}

.item .text {
  padding: 15px;
  height: 50%;
  width: 100%;
  text-align: start;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: column;
  overflow: hidden;
  font-weight: 300 !important;
}
.text button {
  width: 100%;
  padding: 5px;
  background-color: var(--action-color);
}

.item img {
  width: 12px;
  margin: 0 3px 0 0;
}

.text .column,
.text .row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

.text .row {
  align-items: center;
  justify-content: space-between;
  width: 100%;
  flex-direction: row;
}

.item .text h3 {
  font-size: .9rem;
  text-transform: capitalize;
  font-weight: 500;
  padding: none !important;
}

.item .text p {
  opacity: .9;
  font-size: .8rem;
}

.item .text .price {
  font-size: 1.3rem;
  opacity: 1 !important;
  font-weight: 600;
}

.box__vehicle {
  height: auto;
  justify-content: center;
  padding: 50px 0 100px 0 !important;
  color: var(--color);
}

.box__galery {
  display: flex;
  flex-direction: row;
  gap: 50px;
  justify-content: flex-end;
}

.box__galery .galery {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.box__galery .galery,
 .box__galery .galery img {
  cursor: pointer;
  height: 60px;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  width: 60px;
  border-radius: 5px;
  border: 1px solid #858585;
  transition: 300ms;
}

.box__galery .galery img:hover {
  filter: brightness(.5);
} 

.box__galery .show-img {
  width: 60%;
}

.box__galery .show-img img {
  height: 100%;
  object-fit: cover;
  width: 100%;
  aspect-ratio: 1 / 1;
}

.box__description {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.box__description h1,
.box__description h4 {
  margin: 0px;
}


.box__description h1 {
  margin: 0 0 25px 0;
  text-transform: capitalize;
  font-size: 2.5rem !important;
  font-weight: 500;
}

.box__description h4 {
font-family: 'Montserrat', sans-serif !important;
}

.box__description h4:nth-child(2) {
  font-size: 3.5rem !important;
  font-weight: 600;
  margin: 0 0 20px 0;
}

.box__description h4:nth-child(3) {
  width: 80%;
  font-size: 1.5rem;
  margin: 0 0 20px 0;
  line-height: 25px;
}

.box__description p {
  font-size: 1.1rem;
  font-weight: 300 !important;
  margin: 0 0 10px 0;
}

.not-found {
  font-family: 'Montserrat';
  display: flex;
  flex-direction: column;
  gap: 50px;
  align-items: center;
  justify-content: center;
}

.box__description .action-wrapper {
  margin: 10px 0 0 0;
}

@media(max-width: 1100px) {
  .box__galery {
    flex-direction: column-reverse;
  }

  .box__galery .galery {
    flex-direction: row;
  }

  .box__galery .galery,
.box__galery .desc .box__galery .galery img {
  height: 60px;
  width: 60px;
}

  .box__catalog {
    margin: 50px 25px;
  }

  .catalog {
    width: 80% !important;
  }

  .catalogue {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    width: 100%;
    height: 100%;
    justify-content: center;
    gap: 50px 0;
  }

  .catalogue .item {
    width: 230px;
    height: 330px;
  }

  .box__description h4:nth-child(3) {
    width: 95%;
  }
  

  .item .text {
    padding: 15px;
  }

  /* .item .text h3 {
    font-size: 1rem;
  }

  .item .text p {
    font-size: .8rem;
  }

  .item .text .price {
    font-size: 1.1rem;
  } */
  .item  .text {
    padding: 8px;
  }
  .text button {
    width: 100%;
    font-size: 1rem;
    padding: 1px;
    background-color: var(--action-color);
  }
  

  .text .column,
.text .row {
  gap: 0px;
}

  .item .image,
  .item .text {
    height: 50%;
  }

  .box__galery {
    gap: 25px;
    padding: 0 0 0 25px;
  }

  .box__galery .show-img {
    width: 100%;
  }
}

@media(max-width: 840px) {
  .catalogue .item {
    width: 200px;
    height: 300px;
  }

  .box__catalog {
    margin: 25px 25px;
  }

  .filter__type {
    gap: 7px;
    padding: 0 0 0 0px;
  }

  .filter {
    width: 35% !important
  }


  .item .text h3 {
    font-size: .8rem;
    text-transform: capitalize;
    font-weight: 500;
    padding: none !important;
  }
  
  .item .text p {
    opacity: .9;
    font-size: .7rem;
  }
  
  .item .text .price {
    font-size: .85rem;
    opacity: 1 !important;
    font-weight: 600;
  }
  

}

@media(max-width: 720px) {


  .box__galery {
    gap: 25px;
    padding: 0 25px;
  }

  .box__description {
    padding: 25px;
  }
}

@media(max-width: 680px) {
  .box__vehicle {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .filter {
    display: none;
  }

  .box__catalog {
    flex-direction: column !important;
  }

  .catalog {
    width: 100% !important;
  }

  .dropdown-filter {
    display: flex;
    flex-direction: column;
    height: 100px !important;
    width: 100%;
    gap: 10px;
    padding: 0 0 0 50px;
  }

  .dropdown {
    display: flex;
    flex-direction: row;
    gap: 5px;
    width: 100%;
    align-items: center;
;
  }
}

/* Source: https://codepen.io/vlastapolach/pen/EXdLMy */
@media(max-width: 680px) {
  /* .item .text h3 {
    font-size: .8rem;
  }

  .item .text p {
    font-size: .7rem;
  }

  .item .text .price {
    font-size: .8rem;
  }
 */


  .catalogue {
    gap: 50px 0;
  }

  .catalogue .item {
    width: 170px;
    height: 295px;
  }

  .btn-buy-list {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    font-family: inherit;
    color: var(--color);
    font-weight: 400 !important;
    background-color: var(--catalog-background-color-2);
    border: 1px solid #444;
    border-radius: 7px;
    font-size: 12px;
    padding: 6px 10px;
    position: relative;
  }

  .btn-buy-list img {
    width: 10px;
    margin-top: 2px;
  }


  .btn-buy:active,
  .btn-buy:focus,
  .btn-buy-list:active,
  .btn-buy-list:focus {
    outline: none;
    background: var(--catalog-background-color);
  }



  .dropdown-menu {
    position: absolute;
    z-index: 1000;
    display: none;
    min-width: 160px;
    padding: 5px 0;
    margin: -1px 0 0 0;
    list-style: none;
    color: var(--color);
    background-color: var(--catalog-background-color);
    border: 1px solid var(--catalog-background-color-2);
    border-radius: 3px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 9);
    background-clip: padding-box;
  }

  .dropdown-menu a {
    text-decoration: none;
  }

  .dropdown-menu a li {
    font-size: 12px;
    color: var(--color);
    padding: 5px 15px;
  }

  .dropdown-menu a li:hover {
    background-color: #444;
  }
}

@media(max-width: 490px) {

  .dropdown-filter {
    padding: 0 0 0 25px;
  }
}

@media(max-width: 400px) {
  .catalogue .item {
    width: 160px;
    height: 295px;
  }
}
