.product-reviews-block {
	margin-top: 5vw;
}

.product-reviews-title {
	text-align: center;
	font-size: 35px;
    font-weight: 500;
	margin-bottom: 25px;
}

/* ===== Grid layout ===== */
.tp-reviews-grid {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}
.tp-cols-1 { grid-template-columns: 1fr; }
.tp-cols-2 { grid-template-columns: repeat(2, 1fr); }
.tp-cols-3 { grid-template-columns: repeat(3, 1fr); }
.tp-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .tp-cols-3,
    .tp-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	
	.product-reviews-block {
		margin-top: 7vw;
	}

	.product-reviews-title {
		text-align: center;
		font-size: 20px;
    	font-weight: 500;
		margin-bottom: 25px;
		line-height: 25px;
	}
	
    .tp-cols-2,
    .tp-cols-3,
    .tp-cols-4 { grid-template-columns: 1fr; }
}

/* ===== Card ===== */
.tp-review-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ===== Header: author + badge ===== */
.tp-review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.tp-review-author {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

/* ===== Marketplace badges ===== */
.tp-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    text-transform: none;
    letter-spacing: 0.3px;
}
.tp-badge-wb {
    background: #a03fce;
}
.tp-badge-ozon {
    background: #005bff;
}

/* ===== Meta: stars + date ===== */
.tp-review-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}
.tp-review-stars {
    display: inline-flex;
    gap: 1px;
}
.tp-star {
    font-size: 16px;
    line-height: 1;
}
.tp-star-filled {
    color: #ff8c00;
}
.tp-star-empty {
    color: #ddd;
}
.tp-review-date {
    font-size: 13px;
    color: #888;
}

/* ===== Review text with truncation ===== */
.tp-review-text-wrap {
    position: relative;
}
.tp-review-text {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.tp-review-text.tp-truncated {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tp-read-more {
    display: none;
    font-size: 13px;
    color: #e67e22;
    cursor: pointer;
    text-decoration: none;
    margin-top: 4px;
}
.tp-read-more:hover {
    text-decoration: underline;
    color: #d35400;
}
.tp-read-more.tp-visible {
    display: inline-block;
}

/* ===== Media thumbnails ===== */
.tp-review-media {
    margin-top: 4px;
}
.tp-media-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.tp-media-scroll::-webkit-scrollbar {
    height: 6px;
}
.tp-media-scroll::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}
.tp-media-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}
.tp-media-scroll::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}
.tp-media-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.2s;
}
.tp-media-thumb:hover {
    opacity: 0.8;
}

/* ===== Lightbox ===== */
.tp-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tp-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
}
.tp-lightbox-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 90vw;
    max-height: 90vh;
}
.tp-lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    user-select: none;
}
.tp-lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    opacity: 0.8;
}
.tp-lightbox-close:hover {
    opacity: 1;
}
.tp-lightbox-prev,
.tp-lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.tp-lightbox-prev:hover,
.tp-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}
.tp-lightbox-prev { left: 20px; }
.tp-lightbox-next { right: 20px; }
.tp-lightbox-prev.tp-hidden,
.tp-lightbox-next.tp-hidden {
    display: none;
}

/* ===== "Show more" link ===== */
.tp-show-more-wrap {
    display: none;
    text-align: center;
    margin-top: 16px;
}
.tp-show-more-wrap.tp-visible {
    display: block;
}
.tp-show-more-btn {
    display: inline;
    padding: 0;
    font-size: 15px;
    font-weight: 400;
    color: #1a1a1a;
    background: none;
    border-radius: 0;
    cursor: pointer;
    line-height: 1;
    text-decoration: underline dashed #1a1a1a;
    text-underline-offset: 12px;
    border: none;
}
.tp-show-more-btn:hover {
    color: #555;
}

/* Cards hidden by JS */
.tp-review-card.tp-card-hidden {
    display: none;
}

/* ===== No reviews ===== */
.tp-no-reviews {
    color: #888;
    font-style: italic;
}
