/**
 * TehranSite Elementor Widgets - Styles
 */

/* Discount Badge */
.ts-discount-badge { display: inline-block; padding: 5px 10px; border-radius: 4px; font-weight: 500; }

/* Sale Badge */
.ts-sale-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px; font-weight: 500; }
.ts-badge-icon { display: inline-flex; }

/* FAQ Accordion */
.ts-faq-accordion { width: 100%; }
.ts-faq-item { margin-bottom: 10px; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
.ts-faq-header { display: flex; align-items: center; padding: 15px 20px; cursor: pointer; transition: background-color 0.3s; background-color: #f8f9fa; }
.ts-faq-header:hover { background-color: #e9ecef; }
.ts-faq-item[aria-expanded="true"] .ts-faq-header { background-color: #e9ecef; }
.ts-faq-index { width: 32px; height: 32px; line-height: 32px; text-align: center; background-color: #007bff; color: #fff; border-radius: 50%; margin-left: 12px; flex-shrink: 0; font-weight: 500; }
.ts-faq-title { flex: 1; font-weight: 500; color: #333; }
.ts-faq-arrow { margin-right: 10px; transition: transform 0.3s; }
.ts-faq-item[aria-expanded="true"] .ts-faq-arrow { transform: rotate(180deg); }
.ts-faq-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.ts-faq-item[aria-expanded="true"] .ts-faq-content { max-height: 1000px; }
.ts-faq-content-inner { padding: 15px 20px; color: #666; line-height: 1.7; }
.ts-faq-empty { text-align: center; padding: 20px; color: #888; }

/* Review Box */
.ts-review-box { display: flex; gap: 30px; padding: 20px; background: #fff; border-radius: 10px; }
.ts-rating-scores { text-align: center; min-width: 100px; }
.ts-rating-score { display: flex; align-items: baseline; justify-content: center; gap: 5px; }
.ts-rating-score .rating { font-size: 48px; font-weight: 700; color: #f59e0b; }
.ts-rating-score .max { font-size: 16px; color: #888; }
.ts-rating-count { font-size: 14px; color: #888; margin-top: 5px; }
.ts-progress-bars { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.ts-progress-item { display: flex; align-items: center; gap: 10px; }
.ts-progress-item span { min-width: 60px; font-size: 14px; color: #374151; }
.ts-progress-bar { flex: 1; height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; }
.ts-progress-fill { height: 100%; background: #f59e0b; border-radius: 4px; transition: width 0.5s; }

/* Post Views */
.ts-views-container { display: inline-block; }
.ts-views-wrapper { display: inline-flex; align-items: center; gap: 6px; }
.ts-views-icon { display: inline-flex; }

/* Product Filters */
.ts-product-filters { width: 100%; }
.ts-filters-list { display: flex; flex-wrap: wrap; gap: 24px; }
.ts-filter-item { text-decoration: none; padding: 4px 14px; border-radius: 4px; font-size: 14px; font-weight: 500; transition: all 0.3s; }

/* Stock Toggle */
.ts-stock-toggle { width: 100%; }
.ts-toggle-label { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 15px; flex-direction: row-reverse; justify-content: space-between; }
.ts-toggle-input { cursor: pointer; width: 18px; height: 18px; }
.ts-toggle-text { font-size: 16px; font-weight: 500; }

/* Variation Colors */
.ts-variation-colors { display: flex; flex-wrap: wrap; gap: 5px; }
.ts-color-circle { width: 20px; height: 20px; border-radius: 50%; border: 1px solid #e5e7eb; display: inline-block; }

/* Related Products */
.ts-related-products { display: flex; flex-wrap: wrap; gap: 10px; }
.ts-related-item img { width: 100px; height: auto; border-radius: 8px; transition: transform 0.3s; }
.ts-related-item:hover img { transform: scale(1.05); }

/* Express Shipping */
.ts-express-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 400; }
.ts-express-icon { width: 16px; height: 16px; }

/* Category Grid */
.ts-cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.ts-cat-item { position: relative; overflow: hidden; border-radius: 10px; aspect-ratio: 1; }
.ts-cat-item a { display: block; width: 100%; height: 100%; text-decoration: none; }
.ts-cat-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.ts-cat-item:hover img { transform: scale(1.1); }
.ts-cat-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: flex-end; padding: 15px; }
.ts-cat-content { width: 100%; }
.ts-cat-title { color: #fff; font-size: 16px; font-weight: 600; margin-bottom: 5px; }
.ts-cat-count { color: rgba(255,255,255,0.8); font-size: 13px; }

/* RTL */
[dir="rtl"] .ts-faq-index { margin-left: 0; margin-right: 12px; }
[dir="rtl"] .ts-faq-arrow { margin-right: 0; margin-left: 10px; }

/* Reading Time */
.ts-reading-wrapper { display: flex; }
.ts-reading-time { display: inline-flex; align-items: center; gap: 6px; }
.ts-reading-icon { display: inline-flex; align-items: center; }
.ts-reading-number { font-weight: 600; }

/* ==================== Advanced Reviews V2 ==================== */
.ts-reviews-widget { width: 100%; font-family: inherit; }

/* Header */
.tsr-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px 12px 0 0; }
.tsr-header-right { }
.tsr-title { margin: 0; font-size: 18px; font-weight: 600; color: #1f2937; }
.tsr-header-center { display: flex; align-items: baseline; gap: 4px; }
.tsr-score-value { font-size: 20px; font-weight: 700; color: #1f2937; }
.tsr-score-suffix { font-size: 14px; color: #6b7280; }
.tsr-header-left { }
.tsr-btn-add { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; background: #0ea5e9; color: #fff; border: none; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 500; transition: all 0.3s; }
.tsr-btn-add:hover { background: #0284c7; }
.tsr-btn-add svg { flex-shrink: 0; }
.tsr-subheader { padding: 12px 20px; background: #fff; border: 1px solid #e5e7eb; border-top: none; }
.tsr-count { font-size: 13px; color: #6b7280; }

/* Body */
.tsr-body { background: #fff; border: 1px solid #e5e7eb; border-top: none; padding: 30px 20px; }

/* Empty State */
.tsr-empty { text-align: center; padding: 40px 20px; }
.tsr-empty-icon { width: 90px; height: 90px; margin: 0 auto 20px; background: #e0f2fe; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.tsr-empty-icon svg { fill: #0ea5e9; }
.tsr-empty-title { font-size: 18px; font-weight: 600; color: #1f2937; margin: 0 0 10px; }
.tsr-empty-text { font-size: 14px; color: #6b7280; margin: 0 0 15px; line-height: 1.6; }
.tsr-empty-product { color: #ef4444; font-weight: 600; }
.tsr-empty-cta { display: inline-block; color: #0ea5e9; font-size: 14px; text-decoration: none; font-weight: 500; }
.tsr-empty-cta:hover { text-decoration: underline; }

/* Filters */
.tsr-filters { margin-bottom: 24px; }
.tsr-bar-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; cursor: pointer; transition: opacity 0.3s; }
.tsr-bar-row:hover { opacity: 0.8; }
.tsr-bar-row.active { opacity: 1; }
.tsr-bar-row.active .tsr-bar-fill { background: #0ea5e9; }
.tsr-bar-label { min-width: 50px; font-size: 13px; color: #4b5563; }
.tsr-bar-bg { flex: 1; height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; }
.tsr-bar-fill { height: 100%; background: #fbbf24; border-radius: 4px; transition: width 0.5s; }
.tsr-bar-count { min-width: 30px; text-align: left; font-size: 13px; color: #6b7280; }

/* List */
.tsr-list { display: flex; flex-direction: column; gap: 16px; }

/* Item */
.tsr-item { padding: 20px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; }
.tsr-item-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tsr-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.tsr-meta { flex: 1; }
.tsr-author-name { display: block; font-weight: 600; color: #1f2937; font-size: 15px; }
.tsr-date { font-size: 12px; color: #9ca3af; }
.tsr-rating { display: flex; gap: 2px; }
.tsr-star { color: #e5e7eb; }
.tsr-star.active { color: #fbbf24; }
.tsr-content { color: #4b5563; font-size: 14px; line-height: 1.7; margin-bottom: 12px; }

/* Images */
.tsr-images { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tsr-images a { display: block; width: 70px; height: 70px; border-radius: 8px; overflow: hidden; }
.tsr-images img { width: 100%; height: 100%; object-fit: cover; }

/* Footer */
.tsr-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid #f3f4f6; font-size: 13px; color: #6b7280; }
.tsr-helpful-btns { display: flex; gap: 8px; }
.tsr-btn-helpful { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border: 1px solid #e5e7eb; border-radius: 6px; background: #fff; cursor: pointer; font-size: 13px; color: #6b7280; transition: all 0.3s; }
.tsr-btn-helpful.up:hover, .tsr-btn-helpful.up.voted { border-color: #10b981; color: #10b981; background: #ecfdf5; }
.tsr-btn-helpful.down:hover, .tsr-btn-helpful.down.voted { border-color: #ef4444; color: #ef4444; background: #fef2f2; }

/* Admin Reply */
.tsr-admin-reply { margin-top: 16px; padding: 16px; background: #f0f9ff; border-radius: 8px; border-right: 3px solid #0ea5e9; }
.tsr-reply-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.tsr-admin-badge { background: #0ea5e9; color: #fff; padding: 3px 10px; border-radius: 4px; font-size: 12px; font-weight: 500; }
.tsr-reply-date { font-size: 12px; color: #6b7280; }
.tsr-reply-content { color: #4b5563; font-size: 14px; line-height: 1.6; }

/* More */
.tsr-more-wrapper { padding: 16px 20px; background: #fff; border: 1px solid #e5e7eb; border-top: none; border-radius: 0 0 12px 12px; text-align: center; }
.tsr-btn-more { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; cursor: pointer; font-size: 14px; font-weight: 500; color: #1f2937; transition: color 0.3s; }
.tsr-btn-more:hover { color: #0ea5e9; }

/* Popup */
.tsr-popup-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 99999; }
.tsr-popup-content { background: #fff; border-radius: 16px; width: 500px; max-width: 95%; max-height: 90vh; overflow-y: auto; animation: tsrPopupIn 0.3s ease; }
@keyframes tsrPopupIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.tsr-popup-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid #e5e7eb; }
.tsr-popup-header h4 { margin: 0; font-size: 18px; font-weight: 600; color: #1f2937; }
.tsr-popup-close { background: none; border: none; cursor: pointer; color: #9ca3af; padding: 4px; }
.tsr-popup-close:hover { color: #ef4444; }

/* Form */
.tsr-form { padding: 24px; }
.tsr-form-group { margin-bottom: 16px; }
.tsr-form-group label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; color: #374151; }
.tsr-star-select { display: flex; gap: 4px; }
.tsr-star-btn { cursor: pointer; color: #e5e7eb; transition: all 0.2s; }
.tsr-star-btn:hover, .tsr-star-btn.hover { color: #fbbf24; transform: scale(1.1); }
.tsr-star-btn.active { color: #fbbf24; }
.tsr-form textarea, .tsr-form input[type="text"], .tsr-form input[type="email"] { width: 100%; padding: 12px 14px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 14px; background: #f9fafb; transition: all 0.3s; }
.tsr-form textarea:focus, .tsr-form input:focus { outline: none; border-color: #0ea5e9; background: #fff; box-shadow: 0 0 0 3px rgba(14,165,233,0.1); }
.tsr-form textarea { resize: vertical; min-height: 100px; }
.tsr-form-row { display: flex; gap: 12px; }
.tsr-form-row input { flex: 1; }

/* Upload */
.tsr-upload input[type="file"] { display: none; }
.tsr-upload-label span { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border: 1px dashed #d1d5db; border-radius: 8px; cursor: pointer; font-size: 14px; color: #6b7280; transition: all 0.3s; }
.tsr-upload-label span:hover { border-color: #0ea5e9; color: #0ea5e9; }
.tsr-upload-preview { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.tsr-upload-preview .preview-img { width: 70px; height: 70px; border-radius: 8px; overflow: hidden; }
.tsr-upload-preview img { width: 100%; height: 100%; object-fit: cover; }

/* Submit */
.tsr-btn-submit { width: 100%; padding: 14px 20px; background: #10b981; color: #fff; border: none; border-radius: 8px; font-size: 15px; font-weight: 500; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.tsr-btn-submit:hover { background: #059669; }
.tsr-btn-submit .loading { display: inline-flex; align-items: center; gap: 8px; }
.tsr-btn-submit .spinner { animation: tsrSpin 1s linear infinite; }
@keyframes tsrSpin { to { transform: rotate(360deg); } }

/* Message */
.tsr-form-msg { margin-top: 16px; padding: 12px 16px; border-radius: 8px; font-size: 14px; }
.tsr-form-msg.success { background: #d1fae5; color: #065f46; }
.tsr-form-msg.error { background: #fee2e2; color: #991b1b; }

/* Responsive */
@media (max-width: 640px) {
    .tsr-header { flex-direction: column; gap: 12px; align-items: flex-start; }
    .tsr-header-center { order: 3; }
    .tsr-form-row { flex-direction: column; }
}

/* ==================== Post Comments V2 ==================== */
.ts-comments-widget { width: 100%; font-family: inherit; }

/* Header */
.tsc-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px 12px 0 0; }
.tsc-header-right { display: flex; align-items: center; gap: 12px; }
.tsc-title { margin: 0; font-size: 18px; font-weight: 600; color: #1f2937; }
.tsc-count { background: #0ea5e9; color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 13px; font-weight: 500; }
.tsc-btn-add { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; background: #0ea5e9; color: #fff; border: none; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 500; transition: all 0.3s; }
.tsc-btn-add:hover { background: #0284c7; }

/* Body */
.tsc-body { background: #fff; border: 1px solid #e5e7eb; border-top: none; padding: 30px 20px; }

/* Empty */
.tsc-empty { text-align: center; padding: 40px 20px; }
.tsc-empty-icon { width: 90px; height: 90px; margin: 0 auto 20px; background: #e0f2fe; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.tsc-empty-icon svg { fill: #0ea5e9; }
.tsc-empty-title { font-size: 18px; font-weight: 600; color: #1f2937; margin: 0 0 10px; }
.tsc-empty-text { font-size: 14px; color: #6b7280; margin: 0 0 15px; line-height: 1.6; }
.tsc-empty-post { color: #ef4444; font-weight: 600; }
.tsc-empty-cta { display: inline-block; color: #0ea5e9; font-size: 14px; text-decoration: none; font-weight: 500; }
.tsc-empty-cta:hover { text-decoration: underline; }

/* List */
.tsc-list { display: flex; flex-direction: column; gap: 16px; }

/* Item */
.tsc-item { padding: 20px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; }
.tsc-item-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tsc-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.tsc-meta { flex: 1; }
.tsc-author { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tsc-author-name { font-weight: 600; color: #1f2937; font-size: 15px; }
.tsc-date { font-size: 12px; color: #9ca3af; display: block; margin-top: 2px; }
.tsc-badge { padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 500; }
.tsc-badge-author { background: #8b5cf6; color: #fff; }
.tsc-badge-admin { background: #0ea5e9; color: #fff; }
.tsc-content { color: #4b5563; font-size: 14px; line-height: 1.7; margin-bottom: 12px; }

/* Images */
.tsc-images { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tsc-images a { display: block; width: 70px; height: 70px; border-radius: 8px; overflow: hidden; }
.tsc-images img { width: 100%; height: 100%; object-fit: cover; }

/* Footer */
.tsc-footer { display: flex; align-items: center; gap: 16px; padding-top: 12px; border-top: 1px solid #f3f4f6; }
.tsc-likes { display: flex; gap: 8px; }
.tsc-btn-like { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border: 1px solid #e5e7eb; border-radius: 6px; background: #fff; cursor: pointer; font-size: 13px; color: #6b7280; transition: all 0.3s; }
.tsc-btn-like.up:hover, .tsc-btn-like.up.voted { border-color: #10b981; color: #10b981; background: #ecfdf5; }
.tsc-btn-like.down:hover, .tsc-btn-like.down.voted { border-color: #ef4444; color: #ef4444; background: #fef2f2; }
.tsc-btn-reply { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: none; background: none; cursor: pointer; font-size: 13px; color: #6b7280; transition: all 0.3s; }
.tsc-btn-reply:hover { color: #0ea5e9; }

/* Replies */
.tsc-replies { margin-top: 16px; margin-right: 30px; padding-right: 20px; border-right: 2px solid #e5e7eb; display: flex; flex-direction: column; gap: 12px; }
.tsc-replies .tsc-item { background: #f9fafb; }

/* More */
.tsc-more-wrapper { padding: 16px 20px; background: #fff; border: 1px solid #e5e7eb; border-top: none; border-radius: 0 0 12px 12px; text-align: center; }
.tsc-btn-more { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; cursor: pointer; font-size: 14px; font-weight: 500; color: #1f2937; transition: color 0.3s; }
.tsc-btn-more:hover { color: #0ea5e9; }

/* Popup */
.tsc-popup-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 99999; }
.tsc-popup-content { background: #fff; border-radius: 16px; width: 500px; max-width: 95%; max-height: 90vh; overflow-y: auto; animation: tscPopupIn 0.3s ease; }
@keyframes tscPopupIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.tsc-popup-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid #e5e7eb; }
.tsc-popup-header h4 { margin: 0; font-size: 18px; font-weight: 600; color: #1f2937; }
.tsc-popup-close { background: none; border: none; cursor: pointer; color: #9ca3af; padding: 4px; }
.tsc-popup-close:hover { color: #ef4444; }
.tsc-reply-to { display: flex; align-items: center; gap: 10px; padding: 12px 24px; background: #eff6ff; font-size: 14px; color: #1e40af; }
.tsc-cancel-reply { background: none; border: none; color: #ef4444; cursor: pointer; font-size: 13px; margin-right: auto; }

/* Form */
.tsc-form { padding: 24px; }
.tsc-form-group { margin-bottom: 16px; }
.tsc-form textarea, .tsc-form input[type="text"], .tsc-form input[type="email"] { width: 100%; padding: 12px 14px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 14px; background: #f9fafb; transition: all 0.3s; }
.tsc-form textarea:focus, .tsc-form input:focus { outline: none; border-color: #0ea5e9; background: #fff; box-shadow: 0 0 0 3px rgba(14,165,233,0.1); }
.tsc-form textarea { resize: vertical; min-height: 100px; }
.tsc-form-row { display: flex; gap: 12px; }
.tsc-form-row input { flex: 1; }

/* Upload */
.tsc-upload input[type="file"] { display: none; }
.tsc-upload-label span { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border: 1px dashed #d1d5db; border-radius: 8px; cursor: pointer; font-size: 14px; color: #6b7280; transition: all 0.3s; }
.tsc-upload-label span:hover { border-color: #0ea5e9; color: #0ea5e9; }
.tsc-upload-preview { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.tsc-upload-preview .preview-img { width: 70px; height: 70px; border-radius: 8px; overflow: hidden; }
.tsc-upload-preview img { width: 100%; height: 100%; object-fit: cover; }

/* Submit */
.tsc-btn-submit { width: 100%; padding: 14px 20px; background: #10b981; color: #fff; border: none; border-radius: 8px; font-size: 15px; font-weight: 500; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.tsc-btn-submit:hover { background: #059669; }
.tsc-btn-submit .loading { display: inline-flex; align-items: center; gap: 8px; }
.tsc-btn-submit .spinner { animation: tscSpin 1s linear infinite; }
@keyframes tscSpin { to { transform: rotate(360deg); } }

/* Message */
.tsc-form-msg { margin-top: 16px; padding: 12px 16px; border-radius: 8px; font-size: 14px; }
.tsc-form-msg.success { background: #d1fae5; color: #065f46; }
.tsc-form-msg.error { background: #fee2e2; color: #991b1b; }

/* Responsive */
@media (max-width: 640px) {
    .tsc-header { flex-direction: column; gap: 12px; align-items: flex-start; }
    .tsc-form-row { flex-direction: column; }
    .tsc-replies { margin-right: 15px; padding-right: 12px; }
}

/* ==================== Post Comments ==================== */
.ts-post-comments { width: 100%; }

/* Header */
.ts-comments-header { display: flex; justify-content: space-between; align-items: center; background: #f8f9fa; padding: 16px 20px; border-radius: 12px 12px 0 0; flex-wrap: wrap; gap: 12px; }
.ts-comments-title-wrap { display: flex; align-items: center; gap: 12px; }
.ts-comments-title { margin: 0; font-size: 18px; font-weight: 600; color: #1f2937; }
.ts-comments-count { background: #3b82f6; color: #fff; padding: 4px 12px; border-radius: 20px; font-size: 13px; font-weight: 500; }
.ts-btn-add-comment { display: inline-flex; align-items: center; gap: 8px; background: #3b82f6; color: #fff; border: none; padding: 10px 20px; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 500; transition: all 0.3s; }
.ts-btn-add-comment:hover { background: #2563eb; }

/* List */
.ts-comments-list { display: flex; flex-direction: column; gap: 16px; padding: 20px; background: #fff; border: 1px solid #e5e7eb; border-top: none; border-radius: 0 0 12px 12px; }

/* Comment Item */
.ts-comment-item { background: #fff; padding: 20px; border-radius: 12px; border: 1px solid #e5e7eb; }
.ts-comment-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ts-comment-avatar { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.ts-comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ts-comment-meta { flex: 1; }
.ts-comment-author { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ts-comment-author-name { font-weight: 600; color: #1f2937; font-size: 15px; }
.ts-comment-date { font-size: 13px; color: #9ca3af; display: block; margin-top: 2px; }

/* Badges */
.ts-badge { padding: 3px 10px; border-radius: 4px; font-size: 11px; font-weight: 500; }
.ts-badge-author { background: #8b5cf6; color: #fff; }
.ts-badge-admin { background: #3b82f6; color: #fff; }

/* Content */
.ts-comment-content { color: #4b5563; line-height: 1.8; font-size: 14px; margin-bottom: 12px; }

/* Images */
.ts-comment-images { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.ts-comment-image { width: 70px; height: 70px; border-radius: 8px; overflow: hidden; }
.ts-comment-image img { width: 100%; height: 100%; object-fit: cover; }

/* Footer */
.ts-comment-footer { display: flex; align-items: center; gap: 16px; padding-top: 12px; border-top: 1px solid #f3f4f6; }
.ts-comment-likes { display: flex; gap: 8px; }
.ts-btn-like, .ts-btn-dislike { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border: 1px solid #e5e7eb; border-radius: 6px; background: #fff; cursor: pointer; font-size: 13px; color: #6b7280; transition: all 0.3s; }
.ts-btn-like:hover, .ts-btn-like.voted { border-color: #10b981; color: #10b981; background: #ecfdf5; }
.ts-btn-dislike:hover, .ts-btn-dislike.voted { border-color: #ef4444; color: #ef4444; background: #fef2f2; }
.ts-btn-reply { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: none; background: none; cursor: pointer; font-size: 13px; color: #6b7280; transition: all 0.3s; }
.ts-btn-reply:hover { color: #3b82f6; }

/* Replies */
.ts-comment-replies { margin-top: 16px; margin-right: 30px; padding-right: 20px; border-right: 2px solid #e5e7eb; display: flex; flex-direction: column; gap: 12px; }
.ts-comment-replies .ts-comment-item { background: #f9fafb; }

/* Empty */
.ts-comments-empty { text-align: center; padding: 40px 20px; }
.ts-comments-empty .ts-empty-image { margin-bottom: 16px; }
.ts-comments-empty .ts-empty-image img { max-width: 120px; }
.ts-comments-empty .ts-empty-title { font-size: 16px; color: #1f2937; margin-bottom: 8px; }
.ts-comments-empty .ts-empty-text { color: #6b7280; font-size: 14px; }

/* Form */
.ts-comment-form-wrapper { background: #fff; padding: 24px; border-radius: 12px; border: 1px solid #e5e7eb; margin-top: 20px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.ts-comment-form-wrapper .ts-form-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.ts-comment-form-wrapper .ts-form-title { margin: 0; font-size: 16px; font-weight: 600; color: #1f2937; }
.ts-comment-form-wrapper .ts-btn-close { background: none; border: none; cursor: pointer; color: #9ca3af; padding: 4px; }
.ts-comment-form-wrapper .ts-btn-close:hover { color: #ef4444; }

.ts-reply-to { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #eff6ff; border-radius: 8px; margin-bottom: 16px; font-size: 14px; color: #1e40af; }
.ts-btn-cancel-reply { background: none; border: none; color: #ef4444; cursor: pointer; font-size: 13px; margin-right: auto; }

.ts-comment-form .ts-form-group { margin-bottom: 14px; }
.ts-comment-form .ts-form-row { display: flex; gap: 14px; }
.ts-comment-form .ts-form-half { flex: 1; }
.ts-comment-input, .ts-comment-textarea { width: 100%; padding: 12px 14px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 14px; background: #f9fafb; transition: all 0.3s; }
.ts-comment-input:focus, .ts-comment-textarea:focus { outline: none; border-color: #3b82f6; background: #fff; box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
.ts-comment-textarea { resize: vertical; min-height: 100px; }

.ts-btn-submit-comment { width: 100%; padding: 12px 20px; background: #10b981; color: #fff; border: none; border-radius: 8px; font-size: 15px; font-weight: 500; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.ts-btn-submit-comment:hover { background: #059669; }

/* Post Comments Responsive */
@media (max-width: 768px) {
    .ts-comments-header { flex-direction: column; align-items: flex-start; }
    .ts-comment-form .ts-form-row { flex-direction: column; }
    .ts-comment-replies { margin-right: 15px; padding-right: 12px; }
}
