/**
 * WooCommerce Advanced Photo Reviews - Styles
 *
 * @package WC_Advanced_Reviews
 */

/* ==========================================================================
   Review Form Wrapper
   ========================================================================== */
.wcar-review-form-wrapper {
    margin: 20px 0;
    padding: 0;
}

.wcar-review-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 100%;
}

/* ==========================================================================
   Form Rows
   ========================================================================== */
.wcar-form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wcar-form-row label {
    font-weight: 600;
    font-size: var(--wcar-body-font-size, 14px);
    color: var(--wcar-text-primary, #333);
    margin-bottom: 4px;
}

.wcar-form-row label .required {
    color: #e2401c;
}

.wcar-form-row .wcar-optional {
    font-weight: 400;
    color: var(--wcar-text-secondary, #767676);
    font-size: 12px;
}

/* ==========================================================================
   Input Fields
   ========================================================================== */
.wcar-input,
.wcar-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.wcar-input:focus,
.wcar-textarea:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.wcar-textarea {
    resize: vertical;
    min-height: 120px;
}

/* ==========================================================================
   Guest User Fields
   ========================================================================== */
.wcar-guest-fields {
    display: flex;
    flex-direction: row;
    gap: 16px;
}

.wcar-guest-fields .wcar-field-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wcar-guest-fields .wcar-field-group label {
    font-weight: 600;
    font-size: var(--wcar-body-font-size, 14px);
    color: var(--wcar-text-primary, #333);
}

.wcar-guest-fields .wcar-field-group label .required {
    color: #e2401c;
}

@media (max-width: 600px) {
    .wcar-guest-fields {
        flex-direction: column;
    }
}

/* ==========================================================================
   Star Rating
   ========================================================================== */
.wcar-rating-row {
    margin-bottom: 10px;
}

.wcar-star-rating {
    display: flex;
    gap: 4px;
    align-items: center;
}

.wcar-star {
    cursor: pointer;
    transition: transform 0.15s ease;
}

.wcar-star svg {
    fill: var(--wcar-star-inactive, #ddd);
    stroke: var(--wcar-star-inactive, #ddd);
    stroke-width: 1;
    transition: fill 0.15s ease, stroke 0.15s ease;
}

.wcar-star:hover {
    transform: scale(1.1);
}

.wcar-star.active svg,
.wcar-star.hover svg {
    fill: var(--wcar-star-active, #ffb900);
    stroke: var(--wcar-star-active, #ffb900);
}

/* ==========================================================================
   Dropzone
   ========================================================================== */
.wcar-dropzone {
    position: relative;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    background-color: #fafafa;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.wcar-dropzone:hover,
.wcar-dropzone.dragover {
    border-color: var(--wcar-accent, #333);
    background-color: #f5f5f5;
}

.wcar-file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.wcar-dropzone-content {
    pointer-events: none;
}

.wcar-upload-icon {
    fill: none;
    stroke: #999;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-bottom: 12px;
}

.wcar-dropzone-text {
    font-size: 15px;
    color: #333;
    margin: 0 0 8px;
}

.wcar-dropzone-text span {
    display: block;
    font-size: 13px;
    color: #767676;
    margin-top: 4px;
}

.wcar-dropzone-hint {
    font-size: 12px;
    color: #999;
    margin: 0;
}

/* ==========================================================================
   Image Preview
   ========================================================================== */
.wcar-preview-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.wcar-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.wcar-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wcar-preview-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    padding: 0;
}

.wcar-preview-remove:hover {
    background: rgba(0, 0, 0, 0.8);
}

.wcar-preview-remove svg {
    width: 14px;
    height: 14px;
    stroke: #fff;
    stroke-width: 2;
}

/* ==========================================================================
   Form Messages
   ========================================================================== */
.wcar-form-message {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.wcar-message-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.wcar-message-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

/* ==========================================================================
   Submit Button
   ========================================================================== */
.wcar-submit-row {
    margin-top: 10px;
}

.wcar-submit-btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.wcar-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==========================================================================
   Product Page Review Display - Modern Card Design
   ========================================================================== */
.wcar-review.wcar-review-card-product {
    padding: 0;
    margin-bottom: 24px;
    border-bottom: none;
    list-style: none;
}

.wcar-review-article {
    background: var(--wcar-card-bg, #fff);
    border-radius: var(--wcar-radius, 16px);
    box-shadow: var(--wcar-shadow, 0 2px 12px rgba(0, 0, 0, 0.06));
    border: 1px solid rgba(0, 0, 0, 0.04);
    padding: 24px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.wcar-review-article:hover {
    box-shadow: var(--wcar-shadow-hover, 0 8px 30px rgba(0, 0, 0, 0.1));
    transform: translateY(-2px);
}

/* Review Header */
.wcar-review-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
}

.wcar-review-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wcar-review-author-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.wcar-review-author {
    font-weight: 700;
    font-size: var(--wcar-title-font-size, 16px);
    color: var(--wcar-text-primary, #1a1a1a);
    line-height: 1.3;
}

/* Verified Badge */
.wcar-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #059669;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wcar-verified-badge svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Meta Row - Rating & Date */
.wcar-review-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.wcar-review-rating {
    display: flex;
    gap: 2px;
}

.wcar-review-star {
    display: inline-flex;
}

.wcar-review-star svg {
    width: 18px;
    height: 18px;
    fill: var(--wcar-star-inactive, #e5e7eb);
    stroke: none;
    transition: fill 0.15s ease, transform 0.15s ease;
}

.wcar-review-star.filled svg {
    fill: var(--wcar-star-active, #fbbf24);
}

.wcar-review-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--wcar-text-secondary, #6b7280);
}

.wcar-review-date svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.6;
}

/* Review Body */
.wcar-review-body {
    margin-bottom: 16px;
}

.wcar-review-content {
    font-size: var(--wcar-body-font-size, 15px);
    line-height: 1.75;
    color: var(--wcar-text-primary, #374151);
    font-family: var(--wcar-font-family, inherit);
    -webkit-font-smoothing: antialiased;
}

.wcar-review-content p {
    margin: 0 0 12px 0;
}

.wcar-review-content p:last-child {
    margin-bottom: 0;
}

.wcar-review-content strong {
    display: block;
    font-size: calc(var(--wcar-title-font-size, 16px) + 1px);
    font-weight: 700;
    color: var(--wcar-text-primary, #1a1a1a);
    margin-bottom: 10px;
}

/* Photo Gallery - Grid Layout */
.wcar-review-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 16px;
    max-width: 440px;
}

.wcar-gallery-thumb {
    position: relative;
    display: block;
    aspect-ratio: 1;
    border-radius: calc(var(--wcar-radius, 16px) / 2);
    overflow: hidden;
    cursor: pointer;
    background: #f3f4f6;
}

.wcar-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wcar-gallery-thumb:hover img {
    transform: scale(1.1);
}

.wcar-gallery-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wcar-gallery-thumb:hover::after {
    opacity: 1;
}

/* Photo Counter Badge */
.wcar-gallery-more {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    z-index: 1;
}


/* Legacy Photo Thumb Support */
.wcar-review-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.wcar-photo-thumb {
    display: block;
    width: 100px;
    height: 100px;
    border-radius: calc(var(--wcar-radius, 16px) / 2);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wcar-photo-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wcar-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .wcar-review-article {
        padding: 18px;
        border-radius: calc(var(--wcar-radius, 16px) * 0.75);
    }
    
    .wcar-review-author {
        font-size: 15px;
    }
    
    .wcar-review-star svg {
        width: 16px;
        height: 16px;
    }
    
    .wcar-review-gallery {
        grid-template-columns: repeat(3, 1fr);
        max-width: 100%;
    }
    
    .wcar-verified-badge span {
        display: none;
    }
    
    .wcar-verified-badge {
        padding: 4px 6px;
    }
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
.wcar-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
}

.wcar-lightbox.active {
    display: block;
}

.wcar-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.wcar-lightbox-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wcar-lightbox-content {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wcar-lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.wcar-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    z-index: 10;
    padding: 0;
}

.wcar-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.wcar-lightbox-close svg {
    stroke: #fff;
    stroke-width: 2;
    fill: none;
}

.wcar-lightbox-prev,
.wcar-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    z-index: 10;
    padding: 0;
}

.wcar-lightbox-prev {
    left: 20px;
}

.wcar-lightbox-next {
    right: 20px;
}

.wcar-lightbox-prev:hover,
.wcar-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.wcar-lightbox-prev svg,
.wcar-lightbox-next svg {
    stroke: #fff;
    stroke-width: 2;
    fill: none;
}

.wcar-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 480px) {
    .wcar-preview-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .wcar-dropzone {
        padding: 30px 15px;
    }
    
    .wcar-submit-btn {
        width: 100%;
    }
    
    .wcar-review-header {
        gap: 12px;
    }
    
    .wcar-review-avatar .wcar-avatar {
        width: 48px;
        height: 48px;
    }
    
    .wcar-photo-thumb {
        width: 80px;
        height: 80px;
    }
    
    .wcar-lightbox-prev,
    .wcar-lightbox-next {
        width: 40px;
        height: 40px;
    }
    
    .wcar-lightbox-prev {
        left: 10px;
    }
    
    .wcar-lightbox-next {
        right: 10px;
    }
}

/* ==========================================================================
   Wall of Love - Modern Glassy Masonry
   High-Performance CSS Multi-Column Layout
   ========================================================================== */
.wcar-wall-of-love {
    padding: 20px 0;
    font-family: var(--wcar-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    /* Performance: Skip rendering off-screen content */
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}

/* ==========================================================================
   Category Filter Bar
   ========================================================================== */
.wcar-filter-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: var(--wcar-card-bg, rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--wcar-radius, 16px);
    box-shadow: var(--wcar-shadow, 0 4px 20px rgba(0, 0, 0, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.wcar-filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wcar-filter-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--wcar-text-primary, #1a1a1a);
    white-space: nowrap;
}

.wcar-category-select {
    min-width: 200px;
    padding: 10px 40px 10px 16px;
    font-size: 14px;
    font-family: inherit;
    color: var(--wcar-text-primary, #1a1a1a);
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.wcar-category-select:hover {
    border-color: #d1d5db;
}

.wcar-category-select:focus {
    outline: none;
    border-color: var(--wcar-accent, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.wcar-category-select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .wcar-filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px 16px;
    }
    
    .wcar-filter-group {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .wcar-category-select {
        min-width: 100%;
        width: 100%;
    }
}

/* CSS Multi-Column Masonry Layout */
.wcar-reviews-grid {
    column-count: 3;
    column-gap: var(--wcar-grid-gap, 24px);
    /* Prevent orphans */
    orphans: 1;
    widows: 1;
}

.wcar-no-reviews {
    text-align: center;
    padding: 60px 20px;
    color: var(--wcar-text-secondary, #767676);
    font-size: var(--wcar-body-font-size, 16px);
    column-span: all;
}

/* ==========================================================================
   Review Card - Glassy Design
   ========================================================================== */
.wcar-review-card {
    /* Prevent card from being cut between columns */
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    
    /* Glassy effect */
    background: var(--wcar-card-bg, rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--wcar-radius, 16px);
    box-shadow: var(--wcar-shadow, 0 4px 20px rgba(0, 0, 0, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.2);
    
    /* Layout */
    margin-bottom: var(--wcar-grid-gap, 24px);
    overflow: hidden;
    
    /* GPU-accelerated transform for smooth hover */
    transform: translateZ(0);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    will-change: transform;
}

.wcar-review-card:hover {
    transform: translateY(-6px) translateZ(0);
    box-shadow: var(--wcar-shadow-hover, 0 12px 40px rgba(0, 0, 0, 0.15));
}

/* ==========================================================================
   Photo Gallery - Collage Preview
   ========================================================================== */
.wcar-card-gallery {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f5f5f5;
}

.wcar-card-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.wcar-review-card:hover .wcar-card-gallery img {
    transform: scale(1.08);
}

/* Photo counter badge */
.wcar-photo-count {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.wcar-photo-count svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* ==========================================================================
   Card Body
   ========================================================================== */
.wcar-card-body {
    padding: 20px;
}

/* Card Header */
.wcar-card-header {
    margin-bottom: 14px;
}

.wcar-card-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.wcar-card-author {
    font-weight: 600;
    font-size: var(--wcar-title-font-size, 14px);
    color: var(--wcar-text-primary, #1a1a1a);
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.3;
}

/* Verified Badge */
.wcar-verified-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    flex-shrink: 0;
}

.wcar-verified-icon svg {
    width: 10px;
    height: 10px;
    fill: none;
    stroke: #fff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wcar-card-date {
    font-size: 12px;
    color: var(--wcar-text-secondary, #6b7280);
    line-height: 1.3;
}

/* ==========================================================================
   Star Rating
   ========================================================================== */
.wcar-card-rating {
    display: flex;
    gap: 3px;
    margin-bottom: 12px;
}

.wcar-card-star {
    display: inline-flex;
}

.wcar-card-star svg {
    width: 16px;
    height: 16px;
    fill: var(--wcar-star-inactive, #e5e7eb);
    stroke: none;
    transition: fill 0.15s ease;
}

.wcar-card-star.filled svg {
    fill: var(--wcar-star-active, #fbbf24);
}

/* ==========================================================================
   Review Content
   ========================================================================== */
.wcar-card-content {
    margin-bottom: 16px;
}

.wcar-card-content p {
    font-size: var(--wcar-body-font-size, 14px);
    line-height: 1.6;
    color: var(--wcar-text-primary, #374151);
    margin: 0;
    /* Smooth text rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.wcar-read-more {
    display: inline-block;
    color: var(--wcar-accent, #2563eb);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    margin-top: 8px;
    transition: color 0.2s ease;
}

.wcar-read-more:hover {
    color: var(--wcar-text-primary, #1a1a1a);
}

/* ==========================================================================
   Product Footer
   ========================================================================== */
.wcar-card-product {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 16px;
    margin-top: 4px;
}

.wcar-product-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.wcar-product-link:hover {
    opacity: 0.8;
}

.wcar-product-thumb {
    width: 40px;
    height: 40px;
    border-radius: calc(var(--wcar-radius, 16px) / 2);
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
}

.wcar-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wcar-product-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--wcar-text-secondary, #6b7280);
    line-height: 1.4;
    transition: color 0.2s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wcar-product-link:hover .wcar-product-title {
    color: var(--wcar-text-primary, #1a1a1a);
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.wcar-pagination {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}

.wcar-pagination ul {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.wcar-pagination li {
    margin: 0;
}

.wcar-pagination a,
.wcar-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: calc(var(--wcar-radius, 16px) / 2);
    font-size: var(--wcar-body-font-size, 14px);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.wcar-pagination a {
    background: rgba(0, 0, 0, 0.04);
    color: var(--wcar-text-primary, #374151);
}

.wcar-pagination a:hover {
    background: var(--wcar-accent, #2563eb);
    color: #fff;
    transform: translateY(-2px);
}

.wcar-pagination .current {
    background: var(--wcar-accent, #2563eb);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.wcar-pagination .dots {
    background: transparent;
    color: var(--wcar-text-secondary, #9ca3af);
}

/* ==========================================================================
   Responsive - CSS Multi-Column
   ========================================================================== */
@media (max-width: 992px) {
    .wcar-reviews-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .wcar-reviews-grid {
        column-count: 1;
    }
    
    .wcar-review-card {
        margin-bottom: 16px;
    }
    
    .wcar-card-body {
        padding: 16px;
    }
    
    .wcar-pagination {
        margin-top: 32px;
    }
    
    .wcar-pagination ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .wcar-pagination a,
    .wcar-pagination span {
        min-width: 40px;
        height: 40px;
    }
}

/* ==========================================================================
   Skeleton Loading State
   ========================================================================== */
@keyframes wcar-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.wcar-skeleton {
    animation: wcar-shimmer 1.5s ease-in-out infinite;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.06) 25%,
        rgba(0, 0, 0, 0.12) 50%,
        rgba(0, 0, 0, 0.06) 75%
    );
    background-size: 200% 100%;
    border-radius: 4px;
}

/* Skeleton Card */
.wcar-skeleton-card {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    background: var(--wcar-card-bg, rgba(255, 255, 255, 0.95));
    border-radius: var(--wcar-radius, 16px);
    box-shadow: var(--wcar-shadow, 0 4px 20px rgba(0, 0, 0, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: var(--wcar-grid-gap, 24px);
    overflow: hidden;
}

/* Skeleton Gallery */
.wcar-skeleton-gallery {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.06) 25%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.06) 75%
    );
    background-size: 200% 100%;
    animation: wcar-shimmer 1.5s ease-in-out infinite;
}

/* Skeleton Body */
.wcar-skeleton-body {
    padding: 20px;
}

/* Skeleton Header */
.wcar-skeleton-header {
    margin-bottom: 14px;
}

.wcar-skeleton-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wcar-skeleton-name {
    height: 14px;
    width: 120px;
    border-radius: 4px;
}

.wcar-skeleton-date {
    height: 10px;
    width: 80px;
    border-radius: 4px;
}

/* Skeleton Rating */
.wcar-skeleton-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}

.wcar-skeleton-star {
    width: 16px;
    height: 16px;
    border-radius: 2px;
}

/* Skeleton Content */
.wcar-skeleton-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.wcar-skeleton-line {
    height: 12px;
    border-radius: 4px;
}

.wcar-skeleton-line:nth-child(1) { width: 100%; }
.wcar-skeleton-line:nth-child(2) { width: 95%; }
.wcar-skeleton-line:nth-child(3) { width: 70%; }

/* Skeleton Product Footer */
.wcar-skeleton-product {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.wcar-skeleton-product-thumb {
    width: 40px;
    height: 40px;
    border-radius: calc(var(--wcar-radius, 16px) / 2);
    flex-shrink: 0;
}

.wcar-skeleton-product-title {
    height: 12px;
    width: 140px;
    border-radius: 4px;
}

/* Load More Button */
.wcar-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.wcar-load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--wcar-accent, #2563eb);
    color: #fff;
    font-size: var(--wcar-body-font-size, 14px);
    font-weight: 600;
    border: none;
    border-radius: calc(var(--wcar-radius, 16px) / 2);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.wcar-load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.wcar-load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.wcar-load-more-btn .wcar-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wcar-spin 0.8s linear infinite;
}

@keyframes wcar-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Skeleton Responsive */
@media (max-width: 600px) {
    .wcar-skeleton-body {
        padding: 16px;
    }
    
    .wcar-skeleton-avatar {
        width: 40px;
        height: 40px;
    }
}
