/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;700&family=Roboto:wght@400&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f5f5f5;
    color: #111111;
    padding-top: 50px;
}

header {
    position: fixed;
    top: 10px;
    left: 0;
    width: 100%;
    height: 40px;
    z-index: 1001;
    padding: 0 20px;
}

.center-container {
    text-align: center; /* Align content in the center horizontally */
    margin: 20px 0; /* Optional: Add some spacing */
}

h2 {
    margin: 10px 0; /* Adjust vertical spacing for the heading */
    font-size: 1.5rem; /* Optional: Adjust font size if needed */
}

nav ul.menu {
    display: flex;
    justify-content: space-around;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 2px solid #111111;
}

nav ul.menu li {
    position: relative;
}

nav ul.menu li a {
    font-family: 'Poppins', sans-serif;
    font-weight: 10;
    color: #111111;
    text-decoration: none;
    text-transform: lowercase;
    font-size: 18px;
    padding: 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.product-item {
    border: 1px solid #ccc;
    padding: 1rem;
    text-align: center;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.product-name {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    margin-bottom: 10px;
    color: #5a1b24;
}

footer {
    margin-top: 50px;
    text-align: center;
    color: #5a1b24;
}

.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #f5f5f5;
    margin: 5% auto;
    padding: 20px;
    width: 80%;
    max-width: 500px;
    position: relative;
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
}

#cart-items {
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

#cart-items::-webkit-scrollbar {
    width: 8px;
}

#cart-items::-webkit-scrollbar-thumb {
    background-color: #5a1b24;
    border-radius: 5px;
}

#cart-items::-webkit-scrollbar-track {
    background-color: #f5f5f5;
}

#cart-items p {
    text-align: left;
}

form#checkout-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

form#checkout-form input {
    padding: 10px;
    font-size: 16px;
}

button#checkout-button {
    background-color: #5a1b24;
    color: #f5f5f5;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 18px;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.3s ease;
}

button#checkout-button:hover {
    background-color: #111111;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
    font-family: 'Roboto', sans-serif;
    color: #111111;
    font-size: 16px;
}

.cart-item p {
    flex-grow: 1;
    margin: 0;
    text-align: left;
    padding-right: 20px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
}

.cart-item-quantity {
    width: 60px;
    text-align: center;
    font-size: 18px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 8px;
    margin-right: 15px;
    background-color: #fff;
    color: #111111;
}

input.quantity-input {
    background-color: #f5f5f5;
    border: 1px solid #5a1b24;
    padding: 5px 5px;
    border-radius: 5px;
    font-size: 16px;
    margin: 5px;
    width: 33px;
}

input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

button.increase,
button.decrease,
button.remove {
    background-color: #f5f5f5;
    border: 1px solid #5a1b24;
    color: #5a1b24;
    cursor: pointer;
    padding: 5px 5px;
    border-radius: 5px;
    font-size: 16px;
    margin: 0 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

button.increase:hover,
button.decrease:hover,
button.remove:hover {
    background-color: #5a1b24;
    color: #f5f5f5;
}

#cart-items input.cart-item-quantity:focus {
    outline: none;
    border-color: #5a1b24;
    background-color: #f9f9f9;
}

#cart-modal {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #111111;
}

.info-button {
    background-color: #5a1b24;
    color: #f5f5f5;
    padding: 7px 15px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
}

.info-button:hover {
    background-color: #111111;
}

.buy-button {
    background-color: #5a1b24;
    color: #f5f5f5;
    padding: 7px 15px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
}

.buy-button:hover {
    background-color: #111111;
}

#product-search {
    padding: 0.8rem 1.2rem;
    width: 50%; 
    max-width: 600px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 15px;
    display: inline-block; /* Ensure alignment works properly */
}

#product-search::placeholder {
    color: #999;
    font-family: 'Poppins', sans-serif;
}