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

/*************** ADD CUSTOM CSS HERE.   ***************/


@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}
/* imporrt */
/* Thẻ bao ngoài sản phẩm */
.product-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    padding: 15px;
    box-sizing: border-box;
    position: relative;
}
/* Phần chứa nút được đẩy xuống đáy (cách đáy một chút) */
.product-button-wrapper {
    margin-top: auto; /* Đẩy xuống dưới */
    padding-bottom: 15px;
    display: flex;
    justify-content: center; /* Canh giữa theo ngang */
}
/* Nút */
.custom_add_to_cart_button,
a.buy-now-button {
    background: #C59C41 !important;
    color: #fff !important;
    border-radius: 10px;
    padding: 12px 15px;
    font-weight: bold;
    font-size: 16px;
    line-height: 1.4;
    width: 90%;
    text-align: center;
    text-decoration: none;
    white-space: pre-line;
    display: inline-block;
}
/* Hiệu ứng hover */
.custom_add_to_cart_button:hover,
a.buy-now-button:hover {
    background: #c59c41 !important; /* Màu vàng hover (hoặc thay màu theo bạn) */
    color: #fff !important;
	justify-content: center;    
    margin: 5% !important;
}
/* Đảm bảo class không bị ghi đè */
.woocommerce a.button.buy-now-button,
.woocommerce .buy-now-button.button {
    display: flex;
	justify-content: center;    
    margin: 5% !important;
}

.tgdd-review-qa { 
    display: none; 
    border: 1px solid #ddd;
    padding: 20px;
    background: #fff;
}
.single-product .tgdd-review-qa { 
    display: block; 
}
.tgdd-review-qa h3 {
    margin: 0 0 15px; /* Loại bỏ margin trên, giữ margin dưới để phân cách */
    font-size: 24px; /* Điều chỉnh kích thước nếu cần */
}
.review-summary {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.review-summary .score {
    font-size: 36px;
    font-weight: bold;
    color: #f39c12;
}
.review-summary .score span {
    font-size: 18px;
    color: #555;
}
.rating-bars {
    flex: 1;
}
.rating-bars .bar {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}
.rating-bars .star {
    width: 40px;
}
.rating-bars .bar-bg {
    flex: 1;
    height: 8px;
    background: #eee;
    margin: 0 8px;
    position: relative;
}
.rating-bars .bar-fill {
    height: 8px;
    background: #f39c12;
}
.review-list {
    margin-top: 20px;
}
.review-item {
    border-top: 1px solid #eee;
    padding: 10px 0;
}
.review-item strong {
    color: #333;
}
.review-item .stars {
    color: #f39c12;
}
.review-qa-buttons {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}
.review-qa-buttons a {
    background: #0071a1;
    color: #fff;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
}
.review-qa-buttons a:hover {
    background: #005f87;
}
/*end*/