@import "header.css";
@import "_variables.css";
@import "swiper.css";
@import "footer.css";
@import "detail.css";
@import "fonts.css";
@import "videotube.css";

* {
    padding: 0;
    margin: 0;
    color: var(--primary-color);
    font-family: 'DIN Pro', sans-serif;
}

#app {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img--auto {
    width: auto;
    height: auto;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 100px 100px 100px;
}

.text--main {
    font-size: 22px;
    color: #fff;
    text-decoration: none;
}

.text--secondary {
    font-size: 20px;
    line-height: 24px;
    color: var(--secondary-color);
}

label {
    position: relative;
}

.input {
    width: calc(100% - 58px);
    padding: 15px 18px 15px 40px;
    color: var(--primary-color);
    font-size: 16px;
    border: none;
    outline: none;
    background: #F7F7F9;
    border-radius: 5px;
}

.input__icon {
    position: absolute;
}

.icon-cross {
    display: none;
    top: 18px;
    right: 15px;
    cursor: pointer;
}

.icon-cross--visible {
    display: block;
}

.icon-search {
    top: 15px;
    left: 10px;
}

.icon-cross:hover path {
    fill: #838383;
}

.input:focus {
    outline: 1px solid var(--secondary-bg-color);
}

.btn {
    font-size: 18px;
    background: var(--primary-color);
    border: none;
    outline: none;
    border-radius: 5px;
    color: #fff;
    height: 48px;
    padding: 0 64px;
    transition: .3s;
    cursor: pointer;
}

.btn:hover {
    background: var(--secondary-bg-color);
}

.text {
    color: var(--primary-color);
    font-size: 20px;
    word-break: break-word;
}

.text--lg {
    font-size: 24px;
}

.text--md {
    font-size: 16px;
}

.text--sm {
    font-size: 14px;
    text-decoration: none;
}

.text--grey {
    color: var(--grey-color);
}

.text--silver {
    color: var(--secondary-color);
}

.text--white {
    color: #fff;
}

.text--black {
    color: #000000;
}

.text--w280 {
    max-width: 280px;
    word-break: break-word;
}

.text--align-end {
    text-align: end;
    word-break: break-word;
    max-width: 280px;
}

.text--w55 {
    max-width: 55%;
    word-break: break-word;
    margin-right: 10px;
}

.text--underline {
    border-bottom: 1px solid #fff;
    padding-bottom: 3px;
}

.text--underline:hover {
    border-bottom: 1px solid var(--grey-color);
    color: var(--grey-color);
}

.search-section {
    margin: 40px 0;
    display: flex;
    width: 100%;
    align-items: center;
}

.search-section__title {
    margin-right: 20px;
    min-width: 68px;
}

.search-section__btn {
    margin-left: 20px;
    cursor: pointer;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(calc(25% - 20px),1fr));
    grid-gap: 20px;
}

.product-card {
    margin-bottom: 30px;
    cursor: pointer;
    text-decoration: none;
}

.product-card:hover img {
    box-shadow: 1px 1px 24px 0 #30323A14;
}

.product-card--hidden {
    display: none;
}

.product-card__img-wrapper {
    margin-bottom: 7px;
    transition: .3s;
    background: #F7F7F9;
    height: 220px;
    border-radius: 5px;
}

.product-card__img-wrapper img {
    border-radius: 5px;
}

.product-card__article {
    margin-bottom: 5px;
}

.product-card__title {
    margin-bottom: 5px;
}

.main__controlling {
    margin-top: 40px;
    justify-content: space-between;
    display: flex;
}

.pagination {
    list-style-type: none;
    display: flex;
    align-items: center;
    background: #ffffff;
}

.pagination__item {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
    font-size: 14px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 2px;
    background: #F7F7F9;
    user-select: none;
    text-decoration: none;
}

.pagination__item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.pagination__item--active {
    color: #fff !important;
    background: var(--primary-bg-color);
}

.pagination__item--active a {
    color: #fff;
}

.pagination__item:hover {
    background: #ECECED;
    color: var(--primary-color);
}

.pagination__dots {
    cursor: initial;
    background: none;
    pointer-events: none;
    align-items: flex-end;
}

.products-counter-wrapper {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.products-counter {
    display: flex;
    align-items: center;
    user-select: none;
}

.products-counter__select select{
    margin-left: 30px;
    border: none;
    border-radius: 2px;
    background: #F7F7F9;
    padding: 5px 7px;
    outline: none;
    cursor: pointer;
}

select:hover {
    background: #F3F3F3;
}

.controlling-back {
    display: inline;
    cursor: pointer;
    transition: .3s;
    padding: 5px 7px;
    width: 100%;
    border-radius: 2px;
    text-decoration: none;
}

.controlling-back:hover .text--md {
    color: var(--grey-color);
}

.controlling-back:hover .img--auto path {
    fill: var(--grey-color);
}

.custom-select {
    background: #F7F7F9;
    max-height: 28px;
    overflow: hidden;
    margin-left: 20px;
    border-radius: 2px;
    cursor: pointer;
    font-size: 14px;
}

.custom-select__current {
    padding: 6px 8px;
    display: flex;
    align-items: center;
}

.custom-select:hover {
    background: #F3F3F3;
}

.select-arrow {
    margin-left: 6px;
}

.select-arrow--up {
    display: none;
    transform: rotate(180deg);
}

.select-arrow--active {
    display: inline;
}

.select-arrow--hidden {
    display: none;
}

.custom-select--active {
    overflow: visible;
    background: #fff;
}

.custom-select__options {
    border-radius: 2px;
    margin-top: 3px;
}

.custom-select__options-item {
    padding: 6px 8px;
}

.custom-select__options-item:not(:last-child) {
    border-bottom: 1px solid #838383;
}

.dt_name {
    position: relative;
    width: 100%;
}

.dd_text {
    position: relative;
    width: 100%;
}

.dd_text > span {
    position: relative;
    top: 0px;
    background: #fff;
    padding-left: 3px;
}

.dt_name > span {
    position: relative;
    top: 0px;
    background: #fff;
    padding-right: 3px;
}

.dd_text::before {
    border-bottom: 1px dotted #D7CCCC;
    bottom: 0.2em;
    content: "";
    display: block;
    position: absolute;
    left: -1px;
    width: 100%;
}

.dt_name::before {
    border-bottom: 1px dotted #D7CCCC;
    bottom: 0.2em;
    content: "";
    display: block;
    position: absolute;
    left: 1px;
    width: 100%;
}

.dt-dots {
    flex: 1;
    border-bottom: 1px dotted #D7CCCC;
    margin: 0 0px 2.8px;
    min-width: 30px;
}

.text-content p{
	margin-bottom: 20px
}

@media (max-width: 1200px) {
    .container {
        padding: 0 20px 40px 20px;
    }
    .text--silver {
        font-size: 16px;
    }
}
@media (max-width: 800px) {
    .products {
        grid-template-columns: repeat(auto-fill, minmax(calc(50% - 20px),1fr));
    }
    .product-card {
        margin-bottom: 10px;
    }
}
@media (max-width: 500px) {
    .search-section__title {
        display: none;
    }
    .search-section__btn {
        display: none;
    }
    .input {
        font-size: 14px;
    }
    .product-card {
        margin-bottom: 0;
    }
    .main__controlling {
        align-items: center;
        flex-direction: column;
    }
    .products-counter-wrapper {
        justify-content: center;
    }
    .pagination {
        margin-bottom: 40px;
    }
    .products-counter__select select {
        margin-left: 15px;
    }
    .text--silver {
        font-size: 14px;
    }
}
@media (max-width: 320px) {
    .text {
        font-size: 14px;
    }
    .text--small {
        font-size: 12px;
    }
}