/**
 * استایل‌های بخش‌های جزئیات محصول به سبک دیجی‌کالا
 */

/* باکس خلاصه ویژگی‌ها */
.product-features-summary {
    margin: 20px 0;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 15px;
    background-color: #fcfcfc;
}

.features-summary-header {
    margin-bottom: 15px;
    position: relative;
    padding-right: 20px;
}

.features-summary-header:before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-color: #2e7d32;
    border-radius: 50%;
}

.features-summary-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.features-summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-summary-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    position: relative;
    padding-right: 15px;
}

.features-summary-item:before {
    content: "";
    position: absolute;
    right: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background-color: #2e7d32;
    border-radius: 50%;
}

.features-summary-item:last-child {
    margin-bottom: 0;
}

.feature-key {
    font-size: 13px;
    color: #777;
    min-width: 120px;
}

.feature-value {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

/* بخش توضیحات محصول */
.product-description {
    margin: 20px 0;
    padding: 0;
    border: none;
    background: none;
}

.description-header {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    padding-right: 20px;
}

.description-header:before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-color: #2e7d32;
    border-radius: 50%;
}

.description-content {
    font-size: 14px;
    line-height: 2;
    color: #555;
    text-align: justify;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 20px;
    background-color: #fcfcfc;
}

.description-content p {
    margin-bottom: 15px;
}

.description-content p:last-child {
    margin-bottom: 0;
}

/* بخش تب‌های محصول */
.product-tabs {
    margin-top: 30px;
}

.tab-header {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    background-color: #fff;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 20px;
}

.tab-header::-webkit-scrollbar {
    display: none;
}

.tab-item {
    padding: 15px 25px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.tab-item.active {
    color: #2e7d32;
}

.tab-item.active:after {
    content: "";
    position: absolute;
    bottom: -1px;
    right: 0;
    left: 0;
    height: 3px;
    background-color: #2e7d32;
}

.tab-content {
    padding: 0;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* بخش مشخصات فنی */
.specs-header {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    padding-right: 20px;
}

.specs-header:before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-color: #2e7d32;
    border-radius: 50%;
}

.specs-table {
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.specs-section {
    margin-bottom: 20px;
}

.specs-section-title {
    background-color: #f5f5f5;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.specs-row {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
}

.specs-row:last-child {
    border-bottom: none;
}

.specs-label {
    width: 35%;
    padding: 12px 15px;
    background-color: #f9f9f9;
    font-size: 13px;
    color: #666;
    border-left: 1px solid #f0f0f0;
}

.specs-value {
    width: 65%;
    padding: 12px 15px;
    font-size: 13px;
    color: #333;
}

/* نظرات کاربران */
.reviews-header {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    padding-right: 20px;
}

.reviews-header:before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-color: #2e7d32;
    border-radius: 50%;
}

.reviews-summary {
    display: flex;
    background-color: #fcfcfc;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.average-rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 150px;
    padding-left: 20px;
    border-left: 1px solid #f0f0f0;
}

.rating-number {
    font-size: 36px;
    font-weight: 700;
    color: #2e7d32;
    margin-bottom: 10px;
}

.rating-stars {
    margin-bottom: 10px;
}

.rating-stars i {
    color: #FFC107;
    font-size: 18px;
}

.rating-count {
    font-size: 13px;
    color: #666;
}

.rating-breakdown {
    flex-grow: 1;
    padding-right: 20px;
}

.rating-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.rating-label {
    width: 55px;
    font-size: 12px;
    color: #666;
}

.progress-bar {
    height: 8px;
    background-color: #eee;
    border-radius: 10px;
    overflow: hidden;
    flex-grow: 1;
    margin: 0 10px;
}

.progress {
    height: 100%;
    background-color: #2e7d32;
    border-radius: 10px;
}

.rating-percent {
    width: 40px;
    font-size: 12px;
    color: #666;
    text-align: left;
}

/* نظرات کاربران */
.user-reviews {
    margin-top: 20px;
}

.review {
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #fcfcfc;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.reviewer-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.review-date {
    font-size: 12px;
    color: #999;
}

.reviewer-rating {
    display: flex;
}

.reviewer-rating i {
    color: #FFC107;
    font-size: 14px;
    margin-left: 2px;
}

.review-content p {
    font-size: 13px;
    line-height: 1.8;
    color: #555;
}

/* نسخه موبایل */
@media (max-width: 768px) {
    .product-features-summary,
    .product-description,
    .reviews-summary {
        border-radius: 0;
        border-left: none;
        border-right: none;
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
    }
    
    .reviews-summary {
        flex-direction: column;
    }
    
    .average-rating {
        width: 100%;
        padding-left: 0;
        border-left: none;
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 15px;
        margin-bottom: 15px;
    }
    
    .rating-breakdown {
        padding-right: 0;
    }
} 