:root {
    --primary-color: #ffc107;
    /* Industrial Yellow */
    --secondary-color: #e6a700;
    --main-bg: #f4f6f8;
    /* Light Grey Background */
    --card-bg: #ffffff;
    --text-color: #333333;
    --text-muted: #666666;
    --accent-blue: #0056b3;
    --white: #ffffff;
    --dark-section: #1a1a1a;
    /* For footer/header */
    --transition: all 0.3s ease;
    --shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    /* Softer shadow */
    --hover-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--main-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: #111;
    /* Dark headings for light theme */
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: #b30000;
    /* Red requested */
    color: white;
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid #8b0000;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 55px;
    border-radius: 4px;
    background: white;
    /* Ensure logo pops if transparent */
    padding: 2px;
}

.logo-text h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    line-height: 1;
}

.logo-text span {
    font-size: 0.8rem;
    color: #ccc;
    letter-spacing: 1px;
}

/* Search Bar */
.search-bar {
    display: flex;
    background: white;
    /* White search bar */
    border-radius: 25px;
    padding: 5px 15px;
    width: 350px;
    border: 1px solid #ddd;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.search-bar input {
    background: transparent;
    border: none;
    color: #333;
    flex: 1;
    outline: none;
    padding: 5px;
}

.search-bar button {
    background: transparent;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
}

/* Navigation */
.nav-links {
    display: flex;
    gap: 20px;
}

.nav-link {
    background: none;
    border: none;
    color: white;
    /* Nav text light on dark header */
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-heading);
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}


.contact-btn {
    background: var(--primary-color);
    color: var(--dark-bg);
    font-weight: 700;
}

.contact-btn:hover {
    background: var(--secondary-color);
    color: #000;
}

.burger-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100%;
    background: var(--card-bg);
    z-index: 1001;
    transition: 0.4s ease;
    padding: 2rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
}

.mobile-menu-overlay.active {
    right: 0;
}

.close-menu {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
}

.mobile-link {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

/* Main Content Padding for Fixed Header */
main {
    padding-top: 80px;
    min-height: 80vh;
}

/* Sections */
.page-section {
    padding: 60px 0;
    display: none;
    /* Hidden by default for JS routing */
    animation: fadeIn 0.5s ease-in-out;
}

#home.page-section {
    padding-top: 30px;
}

.page-section.active-section {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 60%;
    height: 3px;
    background: var(--primary-color);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 400px;
    /* Normal height for desktop/laptop */
    overflow: hidden;
    margin-bottom: 30px;
    width: 100%;
    border-radius: 12px;
    /* Rounded corners for boxed look */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.slider-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Responsive adjustment for slider to maintain proportion and avoid distortion/excessive zoom */
@media (max-width: 1024px) {
    .hero-slider {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 280px;
        /* More natural for tablets */
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 180px;
        /* Prevents vertical stretching/excessive cropping on small phones */
    }
}

.slide::before {
    /* REMOVED DARK OVERLAY AS REQUESTED */
    display: none;
}


.slider-controls button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.2rem;
}

.prev-slide {
    left: 20px;
}

.next-slide {
    right: 20px;
}

.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-indicators span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.slider-indicators span.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* How It Works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.step-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #333;
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.step-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Categories Grid (CIRCULAR) */
.categories-grid,
.categories-grid-full {
    display: grid;
    /* Desktop: 6 columns */
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
    justify-items: center;
}

/* Brands Grid (Page) */
.brands-grid {
    display: grid;
    /* Desktop: 6 columns */
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    justify-items: center;
}

/* Brands Text List - 6 columns */
.text-list-columns {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    list-style: none;
    /* Remove bullets */
    padding: 0;
    margin-top: 20px;
}

.text-list-columns li {
    font-size: 0.95rem;
    /* Adjust font size */
    color: #444;
    /* readable text */
    padding: 5px;
    border-bottom: 1px solid #eee;
    /* subtle separation */
}

/* Responsive adjustment for grids */
@media (max-width: 1024px) {

    .categories-grid,
    .categories-grid-full,
    .brands-grid,
    .text-list-columns {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {

    .categories-grid,
    .categories-grid-full,
    .brands-grid,
    .text-list-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* New Circular Style */
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 150px;
    /* Mediano size constraint */
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-img-container {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
}

.category-card:hover .category-img-container {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures image covers the circle */
}

.category-title {
    color: #333;
    font-size: 0.95rem;
    text-transform: uppercase;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Brands Scroll */
.brands-scroller {
    overflow: hidden;
    background: #fff;
    /* White bg for logos usually looks better */
    padding: 20px 0;
    margin-top: 60px;
}

.brands-track {
    display: flex;
    gap: 40px;
    animation: scroll 30s linear infinite;
    width: max-content;
}

.brand-item img {
    height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.brand-item:hover img {
    filter: grayscale(0%);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.product-card {
    background: var(--card-bg);
    /* White now */
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #eee;
    /* Light border */
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    border-color: var(--primary-color);
}

.product-img {
    height: 200px;
    width: 100%;
    object-fit: contain;
    background: #fff;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.product-title {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #222;
    /* Dark text */
    flex-grow: 1;
    font-weight: 600;
}

.btn-whatsapp {
    display: block;
    background: #25D366;
    color: white;
    text-align: center;
    padding: 8px;
    border-radius: 4px;
    font-weight: 600;
    margin-top: 10px;
}

.btn-whatsapp:hover {
    background: #128C7E;
}

/* Detail View */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.product-image-large {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-info-panel h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.detail-category {
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 700;
}

.rating {
    color: #ffc107;
    margin: 15px 0;
}

.btn-whatsapp-large {
    display: inline-block;
    background: #25D366;
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 20px;
}

.description-text {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 8px;
    line-height: 1.8;
    color: #444;
    /* Readable dark grey */
    box-shadow: var(--shadow);
    border: 1px solid #eee;
}

/* Material List Table/Grid */
.material-list-section {
    background: #e9ecef;
    /* Light grey for contrast against white body */
    padding: 60px 0;
    margin-top: 40px;
}

.material-banner {
    background: var(--primary-color);
    color: #000;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.material-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.material-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    /* White items */
    padding: 12px 15px;
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Contact Form - WHITE BACKGROUND REQUESTED */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form-wrapper {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    /* Darker shadow requested */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
    border: 1px solid #333;
}


.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: #f9f9f9;
    /* Very light grey input bg */
    border: 1px solid #ddd;
    color: #333;
    border-radius: 6px;
    transition: border 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    background: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
}

.btn-primary {
    background: var(--primary-color);
    color: #000;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
}

/* Footer */
.footer {
    background: #b30000;
    /* Red requested */
    padding: 60px 0 20px;
    border-top: 4px solid #8b0000;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    color: #ffffff;
    /* White title for red background */
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
}

.footer p,
.footer li,
.footer a {
    color: #ffffff;
    /* White text */
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.footer-links li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    color: #ffffff;
    /* White text */
    font-size: 0.8rem;
}

/* Floating Actions */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
}

.float-btn:hover {
    transform: scale(1.1);
}

.float-btn.whatsapp {
    background: #25D366;
}

.float-btn.facebook {
    background: #1877F2;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .burger-menu {
        display: block;
    }

    .search-bar {
        display: none;
    }

    /* Hide search on mobile header to save space, rely on in-page search */

    .product-detail-layout {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .header h1 {
        font-size: 1.2rem;
    }

    .hero-slider {
        height: 200px;
        /* Mobile height reduced */
    }
}