:root{
    /* black */
    --black-50: #fcfcfc;
    --black-100: #f2f2f2;
    --black-200: #e2e2e2;
    --black-300: #cccccc;
    --black-400: #afafaf;
    --black-500: #8c8c8c;
    --black-600: #636363;
    --black-700: #333333;
    --black-800: #252525;
    --black-900: #1c1c1c;
    --black-950: #1a1a1a;

    /*matte*/
    --matte-50: #fffefe;
    --matte-100: #fdfdfb;
    --matte-200: #fbfaf7;
    --matte-300: #f8f5f1;
    --matte-400: #f3f0e9;
    --matte-500: #eee9df;
    --matte-600: #e8e1d3;
    --matte-700: #e2d8c6;
    --matte-800: #8f784a;
    --matte-900: #3d331f;
    --matte-950: #221c11;

    /*sky*/
    --sky-50: #fefeff;
    --sky-100: #fafcfd;
    --sky-200: #f4f8fb;
    --sky-300: #ecf2f8;
    --sky-400: #e2ebf4;
    --sky-500: #d5e3f0;
    --sky-600: #c6d9ea;
    --sky-700: #b4cde4;
    --sky-800: #386a9a;
    --sky-900: #182e43;
    --sky-950: #0e1a25;

    /*purple*/
    --purple-50: #fefdfe;
    --purple-100: #faf9fc;
    --purple-200: #f3f1f7;
    --purple-300: #e9e7f1;
    --purple-400: #ddd9e9;
    --purple-500: #cec8e0;
    --purple-600: #bcb4d5;
    --purple-700: #a89dc8;
    --purple-800: #504378;
    --purple-900: #251f36;
    --purple-950: #161221;

    /*accent*/
    --accent-50: #fafdff;
    --accent-100: #edf6ff;
    --accent-200: #d6ebfe;
    --accent-300: #b6dbfd;
    --accent-400: #8cc6fc;
    --accent-500: #5aadfb;
    --accent-600: #1e8ff9;
    --accent-700: #056ccc;
    --accent-800: #033f76;
    --accent-900: #022343;
    --accent-950: #011a32;

    --white: #FCFCFC;

}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Gotham', sans-serif;
    font-size: 16px;
    color: var(--black-700);
}
body{
    background-color: var(--white);
}
h1{
    font-size: 2.25rem;
}
main > .container > h1{
    margin: 48px 0;
}
h2{
    font-size: 1.7rem;
}
h3{
    font-size: 1.4rem;
}
h4{
    font-size: 1.2rem;
}
h1,h2{
    line-height: 125%;
    font-weight: 500;
}
h2 span, h3 span, h4 span, h5 span, h6 span, p span{
    font-size: inherit;
}
h3,h4,h5,h6{
    line-height: 150%;
    font-weight: 400;
}
img{
    max-width: 100%;
    display: block;
}
header{
    width: 100%;
    background-color: var(--white);
}
header .container{
    display: flex;
    justify-content: space-between;
}
header .container, footer .container{
    padding: 14px;
}
#luns-image{
    max-width: 65px !important;
}
.leaflet-bottom.leaflet-right{
    display: none;
}
.language-selector{
    display: grid;
    grid-template-columns: 50px 22px;
    align-items: center;
    gap: 4px;
}
.language-selector p{
    text-transform: uppercase;
    text-align: right;
}
.header-controllers{
    display: flex;
    align-items: center;
    gap: 24px;
}
.header-controllers .link-wa{
    transition: .15s ease-in-out;
    opacity: 1;
}
.header-controllers .link-wa:hover{
    opacity: .8;
}
.image-button{
    background: transparent;
    border: 0;
    padding-block: 0;
    padding-inline: 0;
    appearance: none;
    cursor: pointer;
    transition: opacity .3s ease-in-out;
}
.image-button:hover{
    opacity: 0.8;
}
.burger-line-container{
    display: flex;
    width: 24px;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    cursor: pointer;
}
.burger-line-container:hover *{
    width: 100%;
}
.burger-line{
    background-color: var(--black-700);
    height: 2px;
    border-radius: 1px;
    width: 100%;
    transition: width .3s ease-in-out;
}
.w-60{
    width: 60%;
}
.w-80{
    width: 80%;
}

.item-control{
    position: relative;
}
.product_image{
    width: 96px;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    object-fit: cover;
    object-position: bottom;
}
.cart-item-delete, .cart-item-reduce, .cart-item-add{
    position: absolute;
    bottom: 5px;
    border: 0;
    border-radius: 50%;
    background-color: var(--black-700);
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: background-color .1s ease-in-out;
}
.cart-item-delete:hover, .cart-item-reduce:hover, .cart-item-add:hover{
    background-color: var(--black-900);
}
.cart-item-delete:disabled, .cart-item-reduce:disabled, .cart-item-add:disabled{
    opacity: .5;
    cursor: not-allowed;
}
.cart-item-delete, .cart-item-reduce{
    left: 2px;
}
.cart-item-add{
    right: 2px;
}
.cart{
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-x: scroll;
    padding-bottom: 16px;
}
.cart-item{
    display: grid;
    grid-template-columns: 96px minmax(256px, 1fr);
    grid-template-rows: 96px;
    align-items: center;
    gap: 8px;
}
.container{
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px;
    position: relative;
}
.bg-black{
    background-color: var(--black-700);
}
.bg-black *, .bg-black-50 *{
    color: var(--matte-700);
}
.bg-black-50 {
    background-color: rgba(33,33,33,.5);
}
.uppercase{
    text-transform: uppercase;
}

/*
Controls
*/

.main-button{
    display: inline-block;
    text-decoration: none;
    color: var(--matte-700);
    background-color: var(--black-700);
    border-radius: 8px;
    padding: 10px 16px;
    transition: background-color .3s ease-in-out;
    cursor: pointer;
    user-select: none;
    border:0;
    font-weight: 500;
}
.main-button:hover{
    background-color: var(--black-500);
}
.main-button:disabled{
    opacity: .5;
    cursor: not-allowed;
}

.main-button.light{
    background-color: var(--matte-700);
    color: var(--black-700);
}
.main-button.light:hover{
    background-color: var(--matte-500);
}

.with-icon{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.blue-button{
    background-color: var(--sky-700);
    color: var(--black-700);
}
.blue-button:hover{
    background-color: var(--sky-500);
}

/*
Product section design
*/
.product-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 8px;
}
.product-card{
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 8px;
    overflow: hidden;
}
.product-card h4{
    font-weight: 500;
    cursor: pointer;
}
.product-card h4:hover{
    text-decoration: underline;
}
.product-card__img{
    width: 100%;
    aspect-ratio: 10 / 11;
    object-fit: cover;
    border-radius: 12px;
    object-position: bottom;
    cursor: pointer;
}
.item-controls{
    display: flex;
    gap: 4px;
    flex-direction: column;
}
.item-control-quan{
    display: grid;
    grid-template-columns: 50px auto 50px;
    align-items: center;
}
.item-previous-price{
    color: red;
    opacity: .5;
    text-decoration: line-through;
    font-size: .9rem;
}
.shop-item-quantity{
    width: 100%;
    text-align: center;
}
.card-main-button, .add-to-cart{
    padding: 12px 8px;
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: var(--black-700);
    border: 0;
    border-radius: 3px;
    width: 100%;
    text-decoration: none;
    transition: background-color .3s ease-in-out;
}

.card-main-button{
    background-color: var(--matte-600);
}
.add-to-cart{
    background-color: var(--black-200);
}
.card-main-button:hover{
    background-color: var(--matte-700);
}
.add-to-cart:hover{
    background-color: var(--black-300);
}

.item-controls > div{
    position: relative;
}

.shop-item-delete, .shop-item-reduce, .shop-item-add, .popup-item-delete,.popup-item-add, .popup-item-reduce{
    border:0;
    border-radius: 3px;
    cursor: pointer;
    background-color: var(--black-700);
    transition: background-color .1s ease-in-out;
    padding-top: 6px;
    padding-bottom: 6px;
    display: grid;
    justify-items: center;
    align-items: center;
    height: 43px;
}
.shop-item-delete:hover, .shop-item-reduce:hover, .shop-item-add:hover{
    background-color: var(--black-900);
}

@media screen and (max-width: 500px) {
    .product-list{
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
}

/*
Hero styles
*/

.hero-slide{
    aspect-ratio: 16 / 9;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
}
.hero-slider img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-slide_black{
    background-color: var(--black-700);
}
.hero-slide_purple{
    background-color: var(--purple-700);
}
.hero-slide_sky{
    background-color: var(--sky-700);
}
.hero-slide_accent{
    background-color: var(--accent-700);
}
.hero-slider{
    overflow: visible !important;
}
.swiper-pagination-bullet-active{
    background-color: var(--black-600) !important;
}

/*
Cakes catalog styles
*/
.cakes-catalog-container, .cafe-location-container{
    border-radius: 24px;
    overflow: hidden;
    margin-top: 48px;
    margin-bottom: 48px;
}
.cakes-catalog-container{
    padding: 24px;
    width: calc(100% - 28px);
}
.full-width{
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
}
.cakes-catalog{
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.cakes-catalog h1{
    margin-bottom: 32px;
}
.cakes-catalog p{
    margin-top: 32px;
    margin-bottom: 12px;
    max-width: 35ch;
}
.cakes-cover{
    position: relative;
}
#cake-cover-1{
    position: absolute;
    left: 0;
    top: 0;
    right: calc(213 / 362 * 1%);
    height: calc(225 / 360 * 1%);
}
.cakes-cover:not(.mobile){
    display: none;
}


.cakes-catalog *:first-child{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.cakes-catalog p{
    margin-top: 0;
    margin-bottom: 32px;
}
.cakes-catalog h1{
    margin-bottom: 12px;
    text-align:center;
}
.cakes-cover img{
    width: 100%;
}
.cakes-cover.mobile{
    display: none;
}
@media screen and (max-width: 500px) {
    .cakes-catalog{
        min-height: 200px;
    }

}

/*
Cart styles
*/
#cart-empty{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 50svh;
    gap: 24px;
}
.cakes-slider{
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: -1;
}
.cakes-slider img{
    object-fit: cover;
    object-position: center;
}
/*
popup item cards
*/

.item-popup{
    display: block;
    visibility: hidden;
    position: fixed;
    z-index: 100;
    bottom: 0;
    left: 0;
    right: auto;
    top: 0;
    width: 500px;
    max-width: 100vw;
    height: 100vh;
    /* max-height: 80svh; */
    max-height: 100vh;
    align-items: center;
    border: 0;
    padding: 14px;
    border-top-right-radius: 24px;
    border-bottom-right-radius: 24px;
    outline: none;
    transition: transform .3s ease-in-out;
    transform: translateX(-100%) scale(.8);
}
.item-popup[open]{
    transform: translateX(0) scale(1);
    visibility: visible;
}

.item-popup::backdrop{
    background-color: rgba(0, 0, 0, 0.3);
    cursor: pointer;
}
.item-popup .swiper-pagination, .cafe-slider .swiper-pagination{
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: center;
    align-items: center;
    justify-items: center;
    gap: 8px;
    padding: 0 8px;
}
.item-popup .swiper-pagination-bullet, .cafe-slider .swiper-pagination-bullet{
    width: 100% !important;
    border-radius: 4px !important;
    margin: 0 !important;
}

.item-popup .container{
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
    padding:0;
}
.item-popup-image{
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: bottom;
}
.item-popup-info h2{
    font-weight: 500;
    margin-bottom: 8px;
}
.item-popup-info h4{
    margin-bottom: 16px;
}
.item-popup-controller{
    margin: 24px 0;
}

.item-popup-controller .item-controls{
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.slider{
    overflow: hidden;
    border-radius: 10px;
    position: relative;
}

dialog *:focus-visible{
    outline: none;
}
dialog::backdrop{
    cursor: pointer;
}
@media screen and (max-width: 768px) {
    .item-popup{
        position: fixed;
        z-index: 100;
        bottom: 0;
        left: 0;
        right: 0;
        top:auto;
        width: 100vw;
        max-width: 100vw;
        max-height: 80svh;
        align-items: center;
        border: 0;
        padding: 14px;
        border-radius: 24px 24px 0 0;
        outline: none;
        transform: translateX(0) translateY(100%) scale(.5);
    }
    .item-popup[open]{
        transform: translateX(0) translateY(0) scale(1);
    }
    .item-popup .container{
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/*
Visit our cafe styles
*/
.cafe-location-container{
    position: relative;
    margin-top: 48px;
    padding: 0;
    width: calc(100% - 28px);
}
.cafe-location{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 9px;
    padding: 150px 14px;
    width:100%;
    position: relative;
    z-index: 2;
    box-shadow: 0px 0px 10px 0px rgba(51, 51, 51, 0.10);
}
.cafe-location *{
    color: var(--matte-700);
}
.cafe-location p{
    text-align: center;
}
.cafe-buttons-container{
    margin-top: 12px;
}
.video-bg{
    position: absolute;
    width: 100%;
    height: 100%;
    top:0;
    left:0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    overflow: hidden;
}
.video-bg video{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-bg::after{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(51, 51, 51, 0.60) 0%, rgba(51, 51, 51, 0.60) 100%);
    content: '';
}
/*
Form, input styles
 */
.order-container{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
@media screen and (max-width: 850px) {
    .order-container{
        display: flex;
        flex-direction: column;
    }
    .order-form{
        justify-self: center;
    }
}
.order-form{
    max-width: 500px;
    width: 100%;
}
.order-form h2{
    margin-bottom: 16px;
    /*margin-top: 24px;*/
}
input[type="text"], input[type="email"], input[type="date"], input[type="tel"], .text-field select{
    line-height: 25px;
    font-weight: 500;
    color: var(--black-700);
    border:0;
    border-radius: 0;
    border-bottom: 2px solid var(--black-200);
    transition: all .3s ease-in-out;
    outline: none;
    background-color: transparent;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    padding: 0;
}
input[type="text"]:disabled, input[type="date"]:disabled, input[type="email"]:disabled, input[type="tel"]:disabled{
    color: var(--black-600);
    cursor: not-allowed;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="date"]:focus, input[type="tel"]:focus{
    border-color: var(--black-500);
}
input[type="date"]{
    margin-bottom: 8px;
}
input::-webkit-date-and-time-value {
    text-align: left;
}
.text-field{
    display: flex;
    flex-direction: column;
    gap:0;
    font-size: .9rem;
    font-weight: 500;
    color: var(--black-600);
    margin-bottom: 12px;
}
.name{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.iti input[type="tel"]{
    width: 100%;
}
@media screen and (max-width:500px) {
    .name{
        grid-template-columns: 1fr;
        gap:0;
        margin-bottom:0;
    }
}

.toggle{
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 8px;
    border: 2px solid var(--sky-500);
    margin-bottom: 12px;
}
.toggle input{
    display: none;
}
.toggle label{
    display: block;
    text-align: center;
    padding: 7px;
    border-radius: 4px;
    cursor: pointer;
    transition: all .1s ease-in-out;
}

.toggle label:has(input[type="radio"]:checked){
    background-color: var(--sky-500);
}

.order-form h3{
    font-size: 1rem;
    font-weight: 500;
    line-height: 120%; /* 12px */
    margin-bottom: 4px;
}

.slot-container{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
.slot-picker{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    background: transparent;
    border: 2px solid var(--sky-500);
    padding: 6px;
    transition: all .2s ease-in-out;
    cursor: pointer;
}
.slot-picker input[type="radio"]{
    display: none;
}
.slot-picker:has(+ input:disabled){
    opacity: .5;
    cursor: not-allowed;
}
.slot-picker span{
    text-align: center;
}
.slot-picker span:not(:first-child){
    font-size: 10px;
}
.slot-picker:hover{
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}
.slot-picker:has(input[type="radio"]:checked){
    background-color: var(--sky-500);
}
.text-field textarea{
    border:0;
    border-bottom: 2px solid var(--black-200);
    background: transparent;
    transition: height .2s ease-in-out;
    outline: none;
    resize: none;
}
.payment-information{
    display: flex;
    flex-direction: column;
}
.payment-information *{
    display: block;
}
.payment-information label{
    border-bottom: 2px solid var(--black-200);
    display: flex;
    gap: 8px;
    line-height: 22px;
    margin-bottom: 12px;
}

#pickup-timings{
    padding: 24px;
    background-color: var(--black-100);
    border-radius: 10px;
    margin-bottom: 24px;
}
#pickup-timings h3:not(:first-child){
    margin-top: 12px;
}

/*
Mobile nav style
*/

.mobile-menu{
    display: none;
}
@media screen and (max-width: 500px) {
    html{
        padding-bottom: 100px;
    }
    .mobile-menu{
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        background-color: var(--sky-400);
        right: 0;
        z-index: 100;
        padding-bottom: 8px;
        padding-top: 8px;
    }
    .mobile-menu ul{
        width: 100%;
        display: flex;
        justify-content: space-evenly;
        gap: 18px;
        list-style: none;
    }

    .mobile-menu ul li a{
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
    }
    .mobile-menu ul li a img{
        width: 24px;
        aspect-ratio: 1/1;
        object-fit: contain;
    }
}

/*
Menu styles
*/

#menu{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    position: fixed;
    right: 0;
    bottom: 0;
    top: 0;
    left: auto;
    background: var(--white);
    height: 100vh;
    max-height: unset;
    width: 100%;
    max-width: 400px;
    z-index: 115;
    border:0;
    padding: 24px;
    visibility: hidden;
    transform: translateX(100%);
    transition: all .5s ease-in-out;
    box-shadow: -10px 0 20px 10px rgba(33, 33, 33, .2);
}
#menu[open]{
    visibility: visible;
    transform: translateX(0);
}
#menu::backdrop {
    background-color: rgba(33, 33, 33, 0.5);
}
#menu > img{
    margin-left: 1px;
    max-width: 250px;
}
#menu nav{
    display: flex;
    flex-direction: column;
    gap: 12px;
}
#menu nav a{
    text-decoration: none;
    color: var(--black-600);
    transition: 0.3s;
    font-size: 1.25rem;
}
#menu nav a:hover{
    text-decoration: underline;
    color: var(--black-700);
}
.social-icons{
    display: flex;
    gap:12px;
    margin-top: 12px;
}
.social-icons img{
    width: 36px;
}
.contacts-list{
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid var(--black-300);
    padding-top: 8px;
}
.contacts-list a{
    text-decoration: none;
}
.contacts-list a:hover{
    text-decoration: underline;
}
#closeMenu{
    position: absolute;
    left: 24px;
    top: 24px;
    width: 24px;
    opacity: .5;
    cursor: pointer;
    transition: 0.3s;
}
#closeMenu:hover{
    opacity: 1;
}

/*
Location styles
 */

#location-info{
    display: flex;
    flex-direction: column;
    visibility: hidden;
    transform: translateY(100%);
    overflow-x: auto;
    border:0;
    position: fixed;
    top:auto;
    left:0;
    right:0;
    bottom:0;
    max-height: 90vh;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    width:100%;
    max-width: 100%;
    padding: 16px;
    background-color: var(--matte-700);
    transition: .5s ease-in-out;
    z-index: 10;
}
#location-info::backdrop{
    background-color: rgba(33, 33, 33, .4);
}
#location-info[open]{
    visibility: visible;
    transform: translateY(0);
}
.geo-icons-list{
    display: flex;
    gap: 12px;
}
.geo-icons-list a{
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    max-width: 64px;
    transition: .2s ease-in-out;
}
.geo-icons-list a:hover{
    transform: translateY(-4px);
}
#location-info > div{
    max-width: 900px;
    width: 100%;
    margin-inline: auto;
}
.cafe-slider img{
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
}
.cafe-slider{
    margin-bottom: 36px;
    overflow: hidden;
    border-radius: 4px;
    position: relative;
    margin-top: 48px;
}
.location-links{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
}

#order-success-picture{
    max-width: 400px;
    width: 100%;
    margin-bottom: 24px;
    margin-top: 48px;
}

/*
Переключение языков
*/
.language-selector{
    position: relative;
    cursor: pointer;
}
.language-selector:hover > .lang-selector{
    visibility: visible;
    opacity: 1;
}
.lang-selector{
    opacity: .5;
    visibility: hidden;
    padding: 12px;
    border-radius: 6px;
    background-color: var(--matte-50);
    position: absolute;
    right: 0;
    top: 100%;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap:8px;
    transition: opacity .2s ease-in-out;
}
.lang-selector a{
    text-decoration: none;
    text-transform: uppercase;
}
.lang-selector a:hover{
    text-decoration: underline;
}