/* AutoVibe CSS for project 1752293716394 - Iteration 1 */

/* Basic Reset and Box Sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Root variables for consistent branding */
:root {
    --primary-color: #5a2e2e; /* Placeholder brand color */
    --secondary-color: #e0a9a9; /* A lighter shade for accents or backgrounds */
    --text-color: #333;
    --background-color: #f8f8f8;
    --white-color: #fff;
    --border-color: #ddd;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --button-hover-color: #452323;
}

/* Body Styles */
body {
    font-family: 'Roboto', 'Open Sans', sans-serif; /* Modern sans-serif font stack */
    line-height: 1.6;
    color: var(--text-color); /* Dark grey for text */
    background-color: var(--background-color); /* Light grey background */
    min-height: 100vh; /* Ensure body takes at least full viewport height */
    display: flex;
    flex-direction: column;
}

/* General Container for Content Width */
.container {
    max-width: 1200px;
    margin: 0 auto; /* Center the container */
    padding: 0 20px; /* Add horizontal padding */
    width: 100%; /* Ensure it takes full width up to max-width */
}

/* Header Styles */
header {
    background-color: var(--white-color);
    padding: 15px 0;
    box-shadow: 0 2px 4px var(--shadow-color);
    margin-bottom: 30px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
}

header h1 {
    color: var(--primary-color);
    margin: 0; /* Remove default margin */
    font-size: 1.8em;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px; /* Space between nav items */
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}

nav li.planned a {
    color: #999; /* Grey out planned items */
    cursor: not-allowed;
}

nav li.planned a:hover {
    color: #999; /* Keep grey on hover */
}


/* Main Content Styles */
main {
    flex-grow: 1; /* Allow main content to take up available space */
    padding: 20px 0;
}

main .container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

/* Product Listing Styles */
.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 30px; /* Space between product items */
}

.product-item {
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 5px var(--shadow-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.product-item img {
    max-width: 100%;
    height: auto; /* Maintain aspect ratio */
    border-radius: 4px;
    margin-bottom: 15px;
    display: block; /* Remove extra space below image */
}

.product-item h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: var(--text-color);
}

.product-item .price {
    font-size: 1.1em;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 15px;
}

.add-to-cart {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
    margin-top: auto; /* Push button to the bottom */
}

.add-to-cart:hover {
    background-color: var(--button-hover-color);
}

/* Footer Styles */
footer {
    background-color: var(--text-color);
    color: var(--white-color);
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
}

footer p {
    margin: 0; /* Remove default margin from p */
    font-size: 0.9em;
}


/* Basic responsiveness */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    header h1 {
        margin-bottom: 10px;
    }

    nav {
        width: 100%; /* Make nav take full width */
    }

    nav ul {
        flex-direction: column; /* Stack nav items vertically */
        gap: 10px;
        align-items: flex-start;
    }

    .container {
        padding: 0 10px; /* Reduce padding on smaller screens */
    }

    .product-list {
        gap: 20px; /* Reduce gap */
    }

    .product-item {
        padding: 15px; /* Reduce padding */
    }

    .product-item h3 {
        font-size: 1.1em;
    }

    .product-item .price {
        font-size: 1em;
    }

    .add-to-cart {
        padding: 8px 15px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }

    main .container h2 {
        font-size: 1.5em;
        margin-bottom: 20px;
    }

    .product-list {
         grid-template-columns: 1fr; /* Stack items on very small screens */
    }

    footer p {
        font-size: 0.8em;
    }
}