/*
Theme Name: Flatsome Child
Theme URI: http://flatsome.uxthemes.com/
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Author URI: http://www.uxthemes.com/
Template: flatsome
Version: 3.0
*/

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

/* Import parent theme styles */
@import url('../flatsome/style.css');

/* Custom Search Box Styles */

/* Style cho wpDiscuz trong Flatsome */
#wpdcom {
    max-width: 100% !important;
    padding: 20px 0;
}

#wpdcom .wpd-form-row {
    margin-bottom: 20px;
}

#wpdcom .wpdiscuz-front-actions {
    margin-top: 20px;
}

/* Style cho form bình luận */
#wpdcom .wpd-form-col-left,
#wpdcom .wpd-form-col-right {
    float: none;
    width: 100%;
}

/* Style cho nút submit */
#wpdcom .wpd-form-row .wpdiscuz-item .wc_comm_submit {
    background-color: #446084;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 3px;
}

#wpdcom .wpd-form-row .wpdiscuz-item .wc_comm_submit:hover {
    background-color: #364e6b;
}

/* Responsive */
@media (max-width: 768px) {
    #wpdcom {
        padding: 10px;
    }
}

/* Custom Product Description Styling */
.product-description-wrapper {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.product-description-title {
    font-size: 1.5em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f1f1;
}

.product-description-content {
    font-size: 1.1em;
    line-height: 1.6;
}

/* Product Image Hover Effect */
.woocommerce-product-gallery__image img,
.product-image img,
.woocommerce-product-gallery img,
.product img,
.products .box-image img,
.product-small img,
.product-category img,
ul.products li.product img,
.related.products img,
.up-sells.products img,
.slider-nav-circle img,
.slider .product-small img,
.flickity-slider .product-small img,
.product-gallery-slider img,
.slider .product img,
.banner .product img {
    transition: all 0.3s ease-in-out !important;
}

.woocommerce-product-gallery__image img:hover,
.product-image img:hover,
.woocommerce-product-gallery img:hover,
.product img:hover,
.products .box-image img:hover,
.product-small img:hover,
.product-category img:hover,
ul.products li.product img:hover,
.related.products img:hover,
.up-sells.products img:hover,
.slider-nav-circle img:hover,
.slider .product-small img:hover,
.flickity-slider .product-small img:hover,
.product-gallery-slider img:hover,
.slider .product img:hover,
.banner .product img:hover {
    transform: scale(1.05) !important;
}

/* Hide "Added to cart" message and show mini-cart instead */
.woocommerce-message,
.success-color {
    display: none !important;
}

.cart-popup {
    display: block !important;
}

.header-cart-link:after {
    display: none !important;
}

/* Customize mini-cart popup */
.cart-popup-inner {
    background-color: #fff;
    padding: 20px;
    box-shadow: 1px 1px 15px rgba(0,0,0,0.15);
    border-radius: 5px;
}

.cart-popup {
    padding: 20px;
}

.search .post {
    display: none;
}

.search .page {
    display: none;
}

/* Product Reviews Styling */
.reviews-header {
    text-align: center;
    margin-bottom: 30px;
}

.reviews-title {
    font-size: 24px;
    color: #333;
    font-weight: 500;
}

.no-reviews-container {
    display: flex;
    justify-content: center;
    padding: 20px;
    padding-top: 0;
    gap: 20px;
}

.reviews-left {
    display: flex;
    flex-direction: column
}

.empty-stars {
    display: flex;
    align-items: center;
}

.empty-stars .star {
    font-size: 24px;
    margin: 0 2px;
}

.no-reviews-text {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.write-review-button {
    background-color: #E5A6A6;
    color: white;
    border: none;
    padding: 0 1.2em !important;
    margin: 0;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
    white-space: nowrap;
}

.write-review-button:hover {
    background-color: #d89595;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.write-review-button:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Review Form Styling */
#review_form_wrapper {
    max-width: 600px;
    margin: 0px auto;
    padding: 30px;
    padding-top: 0px;
    background: #fff;
}

.comment-form-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.rating-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.rating-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
}

.rating-stars input {
    display: none;
}

.rating-stars label {
    font-size: 30px;
    color: #d4d4d4;
    cursor: pointer;
    padding: 0 5px;
}

.rating-stars input:checked ~ label,
.rating-stars label:hover,
.rating-stars label:hover ~ label {
    color: #E5A6A6;
}

.comment-form-comment label {
    display: block;
    margin-bottom: 10px;
    color: #333;
}

#comment {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    min-height: 120px;
    font-size: 14px;
}

.form-submit {
    margin-top: 20px;
    text-align: right;
}

.form-submit input[type="submit"] {
    background-color: #E5A6A6;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin:0
}

.form-submit input[type="submit"]:hover {
    background-color: #d89595;
}

/* Reviews Overview */
.reviews-overview {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* padding: 20px; */
    margin-bottom: 30px;
    gap: 30px;
}

/* Reviews Average */
.reviews-average {
    flex: 0 0 200px;
    text-align: center;
}

.reviews-average .rating-stars {
    margin-bottom: 10px;
}

.reviews-average .star {
    font-size: 24px;
    color: #d4d4d4;
}

.reviews-average .star.filled {
    color: #E5A6A6;
}

.average-rating {
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

.review-count {
    color: #666;
    font-size: 14px;
}

/* Rating Breakdown */
.rating-breakdown {
    flex: 1;
    max-width: 400px;
}

.rating-bar {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    gap: 10px;
}

.rating-stars-count {
    flex: 0 0 100px;
    font-size: 14px;
    color: #E5A6A6;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: #E5A6A6;
    transition: width 0.3s ease;
}

.rating-bar .count {
    flex: 0 0 30px;
    text-align: right;
    font-size: 14px;
    color: #666;
}

/* Reviews List */
.reviews-list {
    /* padding: 20px; */
}

.reviews-sort {
    margin-bottom: 20px;
}

.sort-reviews {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Review Item */
.review-item {
    padding: 20px;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.review-author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.author-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.review-meta {
    text-align: right;
}

.star-rating {
    margin-bottom: 5px;
}

.star-rating .star {
    color: #E5A6A6;
    font-size: 20px;
    margin: 0 -1px;
}

.star-rating .star.filled {
    color: #E5A6A6;
}

.review-date {
    font-size: 14px;
    color: #666;
}

.review-content {
    color: #444;
    line-height: 1.6;
}

.review-text {
    font-size: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .review-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .review-meta {
        text-align: left;
    }
}

/* Write Review Button */
.review-button-wrapper {
    flex: 0 0 200px;
    text-align: right;
}

.write-review-button {
    background-color: #E5A6A6;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.write-review-button:hover {
    background-color: #d89595;
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
    .reviews-overview {
        flex-direction: column;
        align-items: center;
    }

    .reviews-average,
    .rating-breakdown,
    .review-button-wrapper {
        flex: none;
        width: 100%;
        max-width: none;
    }

    .review-button-wrapper {
        text-align: center;
        margin-top: 20px;
    }
}

.css-custom-review-button{
    margin: 0;
    padding: 0 1.2em;
    background: #fff;
    margin-right: 15px;
    color: #d89595;
    border: 1px solid #d89595;
    border-radius: 4px;
}
.css-custom-review-button:hover{
    background: unset;
}
.review-form-actions{
    text-align: center;
}
.fs-24px{
    font-size: 24px !important;
}
.commentlist>li:not(:first-child){
    border-top:unset
}
.cl-E5A6A6{
    color: #E5A6A6 !important;
}
.commentlist .review{
    margin-left:0 !important;
}
.rating-filter-link {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.rating-filter-link:hover {
    opacity: 0.8;
}
.rating-filter-link.active {
    background-color: rgba(229, 166, 166, 0.1);
    border-radius: 4px;
}

.loading-reviews {
    text-align: center;
    padding: 20px;
    color: #666;
}

.reset-filter {
    display: inline-block;
    margin-right: 15px;
    color: #E5A6A6;
    text-decoration: none;
    font-size: 14px;
}

.reset-filter:hover {
    text-decoration: underline;
}

.woocommerce-variation .price *{
    color: #d99898 !important;
    font-size: 24px !important;
}
.product-page-price *{
    color: #d99898 !important;
}

/* Popup Form Styles */
.popup-form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.popup-form {
    background: #F5C6D0;
    padding: 40px;
    border-radius: 10px;
    position: relative;
    text-align: center;
}

.popup-form .close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #000;
    background: none;
    border: none;
    padding: 5px;
}

.popup-form h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #000;
    font-weight: bold !important; 
}

.popup-form p {
    font-size: 16px;
    margin-bottom: 25px;
    color: #000;
    line-height: 1.4;
}

.popup-form input[type="email"] {
    width: 100%;
    padding: 12px;
    background: transparent;
    margin-bottom: 20px;
    font-size: 16px;
    border-bottom: 1px solid;
    border-top: none;
    border-right: none;
    border-left: none;
    outline: none;
    box-shadow:none
}

.popup-form .signup-button {
    background: #000;
    color: #fff;
    padding: 0px 30px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    cursor: pointer;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.popup-form .no-thanks {
    color: #000;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    display: inline-block;
    text-transform: uppercase;
}

.popup-form .signup-button:hover {
    opacity: 0.9;
}

.popup-form .no-thanks:hover {
    text-decoration: underline;
}
.social-icons a{
    color:#d99898 !important
}
label{
    font-weight: normal !important;
}
.comment-form-url{
    display: none !important;
}
.comment-form-cookies-consent{
    display: none !important;
}