*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}



body{
    background-image: url("images/bg3.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: black;
    font-family: 'Comfortaa', sans-serif;
    font-weight: 300;
}

/* HEADER */


.sidebar{
    position:fixed;

    top:0;
    left:-280px;

    width:280px;
    height:100vh;

    background:#1c2c34;

    z-index:2000;

    transition:.3s;
    

    padding:24px;
    overflow-y:auto;

    -webkit-overflow-scrolling:touch;
     box-sizing:border-box;
     overflow-y:auto;
     font-size: 13px;
}

.sidebar.active{
    
    left:0;
}

.sidebar a{
    display:block;

    color:white;

    text-decoration:none;

    font-size:20px;
    
    padding:14px 0;
}

.sidebar-header{
    display:flex;
    color: #ffffff;

    justify-content:space-between;

    align-items:center;

    font-size: 16px;

    margin-bottom:24px;
}

.sidebar-overlay{
    position:fixed;

    inset:0;

    background:rgba(0,0,0,.5);

    opacity:0;

    visibility:hidden;

    transition:.3s;

    z-index:1999;
}

.sidebar-overlay.active{
    opacity:1;
    visibility:visible;
}

.logo {
    width: 390px;
    height: auto;
    display: block;
    margin: 0 auto;
    padding-right: 50px;
    padding-top: 10px;

}

.hero{
    margin:0 auto;
    padding-top: 10px;
    
    background-color: #414f56;
}



.hero-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}


.hero h1{
    font-size:64px;
    font-weight:700;
    margin-bottom:8px;
}

.hero p{
    color:#8f8f8f;
    font-size:16px;
}

/* STICKY MENU */

.categories-outer{
    position:sticky;
    top:0;
    z-index:100;

    background:#414f56;

    border-bottom:1px solid #1f1f1f;
}

.categories-inner{
    max-width:720px;
    margin:0 auto;

    display:flex;
    align-items:center;
}

.menu-btn{
    flex-shrink:0;

    background:none;
    border:none;

    color:white;

    font-size:28px;

    cursor:pointer;

    margin-left:20px;
    margin-right:20px;
}

.categories{
    max-width:720px;


    display:flex;

    gap:26px;

    overflow-x:auto;
    overflow-y:hidden;

    white-space:nowrap;

    padding-right:20px;
    padding-top:20px;
    padding-bottom:15px;

    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
}


.categories::-webkit-scrollbar{
    display:none;
}

.categories a{
    flex:0 0 auto;

    color:#7e7e7e;

    text-decoration:none;

    font-size:20px;

    font-weight:700;

    white-space:nowrap;

    transition:.2s;

    position:relative;

    padding-bottom:12px;
}



.categories a.active{
    color:white;
}

.categories a.active::after{
    content:"";

    position:absolute;

    left:0;

    bottom:0;

    width:100%;

    height:3px;

    background:white;

    border-radius:20px;
}

/* CONTENT */

.content{
    padding-bottom:40px;
}

.section{
    margin-top:34px;
    scroll-margin-top:90px;
}

.section h2{
    
    padding-left:24px;

    max-width:720px;

    margin:0 auto 20px;
    color: white;
    font-size: 24px;
    margin-top: 30px;
}

/* MENU GRID */

.menu{
    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:16px;

    max-width:720px;

    margin:0 auto;

    padding:0 20px;
}

/* CARD */

.card{
    background:#414f56;

    border-radius:30px;
    border: 1px solid rgba(0, 0, 0, 0.4);
    
    box-shadow: 0 4px 20px rgba(0,0,0,.08);

    overflow:hidden;
    
}

.card img{
    width:100%;

    aspect-ratio:1/1;

    object-fit:cover;

    display:block;
}

.card-content{
    padding:14px;
}

.card-content h3{
    font-size:17px;
    color: aliceblue;

    line-height:1.3;

    margin-bottom:8px;
}

.card-content p{
    color:#9f9f9f;

    font-size:14px;

    line-height:1.4;

    margin-bottom:12px;
}

.price{
    font-size:18px;
    color: #ffffff;

    font-weight:700;
}

.modal{
    display:none;

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.8);

    z-index:1000;

    padding:20px;
}

.modal.active{
    display:flex;

    align-items:center;

    justify-content:center;
}

.modal-content{
    width:100%;
    max-width:620px;
    background:#414f56;
    border-radius:24px;
    overflow:hidden;
    position:relative;
}

.modal-gallery{
    display:flex;
    overflow-x:auto;
    gap:12px;

    scroll-snap-type:x mandatory;

    margin-bottom:20px;
    scrollbar-width:none;
    
}

.modal-gallery::-webkit-scrollbar{
    display:none;
}


.modal-gallery img{

    width: 100%;
    height: 100%;
    

    object-fit:cover;

    

    scroll-snap-align:center;
    pointer-events: none;
}

.modal-gallery.dragging{
    
    user-select: none;
}

.modal-gallery-wrapper{
    position:relative;
}

.gallery-arrow{

    position:absolute;

    top:50%;
    transform:translateY(-50%);

    width:42px;
    height:42px;

    border:none;
    border-radius:50%;

    background:rgba(0,0,0,.45);

    color:#fff;

    font-size:24px;

    cursor:pointer;

    z-index:10;

    transition:.2s;
}

.gallery-arrow:hover{
    background:rgba(0,0,0,.7);
}

.gallery-arrow.prev{
    left:12px;
}

.gallery-arrow.next{
    right:12px;
}

.modal-body{
    padding:24px;
}

.modal-body h2{
    font-size:30px;
    margin:0 0 24px;
    color: #ffffff;
}

.modal-meta{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:24px;
}

.modal-weight{
    color:#8a8a8a;
    font-size:18px;
    font-weight:500;
}

.modal-price{
    background:white;
    color:black;
    padding:12px 24px;
    border-radius:12px;
    font-size:22px;
    font-weight:700;
}

.gallery-dots{

    display:flex;

    justify-content:center;

    gap:8px;

    margin:12px 0 6px;
}

.gallery-dots span{

    width:8px;
    height:8px;

    border-radius:50%;

    background:#777;

    transition:.25s;
}

.gallery-dots span.active{

    background:#fff;

    transform:scale(1.3);
}







#modalDescription{
    color:#bdbdbd;
    font-size:16px;
    line-height:1.7;
    margin:0;
}

.close-modal{
    position:absolute;
    top:16px;
    right:16px;
    width:42px;
    height:42px;
    border-radius:50%;
    background:rgba(0,0,0,.45);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
    color:white;
    cursor:pointer;
    z-index:2;
}

#backToTop{
    position:fixed;

    bottom:20px;
    right:20px;

    width:50px;
    height:50px;

    border:none;
    border-radius:50%;
    padding-top: 0.5em;

    background:#414f56;
    color:white;

    font-size:28px;
    cursor:pointer;

    opacity:0;
    visibility:hidden;

    transition:.3s;

    z-index:1000;
}

#backToTop.show{
    opacity:1;
    visibility:visible;
}

#backToTop:hover{
    transform:scale(1.05);
}

#closeSidebar{
    position:absolute;
    top:16px;
    right:16px;

    width:40px;
    height:40px;

    border:none;
    background:none;
    cursor:pointer;
}

#closeSidebar span{
    position:absolute;
    top:50%;
    left:50%;

    width:20px;
    height:2px;

    background:white;
}

#closeSidebar span:first-child{
    transform:translate(-50%,-50%) rotate(45deg);
}

#closeSidebar span:last-child{
    transform:translate(-50%,-50%) rotate(-45deg);
}

/* DESKTOP */
@media (max-width: 380px) {

    .content {
        padding: 0 12px;
    }

    .menu {
        gap: 12px;
    }

    .card h3 {
        font-size: 14px;
    }

    .price {
        font-size: 16px;
    }

    .categories a {
        font-size: 15px;
    }

    .logo {
        width: 230px;
    }
    .sidebar.active{
    padding-bottom: max(80px, env(safe-area-inset-bottom));
    left:0;
}
}

@media (max-width: 450px) {

    .content {
        padding: 0 12px;
    }
    .sidebar.active{
    padding-bottom: max(180px, env(safe-area-inset-bottom));
    left:0;
}

    .menu {
        gap: 12px;
    }

    .card h3 {
        font-size: 14px;
    }

    .modal-body h2 {
    font-size: 20px;
    margin: 0 0 24px;
}

    .price {
        font-size: 16px;
    }

    .categories a {
        font-size: 15px;
    }

    .logo {
        width: 280px;
    }
}

@media (max-width:768px){

    .gallery-arrow{
        display:none;
    }
    body{
    background-image: url("images/bg2.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: black;
    font-family: 'Comfortaa', sans-serif;
    font-weight: 300;
    }
}

@media (min-width:768px){

    .hero h1{
        font-size:56px;
    }




}