@import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,519;1,519&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Exo 2", sans-serif;
    font-optical-sizing: auto;
    font-weight: 519;
    font-style: normal;
}

body, html {
    height: 100%;
}

section, article, aside, footer, header, nav {
  display: block;
}

.wrapper {
    display: flex;
    height: 100vh;
}

.left {
    flex: 3;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #ccc;
}

header {
    margin:0 20px 0 20px;
    padding: 10px 20px 0;
    border-bottom: 3px solid #111;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.categories, .search {
    display: flex;
    gap: 15px;
    margin-bottom: 1px;
}

.categories li, .search li {
    list-style: none;
    padding: 8px 12px;
    background:#ccc;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.search li{
    background:none;
}

.categories li.active {
    background: #111;
    border-radius: 5px 5px 0 0;
    color: #fff;
    overflow-y: hidden;
    padding:8px 12px 10px 12px;
    position:relative;
    top:1px;
}

.products {
    flex: 1;
    padding: 20px;
    background: #fafafa;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 11px;
    overflow-y: auto;
    
}

.product {
    background: #fff;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height:140px;
    text-align: left;
    cursor:pointer;
    white-space: nowrap;
}

aside.order-summary {
    flex: 1;
    background: #fff;
    padding: 20px;
    width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 92vh;
    position: sticky;
    top: 0;
}

.order-summary li{
    cursor:pointer;
}

.order-items li {
    list-style: none;
    margin-bottom: 2px;
    width:20vw;
}

.order-items li {
    justify-content: center;
    text-align: center;
    
}
.order-items{
    overflow-y: scroll;
}

.totals {
    margin-bottom: 20px;
}

#payby{
    display:flex;
    flex-direction: row;
    gap:4px;
}

#payby .pay-btn{
    max-width:auto;
    flex-wrap: wrap;
}

.charge-btn-cash {
    background: #000;
    color: #fff;
    padding: 15px;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
}

.charge-btn-card{
    background:black;
    color: #fff;
    padding: 15px;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
}

.charge-btn-nfc{
    background:black;
    color: #fff;
    padding: 15px;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
}

.product p{
    position: relative;
    top:70%;
    left:0;
}

.product {
    transition: opacity 0.3s ease;
    color:black;
}



.product[style*="display: none"] {
    opacity: 0;
}

aside ol{
    display:flex;
    flex-direction: row-reverse;
    gap:10px;
}

aside a{
    list-style: none;
}

.products{
    height:60vh;
}



#footer{
    position:fixed;
    bottom:0;
    left:0;
    background: #fff;
    width:100%;
    height:8vh;
    border-top:1px solid #333;
}

#footer a{
    text-decoration: none;
    color:black;
}

#footer ol{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 5px 20vw 0 20vw;
    list-style: none;
    text-align: center;
}

#searchWrapper{
    position:relative;
    top:10px;
    left:0;
}

#profileAc{
    float:left;
    position:relative;
    top:10px;
    left:15px;
    width:30px;
    height:30px;
    cursor:pointer;
}

#profileAcmini{
    float:left;
    position:relative;
    top:0px;
    left:0px;
    width:20px;
    height:20px;
}

#accmenu li{
    list-style: none;
    border:1px solid #444;
    border-radius:4px;
    width:100%;
    height:30px;
    cursor:pointer;
    transition: .1s ease-in;
    text-align:center;
	font-size:12px;
}

#accmenu li:hover{
    background: #333;
    color:white;
    transform: translateX(10px);
}

#accmenu{
    background: #fafafa;
    width:200px;
    height:240px;
    position:relative;
    top:-270px;
    left:50px;
    padding:20px;
    border-radius:14px;
    box-shadow: 0px 0px 8px 3px rgba(145, 148, 154, 1);
}


#payingInterface{
    display:none;
    position:fixed;
    top:20vh;
    left:20vw;
    min-width:60vw;
    min-height:60vh;
    background:#fff;
    border-radius:18px;
    border:1px solid #333;
    box-shadow: -3px 3px 13px 0px rgba(0,0,0,0.75);
    justify-content: center;
    align-items: center;
}

.confirmation{
    display:none;
}


.InPayBtn{
    background: #222;
    color:white;
    padding:8px;
    border-radius:8px;
    margin:20px;
    position:relative;
    top:10px;
    left:43%;
}

.amount{
    position: relative;
    top:20px;
    left:43%;
}





/* -------------------- RESPONSYWNOŚĆ -------------------- */

/* Tablety (max-width: 1024px) */
@media (max-width: 1024px) {
    .wrapper {
        flex-direction: column;
    }

    .left {
        flex: none;
        border-right: none;
    }

    aside.order-summary {
        position: relative;
        width: 100%;
        height: auto;
        border-left: none;
        border-top: 3px solid #111;
        top: 0;
    }

    header {
        margin: 0;
        padding: 10px;
    }

    .products {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        padding: 10px;
    }

    .product {
        height: 120px;
        padding: 8px;
    }

    footer ol {
        margin: 5px 10vw 0 10vw;
    }
    aside hr{
        display:none;
    }
    .charge-btn-cash, .charge-btn-card, .charge-btn-nfc {
        padding: 12px;
        font-size: 14px;
        margin-bottom:50px;
    }
}


/* Telefony (max-width: 600px) */
@media (max-width: 600px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .categories, .search {
        flex-wrap: wrap;
        flex-direction: column;
        
    }

    .categories{
        width:100%;
        height:15vh;
    }

    .search{
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: center;
        margin:0 30vw 0 30vw;
    }

    .products {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
        padding: 8px;
    }

    .product {
        height: 100px;
        font-size: 12px;
        flex-wrap: nowrap;
        flex-direction: column;
    }

    .product p {
        top: 60%;
    }

    aside.order-summary {
        padding: 10px;
    }

    aside hr{
        display:none;
    }

    .charge-btn-cash {
        padding: 12px;
        font-size: 14px;
        margin-bottom:50px;
    }

    footer ol {
        margin: 5px 5vw 0 5vw;
    }

    footer li p {
        font-size: 12px;
    }

    .categories li.active {
        border-radius: 5px 5px 5px 5px;
        
    }
}