/* Position adjustment for supplier dropdown to align right */

/* Product Banner Refinement */
.product-banner {
    position: relative;
    /* padding-bottom: 25px; */
    margin-bottom: 20px;
}

.product-banner .banner-bg {
    width: 100%;
    margin-bottom: -40px;
}

.product-banner .banner-bg img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.product-banner .banner-content {
    position: relative;
    z-index: 5;
}

.banner-title-box {
    background: white;
    color: #fff;
    padding: 10px 10px 0 10px;
    border-radius: 15px;
    text-align: center;
    margin: 0 auto;
}

.banner-title-box .main-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    background: var(--color-2);
    color: white;
    padding: 10px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    @media (max-width: 992px) {
        font-size: 24px;
    }
}

.banner-title-box .sub-title {
    font-size: 18px;
    margin: 5px 0 0;
}

.btn-load-more {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    color: #333;
    transition: all 0.3s;
}

.btn-load-more:hover {
    background: #f9f9f9;
    border-color: #2b7a44;
}

/* Bottom Content */
.product-bottom-content {
    margin-top: 60px;
    > .row {
        gap: 30px 0;
    }
    @media (max-width: 992px) {
        margin-top: 30px;
    }
}

.main-article-content {
    background: #dfece3;
    border: 1px solid #eee;
    border-radius: 15px;
    overflow: hidden;
    padding: 20px;
}

.content-header {
    background: #2b7a44;
    color: #fff;
    padding: 8px 40px 8px 23px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 35px;
    font-size: 14px;
    position: relative;
    cursor: pointer;
    &:not(.expanded) {
        .toggle-icon {
            background: #fff;
            &::before {
            }
            &::after {
                transform: translate(-50%, -50%) rotate(90deg);
                opacity: 0;
            }
        }
    }
    .toggle-icon {
        width: 24px;
        height: 24px;
        background: #fff;
        border-radius: 50%;
        position: relative;
        flex-shrink: 0;
        margin-left: 20px;
        right: 6px;
        position: absolute;
        &::before,
        &::after {
            content: "";
            position: absolute;
            background: var(--color-2);
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            transition: all 0.3s ease;
        }

        &::before {
            width: 12px;
            height: 2px;
        }

        &::after {
            width: 2px;
            height: 12px;
        }
    }
}

.header-tag {
    font-weight: 700;
    text-transform: uppercase;
}

.content-body {
    padding: 15px 23px;
    background: white;
    border-radius: 10px;
    margin-top: 14px;
    position: relative;
    &::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 150px;
        background: linear-gradient(
            0deg,
            #dfece3 39.66%,
            rgba(223, 236, 227, 0) 100%
        );
        z-index: 1;
    }
    &.expanded {
        &::after {
            opacity: 0;
            z-index: -1;
        }
        .article-text {
            max-height: 2000px;
        }
    }
}
.content-footer {
    position: relative;
    z-index: 2;
}
.article-title {
    font-size: 24px;
    color: #2b7a44;
    margin-bottom: 20px;
    font-weight: 700;
}

.article-text {
    max-height: 200px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s ease;
}

/* .article-text.expanded {
    max-height: 2000px;
} */

.btn-expand-content {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px auto 0;
    background: #f1f8f3;
    border: 1px solid var(--color-2);
    padding: 8px 20px;
    border-radius: 20px;
    color: var(--color-2);
    font-weight: 600;
    cursor: pointer;
}
.btn-expand-content .icon {
    width: 24px;
    height: 24px;
    mask-image: url(../images/icon-arrow-right.png);
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center center;
    background-color: var(--color-2);
    transform: rotate(90deg);
}
.btn-expand-content:hover {
    background: var(--color-2);
    color: #fff;
}
.btn-expand-content:hover .icon {
    background-color: white;
}

.product-listing-results {
    padding: 0 0 100px;
    @media (max-width: 992px) {
        padding: 0 0 40px;
    }
}

/* Product Detail Aside */
.detail-block__aside {
    background: #2b7a44;
    border-radius: 20px;
    padding: 30px 20px;
    &:not(:last-child) {
        margin-bottom: 40px;
    }
}

.aside-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 15px;
    margin-bottom: 40px;
}

.aside-info__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    h3 {
        font-size: 20px;
        font-weight: 700;
        color: #fff;
        margin-bottom: 5px;
    }

    p {
        font-size: 14px;
        color: #fff;
        line-height: 1.4;
        opacity: 0.9;
    }
}

.aside-info__icon {
    /* width: 60px; */
    height: 60px;
    flex-shrink: 0;
    margin: 0;
}

.aside-info__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: inline-block;
}

.aside-footer {
    text-align: center;
}

.btn-consult {
    display: block;
    background: #fff;
    color: #2b7a44;
    text-align: center;
    padding: 9px 20px;
    border-radius: 12px;
    border: 1px solid var(--color-2);
    font-weight: 700;
    font-size: 20px;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn-consult:hover {
    background: var(--color-2);
    color: #fff;
    border-color: white;
}

@media (max-width: 991px) {
    .detail-block__aside {
        margin-top: 30px;
    }
}

/* Product Overview Section */
.product-overview {
    padding-top: 0;
}

.overview-title {
    font-size: clamp(32px, 8vw, 48px);
    color: #2b7a44;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.2;
}

.overview-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #888;
    margin-bottom: 30px;
    text-align: justify;
}

.features-title,
.specs-title {
    font-size: 24px;
    color: #2b7a44;
    font-weight: 700;
    margin-bottom: 20px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.features-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: #888;
    font-size: 16px;
}

.features-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #ccc;
    font-weight: bold;
}

/* Specs Table */
.specs-table-wrapper {
    width: 100%;
    position: relative;
    max-height: 600px;
    overflow: hidden;
    transition: max-height 0.5s ease;
    &::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 150px;
        background: linear-gradient(
            0deg,
            #ffffff 39.66%,
            rgba(255, 255, 255, 0) 100%
        );
        z-index: 1;
    }
    &.expanded {
        margin-bottom: 10px;
        max-height: 100000px;
        &::after {
            opacity: 0;
            z-index: -1;
        }
    }
}

.specs-table {
    width: 100%;
}

/* Expand View More Specs */
.expand-more-specs {
    margin-top: 0px;
}

.btn-view-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 2px solid #2b7a44;
    color: #2b7a44;
    padding: 10px 30px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-view-more .icon-down {
    width: 24px;
    height: 24px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b7a44' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 13l5 5 5-5M7 6l5 5 5-5'/%3E%3C/svg%3E")
        no-repeat center;
    background-size: contain;
}

.btn-view-more:hover {
    background: #2b7a44;
    color: #fff;
}

/* Product Detail Slider */
.product-detail {
    margin-top: 120px;
    @media (max-width: 992px) {
        margin-top: 30px;
    }
}
.detail-slider {
    margin-bottom: 30px;
    position: relative;
}

.detail-slider__for {
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    background: #f8f8f8;
    .slick-arrow {
        width: 27px;
        height: 27px;
        bottom: 32px;
        top: auto;
        transform: none;
        &.slick-prev {
            left: 29px;
        }

        &.slick-next {
            right: 29px;
        }
    }
}

.detail-slider__for-item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.detail-slider__nav {
    z-index: 2;
    @media (min-width: 992px) {
        padding: 0 40px;
        position: absolute;
        width: 100%;
        left: 0;
        bottom: 18px;
    }
}
.detail-slider__nav .slick-list {
    margin: 0 -5px;
}
.detail-slider__nav-item {
    margin: 0 5px;
    padding: 4px;
    cursor: pointer;
    transition: all 0.3s;
    background: #2a7e43bf;
    border-radius: 8px;
    width: 56px;
    /* height: 56px; */
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    &::after {
        content: "";
        padding-top: 100%;
        display: block;
    }
}

.detail-slider__nav-item img {
    width: calc(100% - 8px);
    height: calc(100% - 8px);
    object-fit: cover;
    border-radius: 4px;
    position: absolute;
    top: 4px;
    left: 4px;
    bottom: 4px;
    right: 4px;
    transition: all 0.3s;
}

@media (max-width: 767px) {
    .detail-slider__for-item img {
        height: 300px;
    }
    .detail-slider__nav {
        padding: 0;
    }
}
.product-related {
    padding: 50px 0;
    @media (max-width: 992px) {
        padding: 25px 0;
    }
}
.product-related-slider {
    .slick-slide {
        padding: 0 10px;
    }
    .slick-list {
        margin: 0 -10px;
    }
}

/* Commitment Section */
.commitment-wrap {
    background: #2b7a44;
    border-radius: 12px;
    padding: 30px 40px;
    margin-top: 50px;
    .common-title {
        .title {
            color: #fff;
        }
    }
}

.commitment-list {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.commitment-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #fff;
}

.commitment-item__icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.commitment-item__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.commitment-item__text {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}

@media (max-width: 1199px) {
    .commitment-list {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: flex-start;
    }
    .commitment-item {
        width: calc(33.33% - 20px);
    }
}

@media (max-width: 767px) {
    .commitment-wrap {
        padding: 20px;
    }
    .commitment-title {
        font-size: 24px;
    }
    .commitment-list {
        padding: 15px;
    }
    .commitment-item {
        width: 100%;
    }
}
