* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #F7F7F7;
}

nav {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    align-items: center;
    height: 60px;
    position: sticky;
    top: 0px;
    z-index: 1;
    background-color: white;
    width: 100%;
}

nav h1 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 26px;
    color: rgb(23, 23, 112);
    font-weight: 900;
}

.options {
    display: flex;
}

.options li {
    list-style: none;
    margin-right: 15px;
    font-size: 20px;
    font-weight: 800;
}

.options li a {
    text-decoration: none;
    color: rgb(23, 23, 112);
}

.cartCounter {
    position: absolute;
    right: 5px;
    bottom: 5px;
    background-color: rgb(23, 23, 112);
    color: white;
    padding: 0px 3px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 20px;
    /* display: none; */
}

.menu {
    position: relative;
    display: none;
    /* border: none; */
}

.menu .bars {
    background-color: rgb(23, 23, 112);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 10px;
    font-size: 19px;
    border: none;
}

.menu .bars:hover {
    background-color: rgba(23, 23, 112, 0.719);
    cursor: pointer;
}

.menu .bars:active {
    color: rgb(23, 23, 112);
    background-color: #F7F7F7;
}
#bars {
    border: none;
}

.menu .menu-options {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 2px;
    padding: 10px;
    gap: 15px;
    background-color: #ada6a6;
    background-color: rgba(255, 255, 255, 0.881);
    border: 2px solid #D4AF37;
    border-radius: 15px;
    z-index: 999;
    transition: 200px 1.5s ease-in-out;
}

.menu .menu-options li {
    list-style: none;
    width: 150px;
}

.menu .menu-options li a {
    text-decoration: none;
    font-size: 20px;
    color: rgb(23, 23, 112);
}

/* Display Image */
.displayImage {
    height: 80vh;
    border-top: 3px solid #D4AF37;
    border-bottom: 3px solid #D4AF37;
    background: linear-gradient(to bottom, rgba(128, 128, 128, 0.3), rgba(128, 128, 128, 0.3), rgba(0, 0, 0, 0.3)), url('images/display_image.webp');
    background-position: center;
    background-size: cover;
    background-attachment: scroll;
    background-repeat: no-repeat;
    position: relative;
}

.mainTitle {
    font-size: 60px;
    font-weight: 800;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color: rgb(255, 255, 255);
    margin-top: 10px;
    margin-left: 20px;
    text-align: center;
}

.briefDescription {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    position: absolute;
    bottom: 30px;
    padding: 0px 20px 0px 20px;
    font-size: 25px;
    font-weight: 700;
    color: white;
}

.subtext {
    list-style: none;
}

.text {
    font-size: 20px;
    font-style: italic;
}

.categories {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 10px;
    padding: 15px;
}

.categories img {
    display: block;
    height: 200px;
    width: 200px;
    border-radius: 15px;
}

.categories a {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 25px;
    text-decoration: none;
    text-align: center;
    color: rgb(23, 23, 112);
    font-weight: 800;
}

.products {
    padding: 10px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
}

.item {
    width: 200px;
    /* height: 200px; */
    margin-bottom: 5px;
}

.itemImg {
    width: 100%;
    height: 150px;
    border-radius: 10px;
}

.itemDetails {
    padding-left: 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.size {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.price {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.naira {
    text-decoration-line: line-through;
    text-decoration-style: double;
    font-style: italic;
}

.addToCart {
    border: none;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    background-color: rgb(23, 23, 112);
    color: white;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 15px;
    max-width: 150px;
    margin-top: 10px;
    cursor: pointer;
}

.addToCart:hover {
    background-color: rgb(25, 25, 231);
}

.addToCart:active {
    background-color: white;
    color: rgb(23, 23, 112);
    border: 2px solid rgb(23, 23, 112);
}

.quantityControl {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    /* background-color:  rgb(23, 23, 112); */
    color: rgb(23, 23, 112);
    ;
    display: none;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    max-width: 150px;
    padding: 5px 10px;
    border-radius: 10px;
    margin-top: 3px;
    border: 2px solid rgb(23, 23, 112);
}

.quantityIncrease {
    border: none;
    background-color: rgb(23, 23, 112);
    color: white;
    font-size: 20px;
    padding: 3px 5px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantityDecrease {
    border: none;
    background-color: rgb(23, 23, 112);
    color: white;
    font-size: 20px;
    padding: 3px 5px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantityCount {
    align-items: center;
    margin: 3px;
    padding: 5px;
    width: 50%;
    border: 2px solid rgb(23, 23, 112);
    border-radius: 5px;
}

.sqm {
    font-style: italic;
    font-size: 12px;
    margin-right: 3px;
}

.message {
    color: rgb(116, 85, 1);
}

.alertBox {
    display: flex;
    border: 2px solid rgb(116, 85, 1);
    background-color: white;
    position: absolute;
    top: 3px;
    right: 10px;
    max-width: 300px;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 20px;
}

/* Image Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    text-align: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    margin-top: 5%;
}

.close {
    position: absolute;
    top: 15px;
    right: 30px;
    color: red;
    font-size: 40px;
    font-weight: 800;
    cursor: pointer;
}

/* Loading Message */
.loadingMessage {
    display: block; /* Hidden by default */
    text-align: center;
    margin-top: 20px;
    font-size: 20px;    
    font-weight: 800;
    color: rgb(23, 23, 112);
}

.spinner {
    margin-top: 10px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid rgb(23, 23, 112);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    justify-self: center;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Media Query  */
@media screen and (max-width: 600px) {
    body{
        width: 100%;
    }

    .options {
        display: none;
    }

    .menu {
        display: flex;
    }

    .displayImage {
        height: 70vh;
    }

    .subtext {
        font-size: 18px;
    }

    .text {
        font-size: 15px;
    }

    .cartCounter {
        right: -10px;
        bottom: -10px;
        /* display: none; */
    }

    .mainTitle {
        display: none;
    }

    .briefDescription {
        flex-direction: column;
        gap: 20px;
    }

    .categories p {
        width: 120px;
    }

    .categories img {
        height: 100px;
        width: 100px;
        flex-wrap: wrap;
    }

    .categories a {
        font-size: 18px;
    } .item { width: 45%;}
}