/*
Theme Name:           Flatsome
Theme URI:            http://flatsome.uxthemes.com
Author:               UX-Themes
Author URI:           https://uxthemes.com
Description:          Multi-Purpose Responsive WooCommerce Theme
Version:              3.19.12
Requires at least:    6.4
Requires PHP:         7.4
WC requires at least: 8.3
Text Domain:          flatsome
License:              https://themeforest.net/licenses
License URI:          https://themeforest.net/licenses
*/


/***************
All custom CSS should be added to Flatsome > Advanced > Custom CSS,
or in the style.css of a Child Theme.
***************/
.woocommerce-pagination {
    text-align: center;
    margin-top: 30px;

}

.woocommerce-pagination .page-numbers {
    display: inline-block;
    margin: 0 5px;
    padding: 5px 10px;
    font-size: 15px;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;

}

.woocommerce-pagination .page-numbers:hover {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;

}

.woocommerce-pagination .page-numbers.current {
    background-color: #0073aa;
    color: #fff;
    border-color: #0073aa;
    font-weight: bold;
    cursor: default;

}

.woocommerce-pagination .page-numbers.dots {
    background: none;
    border: none;
    cursor: default;
    color: #999;
    padding: 10px 12px;

}

.woocommerce-pagination .page-numbers.prev,
.woocommerce-pagination .page-numbers.next {
    font-weight: bold;

}

.badge-inner.on-sale {
    background-color: #ffffff !important;
    font-size: 12px;

}

form.form_filter_default {
    width: 15%;

}

.form_filter_default select {
    width: 100%;
    border-radius: 30px;
    text-align: center;
    font-size: 15px;
    font-weight: bold;
    box-shadow: 0px 0px 3px 1px #b1384840;

}

.form_filter_default .filter_box {
    width: 15%;
    display: flex;
    display: block;
    position: relative;
    text-align: center;

}

div.filters_custom {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: stretch;
    justify-content: center;

}

ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 10px 10px;
}

ul.products>* {
    background-color: #ffffff;

}

.box-image {
    height: 650px;

}

div.box-text {
    padding: 10px;
}

div.box-text .title-wrapper {
    padding: 0 !important;
    width: 50% !important;
    min-width: 50% !important;
}

div.box-text>a {
    font-weight: 600;
    color: #000;
}

div.box-text .price-wrapper {
    text-align: right;
    flex: 1;
    width: 50%;
}

div.box-text .price-wrapper .price {
    display: flex;
    flex-direction: row;
    gap: 12px;
    font-size: 15px;
    justify-content: flex-end;
}

div.box-text .price-wrapper .price del span.amount {
    color: red;
}

div.box-text .price-wrapper .price ins span.amount {
    color: #0d9906;
}

.image-fade_in_back a img {
    height: 650px;
    object-fit: cover;
    border-radius: 5px 5px 0 0px;
}

ul.products div.product-type-variable {
    border: 1px solid #cfcfcf;
    padding: 0px;
    border-radius: 5px;
    display: relative;
    box-shadow: 1px 1px 5px #e5e5e5, inset 0px 0px 4px #919191;

}

ul.archive-variable-items {
    display: flex !important;
    justify-content: center !important;
    flex-direction: row !important;
    align-content: center !important;
    align-items: center !important;
    gap: 10px;
    padding: 5px 0px;
}

ul.variations .woo-variation-items-wrapper:nth-child(2) {
    display: none;
    position: absolute;
    top: -110px;
    left: 0;
    background-color: #ffffffab;
    width: 100%;
    height: 5vh;

}

ul.products div.product-type-variable:hover ul.variations .woo-variation-items-wrapper:nth-child(2) {
    display: block;
    display: flex;
    transition: opacity 0.5s cubic-bezier(.32, .64, .81, .64), visibility 0s 1s;
    align-content: center;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start !important;

}

div.variable-item-contents label {
    display: flex;
    padding: 2px 0;
    width: auto;
    margin: 0;
    flex-direction: row;
    gap: 5px;
}

div.variable-item-contents label>input,
div.variable-item-contents label>span {
    margin: 0;
}

/* Responsive: 3 cột trên tablet */
@media (max-width: 1024px) {
    ul.products {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 10px 4px;

    }

    div.box-text .price-wrapper .price {
        display: flex;
        flex-direction: column;
    }

    span.variable-item-radio-value-wrapper>img {
        display: none;
    }
}


/* Responsive: 2 cột trên mobile lớn */
@media (max-width: 768px) {
    ul.products {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 10px 4px;

    }

    .product-small .box-text {
        flex-direction: column;
    }

    .product-small .box-text .title-wrapper,
    .product-small .box-text .price-wrapper {
        width: 100% !important;
    }

    div.box-text .price-wrapper .price {
        display: flex;
        flex-direction: row;
    }

    span.variable-item-radio-value-wrapper>img {
        display: none;
    }
}


/* Responsive: 1 cột trên điện thoại nhỏ */
@media (max-width: 480px) {
    ul.products {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px 4px;

    }

    span.variable-item-radio-value-wrapper>img {
        display: none;
    }

    .product-small .box-text {
        flex-direction: column;
    }

    .product-small .box-text .title-wrapper,
    .product-small .box-text .price-wrapper {
        width: 100% !important;
    }

    div.box-text .price-wrapper .price {
        display: flex;
        flex-direction: row;
        font-size: 13px;
    }

    .box-image {
        height: 220px !important;

    }

    .image-fade_in_back a img {
        height: 220px;
        object-fit: cover;
        border-radius: 5px 5px 0 0px;

    }

    form.form_filter_default {
        width: 35%;

    }

    ul.variations .woo-variation-items-wrapper:nth-child(2) {
        display: none;
        position: absolute;
        bottom: 113px;
        right: 0;

    }

    ul.products div.product-type-variable:hover ul.variations .woo-variation-items-wrapper:nth-child(2) {
        display: block;
        transition: opacity 0.5s cubic-bezier(0.32, 0.64, 0.81, 0.64), visibility 0s 1s;

    }


}

ul.variations {
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;

}

span.variable-item-radio-value-wrapper>img {
    display: none !important;
}



.gtranslate_wrapper{
  position: relative;
  display: inline-block;
}

.gtranslate_wrapper .glink {
  display: none;
}

.gtranslate_wrapper .gt-current-lang {
  display: inline-block;
}

.gtranslate_wrapper:hover .glink {
  display: inline-block;
  background: white;
}

.gtranslate_wrapper .glink img {
  display: block;
}

.gtranslate_wrapper .gt-current-lang {
  border: 1px solid #007bff;
  border-radius: 4px;
}

