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

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

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

.breadcrumbs__link:hover { color: rgba(40, 29, 24, 1); }
.breadcrumbs__current { color: rgba(40, 29, 24, 0.5); }
.breadcrumbs__separator { display: flex; align-items: center; }

/* ===== Lookbook ===== */
.lookbook-collection {
    margin: 35px 20px;
}

.lookbook-collection__subtitle {
    color: #281D18;
    font-size: 22px;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.lookbook-collection__title {
    font-family: 'Bounded', sans-serif;
    font-size: 48px;
    color: #281D18;
    text-transform: uppercase;
    margin-bottom: 35px;
    font-weight: 400;
}

.lookbook-collection__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    gap: 20px;
}

.col__item {
    position: relative;
    overflow: hidden;
}

.col__item:nth-child(9n+1) {
    grid-column: 1 / span 2;
    grid-row: span 4;
}

.col__item:nth-child(9n+2) {
    grid-column: 3 / 5;
    grid-row: 2 / span 4;
}

.col__item:nth-child(9n+3) {
    grid-column: 1;
    grid-row: span 2;
}

.col__item:nth-child(9n+4) {
    grid-column: 2;
    grid-row: span 2;
}

.col__item:nth-child(9n+5), .col__item:nth-child(9n+8) {
    grid-column: 3;
    grid-row: span 2;
}

.col__item:nth-child(9n+6), .col__item:nth-child(9n+9) {
    grid-column: 4;
    grid-row: span 2;
}

.col__item:nth-child(9n+7) {
    grid-column: span 2;
    grid-row: span 4;
}

.col__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.col__item:hover img {
    transform: scale(1.05);
}

/* Кнопка корзины */
.cart-btn {
    position: absolute;
    right: 15px;
    bottom: 15px;
    width: 40px;
    height: 40px;
    border: none;
    cursor: pointer;
    background: none;
    border-radius: 100px;
    padding: 0;
    overflow: hidden;
    transition: width 0.4s ease, height 0.4s ease;
}

.cart-btn:hover {
    width: 200px;
    height: 40px;
}

.cart-btn__icon {
    position: absolute;
    inset: 0;
    transition: opacity 0.4s ease;
}

.cart-btn__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-btn__icon--default {
    opacity: 1;
}

.cart-btn__icon--hover {
    opacity: 0;
}

.cart-btn:hover .cart-btn__icon--default {
    opacity: 0;
}

.cart-btn:hover .cart-btn__icon--hover {
    opacity: 1;
}

/* Кнопка "Смотреть всю коллекцию" */
.lookbook-collection__footer {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.lookbook-collection__link {
    width: 295px;
    height: 45px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #281D18;
    font-size: 14px;
    text-decoration: none;
    text-transform: uppercase;
    border: 1px solid #281D18;
}

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

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

.lookbook-collection__link:hover:after {
    transform: scaleX(1);
}

.lookbook-collection__link:hover span {
    color: #FFFEF9;
}

/* Оверлей для модалок */
.modal__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

/*  Первая модалка: товары на фото */
.modal {
    width: 540px;
    background: #FFFEF9;
    position: relative;
    box-sizing: border-box;
    max-height: 90vh;
    overflow-y: auto;
}

.modal__close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: none;
    border: none;
    cursor: pointer;
}

.modal__title {
    font-size: 22px;
    color: #281D18;
    margin: 60px 22px 30px ;
    text-transform: uppercase;
    font-weight: 400;
}

.modal__cards {
    display: flex;
    flex-direction: column;
}

.modal-card {
    display: flex;
    align-items: flex-start;
    padding: 15px 21px;
    border-top: 1px solid #E7E7E7;
    position: relative;
}

.modal-card__link {
    display: flex;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.modal-card__photo {
    flex: 0 0 20%;
    aspect-ratio: 0.75;
    overflow: hidden;
    background: #F3EFE4;
}

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

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

.modal-card__info {
    margin-left: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.modal-card__title {
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    margin: 0;
    color: #281D18;
}

.modal-card__price {
    font-size: 14px;
    text-transform: uppercase;
    color: #281D18;
}

.modal-card__details {
    margin-top: 16px;
    font-size: 14px;
    color: #AAAAAA;
    display: flex;
    flex-direction: column;
}

.modal-card__color,
.modal-card__size {
    font-weight: 400;
    line-height: 1.4;
}

.modal-card__actions {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-left: auto;
}

.modal-card__favorite,
.modal-card__cart {
    background: none;
    border: none;
    cursor: pointer;
    transition: all .4s ease;
}

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

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

.modal-card__cart:hover {
    transform: scale(1.1);
}

@media(max-width:1440px){
    /* Кнопка корзины */
    .cart-btn:hover {
        width: 180px;
        height: 40px;
    }
}

@media(max-width:1024px){
    /* Кнопка корзины */
    .cart-btn:hover {
        width: 150px;
        height: 40px;
    }
}

@media (max-width: 768px) {
    /* ===== Хлебные крошки ===== */
    .breadcrumbs {
        margin: 15px;
    }

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

    /* ===== Lookbook ===== */
    .lookbook-collection {
        margin: 23px 15px 60px;
    }

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

    .lookbook-collection__title {
        font-size: 20px;
        margin-bottom: 30px;
    }

    .lookbook-collection__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .col__item:nth-child(9n+2) {
        grid-column: span 2;
        grid-row: span 2;
    }

    .col__item:nth-child(9n+5), .col__item:nth-child(9n+8) {
        grid-column: 1;
    }

    .col__item:nth-child(9n+6), .col__item:nth-child(9n+9) {
        grid-column: 2;
    }

    .lookbook-collection__footer {
        margin-top: 35px;
    }

    .lookbook-collection__link {
        width: 230px;
        height: 40px;
        font-size: 12px;
    }

    .cart-btn {
        right: 10px;
        bottom: 10px;
        width: 35px;
        height: 35px;
    }

    /* Первая модалка */
    .modal__overlay--products {
        align-items: flex-start;
    }

    .modal {
        width: 100%;
        height: 100%;
        max-height: none;
        border-radius: 0;
    }

    .modal__close {
        top: 20px;
        right: 20px;
    }

    .modal__title {
        font-size: 16px;
        margin: 50px 15px 13px;
    }

    .modal-card {
        padding: 14px 15px;
        gap: 10px;
    }
}
