
/*
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. ***************/

/* === Hiệu ứng hover vào sản phẩm === */
.box-image:hover::before,
.post-item:hover .box-image::before,
.img:hover .img-inner::before {
    -webkit-animation: shine .75s;
    animation: shine .75s
}

@-webkit-keyframes shine {
    100% {
        left: 125%
    }
}

@keyframes shine {
    100% {
        left: 125%
    }
}

.box-image::before,
.img .img-inner::before {
    position: absolute;
    top: 0;
    left: -75%;
    z-index: 2;
    display: block;
    content: '';
    width: 50%;
    height: 100%;
    background: -webkit-linear-gradient(left, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, .3) 100%);
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, .3) 100%);
    -webkit-transform: skewX(-25deg);
    transform: skewX(-25deg)
}

.product-small.box:after,
.mh-col-shadow>.col-inner:after,
.post-item>.col-inner:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    transform-origin: right;
    transition: transform .5s ease-in-out;
    transform: scaleX(0);
}

.product-small.box:after,
.mh-col-shadow>.col-inner:after,
.post-item>.col-inner:after {
    background: var(--primary-color);
}

.product-small.box:hover:after,
.mh-col-shadow:hover>.col-inner:after,
.post-item:hover>.col-inner:after {
    transform-origin: left;
    transform: scaleX(1);
}

/* === Mô tả ngắn Sofa Việt Mỹ === */
.sofa-short-description-kika {
    border: 1px solid #f15c22;
    border-radius: 8px;
    margin-bottom: 25px;
    overflow: hidden;
}

.sofa-short-description-kika__header {
    background-color: #f15c22;
    color: #fff;
    padding: 10px 15px;
    font-weight: bold;
    font-size: 16px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.sofa-short-description-kika__body {
    padding: 15px 20px;
    font-size: 15px;
    line-height: 1.4;
    background-color: #f1f1f1;
}

/* --- Form box style giống "Thông tin sản phẩm" --- */
.sofa-custom-order-box {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    background-color: #f1f1f1;
}

.sofa-custom-order-box::before {
    content: "ĐÓNG GHẾ SOFA THEO YÊU CẦU";
    display: block;
    background: #f4511e;
    color: #fff;
    font-weight: bold;
    padding: 10px 15px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    margin: -20px -20px 20px -20px;
    font-size: 16px;
}

/* --- Layout label + select nằm 1 hàng --- */
.sofa-custom-order-box .form-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: -7px;
    flex-wrap: wrap;
}

.sofa-custom-order-box label {
    min-width: 150px;
    font-weight: bold;
    margin: 0;
}

.sofa-custom-order-box .form-control {
    flex: 1;
    min-width: 220px;
    padding: 3px 12px;
    font-size: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    height: 30px;
}

/* --- Button --- */
.sofa-custom-order-box input[type="submit"] {
    background-color: #f4511e;
    color: #fff;
    padding: 0.2em 1.5em !important;
    border: none;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.sofa-custom-order-box input[type="submit"]:hover {
    background-color: #e04b1d;
}


/* Mobile: label trên, input dưới cho dễ bấm */
@media (max-width: 600px) {
    .sofa-custom-order-box .form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .sofa-custom-order-box label {
        min-width: unset;
        margin-bottom: 2px;
        font-size: 14px;
    }

    .sofa-custom-order-box .form-control,
    .sofa-custom-order-box input[type="tel"] {
        width: 100%;
        min-width: 0;
        font-size: 15px;
    }
}

.promo-sidebar.sofa-highlight {
    border: 2px solid #f4511e;
    border-radius: 14px;
    padding: 24px 18px 15px 18px;
    background: #fff;
    max-width: 370px;
    margin-bottom: 30px;
    font-size: 15.5px;
    box-shadow: 0 4px 18px rgba(244, 81, 30, 0.09);
    transition: box-shadow 0.3s;
}

.promo-sidebar.sofa-highlight:hover {
    box-shadow: 0 8px 28px rgba(244, 81, 30, 0.16);
}

.promo-sidebar .promo-header {
    font-weight: bold;
    font-size: 17px;
    background: #fff7f1;
    color: #f4511e;
    padding: 11px 16px 11px 5px;
    border-radius: 10px 10px 0 0;
    margin: -24px -18px 15px -18px;
    border-bottom: 1.5px solid #f4511e;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 6px rgba(244, 81, 30, 0.04);
}

.promo-sidebar ul {
    padding-left: 20px;
    margin-bottom: 9px;
    list-style: disc;
}

.promo-sidebar .promo-note {
    color: #d32f2f;
    font-size: 13.5px;
    margin-top: 7px;
    font-style: italic;
}

.promo-sidebar .showroom-header {
    font-weight: bold;
    font-size: 15.5px;
    background: #333;
    color: #fff;
    padding: 7px 14px;
    border-radius: 8px;
    margin: 20px -5px 7px -5px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.promo-sidebar .hotline {
    font-size: 15px;
    color: #e53935;
    font-weight: 600;
    margin-top: 8px;
}

.promo-sidebar .extra-service {
    margin-top: 17px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14.2px;
    align-items: center;
}

.promo-sidebar .extra-service div {
    display: flex;
    align-items: center;
    gap: 6px;
}

.promo-sidebar img {
    width: 25px;
    margin-right: 3px;
    vertical-align: middle;
    border-radius: 4px;
    box-shadow: 0 1px 5px rgba(150, 150, 150, 0.07);
}

/* Mobile */
@media (max-width:600px) {
    .promo-sidebar.sofa-highlight {
        max-width: 100%;
        padding: 10px 5px;
        font-size: 14px;
    }

    .promo-sidebar .promo-header {
        font-size: 15px;
        padding: 7px 5px;
        border-radius: 8px 8px 0 0;
    }

    .promo-sidebar .showroom-header {
        font-size: 14px;
        padding: 5px 4px;
        border-radius: 7px;
    }

    .promo-sidebar .extra-service {
        flex-direction: column;
        align-items: flex-start;
        gap: 7px;
    }
}


/* CSS CHO CHƯƠNG TRÌNH KHUYẾN MÃI */
.promo-sidebar__block.km {
    border: 2px solid #f4511e;
    border-radius: 12px;
    margin-bottom: 22px;
    background: #fff;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 2px 8px rgba(244, 81, 30, 0.08);
}

.promo-sidebar__header.km {
    background: #f4511e;
    color: #fff;
    padding: 13px 20px 12px 20px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 12px 12px 0 0;
    letter-spacing: 0.2px;
}

.promo-km-list {
    background: #fafafa;
    padding: 18px 24px 8px 24px;
}

.promo-km-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 13px;
    font-size: 16px;
    color: #212121;
}

.promo-km-item i {
    color: #f4511e;
    font-size: 20px;
    min-width: 22px;
    margin-top: 3px;
}

.promo-km-item b {
    color: #f4511e;
}

.promo-km-note {
    color: #d32f2f;
    font-size: 14px;
    margin: 0 0 7px 0;
    font-style: italic;
    padding: 0 5px 10px 5px;
}

@media (max-width:700px) {
    .promo-sidebar__header.km {
        font-size: 15px;
    }

    .promo-km-list {
        padding: 10px 8px 8px 14px;
    }

    .promo-km-item {
        font-size: 14.3px;
    }
}

/* CSS cho Block Hệ Thống Showroom */
.promo-sidebar__block.showroom-new {
    border: 2px solid #f4511e;
    border-radius: 12px;
    margin-bottom: 22px;
    background: #fff;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 2px 8px rgba(40, 40, 40, 0.10);
}

.promo-sidebar__header.showroom-new {
    background: #f4511e ;
    color: #fff;
    padding: 13px 20px 12px 20px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 12px 12px 0 0;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    gap: 11px;
}

.promo-showroom-list {
    background: #fafafa;
    padding: 18px 24px 8px 24px;
}

.promo-showroom-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 11px;
    font-size: 16px;
    color: #222;
}

.promo-showroom-item i {
    color: #f4511e;
    font-size: 20px;
    min-width: 22px;
    margin-top: 2px;
}

.promo-showroom-hotline {
    color: #e53935;
    font-weight: 600;
    font-size: 16px;
    margin: 10px 0 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width:700px) {
    .promo-sidebar__header.showroom-new {
        font-size: 15px;
    }

    .promo-showroom-list {
        padding: 10px 8px 8px 14px;
    }

    .promo-showroom-item {
        font-size: 14.3px;
    }
}

.single-product .cart {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
}

/* Style đồng nhất cho cả 2 nút trên mọi thiết bị */
.single-product .cart .single_add_to_cart_button.button.alt,
.single-product .cart .ux-buy-now-button.button.primary {
    border-radius: 6px !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    padding: 0.2em 0.5em !important;
    min-width: 135px;
    background: #f37021 !important;
    color: #fff !important;
    border: none !important;
    box-shadow: none !important;
    margin: -1px 2px 1px 0px !important;
    letter-spacing: 0px;
    white-space: nowrap;
    display: inline-block;
    transition: background 0.2s;
    line-height: 1.1 !important;
}

/* Hover */
.single-product .cart .single_add_to_cart_button.button.alt:hover,
.single-product .cart .ux-buy-now-button.button.primary:hover {
    background: #d64e06 !important;
    color: #fff !important;
}

/* Responsive: nhỏ lại trên mobile */
@media (max-width: 600px) {
    .single-product .cart {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .single-product .cart .single_add_to_cart_button.button.alt,
    .single-product .cart .ux-buy-now-button.button.primary {
        min-width: 100px;
        font-size: 16px !important;
        padding: 0.7em 1em !important;
        margin: 0 0 0.3em 0 !important;
    }
}

/* CSS cho Widgets Sản Phẩm Bán Chạy */
#product-sidebar .widget_products {
    border: 2px solid #f4511e !important;
    border-radius: 18px !important;
    background: #fff !important;
    margin-bottom: 22px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06) !important;
    overflow: hidden !important;
    padding: 0 !important;
    width: 100% !important;
}

/* Tiêu đề nổi bật nền cam, có icon lửa */
#product-sidebar .widget_products .widget-title,
#product-sidebar .widget_products > h3 {
    background: #f4511e !important;
    color: #fff !important;
    font-size: 18px !important;
    font-weight: bold !important;
    padding: 16px 24px 12px 24px !important;
    margin: 0 0 0 0 !important;
    border-bottom: 2px solid #f4511e !important;
    border-radius: 18px 18px 0 0 !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex !important;
    align-items: center;
    gap: 10px;
    position: relative;
}

#product-sidebar .widget_products .widget-title:before,
#product-sidebar .widget_products > h3:before {
    content: "\f06d";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #fff;
    font-size: 20px;
    margin-right: 7px;
    display: inline-block;
}

/* Danh sách sản phẩm - padding đều, đẹp */
#product-sidebar .widget_products ul,
#product-sidebar .widget_products ul.product_list_widget {
    padding: 18px 24px 8px 24px !important;
    margin: 0 !important;
    background: #fff !important;
}

/* Các sản phẩm giữ nguyên style mặc định, chỉ thêm padding trái/phải đều */
#product-sidebar .widget_products ul li,
#product-sidebar .widget_products ul.product_list_widget li {
    background: #fff !important;
}

/* xóa hoàn toàn Divider hiển thị dưới Sản Phẩm Bán Chạy - sidebar */
#product-sidebar .is-divider,
#product-sidebar .is-divider.small {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Sản phẩm tương tự - trang chi tiết sản phẩm */
.product-small.box {
    background-color: #f3f3f3;
}









@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE ***************/
}
