@font-face {
	font-weight: normal;
	font-style: normal;
	font-family: "woodmart-font";
	src: url("//vinhanhsmart.vn/wp-content/themes/woodmart/fonts/woodmart-font-2-400.woff2?v=8.2.6") format("woff2");
}

@font-face {
	font-family: "star";
	font-weight: 400;
	font-style: normal;
	src: url("//vinhanhsmart.vn/wp-content/plugins/woocommerce/assets/fonts/star.eot?#iefix") format("embedded-opentype"), url("//vinhanhsmart.vn/wp-content/plugins/woocommerce/assets/fonts/star.woff") format("woff"), url("//vinhanhsmart.vn/wp-content/plugins/woocommerce/assets/fonts/star.ttf") format("truetype"), url("//vinhanhsmart.vn/wp-content/plugins/woocommerce/assets/fonts/star.svg#star") format("svg");
}

@font-face {
	font-family: "WooCommerce";
	font-weight: 400;
	font-style: normal;
	src: url("//vinhanhsmart.vn/wp-content/plugins/woocommerce/assets/fonts/WooCommerce.eot?#iefix") format("embedded-opentype"), url("//vinhanhsmart.vn/wp-content/plugins/woocommerce/assets/fonts/WooCommerce.woff") format("woff"), url("//vinhanhsmart.vn/wp-content/plugins/woocommerce/assets/fonts/WooCommerce.ttf") format("truetype"), url("//vinhanhsmart.vn/wp-content/plugins/woocommerce/assets/fonts/WooCommerce.svg#WooCommerce") format("svg");
}

:root {
	--wd-text-font: "Inter", Arial, Helvetica, sans-serif;
	--wd-text-font-weight: 400;
	--wd-text-color: #222222;
	--wd-text-font-size: 14px;
	--wd-title-font: "Inter", Arial, Helvetica, sans-serif;
	--wd-title-font-weight: 500;
	--wd-title-color: rgb(34,34,34);
	--wd-entities-title-font: "Inter", Arial, Helvetica, sans-serif;
	--wd-entities-title-font-weight: 600;
	--wd-entities-title-color: #333333;
	--wd-entities-title-color-hover: rgb(51 51 51 / 65%);
	--wd-alternative-font: "Inter", Arial, Helvetica, sans-serif;
	--wd-widget-title-font: "Inter", Arial, Helvetica, sans-serif;
	--wd-widget-title-font-weight: 500;
	--wd-widget-title-transform: capitalize;
	--wd-widget-title-color: #333;
	--wd-widget-title-font-size: 16px;
	--wd-header-el-font: "Inter", Arial, Helvetica, sans-serif;
	--wd-header-el-font-weight: 600;
	--wd-header-el-transform: capitalize;
	--wd-header-el-font-size: 16px;
	--wd-brd-radius: 10px;
	--wd-primary-color: rgb(251,182,99);
	--wd-alternative-color: rgb(249,174,106);
	--wd-link-color: #333333;
	--wd-link-color-hover: #242424;
	--btn-default-bgcolor: rgb(251,182,99);
	--btn-default-bgcolor-hover: rgb(251,182,99);
	--btn-default-color: rgb(251,182,99);
	--btn-default-color-hover: rgb(251,182,99);
	--btn-accented-bgcolor: rgb(251,182,99);
	--btn-accented-bgcolor-hover: rgb(251,182,99);
	--btn-transform: capitalize;
	--wd-form-brd-width: 1px;
	--notices-success-bg: rgb(251,182,99);
	--notices-success-color: #fff;
	--notices-warning-bg: #E0B252;
	--notices-warning-color: #fff;
}
.wd-popup.wd-age-verify {
	--wd-popup-width: 500px;
}
.wd-popup.wd-promo-popup {
	background-color: #111111;
	background-image: none;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: left center;
	--wd-popup-width: 800px;
}
:is(.woodmart-archive-shop .wd-builder-off,.wd-wishlist-content,.related-and-upsells,.cart-collaterals,.wd-shop-product,.wd-fbt) .wd-products-with-bg, :is(.woodmart-archive-shop .wd-builder-off,.wd-wishlist-content,.related-and-upsells,.cart-collaterals,.wd-shop-product,.wd-fbt) .wd-products-with-bg :is(.wd-product,.wd-cat) {
	--wd-prod-bg:rgb(255,255,255);
	--wd-bordered-bg:rgb(255,255,255);
}
:is(.woodmart-woocommerce-layered-nav, .wd-product-category-filter) .wd-scroll-content {
	max-height: 223px;
}
.wd-page-title {
	background-color: rgb(28,97,231);
	background-image: none;
	background-size: cover;
	background-position: center center;
}
.wd-footer {
	background-color: #ffffff;
	background-image: none;
}
html .wd-nav.wd-nav-main > li > a, html .wd-dropdown-menu.wd-design-sized .wd-sub-menu > li > a, body .wd-dropdown-menu.wd-design-full-width .wd-sub-menu > li > a, body .wd-dropdown-menu.wd-design-aside .wd-wp-menu > .sub-sub-menu > li > a, body .wd-dropdown-menu.wd-design-aside .wd-sub-menu .wd-sub-menu > li > a {
	font-family: "Roboto", Arial, Helvetica, sans-serif;
	font-weight: 700;
	font-size: 18px;
	line-height: 1.6px;
}
.single-product {
	font-size: 16px;
}
.page .wd-page-content {
	background-color: rgb(246,246,246);
	background-image: none;
}
.woodmart-archive-shop:not(.single-product) .wd-page-content {
	background-color: rgb(246,246,246);
	background-image: none;
}
.single-product .wd-page-content {
	background-color: rgb(246,246,246);
	background-image: none;
}
.woodmart-archive-blog .wd-page-content {
	background-color: rgb(246,246,246);
	background-image: none;
}
html .wd-buy-now-btn {
	background: rgb(251,182,99);
}
html .wd-buy-now-btn:hover {
	background: rgb(251,182,99);
}
body, [class*=color-scheme-light], [class*=color-scheme-dark], .wd-search-form[class*="wd-header-search-form"] form.searchform, .wd-el-search .searchform {
	--wd-form-bg: rgb(255,255,255);
}
.wd-popup.popup-quick-view {
	--wd-popup-width: 920px;
}
:root{
--wd-container-w: 1400px;
--wd-form-brd-radius: 5px;
--btn-accented-color: #fff;
--btn-accented-color-hover: #fff;
--btn-default-brd-radius: 5px;
--btn-default-box-shadow: none;
--btn-default-box-shadow-hover: none;
--btn-accented-brd-radius: 5px;
--btn-accented-box-shadow: none;
--btn-accented-box-shadow-hover: none;
}

@media (min-width: 1400px) {
[data-vc-full-width]:not([data-vc-stretch-content]),
:is(.vc_section, .vc_row).wd-section-stretch {
padding-left: calc((100vw - 1400px - var(--wd-sticky-nav-w) - var(--wd-scroll-w)) / 2);
padding-right: calc((100vw - 1400px - var(--wd-sticky-nav-w) - var(--wd-scroll-w)) / 2);
}
}


/* ==========================================================
   1. BỘ LỌC SIDEBAR - LUÔN MỞ SẴN KHÔNG BỊ THU GỌN
   ========================================================== */
.shop-widget-area .woodmart-woocommerce-layered-nav,
.shop-widget-area .widget_layered_nav > ul,
.shop-widget-area .widget > ul,
.shop-widget-area .widget > div {
    display: block !important;
    height: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.shop-widget-area .widget-title .widget-collapse-icon,
.shop-widget-area .widget-title:after {
    transform: rotate(180deg) !important;
}

/* ==========================================================
   2. BẢNG THÔNG SỐ KỸ THUẬT - DÀN ĐỀU CỘT, CHỐNG CO CỤM CHỮ
   ========================================================== */
.single-product-page .woocommerce-product-attributes {
    width: 100% !important;
    max-width: 100% !important;
}

.single-product-page .woocommerce-product-attributes-item__label {
    width: 35% !important;
    min-width: 130px !important;
    vertical-align: top !important;
    font-weight: 600;
}

.single-product-page .woocommerce-product-attributes-item__value {
    width: 65% !important;
    display: table-cell !important;
    line-height: 1.6 !important;
}

.single-product-page .woocommerce-product-attributes-item__value p {
    margin-bottom: 0 !important;
    display: inline !important;
}

/* ==========================================================
   3. ĐÓNG KHUNG THẺ SẢN PHẨM & BO GÓC (CARD STYLE)
   ========================================================== */
.product-grid-item .product-wrapper {
    background-color: #ffffff;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    padding: 12px !important;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 100% !important;
}

.product-grid-item:hover .product-wrapper {
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.product-grid-item .product-element-top img {
    border-radius: 8px !important;
}

/* ==========================================================
   4. NHÃN VÀNG: MIỄN PHÍ KHẢO SÁT VÀ LẮP ĐẶT
   ========================================================== */
.product-grid-item .product-wrapper::after {
    content: "Miễn phí khảo sát và lắp đặt";
    display: block;
    background-color: #fadb14;
    color: #000000;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    padding: 6px 4px;
    margin-top: 10px;
    border-radius: 6px;
    box-shadow: inset 0 -1px 0 rgba(0,0,0,0.1);
}

/* ==========================================================
   5. ẨN BIỂU TƯỢNG GIỎ HÀNG NỔI KHI HOVER VÀO ẢNH
   ========================================================== */
.product-grid-item .woodmart-add-btn,
.product-grid-item .wd-add-btn,
.product-grid-item .wd-action-btn.wd-add-cart-btn {
    display: none !important;
}
/* Ẩn triệt để khối hiển thị danh mục con trên trang Shop và trang Thương hiệu */
.tax-woodmart_brand .products.elements-grid[class*="categories"],
.post-type-archive-product .products.elements-grid[class*="categories"],
.woodmart-archive-shop > .products[class*="categories"],
.woocommerce-products-header + .products.elements-grid,
.wd-products-holder.wd-categories-holder,
.products.elements-grid.categories-style-default,
.products.elements-grid.categories-style-masonry {
    display: none !important;
}
/* Áp dụng hiệu ứng hover đồng bộ cho cả dòng bộ lọc cửa hàng */
.woodmart-woocommerce-layered-nav .wc-layered-nav-term,
.widget_layered_nav ul li {
    padding: 6px 8px;
    border-radius: 4px;
    transition: all 0.25s ease-in-out;
}

/* Khi rê chuột vào dòng: đổi nền nhẹ và trượt cả dòng */
.woodmart-woocommerce-layered-nav .wc-layered-nav-term:hover,
.widget_layered_nav ul li:hover {
    background-color: #faf5ee; /* Nền màu kem nhạt */
    padding-left: 12px; /* Đẩy nhẹ sang phải */
}

/* Đổi màu chữ thuộc tính sang màu cam khi rê chuột */
.woodmart-woocommerce-layered-nav .wc-layered-nav-term:hover a,
.woodmart-woocommerce-layered-nav .wc-layered-nav-term:hover .layer-term-name,
.widget_layered_nav ul li:hover a {
    color: #EB880E !important; /* Cam thương hiệu */
    font-weight: 500;
}

/* Đồng bộ ô số lượng: đổi nền cam và chữ trắng nổi bật */
.woodmart-woocommerce-layered-nav .wc-layered-nav-term:hover .count,
.widget_layered_nav ul li:hover .count {
    background-color: #EB880E !important;
    color: #ffffff !important;
    transition: all 0.25s ease-in-out;
}
/* ==========================================================
   TÙY BIẾN KHUNG BÀI VIẾT CHÂN TRANG & NÚT XEM THÊM (READ MORE)
   ========================================================== */
/* 1. Giới hạn chiều cao ban đầu của bài viết */
.term-description,
.woodmart-archive-description,
.archive-description {
    position: relative;
    max-height: 220px; /* Chiều cao hiển thị ban đầu, đủ thấy đoạn đầu và bảng */
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    margin-top: 25px;
    padding-bottom: 10px;
}

/* 2. Khi bấm "Xem thêm": bung toàn bộ nội dung */
.term-description.is-expanded,
.woodmart-archive-description.is-expanded,
.archive-description.is-expanded {
    max-height: 8000px !important;
}

/* 3. Lớp mờ dần (Gradient Fade) che bớt chân chữ tạo cảm giác còn nội dung */
.term-description:not(.is-expanded)::after,
.woodmart-archive-description:not(.is-expanded)::after,
.archive-description:not(.is-expanded)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    pointer-events: none;
}

/* 4. Nút "Xem thêm" bo góc, viền cam thương hiệu #f37021 */
.btn-readmore-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 15px auto 35px auto;
    padding: 9px 26px;
    background-color: #ffffff;
    color: #f37021;
    border: 1.5px solid #f37021;
    border-radius: 25px; /* Bo tròn viên thuốc hiện đại */
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
    box-shadow: 0 2px 8px rgba(243, 112, 33, 0.08);
}

.btn-readmore-toggle:hover {
    background-color: #f37021;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(243, 112, 33, 0.25);
    transform: translateY(-1px);
}

/* Khung căn giữa nút bấm */
.readmore-btn-wrapper {
    text-align: center;
    width: 100%;
}@media (max-width: 576px) {
	/* Ẩn nút Thêm vào giỏ và cụm chọn số lượng trên mobile */
@media (max-width: 768px) {
    .single-product .single_add_to_cart_button:not(.wd-buy-now-btn),
    .single-product .quantity {
        display: none !important;
    }

    /* Đưa nút Mua Ngay rộng full 100% cân đối */
    .single-product .wd-buy-now-btn,
    .single-product .buy-now-btn {
        width: 100% !important;
        margin: 0 !important;
        display: block !important;
        text-align: center;
        padding: 12px 0 !important;
        font-size: 15px !important;
        font-weight: 600;
        border-radius: 6px;
    }
}
}

