/* --- Global Styles & Variables --- */
:root {
    --primary-color: #E74C3C; /* Example: Coral Red */
    --secondary-color: #34495E; /* Example: Dark Blue/Grey */
    --accent-color: #F39C12; /* Example: Orange */
    --light-color: #ECF0F1; /* Example: Light Grey */
    --dark-color: #2C3E50; /* Example: Very Dark Blue/Grey */
    --text-color: #333;
    --white-color: #fff;
    --font-family: 'Poppins', sans-serif;
    --header-height: 70px;
    --border-radius: 5px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white-color);
    padding-top: var(--header-height); /* Prevent content overlap below fixed header */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
    line-height: 1.3;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: darken(var(--primary-color), 10%);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 60px 0;
}

.bg-light {
    background-color: var(--light-color);
}

.text-center {
    text-align: center;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    color: var(--white-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.btn-secondary:hover {
    background-color: darken(var(--secondary-color), 10%);
     color: var(--white-color);
    transform: translateY(-2px);
}

/* --- Header & Navbar --- */
.navbar {
    background-color: var(--white-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: var(--secondary-color);
    font-weight: 600;
    padding: 5px 0;
    position: relative;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--primary-color);
}

/* --- Mobile Menu Toggle --- */
.menu-toggle {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: calc(100vh - var(--header-height)); /* Full viewport height minus header */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    z-index: 1;
}

.hero::after { /* Overlay for better text readability */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 700px;
    padding: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--white-color);
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* --- Product Grid & Cards --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.product-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding-bottom: 20px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-card img {
    width: 100%;
    height: 250px; /* Adjust as needed */
    object-fit: cover;
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.product-card .price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* --- Page Header --- */
.page-header {
    background-color: var(--secondary-color);
    color: var(--white-color);
    text-align: center;
    padding: 40px 0;
}

.page-header h1 {
    color: var(--white-color);
    margin-bottom: 0.5rem;
}

/* --- Product Detail Page --- */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.product-image-gallery img#main-product-image {
    width: 100%;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    box-shadow: var(--box-shadow);
}

.product-image-gallery .thumbnails {
    display: flex;
    gap: 10px;
}

.product-image-gallery .thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.product-image-gallery .thumbnails img:hover {
    border-color: var(--primary-color);
}

.product-info h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.product-info .price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.product-info .description {
    margin-bottom: 2rem;
    color: #555;
}

.product-options .option-group {
    margin-bottom: 1.5rem;
}

.product-options label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-options select,
.product-options input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.btn-add-to-cart {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.product-meta {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #666;
}

.product-meta p {
    margin-bottom: 0.5rem;
}
.product-meta a {
    color: var(--secondary-color);
}
.product-meta a:hover {
    color: var(--primary-color);
}

/* --- About Page --- */
.about-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.about-text ul {
    list-style: disc;
    padding-left: 20px;
    margin-top: 1rem;
}

.about-text li {
    margin-bottom: 0.5rem;
}

/* --- Team Section (Optional) --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem auto;
    box-shadow: var(--box-shadow);
}

.team-member h3 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.team-member p {
    font-size: 0.9rem;
    color: #666;
}

/* --- Contact Page --- */
.contact-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

.contact-info h2 {
    margin-bottom: 1.5rem;
}

.contact-info ul {
    list-style: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 1rem;
    font-size: 1rem;
    display: flex;
    align-items: flex-start; /* Align icon and text */
}

.contact-info li strong {
    min-width: 70px; /* Adjust as needed */
    display: inline-block;
    color: var(--secondary-color);
}

.contact-info a {
    color: var(--primary-color);
}
.contact-info a:hover {
    text-decoration: underline;
}

#map-placeholder img { /* Style placeholder */
     border: 1px solid #ccc;
}

/* --- Newsletter Section --- */
.newsletter {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.newsletter h2 {
    color: var(--white-color);
}

.newsletter-form {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form input[type="email"] {
    flex-grow: 1;
    padding: 12px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

/* --- Filters (Products Page) --- */
.filters {
    margin-bottom: 30px;
    padding: 15px;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 15px;
}

.filters label {
    font-weight: 600;
}

.filters select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
}

/* --- Pagination --- */
.pagination {
    text-align: center;
    margin-top: 40px;
}

.pagination a {
    color: var(--secondary-color);
    padding: 8px 16px;
    margin: 0 4px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination a:hover,
.pagination a.active {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

/* --- Footer --- */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    text-align: center;
    padding: 25px 0;
    margin-top: 40px; /* Add space before footer */
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* --- Responsive Design --- */

/* Medium Devices (Tablets, etc.) */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero h1 { font-size: 3rem; }

    .product-detail-layout {
        grid-template-columns: 1fr; /* Stack image and info */
    }

    .about-layout {
        grid-template-columns: 1fr; /* Stack text and image */
        text-align: center;
    }
    .about-image {
        margin-top: 30px;
        order: -1; /* Move image above text */
    }

    .contact-layout {
        grid-template-columns: 1fr; /* Stack form and info */
    }
    .contact-info {
        margin-top: 40px;
    }
}

/* Small Devices (Mobiles) */
@media (max-width: 768px) {
    :root {
        --header-height: 60px; /* Adjust header height for mobile */
    }
    body {
        padding-top: var(--header-height);
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1rem; }

    .section-padding {
        padding: 40px 0;
    }

    /* Mobile Navigation */
    .menu-toggle {
        display: block; /* Show hamburger icon */
        z-index: 1001; /* Ensure it's above nav links */
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%; /* Hide off-screen */
        width: 70%; /* Adjust width as needed */
        max-width: 300px;
        height: 100vh;
        background-color: var(--dark-color);
        flex-direction: column;
        padding-top: var(--header-height) + 20px; /* Space below header */
        padding-left: 20px;
        transition: left 0.4s ease-in-out;
        box-shadow: 2px 0 5px rgba(0,0,0,0.2);
        z-index: 1000;
    }

    .nav-links.active {
        left: 0; /* Slide in */
    }

    .nav-links li {
        margin: 15px 0;
        margin-left: 0;
    }

    .nav-links a {
        color: var(--light-color);
        font-size: 1.1rem;
    }
    .nav-links a:hover,
    .nav-links a.active {
        color: var(--primary-color);
    }
     .nav-links a::after { /* Adjust underline for vertical menu */
        background-color: var(--primary-color);
        bottom: -5px;
    }

    /* Adjust hamburger animation when menu is active */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    .product-card img {
        height: 200px;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 15px;
    }
    .newsletter-form button {
        width: 100%;
    }

    .filters {
        flex-direction: column;
        align-items: stretch;
    }
}