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

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    /* Colors */
    --color-primary-text: #1a1a1a;
    --color-light-text: #ffffff;
    --color-primary: var(--fs-color-primary);
    --color-secondary: var(--fs-color-secondary);
    --color-linear-1: var(--fs-color-success);
    --color-linear-2: var(--fs-color-alert);
    --color-background-light: #fafafa;
    --color-background-primary-icon: #f0f5ff;
    --color-background-secondary-icon: #ffebd6;
    /* Font Weights */
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-extrabold: 800;

    /* Font Sizes (Base 16px) */
    /* --- HEADING (Giảm mạnh ~50-60% khi xuống mobile) --- */
    /* Desktop: 72px -> Mobile: ~40px */
    --fs-72: clamp(1.875rem, 3.5vw + 1rem, 4.5rem);

    /* Desktop: 60px -> Mobile: ~36px */
    --fs-60: clamp(1.25rem, 1.25vw + 1rem, 3.75rem);

    /* Desktop: 40px -> Mobile: ~28px */
    --fs-40: clamp(1.25rem, 2.25vw + 1rem, 2.5rem);

    /* --- SUB-HEADING (Giảm vừa ~20-30%) --- */
    /* Desktop: 36px -> Mobile: ~26px */
    --fs-36: clamp(1.625rem, 1.25vw + 1rem, 2.25rem);

    /* Desktop: 32px -> Mobile: ~24px */
    --fs-32: clamp(1.5rem, 2vw + 1rem, 2rem);

    /* Desktop: 28px -> Mobile: ~22px */
    --fs-28: clamp(1.375rem, 1.8vw + 0.8rem, 1.75rem);

    --fs-26: clamp(1.375rem, 1.8vw + 0.8rem, 1.75rem);


    /* --- BODY TEXT (Giảm ít hoặc giữ nguyên) --- */
    /* Desktop: 24px -> Mobile: ~20px */
    --fs-24: clamp(1.125rem, 1.5vw + 0.8rem, 1.5rem);

    --fs-22: clamp(1rem, 1.5vw + 0.8rem, 1.5rem);

    /* Desktop: 20px -> Mobile: ~18px */
    --fs-20: clamp(1rem, 1vw + 0.8rem, 1.25rem);

    /* Desktop: 18px -> Mobile: ~16px */
    --fs-18: clamp(1rem, .5vw + 0.8rem, 1.125rem);

    /* --- SMALL TEXT (Giữ nguyên để đọc được) --- */
    --fs-16: clamp(0.875rem, 0.5vw + 0.8rem, 1rem);
    --fs-15: 0.9375rem;
    --fs-14: 0.875rem;
    --fs-13: 0.8125rem;
    --fs-12: 0.75rem;

    --space-4: 0.25rem;
    --space-8: 0.5rem;
    --space-10: 0.625rem;

    --space-12: 0.75rem;
    --space-16: 1rem;
    --space-20: 1.25rem;
    --space-24: 1.5rem;
    --space-28: 1.75rem;
    --space-32: 2rem;
    --space-36: 2.25rem;
    --space-40: 2.5rem;
    --space-44: 2.75rem;
    --space-48: 3rem;
    --space-52: 3.25rem;
    --space-56: 3.5rem;
    --space-60: 3.75rem;
    --space-64: 4rem;
    --space-70: 4.375rem;
}

body {
    font-family: 'Roboto', sans-serif !important;
    font-size: var(--fs-16) !important;
    font-weight: var(--fw-medium) !important;
    line-height: 1.6;
}

.absolute-footer.dark.medium-text-center.small-text-center {
    display: none;
}

.roboto {
    font-family: 'Roboto', sans-serif !important;
}

.capitalize {
    text-transform: capitalize;
}

/* CF7 */
.wpcf7 input[type="submit"] {
    margin: 0 !important;
}

.wpcf7-form {
    margin: 0 !important;
}

.wpcf7-spinner {
    display: none !important;
}

/* Header Navigation Specific */
.header-nav {
    gap: 1rem;
}

.header-nav>li>a,
.main-menu>li>a,
#mega-menu-wrap-primary #mega-menu-primary>li.mega-menu-item>a.mega-menu-link {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--fs-14) !important;
    font-weight: var(--fw-medium);
    color: var(--color-primary-text) !important;
}

.header-nav .sub-menu>.menu-item>a,
.header-nav>.menu-item>a {
    position: relative;
}

.header-nav .sub-menu>.menu-item>a::before,
.header-nav>.menu-item:not(.has-dropdown)>a::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: all .5s ease;
}

.header-nav .sub-menu>.menu-item:hover>a::before,
.header-nav>.menu-item:hover>a::before,
.header-nav>.menu-item.current-menu-item>a::before,
.header-nav>.current-menu-ancestor>a::before,
.header-nav .sub-menu>.menu-item.current-menu-item>a::before {
    width: 100%;
}

.header-nav .sub-menu>.menu-item:hover>a,
.header-nav>.menu-item:hover>a,
.header-nav>.menu-item.current-menu-item>a,
.header-nav>.current-menu-ancestor>a,
.header-nav .sub-menu>.menu-item.current-menu-item>a {
    color: var(--color-secondary) !important;
}

.header-nav>.menu-item.has-dropdown>.sub-menu {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    top: 115%;
    left: 50%;
    transform: translateX(-50%);
    border: none;
    border-radius: .5rem;
    box-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.2);
}

.nav-dropdown.nav-dropdown-default>li>a {
    border-bottom: none !important;
}

.nav-dropdown-has-arrow li.current-dropdown.has-dropdown:after,
.nav-dropdown-has-arrow li.current-dropdown.has-dropdown:before {
    display: none;
}

/* Custom Title */
.title-main-primary {
    position: relative;
    padding-bottom: 1.75rem;
    color: var(--color-primary) !important;
}

.title-main-white {
    position: relative;
    padding-bottom: 1.75rem;
    color: var(--color-light-text) !important;
}

.title-main-primary::after,
.title-main-white::after {
    background-image: url(./../../uploads/2026/05/icon-title.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 80px;
    position: absolute;
    text-align: center;
    content: '';
    width: 100px;
    height: 20px;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

.title-main-icon-white {
    position: relative;
    padding-left: 3rem;
    color: #fff !important;
}

.title-main-icon {
    position: relative;
    padding-left: 3rem;
    color: var(--color-primary) !important;
}

.title-main-icon:before,
.title-main-icon-white:before {
    position: absolute;
    content: '';
    background: url(./../../uploads/2026/05/logo-small.png) no-repeat right bottom;
    background-size: contain;
    width: 38px;
    height: 50px;
    bottom: 0px;
    left: 0px;
}

/* Contact - Map */
.home-map iframe {
    width: 100%;
    aspect-ratio: 5 / 2;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, .2) !important;
}

/* Vì sao chọn - WCU */
.wcu-wrapper {
    align-items: stretch !important;
}

.wcu-wrapper>.col {
    display: flex;
}

.wcu-wrapper>.col>.col-inner {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border-radius: 1rem !important;
    box-shadow: 0 0 1.5rem rgba(0, 0, 0, .1);
    overflow: hidden;
}

.wcu-wrapper>.col>.col-inner>.icon-box {
    flex: 1;
    z-index: 1;
    position: relative;
}

.wcu-wrapper>.col>.col-inner>.icon-box .icon-box-text>* {
    color: var(--color-light-text);
}

.wcu-wrapper>.col>.col-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .1);
    background-image: url(./../../uploads/2026/05/bg-wcu.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Star Ratings */
.star-rating:before,
.woocommerce-page .star-rating:before {
    color: #fdb400 !important;
}

/* Testimonial */
.testimonial-text>* {
    color: var(--color-light-text) !important;
}

/* Footer */
.footer-wrapper .section-title-main {
    border-bottom-color: var(--color-primary) !important;
}

.footer-wrapper .ux-menu-link:hover>a,
.footer-wrapper .ux-menu-link--active>a {
    color: var(--color-primary) !important;
    font-weight: var(--fw-bold) !important;
}

.facebook-wrapper iframe {
    border-radius: .5rem !important;
    box-shadow: 0 0 1.5rem 0.75rem rgba(0, 0, 0, .1) !important;
    margin-bottom: 1rem;
}

/* Product Grid Equal Height */
/* Bắt thẻ row có chứa product-small để stretch cột */
.row:has(.product-small.col) {
    align-items: stretch !important;
}

.product-small.col {
    display: flex !important;
}

.product-small.col>.col-inner {
    width: 100%;
    height: 100%;
    /* Cực kỳ quan trọng để inner cao bằng col */
    display: flex;
    flex-direction: column;
}

.product-small.col>.col-inner>.product-small.box {
    flex: 1;
    /* Stretch the box */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-small.box .box-text {
    flex: 1;
    /* Stretch the text area */
    display: flex;
    flex-direction: column;
}

/* Đảm bảo price-wrapper giãn hết cỡ trong box-text */
.product-small.box .box-text .price-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
	justify-content: flex-end;
}

/* Đẩy giá và nút xuống đáy price-wrapper */
.product-small.box .box-text .product-short-description {
    margin-bottom: auto !important;
}

.product-small.box {
    border: 1px solid rgba(0, 0, 0, .2) !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, .1) !important;
    border-radius: 1.5rem;
    overflow: hidden;
}

.product-small .box-text.box-text-products {
    text-align: center !important;
    padding: var(--fs-24) !important;
}

.product-small.box .box-image {
    margin: 0;
}

.product-small.box .box-image a>img {
    aspect-ratio: 4 / 3;
    object-fit: contain;
    width: 100%;
    height: auto;
}

.product-small.box p.name.product-title.woocommerce-loop-product__title {
    font-size: var(--fs-24);
    font-weight: bold;
}

.product-small .price-wrapper .price {
    font-size: var(--fs-24);
    margin-top: 1rem;
}

.product-small .price-wrapper .price del {
    font-size: var(--fs-20);
}

.product-small .price-wrapper a.button {
    margin-top: 1rem !important;
    border-radius: 1rem;
    padding: 1rem;
    line-height: 1;
}

/* Product Short Description in Grid */
.product-short-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: var(--fs-14);
    margin-top: 10px;
    margin-bottom: 10px;
    color: var(--color-primary-text);
    opacity: 0.8;
    flex: 1;
    /* Đẩy các phần tử bên dưới (như button) xuống đáy */
}

/* Popup Contact */

/* 07/09/2026 */
@media (max-width: 559px) {
	
	.product-small .box-text.box-text-products {
		padding: .75rem !important;	
	}
	
	.product-small.box p.name.product-title.woocommerce-loop-product__title {
		font-size: 14px !important;
	}
	
	.product-short-description {
		display: none;
	}
	
	.product-small .price-wrapper .price {
		font-size: 1rem !important;
		margin-top: .5rem !important;
	}
	
	.product-small .price-wrapper a.button {
		margin-top: .5rem !important;
		padding: .75rem !important;
	}
	
	.custom-nav-tabs {
		gap: .375rem !important;
	}
}