/* Basic Reset & Body Styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header Styling */
.top-bar {
    background-color: #f8f8f8;
    padding: 8px 0;
    font-size: 0.8em;
    color: #555;
}

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

.top-nav a {
    margin-left: 15px;
    color: #555;
}
.top-nav a:hover {
    color: #D02A2F; /* DM Floors Accent Red */
}

.main-header {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

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

.logo h1 {
    font-size: 2em;
    font-weight: bold;
}
.logo h1 a {
    color: #D02A2F; /* DM Floors Accent Red */
}
/* Uncomment if using an image logo
.logo img {
    max-height: 50px;
}
*/

.search-bar {
    display: flex;
    flex-grow: 1;
    margin: 0 30px;
    max-width: 500px;
}

.search-bar input[type="text"] {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-right: none;
    font-size: 0.9em;
}

.search-bar button {
    padding: 10px 15px;
    background-color: #D02A2F; /* DM Floors Accent Red */
    color: white;
    border: none;
    cursor: pointer;
    font-size: 0.9em;
}
.search-bar button:hover {
    background-color: #a82227;
}


.user-nav a {
    margin-left: 20px;
    font-size: 0.9em;
    color: #333;
}
.user-nav a:hover {
    color: #D02A2F;
}
.user-nav .icon {
    font-size: 0.7em;
}
.cart-link {
    font-weight: bold;
}
.cart-count {
    background-color: #D02A2F;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7em;
    vertical-align: super;
}

.primary-nav {
    background-color: #D02A2F; /* DM Floors Accent Red */
    padding: 12px 0;
}

.primary-nav .container {
    display: flex;
    justify-content: center; /* Or space-around, space-between */
    align-items: center;
}

.primary-nav a {
    color: white;
    margin: 0 15px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9em;
    padding: 5px 0;
}
.primary-nav a:hover {
    border-bottom: 2px solid white;
}

/* Hero Section */
.hero-section {
    margin-bottom: 30px;
}
.hero-image {
    background-size: cover;
    background-position: center center;
    color: white;
    text-align: left;
    padding: 80px 0; /* Adjust as needed */
    position: relative;
}
.hero-image::before { /* Optional overlay for text readability */
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.3);
}

.hero-content {
    position: relative; /* To sit on top of the overlay */
    max-width: 500px;
    padding: 20px;
    margin-left: 10%; /* Pushes content from the left edge */
    background-color: rgba(0,0,0,0.3); /* Slight dark background for content if needed */
    border-radius: 5px;
}
.hero-content .starting-price {
    background-color: rgba(0,0,0,0.6);
    color: #fff;
    display: inline-block;
    padding: 8px 15px;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 5px;
    margin-bottom: 10px;
}
.hero-content .sqft {
    font-size: 0.8em;
    font-weight: normal;
}
.hero-content h2 {
    font-size: 2.8em;
    margin-bottom: 15px;
    line-height: 1.2;
}
.hero-content p {
    font-size: 1.1em;
    margin-bottom: 25px;
}

.btn {
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 3px;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s ease;
}
.btn-light {
    background-color: #fff;
    color: #333;
    border: 1px solid #fff;
}
.btn-light:hover {
    background-color: #f0f0f0;
}
.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}
.btn-outline:hover {
    background-color: white;
    color: #333;
}

/* Promo Banners */
.promo-banners {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}
.banner {
    flex: 1;
    background-size: cover;
    background-position: center;
    padding: 40px 30px;
    color: white;
    min-height: 300px; /* Adjust as needed */
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 5px;
    position: relative;
}
.banner::before { /* Optional overlay for text readability */
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.4);
    border-radius: 5px;
}
.banner-content {
    position: relative;
    z-index: 1;
}

.banner h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    line-height: 1.3;
}
.banner h3 strong {
    display: block; /* Makes strong text appear on new line if needed */
}
.banner h4 {
    font-size: 1.2em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.banner p {
    font-size: 1em;
    margin-bottom: 20px;
}


/* Project Focus Section */
.project-focus {
    text-align: center;
    margin-bottom: 40px;
}
.project-focus h2 {
    font-size: 1.8em;
    margin-bottom: 30px;
    color: #333;
}
.project-categories {
    display: flex;
    justify-content: space-between; /* Or space-around */
    gap: 20px;
    /* Basic carousel styles - JS needed for functionality */
    overflow-x: auto; /* Allows horizontal scrolling if items overflow */
}
.category-item {
    flex: 0 0 23%; /* Adjust basis for number of items visible */
    text-align: center;
    color: #333;
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden; /* To ensure image corners are rounded if image itself isn't */
}
.category-item img {
    display: block;
    width: 100%;
    height: auto; /* Or a fixed height if desired */
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}
.category-item:hover img {
    transform: scale(1.05);
}
.category-item span {
    display: block;
    padding: 15px 10px;
    font-weight: bold;
}
.category-item .arrow {
    color: #D02A2F;
    margin-left: 5px;
}

/* Recommendations Section */
.recommendations {
    margin-bottom: 40px;
}
.recommendations h2 {
    text-align: center;
    font-size: 1.8em;
    margin-bottom: 30px;
    color: #333;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Responsive grid */
    gap: 20px;
    /* Basic carousel styles - JS needed for functionality */
    /* overflow-x: auto; */ /* For scrolling if not a grid */
}
.product-card {
    border: 1px solid #eee;
    padding: 15px;
    text-align: center;
    border-radius: 5px;
}
.product-card img {
    width: 100%;
    max-height: 200px; /* Adjust as needed */
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 3px;
}
.product-card h3 {
    font-size: 1.1em;
    margin-bottom: 5px;
    color: #333;
}
.product-card p {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}
.product-card .price {
    font-size: 1.2em;
    font-weight: bold;
    color: #D02A2F;
    margin-bottom: 8px;
}
.product-card .price .unit {
    font-size: 0.8em;
    font-weight: normal;
    color: #666;
}
.product-card .size {
    font-size: 0.8em;
    margin-bottom: 15px;
}
.btn-add-sample {
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid #D02A2F;
    color: #D02A2F;
    border-radius: 3px;
    font-size: 0.9em;
    font-weight: bold;
}
.btn-add-sample:hover {
    background-color: #D02A2F;
    color: white;
}

/* Footer Styling */
footer {
    background-color: #333;
    color: #f8f8f8;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9em;
}
footer p {
    margin-bottom: 5px;
}

/* Basic Responsive Considerations (add more specific rules as needed) */
@media (max-width: 992px) {
    .main-header .container, .top-bar .container {
        flex-direction: column;
        align-items: center;
    }
    .search-bar {
        margin: 15px 0;
        width: 100%;
        max-width: none;
    }
    .user-nav {
        margin-top: 10px;
    }
    .user-nav a { margin: 0 10px; }
    .primary-nav .container {
        flex-wrap: wrap; /* Allow nav items to wrap */
        justify-content: center;
    }
    .primary-nav a { margin: 5px 10px; }

    .promo-banners {
        flex-direction: column;
    }
    .project-categories {
        /* For smaller screens, let them stack or scroll more aggressively */
        flex-wrap: nowrap; /* Ensure horizontal scroll on mobile if using overflow-x */
    }
    .category-item {
        flex-basis: 45%; /* Example for 2 items per row before scrolling */
        min-width: 180px; /* Min width for scrollable items */
    }
}

@media (max-width: 768px) {
    .hero-content {
        margin-left: 5%;
        margin-right: 5%;
        text-align: center;
    }
    .hero-content h2 { font-size: 2em; }
    .hero-content p { font-size: 1em; }

    .project-categories, .product-grid {
        /* Adjust grid for smaller screens */
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .category-item {
        flex-basis: 80%; /* Example for 1 full item then scroll */
        min-width: 250px;
    }
}

@media (max-width: 480px) {
    .top-nav { display: none; } /* Example: hide top nav on very small screens or use a burger menu */
    .logo h1 { font-size: 1.5em; }
    .product-grid {
        grid-template-columns: 1fr; /* Stack products on very small screens */
    }
}