/* General styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.btn {
    padding: 8px 16px;
    font-size: 0.875rem;
    cursor: pointer;
}

.btn-primary {
    background-color: #007bff;
    border: none;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-danger {
    background-color: #dc3545;
    border: none;
    color: #fff;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* Navbar */
nav {
    display: flex;
    align-items: center;
    background-color: #343a40;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav a {
    color: white;
    margin: 0 15px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: rgb(241, 181, 104);
}

nav img {
    height: 40px;
    margin-right: 20px;
}

/* Banner */
.banner {
    position: relative;
    background: url('/Project-Local/img/banner.jpg') no-repeat center center;
    background-size: cover;
    height: 600px;
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.banner h1 {
    font-size: 4em;
    margin: 0;
}

.banner p {
    font-size: 1.5em;
    margin-top: 20px;
}

/* Footer */
.footer {
    background-color: #343a40;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
}

.footer-top {
    border-bottom: 1px solid #555;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.footer-top h4 {
    margin-bottom: 10px;
    color: #f1f1f1;
}

.footer-top ul {
    list-style: none;
    padding: 0;
}

.footer-top ul li {
    margin: 10px 0;
}

.footer-top ul li a {
    color: #ffffff;
    text-decoration: none;
}

.footer-top ul li a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
}

/* Login and Signup pages */
.card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-body {
    padding: 2rem;
    background-color: #fff;
}

.card-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-control {
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.btn-submit {
    background-color: #28a745;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    padding: 0.75rem;
    transition: background-color 0.3s ease;
    width: 100%;
}

.btn-submit:hover {
    background-color: #218838;
}

.card-footer {
    background-color: #f8f9fa;
    padding: 1rem 0;
    text-align: center;
}

.card-footer a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-footer a:hover {
    color: #0056b3;
}

.card-footer small {
    color: #6c757d;
}

/* Product page specific styles */
#filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

#productList {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.product-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.product-item h3 {
    margin: 10px 0;
    font-size: 1.2rem;
}

.product-item p {
    margin: 10px 0;
    color: #777;
}

.product-item button {
    margin-top: 10px;
    background-color: #007bff;
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.product-item button:hover {
    background-color: #0056b3;
}

/* Cart page specific styles */
.table {
    width: 100%;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
}

.table th {
    background-color: #f2f2f2;
}

.table img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.cart-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.cart-total {
    margin-top: 20px;
    text-align: right;
}

.cart-total span {
    font-weight: bold;
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    #productList {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }

    .banner {
        height: 400px;
    }
}

@media (max-width: 576px) {
    .banner {
        height: 300px;
    }
}
