/*
 Theme Name:   Kadence Child
 Theme URI:    https://kadencewp.com/
 Description:  Child theme for Kadence theme
 Author:       Tên bạn hoặc công ty
 Author URI:   https://yourwebsite.com
 Template:     kadence
 Version:      1.0.0
 Text Domain:  kadence-child
*/

/* Import style từ theme cha */
@import url("../kadence/style.css");



.boxform input.wpcf7-form-control {
    width: 100%;
}
.boxform textarea {
    height: 100px;
}
.boxform {
    background-color: #f0f0f0;
    border-radius: 10px;
    padding: 30px 100px 0px 100px;
}
.mt-8 .pagination a:hover{
	background-color: var(--global-palette-btn-bg);
}
.mt-8 .pagination .page-numbers{
	border-color: var(--global-palette-btn-bg) !important;
}
.mt-8 nav.navigation.pagination {
    text-align: center;
}
.boxtaxonomy-product {
    margin: 30px 0px !important;
}
section.cus-secbanner {
    margin-bottom: 30px;
}
.cus-maincontent h2 {
    border-bottom: 2px solid #0d173e;
	color: #64b84c;
	margin-bottom: 20px;
}
.cus-maincontent h2 span {
    background-color: #0d173e;
	padding: 5px 20px;
}
.boxbtnhome a {
    background-color: green;
    color: #fff;
    border-radius: 30px;
    padding: 10px 30px;
}
.boxbtnhome {
    text-align: center;
	padding: 30px 0px;
}

/*-css-sidebar-custom-*/
/* CSS cho product-card */
.dspostsidebar h2 {
    margin-bottom: 0px !important;
}
.product-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.product-list .product-card-sidebar {
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
}
.product-image {
    width: 40%;
    padding-right: 15px;
}
.product-thumb {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
}
/* Cột thông tin - 60% trên desktop */
.product-details {
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.product-title {
    font-size: 1.2rem;
    margin: 0 0 10px;
}
.product-price,
.product-meta {
    margin: 2px 0;
}

/* Responsive mobile: chia thành 1 cột */
@media screen and (max-width: 768px) {
    .product-card-sidebar {
        flex-direction: column;
    }

    .product-image,
    .product-details {
        width: 100%;
        padding: 0;
    }

    .product-image {
        margin-bottom: 10px;
    }
}
/*-end-css-sidebar-custom-*/


/*-css-single-san-pham-*/
.product-description h2 span {
    border-bottom: 2px solid #28a745;
    font-size: 22px;
}
.related-products h2 span, .boxcussidebar h2 span {
    background-color: #0d173e;
    padding: 7px 20px;
	font-size: 20px;
}
.related-products h2, .boxcussidebar h2 {border-bottom: 2px solid #0d173e;color: #64b84c;margin-bottom: 20px;}
.product-contact {
    margin-top: 10px;
	margin-bottom: 20px;
}
.product-contact a:hover {
    color: #fff;
}
.product-contact a {
    background-color: green;
    color: #fff;
    border-radius: 30px;
    padding: 10px 30px;
}
.single-product-layout {
    padding: 30px 0px !important;
}
.boxcussidebar {
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 20px 20px 20px 20px;
}
.product-description {
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin: 30px 0px;
	padding: 20px 20px 20px 20px;
}
.product-top {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.product-gallery img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 10px;
}
.single-product-layout .product-info h1 {
    font-size: 25px;
}
.single-product-layout .product-info {
	padding: 10px 20px 5px 20px;
}
.product-info {
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .product-top {
        flex-direction: row;
    }

    .single-product-layout .product-gallery,
    .single-product-layout .product-info {
        width: 50%;
		box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
        border-radius: 10px;
    }

    .product-info .product-meta {
        grid-column: 1 / 2;
    }

    .product-info .product-contact {
        grid-column: 2 / 3;
        align-self: start;
    }
}
.single-product-layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .main-sidebar-wrapper {
        display: flex;
        flex-direction: column;
    }

    @media (min-width: 1024px) {
        .single-product-layout {
            flex-direction: row;
        }

        .main-content {
            width: 70%;
        }

        .sidebar {
            width: 30%;
        }
    }

    .product-meta p {
        margin-bottom: 8px;
    }

    .related-products-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    @media (min-width: 640px) {
        .related-products-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (min-width: 768px) {
        .related-products-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }
/*-end-css-single-san-pham-*/

/*-css-toxonomy-san-pham-*/
.boxtaxonomy-product h1 {
    text-align: center;
	margin-bottom: 20px;
}
.product-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 24px;
    }
    .product-card {
        border-radius: 10px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
        transition: 0.3s ease;
    }
    .product-card:hover {
        box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.4);
    }
    .product-card img {
        width: 100%;
        height: 180px;
        object-fit: cover;
    }
    .product-info {
        padding: 16px;
    }
    .product-title {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 0px;
        color: #333;
    }
    .product-price {
        color: #28a745;
        font-weight: bold;
    }
    .product-meta {
        font-size: 14px;
        color: #666;
    }
/*-end-css-toxonomy-san-pham-*/

a, a:hover {
  text-decoration: none !important;
}
.boxft p {
    margin-bottom: -10px;
}
.boxft {
    font-size: 14px;
}

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
	.boxform {
    	padding: 30px 30px 0px 30px;
	}
	.product-thumb {
		height: 280px;
	}
	.product-card img {
		height: 280px;
	}
	.product-gallery img {
    	padding: 0px 20px;
	}
	.product-description{
			margin: 30px 20px;
		}
	.related-products {
    		margin: 0px 20px;
	}
	.boxcussidebar {
    		margin: 0px 20px;
	}
}