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

.xc-footer-copyright {
    text-align: center;
    padding: 15px 20px;
    font-size: 14px;
    color: #ffffff;
}

.xc-footer-copyright a {
    background: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    color: #1d4c9e;
    text-decoration: none;
    transition: all 0.3s ease;
}

.xc-footer-copyright a:hover {
    color: #153a79; /* hơi tối hơn #1d4c9e */
}

.absolute-footer {
    color: rgba(0, 0, 0, .5);
    font-size: .9em;
    padding: 10px 0 15px;
    display: none !important;
}

.xc-footer-widget-title {
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 18px;
    line-height: 27px;
    color: #ffffff;
}

.is-divider {
    display: none !important;
}
.xc-heading {
    display: block;
    text-align: center;
    position: relative;
    width: max-content;
    margin: 0 auto 30px auto;
    background: #1d4c9e;
    padding: 5px 10px;
    color: #fff;
    font-family: "Be Vietnam Pro", sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: 0.24px;
}

/* Hình tam giác bên trái */
.xc-heading::before {
    content: "";
    position: absolute;
    bottom: 0;
    background: url(https://hdhcomputer.vn/assets/imgs/bf_titlesp.png) no-repeat;
    background-size: 100% 100%;
    width: 44px;
    height: 100%;
    right: 100%;
    pointer-events: none;
}

/* Hình tam giác bên phải */
.xc-heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    background: url(https://hdhcomputer.vn/assets/imgs/at_titlesp.png) no-repeat;
    background-size: 100% 100%;
    width: 46px;
    height: 100%;
    left: 100%;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .xc-heading {
        font-size: 20px;
        margin-bottom: 20px;
    }
    .xc-heading::before {
        right: 99%;
    }
    .xc-heading::after {
        left: 99%;
    }
}

/* Tiêu chí box - Flatsome override */
.box-tieu-chi.icon-box {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px;
    cursor: pointer;
    background: url(https://hdhcomputer.vn/assets/imgs/bg_tchi_item.png) no-repeat;
    background-size: 100% 100%;
    padding: 20px 15px !important;
}

.box-tieu-chi .icon-box-img {
    width: 70px !important;
    flex-shrink: 0;
    padding: 0 !important;
    margin: 0 !important;
}

.box-tieu-chi .icon-box-img .icon-inner {
    padding: 0 !important;
    margin: 0 !important;
}

.box-tieu-chi .icon-box-img img {
    width: 100% !important;
    height: auto !important;
    transition: all 0.4s linear;
}

.box-tieu-chi:hover .icon-box-img img {
    transform: rotateY(360deg);
}

.box-tieu-chi .icon-box-text {
    width: calc(100% - 70px - 20px);
    padding: 0 !important;
}

.box-tieu-chi .icon-box-text h3 {
    color: #1d4c9e;
    font-family: "Be Vietnam Pro", sans-serif;
    font-size: 18px !important;
    font-weight: 600 !important;
    letter-spacing: 0.18px;
    margin: 0 0 5px 0 !important;
    padding: 0 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all 0.2s linear;
}

.box-tieu-chi:hover .icon-box-text h3 {
    color: var(--c3, #e74c3c);
}

.box-tieu-chi .icon-box-text p {
    color: #333;
    font-family: "Be Vietnam Pro", sans-serif;
    font-size: 13px !important;
    font-weight: 500;
    letter-spacing: 0.13px;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 1024px) {
    .box-tieu-chi.icon-box {
        flex-direction: column !important;
        background: white;
        padding: 10px !important;
        text-align: center;
        border-radius: 10px;
    }
    
    .box-tieu-chi .icon-box-img {
        width: 50px !important;
    }
    
    .box-tieu-chi .icon-box-text {
        width: 100%;
    }
    
    .box-tieu-chi .icon-box-text h3 {
        font-size: 14px !important;
    }
    
    .box-tieu-chi .icon-box-text p {
        font-size: 12px !important;
    }
}

/* ================== HOME CATEGORY SLIDER (Flatsome output) ================== */
/* Chỉ css item, không động vào slider/row/col */

.xc-home-cat .product-category .col-inner {
    height: 100%;
}

.xc-home-cat .product-category .box.box-category {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.xc-home-cat .product-category .box.box-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.xc-home-cat .product-category .box-image {
    padding: 20px 20px 10px;
}

.xc-home-cat .product-category .box-image img {
    max-height: 120px;
    width: auto;
    margin: 0 auto;
    display: block;
    transition: transform 0.3s ease;
}

.xc-home-cat .product-category .box.box-category:hover .box-image img {
    transform: scale(1.05);
}

.xc-home-cat .product-category .box-text {
    padding: 0 20px 20px;
}

.xc-home-cat .product-category .box-text-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.xc-home-cat .product-category .box-text-inner .header-title {
    color: #1d4c9e;
    font-family: "Be Vietnam Pro", sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.18px;
    margin: 0;
    text-transform: none;
}

.xc-home-cat .product-category a {
    text-decoration: none;
}

/* Nút "Xem ngay" style gần giống slide gốc */
.xc-home-cat .product-category .cssbuttons-io-button {
    background: #1d4c9e;
    color: #ffffff;
    font-family: "Be Vietnam Pro", sans-serif;
    font-size: 13px;
    font-weight: 600;
    border-radius: 999px;
    border: none;
    padding: 8px 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.xc-home-cat .product-category .cssbuttons-io-button .icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.xc-home-cat .product-category .cssbuttons-io-button .icon svg {
    width: 16px;
    height: 16px;
}

.xc-home-cat .product-category .cssbuttons-io-button:hover {
    background: #153a79;
    transform: translateY(-1px);
}

.xc-home-cat .product-category .cssbuttons-io-button:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .xc-home-cat .product-category .box.box-category {
        border-radius: 10px;
    }

    .xc-home-cat .product-category .box-image {
        padding: 15px 15px 5px;
    }

    .xc-home-cat .product-category .box-image img {
        max-height: 100px;
    }

    .xc-home-cat .product-category .box-text {
        padding: 0 15px 15px;
    }

    .xc-home-cat .product-category .box-text-inner .header-title {
        font-size: 16px;
    }
}
@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}