/* Product Detail Page Styles */

/* Gallery */
.gallery-main {
    aspect-ratio: 1;
    overflow: hidden;
    background-color: #f3f4f6;
    border-radius: 1rem;
    position: relative;
    cursor: zoom-in;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-thumbs {
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.gallery-thumb.active {
    border-color: #3b82f6;
    opacity: 0.8;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Review Summary */
.rating-bar-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.rating-bar-bg {
    flex: 1;
    height: 0.5rem;
    background-color: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background-color: #fbbf24;
    border-radius: 9999px;
}

/* Verified Badge */
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #059669;
    background-color: #d1fae5;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-weight: 500;
}

/* Review Filters */
.review-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Sticky Cart Bar (Mobile) */
@media (max-width: 768px) {
    .sticky-cart-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
        z-index: 50;
        display: flex;
        align-items: center;
        gap: 1rem;
    }
}

/* Features List */
.feature-item {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.feature-icon {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    color: #10b981;
    margin-top: 0.125rem;
}

/* Specification Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid #e5e7eb;
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table th {
    text-align: left;
    padding: 0.75rem 0;
    color: #4b5563;
    font-weight: 500;
    width: 40%;
}

.specs-table td {
    padding: 0.75rem 0;
    color: #111827;
}

/* Image Upload Preview */
.image-upload-preview {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.preview-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.375rem;
    border: 1px solid #d1d5db;
}

/* Review Images */
.review-images {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    overflow-x: auto;
}

.review-image-trigger {
    width: 80px;
    height: 80px;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    transition: opacity 0.2s;
}

.review-image-trigger:hover {
    opacity: 0.9;
}

.review-image-trigger img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
