/* Single Product Page Styles */

.product-detail-main {
    padding: 30px 0;
    font-family: Arial, sans-serif;
    background: #faf7ee;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Section 1: Product Top */
.product-top-section {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
}

.product-images-col {
    flex: 0 0 400px;
    max-width: 400px;
    overflow: hidden; /* Prevent overflow */
}

.product-info-col {
    flex: 1;
}

/* Main Image */
.main-image-wrapper {
    margin-bottom: 15px;
    overflow: hidden;
}

#productMainSlider {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

#productMainSlider .swiper-slide {
    text-align: center;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#productMainSlider img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Thumbnail Images */
.thumb-images-wrapper {
    overflow: hidden;
}

#productThumbSlider {
    overflow: visible;
}

#productThumbSlider .swiper-wrapper {
    display: flex;
    gap: 10px;
}

#productThumbSlider .swiper-slide {
    width: 80px !important;
    height: 80px;
    border: 2px solid #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s;
}

#productThumbSlider .swiper-slide:hover,
#productThumbSlider .swiper-slide-active {
    opacity: 1;
    border-color: #ff6b35;
}

#productThumbSlider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info */
.product-title {
    font-size: 24px;
    color: #ff0000;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 600;
}

.product-meta {
    margin-bottom: 20px;
}

.rating-wrapper {
    display: flex;
    gap: 15px;
}

.star-rating {
    color: #ffc107;
}

.rating-count {
    color: #333;
}

.product-excerpt {
    color: #333;
    line-height: 1.6;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
    font-size: 16px;
}

/* Price Section */
.price-section {
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    gap: 15px;
    vertical-align: middle;
    align-items: center;
    background: #fcfbf6;
    padding: 10px 15px;
}

.price-amount {
    font-size: 32px;
    color: #ff6b35;
    font-weight: bold;
}

.price-old {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
}

/* Quantity Section */
.quantity-section {
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    align-items: center;
    border-left: solid 1px #ccc;
    padding-left: 15px;
}

.quantity-section label {
    display: block;
    margin-bottom: 0;
    font-weight: 500;
    color: #333;
    margin-right: 10px;
}

.quantity-wrapper {
    display: inline-flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.qty-btn {
    background: #f5f5f5;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s;
}

.qty-btn:hover {
    background: #e5e5e5;
}

.qty-input {
    border: none;
    width: 60px;
    text-align: center;
    font-size: 16px;
}

/* Cart Buttons */
.cart-button-wrapper {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-add-to-cart,
.btn-wishlist {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    justify-content: center;
}
.btn-wishlist a{color: #fff;}
.btn-add-to-cart {
    background: #ff0000;
    color: white;
    flex: 1;
}

.btn-add-to-cart:hover {
    background: #d94812;
}

.btn-add-to-cart i {
    font-size: 18px;
}

.btn-wishlist {
    background: #20409a;
    color: white;
    flex: 1;
}

.btn-wishlist:hover {
    background: #2c2fa5;
}

.btn-wishlist i {
    font-size: 16px;
}

/* Product Features */
.product-features {
    padding: 20px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e5e5e5;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: #333;
    font-size: 15px;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-item i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #ff0000;
}

/*.feature-item:nth-child(1) i {
    color: #ff0000;
    padding: 5px;
}

.feature-item:nth-child(2) i {
    color: #28a745;
}

.feature-item:nth-child(3) i {
    color: #ff0000;
}
*/
.feature-item a {
    color: #20409a;
    text-decoration: none;
}

.feature-item a:hover {
    text-decoration: underline;
}

/* Section 2: Product Content */
.product-content-section {
    background: #fff;
    padding: 40px;
    margin-bottom: 50px;
    border-radius: 8px;
}

.content-wrapper {
    display: flex;
    gap: 40px;
}

.content-main {
    flex: 1;
}

.section-title {
    color: #004c99;
    font-size: 20px;
    margin-bottom: 30px;
    font-weight: 600;
}

/* Content Area with Show More */
.content-area {
    position: relative;
    max-height: 400px;
    overflow: hidden;
    transition: max-height 0.5s ease;
    font-size: 16px;
}
.content-area h2, .content-area h3
{
        color: #20409a;
    border-bottom: solid 1px;
    display: table;
}

.content-area p{
    margin-bottom: .5em;
}
.content-area.expanded {
    max-height: none;
    overflow: visible;
}

.content-inner {
    line-height: 1.8;
    color: #333;
}

.content-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
    pointer-events: none;
    transition: opacity 0.3s;
}

.content-area.expanded .content-gradient {
    opacity: 0;
}

.btn-view-more {
    display: block;
    margin: 20px auto 0;
    padding: 10px 30px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 25px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-view-more:hover {
    background: #f5f5f5;
    border-color: #004c99;
    color: #004c99;
}

.btn-view-more.active {
    display: none;
}

/* Content Navigation Sidebar */
.content-sidebar {
    flex: 0 0 300px;
}

.content-navigation {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    position: sticky;
    top: 100px;
}

.content-navigation h3 {
    font-size: 16px;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

#content-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

#content-nav li {
    margin-bottom: 12px;
}

#content-nav a {
    color: #333;
    text-decoration: none;
    display: block;
    padding: 10px 15px;
    border-left: 3px solid transparent;
    transition: all 0.3s;
    font-size: 14px;
    line-height: 1.4;
}

#content-nav li.nav-h3 a {
    padding-left: 30px;
    font-size: 16px;
}

#content-nav a:hover,
#content-nav a.active {
    color: #004c99;
    background: #e8f0fe;
    border-left-color: #004c99;
}

/* Reviews Section - Custom Style */
.reviews-section {
    background: #fff;
    padding: 40px;
    margin-bottom: 50px;
    border-radius: 8px;
    position: relative;
}

.main-title {
    background: #dee3f0;
    text-align: center;
    color: #333;
    margin: -40px -40px 30px;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 0 0 8px 8px;    display: table;
    margin: -40px auto 30px;
}

.reviews-container {
    max-width: 100%;
    margin: 0 auto;
}

.reviews-header {
    margin-bottom: 30px;
}

.reviews-header h3 {
    font-size: 18px;
    color: #333;
}

/* Review List */
.reviews-list {
    margin-bottom: 40px;
}

.review-item {
background: #fff;
    padding: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e85331;
}

.review-author {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.review-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.author-info {
    color: #333;
    font-size: 14px;
}

.author-info strong {
    color: #333;
    font-size: 15px;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #999;
}

.comment-link {
    color: #004c99;
    text-decoration: none;
}

.comment-link:hover {
    text-decoration: underline;
}

.review-meta .star-rating {
    margin-left: auto;
}

.star-rating .star {
    color: #ddd;
    font-size: 16px;
}

.star-rating .star.filled {
    color: #ffc107;
}

.review-text {
    color: #333;
    line-height: 1.6;
    margin-bottom: 10px;
}

.review-text p {
    margin-bottom: 10px;
}

.review-actions {
    text-align: right;
}

.reply-link {
    color: #004c99;
    font-size: 13px;
    text-decoration: none;
}

.reply-link:hover {
    text-decoration: underline;
}

/* Review Form */
.review-form-wrapper {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.review-form-wrapper h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}

.comment-form p {
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.comment-form .required {
    color: #ff0000;
}

.comment-form .submit {
    background: #004c99;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

/* Comment Children/Reply Styling */
.review-item.children {
    margin-left: 50px;
    margin-top: 20px;
}

.review-item.depth-2, .review-item.depth-3 {
    margin-left: 50px;
    padding-left: 20px;
    background: #f9f7ed;
    border: 0;
}

.review-item.depth-3 {
    margin-left: 100px;
}

/* Hide duplicate rating field from WooCommerce */
.stars + p.stars,
p.stars {
    display: none !important;
}

/* Comment Form Rating */
.comment-form-rating {
    margin-bottom: 20px;
}

.comment-form-rating label {
    display: block;
    margin-bottom: 10px;
}

.stars {
    display: inline-flex;
    gap: 5px;
}

.stars a {
    color: #ddd;
    font-size: 24px;
    text-decoration: none;
    transition: color 0.3s;
    cursor: pointer;
    display: inline-block;
    line-height: 1;
}

.stars a:hover {
    color: #ffc107;
}

a.active {
    color: #ffc107;
}

.product-meta .stars a.active {color: #ff6b35}
.product-meta .rating-wrapper, .product-meta .rating-count{font-size: 18px;}

.product-meta .rating-wrapper .stars{margin-left: -10px;}
/* Reply Form */
#respond {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

#cancel-comment-reply-link {
    color: #dc3545;
    font-size: 14px;
    margin-left: 10px;
}

#cancel-comment-reply-link:hover {
    text-decoration: underline;
}

/* Fix children comments display */
.reviews-list .children {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Responsive */
@media (max-width: 991px) {
    .product-top-section {
        flex-direction: column;
    }
    
    .product-images-col {
        flex: 0 0 auto;
        max-width: 100%;
    }
    
    .content-wrapper {
        flex-direction: column;.main-title
    }
    
    .content-sidebar {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .content-navigation {
        position: relative;
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .product-top-section {
        padding: 20px;
    }
    
    .cart-button-wrapper {
        flex-direction: column;
    }
    
    .btn-add-to-cart,
    .btn-wishlist {
        width: 100%;
    }
    
    #productThumbSlider .swiper-slide {
        width: 60px !important;
        height: 60px;
    }
    
    .price-amount {
        font-size: 24px;
    }
    
    .product-title {
        font-size: 20px;
    }
    .price-section{
            flex-wrap: wrap;
    }
    .quantity-section{
            border: 0;
    padding-left: 0;
    }
    .product-content-section,.reviews-section{
        padding: 40px 20px;
    }
    .content-sidebar{display: none;}
}











/* CSS for Simple Product Cart Form */

/* Giữ nguyên layout price-section ban đầu */
.price-section {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.price-section .price-amount {
    font-size: 24px;
    font-weight: bold;
    color: ff0000;
}

/* Quantity section vẫn ở bên phải */
.quantity-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-section label {
    font-weight: 500;
    color: #333;
}

.quantity-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.qty-btn {
    background: #f8f9fa;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    transition: background 0.3s ease;
}

.qty-btn:hover {
    background: #e9ecef;
}

.qty-input {
    border: none;
    outline: none;
    width: 60px;
    text-align: center;
    padding: 8px 4px;
    font-size: 14px;
}

/* Cart buttons */
.cart-button-wrapper {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-add-to-cart {
    flex: 1;
    background: ff0000;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-add-to-cart:hover {
    background: #c0392b;
}

.btn-add-to-cart:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-wishlist {
    background: #293987;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-wishlist:hover {
    background: #2980b9;
}

.btn-wishlist a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .price-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .quantity-section {
        align-self: flex-start;
    }
    
    .cart-button-wrapper {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-add-to-cart,
    .btn-wishlist {
        width: 100%;
    }
}