/* ============================================
   PRODUCT ACCORDION - Full Width, No Shadow
   ============================================ */

.product-accordion-section {
    margin: 0;
    padding: 0;
    background: transparent;
}

.product-accordion-container {
    max-width: 100%;
    margin: 0;
    padding: 20px 0;
}

.product-accordion-item {
    margin-bottom: 16px;
    border-radius: 8px;
    border: 2px solid #ddd;
    background: white;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-accordion-item:hover {
    transform: translateY(-2px);
}

.product-note-header {
    padding: 22px 60px 22px 24px;
    cursor: pointer;
    background: white;
    position: relative;
    font-weight: 600;
    font-size: 16px;
    color: #2c3e50;
    transition: all 0.3s ease;
    user-select: none;
}

.product-note-header:hover {
    background: #f8f9fa;
    color: #e74c3c;
}

.product-accordion-item.active .product-note-header {
    background: #fff5f5;
    color: #e74c3c;
}

.product-accordion-toggle {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e74c3c;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-accordion-item.active .product-accordion-toggle {
    transform: translateY(-50%) rotate(180deg);
    background: #e74c3c;
    color: white;
}

.product-accordion-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-accordion-item.active .product-accordion-answer {
    max-height: 600px;
}

.product-accordion-answer-content {
    padding: 24px;
    color: #555;
    font-size: 15px;
    line-height: 1.8;
    border-top: 1px solid #f0f0f0;
}

.product-accordion-answer-content strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 12px;
}

.product-accordion-answer-content br {
    display: block;
    content: "";
    margin: 8px 0;
}

.product-accordion-answer-content p {
    margin-bottom: 15px;
}

.product-accordion-answer-content p:last-child {
    margin-bottom: 0;
}

.product-accordion-answer-content ul,
.product-accordion-answer-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.product-accordion-answer-content li {
    margin-bottom: 8px;
}

/* ==========================================
   FIX: Căn giữa nội dung đánh giá trong Accordion
   ========================================== */

/* Giúp toàn bộ nội dung review căn giữa trong accordion */
.product-accordion-answer-content.product-reviews-below {
    display: flex;
    flex-direction: column;
    align-items: center; /* Căn giữa theo chiều ngang */
    justify-content: center;
    width: 100%;
    background: transparent;
}

/* Giới hạn chiều rộng nội dung review bên trong */
.product-accordion-answer-content.product-reviews-below #reviews {
    width: 100%;
    max-width: 900px; /* Có thể đổi theo chiều rộng mong muốn */
    margin: 0 auto;
}

/* Đảm bảo form và danh sách review không bị ép full width toàn màn hình */
.product-accordion-answer-content.product-reviews-below #reviews .woocommerce-Reviews {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: block;
}

/* Nếu Flatsome dùng grid columns, ta bỏ ép 100% chỉ trong accordion */
.product-accordion-answer-content.product-reviews-below #reviews [class*="large-"],
.product-accordion-answer-content.product-reviews-below #reviews [class*="medium-"],
.product-accordion-answer-content.product-reviews-below #reviews [class*="small-"],
.product-accordion-answer-content.product-reviews-below #reviews [class*="columns"],
.product-accordion-answer-content.product-reviews-below #reviews [class*="column"] {
    width: auto !important;
    max-width: 100% !important;
    float: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
}


/* Responsive Design */
@media (max-width: 768px) {
    .product-note-header {
        font-size: 14px;
        padding: 18px 50px 18px 20px;
    }

    .product-accordion-answer-content {
        font-size: 14px;
        padding: 20px;
    }

    .product-accordion-toggle {
        width: 28px;
        height: 28px;
        right: 20px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .product-note-header {
        font-size: 13px;
        padding: 16px 45px 16px 16px;
    }

    .product-accordion-answer-content {
        font-size: 13px;
        padding: 16px;
    }
}

/* Animation - Fade in khi load */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-accordion-item {
    animation: fadeIn 0.5s ease forwards;
}

.product-accordion-item:nth-child(1) { animation-delay: 0.1s; }
.product-accordion-item:nth-child(2) { animation-delay: 0.2s; }
.product-accordion-item:nth-child(3) { animation-delay: 0.3s; }
.product-accordion-item:nth-child(4) { animation-delay: 0.4s; }