/*
Theme Name: Đức Hiếu Web
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
:root {
	--color1: #78c042;
	--white: #ffffff;
}
.nav.top-bar-nav.nav-right{
	padding: 3px 0;
}
.html_topbar_left{
	background: var(--white);
    border-radius: 20px;
    padding: 0 20px;
}
.html_topbar_left marquee{
	color: var(--color1);
}
.header-nav-main.nav{
	gap: 19px;
}
.header-nav-main.nav li a{
	font-size: 16px
}
.header-nav-main.nav li.current-menu-item>a {
    color: var(--color1);
}
.header-nav-main.nav a[aria-current="page"]::after, 
.header-nav-main.nav.current-menu-item>a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 100%;
    height: 2px;
    background: var(--color1);
}
.social-button, .social-icons .button.icon:hover, .social-icons .button.icon:not(.is-outline){
	background-color: var(--color1) !important
}
.social-icons.follow-icons a{
	font-size:14px !important;
}
.header-main .top-divider{
	display: none !important;
}
.absolute-footer{
	display: none !important
}
.padding-bottom .row .col{
	padding-bottom: 0 !important;
}

/* =================================================
 * SINGLE PRODUCT PAGE STYLES
 * ================================================= */
.single-product-page {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
    font-family: Arial, sans-serif;
}

.ux-builder-top-block {
    margin-bottom: 25px;
}

.single-main-container {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.single-product-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    align-items: start;
}

/* Cột trái: Hình ảnh */
.single-image-box {
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    background: #f9f9f9;
    padding: 10px;
    text-align: center;
}

.single-image-box img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
}

/* Cột phải: Thông tin */
.single-info-wrapper .product-title {
    color: #2e7d32;
    font-size: 26px;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #2e7d32;
    padding-bottom: 10px;
}

.product-summary-meta {
    color: #333;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 25px;
}
.product-summary-meta li{
	position: relative;
	margin-left: 30px;
	list-style-type: none;
}
.product-summary-meta li::before{
	position: absolute;
    top: -4px;
    left: -28px;
	font-size: 20px;
	color: var(--color1);
	content: "▶"
}
.product-summary-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #555;
}

/* Nút liên hệ */
.cta-button-wrapper .btn-contact {
    display: inline-block;
    background: #5cb85c;
    color: #fff;
    padding: 10px 25px;
    border-radius: 20px;
    font-weight: bold;
    text-decoration: none;
    font-size: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
}

.cta-button-wrapper .btn-contact:hover {
    background: #4cae4c;
    color: #fff;
}

/* Chi tiết nội dung */
.single-full-content {
    margin-top: 40px;
    border-top: 1px solid #eaeaea;
    padding-top: 25px;
    color: #444;
    font-size: 15px;
    line-height: 1.7;
}

.single-full-content h3 {
    color: #2e7d32;
    font-size: 25px;
    margin-bottom: 15px;
}

/* Sản phẩm liên quan */
.related-products-section {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.related-header {
    border-bottom: 2px solid #5cb85c;
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.related-header h3 {
    margin: 0;
    color: #2e7d32;
    font-size: 18px;
    text-transform: uppercase;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.related-card {
    border: 1px solid #eaeaea;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
}

.related-card-img {
    height: 160px;
    overflow: hidden;
    background: #f9f9f9;
}

.related-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-card-body {
    padding: 10px;
    text-align: center;
}

.related-card-body a {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 36px;
}

.related-empty {
    grid-column: span 4;
    text-align: center;
    color: #666;
    margin: 0;
}

/* Khung chứa khi bị thu gọn */
.collapsible-content {
    position: relative;
    max-height: 400px; /* Chiều cao mặc định khi chưa bấm Xem thêm */
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

/* Lớp mờ chuyển màu (Gradient) ở đáy nội dung */
.collapsible-content .read-more-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    pointer-events: none;
}

/* Trạng thái khi đã bấm Xem thêm */
.collapsible-content.expanded {
    max-height: 10000px; /* Mở rộng tối đa */
}

.collapsible-content.expanded .read-more-overlay {
    display: none; /* Ẩn lớp phủ mờ */
}

/* Nút bấm Xem thêm / Thu gọn */
.read-more-btn-wrapper {
    text-align: center;
    margin-top: 15px;
}

.btn-read-more {
    background-color: #2e7d32;
    color: #ffffff;
    border: none;
    padding: 10px 30px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.btn-read-more:hover {
    background-color: #1b5e20;
    transform: translateY(-1px);
}

.btn-read-more .arrow-icon {
    display: inline-block;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.btn-read-more.active .arrow-icon {
    transform: rotate(180deg);
}

/* Responsive cho thiết bị di động */
@media (max-width: 768px) {
    .single-product-grid {
        grid-template-columns: 1fr;
    }
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
	.cta-button-wrapper{
		text-align: center;
	}
	.taxonomy-grid{
		    grid-template-columns: repeat(2, 1fr) !important;
	}
}
@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}