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

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

:root {
	--wd-text-font: "Roboto Condensed", Arial, Helvetica, sans-serif;
	--wd-text-font-weight: 400;
	--wd-text-color: rgb(43,43,43);
	--wd-text-font-size: 14px;
	--wd-title-font: "Roboto Condensed", Arial, Helvetica, sans-serif;
	--wd-title-font-weight: 600;
	--wd-title-transform: capitalize;
	--wd-title-color: #242424;
	--wd-entities-title-font: "Roboto Condensed", Arial, Helvetica, sans-serif;
	--wd-entities-title-font-weight: 500;
	--wd-entities-title-color: rgb(30,30,30);
	--wd-entities-title-color-hover: rgb(51 51 51 / 65%);
	--wd-alternative-font: "Roboto Condensed", Arial, Helvetica, sans-serif;
	--wd-widget-title-font: "Roboto Condensed", Arial, Helvetica, sans-serif;
	--wd-widget-title-font-weight: 600;
	--wd-widget-title-transform: uppercase;
	--wd-widget-title-color: #333;
	--wd-widget-title-font-size: 16px;
	--wd-header-el-font: "Roboto Condensed", Arial, Helvetica, sans-serif;
	--wd-header-el-font-weight: 700;
	--wd-header-el-transform: capitalize;
	--wd-header-el-font-size: 13px;
	--wd-otl-style: dotted;
	--wd-otl-width: 2px;
	--wd-primary-color: #83b735;
	--wd-alternative-color: #fbbc34;
	--btn-default-font-family: "Roboto Condensed", Arial, Helvetica, sans-serif;
	--btn-default-font-weight: 600;
	--btn-default-transform: uppercase;
	--btn-default-bgcolor: #f7f7f7;
	--btn-default-bgcolor-hover: #efefef;
	--btn-accented-bgcolor: #83b735;
	--btn-accented-bgcolor-hover: rgb(112,142,57);
	--wd-form-brd-width: 2px;
	--notices-success-bg: #459647;
	--notices-success-color: #fff;
	--notices-warning-bg: #E0B252;
	--notices-warning-color: #fff;
	--wd-link-color: #333333;
	--wd-link-color-hover: rgb(221,51,51);
	--wd-sticky-btn-height: 70px;
}
.wd-age-verify-wrap {
	--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-promo-popup-wrap {
	--wd-popup-width: 800px;
}
:is(.woodmart-woocommerce-layered-nav, .wd-product-category-filter) .wd-scroll-content {
	max-height: 223px;
}
.wd-page-title .wd-page-title-bg img {
	object-fit: cover;
	object-position: center center;
}
.wd-footer {
	background-color: #ffffff;
	background-image: none;
}
html .wd-nav.wd-nav-main > li > a {
	font-family: "Roboto Condensed", Arial, Helvetica, sans-serif;
	font-size: 16px;
	text-transform: capitalize;
}
html .product.wd-cat .wd-entities-title, html .product.wd-cat.cat-design-replace-title .wd-entities-title, html .wd-masonry-first .wd-cat:first-child .wd-entities-title {
	font-family: "Roboto Condensed", Arial, Helvetica, sans-serif;
	font-weight: 400;
	text-transform: uppercase;
}
html .wd-product .wd-entities-title a {
	font-family: "Roboto Condensed", Arial, Helvetica, sans-serif;
	font-weight: 400;
}
html .wd-product .price {
	font-family: "Roboto Condensed", Arial, Helvetica, sans-serif;
	font-size: 16px;
	text-transform: capitalize;
}
.page :is(.wd-page-content, .whb-header) {
	background-color: rgb(237,237,237);
	background-image: none;
	background-repeat: no-repeat;
	background-size: cover;
	background-attachment: inherit;
	background-position: left top;
}
html .btn.wd-buy-now-btn {
	font-family: "Roboto Condensed", Arial, Helvetica, sans-serif;
	font-size: 13px;
}
html .entry-summary .single_add_to_cart_button, .wd-single-add-cart .single_add_to_cart_button {
	font-family: "Roboto Condensed", Arial, Helvetica, sans-serif;
	font-size: 13px;
}
.mfp-wrap.wd-popup-quick-view-wrap {
	--wd-popup-width: 920px;
}
.woocommerce-product-gallery {
	--wd-gallery-gap: 5px;
}

@media (max-width: 1024px) {
	:root {
		--wd-sticky-btn-height: 95px;
	}

}

@media (max-width: 768.98px) {
	:root {
		--wd-sticky-btn-height: 42px;
	}
	.wd-nav-arrows.wd-pos-sep:not(:where(.wd-custom-style)) {
		--wd-arrow-size: 18px;
	--wd-arrow-icon-size: 16px;
	}

}
:root{
--wd-container-w: 1282px;
--wd-form-brd-radius: 35px;
--btn-default-color: #333;
--btn-default-color-hover: #333;
--btn-accented-color: #fff;
--btn-accented-color-hover: #fff;
--btn-default-bottom-active: -1px;
--btn-default-brd-radius: 0px;
--btn-default-box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .15);
--btn-default-box-shadow-hover: inset 0 -2px 0 rgba(0, 0, 0, .15);
--btn-accented-bottom-active: -1px;
--btn-accented-brd-radius: 0px;
--btn-accented-box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .15);
--btn-accented-box-shadow-hover: inset 0 -2px 0 rgba(0, 0, 0, .15);
--wd-brd-radius: 5px;
}

@media (min-width: 1282px) {
section.elementor-section.wd-section-stretch > .elementor-container {
margin-left: auto;
margin-right: auto;
}
}


.wd-page-title {
background-color: #0a0a0a;
}

/* Ép giá khuyến mãi xuống dòng */
.price ins {
    display: block;
    text-decoration: none;
    color: #ed1111; /* Màu giá mới nếu muốn */
    font-weight: bold;
}

/* Định dạng thẻ Badge màu đỏ */
.custom-red-badge {
    background-color: #ed1111;
    color: white;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 11px;
    margin-left: 3px;
    vertical-align: middle;
    display: inline-block;
}

/* Style cho thẻ bọc custom nếu bạn muốn thêm border hay padding */
.custom-product-wrapper {
    padding: 10px;
    transition: all 0.3s ease;
}

.custom-product-wrapper:hover {
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
/* Xóa bỏ hoàn toàn nhãn Sale của WooCommerce */
span.onsale, 
.onsale, 
.woodmart-ad-label.onsale,
.product-label.onsale {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}
/* Ẩn trạng thái kho hàng trên lưới sản phẩm */
.product-grid-item .stock.in-stock {
    display: none !important;
}
.wd-buttons .wd-quick-view-btn {
    display: none !important;
}
/* Hiệu ứng phóng to ảnh mạnh hơn và làm sắc nét */
.product-grid-item:active .product-image-summary img {
    transform: scale(1.15); /* Tăng từ 1.08 lên 1.15 */
    filter: brightness(1.1); /* Làm ảnh sáng hơn một chút khi chạm */
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Hiệu ứng bung ra mượt hơn */
}

/* Hiệu ứng đổ bóng và nhấc khối sản phẩm */
.product-grid-item:active {
    box-shadow: 0 15px 35px rgba(0,0,0,0.2); /* Đổ bóng đậm và rộng hơn */
    transform: translateY(-5px); /* Nhấc toàn bộ khung sản phẩm lên 5px */
    z-index: 10; /* Đảm bảo sản phẩm đang chạm nằm trên các sản phẩm khác */
    transition: all 0.2s ease;
    background-color: #fff; /* Đảm bảo nền trắng để nổi bật bóng đổ */
}

/* --- Cấu hình chung cho Lưới sản phẩm --- */
.product-grid-item .product-element-top {
    position: relative; /* Để hotsale bám theo ảnh */
}

/* --- Hotsale trên ảnh --- */
.product-grid-item .product-element-top {
    position: relative;
}
.grid-hotsale-label {
    position: absolute;
    bottom: 5px;
    right: 5px;
    z-index: 5;
    background-color: #ff4d4d;
    color: #fff;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 3px;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* --- Attribute (Nằm ngay dưới giá) --- */
.grid-attributes {
    display: flex;
    gap: 2px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.grid-attributes span {
    background: #f1f1f1;
    color: #333;
    font-size: 10px;
    padding: 2px 6px;
    border: 1px solid #e2e2e2;
    border-radius: 2px;
    line-height: 1;
}

/* --- Hoàn tiền --- */
.grid-remoney {
    background-color: #A80303;
    color: #fff;
    font-size: 12px;
    padding: 3px 8px;
    /* Dùng inline-flex hoặc inline-block để background ôm sát chữ */
    display: inline-flex; 
    align-items: center;
    
    margin-top: 4px;
    border-radius: 4px;
    font-weight: 600;
    
    /* Đảm bảo không bị vỡ dòng và không chiếm 100% chiều ngang */
    width: max-content; 
    max-width: 100%;
}

/* --- Khuyến mãi --- */
.grid-promotion {
    font-size: 12px;
    color: #0d0a0a; /* Màu đen */
    margin-top: 6px;
    line-height: 1.3;
    font-style: italic;
    border: 1px solid #007bff; /* Viền xanh dương (màu chuẩn Bootstrap) */
    border-radius: 4px;        /* Bo góc 4px */
    padding: 3px 4px;          /* Thêm khoảng cách đệm để chữ không dính sát vào viền */
    display: inline-block;     /* Giúp khung ôm vừa vặn nội dung chữ */
}

/* --- Tùy chỉnh Mobile --- */
@media (max-width: 767px) {
    .grid-hotsale-label {
        font-size: 9px;
        bottom: -2px;
        right: -2px;
        padding: 1px 3px;
    }
    .grid-attributes span {
        font-size: 9px;
    }
    .grid-promotion {
        font-size: 11px;
        display: -webkit-box;
        -webkit-line-clamp: 1; /* Giới hạn 1 dòng trên mobile cho gọn */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}



/* 2. Style cho lưới Sản phẩm liên kết (Shortcode [wd_linked_products]) */
.linked-product-grid {
    display: grid !important;
    gap: 10px;
    margin: 20px 0;
}

@media (min-width: 1025px) {
    .linked-product-grid { grid-template-columns: repeat(4, 1fr) !important; }
}

@media (max-width: 767px) {
    .linked-product-grid { 
        grid-template-columns: repeat(3, 1fr) !important; 
        gap: 8px;
    }
}

.linked-item {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px 5px;
    border: 1px solid #3f48d4 !important;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    background: #fff;
    text-decoration: none !important;
}

.linked-item .linked-name {
    font-size: 13px;
    color: #333;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.linked-item .linked-price {
    font-size: 13px;
    color: var(--wd-primary-color);
    font-weight: bold;
}

/* Hiệu ứng Hover & Active cho Linked Item */
.linked-item:hover, 
.linked-item.is-active {
    border-color: #e32d2d !important; /* Màu đỏ */
    box-shadow: 0 0 8px rgba(227, 45, 45, 0.2);
    transform: translateY(-2px);
    background-color: #fffafa !important; 
    position: relative; /* Quan trọng để định vị dấu tích bên trong */
    overflow: hidden; /* Cắt bớt phần thừa nếu cần */
}

/* Tạo dấu tích (v) nằm ở dưới bên phải */
.linked-item.is-active::before {
    content: "✓";
    position: absolute;
    bottom: 0; /* Chuyển xuống dưới */
    right: 0;  /* Chuyển sang phải */
    background-color: #e32d2d; /* Màu đỏ giống màu viền */
    color: white;
    font-size: 10px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px 0 0 0; /* Bo góc phía trên bên trái của dấu tích */
    font-weight: bold;
    z-index: 1;
}
 /* Ẩn nút Add to cart trên lưới sản phẩm */
.product-grid-item .woodmart-add-btn, 
.product-grid-item .add_to_cart_button,
.product-grid-item .woodmart-buttons-plugin {
    display: none !important;
}

/* Đảm bảo khung sản phẩm không bị trống trải khi mất nút */
.product-grid-item .product-element-bottom {
    margin-bottom: 10px;
}

/* Container chứa ảnh trong Woodmart Single Product */
.single-product-main-image {
    position: relative;
}

/* Định vị khung chứa ảnh sản phẩm */
.woocommerce-product-gallery {
    position: relative;
}

/* Tùy chỉnh Label Hotsale */
.custom-label.hotsale-label {
    position: absolute;
    top: 15px;      /* Cách mép trên 15px */
    left: 15px;     /* Cách mép trái 15px */
    z-index: 10;    /* Hiển thị đè lên trên ảnh */
    background-color: #ff0000; /* Màu đỏ (thay đổi tùy ý) */
    color: #ffffff;            /* Màu chữ trắng */
    padding: 5px 12px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 3px;
    pointer-events: none; /* Tránh cản trở việc click vào ảnh */
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
	  line-height: 1.2;
}

/* --- Tối ưu cho Mobile (Dưới 768px) --- */
@media (max-width: 767px) {
    .custom-label.hotsale-label {
        top: 10px;      /* Thu hẹp khoảng cách mép */
        left: 10px;
        padding: 3px 8px; /* Nhãn nhỏ hơn một chút */
        font-size: 10px;  /* Chữ nhỏ lại cho cân đối */
        border-radius: 0; /* Có thể để vuông cho hiện đại hơn trên mobile */
    }
}
/* Màu sắc cho chữ Liên hệ */
.contact-for-price-link {
    color: #ed1111 !important; /* Thay màu đỏ bằng màu thương hiệu của bạn */
    font-weight: bold;
    text-decoration: underline;
}

.contact-for-price-link:hover {
    color: #000 !important;
    text-decoration: none;
}

/* Căn chỉnh trong trang Single Product */
.summary-inner .contact-for-price-link {
    font-size: 24px;
    display: block;
    margin-bottom: 15px;
}@media (max-width: 576px) {
	/* Căn trái tiêu đề sản phẩm trên mobile */
.product-grid-item .product-title, 
.product-grid-item .wd-entities-title {
    text-align: left !important;
}

/* Căn trái giá sản phẩm trên mobile */
.product-grid-item .price,
.product-grid-item .wrap-price {
    justify-content: flex-start !important;
    text-align: left !important;
}

/* Nếu bạn có sử dụng các tag */
.product-grid-item .wd-product-cats,
.product-grid-item .custom-remoney {
    text-align: left !important;
}
}

