﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    color: #2f4f4f;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 35px;
}

/* Header Section */
.header {
    background-color: #fff;
    padding: 2rem 0;
    border-bottom: 1px solid #e0e0e0;
}

    .header .container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

.header-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 0.5rem;
}

.header-text p {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 1.5rem;
}

.header-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.header .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 500;
    text-decoration: none;
    font-size: 1rem;
}

.header .btn-primary {
    background-color: #28a745;
    color: #fff;
    border: none;
}

    .header .btn-primary:hover {
        background-color: #218838;
    }

.header .btn-secondary {
    background-color: #fff;
    color: #28a745;
    border: 1px solid #28a745;
}

    .header .btn-secondary:hover {
        background-color: #f8f9fa;
    }

.eco-icons {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 1rem;
}

    .eco-icons .icon-item {
        text-align: center;
        background-color: #e0e0e0;
        padding: 1rem;
        border-radius: 10px;
        width: 150px;
        height: 150px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .eco-icons .icon-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        height: 100%;
    }

    .eco-icons .icon {
        width: 80px;
        height: 80px;
        border-radius: 5px;
    }

    .eco-icons .icon-title {
        font-size: 0.9rem;
        color: #2f4f4f;
        margin-top: 0.5rem;
        text-align: center;
    }

/* Main Content */
.main-content-wrapper {
    background-color: #f1f1f1;
}

.main-content {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
}

.featured-products {
    flex: 6;
    position: relative;
}

.impact-metrics {
    flex: 4;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-products h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
}

.product-grid {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
}

.product-item {
    padding: 1rem;
    text-align: center;
    flex: 1;
}

    .product-item .placeholder-image {
        width: 150px;
        height: 150px;
        background-color: #e0e0e0;
        margin: 0 auto 0.5rem;
    }

    .product-item p {
        font-size: 1rem;
        color: #2f4f4f;
    }

/* Impact Metrics */
.impact-metrics h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.impact-metrics .metric {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.impact-metrics .metric-value {
    color: #28a745;
}

.impact-metrics .metric-unit {
    color: #000;
}

.impact-metrics .metric-co2 {
    color: #28a745;
}

.impact-metrics .bar-meter {
    width: 100%;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

.impact-metrics .info {
    font-size: 0.9rem;
    color: #6c757d;
    text-align: left;
    margin-bottom: 0.25rem;
}

.impact-metrics .fleet-info {
    font-size: 0.9rem;
    color: #28a745;
    text-align: left;
}

/* How It Works Section */
.how-it-works {
    padding: 2rem 0;
    background-color: #fff;
}

.how-it-works-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.how-it-works h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.description-card {
    background-color: #e0e0e0;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.description-icon {
    font-size: 1.2rem;
}

.description-texts {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .description-texts p {
        font-size: 0.9rem;
        color: #2f4f4f;
        margin: 0;
    }

.description-text {
    font-size: 0.9rem;
    color: #28a745;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 767px) {
    .container {
        padding: 0 30px;
    }

    .main-content {
        flex-direction: column;
        padding: 3rem 2rem;
    }

    .header-text h1 {
        font-size: 2rem;
    }

    .header-text p {
        font-size: 2rem;
    }

    .header .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .eco-icons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

        .eco-icons .icon-item {
            width: 120px;
            height: 120px;
            flex-shrink: 0;
        }

        .eco-icons .icon {
            width: 60px;
            height: 60px;
        }

        .eco-icons .icon-title {
            font-size: 0.85rem;
        }

    .featured-products h2,
    .how-it-works h2 {
        font-size: 1.3rem;
    }

    .featured-products {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .product-grid {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .impact-metrics h3 {
        font-size: 0.9rem;
    }

    .impact-metrics .metric {
        font-size: 1.3rem;
    }

    .how-it-works-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .description-card {
        margin-top: 1rem;
        text-align: center;
        justify-content: center;
    }

    .description-texts {
        text-align: left;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 20px;
    }

    .main-content {
        flex-direction: column;
        padding: 2.5rem 1.5rem;
    }

    .header-text h1 {
        font-size: 1.8rem;
    }

    .header-text p {
        font-size: 1.8rem;
    }

    .header .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .eco-icons .icon-item {
        width: 100px;
        height: 100px;
    }

    .eco-icons .icon {
        width: 50px;
        height: 50px;
    }

    .eco-icons .icon-title {
        font-size: 0.8rem;
    }

    .featured-products h2,
    .how-it-works h2 {
        font-size: 1.2rem;
    }

    .featured-products {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .product-grid {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .impact-metrics h3 {
        font-size: 0.8rem;
    }

    .impact-metrics .metric {
        font-size: 1.2rem;
    }

    .product-item .placeholder-image {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 412px) {
    .container {
        padding: 0 15px;
    }

    .main-content {
        flex-direction: column;
        padding: 2rem 1rem;
    }

    .header-text h1 {
        font-size: 1.6rem;
    }

    .header-text p {
        font-size: 1.6rem;
    }

    .header .btn {
        padding: 0.35rem 0.7rem;
        font-size: 0.8rem;
    }

    .eco-icons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

        .eco-icons .icon-item {
            width: 120px;
            height: 120px;
        }

            .eco-icons .icon-item:nth-child(1),
            .eco-icons .icon-item:nth-child(2) {
                margin-bottom: 1rem;
            }

            .eco-icons .icon-item:nth-child(3),
            .eco-icons .icon-item:nth-child(4) {
                margin-top: 0;
            }

        .eco-icons .icon {
            width: 60px;
            height: 60px;
        }

        .eco-icons .icon-title {
            font-size: 0.75rem;
        }

    .featured-products h2,
    .how-it-works h2 {
        font-size: 1.1rem;
    }

    .featured-products {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .product-grid {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .impact-metrics h3 {
        font-size: 0.75rem;
    }

    .impact-metrics .metric {
        font-size: 1.1rem;
    }

    .product-item .placeholder-image {
        width: 110px;
        height: 110px;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }

    .main-content {
        flex-direction: column;
        padding: 1.5rem 0.75rem;
    }

    .header-text h1 {
        font-size: 1.4rem;
    }

    .header-text p {
        font-size: 1.4rem;
    }

    .header .btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }

    .eco-icons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

        .eco-icons .icon-item {
            width: 110px;
            height: 110px;
        }

            .eco-icons .icon-item:nth-child(1),
            .eco-icons .icon-item:nth-child(2) {
                margin-bottom: 1rem;
            }

            .eco-icons .icon-item:nth-child(3),
            .eco-icons .icon-item:nth-child(4) {
                margin-top: 0;
            }

        .eco-icons .icon {
            width: 55px;
            height: 55px;
        }

        .eco-icons .icon-title {
            font-size: 0.7rem;
        }

    .featured-products h2,
    .how-it-works h2 {
        font-size: 1rem;
    }

    .featured-products {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .product-grid {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .impact-metrics h3 {
        font-size: 0.7rem;
    }

    .impact-metrics .metric {
        font-size: 1rem;
    }

    .product-item .placeholder-image {
        width: 100px;
        height: 100px;
    }
}


/* Latest Products Section */
.latest-products-section {
    margin: 48px 0;
    width: 100%;
}

.latest-products-title {
    font-size: 1.7rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.latest-product-slide {
    display: flex;
    justify-content: center;
    align-items: stretch;
    height: 100%;
    box-sizing: border-box;
}

.latest-product-card {
    padding: 16px;
    text-align: center;
    transition: box-shadow 0.2s;
    height: 100%;
    width: 100%;
    max-width: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    overflow: hidden;
    cursor: pointer;
}

    .latest-product-card:hover {
        /*box-shadow: 0 4px 16px rgba(0,0,0,0.12);*/
    }

.latest-product-image {
    width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 12px;
    border-radius: 8px;
    background: transparent;
}

.latest-product-info {
    margin-top: auto;
}

.latest-product-name {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 4px;
    color: #222;
    word-break: break-word;
}

.latest-product-price {
    font-size: 1.1rem;
    color: #388e3c;
    font-weight: 600;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 35px;
    position: relative;
}

.latest-products-swiper {
    width: 100%;
    overflow: hidden;
    padding-bottom: 32px;
    box-sizing: border-box;
}

/* Base styles for navigation buttons */
.latest-products-next,
.latest-products-prev {
    position: absolute;
    top: 50%;
    z-index: 10;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    color: #388e3c;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: box-shadow 0.2s, background 0.2s;
}

.latest-products-next {
    right: -50px;
}

.latest-products-prev {
    left: -50px;
}

/*    .latest-products-next:hover,
    .latest-products-prev:hover {
        box-shadow: 0 4px 16px rgba(0,0,0,0.16);
        background: #e8f5e9;
    }*/

/* Tablet: bring buttons closer */
@media (max-width: 1024px) {
    .latest-products-next {
        right: -30px;
    }

    .latest-products-prev {
        left: -30px;
    }
}

/* Mobile: bring buttons inside the container */
@media (max-width: 767px) {
    .latest-products-next {
        right: 5px;
    }

    .latest-products-prev {
        left: 5px;
    }
}

/* Extra small: stack or hide buttons if needed */
@media (max-width: 480px) {
    .latest-products-next,
    .latest-products-prev {
        width: 32px;
        height: 32px;
        margin-top: -16px;
        font-size: 1.2rem;
    }

    .latest-products-next {
        right: 0;
    }

    .latest-products-prev {
        left: 0;
    }
}
