/* Shops */
.our-shops-section {
    background-color: #F7E8CE;
    padding: 100px 0;
}

.our-shops {
    display: flex;
    gap: 10px;
    border: 2px solid #294920;
    border-radius: 20px;
    padding: 61px 38px 58px 39px;
}

.right-column {
    max-width: 440px;
    overflow: hidden;
    position: relative;
    margin: -3px 0 0 auto;
}

.our-shops__title {
    font-size: 40px;
    font-weight: 600;
    line-height: 1;
    color: #294920;
    margin: 0;
}

.shop-cities {
    display: flex;
    gap: 20px;
    margin: 34px 0 0 2px;
}

.shop-cities__btn {
    font-family: var(--font-harmonia);
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    color: #294920;
    background-color: transparent;
    border: 2px solid #294920;
    border-radius: 20px;
    cursor: pointer;
    padding: 6px 24px 5px;
    margin: 0;
}

.shop-cities__btn.js-active {
    background-color: #294920;
    color: #ffffff;
}

.shop-addresses {
    display: flex;
    gap: 42px;
    margin: 37px 0 0 2px;
}

.shop-addresses__btn {
    font-family: var(--font-harmonia);
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    color: #294920;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    padding: 0 0 8px;
}

.shop-addresses__btn.js-active {
    color: #294920;
    border-color: #294920;
}

.shops-info {
    display: flex;
    flex-wrap: wrap;
    gap: 34px 54px;
    margin: 27px 0 0 2px;
}

.shop-schedule {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shops-info__title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    color: #294920;
    margin: 0;
}

.shops-info__text {
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    color: #294920;
}

/* Schedule */

.shop-schedule__title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    color: #294920;
    margin: 0;
}

.shop-schedule__text {
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    color: #294920;
}

.shop-schedule__text:first-of-type {
    margin: 4px 0 -1px 0;
}

.shop-schedule__text:last-of-type {
    margin: 0 0 0 -3px; 
}

/* Metro */

.shop-metro__station {
    display: flex;
    align-items: center;
    gap: 5px;
}

.shop-metro__station:nth-of-type(1) {
    margin: 14px 0 0;
} 

.shop-metro__station:nth-of-type(2){
    margin: 9px 0 0;
} 

.shop-metro__icon {
    width: 19px;
    height: 13px;
    margin: -1px 0 0 0;
}

.shop-metro__name {
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    color: #294920;
}

/* Contacts */

.shop-contacts {
    margin: 0 0 0 -4px;
}

.shop-contacts__link {
    display: inline-block;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    color: #294920;
    margin: 14px 0 0 0;
}

.shop-social-list {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 17px 0 0 0;
}

.shop-social-list__item {
    border-radius: 50%;
    background-color: #D9D9D9;
}

.shop-social-list__item a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
}

.shop-detail-link {
    font-family: var(--font-harmonia);
    width: max-content;
    grid-area: link;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    color: #F7E8CE;
    background-color: #294920;
    border: 1px solid #294920;
    border-radius: 10px;
    padding: 18px 46px;
    margin: 0;
}

.shop-detail-link {
    font-family: var(--font-harmonia);
    width: max-content;
    grid-area: link;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    color: #ffffff;
    background-color: #294920;
    border: 1px solid #294920;
    border-radius: 10px;
    padding: 18px 40px;
    margin: auto 0 0 0;
}

.shop-detail-link:hover {
    color: #294920;
    background-color: #ffffff;
} 

/* Gallery */

.shop-img {
    width: 100%;
    border-radius: 20px;
    min-height: 340px;
    object-fit: cover;
}

.shop-gallery-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    padding: 0;
    margin: 16px -5px 0 0;
}

#shop-gallery .swiper-slide {
    min-width: 440px;
    cursor: pointer;
}

#shop-gallery .swiper-button-next,
#shop-gallery .swiper-button-prev,
#popup-shop-gallery .swiper-button-prev,
#popup-shop-gallery .swiper-button-next {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    background-image: none;
    position: static;
    margin: 0;
}

#shop-gallery .swiper-button-next svg,
#shop-gallery .swiper-button-prev svg,
#popup-shop-gallery .swiper-button-prev svg,
#popup-shop-gallery .swiper-button-next svg {
    fill: #294920;
    width: 8px;
    height: 12px;
}

#shop-gallery .swiper-button-next:hover svg,
#shop-gallery .swiper-button-prev:hover svg,
#popup-shop-gallery .swiper-button-prev:hover svg,
#popup-shop-gallery .swiper-button-next:hover svg {
    fill: #00AFFF;
}

#shop-gallery .swiper-pagination-fraction,
#popup-shop-gallery .swiper-pagination-fraction {
    width: max-content;
    position: static;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    color: #294920;
}


@media(max-width: 1024px) {
    /* Shops */
    .our-shops-section {
        padding: 0 0 60px;
    }

    .our-shops {
        flex-direction: column;
        gap: 29px;
    }

    .right-column {
        max-width: 100%;
        position: relative;
        margin: 0;
    }

    .shop-addresses {
        gap: 42px;
    }

    /* popup */
    #popup-shop-gallery .swiper-slide img {
        min-height: auto;
    }
}

@media(max-width: 767px) {
    .our-shops-section {
        position: relative;
        padding: 80px 0 136px;
    }

    .our-shops {
        border: none;
        padding: 0;
    }

    .our-shops__title {
        font-size: 24px;
    }

    .shop-cities {
        overflow-y: scroll;
        gap: 20px;
        padding: 0 19px;
        margin: 36px -19px 0;
    }

    .shop-cities__btn {
        white-space: nowrap;
    }

    .shop-addresses {
        gap: 31px;
        overflow-y: scroll;
        padding: 0 19px;
        margin: 27px -19px 2px;
    }

    .shop-addresses__btn  {
        white-space: nowrap;
    }

    .shops-info {
        display: grid;
        grid-template-columns: auto auto;
        gap: 24px 12px;
        margin: 17px 0 0 0px;
    }

    .shops-info__title {
        font-size: 18px;
    }

    .shop-schedule {
        gap: 8px;
    }

    .shop-schedule__text {
        font-size: 16px;
    }

    .shop-schedule__text:first-of-type {
        margin: 2px 0 -1px 0;
    }

    .shop-schedule__text:last-of-type {
        margin: 0;
    }

    .shop-metro__station:nth-of-type(1) {
        margin: 11px 0 0;
    } 

    .shop-metro__station:nth-of-type(2){
        margin: 7px 0 0;
    } 

    .shop-metro__name {
        font-size: 16px;
    }

    .shop-contacts {
        margin: 0 0 0 -4px;
        grid-column: 1 / -1;
    }

    .shop-contacts__link {
        font-size: 16px;
        margin: 10px 0 0 0;
    }

    .shop-social-list {
        margin: 9px 0 0 0;
    }

    .shop-img {
        border-radius: 10px;
        min-height: 228px;
        aspect-ratio: 16 / 9;
    }

    #shop-gallery .swiper-slide {
        min-width: 280px;
    }

    #shop-gallery .swiper-button-next, 
    #shop-gallery .swiper-button-prev {
        display: none;
    }

    .shop-gallery-controls {
        position: absolute;
        font-size: 24px;
        bottom: 10px;
        right: 10px;
        margin: 0;
    }

    #shop-gallery .swiper-pagination-fraction {
        font-size: 18px;
        font-weight: 600;
        color: #ffffff;
    }

    #shop-gallery .swiper-pagination-current {
        margin: 0 -3px 0 0;
    }

    #shop-gallery .swiper-pagination-total {
        margin: 0 0 0 -3px;
    }

    .shop-detail-link {
        position: absolute;
        bottom: 60px;
        left: 50%;
        transform: translate(-50%, 0);
        width: calc(100% - 32px);
        text-align: center;
        padding: 18px 0;
    }
}