/* --- Add these styles to your existing style.css file --- */

:root {
    --primary-color: #00447C; /* Example: Deep Blue */
    --secondary-color: #F37F1B; /* Example: Orange Accent */
    --text-color: #333;
    --light-gray: #f8f9fa;
    --border-color: #dee2e6;
    --card-bg: #ffffff;
    --header-height: 70px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff; /* Or var(--light-gray) for off-white bg */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1; /* Ensures footer stays at bottom */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3 {
    margin-bottom: 0.8em;
    color: var(--primary-color);
    line-height: 1.3;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.2rem; color: #444; } /* Product titles slightly less prominent */

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.btn:hover {
    background-color: #d96c11; /* Darker orange */
    text-decoration: none;
    color: #fff;
}
.btn:active {
    transform: scale(0.98);
}

/* --- Header Styles --- */
.site-header {
    background-color: #fff;
    padding: 0 1rem; /* Add padding for smaller screens */
    border-bottom: 1px solid var(--border-color);
    position: sticky; /* Make header sticky */
    top: 0;
    z-index: 1000;
    height: var(--header-height);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo a {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}
/* .logo img { max-height: 50px; } */

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav li {
    margin-left: 20px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.main-nav a.active,
.main-nav a:hover {
    color: var(--secondary-color);
}

.main-nav a::after { /* Underline effect on hover/active */
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}


.header-actions {
    display: flex;
    align-items: center;
}

.header-actions input[type="search"] {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-right: 15px;
    font-size: 0.9rem;
}

.cart-icon, .account-icon {
    font-size: 1.5rem; /* Adjust size as needed */
    color: var(--primary-color);
    text-decoration: none;
    position: relative;
    margin-left: 15px;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: bold;
    line-height: 1;
}

/* Hero Section */
.hero {
    /* background-color: #e9ecef; */ /* Replaced with image */
    /* Optional: Add background image */
    background-image: linear-gradient(rgba(0, 68, 124, 0.7), rgba(0, 68, 124, 0.7)), url('https://picsum.photos/1200?boilerparts?w=1200&auto=format&fit=crop');
    background-size: cover;
    background-position: center center;
    padding: 80px 0; /* Adjust padding as needed */
    text-align: center;
    /* color: var(--primary-color); */ /* Text color if using light bg */
    color: #fff; /* Text color for dark bg/image overlay */
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5em;
    font-weight: 700;
    color: inherit; /* Inherit color from .hero */
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 1.5em;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: inherit; /* Inherit color from .hero */
    opacity: 0.9;
}

.hero .hero-btn {
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: bold;
     /* Use primary color for main CTA */
    background-color: var(--primary-color);
    color: white;
}
.hero .hero-btn:hover {
     background-color: #00335c; /* Darker primary */
}

/* USP Bar */
.usp-bar {
    background-color: var(--light-gray);
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
}

.usp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
}

.usp-item span { /* Placeholder for Icon */
    font-size: 1.8rem;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 10px;
}

.usp-item h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.usp-item p {
    font-size: 0.9rem;
    color: #555;
}

/* Featured Sections General Styling */
.featured-categories,
.featured-products,
.cta-info {
    padding: 50px 0;
    text-align: center;
}

.featured-categories h2,
.featured-products h2,
.cta-info h2 {
    margin-bottom: 40px;
    font-size: 2rem;
}


/* Featured Categories */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.category-card {
    display: block; /* Make the whole card clickable */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden; /* Keep image corners rounded */
    text-decoration: none;
    color: var(--text-color);
    background-color: var(--card-bg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: var(--secondary-color); /* Highlight text on hover */
}

.category-card img {
    width: 100%;
    height: 150px; /* Adjust height as needed */
    object-fit: cover; /* Or contain, depending on images */
    background-color: #eee; /* Placeholder background */
    border-bottom: 1px solid var(--border-color);
}

.category-card h3 {
    padding: 15px;
    font-size: 1.2rem;
    margin: 0; /* Remove default margin */
    color: var(--primary-color); /* Keep heading color consistent */
    transition: color 0.3s ease; /* Smooth color transition on hover */
}
.category-card:hover h3 {
    color: var(--secondary-color); /* Match link hover color */
}

/* Featured Products Section Adjustments */
.featured-products .product-grid {
    /* Explicitly define grid properties for homepage featured products */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Same as shop grid */
    gap: 30px; /* Same as shop grid */
    margin-bottom: 30px;
}

.view-all-products {
    margin-top: 30px; /* Space above the "View All" button */
}

.btn-secondary { /* Style for secondary buttons */
    background-color: var(--primary-color);
    color: white;
}
.btn-secondary:hover {
    background-color: #00335c; /* Darker primary */
}


/* CTA/Info Section */
.cta-info {
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 8px; /* Optional rounded corners */
    margin: 40px auto; /* Add margin top/bottom */
    padding: 40px; /* Internal padding */
}

.cta-info h2 {
    color: #fff; /* Override default heading color */
}

.cta-info p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.cta-info-buttons .btn {
    margin: 0 10px; /* Space between buttons */
}

.btn-outline { /* Style for outline buttons */
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff; /* Use white border on dark bg */
}
.btn-outline:hover {
    background-color: #fff;
    color: var(--primary-color);
    text-decoration: none;
}

/* --- Footer Styles --- */
.site-footer {
    background-color: #333; /* Dark background */
    color: #ccc;
    padding: 40px 0 20px 0;
    margin-top: 40px; /* Space above footer */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 30px; /* Space between columns */
    margin-bottom: 20px;
}

.footer-links, .footer-contact, .footer-social {
    flex: 1; /* Try to take equal space */
    min-width: 200px; /* Minimum width before wrapping */
}

.site-footer h4 {
    color: #fff;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--secondary-color);
    padding-bottom: 5px;
    display: inline-block;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a, .footer-contact a, .footer-social a {
    color: #ccc;
    text-decoration: none;
}

.footer-links a:hover, .footer-contact a:hover, .footer-social a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-contact p {
    margin-bottom: 10px;
}

.copyright {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #555;
    font-size: 0.9rem;
    color: #aaa;
}



/* --- Responsive Adjustments for Homepage Elements --- */

@media (max-width: 992px) {
    .hero h1 { font-size: 2.4rem; }
    .hero p { font-size: 1.1rem; }
    .header-content {
        flex-wrap: wrap; /* Allow header items to wrap */
         justify-content: center; /* Center items when wrapped */
         padding-bottom: 10px; /* Space when wrapped */
    }
    .main-nav { order: 3; width: 100%; margin-top: 10px; } /* Nav below logo/actions */
    .main-nav ul { justify-content: center; }
    .header-actions { order: 2; } /* Actions beside logo */

    .site-header { height: auto; min-height: var(--header-height); }
}

@media (max-width: 768px) {
    .hero { padding: 60px 0; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }

    .usp-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 15px; }

    .category-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }

    .featured-categories h2,
    .featured-products h2,
    .cta-info h2 { font-size: 1.8rem; margin-bottom: 30px; }

    .cta-info-buttons {
        display: flex;
        flex-direction: column; /* Stack buttons */
        align-items: center;
    }
    .cta-info-buttons .btn {
        margin: 8px 0; /* Adjust margin for stacked buttons */
        width: 80%; /* Make buttons wider */
        max-width: 300px;
    }

    .product-grid {
        /* Adjust columns for smaller screens if needed, though auto-fit helps */
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .footer-content {
        flex-direction: column; /* Stack footer columns */
        text-align: center;
    }
    .footer-content > div { /* Center content within stacked columns */
        margin-bottom: 20px;
    }
    .site-footer h4 { display: block; } 
}

@media (max-width: 576px) {
    .hero { padding: 40px 0; }
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 0.9rem; }
    .hero .hero-btn { padding: 12px 25px; font-size: 1rem; }

    .usp-grid { grid-template-columns: 1fr 1fr; } /* Two columns on small screens */
    .usp-item { margin-bottom: 15px; }

    .category-grid { grid-template-columns: 1fr 1fr; } /* Two columns */

    .featured-categories h2,
    .featured-products h2,
    .cta-info h2 { font-size: 1.6rem; }

    .cta-info { padding: 30px 20px; }

    .header-actions input[type="search"] {
        width: 100%; /* Full width search on small screens */
        margin-bottom: 10px;
     }
     .header-actions { flex-wrap: wrap; justify-content: center; }
     .cart-icon, .account-icon { margin-left: 10px; margin-right: 10px; }

    .main-nav li { margin: 0 10px; }

    .product-grid {
         /* One column on very small screens */
        grid-template-columns: 1fr;
    }

    .shop-controls select { width: 100%; }
}
/* --- About Us Page Specific Styles --- */
.about-page section {
    margin-bottom: 40px; /* Add space between sections */
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color); /* Optional separator */
}

.about-page section:last-of-type {
    border-bottom: none; /* Remove border from last section */
}

.about-intro-image {
    margin-top: 20px;
    border-radius: 8px;
    max-width: 100%; /* Ensure responsiveness */
    height: auto;
    display: block; /* Prevent extra space below image */
    margin-left: auto; /* Center image if container is wider */
    margin-right: auto;
    max-height: 400px; /* Limit image height */
    object-fit: cover; /* Cover the area nicely */
}

.mission-values ul {
    list-style: disc; /* Use standard bullets */
    margin-left: 20px; /* Indent list */
    margin-top: 10px;
}

.mission-values li {
    margin-bottom: 8px;
}