/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

/*************** ADD CUSTOM CSS HERE.   ***************/
body {
	font-family: "Lexend", sans-serif;
}
.section > .section-content > .row > .col {
	padding-bottom: 0;
}
p {
	margin-bottom: 10px;
}
p:last-child {
	margin-bottom: 0;
}
.slogan {
	font-size: 32px;
	color: var(--primary-color);
	font-family: "Plus Jakarta Sans", sans-serif;
	font-weight: 800;
}
.header-main {
	background-image: url(images/flag-vn.png);
	background-position: right center;
	background-repeat: no-repeat;
	background-size: contain;
}
.header-search.header-search-dropdown {
	margin-left: 60px;
}
.header-search.header-search-dropdown a {
	color: var(--primary-color);
	font-size: 16px;
}
.header-bottom .nav>li>a {
	font-weight: normal;
	font-size: 16px;
}
.header-bottom .nav>li.active>a {
	font-weight: 600;
}
.header-bottom .header-button a {
	font-size: 14px;
	font-weight: 600;
}

.box-cate .box-image {
	border-radius: 8px;
}
.box-cate .box-image img {
	border-radius: 8px;
}
.box-cate .box-image a {
	position: relative;
	z-index: 2;
}
.box-cate .box-text {
	top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 15px;
}
.box-text-inner {
	position: relative;
	z-index: 5;
}
b, strong {
	font-weight: bold;
}

.product-small.box {
	background-color: hsl(0deg 0% 94% / 45%);
	border-radius: 16px;
	padding: 15px;
}
.product-small.box .box-image {
	border-radius: 16px;
}
.home .product-small.box .box-image img {
	height: 180px;
	object-fit: cover;
	border-radius: 16px;
}
.product-small.box .box-text {
	padding-bottom: 0;
}
.product-small.box .price-wrapper {
	display: none;
}
.product-small.box .product-title a {
	font-size: 16px;
	font-weight: bold;
	color: #212529;
}
.icon-custom.featured-box.icon-box-center .icon {
	padding: 20px;
    width: 80px;
    height: 80px;
    border-radius: 99px;
}
.icon-custom.featured-box.icon-box-center:hover .icon {
	background-image: linear-gradient(to right, #E7C372, #EBD27C, #E7C372);
}
.icon-custom.featured-box.icon-box-center h4 {
	font-weight: 500;
}
.icon-box-img img, .icon-box-img svg {
	padding-top: 0;
}
.icon-box-left p {
	margin-bottom: 0;
}
form.wpcf7-form {
	margin-bottom: 0;
}
textarea.wpcf7-form-control,
input.wpcf7-form-control {
	height: 42px;
	border-radius: 8px;
}
input.wpcf7-form-control.wpcf7-submit {
	display: block;
	width: 100%;
	background-color: #CE9940 !important;
	border-radius: 8px;
	height: 38px;
	color: var(--primary-color);
	font-size: 16px;
	font-weight: normal;
	margin: 0;
	text-transform: none;
}
label {
	font-weight: normal;
}
.wpcf7-spinner {
	display: none;
}
.absolute-footer {
	color: var(--primary-color);
	padding: 15px 0;
}
.footer-wrapper img.alignnone {
	margin-bottom: 15px;
}

.nav>li ul.sub-menu {
    column-count: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
    list-style: none;
    margin: 0;
    overflow: visible;
    padding: 12px 16px;
    display: block;
    border: 1px solid #e8ebed;
}
.nav>li ul.sub-menu > li > a {
	white-space: nowrap;
}

.page-title-bar {
	padding: 20px 0;
}
h1.product-title.product_title {
	font-size: 42px;
	color: var(--primary-color);
}
.product-info .price {
	margin: 0;
}
.product-info .price .amount,
.product-info .price ins .amount {
	color: var(--primary-color);
	font-size: 24px;
}
.product-info .price del {
	text-decoration: none;
}
.product-info .price del .amount {
	text-decoration: line-through;
	color: #333;
	opacity: .8;
	font-size: 18px;
}
.product-info form {
	margin-bottom: 0;
}
.product-info .quantity {
	display: flex;
	align-items: center;
	margin: auto;
	margin-bottom: 15px;
	padding-bottom: 15px;
	border-bottom: 1px solid #e8ebed;
}
.product-info .quantity:before {
	content: 'Số lượng khách hàng';
	display: inline-block;
	font-size: 16px;    
	font-weight: 500;
	width: 80%;
}
.product-info .quantity input[type=number] {
	border: none;
    box-shadow: none;
    background-color: transparent;
    font-size: 24px;
    font-weight: 500;
    padding: 0;
    line-height: 1;
    height: 40px;
    width: 40px;
}
.product-info .quantity .button.plus {
	background-color: #fff;
    border: 1px solid #a1a5a8 !important;
    border-radius: 4px !important;
    height: 40px;
    padding: 0 !important;
    width: 49px;
}
.product-info .quantity .button.minus {
	background-color: #fff;
    border: 1px solid #a1a5a8 !important;
    border-radius: 4px !important;
    height: 40px;
    padding: 0 !important;
    width: 49px;
}
.product-info form.cart button {
	width: 49%;
    background-color: #d8ecff !important;
    border-radius: 8px;
    color: #212529;
    font-size: 16px;
    font-weight: 400;
    height: 48px;
    line-height: 20px;
    margin: 0;
    padding: 0;
    color: var(--primary-color);
    margin-bottom: 0;
}
.product-info form.cart button.wc-buy-now-btn {
	float: right;
	background-color: var(--primary-color) !important;
	color: #fff;
}
.product-info form.cart button:hover {
	background-color: #e72231 !important;
	box-shadow: none;
	color: #fff;
}
.sc-line-contact {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sc-line-contact li:first-child {
    border-top: 0;
}
.sc-line-contact li {
    border-top: 1px solid #e8ebed;
    padding: 10px 0;
    margin-left: 0 !important;
    margin-bottom: 0;
    list-style: none;
}
.sc-line-contact li label {
    color: #a1a5a8;
    display: block;
    font-weight: 400;
    line-height: 150%;
}
.sc-line-contact li .sc-line-contact-info {
    color: #11365a;
    font-weight: 500;
    line-height: 150%;
}

/* Container chính */
.custom-related-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px; /* Giới hạn chiều rộng nếu cần */
}

/* Từng item sản phẩm */
.custom-related-item {
    display: flex;
    align-items: center; /* Căn giữa theo chiều dọc */
    padding: 15px 0;
    border-bottom: 1px solid #e5e5e5; /* Đường kẻ mờ ngăn cách */
}

/* Loại bỏ đường kẻ ở item cuối cùng */
.custom-related-item:last-child {
    border-bottom: none;
}

/* Cột ảnh bên trái */
.c-related-thumb {
    width: 130px; /* Chiều rộng cố định cho ảnh */
    flex-shrink: 0;
    margin-right: 15px;
}

.c-related-thumb img {
    width: 100%;
    height: 90px; /* Chiều cao cố định */
    object-fit: cover; /* Cắt ảnh đẹp, không bị méo */
    border-radius: 8px; /* Bo góc ảnh */
    display: block;
}

/* Cột nội dung bên phải */
.c-related-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Tiêu đề sản phẩm */
.c-related-title {
    margin: 0 0 8px 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.4;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.c-related-title a {
    color: #0e2b5c; /* Màu xanh đậm giống ảnh */
    font-weight: 700;
    text-decoration: none;
}

.c-related-title a:hover {
    color: #0056b3;
}

/* Meta: Giá và Rating */
.c-related-meta {
    display: flex;
    align-items: center;
    gap: 15px; /* Khoảng cách giữa giá và sao */
}

/* Giá sản phẩm */
.c-related-price, 
.c-related-price span.amount {
    font-size: 16px;
    font-weight: 700;
    color: #0e2b5c !important; /* Màu xanh đậm cho giá */
}

/* Rating: Icon sao + số */
.c-related-rating {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.c-related-rating svg {
    margin-right: 5px; /* Khoảng cách icon sao và số */
    display: block;
}

.rating-num {
    margin-top: 2px; /* Chỉnh nhẹ vị trí số cho thẳng hàng */
}

.box-blog-post .is-divider {
	display: none;
}
.box-blog-post .post-title {
	text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin-bottom: 10px;
}
.box-blog-post .box-image {
	border-radius: 8px;
}
.box-blog-post .box-image img {
	border-radius: 8px;
}
.custom-blog-read-more {
	text-align: right;
	color: #e72231;
	margin-top: 8px;
}
.custom-blog-read-more span:hover {
	text-decoration: underline;
}

/* Container */
.crs-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin-bottom: 20px;
}

/* Khối đánh giá */
.crs-rating-pill {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid #eef0f2;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .1);
    color: #666;
    font-size: 16px;
    font-weight: 500;
}

.crs-star { color: #f5c518; margin-right: 8px; font-size: 18px; }
.crs-score { color: #0e2b5c; font-weight: 700; font-size: 18px; }
.crs-sep { margin: 0 8px; color: #999; font-size: 14px; }
.crs-count { color: #888; font-size: 15px; }

/* Nút Share */
.crs-social-group {
    display: flex;
    gap: 12px;
}

.crs-social-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #eef0f2;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .1);    
    color: #0e2b5c; /* Màu mặc định */
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Hiệu ứng Hover màu đặc trưng */
.crs-social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    color: #fff; /* Chữ trắng khi hover */
    border-color: transparent;
}

/* Màu nền khi hover */
/* Màu riêng khi hover (nếu thích) */
.crs-social-btn.facebook:hover { color: #1877F2; border-color: #1877F2; }
.crs-social-btn.instagram:hover { color: #E1306C; border-color: #E1306C; }

/* Container để căn chỉnh nếu cần */
.rating-pill-container {
    display: inline-block;
    margin: 10px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Khối chính (Viên thuốc) */
.rp-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px; /* Chiều cao khớp với ảnh */
    padding: 0; /* Độ rộng 2 bên */
}

/* Ngôi sao (Màu vàng, rỗng) */
.rp-star i {
    color: #FFC107; 
    font-size: 19px; /* Kích thước sao */
    margin-right: 12px;
    margin-top: -2px;
}

/* Số điểm (0) - Màu đậm */
.rp-score {
    color: #0E1B42; /* Màu xanh đen */
    font-weight: 700;
    font-size: 19px;
    line-height: 1;
}

/* Dấu chấm - Màu xám */
.rp-dot {
    margin: 0 12px;
    color: #9EA6B5;
    font-size: 20px;
    line-height: 0.5; /* Căn giữa dấu chấm */
}

/* Chữ "đánh giá" - Màu xám */
.rp-text {
    color: #8D96A8;
    font-size: 16px;
    font-weight: 500;
}

.woocommerce-breadcrumb, 
.woocommerce-ordering, 
.woocommerce-result-count {
	display: none;
}
h1.shop-page-title {
	font-size: 48px;
}

.woo-cat-custom-thumb img {
    aspect-ratio: 1200 / 280;
    object-fit: cover;
    width: 100% !important;
}
.term-description {
    padding: 30px 0;
}
.term-description ul {
    margin-left: 30px;
}
.featured-box.icon-customer .icon img {
    border-radius: 99px;
}
.featured-box.icon-customer h3,
.featured-box.icon-customer h4 {
    margin-bottom: 0;
}
.featured-box.icon-customer p {
    margin-bottom: 0;
}

h1.page-title {
    text-align: left;
    font-size: 48px;
    color: var(--primary-color);
    text-transform: none;
    margin-bottom: 0;
}
h1.entry-title {
    font-size: 42px;
    color: var(--primary-color); 
}
.related-heading {
    font-size: 32px;
    color: var(--primary-color); 
}

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

@media only screen and (max-width: 480px) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
	.hpt-magic-slider-wrapper {
		min-height: 260px !important;
	}
	.box-cate .box-text {
		padding: 10px;
	}
	.product-small.box .box-image img {
		height: 120px;
	}
    .header-main {
        background-position-x: 240px;
    }
    .mobile-nav > li > a {
        color: #fff;
    }
    .nav>li ul.sub-menu {
        column-count: 1;
        -webkit-columns: 1;
        -moz-columns: 1;
        padding: 0;
    }
    /*.nav>li ul.sub-menu a {
        padding-left: 0;
    }*/

}
.thongtin-them {
    padding: 24px;
    border: 1px solid #eee;
    border-radius: 8px;
}
.thongtin-them ul{
    list-style: initial;
    margin-bottom: 25px;
}
.thongtin-them ul li {
    list-style: initial;
    border: none !important;
    margin-left: 20px !important;
    padding: 3px 0;
}