@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900&display=swap');

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    max-width: 100%;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    background-color: #f4f4f4;
    color: #333;
}

/* Navbar Styling */
.navbar {
    background-color: #1177cd;
    min-height: 75px;
    padding: 10px 5%;
}

.logo {
    max-height: 50px;
    width: auto;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.navbar-links {
    list-style-type: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.navbar-links li a {
    color: #fff;
    text-decoration: underline;
    font-size: 1rem;
    white-space: nowrap;
}

.navbar-links li a:hover {
    text-decoration: underline;
}

/* Main Content */
.content-container {
    .content-container {
        display: flex;
        justify-content: center; /* Center horizontally */
        align-items: center; /* Center vertically */
        min-height: 100vh; /* Full viewport height */
        padding: 20px; /* Ensure padding for smaller screens */
    }
}

.sidebar {
    min-width: 250px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: min-content;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

h3 {
    font-size: xx-large;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-list li {
    list-style-type: none;
}

li > button {
    border: none;
}

li:first-child > button {
    text-decoration: underline;
}

li > button:hover, li > button:focus {
    color: #1177cd;
    transform: scale(1.1);
    cursor: pointer;
}

.main-content {
    width: 100%;
    overflow-y: clip;
    display: flex;
    flex-direction: column;
    height: fit-content;
    padding: 50px;
    padding-right: 100px;
}

.category-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 20px;
    margin: 0 auto; /* Center grid items */
}

.item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    background-color: #fff;
    border: 1px solid #1177cd;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}


.quantity-control {
    display: flex;
    gap: 5px;
    align-items: center;
}

.minus, .plus {
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-size: 1.5rem;
}

.minus:hover, .plus:hover {
    color: #1177cd;
}

.quantity {
    width: 50px;
    text-align: center;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

/* Order Summary */
.order-summary {
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    width: 40%;
    max-width: 400px; /* Ensure it doesn't get too wide */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto; /* Center horizontally */
    text-align: center; /* Center text within */
    background-color: #fff; /* Add background for better visibility */
}

.quantity-order {
    color: #1177cd;
}

.selected-item {
    align-items: center;
    max-width: 400px;
    border-radius: 5px;
    margin-top: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    padding: 10px;
}

#totalPrice {
    color: #1177cd;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
}

#selectedItems {
    text-align: center;
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Submit Button */
.submit-btn {
    background-color: #1177cd;
    color: white;
    padding: 10px 20px;
    text-align: center;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 20px auto;
    font-size: 1.2rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    display: block;
}

.confirmation-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100%;
    padding: 0 100px;
}

#searchBox {
    border-radius: 5px;
    border: 1px solid #ccc;
    padding: 0.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-bottom: 20px;
}
.scroll-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.scroll-buttons button {
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}



.scroll-buttons button:hover {
    background-color: #0056b3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .category-items {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    .category-name{
        font-size: 1.3rem;
    }

    .order-summary {
        width: 90%; /* Adjust order summary width for smaller devices */
    }

    .main-content {
        padding: 20px;
        padding-right: 20px;
    }

    .submit-btn {
        font-size: 1rem;
        padding: 10px 15px;
    }
}

/* Extra Small Screens */
@media (max-width: 480px) {
    .category-items {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px; /* Reduce gaps for very small screens */
    }

    .item {
        overflow: hidden; /* Prevent content from overflowing */
        word-wrap: break-word; /* Wrap long text to prevent overflow */
        padding: 10px;
        gap: 5px;
    }

    .order-summary {
        width: 100%; /* Use full width on extra small devices */
    }

    .quantity {
        width: 40px; /* Adjust input width for smaller screens */
    }

    #totalPrice, #selectedItems {
        font-size: 1rem;
    }

    .submit-btn {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
    *{
        /* overflow-x: hidden; */
    }
}