/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
.amlab_slider {position: relative;}
.amlab_slider .image-cover {padding-top: 60% !important;}
.grid-tools {
    height: 100%;
    transform: unset !important;
}

.grid-tools a,
.grid-tools a:hover {
    opacity: 0 !important;
}

#sanhhanhlang {
    background-color: #0A0A0AE5 !important;
}

.slider-vertical-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
    justify-content: space-between;
}

.slider-vertical-wrapper .slider-main {
    flex: 1;
    max-width: 75%;
}

.slider-vertical-wrapper .slider-nav-vertical {
    width: 25%;
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    max-height: 65.5vh;
    overflow-y: scroll;
}

.slider-vertical-wrapper .slider-nav-vertical::-webkit-scrollbar {
    width: 8px;
    /* Width of the scrollbar */
}

.slider-vertical-wrapper .slider-nav-vertical::-webkit-scrollbar-track {
    background: #1C1C1EE5;
    /* Slightly lighter than the background for contrast */
    border-radius: 10px;
    /* Rounded edges for the track */
}

.slider-vertical-wrapper .slider-nav-vertical::-webkit-scrollbar-thumb {
    background: white;
    /* A subtle red tone to match the vibe of the first image */
    border-radius: 10px;
    /* Rounded edges for the thumb */
    border: 2px solid #1C1C1EE5;
    /* Adds a border to the thumb for a refined look */
}

.slider-vertical-wrapper .slider-nav-vertical::-webkit-scrollbar-thumb:hover {
    background: white;
    /* Lighter red on hover for interactivity */
}

.slider-vertical-wrapper .slider-nav-vertical .thumbnail-item {
    margin-bottom: 10px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s, border 0.3s;
    width: 100%;
    height: 130px;
}

.slider-vertical-wrapper .slider-nav-vertical .thumbnail-item img {
    width: 100%;
    height: 100%;
    display: block;
    aspect-ratio: 1 / 2;
    object-fit: cover;
}

.slider-vertical-wrapper .slider-nav-vertical .thumbnail-item.is-selected {
    opacity: 1;
    border: 2px solid #000;
}

.slider-vertical-wrapper .loading-spin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


.slider-custom {
    padding: 0;
    bottom: 0px;
}

.loading-spin.centered {
    display: none !important;
}

.slider-custom .flickity-slider .img {
    max-width: 25% !important;
    margin: 5px;
    border: 2px solid #fff;
}

.slider-custom .flickity-page-dots {
    display: none;
}

.product-gallery-slider .flickity-prev-next-button.next {
    right: 2% !important;
}

.product-gallery-slider .flickity-prev-next-button.previous {
    left: 2% !important;
}

.mota_phong .flex_item,
.chitiet_phong .flex_item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.mota_phong .flex_item img,
.chitiet_phong .flex_item img {
    width: 30px;
    height: 30px;
}

.px_20px>h3 {
    color: #e65100;
}

.px_20px {
    padding: 10px 20px 10px !important;
    border-bottom: 1px solid #ccc;
}

.lightbox-content {
    max-width: 1200px !important;
}

.product-small.box {
    box-shadow: #ccc 0px 5px 13px -5px;
    border-radius: 8px;
}

.box .box-text-products {
    padding: 15px 20px 10px;
}

.box .box-text-products .custom-price {
    text-align: left;
}

.box .box-text-products .custom-price .price-number {
    color: #e65100;
    font-size: 24px;
    font-weight: bold;
}

.box .box-text-products .custom-price .price-subtext {
    font-size: 14px;
    color: #555;
}

.box-title {
    padding: 20px 20px 10px;
}

.box-title .woocommerce-loop-product__title {
    margin: 0 !important;
    font-size: 18px;
    font-weight: bold;
}

.box-info {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
}

.box-extra-info {
    padding: 10px 20px;
    border-bottom: 1px solid rgb(229, 231, 235);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 2%;
    row-gap: 10px;
}

.box-info .flex_item,
.box-extra-info .flex_item {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 7px;
    width: 49%;
}

.box-info .flex_item img,
.box-extra-info .flex_item img {
    width: 35px !important;
    height: 35px !important;
    object-fit: contain !important;
}

.amlab_slider .flickity-page-dots .dot {
    width: 8px !important;
    height: 8px !important;
    border: 1px solid #ccc !important;
}

.flickity-prev-next-button.next {
    left: unset !important;
    right: 2% !important;
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    opacity: 1 !important;
    z-index: 10 !important;
}

.flickity-prev-next-button.previous {
    right: unset !important;
    left: 2% !important;
    margin: 0 !important;
    width: 40px !important;
    z-index: 10 !important;
    opacity: 1 !important;
    height: 40px !important;
}

.flickity-prev-next-button>svg {
    width: 20px !important;
    height: 20px !important;
}

.have_ajax_paging .post-item .is-divider {
    display: block;
    transition-property: all;
    transition-duration: 0.8s;
    transition-timing-function: ease-in-out;
    background-color: rgba(255, 255, 255, 0.2);
    height: 1px;
}

.have_ajax_paging .post-item:hover .is-divider {
    width: 100%;
    max-width: 100%;
    margin: 10px auto 30px;
    transition-property: all;
    transition-duration: 0.8s;
    transition-timing-function: ease-in-out;
}

.have_ajax_paging .post-item i {
    color: #fff;
    font-size: 20px;
    display: none;
}

.have_ajax_paging .post-item:hover i {
    display: block;
}

/*.have_ajax_paging .post-item .box:hover .box-text {
	transform: translatey(20px);
}*/
@media only screen and (max-width: 48em) {

    /*************** ADD MOBILE ONLY CSS HERE  ***************/
    #sanhhanhlang {
        padding: 10px !important;
    }

    .slider-vertical-wrapper {
        flex-direction: column;
    }

    .slider-vertical-wrapper .slider-main {
        max-width: 100%;
    }

    .slider-vertical-wrapper .slider-nav-vertical {
        width: 100%;
        margin-left: 0;
        margin-top: 20px;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
    }

    .slider-vertical-wrapper .slider-nav-vertical .thumbnail-item {
        display: inline-block;
        width: 100px;
        margin-right: 10px;
        margin-bottom: 0;
    }

    .box-info .flex_item img,
    .box-extra-info .flex_item img {
        width: 25px !important;
        height: 25px !important;
    }

    .box-info .flex_item,
    .box-extra-info .flex_item {
        font-size: 13px !important;
    }

}