/*
Theme Name: VerdaAgro Child
Author: WebGeniusLab
Author URI: http://webgeniuslab.net
Description: WebGeniusLab team presents absolutely fresh and powerful WordPress theme. It combines new technologies and functional design that helps to showcase your content in better way. This WordPress theme is developed with attention to details, so you can create effective presentation of a website easily. Enjoy building web pages with our product!
Version: 1.0
Template: verdaagro
Text Domain: verdaagro-child
*/

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700;800&display=swap');

:root {
    --fz-h1: 3.2rem;
    --fw-h1: 700;
    --lh-h1: 1.5;
    --fz-h2: 2.8rem;
    --fw-h2: 600;
    --lh-h2: calc(32 / 28);
    --fz-h3: 2rem;
    --lh-h3: calc(28 / 20);
    --fz-p18: 1.8rem;
    --lh-p18: calc(24 / 18);
    --fz-p16: 1.6rem;
    --lh-p16: calc(24 / 16);
    --fz-decor: 3.2rem;
    --lh-decor: 1.5;
    --fw-default: 400;
    --clr-text: #181818;
    --clr-background: #f6f6f6;
    --clr-accent-bg: #fdb827;
    --clr-accent-text: #fdb827;
}



body {
    font-family: 'Nunito', sans-serif !important;
}

.has-main-margin #main-content {
    margin-top: 40px;
}


.product-detail {
    background: #fff;
    border-radius: 10px;
    padding: 0;
    padding-top: 20px;
    width: 100% !important;
    margin: auto;
}

.product-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.ug-line-break-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

/* === Thông tin sản phẩm === */
.product-info {
    flex: 1 1 50%;
    color: #365930;
}

.spec-title {
    font-size: 20px;
    line-height: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #365930;
}

.product-specs {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}

.product-button-wrap {
    margin-top: 20px;
    text-align: left;
}

.btn-contact {
    display: inline-block;
    background-color: #365930;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
}

.btn-contact:hover {
    color: #fff;
    background-color: #043222;
}

.product-specs td {
    padding: 10px 8px;
    border-bottom: 1px solid #e5e5e5;
}

.product-specs td:first-child {
    font-weight: 600;
    color: #365930;
}

.actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.product-detail table th,
.product-detail table td {
    border: none !important;
    border-top: 1px solid #A5A5A5 !important;
    border-bottom: 1px solid #A5A5A5 !important;
}

.product-detail span {
    color: #365930;
}

@media (max-width: 1024px) {
    .product-container {
        flex-direction: column;
    }

    .product-detail {
        padding: 30px 0;
    }

    .product-info {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .product-detail {
        padding: 20px 0;
    }

    .product-info {
        width: 100%;
    }
}

.product-variation-block {
    margin-top: 20px;
}

/* variation css*/
.product-variation-block {
    display: flex;
    gap: 30px;
    align-items: center;
}

.variation-option {
    display: inline-block;
    padding: 2px 10px;
    margin-right: 10px;
    border: 1px solid #365930;
    color: #365930;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 10px;
    background-color: transparent;
}

.variation-option.selected {
    border-color: #365930;
    background-color: #365930;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.5);
}

.variation-option:hover {
    border-color: #888;
}

.woocommerce div.product form.cart .variations td.value {
    max-width: 100% !important;
}

.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
    z-index: 96 !important;
}

.single_variation_wrap .woocommerce-variation-add-to-cart,
.single_variation_wrap .woocommerce-variation-description,
.single_variation_wrap .woocommerce-variation-price,
.single_variation_wrap .woocommerce-variation-availability,
.single_variation-wrap .woocommerce-variation {
    display: none !important;
}

.custom-variation-price {
    font-size: 20px;
    color: #7a8363;
    font-weight: 600;
    margin-top: 10px;
}

.woocommerce div.product p.stock {
    background-color: #365930;
    display: block;
    width: 110px;
    text-align: center;
    border-radius: 20px;
    color: #fff;
}

/* contact */

.submit-contact-btn .wgl-button {
    color: #fff !important;
    background-color: #365930 !important;
}

.submit-contact-btn:hover .wgl-button {
    color: #fff !important;
    background-color: #043222 !important;
}

/*  */

.blog-page .blog-post_title a {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}



/* custom product */

.product-list div.wgl-products div.product .picture .woo_post-link {
    /* max-height: 270px !important; */
    width: 124px;
    /* background-color: #d9d9d9; */
}

.product-list div.wgl-products div.product .picture .woo_post-link img {
    max-height: 124px !important;
}

.product-list .swiper-slide.product {
    width: 100% !important;
    margin-right: 0 !important;

    background: #fff;
    padding: 20px;
    color: #222;
    border-radius: 10px;
    max-width: 360px;
    box-sizing: border-box;
}

.product-list .woo_product_image.shop_media {
    max-width: 124px;
    border-radius: 20px !important;
    /* border: 1px solid #d9d9d9 !important; */
}

.product-list .woo_product_image.shop_media img {
    width: 100%;
    max-width: 150px;
    height: auto;
    display: block;
    border-radius: 10px !important;
}

.product-list .woo_product_inner_wrapper {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px !important;
    display: flex;
    gap: 20px;
    margin: auto;
}

.product-list .woo_product_content {
    padding-top: 0 !important;
}


.woo_product_content {
    flex: 1;
}

.product-list .woocommerce-loop-product__title a {
    font-size: 16px !important;
    line-height: 24px !important;
    font-weight: 700 !important;
    color: #365930 !important;
    text-decoration: none !important;

    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

body.post-type-archive-product .woocommerce-loop-product__title a,
.wgl-products-related .woocommerce-loop-product__title a,
.wgl-products-catalog .woocommerce-loop-product__title a {
    font-size: 16px !important;
    line-height: 24px !important;
    font-weight: 700 !important;
    color: #365930 !important;
    text-decoration: none !important;

    display: -webkit-box !important;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}



.woocommerce-loop-product__title {
    margin: 0 0 10px 0;
}

div.wgl-products div.product .picture {
    border-radius: 10px !important;
}

.woo_product_content .price {
    font-size: 10px;
    line-height: 16px;
    color: #365930;
    margin-bottom: 20px;
    display: block;
}

.wgl_woo_button_wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.wgl_woo_button_wrapper .button {
    background-color: transparent;
    border: none;
    padding: 0;
    line-height: 1;
    color: #043222;
    font-size: 14px;
}

.wgl_woo_button_wrapper {
    display: none !important;
}

@media (max-width: 1024px) {
    .woo_product_inner_wrapper {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .product-list .woocommerce-loop-product__title a {
        display: -webkit-box !important;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
    }
}

@media (max-width: 768px) {


    .swiper-slide.product {
        max-width: 100%;
    }

    .woo_product_image.shop_media {
        max-width: 150px;
        margin: auto;
    }

    .woocommerce-loop-product__title {
        font-size: 22px;
    }

    .woo_product_content {
        text-align: center;
    }

    .wgl_woo_button_wrapper {
        justify-content: center;
    }
}

/*  */

/* related product */

.wgl-products-related .woocommerce-loop-product__link {
    font-size: 16px !important;
    line-height: 24px !important;
    font-weight: 700 !important;
    color: #365930 !important;
    text-decoration: none !important;
    display: block !important;
}

/*  */


.related .wgl-products-related .woo_post-link {
    max-height: 270px !important;
}

.product-list .product-short-description,
.wgl-products-related .product-short-description,
.wgl-products-catalog .product-short-description,
body.post-type-archive-product .product-short-description {
    font-size: 14px;
    line-height: 18px;
    color: #555;
    text-align: left;
    margin-top: 12px;

    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.product-list .price,
.wgl-products-related .price {
    display: none !important;
}

#respond #submit {
    color: #fff;
    background-color: #365930;
    border: none !important;
}

#respond #submit:hover {
    color: #fff;
    background-color: #043222;
}

#scroll_up {
    background-color: #043222 !important;
    color: #fff !important;
    border: none !important;
}

#scroll_up:hover {
    background-color: #365930 !important;
    color: #fff !important;
}

.search_mobile_menu {
    display: none !important;
}

.post_featured_bg .blog-post_title {
    letter-spacing: 0 !important;
}

.blog-posts .blog-post_footer {
    display: none !important;
}

.blog-posts .blog-post_title {
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}


/* viewed-products  */

.l-container {
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
}

section {
    padding: 40px 0;
}

@media only screen and (max-width: 767px) {
    section {
        padding: 20px 0;
        margin-bottom: 20px;
    }
}

.c-viewed-products {
    background: #fff;
    border-radius: 8px;
}

.c-viewed-products__header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 20px;
}

.c-viewed-products__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    border: 1px solid #365930;
    border-radius: 30px;
    padding: 8px 18px;
}

@media (max-width: 768px) {
    .c-viewed-products__title {
        font-size: 12px;
        line-height: 20px;
        font-weight: 700;
    }
}

.c-viewed-products__clear {
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    color: #181818;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 !important;
}

.c-viewed-products__clear:hover {
    color: #365930 !important;
    text-decoration: underline !important;
    background-color: #fff !important;
}

@media (max-width: 768px) {
    .c-viewed-products__clear {
        font-size: 12px;
        line-height: 20px;
        font-weight: 700;
    }
}

.c-viewed-products__list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 20px;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
}

.c-viewed-products__item {
    position: relative;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 calc(25% - 15px);
    flex: 0 0 calc(25% - 15px);
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    border: 1px solid #043222;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    -webkit-transition: .2s ease;
    transition: .2s ease;
}

.c-viewed-products__item:hover {
    -webkit-box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
    box-shadow: 0 2px 6px #0000001a;
}

@media only screen and (max-width: 1024px) {
    .c-viewed-products__item {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 calc(33.333% - 10px);
        flex: 0 0 calc(33.333% - 10px);
    }
}

@media only screen and (max-width: 767px) {
    .c-viewed-products__item {
        -webkit-box-flex: 0;
        -ms-flex: 0 0 calc(50% - 10px);
        flex: 0 0 calc(50% - 10px);
    }
}

.c-viewed-products__remove {
    position: absolute;
    top: 0px;
    right: 0px;
    z-index: 2;
    background: none;
    border: none;
    color: #fff;
    background-color: #2c4128;
    font-size: 0.8rem;
    cursor: pointer;
    border-radius: 50%;
    padding: 0px 7px;
    margin: 4px;
    height: 22px;
}

.c-viewed-products__link {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    text-align: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-around;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    gap: 6px;
}

.c-viewed-products__content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    width: 62%;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-pack: distribute;
    justify-content: flex-start;
}

.c-viewed-products__thumb img {
    max-width: 92px !important;
    max-height: 100px !important;
    border-radius: 4px !important;
}

.c-viewed-products__name {
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    color: #365930;
    margin: 8px 0 4px;
    text-align: left;
}

@media (max-width: 768px) {
    .c-viewed-products__name {
        font-size: 12px;
        line-height: 20px;
        font-weight: 400;
    }
}

.c-viewed-products__subtitle {
    color: #365930;
    text-align: left;
    font-size: 12px;
    line-height: 18px;
    font-weight: 400;
    margin: 0;
}

.c-related-products__header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 1.5rem
}

.c-related-products__title {
    font-size: var(--fz-h1);
    font-weight: var(--fw-h1);
    line-height: var(--lh-h1)
}

@media (max-width: 768px) {
    .c-related-products__title {
        font-size: var(--fz-h3);
        line-height: var(--lh-h3);
        font-weight: 700
    }

    .c-viewed-products__thumb img {
        max-width: 80px;
        max-height: 90px;
    }

    .c-viewed-products__link {
        gap: 20px;
        flex-direction: column;
    }

    .c-viewed-products__content {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .c-viewed-products__thumb img {
        max-width: 66px;
        max-height: 80px;
    }
}

.c-viewed-products__icon-group {
    display: flex;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.c-viewed-products__icon-group img {
    width: 16px;
    height: 16px;
    cursor: pointer;
    transition: transform 0.2s ease;
    background-color: #043222;
    border-radius: 50%;
    padding: 2px;
    box-sizing: content-box;
}

.c-viewed-products__icon-group img:hover {
    transform: scale(1.2);
}

/* @media (max-width: 480px) {
    .c-viewed-products__icon-group img {
        width: 10px;
        height: 10px;
    }

    .c-viewed-products__remove {
        font-size: 6px;
        cursor: pointer;
        border-radius: 50%;
        padding: 3px 5px;
        margin: 4px;
    }
} */

/* none list-style */
#tab-description ul:first-of-type {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.wgl-content-sidebar {
    margin-top: 40px !important;
}

#woocommerce_product_categories-1 .cat-item a,
#woocommerce_product_categories-2 .cat-item a {
    display: flex !important;
}

.blog-post-single-item .post_author,
.blog-post-single-item .comments_post,
.blog-post-single-item .post_likes,
.blog-post-single-item .share_social-wpapper {
    display: none !important;
}

.search-header .aws-wrapper input {
    border-top-left-radius: 10px !important;
    border-bottom-left-radius: 10px !important;
}

.search-header .aws-search-btn {
    border-top-right-radius: 10px !important;
    border-bottom-right-radius: 10px !important;
}

.product_title {
    font-family: 'Nunito', sans-serif !important;
    font-weight: 700 !important;
}

.price .amount {
    font-family: 'Nunito', sans-serif !important;
}


/* hover button */

.button-primary .wgl-button {
    border: 1px solid #00311F;
    transition: all 0.6s ease-in-out;
}

.button-primary .wgl-button .button__text {
    transition: all 0.6s ease-in-out;
}

.button-primary .wgl-button img {
    transition: filter 0.6s ease-in-out;
}

/* .button-primary:hover .wgl-button {
    background-color: #ffffff;
    border-color: #00311F;
}

.button-primary:hover .wgl-button .button__text {
    color: #00311F;
} */

.button-primary:hover .wgl-button svg {
    fill: #00311F;
}

.button-primary:hover .wgl-button img {
    filter: brightness(0) invert(0);
}

#search-header-mobile {
    border-radius: 10px !important;
}