body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    text-align: center;
}

header {
    background-color: #0071dc;
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    position: relative;
}

.cart-container {
    position: absolute;
    top: 15px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 8px 12px;
    border-radius: 20px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.cart-icon {
    width: 40px;
    height: auto;
}

#cart-count {
    background: red;
    color: white;
    font-size: 14px;
    font-weight: bold;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}

.product {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s ease-in-out;
}

.product:hover {
    transform: scale(1.05);
}

.product img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.buy-button, .add-to-cart-button {
    background-color: #ff9500;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
    margin-top: 10px;
    transition: background-color 0.2s ease-in-out;
}

.buy-button:hover, .add-to-cart-button:hover {
    background-color: #cc7a00;
}

h1 {
    margin-top: 20px;
}

p {
    color: #555;
}


/* ✅ Make dropdown visible when toggled */
.show-dropdown {
    display: block !important;
}

.red-text {
    color: red;
    font-size: 20px;
}

.close-button {
    position: absolute;
    top: 5px;
    right: 5px;
    background: red;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

.nav-container {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically (if needed) */
    width: 100%;
    background-color: #333; /* Change as needed */
    padding: 10px 0;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    align-items: center; /* Ensure everything is centered */
}

.nav-dropdown {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    text-align: center; /* Center text */
    left: 50%;
    transform: translateX(-50%); /* Center horizontally */
    width: max-content; /* Adjust width */
}

.nav-dropdown a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
}

.nav-dropdown a:hover {
    background-color: #ddd;
}

/* Ensure the button is also centered */
#menu-button {
    display: block;
    margin: 0 auto; /* Center horizontally */
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
}

.auth-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.auth-buttons a {
    padding: 8px 12px;
    color: white;
    background-color: #28a745;
    text-decoration: none;
    border-radius: 5px;
}

.auth-buttons a:hover {
    background-color: #218838;
}
