body {
    min-height: 100vh;
    /* على الأقل قد الشاشة */
    background: linear-gradient(224deg, #a513d5d9, #fd67cfc7, #6687ff);
    display: flex;
    margin: 0;
    flex-direction: column;
}

.logo img {
    width: 60px;
    height: 40px;
    padding: 14px;
    transition: transform 0.5s ease-in-out, box-shadow 0.7s ease-in-out;
}

p {
    text-align: center;
    padding: 5px;
}

#cart-count {
    background: red;
    color: white;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 12px;
    vertical-align: super;
    margin-right: 5px;
    text-decoration: none;

}

#cart-count a {
    font-size: 20px;
    text-decoration: none;
}

i.fa.fa-shopping-cart {
    color: #2575fc;
    text-decoration: none;
    font-size: 20px;

}



.hamburger {
    display: none;
}

.form-section {
    display: flex;
    margin: 15px auto;
    text-align: center;
    justify-content: center;
}

#up-form {
    display: grid;
    text-align: start;
    padding: 10px;
}

.navbar {
    text-align: center;
    display: flex;
    align-items: center;
    background: #ffffff;
    box-shadow: 0px 5px 22px;
    align-content: stretch;
    justify-content: space-between;
    z-index: 1;
    height: 60px;
    width: 100%;
    margin: 0 auto;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;

    /* padding: 1px 9px; */
    transition: transform 0.5s ease-in-out;
}

.navbar a {
    text-decoration: none;
}

#up-btn {
    background: #2575fc;
    color: white;
    border: none;
    margin-top: 15px;
    /* padding: 305px 0px; */
    height: 37px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

#up-btn:hover {
    background: #6a11cb;
}

.links a:hover::after {
    transform: scaleX(1);
}

.navbar img {
    width: 60px;
    height: 40px;
    padding: 14px;
    transition: transform 0.5s ease-in-out, box-shadow 0.7s ease-in-out;

}

.navbar img:hover {
    transform: scale(1.1);
}


.login-box {
    box-shadow: 0px 0px 10px black;
    width: 100%;
    height: 50px;
    background-color: white;
    padding: 0px 17px;
    border-radius: 15px;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 26px;
}

.login-box h2 {
    color: white;
    padding: 0px 5px;
    text-align: center;
    color: #2575fc;
    font-size: 20px;
    /* height: 18px; */
    right: 10px;
    display: flex;
    position: relative;
    justify-content: center;
}

.form-container {
    background: #ffffff14;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0px 4px 18px 6px rgb(0 0 0 / 90%);
    width: 350px;
}

.form-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

form label {
    display: block;
    margin: 10px 0 5px;
}

form input {
    padding: 10px;
    /* margin-bottom: 15px; */
    border-radius: 6px;
    height: 15px;
    border: 1px solid #ccc;
    outline: none;
    transition: border 0.3s;
}

form input:focus {
    border-color: #2575fc;
}

#myButton,
#sign-btn {
    /* padding: 14px; */
    background: #2575fc;
    color: white;
    border: none;
    height: 37px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

#sign-btn:hover {
    background: #6a11cb;
}

#myButton:hover {
    background: #6a11cb;
}

.cart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    text-align: center;
}

p {
    text-align: center;
}

.item {
    display: flex;
    justify-content: center;
    padding: 12px;
    text-align: center;
    margin-bottom: 10px;
    border: 1px solid rgb(204, 204, 204);
    border-radius: 8px;
    background: rgb(255, 255, 255);
    flex-direction: column;
    align-content: center;
    align-items: center;
}

.shopitems {
    flex: 1;
    text-align: center;
}

div#cartItems {
    display: grid;
    padding: 0 10px;
    grid-template-columns: repeat(6, 1fr);
    height: 15rem;
    /* gap: 12px; */
    /* max-width: fit-content; */
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    justify-items: center;
}

.container {
    display: grid;
    flex-direction: column;
    /* align-content: center; */
    /* justify-content: center; */
    justify-items: center;
    gap: 10px;
}

h3 {
    text-align: center;
    padding: 10px;
    margin: 8px auto;
    text-align: center;
    width: fit-content;
    background: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}


button#checkout {
    background-color: #009b20;
    font-weight: bold;
    font-size: 18px;
    border-radius: 5px;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 5px 3px 13px 2px black;
}

button#checkout:hover {
    background-color: #11e923;
}

button#clear-cart {
    background-color: rgb(238, 34, 34);
    font-weight: bold;
    font-size: 18px;
    border-radius: 5px;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 5px 3px 13px 2px black;
}

button#clear-cart:hover {
    background-color: rgb(250, 62, 62);
}



.buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding: 0 8px;

}

#msgBox {
    visibility: hidden;
    min-width: 250px;
    background: #333;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 12px;
    position: fixed;
    z-index: 999;
    left: 50%;
    transform: translateX(-50%);
    bottom: 30px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.5s, bottom 0.5s;
}

#msgBox.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}

#home {
    /* padding: 14px; */
    background: #2575fc;
    color: white;
    border: none;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

#home:hover {
    background: #6a11cb;
}

footer {
    background-color: #ffffff;
    font-weight: bold;
    /* border-top-left-radius: 24px; */
    /* font-size: 20px; */
    width: 100%;
    bottom: 0;
    color: #000000;
    margin-top: auto;
    /* يخلي الفوتر ينزل تحت */
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

footer p {
    padding: 0px;
}

.btns {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px auto;
    position: relative;
    z-index: 5;
    align-items: center;
    flex-direction: column;
    /* يخليها فوق أي طبقة زي overlay */
}


@media (max-width: 768px) {
    div#cartItems {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        height: 100%;
        gap: 10px;
    }
#go-index {
            position: relative;
        left: 45px;
}
    .btns {
        display: flex;
        justify-content: center;
        /* توسيط الأزرار */
        gap: 15px;
        /* مسافة بين الأزرار */
        margin: 20px auto;
        /* مسافة من فوق وتحت */
        position: relative;
        z-index: 5;
        /* يخليها فوق أي طبقة زي overlay */
    }

    .shopitems {
        height: 100;
        gap: 5px;
        display: grid;
        justify-items: center;
        align-items: center;
        justify-content: center;
    }

    footer p {
        font-size: 15px;
        /* text-align: center; */
        margin: 10px;
    }

    .item {
        display: flex;
        justify-content: center;
        padding: 12px;
        /* text-align: center; */
        margin-bottom: 10px;
        max-width: 100%;
        border: 1px solid rgb(204, 204, 204);
        border-radius: 8px;
        background: rgb(255, 255, 255);
        flex-direction: column;
        align-content: center;
        align-items: center;
    }
}

@media (max-width: 567px) {
    div#cartItems {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        height: 100%;
        gap: 10px;
    }
        #go-index {
           position: relative;
             left: 45px;
               }
    .btns {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin: 20px auto;
        position: relative;
        z-index: 5;
        flex-direction: column;
        align-items: center;
        /* يخليها فوق أي طبقة زي overlay */
    }

    .item {
        display: flex;
        justify-content: center;
        padding: 12px;
        /* text-align: center; */
        margin-bottom: 10px;
        max-width: 100%;
        border: 1px solid rgb(204, 204, 204);
        border-radius: 8px;
        background: rgb(255, 255, 255);
        flex-direction: column;
        align-content: center;
        align-items: center;
    }

    .shopitems {
        height: 100;
        gap: 5px;
        display: grid;
        justify-items: center;
        align-items: center;
        justify-content: center;
    }

    footer p {
        font-size: 15px;
        /* text-align: center; */
        margin: 10px;
    }

}