/* Home Appliances Site - Main Stylesheet */

/* Global Resets & Defaults */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif; /* Modern, clean sans-serif font */
    line-height: 1.6;
    color: #333; /* Dark grey for main text, good contrast */
    background-color: #f4f6f8; /* Very light grey background for a clean look */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700; /* Bold for headings */
    color: #2c3e50; /* Dark blue/grey for headings, modern and serious */
    margin-bottom: 0.75em;
}

h1 {
    font-size: 2.8em;
}

h2 {
    font-size: 2.2em;
    margin-top: 1.5em;
}

h3 {
    font-size: 1.8em;
}

p {
    margin-bottom: 1em;
    font-size: 1em;
}

a {
    color: #3498db; /* Steel blue for links - vibrant but elegant accent */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover, a:focus {
    color: #2980b9; /* Darker steel blue on hover */
    text-decoration: underline;
}

/* Container for consistent spacing */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Header */
.site-header {
    background-color: #ffffff; /* White header for cleanliness */
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0; /* Subtle border */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo a {
    font-size: 1.8em;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.main-navigation a {
    font-weight: 500;
    color: #555;
    text-decoration: none;
}

.main-navigation a:hover, .main-navigation a.active {
    color: #3498db;
}

/* Hero Section */
.hero-section {
    background-color: #2c3e50; /* Dark blue/grey for contrast */
    color: #ffffff;
    padding: 60px 20px;
    text-align: center;
}

.hero-section h1 {
    color: #ffffff;
    margin-bottom: 0.5em;
}

.hero-section .subtitle {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto 1em auto;
    opacity: 0.9;
}

/* Disclosure Banner (from previous project, adapted) */
.disclosure-banner {
    background-color: #fff8e1; /* Light yellow */
    color: #795548; /* Brown text */
    padding: 12px 20px;
    text-align: center;
    font-size: 0.9em;
    border-bottom: 1px solid #ffecb3;
}

.disclosure-banner p {
    margin: 0;
}

/* Main Content Area */
.main-content {
    flex-grow: 1; /* Ensures footer stays at bottom */
    padding: 30px 0;
}

/* Category Grid - for index.html */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.category-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.category-card img.category-thumbnail {
    max-width: 100%;
    height: 180px; /* Consistent height for thumbnails */
    object-fit: contain; /* Or cover, depending on image aspect ratios */
    margin-bottom: 20px;
    border-radius: 6px;
}

.category-card h3 {
    margin-bottom: 10px;
    font-size: 1.5em;
}

.category-card p.category-description {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 20px;
    min-height: 60px; /* To align buttons if descriptions vary */
}

/* CTA Button - General */
.cta-button {
    display: inline-block;
    background-color: #3498db; /* Steel blue */
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: #2980b9; /* Darker steel blue */
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Category Page Specifics */
.category-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #3498db;
}

.category-intro p {
    font-size: 1.1em;
    color: #555;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.sub-category-section {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.sub-category-section img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.key-features ul {
    list-style: none; /* Consider using icons later */
    padding-left: 0;
}

.key-features li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.key-features li::before { /* Simple bullet for now, can be icon */
    content: '\2022'; /* Bullet character */
    color: #3498db; /* Accent color */
    font-weight: bold;
    display: inline-block; 
    width: 1em;
    margin-left: -1.2em;
    position: absolute;
    left: 10px;
}

.popular-brands p {
    font-style: italic;
    color: #777;
}

.category-cta-section {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background-color: #eaf2f8; /* Light blue accent background */
    border-radius: 8px;
}

.category-cta-section p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

/* Footer */
.site-footer {
    background-color: #2c3e50; /* Dark blue/grey footer */
    color: #bdc3c7; /* Light grey text for footer */
    padding: 30px 0;
    text-align: center;
    margin-top: auto; /* Pushes footer to bottom */
}

.site-footer p {
    margin-bottom: 0.5em;
    font-size: 0.9em;
}

.site-footer a {
    color: #ecf0f1; /* Lighter grey for links in footer */
}

.site-footer a:hover {
    color: #ffffff;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }
    .hero-section { padding: 40px 15px; }
    .category-grid {
        grid-template-columns: 1fr; /* Single column on smaller screens */
    }
    .site-header .container {
        flex-direction: column;
        gap: 10px;
    }
    .main-navigation ul {
        justify-content: center;
        flex-wrap: wrap;
    }
}

