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

body {
    background-color: black !important;
}

.navbar {
    display: flex !important;
    background-color: rgb(59, 59, 59) !important;
    justify-content: space-evenly;
    align-items: center;
    padding: 10px 50px !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    opacity: 80% !important;
}

.container-fluid {
    width: 600px !important;
    margin-left: 1000px !important;
    display: flex;
    flex-direction: row !important;
}

.btn {
    border: 2px solid rgb(227, 227, 227) !important;
    width: 120px !important;
    height: 50px;
    text-align: center !important;
    border-radius: 10px !important;
    margin: 10px !important;
    color: rgb(93, 93, 92) !important;
    transition: 2sec ease !important;
    font-size: 21px !important
}

.nav-item a {
    color: rgb(227, 227, 227) !important;
    font-weight: bold !important;
    width: auto !important;
    height: auto !important;
    transition: 2sec ease !important;
}

.hidden {
    display: none !important;
}

.btn:hover {
    background-color: rgb(0, 0, 0) !important;
    border: none !important;
}

.btn:hover a {
    color: white !important;
    font-size: 21px !important;
}

.cart-icon a {
    margin-top: 14px;
    font-size: 30px;
    margin-right: 10px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 15px 0 0px 30px;
}

.logo img {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50px;
}

.logo a {
    font-size: 30px;
    font-weight: 800;
    color: rgb(228, 228, 228) !important;
    text-decoration: none;
    padding: 5px;
}


nav ul#user_info li {
    margin: 0px 10px;
}

.cart-quantity {
    display: inline-block;
    color: #ffffff;
    font-size: 25px;
    margin-top: 25px;
    padding-right: 30px;
}

.logoutbtn {
    margin-left: 10px !important;
}

#user {
    font-size: 22px;
    color: rgb(228, 228, 228) !important;
    margin-top: 14px;
    margin-right: 5px;
}

.cart-icon {
    position: relative;
}

.carts_products {
    position: absolute;
    width: 250px;
    height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translate(-40px, 0);
    background-color: #eaeaea;
    top: 80px;
    border: 1px solid black;
    border-radius: 20px;
    display: none;
}

.carts_products div {
    margin: 20px;
}

.carts_products a {
    display: block;
    width: 100% !important;
    height: 30%;
    padding: 0;
    background-color: rgb(93, 93, 92);
    color: #fff;
    font-size: 19px;
    text-align: center;
    text-decoration: none;
    border-radius: 20px;
    position: relative;
}

.carts_products a:hover {
    letter-spacing: 3px;
}

@media (min-width: 768px) and (max-width: 1770px) {

    .navbar {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center;
        padding: 10px 50px !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 999;
        opacity: 80% !important;
    }

    .container-fluid {
        width: 200px !important;
        margin-left: 400px !important;
        display: flex;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important
    }
}

@media (max-width: 768px) {
    .navbar {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center;
        padding: 10px 50px !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 999;
        opacity: 80% !important;
    }

    .container-fluid {
        width: 100px !important;
        margin-left: 2em !important;
        display: flex;
        flex-direction: row !important;
    }

    .userInfo {
        display: flex;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center;
    }
}

/* =================login_form=============== */

.form {
    margin: 100px auto;
    border-radius: 30px;
    max-width: 900px;
    color: rgb(220, 220, 220);
    padding: 40px 20px;
    background: #252525;
}

.row .col {
    padding: 0 20px;
}

.form-control {
    border: 3px solid rgb(86, 85, 85);
    border-radius: 10px;
    margin: 10px 0;
    padding: 8px;
}

.signUpbtn,
.loginbtn {
    width: 100%;
    max-width: 200px;
    height: 50px;
    background-color: rgb(2, 2, 2);
    color: white;
    border-radius: 10px;
    border: 2px solid rgb(0, 0, 0);
    margin: 20px 20px;
    display: block;
    transition: 1s ease;
}

.signUpbtn:hover,
.loginbtn:hover {
    border: 2px solid rgb(0, 0, 0);
    background-color: rgb(204, 204, 204);
    color: rgb(0, 0, 0);
}

/*=================Search===============*/

.search {
    margin: 150px auto;
    padding: 20px 0 20px 70px;
    width: 70%;

}

.search-input {
    width: 50%;
    padding-left: 7px;
    height: 40px;
    border: 1px solid rgb(172, 172, 172);
    border-radius: 5px;
    margin: 0 20px;
}

select {
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
}


.search button {
    width: 150px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background-color: rgb(93, 93, 92);
    margin-left: 7px;
    text-align: center;
    color: aliceblue;
    font-weight: 600;
    cursor: pointer;
}

.search button:hover,
.search button:active {
    background-color: rgb(0, 0, 0);
    color: white;
    border: 1px solid rgb(235, 235, 235);
}

@media (min-width: 768px) and (max-width: 1024px) {
    .search {
        margin: 200px auto;
        padding: 20px 0 20px 70px;
        width: 90%;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;

    }

    .search-input {
        width: 120px;
        padding-left: 7px;
        height: 40px;
        border: 1px solid rgb(172, 172, 172);
        border-radius: 5px;
        margin: 0 20px;
    }

}

@media not (min-width: 768px) {
    .search {
        margin: 200px auto;
        padding: 5px 0 10px 35px;
        width: 80%;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;

    }
}




/*==============items-styling============*/


.hidden-item {
    display: none;
}


.items {
    margin: 60px auto;
    padding: 50px 60px 20px 30px;
    display: grid;
    grid-template-columns: repeat(3, auto);
    grid-template-rows: repeat(3, auto);
    gap: 50px;

}

.item {
    width: 350px;
    height: 500px;
    text-align: center;
    border: 0.5px solid rgb(175, 175, 175);
    border-radius: 15px;
    color: #fff;
}

.item img {
    width: 100%;
    height: 60%;
    border-radius: 15px;

}

.item-info h5 {
    padding-top: 10px;
}

.item-info p {
    font-size: 16px;
    font-weight: 400;
}

.item-buttons button {
    width: 120px;
    height: 50px;
    border-radius: 15px;
    border: none;
    background-color: rgb(139, 88, 88);
    margin-left: 7px;
    text-align: center;
    color: aliceblue;
    font-weight: 600;
}

.item-buttons span i {
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
}

.heart-btn i.active-heart {
    color: red;
}

.item-buttons button:hover,
.item-buttons button:active {
    background-color: rgb(0, 0, 0);
    color: rgb(236, 236, 236);
    border: 1px solid rgb(161, 161, 161);
}


.item-buttons span i:hover,
.item-buttons span i:active {
    color: rgb(165, 5, 5);
    transform: scale(1.1);
}

.item:hover,
.item:active {
    transform: scale(1.05);
    border: 1px solid rgb(23, 23, 23);
    box-shadow: 5px 5px 10px 2px rgb(48, 48, 48), -5px -5px 10px 2px rgb(48, 48, 48);
}

.item:hover img,
.item:active img {
    transform: scale(1.01);
}

.activeAdd {
    width: 120px;
    height: 50px;
    border-radius: 15px;
    border: 1px solid rgb(255, 255, 255) !important;
    background-color: rgb(0, 0, 0) !important;
    margin-left: 7px;
    text-align: center;
    color: aliceblue;
    font-weight: 600;
}


@media (min-width: 768px) and (max-width: 1024px) {
    .items {
        margin: 30px auto;
        width: 100%;
        padding: 40px 20px 20px 0px;
        display: grid;
        grid-template-columns: repeat(2, 50%);
        grid-template-rows: repeat(5, auto);
        gap: 30px;

    }

}

@media not (min-width: 768px) {
    .items {
        width: 90%;
        margin: 0px auto;
        padding: 40px 10px 20px 0px;
        display: grid;
        grid-template-columns: repeat(1, auto);
        grid-template-rows: repeat(9, auto);
        gap: 30px;

    }

    .item {
        width: 100%;
    }
}



/* ============================== */

.cart-item {
    width: 90%;
    text-align: center;
    border: 0.5px solid rgb(175, 175, 175);
    border-radius: 15px;
    color: #c4c3c3;
    background-color: #252525;
    margin: 10px auto;
    padding: 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    font-weight: 500;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-top: 10px;
}



/* =============chosen items================= */

.chosen-items {
    margin: 60px auto;
    padding: 50px 60px 20px 30px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.cart-title {
    margin: 200px auto;
    padding: 50px 60px 20px 30px;
    color: #ffffff;
    font-size: 35px;
    font-weight: 700;
    text-align: center;
}

#allproducts {
    padding: 15px;
    margin: 20px auto;
    width: 90%;
    background-color: #343434;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    overflow-x: scroll;
    overflow-y: hidden;

}

.chosen-item {
    min-width: 340px;
    height: 450px;
    margin: 20px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #ffffff;
    border-radius: 15px;
    padding: 10px 0;
    color: #ffffff;
    font-size: 20px;
    font-weight: 500;
}

.cart-item img {
    width: 100%;
    height: 50% !important;
    border-radius: 12px;
}

.cart-item-quantity {
    margin: 20px 0px;
}

#cartTotal {
    margin: 80px auto;
    padding: 50px 60px 20px 30px;
    color: #ffffff;
    font-size: 30px;
    font-weight: 500;
    text-align: center;
}

.updatebtn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: aliceblue;
    color: #252525;
    font-size: 20px;
    font-weight: 800;
}

.updatebtn:hover {
    background-color: rgb(0, 0, 0);
    color: rgb(173, 173, 173);
    border: 1px solid rgb(0, 0, 0);
}

.deletebtn {
    width: 180px;
    height: 50px;
    border-radius: 15px;
    background-color: rgb(164, 64, 64);
    color: aliceblue;
    font-size: 20px;
    margin-right: 10px;
    font-weight: 600;
    border: none;
}

.deletebtn:hover {
    background-color: rgb(204, 204, 204);
    color: rgb(0, 0, 0);
    border: 1px solid rgb(235, 235, 235);
}


/* ======================== wishlistItems ========================= */

.whishlist-title {
    border-top: 1px solid #eaeaea;
}


#wishlistItems {
    border: 2px solid #343434;
    border-radius: 10px;
    padding: 15px;
    background-color: #343434;
    margin: 20px auto;
    width: 100%;
    display: flex;
    flex-direction: row;
    overflow-x: scroll;
    overflow-y: hidden;
    margin-bottom: 50px;
    margin-top: -50px;
}

.wishlist-item {
    display: flex;
    flex-direction: column;
    min-width: 320px !important;
    height: 400px;
    margin: 20px 60px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #ffffff;
    border-radius: 15px;
    padding: 10px 0;
    color: #ffffff;
    font-size: 20px;
    font-weight: 500;
}

.wishlist-item img {
    width: 100%;
    height: 50%;
    border-radius: 5px;
}

.wishlist-item h3 {
    font-size: 20px;
    margin: 0;
    color: #ffffff;
}

.wishlist-item p {
    margin: 5px 0 0;
    font-weight: bold;
    color: #ffffff;
}

.wishlist-item button {
    background-color: #ff4d4d;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.wishlist-item button:hover {
    background-color: #e60000;
}

.cart-chosen-quantity {
    margin: 20px 0px;
}