/* General Body Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

/* Header and Navigation */
.header {
    background-color: #2c3e50;
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header .logo {
    font-size: 1.8em;
    font-weight: bold;
}
.nav-menu a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-size: 1.1em;
    cursor: pointer;
    transition: color 0.3s;
}
.nav-menu a:hover {
    color: #3498db;
}

/* Main Content Area */
.container {
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}

/* SPA Page Visibility */
.page {
    display: block;
    animation: fadeIn 0.5s;
}
.page-hidden {
    display: none;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Hero Section on Homepage */
.hero {
    background: #34495e;
    color: white;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 30px;
    border-radius: 8px;
}
.hero h1 {
    margin: 0;
    font-size: 2.8em;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.product-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}
.product-card img {
    max-width: 150px;
    height: auto;
    margin-bottom: 15px;
    align-self: center;
}
.product-card h3 { font-size: 1.5em; margin: 10px 0; color: #2c3e50; }
.product-card .price { font-size: 1.4em; color: #e74c3c; margin-bottom: 20px; font-weight: bold; }
.buy-button {
    background-color: #27ae60;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    transition: background-color 0.3s;
    cursor: pointer;
    border: none;
}
.buy-button:hover { background-color: #229954; }

/* Form Styles */
.form-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    margin: 30px auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.form-container h2 { text-align: center; margin-bottom: 20px; color: #2c3e50; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
.submit-button {
    width: 100%;
    padding: 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s;
}
.submit-button:hover { background-color: #2980b9; }

/* Message Styles */
.form-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
}
.form-message.success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-message.error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }


/* Static Page & Thank You Styles */
.static-page {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.static-page h1, .static-page h2 { color: #2c3e50; }
.static-page ul { list-style-type: disc; margin-left: 20px; }

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 30px;
}
.footer a {
    color: #ecf0f1;
    text-decoration: none;
    margin: 0 10px;
    cursor: pointer;
    transition: color 0.3s;
}
.footer a:hover { color: #3498db; }

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .header { flex-direction: column; padding: 15px; }
    .nav-menu { margin-top: 15px; }
    .nav-menu a { margin: 0 10px; }
    .hero h1 { font-size: 2em; }
}