/*
Theme Name:           Flatsome
Theme URI:            http://flatsome.uxthemes.com
Author:               UX-Themes
Author URI:           https://uxthemes.com
Description:          Multi-Purpose Responsive WooCommerce Theme
Version:              3.20.9
Requires at least:    6.4
Requires PHP:         7.4
WC requires at least: 8.3
Text Domain:          flatsome
License:              https://themeforest.net/licenses
License URI:          https://themeforest.net/licenses
*/


/***************
All custom CSS should be added to Flatsome > Advanced > Custom CSS,
or in the style.css of a Child Theme.
***************/
:root {
	--bs-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
	--bs-box-shadow-min: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

p, li { margin-bottom: 5px; }

footer ul li:last-child {
    margin-bottom: 0;
}

footer ul li { margin-left: 12px !important; }

footer ul li::marker {
    font-size: 12px;
}

.absolute-footer {
    color: white !important;
    padding: 15px 0px;
}


.icon.button.circle.is-outline {
	margin-bottom: 0;
	border: 0.5px solid;
	place-content: center;
}

@media (min-width: 768px) {
	.col-flex .col-inner {
		display: flex;
		justify-content: flex-end;
		align-items: center;
	}
	
	.col-flex .social-icons.follow-icons {
		display: flex;
		flex-wrap: nowrap;
		white-space: nowrap;
	}

	.col-flex .icon.button.circle.is-outline {
		margin-bottom: 0;
		border: 0.5px solid;
		margin-left: 10px;
		place-content: center;
	}
	
	a.header-cart-link.nav-top-link.icon.primary.button.round.is-small {
    font-size: 14px;
    background: #1b0f06 !important; /* Thay màu xanh đậm bằng màu bạn muốn tại đây */
    color: white !important; /* Màu chữ (ví dụ màu trắng) */
    border-radius: 99px;
}
}

@media (max-width: 768px) {
	.col-flex .col-inner h3.uppercase {
		margin-bottom: 15px !important;
	}

}

/* 1. Tùy chỉnh ô nhập Email (Khung trắng) */
footer input.wpcf7-form-control.wpcf7-email.wpcf7-validates-as-required.wpcf7-text.wpcf7-validates-as-email {
    height: 40px !important;
    border-radius: 99px !important;
    border: 1px solid #e0e0e0 !important; /* Thêm viền nhẹ cho rõ khung */
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    padding: 0px 140px 0px 30px !important; /* Chừa khoảng trống bên phải 140px để không đè chữ vào nút */
    font-size: 14px !important;
    margin: 0 !important;
    width: 100% !important;
    background: #fff !important;
    display: block !important;
}

/* 2. Tùy chỉnh nút Gửi (Nút đỏ to hơn khung) */
footer input.wpcf7-form-control.wpcf7-submit.has-spinner.button {
    position: absolute !important;
    top: 50% !important;
    right: -5px !important; /* Cho nút tràn ra ngoài mép phải 5px */
    transform: translateY(-50%) !important;
    width: 130px !important; /* Tăng chiều rộng nút */
    height: 50px !important; /* Cao hơn khung (Khung 40px, Nút 50px) */
    padding: 0 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    margin: 0 !important;
    border-radius: 119px !important;
    background: #C11818 !important; /* Đỏ rực rỡ theo yêu cầu */
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    z-index: 99 !important; /* Đảm bảo nút nằm trên cùng */
    box-shadow: 0 4px 10px rgba(193, 24, 24, 0.3) !important; /* Đổ bóng màu đỏ nhẹ */
}

/* 3. Hiệu ứng khi rê chuột vào (Hover) */
footer input.wpcf7-form-control.wpcf7-submit.has-spinner.button:hover {
    background: #e61c1c !important; /* Màu đỏ sáng hơn một chút khi hover */
    transform: translateY(-50%) scale(1.1) !important; /* To lên hẳn 10% */
    box-shadow: 0 6px 20px rgba(193, 24, 24, 0.4) !important;
}

/* 4. Hiệu ứng khi nhấn vào (Active) */
footer input.wpcf7-form-control.wpcf7-submit.has-spinner.button:active {
    transform: translateY(-50%) scale(0.9) !important;
}

/* 5. Đảm bảo form mẹ có position relative để nút không bay mất */
footer form.wpcf7-form {
    position: relative !important;
    display: block !important;
}

.wpcf7-spinner {
    display: none;
}

footer form.wpcf7-form.init {
    margin: 0;
}

.col-flex.flex-start .col-inner {
    justify-content: flex-start;
}

div#wpcf7-f5-o1 { width: inherit; }

.top-divider { display: none; }

#header {
    border-bottom: 1px solid #e0e2e6;
}

/* ================================================================
   THIẾT KẾ MENU DROPDOWN NÂU CAFE - CHỮ TRẮNG - RỘNG RÃI
   ================================================================ */

/* 1. Khung tổng thể của Dropdown - Làm dài ra và đổi màu nền */
.nav-dropdown {
    background-color: #002748 !important; /* Nền màu nâu cà phê */
    border-radius: 8px !important; 
    border: 0.5px solid rgba(255, 255, 255, 0.1) !important; /* Viền trắng siêu mảnh */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3) !important; 
    padding: 15px 0 !important;
    min-width: 380px !important; /* TĂNG CHIỀU DÀI: Đã chỉnh lên 380px để thoáng hơn */
    animation: menuFadeIn 0.3s ease;
}

/* 2. Hiệu ứng hiện ra mượt mà */
@keyframes menuFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 3. Các mục Menu bên trong - Chữ trắng */
.nav-dropdown .menu-item a {
    color: #ffffff !important; /* CHỮ MÀU TRẮNG */
    padding: 14px 25px !important; /* Tăng padding để menu trông to và sang hơn */
    font-size: 15px !important;
    font-weight: 500 !important;
    text-transform: uppercase; /* Viết hoa để trông chuyên nghiệp */
    letter-spacing: 1.2px; /* Khoảng cách chữ rộng ra cho thoáng */
    transition: all 0.3s ease !important;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.05) !important; /* Đường kẻ mờ màu trắng */
    display: flex;
    align-items: center;
}

/* Xóa viền ở mục cuối cùng */
.nav-dropdown .menu-item:last-child a {
    border-bottom: none !important;
}

/* 4. Hiệu ứng khi Hover (Rê chuột vào) */
.nav-dropdown .menu-item a:hover {
    background-color: rgba(255, 255, 255, 0.08) !important; /* Nền sáng nhẹ khi hover */
    color: #ffffff !important;
    padding-left: 35px !important; /* Trượt nhẹ sang phải tạo cảm giác cao cấp */
}

/* 5. Mũi tên trỏ lên (Arrow) */
.nav-dropdown:after {
    border-bottom-color: #002748 !important; /* Đồng màu với nền nâu */
}

/* 6. Icon mũi tên phụ (nếu có menu con) */
.nav-dropdown .menu-item i.icon-angle-right {
    margin-left: auto;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.stuck #masthead {
    display: none;
}


/* --- Khung tìm kiếm chuyên nghiệp --- */

/* ================================================================
   1. ĐỊNH NGHĨA BIẾN VÀ CẤU HÌNH CHUNG
   ================================================================ */
:root {
    --primary-color: #002748; /* Màu xanh thanh Long */
    --bs-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --bs-box-shadow-min: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Hiệu ứng chạy màu nâu khi hover nút (Vô hiệu hóa cho nút Search bên dưới) */
.button, a.button, button, input[type="submit"] {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s ease;
}

.button::before, a.button::before, button::before, input[type="submit"]::before {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: #002748;
    z-index: -1;
    transition: left 0.4s ease;
}

.button:hover::before, a.button:hover::before, button:hover::before {
    left: 0;
}

/* ================================================================
   2. KHUNG TÌM KIẾM (SEARCH) - ĐÃ FIX LỖI VỊ TRÍ & HOVER
   ================================================================ */
.searchform-wrapper.form-flat {
    width: 100% !important;
    max-width: 600px; /* BẠN CÓ THỂ TĂNG SỐ NÀY ĐỂ DÀI HƠN NỮA */
    min-width: 350px;
    position: relative;
    display: flex;
    align-items: center;
}

#woocommerce-product-search-field-0 {
    background-color: #ffffff !important;
    height: 44px;
    width: 100% !important;
    border-radius: 99px;
    border: 1px solid #e0e2e6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 0px 50px 0px 25px; /* Chừa chỗ cho kính lúp */
    font-size: 15px;
    transition: all 0.3s ease;
}

#woocommerce-product-search-field-0:focus {
    border-color: #002748;
    box-shadow: 0 4px 12px rgba(0, 39, 72, 0.15);
    outline: none;
}

/* Cố định vị trí kính lúp không bị lệch */
.searchform-wrapper.form-flat .flex-col:last-of-type {
    position: absolute !important;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 !important;
    z-index: 10;
}

/* Icon kính lúp - Xóa bỏ hiệu ứng chạy màu nâu đè lên */
.searchform-wrapper.form-flat button.ux-search-submit {
    background: transparent !important;
    color: #002748 !important;
    border: none !important;
    width: 40px;
    height: 40px;
    box-shadow: none !important;
}

/* QUAN TRỌNG: Vô hiệu hóa hiệu ứng che mất kính lúp khi hover */
.searchform-wrapper.form-flat button.ux-search-submit::before {
    display: none !important;
}

.searchform-wrapper.form-flat button.ux-search-submit:hover {
    background: transparent !important;
    color: #002748 !important;
    transform: none !important;
}

/* ================================================================
   3. POLICY SEARCH (PHẦN DƯỚI SEARCH)
   ================================================================ */
header .policy-search ul {
    display: flex;
    flex-wrap: wrap;
    color: #002748 !important;
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px !important;
    list-style: none;
    padding: 0;
}

header .policy-search ul li {
    display: flex;
    align-items: center;
    padding-right: 30px;
}

header .policy-search ul img {
    height: 25px;
    margin-right: 8px;
    background: white;
    border-radius: 99px;
    padding: 3px;
    border: 1px solid #002748;
    box-shadow: var(--bs-box-shadow-min);
}

/* ================================================================
   4. GIỎ HÀNG (DROPDOWN CART)
   ================================================================ */
/* Nút giỏ hàng chính trên Header */
header a.header-cart-link.nav-top-link {
    background-color: #afafda !important;
    color: white !important;
    border-radius: 99px;
}

/* Khung Dropdown khi di chuột vào giỏ hàng */
.nav-dropdown {
    background-color: #7e7ece !important;
    border-radius: 10px;
    padding: 15px;
    box-shadow: var(--bs-box-shadow);
}

.nav-dropdown:after {
    border-bottom-color: #777783 !important; /* Mũi tên nhỏ đồng màu */
}

/* Màu chữ và các mục trong dropdown giỏ hàng */
.nav-dropdown p, .nav-dropdown span, .nav-dropdown strong {
    color: white !important;
}

/* Nút quay lại cửa hàng bên trong dropdown */
.nav-dropdown .button.wc-backward {
    background-color: white !important;
    color: #c26528 !important;
    border-radius: 5px;
}

/* ================================================================
   5. HEADER & FOOTER
   ================================================================ */
#header {
    border-bottom: 1px solid #e0e2e6;
    background-color: #f0f0f0 !important;
}

.absolute-footer {
    background-color: #f0f0f0 !important;
    color: #000000 !important;
    padding: 15px 0;
    font-weight: 500;
}

.absolute-footer a {
    color: #000000 !important;
}

.absolute-footer a:hover {
    color: #002748 !important;
    text-decoration: underline;
}

header .policy-search ul img {
    height: 25px;
    margin-right: 5px;
    color: white !important;
    background: white;
    border-radius: 99px;
    padding: 3px;
    box-shadow: var(--bs-box-shadow);
}

a.header-cart-link.nav-top-link.icon.primary.button.round.is-small {
    font-size: 14px;
    background: white;
    color: var(--primary-color);
    border-radius: 99px;
}

.mfp-content {
    background: var(--primary-color) !important;
}

a.icon.primary.button.circle.is-small {
    background: white;
    color: var(--primary-color);
}

/* 1. Đổi màu nền của khung Dropdown Giỏ hàng và Menu*/
.nav-dropdown {
    background-color: #002748 !important; /* Thay màu nâu cà phê của bạn vào đây */
}

/* 2. Đổi màu của nút "GIỎ HÀNG / 0đ" phía trên */
header a.header-cart-link.nav-top-link {
    background-color: #002748 !important; /* Màu nền nút giỏ hàng */
    color: white !important; /* Màu chữ */
}

/* 3. Sửa cái "mũi tên" nhỏ chĩa lên trên khung giỏ hàng cho đồng màu */
.nav-dropdown:after {
    border-bottom-color: var(--primary-color) !important;
}

/* 4. Đổi màu nút "QUAY TRỞ LẠI CỬA HÀNG" bên trong khung */
.nav-dropdown .button.wc-backward {
    background-color: #e9e7e7 !important; /* Màu đỏ đô hoặc màu bạn muốn */
    border: none;
}
/* End Header */

/* Body */
svg.flickity-button-icon {
    color: var(--primary-color);
}

li.dot {
    border-color: var(--primary-color) !important;
}

.flickity-page-dots .dot.is-selected {
    opacity: 1 !important;
}

/* Áp dụng cho tất cả nút trong Flatsome */
.button, a.button, button, input[type="submit"] {
    position: relative;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease, 
                border-color 0.4s ease !important;
    overflow: visible !important; 
    
    /* THÊM 2 DÒNG NÀY ĐỂ ÉP MÀU: */
    background-color: var(--primary-color) !important;
    color: white !important; 
}
/* 1. Xóa bỏ hoàn toàn lớp phủ chạy từ trái sang phải cũ */
.button::before, a.button::before, button::before, input[type="submit"]::before {
    display: none !important; 
}

/* 2. Thiết lập trạng thái mặc định cho nút (Giữ nguyên màu bản chất) */
.button, a.button, button, input[type="submit"] {
    position: relative;
    z-index: 1;
    /* Sử dụng cubic-bezier để tạo độ nảy như thuyền trên sóng */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease, 
                border-color 0.4s ease !important;
    overflow: visible !important; 
    /* Không ép background và color ở đây để giữ màu gốc của từng loại nút */
}

/* 3. Hiệu ứng khi rê chuột vào (Hover) - Sáng viền nâu và nổi lên */
.button:hover, a.button:hover, button:hover, input[type="submit"]:hover {
    /* Sáng viền màu nâu cà phê */
    border-color: #002748 !important; 
    
    /* Hiệu ứng nổi lên như chiếc thuyền trên mặt nước */
    transform: translateY(-2px); 
    
    /* Đổ bóng lan tỏa để tạo độ nổi (Elevation) */
    box-shadow: 0 8px 15px rgba(0, 39, 72, 0.2) !important;
    
    /* ĐÃ XÓA dòng ép màu chữ (color) để giữ màu bản chất của nút */
}

/* 4. Hiệu ứng khi nhấn xuống (Click) */
.button:active, a.button:active {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 39, 72, 0.1) !important;
    transition: 0.1s;
}

.product-info {
    border-right: 0px;
}

.kafela-breadcrumb-wrapper .breadcrumbs {
    text-transform: inherit;
    font-size: 14px;
    font-weight: 500;
    color: #6f1236;
}

#breadcrumb_thinh_custom {
    padding: 13px 0px;
    box-shadow: var(--bs-box-shadow-min);
	margin-bottom: 5px;
}

#breadcrumb_thinh_custom .breadcrumbs {
    text-transform: math-auto;
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 500;
}

#breadcrumb_thinh_custom .breadcrumbs a {
    color: black;
    font-weight: 500;
}

iframe {
    border-radius: 10px;
    box-shadow: var(--bs-box-shadow);
}

a.header-cart-link.nav-top-link.icon:hover {
    color: white !important;
	box-shadow: none !important;
}

.color-primary {
    color: var(--primary-color);
}

input.wpcf7-form-control.wpcf7-text, textarea.wpcf7-form-control.wpcf7-textarea {
    border-radius: 5px;
    padding: 20px 10px;
    background: white;
    border: 1px solid var(--primary-color);
}

.wpcf7 label {
    display: inline-block;
    width: 100%;
    font-size: 14px;
    color: var(--primary-color);
}

.widget_nav_menu ul#menu-main-menu-1 {
    padding: 0px 20px;
    box-shadow: var(--bs-box-shadow-min);
    font-size: 14px;
	text-transform: uppercase;
}

.widget_nav_menu ul#menu-main-menu-1 .menu-item {
    padding: 9.5px 0;
    border-bottom: 1px dashed #eae4e8;
}

.widget_nav_menu ul#menu-main-menu-1 .menu-item:last-child {
	border: none;
}

.widget_nav_menu ul#menu-main-menu-1 .menu-item a {
    padding: 0;
}

/* 1. Thiết lập nút mũi tên mặc định (Trạng thái ĐÓNG - Trỏ xuống) */
.widget_nav_menu button.toggle {
    border: none !important; 
    background-color: transparent !important; 
    width: 30px !important; 
    height: 30px !important;
    padding: 0 !important;
    margin: 0 !important;
    color: var(--brand-blue) !important; 
    font-size: 16px !important; 
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important; 
    transition: transform 0.3s ease !important; 
    transform: rotate(0deg) !important; /* Ép mũi tên quay xuống dưới */
}

/* 2. Khi rê chuột (Hover) - Chỉ giữ màu, không xoay nữa */
.widget_nav_menu button.toggle:hover { 
    background-color: transparent !important; 
    color: var(--brand-blue) !important; 
    box-shadow: none !important; 
}

/* 3. Thiết lập mũi tên (Trạng thái MỞ - Trỏ lên trên) */
/* Bắt các class hệ thống tự sinh ra khi mở menu con hoặc đang đứng ở trang con đó */
.widget_nav_menu li.active > button.toggle,
.widget_nav_menu li.current-menu-item > button.toggle,
.widget_nav_menu li.current-menu-ancestor > button.toggle {
    transform: rotate(180deg) !important; /* Xoay ngược lên trên 180 độ */
}

.widget_nav_menu .sub-menu {
    border-left: 0 !important;
	margin: 0 !important;
}

.title-sidebar {
    background: var(--primary-color);
    color: white;
    border-radius: 2px;
    padding: 10px 20px;
    font-weight: 900;
    font-size: 16px;
}

.shadow {
    box-shadow: var(--bs-box-shadow);
}

.img-border img {
    border-radius: 5px;
}

div#nav_menu-2 {
    padding: 0;
}

.product.type-product .col.large-9 {
    border: none !important;
}

.product-info.summary.entry-summary.col.col-fit.product-summary .icon.button.circle.is-outline {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 13.5px;
    margin-right: 10px;
    margin-left: 0;
}

button.single_add_to_cart_button.button.alt {
    width: 100%;
    padding: 8px 0px;
    border-radius: 1px;
    box-shadow: var(--bs-box-shadow-min);
}

.product-info.summary.entry-summary.col.col-fit.product-summary .is-divider.small, .entry-header-text.entry-header-text-top.text-left .entry-divider.is-divider.small, .box-text-inner.blog-post-inner .is-divider {
    width: 100% !important;
    max-width: none;
    height: 2px;
    background: var(--primary-color);
}

h1.entry-title, .box-text-inner.blog-post-inner h5.post-title.is-large {
    color: var(--primary-color);
}

.list-check-fa {
    list-style: none;
    padding-left: 0;
}

.list-check-fa li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 8px;
	margin-left: 0px !important;
}

.list-check-fa li:before {
    content: "\f05d"; /* fa-check-circle-o */
    font-family: "FontAwesome";
    position: absolute;
    left: 0;
/*     top: 2px; */
    font-size: 16px;
	color: var(--primary-color);
}

.woocommerce-tabs.wc-tabs-wrapper.container.tabbed-content {
    border: 0;
}

li#tab-title-description {
    width: 100%;
    background: var(--primary-color);
}

li#tab-title-description a {
    color: white;
    padding: 12px 20px;
	font-size: 14px;
}

.product-info.summary.entry-summary.col.col-fit.product-summary nav.woocommerce-breadcrumb.breadcrumbs.uppercase, .shop-page-title.category-page-title.page-title nav.woocommerce-breadcrumb.breadcrumbs.uppercase {
    display: none;
}

.shop-page-title.category-page-title.page-title .page-title-inner.flex-row.medium-flex-wrap.container {
    padding-top: 0;
}

.shop-page-title.category-page-title.page-title {
    border-bottom: 1px solid #e0e2e6;
}

a.filter-button.uppercase.plain {
    margin: 0;
}

.button.product_type_simple.add_to_cart_button {
    width: 100%;
    font-size: 12px;
    border: 0.5px solid var(--primary-color);
    background: var(--primary-color);
    color: white;
    border-radius: 99px;
    margin-right: 0;
    text-transform: uppercase;
}

.product-small.box .box-image {
    border-radius: 5px;
    box-shadow: var(--bs-box-shadow-min);
}

.product-section {
    border: none;
}

h3.product-section-title {
    background: var(--primary-color);
    color: white;
    border-radius: 2px;
    padding: 14px 20px;
    font-weight: 900;
    font-size: 14px;
    margin-bottom: 30px;
}

a.woocommerce-LoopProduct-link.woocommerce-loop-product__link {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-sidebar.large-3.col {
    border: 0 !important;
}

.box.box-vertical.box-blog-post img.wp-post-image {
    border-radius: 10px;
}

header.archive-page-header .page-title.is-large.uppercase {
    font-size: 24px;
    color: var(--primary-color);
}

/* ===========================
   Thinh: Coupon list styles
   =========================== */
.thinh-coupon-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.thinh-coupon-item {
    position: relative;
}

.thinh-coupon-inner {
    position: relative;
    display: flex;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #ececec;
    overflow: visible;
}

.thinh-coupon-left {
    position: relative;
    width: 85px;
/*     min-height: 110px; */
/*     padding: 20px 12px; */
    display: flex;
    align-items: center;
    justify-content: center;
}

.thinh-coupon-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffe7e7, #fff3d9);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Đường đứt đoạn & vết khuyết 2 bên giống vé coupon */
.thinh-coupon-inner::before {
    content: "";
    position: absolute;
    left: 85px;
    top: 16px;
    bottom: 16px;
    border-left: 1px dashed #dedede;
}

.thinh-coupon-left::before,
.thinh-coupon-left::after {
    content: "";
    position: absolute;
    right: -8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #f7f7f7;
}

.thinh-coupon-left::before {
    top: -8px;
}

.thinh-coupon-left::after {
    bottom: -8px;
}

.thinh-coupon-right {
    flex: 1;
    padding: 16px 18px 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.thinh-coupon-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.thinh-coupon-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.thinh-coupon-title {
    font-size: 16px;
    font-weight: 700;
    color: #333333;
}

.thinh-coupon-subtitle {
    font-size: 13px;
    color: #555555;
}

.thinh-coupon-info {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #999999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #555555;
    flex-shrink: 0;
	display: none;
}

.thinh-coupon-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.thinh-coupon-code,
.thinh-coupon-expiry {
    font-size: 13px;
    color: #555555;
}

.thinh-coupon-code span,
.thinh-coupon-expiry span {
    font-weight: 600;
}

.thinh-coupon-copy {
    margin-left: auto;
    padding: 0px 5px;
    background: #7a0036;
    color: #ffffff;
    border-radius: 999px;
    border: none;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    width: 100%;
    margin: 0;
}

.thinh-coupon-copy:hover {
    background: #910642;
}

@media (max-width: 600px) {
    .thinh-coupon-inner {
        border-radius: 12px;
    }

    .thinh-coupon-left {
        width: 90px;
        padding: 16px 8px;
    }

    .thinh-coupon-inner::before {
        left: 90px;
    }

    .thinh-coupon-right {
        padding: 10px;
    }

    .thinh-coupon-title {
        font-size: 15px;
    }
}

.box-border {
    box-shadow: var(--bs-box-shadow);
    border-radius: 10px;
}

.box-border img {
	border-top-left-radius: 10px;
	border-top-right-radius: 10px;
}

@media (min-width: 768px) {
	.row-5 .col.medium-2 {
		flex-basis: 20%;
		max-width: 20%;
	}

}

.card-shadow {
    box-shadow: var(--bs-box-shadow);
    border-radius: 10px;
    padding: 30px 0px;
}

.img-shadow .img-inner.dark {
    box-shadow: var(--bs-box-shadow);
    border-radius: 5px;
}

/* Ép màu nền cho Header */
header, 
#header, 
.header-wrapper, 
.header-main {
    background-color: #f0f0f0 !important;
}
/* Chỉnh màu cho phần đáy cuối cùng của chân trang */
.absolute-footer, 
.footer-bottom {
    background-color: #002748 !important; /* Màu vàng Gold */
    padding-top: 15px;
    padding-bottom: 15px;
}

/* Chỉnh màu chữ trong phần đáy chân trang */
.footer-white-text {
    color: #ffffff;
}

.footer-white-text strong {
    color: #ffffff; /* Đảm bảo chữ in đậm cũng màu trắng */
}

/* Nút liên hệ trang web ở phần đáy */
:root {
    --p-primary: #363c46;
    --p-dark: #1a1a1a;
    --p-gradient: linear-gradient(135deg, #0068ff 0%, #00d4ff 100%);
    --p-glass: rgba(255, 255, 255, 0.9);
}

.premium-contact-widget {
    position: fixed; bottom: 30px; right: 30px; z-index: 999999;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Nút chính & Hiệu ứng lắc */
.p-main-trigger {
    width: 60px; height: 60px; background: var(--p-gradient);
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    color: white; font-size: 26px; cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 104, 255, 0.4);
    position: relative; transition: all 0.3s;
}

.shaking {
    /* CHỈNH SỬA TẠI ĐÂY: Thay infinite bằng 2 để chỉ lắc 2 lần */
    animation: premium-shake 0.5s cubic-bezier(.36,.07,.19,.97) 2;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

@keyframes premium-shake {
    10%, 90% { transform: translate3d(-1px, 0, 0) rotate(-5deg); }
    20%, 80% { transform: translate3d(2px, 0, 0) rotate(5deg); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0) rotate(-5deg); }
    40%, 60% { transform: translate3d(4px, 0, 0) rotate(5deg); }
}

.p-badge {
    position: absolute; top: 0; right: 0; background: #ff3b30;
    width: 20px; height: 20px; border-radius: 50%; font-size: 11px;
    display: flex; justify-content: center; align-items: center;
    border: 2px solid white; font-weight: bold;
    animation: popBadge 0.3s ease-out forwards;
}

@keyframes popBadge { from { transform: scale(0); } to { transform: scale(1); } }

/* Menu & Header */
.premium-menu {
    position: absolute; bottom: 80px; right: 0; width: 300px;
    background: var(--p-glass); backdrop-filter: blur(15px);
    border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    padding: 15px; display: none; flex-direction: column; gap: 6px;
    border: 1px solid rgba(255,255,255,0.7); animation: p-fadeIn 0.4s ease forwards;
}

.premium-header-v2 {
    background: linear-gradient(to bottom, #f8faff, #ffffff);
    padding: 15px 12px; border-radius: 15px 15px 5px 5px;
    margin: -15px -15px 10px -15px; border-bottom: 1px solid #edf2f7;
}

.header-content { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.main-title { font-size: 13px; font-weight: 800; background: var(--p-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.status-badge { display: flex; align-items: center; gap: 5px; background: #e6fffa; padding: 2px 8px; border-radius: 20px; border: 1px solid #b2f5ea; }
.status-badge span { font-size: 9px; font-weight: 700; color: #2c7a7b; text-transform: uppercase; }
.status-dot { width: 6px; height: 6px; background: #38a169; border-radius: 50%; box-shadow: 0 0 5px #38a169; animation: pulse-green 1.5s infinite; }

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(56, 161, 105, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(56, 161, 105, 0); }
    100% { box-shadow: 0 0 0 0 rgba(56, 161, 105, 0); }
}

.sub-title { font-size: 11px; color: #718096; margin: 0 !important; }

/* Item liên hệ & Zalo Badge */
.p-item { display: flex; align-items: center; gap: 12px; text-decoration: none !important; padding: 10px; border-radius: 12px; transition: 0.3s; }
.p-item:hover { background: rgba(255,255,255,0.8); transform: translateX(-5px); }

.p-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; justify-content: center; align-items: center; color: white; position: relative; }
.zalo-bg { background: linear-gradient(135deg, #0068ff, #0045ab); }
.phone-bg { background: linear-gradient(135deg, #34a853, #1e7e34); }
.email-bg { background: linear-gradient(135deg, #ea4335, #b31412); }

.p-sub-badge {
    position: absolute; top: -5px; right: -5px; background: #ff3b30; color: white;
    font-size: 9px; width: 15px; height: 15px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center; border: 1.5px solid white; font-weight: bold;
}

.p-status-online {
    width: 8px; height: 8px; background: #4cd964; border-radius: 50%; margin-left: auto;
    animation: p-pulse-green 2s infinite;
}

.p-text strong { display: block; color: #333; font-size: 13px; font-weight: 700; }
.p-text span { color: #666; font-size: 12px; }

@keyframes p-fadeIn { from { opacity: 0; transform: translateY(20px) scale(0.9); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media screen and (max-width: 768px) { 
    .premium-contact-widget { bottom: 20px; right: 20px; }
    .premium-menu { width: 280px; right: -5px; } 
}



/* Form CF7 */
/* Sử dụng ID hoặc Class bao quanh để cô lập CSS */
.custom-form-container {
    max-width: 400px;
    margin: 20px auto;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Tùy chỉnh ô nhập Email */
.custom-form-container input[type="email"] {
    width: 100% !important;
    padding: 12px 15px !important;
    margin-bottom: 10px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    background-color: #f9f9f9 !important;
    color: #333 !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important; /* Đảm bảo padding không làm tràn khung */
}

/* Hiệu ứng khi click vào ô nhập liệu */
.custom-form-container input[type="email"]:focus {
    border-color: #007bff !important;
    background-color: #fff !important;
    outline: none !important;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.2) !important;
}

/* Tùy chỉnh nút Gửi */
.custom-form-container .button.primary {
    width: 100% !important;
    background-color: #007bff !important;
    color: white !important;
    padding: 12px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease, transform 0.1s active !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* Hiệu ứng khi di chuột qua nút */
.custom-form-container .button.primary:hover {
    background-color: #0056b3 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* Hiệu ứng khi nhấn nút */
.custom-form-container .button.primary:active {
    transform: scale(0.98) !important;
}

/* Loại bỏ lề mặc định của thẻ p trong CF7 */
.custom-form-container p {
    margin: 0 0 15px 0 !important;
}

/* Nội dung short product */
.coffee-grid-features {
    display: grid;
    /* Chia làm 2 cột bằng nhau */
    grid-template-columns: repeat(2, 1fr); 
    gap: 12px;
    margin: 20px 0;
}

.feature-box {
    font-family: 'Lexend', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #002748;
    background: #fdfaf7; /* Màu nền kem rất nhẹ */
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #efe4dc;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
}

/* Hiệu ứng khi hover */
.feature-box:hover {
    background: #002748;
    color: #ffffff;
    border-color: #002748;
    transform: translateY(-3px);
}

/* Tối ưu cho điện thoại: Xếp thành 1 cột nếu màn hình quá nhỏ */
@media (max-width: 480px) {
    .coffee-grid-features {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .feature-box {
        font-size: 13px;
        padding: 12px;
    }
}
.call-action-wrapper {
    margin: 25px 0;
    display: flex;
    justify-content: center; /* Căn giữa nút */
}

.btn-call-consult {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #002748; /* Màu nền nâu của bạn */
    color: #E6B36E; /* Màu vàng đồng */
    padding: 14px 28px;
    border-radius: 50px; /* Bo tròn hoàn toàn */
    font-family: 'Lexend', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #E6B36E;
    transition: all 0.4s ease;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 39, 72, 0.2);
    /* Hiệu ứng rung nhẹ tự động */
    animation: pulse-gold 2s infinite;
}

.btn-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
}

/* Hiệu ứng khi Hover */
.btn-call-consult:hover {
    background-color: #E6B36E;
    color: #002748;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(230, 179, 110, 0.4);
}

/* Animation Pulse */
@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(230, 179, 110, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(230, 179, 110, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 179, 110, 0); }
}

/* Mobile */
@media (max-width: 480px) {
    .btn-call-consult {
        width: 100%; /* Full rộng trên mobile */
        justify-content: center;
        font-size: 14px;
        padding: 12px 20px;
    }
}

/* 1. Xóa bỏ chiều cao 100% hoặc min-height gây ra thanh dọc */
.flickity-button.flickity-prev-next-button {
  min-height: 0 !important; /* Xóa chiều cao tối thiểu của theme */
  height: 33px !important; /* Ép lại đúng chiều cao của nút tròn */
  width: 33px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 50% !important; 
}

/* 2. Triệt tiêu các thẻ giả (pseudo-elements) tạo mảng nền trắng phía sau */
.flickity-button.flickity-prev-next-button::before,
.flickity-button.flickity-prev-next-button::after {
  display: none !important;
  content: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* 3. Đảm bảo nút bên trong không bị thẻ div nào bọc làm dài ra */
.flickity-prev-next-button.previous, 
.flickity-prev-next-button.next {
  background-color: #ffffff !important; /* Trả lại nền trắng cho chính nút tròn */
}
/* ================================================================
   TÙY CHỈNH GIÁ TIỀN - CHỈ ÁP DỤNG TRONG TRANG CHI TIẾT SẢN PHẨM
   ================================================================ */

/* 1. Giá mới (Màu đỏ, to, in đậm) */
.single-product .product-info .price .woocommerce-Price-amount.amount,
.single-product .product-info .price .woocommerce-Price-amount.amount bdi {
    color: #C11818 !important; /* Đỏ rực */
    font-weight: 700 !important;
    font-size: 32px !important; /* Kích thước to nổi bật giống trong ảnh của bạn */
    letter-spacing: 0.5px !important;
}

/* 2. Ký hiệu tiền tệ của giá mới (đ) */
.single-product .product-info .price ins .woocommerce-Price-currencySymbol,
.single-product .product-info .price > .woocommerce-Price-amount.amount .woocommerce-Price-currencySymbol {
    font-size: 22px !important; /* Nhỏ hơn số để trông cân đối */
    vertical-align: text-top !important;
    font-weight: 600 !important;
    margin-left: 2px !important;
    color: #C11818 !important;
}

/* 3. Giá cũ (Bị gạch ngang, màu xám) */
.single-product .product-info .price del .woocommerce-Price-amount.amount,
.single-product .product-info .price del .woocommerce-Price-amount.amount bdi {
    color: #999999 !important; /* Màu xám mờ */
    font-weight: 400 !important;
    font-size: 22px !important; /* Thu nhỏ lại để nhường spotlight cho giá đỏ */
}

/* 4. Ký hiệu tiền tệ của giá cũ */
.single-product .product-info .price del .woocommerce-Price-currencySymbol {
    color: #999999 !important;
    font-size: 16px !important;
}
/* ================================================================
   TÙY CHỈNH NÚT XEM GIỎ HÀNG & THANH TOÁN (HÌNH CHỮ NHẬT BO GÓC NHẸ)
   ================================================================ */

/* 1. Nút "Xem Giỏ Hàng" (View Cart) - Luôn hiện màu #003A6B */
.widget_shopping_cart_content .button.wc-forward:not(.checkout),
.cart-collaterals .button.wc-forward:not(.checkout) {
    background-color: #003A6B !important; 
    color: #ffffff !important; 
    border-radius: 5px !important; 
    font-weight: 600 !important;
    padding: 8px 15px !important; 
    text-transform: uppercase !important;
    border: none !important;
    box-shadow: 0 4px 10px rgba(0, 58, 107, 0.2) !important; 
    transition: all 0.3s ease !important;
    display: block !important;
    text-align: center !important;
}

/* Hiệu ứng rê chuột nút Xem Giỏ Hàng - Sáng hơn một chút */
.widget_shopping_cart_content .button.wc-forward:not(.checkout):hover,
.cart-collaterals .button.wc-forward:not(.checkout):hover {
    background-color: #004b8a !important; 
    transform: translateY(-2px) !important; 
    box-shadow: 0 6px 15px rgba(0, 58, 107, 0.3) !important;
}

/* 2. Nút "Thanh Toán" (Checkout) - Cũng cho về #003A6B để đồng bộ */
.cart-collaterals .checkout-button.button.alt.wc-proceed-to-checkout,
.widget_shopping_cart_content .button.checkout.wc-forward {
    background-color: #003A6B !important;
    color: #ffffff !important;
    border-radius: 5px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    transition: all 0.3s ease !important;
}

.cart-collaterals .checkout-button.button.alt.wc-proceed-to-checkout:hover,
.widget_shopping_cart_content .button.checkout.wc-forward:hover {
    background-color: #004b8a !important;
    transform: translateY(-2px) !important;
}

/* 2. Nút "Thanh Toán" (Checkout) - NỔI BẬT NHẤT */
.widget_shopping_cart_content .button.checkout.wc-forward,
.cart-collaterals .button.checkout.wc-forward {
    background-color: #C11818 !important; /* Đỏ rực rỡ */
    color: #ffffff !important; 
    border-radius: 5px !important; /* Bo góc nhẹ */
    font-weight: 700 !important; 
    font-size: 14px !important; /* Cân chỉnh lại font chữ */
    padding: 10px 15px !important; /* Nút thanh toán dày hơn nút xem giỏ hàng một chút */
    text-transform: uppercase !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(193, 24, 24, 0.3) !important; 
    transition: all 0.3s ease !important;
    display: block !important;
    text-align: center !important;
}

/* Hiệu ứng rê chuột nút Thanh Toán */
.widget_shopping_cart_content .button.checkout.wc-forward:hover,
.cart-collaterals .button.checkout.wc-forward:hover {
    background-color: #e61c1c !important; 
    transform: translateY(-2px) !important; /* Chỉ nảy lên nhẹ, bỏ hiệu ứng phình to */
    box-shadow: 0 6px 18px rgba(193, 24, 24, 0.4) !important;
}
/* ================================================================
   ÉP MÀU VÀ HIỂN THỊ NÚT "TIẾN HÀNH THANH TOÁN" (CART PAGE)
   ================================================================ */

/* Ép màu cứng để trị bệnh trắng tinh */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    background-color: #C11818 !important; /* Ép nền màu đỏ rực */
    color: #ffffff !important; /* Ép chữ màu trắng */
    border: none !important;
    border-radius: 5px !important; /* Bo góc nhẹ đồng bộ */
    padding: 15px 20px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    box-shadow: 0 4px 10px rgba(193, 24, 24, 0.3) !important; /* Đổ bóng đỏ */
    transition: all 0.3s ease !important;
    position: relative;
    z-index: 1;
}

/* Hiệu ứng rê chuột: Sáng lên và nảy nhẹ */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background-color: #e61c1c !important; /* Đỏ sáng hơn khi hover */
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(193, 24, 24, 0.4) !important;
}

/* Hiệu ứng nhấn (Click) */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 5px rgba(193, 24, 24, 0.2) !important;
}

/* ================================================================
   TÍNH NĂNG: LUÔN HIỆN NÚT THANH TOÁN Ở ĐÁY MÀN HÌNH DI ĐỘNG
   ================================================================ */
/* Ghi đè mạnh mẽ cho nút Checkout */
body .woocommerce-active .checkout-button.button.alt.wc-proceed-to-checkout,
body .woocommerce-page .checkout-button.button.alt.wc-proceed-to-checkout,
body .wc-proceed-to-checkout a.checkout-button {
    background: #003A6B !important;
    background-color: #003A6B !important;
    color: #ffffff !important;
    opacity: 1 !important; /* Đảm bảo không bị mờ */
    transition: all 0.3s ease-in-out !important;
    text-transform: uppercase; /* Thường Flatsome sẽ để viết hoa */
    border: none !important;
}

/* Hiệu ứng khi rê chuột */
body .wc-proceed-to-checkout a.checkout-button:hover {
    background: #004b8a !important; /* Sáng hơn một chút để thấy hiệu ứng */
    filter: brightness(110%);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* ================================================================
   FORM THUÊ MÁY PHA CÀ PHÊ - TINH TẾ, SANG TRỌNG, KHÔNG BỊ TRẮNG TINH
   ================================================================ */
/* TỔNG THỂ FORM: Tạo khối hộp sang trọng, bóng đổ nhẹ */
.yh-form-elegant {
    /* Sử dụng font hệ thống để chống xung đột và tải nhanh */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-width: 500px; /* Bạn có thể điều chỉnh hoặc xóa để form full width */
    margin: 0 auto;
    padding: 32px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* KHẮC PHỤC LỖI HIỂN THỊ CỦA CONTACT FORM 7 */
.yh-form-elegant span.wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

/* NHÃN (LABELS): Rõ ràng, tinh tế */
.yh-form-elegant label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333333;
    font-size: 14px;
    letter-spacing: 0.2px;
}

/* Ô NHẬP LIỆU: Bầu bĩnh, viền mảnh */
.yh-form-elegant input[type="text"],
.yh-form-elegant input[type="tel"],
.yh-form-elegant textarea {
    width: 100%;
    padding: 15px 18px;
    margin-bottom: 24px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fcfcfc;
    font-size: 15px;
    color: #333333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* HIỆU ỨNG KHI CLICK VÀO Ô NHẬP LIỆU */
.yh-form-elegant input[type="text"]:focus,
.yh-form-elegant input[type="tel"]:focus,
.yh-form-elegant textarea:focus {
    border-color: #555555; /* Đổi màu viền sang tông tối thanh lịch */
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(85, 85, 85, 0.08); /* Glow nhẹ */
    outline: none;
}

/* ĐẶC TÍNH RIÊNG CỦA TEXTAREA */
.yh-form-elegant textarea {
    min-height: 120px;
    resize: vertical;
}

/* NÚT SUBMIT: Sang trọng, gradient tối giản */
.yh-form-elegant .cf-submit {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 8px;
    
    /* Màu nền gradient thanh lịch (Đen sang Xám đậm) */
    background: linear-gradient(135deg, #2b2b2b 0%, #1a1a1a 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* HIỆU ỨNG RÊ CHUỘT VÀO NÚT */
.yh-form-elegant .cf-submit:hover {
    transform: translateY(-2px); /* Hiệu ứng nổi nhẹ */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    background: linear-gradient(135deg, #333333 0%, #000000 100%);
}

/* ĐIỀU CHỈNH TRẠNG THÁI LOADING CỦA CF7 */
.yh-form-elegant .wpcf7-spinner {
    display: block;
    margin: 10px auto 0;
}
 /*================================================================
   TÍNH NĂNG: CHÈN ẢNH GIF "DEAL NGON" VÀO GÓC 1H CỦA SẢN PHẨM GIẢM GIÁ
   ================================================================ */
/* 1. Đặt vị trí mốc cho khung ảnh sản phẩm */
.product.sale .box-image, 
.product.sale .product-image {
    position: relative;
    display: block;
}

/* 2. Chèn ảnh GIF deal-ngon vào góc 1h (Trên - Phải) */
.product.sale .box-image::after,
.product.sale .product-image::after {
    content: "";
    position: absolute;
    top: 0px;   
    right: 0px; /* Căn lề phải - Hướng 1h */
    width: 90px;
    height: 90px;
    background-image: url('/wp-content/uploads/2026/05/deal-ngon.gif');
    background-size: contain;
    background-position: top right;
    background-repeat: no-repeat;
    z-index: 99; /* Đảm bảo nằm đè lên trên ảnh sản phẩm */
    pointer-events: none; /* Khách vẫn click xuyên qua GIF để xem sản phẩm được */
}

/* 3. Tối ưu cho Mobile (Responsive) để GIF không che mất toàn bộ ảnh */
@media (max-width: 767px) {
    .product.sale .box-image::after,
    .product.sale .product-image::after {
        width: 60px; /* Thu nhỏ lại trên điện thoại */
        height: 60px;
    }
}

/*================================================================
   TÍNH NĂNG: TÙY CHỈNH GIAO DIỆN MENU & SIDEBAR
   ================================================================ */
/* Container menu chính độc lập */
.yh-sidebar-nav {
  width: 280px;
  background-color: #fff;
  border: 1px solid #ececec;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.yh-sidebar-list, .yh-sidebar-submenu {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.yh-sidebar-item {
  position: relative;
  border-bottom: 1px solid #f1f1f1;
  margin: 0 !important; /* Ghi đè margin mặc định của theme */
}

.yh-sidebar-item:last-child {
  border-bottom: none;
}

/* Link trong menu chính */
.yh-sidebar-item > a {
  display: flex !important;
  align-items: center;
  padding: 8px 16px !important; 
  color: #333 !important;
  text-decoration: none !important;
  font-size: 14.5px;
  transition: all 0.2s ease;
}

.yh-sidebar-item > a:hover {
  background-color: #fcfcfc;
  color: #111 !important;
}

/* Icon và chữ */
.yh-menu-icon {
  margin-right: 10px;
  font-size: 16px;
  width: 22px;
  text-align: center;
}

.yh-menu-text {
  flex-grow: 1;
}

/* Mũi tên (Đã tích hợp hiệu ứng xoay) */
.yh-menu-arrow {
  font-size: 17px;
  color: #bbb;
  margin-left: 5px;
  /* Bắt buộc phải có inline-block để thuộc tính transform hoạt động */
  display: inline-block; 
  /* Hiệu ứng chuyển động mượt và có độ nảy nhẹ (cubic-bezier) */
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
}

/* Kích hoạt quay mũi tên khi rê chuột vào danh mục */
.yh-sidebar-item.yh-has-submenu:hover .yh-menu-arrow {
  transform: rotate(-90deg); /* Quay mũi tên chỉ sang phải */
  color: #111 !important; /* Đổi màu mũi tên cho đồng bộ với chữ */
}

/* --- Menu con (Sub-menu) --- */
.yh-sidebar-submenu {
  position: absolute;
  top: 0;
  left: 100%;
  width: 220px;
  background-color: #fff;
  border: 1px solid #ececec;
  border-radius: 0 8px 8px 0;
  box-shadow: 3px 3px 10px rgba(0,0,0,0.07);
  
  /* Ẩn hiện */
  visibility: hidden;
  opacity: 0;
  transform: translateX(5px);
  transition: all 0.2s ease-in-out;
  z-index: 99999; /* Đảm bảo nổi lên trên mọi thứ */
}

.yh-sidebar-submenu li {
  border-bottom: 1px solid #f7f7f7;
  margin: 0 !important;
}

.yh-sidebar-submenu a {
  display: block !important;
  padding: 7px 16px !important;
  color: #555 !important;
  text-decoration: none !important;
  font-size: 13.5px;
}

.yh-sidebar-submenu a:hover {
  background-color: #f9f9f9;
  color: #000 !important;
}

/* Hover để hiện menu con */
.yh-sidebar-item.yh-has-submenu:hover .yh-sidebar-submenu {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
}

/* ================================================================
   TÍNH NĂNG: GIAO DIỆN FLASHSALE
   ================================================================ */
/* ========================================================
   CSS KHUNG NỀN BÊN NGOÀI FLASHSALE
======================================================== */
.yh-fs-container {
  position: relative;
  background-image: url('/wp-content/uploads/2026/05/flashsale-2.png');
  background-size: cover; 
  background-position: center bottom; 
  background-repeat: no-repeat;
  border-radius: 16px;
  padding: 40px 20px 130px 20px; 
  min-height: 700px; 
  margin-top: 40px; 
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
}

.yh-fs-gift-img { width: 35px; height: auto; margin-right: 10px; }

.yh-fs-top-badge {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, #fff500, #ffb300);
  color: #c62828;
  font-weight: 800;
  font-size: 18px;
  padding: 8px 45px;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.15);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.yh-fs-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }

.yh-fs-time-frame {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 5px 15px;
  border-radius: 25px;
  font-weight: 700;
  color: #d32f2f;
  font-size: 15px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.yh-fs-countdown-wrapper { display: flex; align-items: center; }

.yh-fs-countdown-label {
  font-weight: 700; color: #fff; margin-right: 12px; font-size: 15px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.yh-fs-timer { display: flex; align-items: center; }

.yh-fs-time-box {
  background-color: #fff; color: #d32f2f; font-weight: 800; font-size: 16px;
  padding: 6px 8px; border-radius: 6px; min-width: 34px; text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.yh-fs-colon { color: #fff; font-weight: bold; font-size: 18px; margin: 0 4px; }

/* Thêm padding-bottom để tránh bóng đổ của sản phẩm bị cắt mất */
.yh-fs-products-wrapper { flex-grow: 1; margin-top: 10px; margin-bottom: 30px; padding-bottom: 15px; }

.yh-fs-footer {
  margin-top: auto; text-align: center; font-size: 13px; font-weight: 600;
  color: #333; background: rgba(255,255,255,0.7); padding: 10px; border-radius: 8px;
}

@media (max-width: 768px) { .yh-fs-header { flex-direction: column; gap: 15px; } }

/* ========================================================
   CSS GHI ĐÈ CHO SẢN PHẨM FLATSOME BÊN TRONG FLASHSALE
======================================================== */

.yh-fs-products-wrapper .product-small.box {
    background-color: #fff !important;
    border-radius: 12px !important;
    /* Sửa lại padding và height để thẻ sản phẩm không bị cắt cụt đáy */
    padding: 10px 10px 20px 10px !important; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    border: 2px solid transparent;
    transition: border-color 0.2s ease; 
    height: auto !important; /* Cho phép thẻ tự giãn chiều cao */
    margin-bottom: 10px !important; /* Tạo khoảng trống chống lẹm bóng đổ */
}

.yh-fs-products-wrapper .product-small.box:hover {
    border-color: #ffc107 !important; 
}

.yh-fs-products-wrapper .box-text {
    text-align: center !important;
    /* Tăng đệm phía dưới của chữ để thanh tiến độ không dính sát đáy */
    padding: 15px 10px 20px 10px !important; 
}

.yh-fs-products-wrapper .product-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin-bottom: 12px !important;
    line-height: 1.4 !important;
}

.yh-fs-products-wrapper .price-wrapper { display: block !important; }

.yh-fs-products-wrapper .price {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: row-reverse; 
    gap: 8px;
}

.yh-fs-products-wrapper .price ins { text-decoration: none !important; background: transparent !important; }
.yh-fs-products-wrapper .price ins span.amount {
    color: #d32f2f !important; font-size: 20px !important; font-weight: 800 !important;
}
.yh-fs-products-wrapper .price del span.amount {
    color: #888 !important; font-size: 14px !important; font-weight: 400 !important; text-decoration: line-through !important;
}

/* --- THANH TIẾN ĐỘ & LỬA --- */
.yh-fs-progress-container {
    position: relative;
    background-color: #fce8cd; 
    border-radius: 20px;
    height: 20px;
    /* Căn chỉnh lại margin để thanh tiến độ nằm đẹp giữa phần giá và đáy thẻ */
    margin: 15px auto 5px auto; 
    width: 95%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible; 
}

.yh-fs-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #ffc107 0%, #ff5722 100%);
    border-radius: 20px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end; 
}

/* --- CẬP NHẬT: Ngọn lửa bạt ngược về phía sau (như tên lửa) --- */
.yh-fs-fire-icon {
    font-size: 16px;
    margin-right: -2px; 
    z-index: 3;
    display: inline-block;
    
    /* Ép tâm biến dạng nằm chính xác ở giữa trục X và Y của icon */
    transform-origin: 50% 50%; 
    
    animation: fire-vibrate 0.08s infinite alternate linear; 
}

/* Hiệu ứng lửa chạy ngang */
@keyframes fire-vibrate {
    /* Đưa rotate(-90deg) lên đầu tiên để bẻ lái, sau đó mới rung (scale) và nhích 1px */
    0% { transform: rotate(-90deg) scale(0.95) translate(-1px, 0); }
    100% { transform: rotate(-90deg) scale(1.15) translate(1px, 0); }
}

.yh-fs-progress-text {
    position: relative;
    z-index: 2;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4), -1px -1px 2px rgba(0,0,0,0.2); 
}

.yh-fs-products-wrapper .add-to-cart-button,
.yh-fs-products-wrapper .star-rating,
.yh-fs-products-wrapper .badge-container {
    display: none !important;
}




////////////////


/* ===================================================
   1. TÙY BIẾN POPUP / LIGHTBOX (mfp-content)
   =================================================== */
.mfp-content {
    border-radius: 8px !important;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
}

.mfp-close {
    color: #333333 !important;
    font-size: 26px !important;
    font-weight: 300 !important;
    transition: transform 0.2s ease, color 0.2s ease;
}

.mfp-close:hover {
    color: #002748 !important;
    transform: rotate(90deg);
}

/* ===================================================
   2. KHUNG GIỎ HÀNG (OFF-CANVAS CART)
   =================================================== */
#cart-popup,
.off-canvas-cart,
.cart-sidebar-content {
    background-color: #ffffff !important;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15) !important;
}

/* Tiêu đề "GIỎ HÀNG" */
.cart-sidebar-content .widget-title,
.off-canvas-cart-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px;
    color: #002748 !important;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 12px;
    margin-bottom: 15px;
}

/* ===================================================
   3. SỬA LỖI LỆCH VỊ TRÍ SẢN PHẨM (CHUẨN FLATSOME)
   =================================================== */
.widget_shopping_cart ul.cart_list,
.widget_shopping_cart ul.product_list_widget {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

/* Từng mục sản phẩm: Chừa lề trái 62px cho ảnh và lề phải 25px cho nút x */
.widget_shopping_cart ul.cart_list li,
.widget_shopping_cart ul.product_list_widget li {
    position: relative !important;
    padding: 10px 25px 10px 62px !important;
    margin: 0 !important;
    min-height: 60px;
    border-bottom: 1px dashed #e5e5e5 !important;
}

/* Ảnh sản phẩm: Ghim cố định ở góc trái */
.widget_shopping_cart ul.cart_list li img,
.widget_shopping_cart ul.product_list_widget li img {
    position: absolute !important;
    left: 0 !important;
    top: 10px !important;
    width: 50px !important;
    height: 50px !important;
    max-width: 50px !important;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ececec;
    float: none !important;
    margin: 0 !important;
}

/* Tên sản phẩm */
.widget_shopping_cart ul.cart_list li a:not(.remove) {
    display: block !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    color: #333333 !important;
    margin-bottom: 4px !important;
    text-decoration: none;
}

.widget_shopping_cart ul.cart_list li a:not(.remove):hover {
    color: #002748 !important;
}

/* Dòng số lượng và đơn giá (1 x 250.000 đ) */
.widget_shopping_cart ul.cart_list li .quantity {
    display: block !important;
    font-size: 12.5px !important;
    color: #666666 !important;
    line-height: 1.2 !important;
}

.widget_shopping_cart ul.cart_list li .quantity .amount {
    font-weight: 700 !important;
    color: #002748 !important;
}

/* Nút xóa (x): Ghim cố định ở góc phải */
.widget_shopping_cart ul.cart_list li a.remove,
.widget_shopping_cart ul.product_list_widget li a.remove {
    position: absolute !important;
    right: 0 !important;
    top: 10px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 20px !important;
    height: 20px !important;
    font-size: 15px !important;
    line-height: 1 !important;
    border-radius: 50% !important;
    border: 1px solid #dcdcdc !important;
    color: #888888 !important;
    text-decoration: none !important;
    background: transparent !important;
}

.widget_shopping_cart ul.cart_list li a.remove:hover {
    background-color: #d9381e !important;
    border-color: #d9381e !important;
    color: #ffffff !important;
}

/* ===================================================
   4. TỔNG TIỀN & CÁC NÚT BẤM DƯỚI CÙNG
   =================================================== */
/* Hàng tổng phụ / Total */
.widget_shopping_cart .total {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #002748 !important;
    border-top: 2px solid #002748 !important;
    padding: 14px 0 !important;
    margin-top: 15px !important;
    margin-bottom: 15px !important;
}

.widget_shopping_cart .total .amount {
    font-size: 15px !important;
}

/* Nút bấm (Xem giỏ hàng & Thanh toán) */
.widget_shopping_cart .buttons a.button {
    border-radius: 4px !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    letter-spacing: 0.5px;
    transition: all 0.2s ease-in-out;
}

/* Nút Xem giỏ hàng / Thanh toán chính */
.widget_shopping_cart .buttons a.checkout,
.widget_shopping_cart .buttons a.button:not(.checkout) {
    background-color: #002748 !important;
    color: #ffffff !important;
    border: 1px solid #002748 !important;
}

.widget_shopping_cart .buttons a.checkout:hover,
.widget_shopping_cart .buttons a.button:not(.checkout):hover {
    background-color: #00172c !important;
    border-color: #00172c !important;
}

