* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

li {
    list-style: none;
}

a {
    color: rgb(0, 0, 0);
    text-decoration: none;
}

.navbar {
    min-height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background-color: #dede90;
    border-bottom: solid 1px black;
}

.nav-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    z-index: 2;
}

.nav-branding {
    font-size: 1.2rem;
}

.nav-link {
    transition: 0.7s ease;
}

.nav-link:hover {
    color: rgb(38, 9, 115);
}

.login {
    background-color: #000000;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.login:hover {
    background-color: #ffffff;
    color: black;
}

.login:focus {
    outline: none;
    box-shadow: 0 0 5px #ffffff;
}

.login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    background-color: #000000;
}

main {
    padding-top: 70px;
}

/* Styles for screen sizes up to 768px */
@media screen and (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: #cfcfce;
        width: 100%;
        text-align: center;
        transition: 0.3s;
    }

    .nav-item {
        margin: 16px 0;
    }

    .nav-menu.active {
        left: 0;
    }
}

#search-form {
    padding-top: 5px;
}

#search-input {
    padding: 8px;
    width: 200px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

#search-input:focus {
    outline: none;
}

#search-form button {
    padding: 8px 12px;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

#search-form button:hover {
    background-color: #ffffff;
    color: black;
}

#search-form button:focus {
    outline: none;
}


.product-container{
    margin-top: 70px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;;
}

.product{
    height: 400px;
    width: 300px;
    background-color: rgb(255, 255, 255);
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    border: solid 1px black;
    box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.5);
    margin: 20px;
    text-align: center;
}

.product img{
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    width: 100%;
    height:50%;
    object-fit: cover;
}

#login2{
    margin:10px;
    margin-left: 30px;
    margin-right: 30px;
}
#login3{
    width: 100vh;
}
@media screen and (max-width: 768px){
    .product-container{
        margin-top: 70px;
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: center;
        align-items:center ;
    }
}

.akun{
    display:flex; 
    flex-direction: row;
}

.details{
    display:flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.desk{
    display: flex;
    flex-direction: row;
    margin-left: 15%;
    margin-right: 15%
    
}

.img-desk{
    margin-right: 80px;
}

.product-desk{
    display:flex;
    flex-direction: column;
    
}

.img-desk img{
    height:350px;
}

.exitbutton{
    margin-top: 50px;
    background-color: #000000;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.exitbutton:hover {
    background-color: #ffffff;
    color: black;
}

.exitbutton:focus {
    outline: none;
    box-shadow: 0 0 5px #ffffff;
}

h1{
    margin-left: 15% ;
}

 

@media screen and (max-width: 768px){
    .details{
        display:flex;
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }
   .desk{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: row;
    margin-left: 5px;
    margin-right: 5px;

   }

   .product-desk{
    display:flex;
    flex-direction: column;
    flex-wrap: wrap;
}
#login3{
    width: 400px;
}

.exitbutton{
    width: 400px;
}

}

.cart{
    display: flex;
    flex-direction: column;
    margin-left: 10%;
    margin-right: 10%;
    margin-bottom: 70px;
}

.cart-item{
    margin-top: 15px;
    display: flex;
    flex-direction: row;
    height: auto;
    width: 100%;
    border: 1px solid black;
}


.total{
    height: 60px;
    width: 100%;
    border: 1px solid black;
    position: fixed;
    bottom: 0;
    left: 0;
    background-color: #fff; /* Add your preferred background color */
    z-index: 999;
}

.cart-desk{
    margin-top: 20px;
    margin-left:30px;
}


.delete{
    margin-top: 20px;
    margin-bottom: 20px;
    background-color: #000000;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.delete:hover {
    background-color: #ff0000;
    color: rgb(0, 0, 0);
}

.exitbutton:focus {
    outline: none;
    box-shadow: 0 0 5px #ff0000;
}


@media screen and (max-width: 768px){
    .cart{
        margin-left: 10px;
        margin-right: 10px;
    }

    .cart-item{
        margin-top: 15px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: auto;
        width: 100%;
        border: 1px solid black;
    }
    
}

.total{
    display: flex;
    flex-direction: row;
    justify-content:space-between;
    align-items: center;
}

.checkout{
    margin-right:10%;
}

span{
    margin-left: 10%;
}

.summary-item{
    display: flex;
    flex-direction: row;
}
