/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

header {
    background-color: #5b5858;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

nav .logo h1 {
    margin: 0;
    font-size: 2rem;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1rem;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ddd;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
}

section {
    padding: 2rem;
}

section#home {
    background-color: #7b8fa4;
    color: #fff;
    text-align: center;
    padding: 5rem 2rem;
}

.container {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero {
    background-image: url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 3rem 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.filters input {
    padding: 0.5rem;
    width: 60%;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.filters select {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Product Styles */
.product-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.product {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    max-width: 300px;
    text-align: center;
}

.product:hover {
    transform: translateY(-10px);
}

.product img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.product h3 {
    font-size: 1.5rem;
    margin: 1rem 0;
    color: #333;
}

.product p {
    font-size: 1rem;
    color: #666;
    padding: 0 1rem;
}

.product .price {
    font-size: 1.25rem;
    color: #28a745;
    font-weight: bold;
    margin: 1rem 0;
}

.product .button {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    border-radius: 5px;
}

.product .button:hover {
    background-color: #0056b3;
}

/* Shopping Cart Modal */
.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: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Dark Mode */
.dark-mode .product {
    background-color: #1e1e1e;
    color: #fff;
}

.dark-mode .product h3,
.dark-mode .product p {
    color: #fff;
}

.dark-mode .modal-content {
    background-color: #1e1e1e;
    color: #fff;
}