/* Product image & thumbnails */
.product-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 3;
    background: #f3f4f6;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.15s ease-out;
    cursor: zoom-in;
}

.product-image-wrapper.zoom-active .product-main-img {
    cursor: zoom-out;
}

.zoom-hint {
    position: absolute;
    bottom: 8px;
    right: 10px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    pointer-events: none;
}

#thumbnails {
    max-width: 100%;
    overflow: hidden;
}

.thumbnail-img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.thumbnail-img:hover {
    transform: translateY(-2px);
}

.thumbnail-img.active-thumbnail {
    border-color: #2584f8;
}

@media (max-width: 576px) {
    .ecommerce-gallery .col-12.d-flex {
        gap: 8px;
    }

    #thumbnails {
        flex: 1;
        justify-content: center;
    }
}

/* Export docs cards */
.export-doc-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #eaeaea;
}

.export-doc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.pdf-preview {
    cursor: pointer;
}

.view-doc-btn {
    transition: all 0.2s ease;
}

.view-doc-btn:hover {
    background-color: #0d6efd;
    color: white;
}

/* Vendor profile compact block */
.vendor-profile-compact {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background-color: #f9fafb;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.vendor-profile-compact .image-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.vendor-profile-compact .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vendor-profile-compact .info-text {
    flex-grow: 1;
    min-width: 150px;
}

.vendor-profile-compact .store-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.vendor-profile-compact .store-header h4 {
    font-size: 1.2rem;
    margin: 0;
    color: #2d3748;
    font-weight: 600;
}

.vendor-profile-compact .vendor-badge-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vendor-profile-compact .vendor-badge {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.vendor-profile-compact .rating p,
.vendor-contact-details p {
    font-size: 0.9rem;
    margin: 4px 0;
    color: #4a5568;
}

.vendor-profile-compact .rating i {
    font-size: 0.9rem;
    color: #f59e0b;
}

.vendor-profile-compact .rating span {
    color: #6b7280;
    margin-left: 5px;
}

.vendor-contact-details p span {
    font-weight: 500;
    color: #374151;
    min-width: 60px;
    display: inline-block;
}

.vendor-buttons {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.vendor-profile-compact .see_btn {
    display: inline-block;
    padding: 8px 16px;
    font-size: 0.85rem;
    background-color: #2584f8;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.vendor-profile-compact .see_btn:hover {
    background-color: #2584f8;
    transform: translateY(-1px);
}

.vendor-profile-compact .chat_btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    font-size: 0.85rem;
    background-color: white;
    color: #2584f8;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
    cursor: pointer;
}

.vendor-profile-compact .chat_btn:hover {
    background-color: #f5f7ff;
    border-color: #4f46e5;
}

.vendor-description-section {
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.wsus__vendor_details {
    color: #4b5563;
    line-height: 1.6;
}

@media (max-width: 576px) {
    .vendor-profile-compact {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 15px;
    }

    .vendor-profile-compact .store-header {
        justify-content: center;
    }

    .vendor-profile-compact .info-text {
        min-width: unset;
    }

    .vendor-buttons {
        flex-direction: column;
        width: 100%;
    }

    .vendor-profile-compact .see_btn,
    .vendor-profile-compact .chat_btn {
        width: 100%;
        justify-content: center;
    }
}

/* Report links */
.report-review-link,
.report-login-link {
    color: #000 !important;
    text-decoration: none !important;
    font-size: 0.875rem;
    margin-left: 8px;
    transition: color 0.2s ease;
    padding: 2px 4px;
    border-radius: 3px;
    background-color: transparent !important;
}

.report-review-link:hover,
.report-login-link:hover {
    color: #0363ae !important;
    background-color: transparent !important;
}
