/* LK Reviews - Product Page Display */

/* Star rating summary below product title */
.lk-product-rating-summary {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-top: 6px;
    cursor: default;
    position: relative;
}

.lk-product-stars {
    display: flex;
    gap: 1px;
}

.lk-product-star {
    font-size: 18px;
    line-height: 1;
}

.lk-product-star.lk-star-full {
    color: #FF964F;
}

.lk-product-star.lk-star-half {
    color: #FF964F;
    position: relative;
}

.lk-product-star.lk-star-empty {
    color: #ddd;
}

/* Tooltip */
.lk-product-rating-summary::after {
    content: attr(data-lk-tooltip);
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 6px;
    background: #333;
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    padding: 6px 10px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s, visibility 0.15s;
    z-index: 10;
}

.lk-product-rating-summary:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Reviews tab content */
.lk-product-reviews {
    max-width: 800px;
}

.lk-product-review-card {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.lk-product-review-card:first-child {
    padding-top: 0;
}

.lk-product-review-card:last-of-type {
    border-bottom: none;
}

.lk-product-review-card.lk-review-hidden {
    display: none;
}

/* Review card header */
.lk-review-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.lk-review-card-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0e6dc;
    color: #b07a4f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
    line-height: 1;
}

.lk-review-card-name {
    font-weight: 600;
    font-size: 15px;
}

.lk-review-card-stars {
    display: flex;
    gap: 1px;
}

.lk-review-card-stars .lk-product-star {
    font-size: 16px;
}

/* Review text */
.lk-review-card-text {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 10px;
}

/* Review images */
.lk-review-card-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.lk-review-image-link {
    display: block;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: opacity 0.2s;
}

.lk-review-image-link:hover {
    opacity: 0.8;
}

.lk-review-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Review date */
.lk-review-card-date {
    font-size: 12px;
    color: #999;
}

/* Show more button */
.lk-reviews-show-more {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 24px;
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.lk-reviews-show-more:hover {
    border-color: #FF964F;
    color: #FF964F;
}

/* Lightbox */
.lk-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lk-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lk-lightbox-content img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}

.lk-lightbox-close {
    position: absolute;
    top: 0px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px !important;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px !important;
}

.lk-lightbox-close:hover {
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 640px) {
    .lk-review-image-link {
        width: 64px;
        height: 64px;
    }

    .lk-product-star {
        font-size: 16px;
    }
}
