.search {
	z-index: 101;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    color: #281D18;
    opacity: 0;
    pointer-events: none;
    transition: all .4s ease;
}

.search--active {
    opacity: 1;
    pointer-events: all;
}

.search--active .search__container {
    transform: translateY(0);
}

.search__container {
    width: 100%;
    min-height: 720px;
    background: #FFFEF9;
    padding-top: 55px;
    padding-left: 77px;
    padding-bottom: 110px;
    box-sizing: border-box;
    transform: translateY(-100%);
    transition: all .4s ease;
}

.search__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search__logo {
    display: none;
}

.search__close {
    position: absolute;
    top: 40px;
    right: 40px;
    cursor: pointer;
}

.search__form {
    max-width: 930px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #281D18;
    padding-bottom: 7px;
    margin: 0 auto 60px;
}

.search__submit {
    background: none;
    border: none;
    cursor: pointer;
}

.search__reset {
    font-size: 14px;
    text-decoration: underline;
    background: none;
    border: none;
    opacity: 0;
    pointer-events: none;
    transition: all .4s ease;
    cursor: pointer;
}

.search__reset--visible {
  opacity: 1;
  pointer-events: auto;
}

.search__input {
    width: 100%;
    height: 100%;
    color: #281D18;
    font-size: 14px;
    border: none;
    outline: none;
}

.search__content {
    display: flex;
    gap: 210px;
}

.search__content-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 35px;
}

.search__content-title {
    display: block;
    font-size: 22px;
    text-transform: uppercase;
    margin-bottom: 35px;
}

.search__content-header .search__content-title {
    margin-bottom: 0;
}

.search__content-list {
    flex: 0 0 300px;
    display: none;
}

.search__content-list--active {
    display: block;
}

.search__content-list ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.search__content-link {
    position: relative;
    color: #281D18;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
}

.search__content-link--suggest {
    text-transform: none;
}

.search__content-link--mobile {
    display: none;
}

.search__content-link:after {
    content: '';
    width: 100%;
    height: 1px;
    position: absolute;
    left: 0;
    bottom: 0;
    background: #281D18;
    transform: scaleX(0);
    transform-origin: left;
    transition: all .4s ease;
}

.search__content-link:hover:after {
    transform: scaleX(1);
}

.search__content-query {
    font-weight: 700;
}

.search__content-products {
    min-width: 0;
    display: none;
}

.search__content-products--active {
    display: block;
}

.search__content-cards {
    display: flex;
    gap: 20px;
    padding-bottom: 15px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.search__overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.card {
    min-width: 195px;
    color: #281D18;
    text-decoration: none;
    overflow: hidden;
}

.card:hover .card__photo img {
    transform: scale(1.1);
}

.card__photo {
    position: relative;
    aspect-ratio: 0.65;
    background: #F3EFE4;
    transition: all .4s ease;
}

.card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all .4s ease;
}

.card__tag {
    height: 20px;
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    background: #DCCDB0;
    border-radius: 2px;
    padding: 4px 10px;
    box-sizing: border-box;
}

.card__badge {
    height: 20px;
    position: absolute;
    left: 10px;
    bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #F3EFE4;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(40,29,24,0.3);
    border-radius: 3px;
    padding: 4px 10px;
    box-sizing: border-box;
}

.card__favorite {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.card__favorite svg {
    width: 22px;
    height: auto;
}

.card__favorite path {
    fill: transparent;
    transition: all .4s ease;
}

.card__favorite:hover path{
    fill: #281D18;
}

.card__add-to-cart {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: none;
    border: none;
    cursor: pointer;
    transition: all .4s ease;
}

.card__add-to-cart svg {
    width: 35px;
    height: auto;
}

.card__add-to-cart:hover {
    transform: scale(1.1);
}

.card__content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12px;
    padding: 8px 5px;
}

.card__title {
    font-weight: 600;
    text-transform: uppercase;
}

.card__colors {
    width: max-content;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.card__color {
    width: 24px;
    height: 24px;
    position: relative;
    border-radius: 50%;
    cursor: pointer;
}

.card__color:after {
    content: '';
    width: 30px;
    height: 30px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid transparent;
    border-radius: 50%;
}

.card__color--active:after {
    border: 1px solid #D9D9D9;
}

.card__colors-more {
    font-size: 10px;
    margin-left: -5px;
}

.empty {
    max-height: 0;
    font-size: 14px;
    margin-bottom: 0px;
    opacity: 0;
    transition: all .4s ease;
}

.empty--active {
    max-height: 500px;
    margin-bottom: 60px;
    opacity: 1;
}

.empty--mobile {
    display: none;
}

.empty__title {
    font-size: 22px;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.empty__query {
    font-weight: 600;
}

@media (max-width: 1224px) {
    .search__container {
        max-height: 100svh;
        padding: 55px 20px;
        overflow-y: auto;
        scrollbar-width: thin;
    }

    .search__content {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 768px) {
    .search__container {
        height: 100svh;
        padding: 0;
    }

    .search__header {
        height: 60px;
        padding: 0 15px;
    }

    .search__logo {
        display: block;
    }

    .search__close {
        position: static;
    }

    .search__form {
        border: 1px solid #281D18;
        padding: 8px 15px;
        margin: 0 15px 35px;
    }

    .search__submit svg {
        width: 25px;
        height: auto;
    }

    .search__reset {
        font-size: 12px;
    }

    .search__input {
        font-size: 12px;
        font-weight: 600;
    }

    .search__content-title {
        font-size: 16px;
        padding: 0 15px;
        margin-bottom: 20px;
    }

    .search__content-list {
        flex: 1;
        margin-bottom: 60px;
    }

    .search__content-list--popular {
        display: block;
    }

    .search__content-list--suggest {
        display: none;
    }

    .search__content-list ul {
        flex-direction: row;
        padding: 0 15px;
        gap: 5px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .search__content-link {
        height: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 12px;
        border: 1px solid rgba(40, 29, 24, 0.3);
        border-radius: 100px;
        padding: 7px 10px;
        box-sizing: border-box;
        transition: all .4s ease;
    }

    .search__content-link--desktop {
        display: none;
    }

    .search__content-link--mobile {
        justify-content: flex-start;
        text-decoration: underline;
        border: none;
        padding-top: 60px;
    }

    .search__content-link:after {
        content: '';
        display: none;
    }

    .search__content-link:hover {
        background: rgba(40, 29, 24, 0.3);
    }

    .search__content-link--mobile:hover {
        background: none;
    }

    .search__content-cards {
        gap: 5px;
        padding: 0 15px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .card {
        min-width: 150px;
    }

    .card__tag {
        top: 5px;
        left: 5px;
    }

    .card__badge {
        left: 5px;
        bottom: 5px;
    }

    .card__favorite {
        top: 5px;
        right: 5px;
    }

    .card__add-to-cart {
        right: 5px;
        bottom: 5px;
    }

    .card__content {
        font-size: 10px;
    }

    .card__colors-more {
        margin-left: -3px;
    }

    .empty {
        font-size: 12px;
        padding: 0 15px;
    }

    .empty--desktop {
        display: none;
    }

    .empty--mobile {
        display: block;
    }

    .empty__title {
        font-size: 16px;
        margin-bottom: 10px;
    }
}

 