/*
 * Advanced Professional Product Layout CSS - Adapted for Dark Theme (Pháp Phục Tu Sĩ)
 */

/* ==========================================================================
   Layout & Sidebar
   ========================================================================== */
.pro-product-layout {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.pro-main-content {
    flex: 0 0 70%;
    max-width: 70%;
}

.pro-sidebar {
    flex: 0 0 calc(30% - 30px);
    max-width: calc(30% - 30px);
}

@media (max-width: 768px) {
    .pro-product-layout {
        flex-direction: column;
    }
    .pro-main-content, .pro-sidebar {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ==========================================================================
   Sticky Navigation
   ========================================================================== */
.product-tabs-wrapper {
    display: flex;
    gap: 15px;
    position: sticky;
    top: 60px; /* Offset for theme headers */
    z-index: 10;
    margin-bottom: 20px;
    background: var(--pp-bg-page); /* Adapted to dark theme */
    padding: 10px 0;
}

.pro-nav-link {
    padding: 8px 20px;
    border-radius: var(--pp-radius-xl);
    background: var(--pp-bg-card);
    color: var(--pp-text-primary);
    border: 1px solid var(--pp-border);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: var(--pp-transition);
}

.pro-nav-link.active {
    background: var(--pp-gold);
    color: #0a0a0a;
    border-color: var(--pp-gold);
}

.pro-nav-link:hover:not(.active) {
    background: var(--pp-bg-card-hover);
    color: var(--pp-gold);
}

/* ==========================================================================
   Sections Content
   ========================================================================== */
.pro-sections-container {
    background: var(--pp-bg-card);
    padding: 30px;
    border-radius: var(--pp-radius-lg);
    border: 1px solid var(--pp-border);
    box-shadow: var(--pp-shadow);
}

.pro-section {
    margin-bottom: 40px;
}

.pro-section:last-child {
    margin-bottom: 0;
}

.pro-section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--pp-gold);
}

.pro-sections-container .entry-content {
    color: var(--pp-text-secondary);
    line-height: 1.7;
}

.pro-sections-container .entry-content h3, 
.pro-sections-container .entry-content h4 {
    color: var(--pp-text-primary);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

/* ==========================================================================
   Sidebar Widgets
   ========================================================================== */
.pro-sidebar-widget {
    background: var(--pp-bg-card);
    border: 1px solid var(--pp-border);
    border-radius: var(--pp-radius-lg);
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: var(--pp-shadow-sm);
}

.pro-widget-title {
    background: var(--pp-bg-overlay);
    color: var(--pp-gold);
    margin: 0;
    padding: 15px 20px;
    font-size: 16px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--pp-border);
    letter-spacing: 1px;
}

.pro-faq-list {
    padding: 20px;
}

.pro-faq-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--pp-border);
}

.pro-faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.pro-faq-question {
    font-size: 15px;
    color: var(--pp-text-primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.pro-faq-answer {
    font-size: 14px;
    color: var(--pp-text-secondary);
    line-height: 1.6;
}

.pro-recently-viewed {
    padding: 15px;
}

/* ==========================================================================
   Reviews Top Grid
   ========================================================================== */
.pro-reviews-wrapper {
    margin-top: 50px;
}

.pro-reviews-top-grid {
    display: flex;
    background: var(--pp-bg-card);
    padding: 30px;
    border-radius: var(--pp-radius-lg);
    border: 1px solid var(--pp-border);
    gap: 40px;
    margin-bottom: 30px;
}

.pro-reviews-summary-box {
    flex: 0 0 35%;
}

.pro-summary-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.pro-rating-number {
    font-size: 56px;
    font-weight: 800;
    color: var(--pp-gold);
    line-height: 1;
}

.pro-rating-stars {
    color: var(--pp-gold);
    font-size: 18px;
    margin-bottom: 5px;
}

.pro-rating-count {
    font-size: 13px;
    color: var(--pp-text-secondary);
}

.pro-rating-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pro-rating-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pro-bar-stars {
    color: var(--pp-gold);
    font-size: 12px;
    min-width: 60px;
}

.pro-bar-stars i.icon-star-empty {
    color: var(--pp-text-muted);
}

.pro-bar-track {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    overflow: hidden;
}

.pro-bar-fill {
    height: 100%;
    background: var(--pp-gold);
}

.pro-bar-text {
    font-size: 12px;
    color: var(--pp-text-secondary);
    min-width: 45px;
    text-align: right;
}

/* Review Form */
.pro-reviews-form-box {
    flex: 1;
    background: var(--pp-bg-overlay);
    padding: 25px;
    border-radius: var(--pp-radius-lg);
    border: 1px solid var(--pp-border);
}

.pro-form-header-stars {
    color: var(--pp-gold);
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.pro-comment-form-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pro-form-inputs-row {
    display: flex;
    gap: 15px;
}

.pro-form-inputs-row .pro-input {
    flex: 1;
    padding: 12px 15px;
    background: var(--pp-bg-card);
    border: 1px solid var(--pp-border);
    border-radius: var(--pp-radius);
    color: var(--pp-text-primary);
    transition: var(--pp-transition);
}

.pro-textarea {
    width: 100%;
    padding: 15px;
    background: var(--pp-bg-card);
    border: 1px solid var(--pp-border);
    border-radius: var(--pp-radius);
    color: var(--pp-text-primary);
    resize: vertical;
    transition: var(--pp-transition);
}

.pro-input:focus, .pro-textarea:focus {
    border-color: var(--pp-gold);
    outline: none;
}

.pro-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.pro-upload-btn {
    color: var(--pp-text-secondary);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--pp-transition);
}

.pro-upload-btn:hover {
    color: var(--pp-gold);
}

.pro-submit-btn {
    background: var(--pp-gold);
    color: #0a0a0a;
    border: none;
    padding: 12px 40px;
    border-radius: var(--pp-radius);
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: var(--pp-transition);
    letter-spacing: 1px;
}

.pro-submit-btn:hover {
    background: var(--pp-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(242, 193, 92, 0.2);
}

@media (max-width: 768px) {
    .pro-reviews-top-grid {
        flex-direction: column;
    }
    .pro-form-inputs-row {
        flex-direction: column;
    }
}

/* ==========================================================================
   Review Filters
   ========================================================================== */
.pro-reviews-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--pp-border);
    padding-bottom: 20px;
    flex-wrap: wrap;
}

.pro-filter-label {
    color: var(--pp-text-secondary);
    font-size: 14px;
}

.pro-filter-btn {
    background: transparent;
    border: 1px solid var(--pp-border);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    color: var(--pp-text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--pp-transition);
}

.pro-filter-btn i {
    color: var(--pp-text-muted);
}

.pro-filter-btn.active {
    background: var(--pp-gold-soft);
    border-color: var(--pp-gold);
    color: var(--pp-gold);
    font-weight: 600;
}

.pro-filter-btn.active i {
    color: var(--pp-gold);
}

.pro-filter-btn:hover:not(.active) {
    border-color: var(--pp-text-secondary);
    color: var(--pp-text-primary);
}

/* ==========================================================================
   Comment List
   ========================================================================== */
.pro-commentlist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pro-comment-container {
    border-bottom: 1px solid var(--pp-border);
    padding-bottom: 25px;
    margin-bottom: 25px;
}

.pro-comment-header-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    align-items: flex-start;
}

.pro-comment-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pro-comment-avatar-text {
    width: 45px;
    height: 45px;
    background: var(--pp-gold-soft);
    color: var(--pp-gold);
    border: 1px solid var(--pp-gold-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.pro-comment-author {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: bold;
    color: var(--pp-text-primary);
}

.pro-verified-badge {
    color: var(--pp-success);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.pro-comment-rating {
    color: var(--pp-gold);
    font-size: 13px;
}

.pro-comment-box {
    background: var(--pp-bg-card);
    padding: 20px;
    border-radius: var(--pp-radius);
    margin-bottom: 15px;
    border: 1px solid var(--pp-border);
}

.pro-comment-title {
    margin: 0 0 8px 0;
    font-size: 15px;
    color: var(--pp-text-primary);
    font-weight: 600;
}

.pro-comment-text {
    font-size: 14px;
    color: var(--pp-text-secondary);
    margin: 0;
    line-height: 1.6;
}

.pro-comment-date {
    font-size: 12px;
    color: var(--pp-text-muted);
    margin-top: 12px;
}

.pro-comment-actions {
    display: flex;
    gap: 15px;
}

.pro-action-btn {
    background: transparent;
    border: 1px solid var(--pp-border);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    color: var(--pp-text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--pp-transition);
}

.pro-action-btn:hover {
    background: rgba(255,255,255,0.05);
    color: var(--pp-text-primary);
    border-color: var(--pp-text-secondary);
}

/* ==========================================================================
   Related Products Sections
   ========================================================================== */
.pro-related-products-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--pp-border);
}

.pro-section-title-large {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 30px;
    color: var(--pp-gold);
    text-align: center;
    letter-spacing: 1px;
}

/* ==========================================================================
   Override Standard WooCommerce & Flatsome Reviews
   ========================================================================== */
#reviews #comments h2 {
    color: var(--pp-gold);
}

#reviews .commentlist li .comment-text {
    background: var(--pp-bg-card);
    border: 1px solid var(--pp-border);
    border-radius: var(--pp-radius);
    color: var(--pp-text-secondary);
}

/* Flatsome review bars */
.reviews_bar .bar-rating {
    background: var(--pp-gold) !important;
}

/* The Submit Button (Fixing the blue button) */
#respond input#submit, 
.button#submit,
button.button.alt, 
.button.checkout, 
.checkout-button, 
.single_add_to_cart_button {
    background-color: var(--pp-gold) !important;
    color: #0a0a0a !important;
    border-radius: var(--pp-radius) !important;
    font-weight: 700 !important;
    border: none !important;
    text-transform: uppercase !important;
}

#respond input#submit:hover,
.button#submit:hover,
button.button.alt:hover,
.single_add_to_cart_button:hover {
    background-color: var(--pp-gold-hover) !important;
    color: #0a0a0a !important;
}

/* Inputs */
#respond input[type="text"],
#respond input[type="email"],
#respond textarea {
    background: var(--pp-bg-card) !important;
    border: 1px solid var(--pp-border) !important;
    color: var(--pp-text-primary) !important;
}
#respond input:focus, #respond textarea:focus {
    border-color: var(--pp-gold) !important;
}


/* ========================================================
   NEW PROFESSIONAL REVIEWS STYLING
======================================================== */

.pro-reviews-wrapper {
    background: var(--pp-bg-section, #1a1a1a);
    padding: 30px;
    border-radius: 8px;
    color: #fff;
}

.pro-reviews-top-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .pro-reviews-top-grid {
        grid-template-columns: 1fr;
    }
}

/* Summary Box */
.pro-summary-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.pro-rating-number {
    font-size: 3.5rem;
    font-weight: bold;
    line-height: 1;
}

.pro-summary-stars-count {
    display: flex;
    flex-direction: column;
}

.pro-rating-stars {
    color: var(--pp-gold, #f9a826);
    font-size: 1.2rem;
}

.pro-rating-count {
    font-size: 0.9rem;
    color: #aaa;
}

/* Rating Bars */
.pro-rating-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.pro-bar-stars {
    color: var(--pp-gold, #f9a826);
    min-width: 70px;
}

.pro-bar-track {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
}

.pro-bar-fill {
    height: 100%;
    background: var(--pp-gold, #f9a826);
    border-radius: 4px;
}

.pro-bar-text {
    min-width: 40px;
    text-align: right;
    font-weight: 500;
}

/* Review Form */
.pro-reviews-form-box {
    border-left: 1px solid rgba(255,255,255,0.1);
    padding-left: 40px;
}

@media (max-width: 768px) {
    .pro-reviews-form-box {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 20px;
    }
}

.pro-form-header-stars {
    color: var(--pp-gold, #f9a826);
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-align: center;
    cursor: pointer;
}

.pro-form-header-stars i {
    margin: 0 2px;
    transition: all 0.2s;
}

.pro-form-inputs-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.pro-input, .pro-textarea {
    width: 100%;
    padding: 12px;
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    color: #333 !important;
    font-size: 14px;
}

.pro-textarea {
    resize: vertical;
    min-height: 80px;
    margin-bottom: 10px;
}

.pro-form-actions {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.pro-upload-btn {
    color: #007bff;
    cursor: pointer;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.pro-submit-btn {
    width: 100%;
    background: var(--pp-gold, #f9a826) !important;
    color: #fff !important;
    padding: 12px !important;
    border: none !important;
    border-radius: 4px !important;
    font-weight: bold !important;
    font-size: 16px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
}

.pro-submit-btn:hover {
    background: var(--pp-gold-hover, #e09612) !important;
}

/* Filters */
.pro-reviews-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.pro-filter-btn {
    background: rgba(255,255,255,0.05);
    border: none;
    padding: 6px 15px;
    border-radius: 20px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
}

.pro-filter-btn.active {
    background: rgba(255,255,255,0.2);
}

.pro-filter-btn i {
    color: var(--pp-gold, #f9a826);
}

/* Comment Item */
.pro-review-item {
    list-style: none !important;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.pro-comment-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.pro-comment-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pro-comment-avatar-text {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #004d40;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.pro-comment-author {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.pro-verified-badge {
    color: #4CAF50;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pro-comment-box {
    background: rgba(255,255,255,0.03);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.pro-comment-title {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 1rem;
}

.pro-comment-text p {
    margin-bottom: 0;
    color: #ddd;
    line-height: 1.5;
}

.pro-comment-date {
    font-size: 0.8rem;
    color: #888;
    margin-top: 10px;
}

.pro-comment-actions {
    display: flex;
    gap: 15px;
}

.pro-action-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
}

.pro-action-btn:hover {
    background: rgba(255,255,255,0.1);
}

