:root {
    --link-color: #2B85B8;
    --input-color: #4891ba;
}

body, button, h1, h2, h3, input, p, textarea, select {
    font-family: Roboto, Arial, sans-serif;
    font-weight: 300;
}

a {
  color: #2B85B8;
}

a:hover {
  color: #000;
}

button {
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: none;
    padding: 0;
}

h1 {
    margin: 0;
}

h1, h2, h3 {
    font-weight: 300;
    line-height: 1.1em;
}

body, button, input, textarea, select, p {
    font-size: 16px;
}

body {
    margin: 0;
}

.noScroll {
    overflow: hidden;
}

.width {
    max-width: 1200px;
    margin: 0 auto;
}

@media (width <= 1230px) {
    .width {
        max-width: inherit;
        margin: 0 15px;
    }
}

.breadcrumbs {
    font-size: 28px;
    line-height: 1.5em;
}

.breadcrumbs__activeItem {
    color: #000;
    text-decoration: none;
    border-bottom: 2px solid #eee;
}

.breadcrumbs__activeItem:hover {
    color: #2B85B8;
    border-bottom: 1px solid #2B85B8;
}

.breadcrumbs__arrow {
    width: 16px;
    height: 16px;
    background-size: 16px 16px;
    background-repeat: no-repeat;
    display: inline-block;
    margin: 0 5px;
}


.input {
    border: 1px solid var(--input-color);
    border-radius: 7px;
    font-weight: 300;
    box-sizing: border-box;
    padding: 9.5px;
}

.input--w100p {
    width: 100%;
}

.input--search {
    padding-left: 36px;
    background-repeat: no-repeat;
    background-position: center left 10px;
    background-image: url(zoom.svg);
}

.select {
    appearance: none;
    border: 1px solid var(--input-color);
    border-radius: 7px;
    font-weight: 300;
    box-sizing: border-box;
    padding: 9.5px;
    cursor: pointer;
    background-color: white;
    background-image: url("down-small-black.svg");
    background-repeat: no-repeat;
    background-position: center right 10px;
    color: #000;
}

.button {
    background-color: #4C8DB2;
    padding: 10px 15px;
    color: #fff;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    &:hover {
        background-color: #5898bd;
    }
    &:active {
        transform: scale(.95);
    }
}

.linkButton {
    margin: 0;
    padding: 0;
    border: none;
    color: var(--link-color);
    border-bottom: 1px dotted;
    background-color: transparent;
    cursor: pointer;
    &:hover {
        color: #000;
    }
    &:active {
        transform: scale(.95);
    }
}

/* icons */

.iconLtWhite {
  background-image: url("lt-white.svg");
}

.iconGtWhite {
  background-image: url("gt-white.svg");
}

.iconXWhite {
  background-image: url("x-white.svg");
}

.iconX {
  background-image: url("x.svg");
}

.iconLeft {
  background-image: url("left.svg");
}

.iconRight {
  background-image: url("right.svg");
}

.iconCamera {
  background-image: url("camera.svg");
}

/* product */
.productList {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}


.productFilters {
    display: flex;
    gap: 20px;
}

@media (max-width: 600px) {
    .productFilters {
        flex-direction: column;
        gap: 15px;
    }
}

.productFilters__search {
    flex-grow: 1;
}

.searchInput {
    position: relative;
}

.searchInput__input {
    width: 100%;
}

.searchInput__reset {
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: transparent;
    background-size: 18px 18px;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
    cursor: pointer;
    top: 5px;
    right: 5px;
    &:active {
        transform: scale(.85);
    }
}

.productFilters__ordering {
    min-width: 180px;
}

.productSubs {
    background-color: #f3f3f3;
    padding: 15px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    border-radius: 5px;
    line-height: 1em;
}

.productSubs__title {
    font-weight: 500;
    color: #333;
    border-radius: 5px;
}

.productSubs__item {
    border-bottom: 1px solid #aaa;
    color: #333;
    text-decoration: none;
    &:hover {
        border-bottom: 1px solid #333;
        color: #000;
    }
}


.imageGrid {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px;
}

@media (max-width: 1240px) {
    .imageGrid {
        gap: 20px;
    }
}

.imageGrid__cell {
    width: calc((100% - 120px) / 5)
}

@media (max-width: 1240px) {
    .imageGrid__cell {
        width: calc((100% - 80px) / 5)
    }
}

@media (max-width: 1100px) {
    .imageGrid__cell {
        width: calc((100% - 60px) / 4)
    }
}

@media (max-width: 750px) {
    .imageGrid__cell {
        width: calc((100% - 40px) / 3)
    }
}

@media (max-width: 600px) {
    .imageGrid__cell {
        width: calc((100% - 20px) / 2)
    }
}

.imageGrid__image {
    display: inline-block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    background-size: cover;
    background-color: #eee;
    position: relative;
    transition-duration: 0.1s;
    transition-property: transform;
    background-position: center;
}

.imageGrid__image--noImage {
    background-size: 80px 80px;
    background-position: center;
    background-repeat: no-repeat;
}

.imageGrid__link {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    color: #000;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background-color: transparent;
    text-align: left;
    cursor: pointer;
}

.imageGrid__link:hover .imageGrid__image,
.imageGrid__link:hover .imageGrid__collage {
    transform: scale(1.02);
}

.imageGrid__link:hover .imageGrid__description {
    text-decoration: underline;
    color: var(--link-color);
}

.imageGrid__price {
    font-weight: 500;
    display: block;
    line-height: 1em;
    margin-top: 6px;
}

.imageGrid__description {
    display: block;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    @supports (-webkit-line-clamp: 2) {
        text-overflow: ellipsis;
        white-space: initial;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
}

/* product card */

.product {
    margin-top: 20px;
    margin-bottom: 20px;
}

.product__mainImage {
  width: 500px;
  height: 500px;
  background-size: contain;
  background-color: #f6f6f6;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
  padding: 0;
  margin: 0;
  border: none;
  cursor: pointer;
}

@media (max-width: 600px) {
  .product__mainImage {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }
}

.product__top {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}

@media (max-width: 1240px) {
  .product__top {
    gap: 20px;
  }
}

@media (max-width: 1000px) {
  .product__top {
    flex-direction: column;
  }
}

.product__thumbs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

@media (max-width: 1000px) {
  .product__thumbs {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    padding: 3px;
  }
}

.product__thumb {
  width: 50px;
  height: 50px;
  background-size: contain;
  background-color: #f6f6f6;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  cursor: pointer;
}

.product__thumb:hover {
    box-shadow: 0 0 0 1px #fff, 0 0 0 3px #00000030;
}

.product__thumb:active {
    transform: scale(.95);
}


.product__thumb--current {
  box-shadow: 0 0 0 1px #fff, 0 0 0 3px #4C8DB2;
  pointer-events: none;
}

.product__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
}

@media (max-width: 600px) {
  .product__info {
    gap: 20px;
  }
}

.product__heading {
  margin: 0;
}

.product__price {
  font-size: 28px;
}

.product__requestButton {
  padding: 12px 20px;
}

.product__description {
  max-width: 1000px;
}

.imageZoom {
  display: none;
  flex-direction: column;
  background-color: #333;
  z-index: 30;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.imageZoom__mainRow {
  flex: 2;
  display: flex;
}

.imageZoom__title {
  padding: 10px 0 0 0;
  color: #fff;
  text-align: center;
  white-space: break-spaces;
}

.imageZoom__image {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex: 2;
}

.imageZoom__thumbsWrapper {
  height: 70px;
  text-align: center;
  overflow-x: auto;
}

.imageZoom__thumbs {
  margin: 0 15px;
  padding: 0;
  height: 70px;
  list-style: none;
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 15px;
  justify-content: center;
  align-items: center;
}

.imageZoom__thumbs li {
  height: 50px;
}

.imageZoom__thumb {
  width: 50px;
  height: 50px;
  background-size: contain;
  background-color: #222;
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  cursor: pointer;

}

.imageZoom__thumb:hover {
    box-shadow: 0 0 0 1px #000, 0 0 0 3px #4C8DB230;
}

.imageZoom__thumb:active {
    transform: scale(.95);
}

.imageZoom__thumb--current {
  box-shadow: 0 0 0 1px #000, 0 0 0 3px #4C8DB2;
  pointer-events: none;
}

.imageZoom__btn {
  position: absolute;
  background-repeat: no-repeat;
  background-color: transparent;
  border: none;
  &:hover {
    background-color: #00000010;
  }
}

.imageZoom__next {
  right: 0;
  top: 0;
  bottom: 70px;
  width: 10%;
  background-position: center;
  z-index: 35;
}

.imageZoom__prev {
  left: 0;
  top: 0;
  bottom: 70px;
  width: 10%;
  background-position: center;
}

.imageZoom--single .imageZoom__prev,
.imageZoom--single .imageZoom__next {
  display: none;
}

.imageZoom__close {
  right: 0;
  top: 0;
  height: 100px;
  width: 10%;
  z-index: 40;
  background-position: center;
}

.modal {
  background-color: #C8C8C8aa;
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  align-items: center;
}

.modal__wrapper {
  width: 100%;
  max-height: 100%;
  overflow: auto;
}

.modal__window {
  background-color: #fff;
  border-radius: 10px;
  padding: 30px;
  margin: 10px auto;
  box-sizing: border-box;
  position: relative;
}

.modal__heading {
  margin-top: 0;
}

.modal__x {
  width: 30px;
  height: 30px;
  background-color: transparent;
  margin: 0;
  padding: 0;
  border: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 18px 18px;
  position: absolute;
  top: 18px;
  right: 15px;
  cursor: pointer;
  &:active {
    transform: scale(.7);
  }
}

.form__row {
  margin-bottom: 20px;
}

.form__submit {
  margin-right: 15px;
}

.productAppForm {
  width: 350px;
}

@media (max-width: 400px) {
  .productAppForm {
    width: 100%;
    margin: 0 0 50px 0;
    border-radius: 0;
  }
}

.agree {
  font-size: 12px;
  line-height: 1.5em;
  display: block;
  cursor: pointer;
}

.agree input {
  vertical-align: middle;
}

.agree span {
  vertical-align: middle;
}

.agree a {
    color: var(--link-color);
}

/****/

.pageNavigator {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 15px;
  overflow-x: auto;
}

.pageNavigator__page,
.pageNavigator__ellipsis,
.pageNavigator__sibling {
  width: 32px;
  height: 32px;
  background-color: #f7f7f7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  border: 2px solid #fff;
  &:hover {
    background-color: #eee;
  }
  &:active {
    transform: scale(.9);
  }
}

.pageNavigator__page {
  text-decoration: none;
  color: #000;
}

.pageNavigator__page--current {
  background-color: #fff;
  border: 2px solid #000;
  font-weight: 500;
}

.pageNavigator__ellipsis {
  pointer-events: none;
  background-color: transparent;
}

.pageNavigator__sibling {
  background-size: 7px 11px;
  background-repeat: no-repeat;
  background-position: center;
}

.label {
    background-color: #e7e7e7;
    line-height: 38px;
    text-align: center;
}

.label__link {
    text-decoration: none;
    color: #777;
    font-size: 14px;
    vertical-align: middle;
}

.label__text {
    vertical-align: middle;
    margin-right: 10px;
}

.label__logo {
    display: inline-block;
    width: 60px;
    height: 15px;
    background-image: url(datari.svg);
    background-size: contain;
    vertical-align: middle;
}
