/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
h1 { font-size: 2.5rem; margin-bottom: 0px; }   /* 40px */
h2 { font-size: 2rem; margin-bottom: 0px;}     /* 32px */
h3 { font-size: 1.75rem; margin-bottom: 0px;}  /* 28px */
h4 { font-size: 1.5rem; margin-bottom: 0px;}   /* 24px */
h5 { font-size: 1.25rem; margin-bottom: 0px;}  /* 20px */
h6 { font-size: 1rem; margin-bottom: 0px;}     /* 16px */

.section-title-normal, .section-title-normal span{
	border-bottom: 0px;
}
.section-title-container {
    margin-bottom: 0px;
}
.margin-b-0 {
	margin-bottom: 0px !important;
}
.mt-1 {
	margin-bottom: 0.25rem;
}
/* Margin all sides */
.m-0 { margin: 0; }
.m-1 { margin: 0.25rem; }   /* ~4px */
.m-2 { margin: 0.5rem; }    /* ~8px */
.m-3 { margin: 1rem; }      /* ~16px */
.m-4 { margin: 1.5rem; }    /* ~24px */
.m-5 { margin: 3rem; }      /* ~48px */
.m-auto { margin: auto; }

.p-0 {
	padding: 0px;
}
p{
	margin-bottom: 0px;
}
/* Margin top */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mt-auto { margin-top: auto; }

/* Margin bottom */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mb-auto { margin-bottom: auto; }

/* Margin start (left) */
.ms-0 { margin-left: 0; }
.ms-1 { margin-left: 0.25rem; }
.ms-2 { margin-left: 0.5rem; }
.ms-3 { margin-left: 1rem; }
.ms-4 { margin-left: 1.5rem; }
.ms-5 { margin-left: 3rem; }
.ms-auto { margin-left: auto; }

/* Margin end (right) */
.me-0 { margin-right: 0; }
.me-1 { margin-right: 0.25rem; }
.me-2 { margin-right: 0.5rem; }
.me-3 { margin-right: 1rem; }
.me-4 { margin-right: 1.5rem; }
.me-5 { margin-right: 3rem; }
.me-auto { margin-right: auto; }

/* Margin horizontal (left + right) */
.mx-0 { margin-left: 0; margin-right: 0; }
.mx-1 { margin-left: 0.25rem; margin-right: 0.25rem; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.mx-3 { margin-left: 1rem; margin-right: 1rem; }
.mx-4 { margin-left: 1.5rem; margin-right: 1.5rem; }
.mx-5 { margin-left: 3rem; margin-right: 3rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Margin vertical (top + bottom) */
.my-0 { margin-top: 0; margin-bottom: 0; }
.my-1 { margin-top: 0.25rem; margin-bottom: 0.25rem; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.my-3 { margin-top: 1rem; margin-bottom: 1rem; }
.my-4 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.my-5 { margin-top: 3rem; margin-bottom: 3rem; }
.my-auto { margin-top: auto; margin-bottom: auto; }

.section-title b {
	background-color: transparent;
}
.h-100 .col-inner{
	height: 100% !important;
}
@media only screen and (min-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
#masthead,
.header,
.header-wrapper {
    position: absolute !important;
    top: 10px;
    left: 0;
    width: 100%;
    z-index: 999 !important;
    background: transparent !important;
	border-bottom: 2px solid rgba(255,255,255,0.4);
}

/* ===== MENU MÀU TRẮNG ===== */
.header-nav .nav-top-link {
    color: #fff !important;
}

/* ===== LINE TRẮNG ===== */
 .bg-fill {
    border-radius: 20px;
}

/* ===== BANNER ===== */
.banner-custom {
    border-radius: 20px;
    width: 100% !important;
    margin: auto;
	background-color: transparent !important;
    position: relative;
    z-index: 1;
	top: 25px;
    padding-top: 120px; /* QUAN TRỌNG: đẩy nội dung xuống */
}
.banner {
	border-radius: 20px;
}
	.banner-custom .bg.bg-loaded {
		margin: auto !important;
		width: 95%;
	}
/* HEADER KHI SCROLL */
.header.scrolled {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: rgba(0, 128, 0, 0.95) !important; /* xanh */
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* MÀU CHỮ */

.header.scrolled .header-wrapper {
    background: rgba(0, 128, 0, 0.95) !important;
}
/* TRẠNG THÁI BAN ĐẦU */
#masthead {
    position: absolute !important;
    top: 10px;
    left: 0;
    width: 100%;
    z-index: 999 !important;
    background: transparent !important;
    border-bottom: 2px solid rgba(255,255,255,0.4);
}

/* KHI SCROLL → BỎ TOÀN BỘ */
#masthead.is-scrolled {
    position: fixed !important;
    top: 0px;
    background: #fff !important;
    border-bottom: none;
	color: #000000
}
.banner-bg {
	border-radius: 20px !important;
}
.header.scrolled .nav-top-link {
    color: #000 !important;
}

}
/* ===== HEADER OVERLAY ===== */

.icon-box-img img{ 
	padding-top: 0px;
}
.icon-box-left .icon-box-img+.icon-box-text {
    padding-left: 0.5em;
}

/* ===== PRODUCT CONTAINER ===== */
.product-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px;
    font-family: 'Be Vietnam Pro', 'Segoe UI', sans-serif;
}

/* ===== LAYOUT ROWS ===== */
.product-main .content-row {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin-bottom: 40px !important;
}

/* ===== ẢNH CHÍNH ===== */
.product-gallery.col.large-6 {
    flex: 1 1 55%;
    max-width: 60%;
}

.product-gallery.col.large-6 img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

/* ===== SIDEBAR INFO ===== */
.col.large-6:has(.project-info) {
    flex: 0 0 340px;
    max-width: 360px;
}

.project-info {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 28px 24px;
    border: 1px solid #f0f0f0;
}

.project-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.project-info ul li {
    display: flex;
    flex-direction: column;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 4px;
}

.project-info ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.project-info ul li:first-child {
    padding-top: 0;
}

/* Label (strong) */
.project-info ul li strong {
    font-size: 12px;
    font-weight: 500;
    color: #e8a020;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Icon giả trước label */
.project-info ul li strong::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background-color: #e8a020;
    border-radius: 4px;
    opacity: 0.2;
    flex-shrink: 0;
}

/* Value text */
.project-info ul li span,
.project-info ul li .value {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    padding-left: 26px;
}

/* ===== RATING ===== */
.woocommerce-product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.star-rating span::before {
    color: #f59e0b !important;
}

/* ===== PRODUCT SUMMARY ===== */
.product-info.summary {
    flex: 1;
}

/* ===== GALLERY SECTION ===== */
.product-container .row.content-row.mb-0:last-of-type,
.product-container > .row {
    flex-direction: column;
}

.product-container > .row h3,
.product-container .row.content-row h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

/* Gallery grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.gallery-grid img,
.product-container > .row img,
.product-container .row:last-child img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 16px;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-grid img:hover,
.product-container > .row img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Fallback: nếu ảnh gallery được render thẳng vào .row */
.product-container > .row {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    align-items: start;
}

.product-container > .row h3 {
    grid-column: 1 / -1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .product-main .content-row {
        flex-direction: column;
    }

    .product-gallery.col.large-6,
    .col.large-6:has(.project-info) {
        max-width: 100%;
        flex: 1 1 100%;
    }

    .gallery-grid,
    .product-container > .row {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .gallery-grid,
    .product-container > .row {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* form */
.custom-contact-form {
    max-width: 800px;
}

.custom-contact-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.custom-contact-form .form-row.full {
    flex-direction: column;
}

.custom-contact-form .form-col {
    width: 50%;
}

.custom-contact-form input,
.custom-contact-form textarea {
    width: 100%;
    padding: 24px 20px;
    border-radius: 16px;
    border: 1px solid #ddd;
/*     background: #f5f5f5; */
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
}

/* textarea cao giống ảnh */
.custom-contact-form textarea {
    min-height: 160px;
    resize: none;
}

/* focus */
.custom-contact-form input:focus,
.custom-contact-form textarea:focus {
    border-color: #434c98;
    background: #fff;
}

/* nút gửi */
.custom-contact-form .form-submit input {
    background: #a93d3e !important;
    color: #fff;
    border: none;
    padding: 8px 5px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
	max-width: 20%;
}

.custom-contact-form .form-submit input:hover {
    background: #922f30;
}
.btn-submit {
    background: #a93d3e;
    color: #fff;
    padding: 14px 28px;
    border-radius: 12px;
}
/* mobile */
@media (max-width: 768px) {
    .custom-contact-form .form-row {
        flex-direction: column;
    }

    .custom-contact-form .form-col {
        width: 100%;
    }
}
.flickity-slider > div:not(.col) {
/*     width: 95% !important; */
	margin: auto;
}
.banner-custom{
	margin: auto;
	width: 95%;
}

.banner-custom .banner-inner .overlay {
    margin: auto !important;
    width: 95%;
	border-radius: 20px;
}

/* // product */

.custom-product-info {
    font-size: 14px;
}

.custom-product-info .item {
    display: flex;
    align-items: center;
    gap: 8px;
	color: black;
    margin-bottom: 6px;
}
.custom-product-info-title-wrapper{
	 display: flex;
    align-items: center;
    gap: 8px;
	color: black;
    margin-bottom: 6px;
}
.custom-product-info i {
    font-size: 16px;
    opacity: 0.8;
	color: black;
}
.custom-product-info-title-wrapper{
	color: black;
}

.price,
.add-to-cart-button {
    display: none !important;
}
.box-image-custom-info{
	height: 350px;
	overflow: hidden;
}
.box-image-custom-info a {
	height: 350px;
}
.box-image-custom-info img {
	height: 100%;
	width: 100%;
	border-radius: 10px 10px 0 0;
	padding: 0px;
	object-fit: cover; 
}
.box-product-custome {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-radius: 10px;
}
.box-text-products{
	padding-left: 10px;
	padding-right: 10px;
}

/* product */
.post-custom .col-inner{
	border-radius: 20px;
    border: 1px solid #dedede;
}
.post-custom .col-inner .is-divider{
	display: none;
}
.post-custom .col-inner .box-text-inner {
	padding: 5px;
}
.post-custom .col-inner .box-image img {
	border-radius: 10px 10px 0 0;
}
.counter-box {
  text-align: center;
	display: flex;
  flex-direction: column;
  justify-content: center; /* căn giữa dọc */
  align-items: center;
}

.counter-number {
  font-size: 4rem;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.2;
}

.counter-text {
  color: #a93d3e;
  font-size: 1.75rem;
  margin-top: 5px;
}

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