body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #7209b7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.top-bar {
    background-color: #4361ee;
    padding: 10px 20px;
    display: flex;
    align-items: center;
}
.home-title {
    color: black
}
.home-title:visited {
    color: black
}
.logo {
    width: 100px;
    height: 100px;
    margin-right: 20px;
}
.title {
    font-size: 24px;
    font-weight: bold;
}

.content {
    display: flex;
    flex: 1;
}
.product-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 1000px;
    height: 80%;
    margin-left: 25%;
}

.menu-bar {
    width: 200px;
    background-color: #f72585;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}
.menu-item {
    display: block;
    padding: 12px 20px;
    margin-bottom: 15px;
    text-decoration: none;
    color: #333;
    background-color: #ffffff;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.menu-item:hover {
    background-color: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.menu-item.active {
    background-color: #007bff;
    color: white;
}
.product-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
    padding: 20px;
}
.product-image-container {

    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 10px;
    max-width: 300px;
    object-fit: contain;
}
.product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
}

.auth-status {
    display: flex;
    background-color: #0056b3;
    justify-content: flex-end;
    margin-right: 20px;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}
.auth-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: px;
}
.user-greeting {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #333;
    font-weight: 500;
    background-color: #f5f5f5;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.auth-prompt {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #333;
    font-weight: 500;

}
.user-email {
    color: #4CAF50;
    font-weight: 600;
}
.user-email {
    color: #4CAF50;
    font-weight: 600;
}
.auth-cart-button {
    margin: 0 10px;
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}
.login-button {
    background-color: #4CAF50; /* Green */
}

.login-button:hover {
    background-color: #45a049;
}

.register-button {
    background-color: #008CBA; /* Blue */
}

.register-button:hover {
    background-color: #007B9A;
}

.logout-button {
    background-color: #f44336; /* Red */
}

.logout-button:hover {
    background-color: #da190b;
}
.product-footer {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quantity-select {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.add-to-cart-btn {
    padding: 8px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-to-cart-btn:hover {
    background-color: #0056b3;
}

.product-image {
    max-width: 100%;
    max-height: 100%;

}

/* Responsive breakpoints */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .content {
        flex-direction: column;
    }
    .menu-bar {
        width: 100%;
        margin-bottom: 20px;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }
.header-container {
    position: relative;
    width: 100%;
    height: 60px; /* Adjust as needed */
}
.checkout-button {
    padding: 10px 20px;
    background-color: #28a745; /* Green color */
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.checkout-button:hover {
    background-color: #218838; /* Darker green on hover */
}

/* Adjust the content to account for the header */
.content {
    display: flex;
    flex: 1;
}
}
.checkout-button-container {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-top: 20px; /* Adjust as needed */
}
.light-purple-button {
    background-color: #810477; /* This is a light purple color */
    color: #FFFFFF; /* Black text for contrast */
    border: none; /* Remove default button border */
    padding: 10px 20px; /* Add some padding */
    cursor: pointer; /* Change cursor to pointer on hover */
    transition: background-color 0.3s ease; /* Smooth transition for hover effect */
}
.light-purple-button:hover {
    background-color: #D8BFD8; /* Slightly darker purple on hover */
}
.cart-total {
    text-align: right;
    margin-top: 10px;
    color: black;
    font-weight: bold;
    font-size: 1.1em;
}
.btn-checkout, .logout-button, .login-button, .register-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-checkout:hover, .logout-button:hover, .login-button:hover, .register-button:hover {
    background-color: #45a049;
}

.logout-button {
    background-color: #f44336;
}

.logout-button:hover {
    background-color: #d32f2f;
}

.login-button {
    background-color: #008CBA;
}

.login-button:hover {
    background-color: #007B9A;
}

.register-button {
    background-color: #555;
}

.register-button:hover {
    background-color: #333;
}
.header-buttons {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    position: absolute;
    top: 20px;
    right: 20px;
}

.btn-checkout, .logout-button, .login-button, .register-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    text-align: center;
    width: 120px; /* Adjust this value as needed */
}

.btn-checkout:hover, .logout-button:hover, .login-button:hover, .register-button:hover {
    background-color: #45a049;
}

.logout-button {
    background-color: #f44336;
}

.logout-button:hover {
    background-color: #d32f2f;
}

.login-button {
    background-color: #008CBA;
}

.login-button:hover {
    background-color: #007B9A;
}

.register-button {
    background-color: #555;
}

.register-button:hover {
    background-color: #333;
}
.on-sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff4136;
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 0.8em;
    text-transform: uppercase;
}
