/* Карточки с товарами */
.products {
    margin: 35px 0;
}

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

.products__cards {
    display: grid;
    gap: 30px 20px;
    margin-bottom: 40px;
    overflow: hidden;
}

.products__cards--grid {
  grid-template-columns: repeat(10, 1fr);
}

.products__cards--grid .card {
    grid-column: span 2;
}

.products__cards--list {
  grid-template-columns: repeat(2, 1fr);
}

.products__cards--tiles {
  grid-template-columns: repeat(4, 1fr);
}

.products__add-more {
    width: 295px;
    height: 45px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    text-transform: uppercase;
    background: none;
    border: 1px solid #281D18;
    margin: 0 auto;
    cursor: pointer;
}

.products__add-more:after {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: #281D18;
    transform: scaleX(0);
    transform-origin: left;
    transition: all .4s ease;
}

.products__add-more span {
    position: relative;
    z-index: 1;
    transition: all .4s ease;
}

.products__add-more:hover:after {
    transform: scaleX(1);
}

.products__add-more:hover span {
    color: #FFFEF9;
}

.card {
    flex: 1;
    color: #281D18;
    text-decoration: none;
}

.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: 35px;
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    background: #DCCDB0;
    border-radius: 3px;
    padding: 9px 20px;
    box-sizing: border-box;
}

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

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

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

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

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

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

.card__content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
}

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

.card__colors {
    width: max-content;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.card__color:after {
    content: '';
    width: 34px;
    height: 34px;
    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: 14px;
    font-weight: 500;
    margin-left: 2px;
}

/* Хлебные крошки */
.breadcrumbs {
    margin: 20px 20px 0;
}

.breadcrumbs .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
}

.breadcrumbs__link {
    color: rgba(40, 29, 24, 0.8);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumbs__link:hover {
    opacity: 1;
}

.breadcrumbs__current {
    color: rgba(40, 29, 24, 0.5);
}

.breadcrumbs__separator {
    display: flex;
    align-items: center;
}

@media (max-width: 1024px) {
    /* Карточки с товарами */
    .products__cards--grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products__cards--grid .card {
        grid-column: span 1;
    }

    .products__cards--list {
        grid-template-columns: repeat(1, 1fr);
    }

    .products__cards--tiles {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Карточки с товарами */
    .products {
        margin: 23px 15px 60px;
    }

    .products__title {
        font-size: 16px;
        margin-left: 0;
        margin-bottom: 30px;
    }

    .products__cards {
        gap: 20px 10px;
        margin-bottom: 35px;
    }

    .products__add-more {
        width: 210px;
        height: 40px;
        font-size: 12px;
    }

    .card {
        flex: 1;
        color: #281D18;
        text-decoration: none;
    }

    .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;
        top: 10px;
        left: 10px;
        font-size: 10px;
        border-radius: 1.7px;
        padding: 4px 10px;
    }

    .card__badge {
        height: 20px;
        left: 10px;
        bottom: 10px;
        font-size: 10px;
        border-radius: 1.7px;
        padding: 4px 10px;
    }

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

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

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

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

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

    .card__colors {
        gap: 10px;
        margin-top: 6px;
    }

    .card__color {
        width: 24px;
        height: 24px;
    }

    .card__color:after {
        width: 27px;
        height: 27px;
    }

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

    /* Хлебные крошки */
    .breadcrumbs {
        margin: 15px 15px 0;
    }

    .breadcrumbs .container {
        font-size: 10px;
        gap: 5px;
    }
}

/* Пустое избранное */
.products {
    margin: 35px 20px 0;
}

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

.products__empty-text{
    font-size: 14px;
    color: #2D2926;
    font-weight: 400;
}

.products__empty-link {
    width: 295px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFFEF9;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid #281D18;
    background: #281D18;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    margin: 20px 0 0;
}

.products__empty-link:after {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: #FFFEF9;
    transform: scaleX(0);
    transform-origin: left;
    transition: all .4s ease;
    z-index: 0;
}

.products__empty-link span {
    position: relative;
    z-index: 1;
    transition: all .4s ease;
}

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

.products__empty-link:hover span {
    color: #281D18;
}

/* Хлебные крошки */
.breadcrumbs {
    margin: 20px 20px 0;
}

.breadcrumbs .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
}

.breadcrumbs__link {
    color: rgba(40, 29, 24, 0.8);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumbs__link:hover {
    opacity: 1;
}

.breadcrumbs__current {
    color: rgba(40, 29, 24, 0.5);
}

.breadcrumbs__separator {
    display: flex;
    align-items: center;
}

/* Кнопка смотреть все */
.see-all-button {
    width: 295px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #281D18;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid #281D18;
    background: #FFFEF9;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    margin: 40px auto 0;
}

.see-all-button:after {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: #281D18;
    transform: scaleX(0);
    transform-origin: left;
    transition: all .4s ease;
    z-index: 0;
}

.see-all-button span {
    position: relative;
    z-index: 1;
    transition: all .4s ease;
}

.see-all-button:hover:after {
    transform: scaleX(1);
}

.see-all-button:hover span {
    color: #FFFEF9;
}

@media (max-width: 768px) {
    /* Пустое избранное */
    .products {
        margin: 23px 15px 60px;
    }

    .products__title {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .products__empty-link {
        width: 210px;
        height: 40px;
        font-size: 12px;
    }

    /* Хлебные крошки */
    .breadcrumbs {
        margin: 15px 15px 0;
    }

    .breadcrumbs .container {
        font-size: 10px;
        gap: 5px;
    }

    /* Кнопка смотреть все */
    .see-all-button {
        width: 210px;
        height: 40px;
        font-size: 12px;
    }
}