﻿/* ========== Layout ========== */
.product-details-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    font-family: 'Segoe UI', sans-serif;
}

/* ========== Images ========== */
.product-images {
    flex: 1 1 45%;
}

.main-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #ddd;
}

.thumbnails {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

    .thumb:hover {
        transform: scale(1.05);
    }

/* ========== Product Info ========== */
.product-info {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .product-info label,
    .product-info .text-danger,
    .product-info .text-success,
    .product-info .text-warning {
        font-size: 1rem;
    }

    .product-info .text-danger {
        color: #e74c3c;
        font-weight: bold;
        font-size: 1.5rem;
    }

    .product-info .text-muted {
        text-decoration: line-through;
        color: #888;
        font-size: 0.95rem;
    }

    .product-info .text-success {
        color: #27ae60;
    }

    .product-info .text-warning {
        color: #f39c12;
    }

/* ========== Quantity ========== */
.qty-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.qty-btn {
    width: 30px;
    height: 30px;
    font-size: 18px;
    background: #f0f0f0;
    border-radius: 6px;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

    .qty-btn:hover {
        background-color: #dcdcdc;
    }

.qty-box {
    width: 50px;
    padding: 5px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 6px;
}

/* ========== Desired Price ========== */
.desired-price-wrapper {
    margin-top: 10px;
}

.price-input {
    width: 100%;
    max-width: 200px;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

/* ========== Buttons ========== */
.btn {
    background-color: #3498db;
    border: none;
    color: #fff;
    padding: 10px 16px;
    margin-top: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

    .btn:hover {
        background-color: #2980b9;
    }

    .btn.secondary {
        background-color: #95a5a6;
    }

        .btn.secondary:hover {
            background-color: #7f8c8d;
        }

.status-label {
    font-size: 0.95rem;
    margin-top: 10px;
}

/* ========== Comment Section ========== */
.comment-section {
    width: 100%;
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

    .comment-section h3 {
        font-size: 1.4rem;
        margin-bottom: 15px;
        color: #2c3e50;
    }

/* Comment form */
.input-field {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-bottom: 10px;
    font-size: 1rem;
}

/* Comment box */
.comment-box {
    background-color: #fafafa;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

    .comment-box strong {
        font-size: 1rem;
        color: #34495e;
    }

    .comment-box em {
        color: #888;
        font-size: 0.85rem;
        display: block;
        margin-bottom: 5px;
    }

    .comment-box p {
        margin: 0;
        font-size: 0.95rem;
    }

/* ========== Pagination ========== */
.aspNetDisabled {
    color: #ccc !important;
    cursor: not-allowed;
}

#MainContent_pager {
    margin-top: 15px;
}

    #MainContent_pager a,
    #MainContent_pager span {
        display: inline-block;
        margin: 0 5px;
        padding: 5px 12px;
        border: 1px solid #ccc;
        border-radius: 6px;
        text-decoration: none;
        color: #333;
        background-color: #fff;
    }

        #MainContent_pager a:hover {
            background-color: #f0f0f0;
        }

.comment-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.comment-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ccc;
}

.comment-box-content {
    flex-grow: 1;
}

    .comment-box-content strong {
        font-size: 16px;
        color: #333;
    }

    .comment-box-content em {
        font-size: 13px;
        color: #999;
        display: block;
        margin-top: 2px;
        margin-bottom: 8px;
    }

    .comment-box-content p {
        font-size: 14px;
        color: #444;
        margin: 0;
        line-height: 1.6;
    }

.comment-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    margin-bottom: 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fafafa;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #ccc;
}

.comment-box-content {
    flex-grow: 1;
}

    .comment-box-content strong {
        font-size: 15px;
        color: #333;
    }

    .comment-box-content em {
        font-size: 12px;
        color: #999;
        display: block;
        margin-top: 2px;
        margin-bottom: 6px;
    }

    .comment-box-content p {
        font-size: 13px;
        color: #444;
        margin: 0;
        line-height: 1.5;
    }

.comment-photo {
    margin-top: 8px;
    max-width: 120px;
    max-height: 120px;
    border-radius: 6px;
    border: 1px solid #ccc;
}
.main-product-image {
    width: 300px;
    height: auto;
    margin-bottom: 10px;
    border: 2px solid #aaa;
}

.sub-product-image {
    width: 80px;
    height: auto;
    margin-right: 5px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    cursor: pointer;
    transition: transform 0.2s;
}

    .sub-product-image:hover {
        transform: scale(1.1);
        border-color: #007bff;
    }

.comment-container {
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

    .comment-container.has-reply {
        margin-bottom: 35px;
    }

/* 评论卡片样式 */
.comment-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 20px;
    position: relative;
    border: 1px solid #eaeaea;
}

/* 评论头部样式 */
.comment-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f1f1f1;
    margin-right: 15px;
}

.comment-meta {
    flex: 1;
}

.comment-author {
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 3px;
}

.comment-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.comment-date {
    color: #7f8c8d;
    font-size: 13px;
    display: flex;
    align-items: center;
}

    .comment-date i {
        margin-right: 5px;
        font-size: 12px;
    }

/* 评论内容样式 */
.comment-body {
    margin-left: 65px; /* 与头像对齐 */
}

.comment-text {
    color: #34495e;
    line-height: 1.6;
    margin: 0 0 15px 0;
    white-space: pre-line;
}

.comment-attachment {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

/* 商家回复样式 */
.seller-reply {
    background: #f8fafc;
    border-left: 3px solid #3498db;
    padding: 15px;
    margin-top: 20px;
    border-radius: 0 8px 8px 0;
    position: relative;
}

    .seller-reply:before {
        content: "";
        position: absolute;
        top: -10px;
        left: 20px;
        border-width: 0 10px 10px 10px;
        border-style: solid;
        border-color: #f8fafc transparent;
    }

.reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    color: #3498db;
}

    .reply-header i {
        margin-right: 8px;
    }

.reply-date {
    color: #7f8c8d;
    font-size: 12px;
}

.reply-text {
    color: #2c3e50;
    line-height: 1.6;
    margin: 0;
    white-space: pre-line;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .comment-header {
        flex-direction: column;
    }

    .comment-avatar {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .comment-body {
        margin-left: 0;
    }

    .comment-rating {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

.comment-box-modern {
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 25px;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    padding: 16px;
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
    border: 1px solid #ddd;
}

.comment-meta {
    flex-grow: 1;
}

.comment-author {
    font-weight: 600;
    font-size: 1.1em;
}

.comment-rating i {
    color: #FFC107;
    margin-right: 2px;
}

.comment-date {
    font-size: 0.9em;
    color: #888;
    margin-left: 8px;
}

.comment-body {
    margin-top: 10px;
    padding-left: 60px;
}

.comment-text {
    margin-bottom: 10px;
    font-size: 1em;
    color: #333;
}

.comment-photo {
    max-width: 200px;
    border-radius: 8px;
    margin-top: 10px;
    border: 1px solid #ccc;
}

.reply-box {
    margin-top: 16px;
    margin-left: 60px;
    background-color: #f9f9f9;
    border-left: 4px solid #2196F3;
    padding: 12px 16px;
    border-radius: 8px;
}

.reply-header {
    font-weight: 600;
    color: #2196F3;
    margin-bottom: 6px;
}

    .reply-header i {
        margin-right: 6px;
    }

.reply-text {
    color: #444;
}

.negative-reasons {
    margin-top: 10px;
    background-color: #fff7f7;
    border: 1px solid #ffcccc;
    padding: 8px 12px;
    border-radius: 6px;
}

.negative-list {
    margin: 0;
    padding-left: 18px;
    list-style-type: disc;
}