.deal-detail {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 28px;
    margin-bottom: 24px;
}

.deal-detail__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.deal-detail__content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.deal-detail__votes {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background-color: var(--border-light);
    border-radius: var(--radius-sm);
    padding: 12px 8px;
}

.deal-detail__main-content {
    flex: 1;
    min-width: 0;
}

.deal-detail__image {
    float: left;
    width: 280px;
    margin-right: 24px;
    margin-bottom: 16px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.deal-detail__image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.deal-detail__info {
    overflow: hidden;
}

.deal-detail__meta {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.deal-detail__price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.deal-detail__original-price {
    font-size: 1rem;
    text-decoration: line-through;
    color: var(--text-muted);
}

.deal-detail__discount {
    background-color: var(--primary);
    color: white;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.deal-detail__description {
    margin-bottom: 24px;
    line-height: 1.7;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.deal-detail__details {
    margin-bottom: 16px;
}

.deal-detail__details p {
    margin: 6px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.deal-detail__details strong {
    color: var(--text);
}

.deal-detail__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #e74c3c;
    background-color: var(--primary, #e74c3c);
    color: #ffffff;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    border-radius: var(--radius-sm, 8px);
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: 16px;
    transition: background-color 0.2s, transform 0.1s;
}

.deal-detail__link:hover {
    background-color: #c0392b;
    background-color: var(--primary-hover, #c0392b);
    color: #ffffff;
    transform: translateY(-1px);
}

.deal-detail__link:active {
    transform: scale(0.98);
}

/* ── Comments Section ── */
.comments-section {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 28px;
}

.comments-section h2 {
    margin-bottom: 24px;
    color: var(--text);
    font-size: 1.15rem;
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

/* New comment form */
.new-comment-form {
    background-color: #f0f4f8;
    border: 1px solid #d0d9e3;
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 24px;
}

.new-comment-form h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.new-comment-form textarea {
    width: 100%;
    min-height: 80px;
    margin-bottom: 12px;
    padding: 10px 14px;
    border: 1px solid #c0cad6;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.new-comment-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
    outline: none;
}

.new-comment-form button[type="submit"],
.reply-form button[type="submit"],
.comments-section button[type="submit"] {
    background-color: #e74c3c;
    background-color: var(--primary, #e74c3c);
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    border-radius: var(--radius-sm, 8px);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    transition: background-color 0.2s, transform 0.1s;
}

.new-comment-form button[type="submit"]:hover,
.reply-form button[type="submit"]:hover,
.comments-section button[type="submit"]:hover {
    background-color: #c0392b;
    background-color: var(--primary-hover, #c0392b);
}

.new-comment-form button[type="submit"]:active,
.reply-form button[type="submit"]:active,
.comments-section button[type="submit"]:active {
    transform: scale(0.97);
}

/* Individual comment */
.comment {
    display: flex;
    gap: 14px;
    padding: 18px;
    margin-bottom: 10px;
    background-color: #f8fafc;
    border: 1px solid #dce3eb;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary);
    transition: box-shadow 0.15s, background-color 0.15s;
}

.comment:hover {
    background-color: #f1f5f9;
    box-shadow: var(--shadow-sm);
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text);
    background-color: #e8edf2;
    padding: 2px 10px;
    border-radius: 12px;
}

.comment-date {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.comment-text {
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.comment-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

/* Comment voting */
.comment-votes {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    min-width: 44px;
    background-color: #eef1f5;
    border-radius: var(--radius-sm);
    padding: 6px 4px;
}

.comment-vote-button {
    background: none;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 0.85rem;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: var(--text-muted);
    transition: all 0.15s;
    padding: 0;
    line-height: 1;
}

.comment-vote-button:hover {
    background-color: #dde3ea;
}

.comment-vote-button:active {
    transform: scale(1.1);
}

.comment-vote-up:hover,
.comment-vote-up.voted {
    color: var(--upvote);
    background-color: #d1fae5;
    border-color: #6ee7b7;
}

.comment-vote-down:hover,
.comment-vote-down.voted {
    color: var(--downvote);
    background-color: #fee2e2;
    border-color: #fca5a5;
}

.comment-votes .vote-count {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    padding: 2px 0;
}

/* Reply vote panel (vertical, matching top-level comments) */
.reply-vote-panel {
    min-width: 38px;
    padding: 4px 3px;
}

.reply-vote-panel .comment-vote-button {
    width: 30px;
    height: 30px;
    font-size: 0.78rem;
}

.reply-vote-panel .vote-count {
    font-size: 0.78rem;
}

/* Reply button */
.reply-button {
    background: none;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 4px 14px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: inherit;
    transition: all 0.15s;
}

.reply-button:hover {
    color: #fff;
    background-color: var(--primary);
}

/* Replies */
.replies {
    margin-left: 32px;
    border-left: 3px solid #b8c5d4;
    padding-left: 18px;
    margin-top: 12px;
}

.replies .reply {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    background-color: #f0f4f8;
    border: 1px solid #d4dce6;
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 8px;
    transition: box-shadow 0.15s, background-color 0.15s;
    font-size: 0.92em;
}

.replies .reply > .comment-content {
    flex: 1;
    min-width: 0;
}

.replies .reply > .reply-vote-panel {
    flex-shrink: 0;
}

.reply:hover {
    box-shadow: var(--shadow-sm);
    background-color: #e8eef5;
}

.reply .comment-header {
    margin-bottom: 6px;
}

.reply .comment-author {
    background-color: #d8e0ea;
}

.reply-form {
    margin-top: 10px;
}

.reply-form textarea {
    width: 100%;
    min-height: 60px;
    margin-bottom: 8px;
    padding: 10px 14px;
    border: 1px solid #c0cad6;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    resize: vertical;
}

.reply-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
    outline: none;
}

/* No comments */
.comments-section > p {
    text-align: center;
    color: var(--text-muted);
    padding: 32px 0;
    font-size: 0.9rem;
}

/* ── Mobile responsive ── */
@media (max-width: 768px) {
    .deal-detail {
        padding: 18px;
    }

    .deal-detail__content {
        flex-direction: column;
    }

    .deal-detail__votes {
        flex-direction: row;
        gap: 12px;
        padding: 8px 16px;
        width: fit-content;
    }

    .deal-detail__image {
        float: none;
        width: 100%;
        margin-right: 0;
        margin-bottom: 16px;
    }

    .deal-detail__title {
        font-size: 1.25rem;
    }

    .comments-section {
        padding: 18px;
    }

    .comment {
        flex-direction: column;
        gap: 8px;
        padding: 14px;
    }

    .comment-votes {
        flex-direction: row;
        gap: 8px;
        padding: 4px 8px;
        width: fit-content;
        border-radius: 20px;
    }

    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .replies {
        margin-left: 12px;
        padding-left: 12px;
    }

    .replies .reply {
        flex-direction: row;
        padding: 10px;
        gap: 8px;
    }

    .reply-vote-panel {
        min-width: 34px;
    }

    .reply .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .deal-detail {
        padding: 14px;
    }

    .comments-section {
        padding: 14px;
    }

    .new-comment-form {
        padding: 14px;
    }

    .comment {
        padding: 12px;
    }

    .replies {
        margin-left: 8px;
        padding-left: 10px;
    }
}
