/* Product Preview Modal */
.preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.60);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    /* her zaman flex — görünmezliği opacity ile yap */
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.preview-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.preview-modal {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 1000px;
    max-height: 88vh;
    overflow: hidden;
    box-shadow: 0 32px 96px rgba(0, 0, 0, 0.30);
    position: relative;
    display: flex;
    flex-direction: column;
    /* Transform animasyonu — overlay opacity'siyle senkronize */
    transform: translateY(24px) scale(0.97);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.preview-overlay.active .preview-modal {
    transform: translateY(0) scale(1);
}

/* Kapat animasyonu için de tanımla */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.preview-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.preview-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    overflow: hidden;
    margin-right: 16px;
}

.preview-modal-title h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-modal-title .author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.preview-modal-title .author-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 3px rgba(102, 102, 234, 0.25);
}

.preview-modal-title span {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s;
}

.preview-modal-title span:hover {
    color: #10b981;
}

/* Header Actions Buttons */
.btn-like-header,
.close-preview {
    width: 36px;
    height: 36px;
    border: none;
    background: #f3f4f6;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 16px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-like-header:hover,
.close-preview:hover {
    background: #e5e7eb;
    color: #111827;
}

.btn-like-header.active,
.btn-like-header.liked {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fca5a5;
}

.btn-like-header.active:hover,
.btn-like-header.liked:hover {
    background: #fecaca;
    color: #dc2626;
}

.btn-like-header.liked i {
    animation: heartPop 0.3s ease;
}

@keyframes heartPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.35);
    }

    100% {
        transform: scale(1);
    }
}

.preview-content {
    display: grid;
    grid-template-columns: 1fr 480px;
    flex: 1;
    overflow: hidden;
}

.preview-left-section {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
    position: relative;
    overflow: hidden;
}

.preview-left-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../../images/arkaplan/lazer-desen-arka-plan.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.preview-left-section>* {
    position: relative;
    z-index: 1;
}

.preview-gallery {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.gallery-main {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f3f4f6;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

/* ── Ön izleme resim skeleton ── */
.gallery-main.pm-img-wrap {
    background: #f3f4f6;
}

/* Tüm componentlerle ortak modern shimmer efekti */
.gallery-main.pm-img-wrap.pm-img-loading {
    background: #f3f4f6;
    background-image: linear-gradient(110deg, #f3f4f6 8%, #e5e7eb 18%, #f3f4f6 33%);
    background-size: 200% 100%;
    animation: shine-loader 1.5s linear infinite;
}

body.dark-theme .gallery-main.pm-img-wrap {
    background: #1e1e2d;
}

body.dark-theme .gallery-main.pm-img-wrap.pm-img-loading {
    background: #1e1e2d;
    background-image: linear-gradient(110deg, #1e1e2d 8%, #2a2a3c 18%, #1e1e2d 33%);
    background-size: 200% 100%;
    animation: shine-loader 1.5s linear infinite;
}

/* Tek Keyframes Tüm Uygulama İçin */
@keyframes shine-loader {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Resim yüklenene kadar görünmez, yüklenince fade-in */
.gallery-main .pm-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.gallery-main.pm-img-loading .pm-img {
    opacity: 0;
}


.gallery-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 12px;
    pointer-events: none;
}

.gallery-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    font-size: 14px;
    transition: all 0.2s;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-btn:hover {
    background: #10b981;
    color: #fff;
    transform: scale(1.1);
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 16px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
}

.gallery-thumbs::-webkit-scrollbar {
    height: 4px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.gallery-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    flex-shrink: 0;
}

.gallery-thumb:hover {
    border-color: #10b981;
}

.gallery-thumb.active {
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.preview-description {
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 20px;
}

.preview-description p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
}

.preview-description .description-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

.preview-description .description-text.expanded {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    display: block;
}

.btn-read-more {
    background: none;
    border: none;
    color: #10b981;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0 0 0;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-read-more:hover {
    color: #059669;
}

.btn-read-more i {
    transition: transform 0.3s;
}

.btn-read-more.expanded i {
    transform: rotate(180deg);
}

/* Modern Preview Info Panel */
.preview-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

/* Fiyat ve Satış Üst Bölümü */
.preview-price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.price-display {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-display .current-price {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.5px;
}

.price-display .old-price {
    font-size: 14px;
    color: #9ca3af;
    text-decoration: line-through;
}

.sales-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(247, 147, 30, 0.3);
}

.sales-badge i {
    font-size: 10px;
}

/* Açıklama Kutusu */
.preview-desc-box {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
}

.preview-desc-box .description-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: #4b5563;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.preview-desc-box .description-text.expanded {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    display: block;
}

.preview-desc-box .btn-read-more {
    background: none;
    border: none;
    color: #6366f1;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0 0 0;
    display: none;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.preview-desc-box .btn-read-more:hover {
    color: #4f46e5;
}

/* İstatistikler Satırı */
.preview-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 0;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
}

.stat-item i {
    font-size: 12px;
    color: #9ca3af;
}

.stat-item span {
    color: #374151;
    font-weight: 600;
}

.stat-divider {
    width: 1px;
    height: 16px;
    background: #e5e7eb;
}

/* Meta Bilgiler Satırı */
.preview-meta-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Kategori Link */
.category-link {
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
}

.category-link:hover {
    color: #6366f1;
    text-decoration: underline;
}

.stat-category {
    cursor: pointer;
}

.stat-category:hover {
    color: #6366f1;
}

.stat-category:hover i {
    color: #6366f1;
}

.preview-meta-row .meta-label {
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.meta-badges span {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    color: #4f46e5;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.meta-tags span,
.meta-tags .keyword-tag {
    background: #f3f4f6;
    color: #6b7280;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.meta-tags span:hover,
.meta-tags .keyword-tag:hover {
    background: #e5e7eb;
    color: #374151;
}

/* Aksiyon Butonları */
.preview-actions-fixed {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.btn-action-primary {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-action-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-action-secondary {
    height: 48px;
    /* Fixed height for alignment */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0 20px;
    /* Add horizontal padding */
    gap: 8px;
    /* Gap between icon and text */
    min-width: 100px;
}

.btn-action-secondary:hover {
    border-color: #6366f1;
    color: #6366f1;
    background: #eef2ff;
}

/* Paylaşım Alanı */
.preview-share {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
}

.preview-share>span {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
}

.share-buttons {
    display: flex;
    gap: 8px;
}

.share-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    color: #6b7280;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.share-btn:hover {
    background: #e5e7eb;
    color: #374151;
    transform: translateY(-2px);
}

.preview-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e5e7eb;
}

.author-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.author-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.author-info p {
    color: #6b7280;
    font-size: 13px;
}

.preview-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
}

.btn-preview-action {
    padding: 14px 20px;
    border: 2px solid #e5e7eb;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    color: #374151;
}

.btn-preview-action:hover {
    border-color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.btn-preview-action.primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border-color: #10b981;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.btn-preview-action.primary:hover {
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

@media (max-width: 1024px) {
    .preview-modal {
        width: 95%;
        max-width: 900px;
    }

    .preview-content {
        grid-template-columns: 1fr;
    }

    .preview-left-section {
        padding: 24px;
        max-height: 50vh;
    }

    .preview-image {
        min-height: 250px;
    }

    .preview-image img {
        max-height: 400px;
    }

    .preview-info {
        padding: 24px;
        max-height: 50vh;
    }

    /* Missing lines from previous snippet added in media query */
    .preview-info h2 {
        font-size: 18px !important;
    }

    .author-avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .author-info h3 {
        font-size: 14px !important;
    }

    .close-preview {
        width: 36px;
        height: 36px;
        top: 12px;
        right: 12px;
        font-size: 16px;
        position: fixed;
    }

    .preview-actions {
        gap: 8px;
        position: sticky;
        bottom: 0;
        background: #fafafa;
        padding: 16px 0;
        margin: 0 -16px;
        padding-left: 16px;
        padding-right: 16px;
        border-top: 1px solid #e5e7eb;
    }

    .btn-preview-action {
        padding: 12px 16px;
        font-size: 13px;
    }

    .preview-meta-list {
        gap: 12px;
        padding: 16px 0;
    }

    .meta-row {
        flex-wrap: wrap;
    }

    .meta-row .meta-label {
        font-size: 10px;
    }

    .meta-row .meta-value {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .preview-modal {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .preview-content {
        grid-template-columns: 1fr;
        max-height: 100vh;
        overflow-y: auto;
    }

    .preview-left-section {
        padding: 16px;
        max-height: none;
        overflow-y: visible;
    }

    .preview-image {
        min-height: 200px;
        padding: 12px;
    }

    .preview-image img {
        max-height: 300px;
    }

    .preview-thumbnails {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    .preview-thumb {
        height: 50px;
    }

    .preview-info {
        padding: 16px;
        max-height: none;
        overflow-y: visible;
    }
}

/* New Product Info Section Styles (Matching Product Detail Page) */
.product-info-section {
    margin-bottom: 20px;
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.info-item {
    padding: 0;
}

.info-label {
    font-size: 10px;
    font-weight: 700;
    color: #9ca3af;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-label i {
    font-size: 10px;
    color: #10b981;
}

.category-badge,
a.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #ecfdf5;
    color: #059669;
    padding: 7px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
    width: fit-content;
}

.category-badge:hover,
a.category-badge:hover {
    background: #10b981;
    color: #fff;
}

.format-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.format-badge,
.meta-badges span {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag,
.meta-tags span,
.meta-tags .keyword-tag {
    background: #f3f4f6;
    color: #6b7280;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
}

.tag:hover,
.meta-tags span:hover,
.meta-tags .keyword-tag:hover {
    background: #e5e7eb;
    color: #374151;
}

/* =============================================
   PREMIUM PREVIEW MODAL v2 - Clean & Bold
   ============================================= */

/* Header text */
.pm-header-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.pm-header-text h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pm-header-text span {
    font-size: 12px;
    color: #9ca3af;
}

/* ── Price block ── */
.pm-price-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
}

.pm-mini-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #0f172a;
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 30px;
    padding: 7px 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.pm-mini-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #e2e8f0;
    white-space: nowrap;
    letter-spacing: 0.1px;
}

.pm-mini-stat i {
    font-size: 11px;
    color: #10b981;
}

.pm-mini-sep {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.12);
}


/* ── Info grid (category, üretim türü) ── */
.pm-info-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.pm-info-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
    transition: background 0.15s;
}

.pm-info-row:last-child {
    border-bottom: none;
}

.pm-info-row:hover {
    background: #fafbfc;
}

.pm-info-key {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 110px;
    flex-shrink: 0;
}

.pm-info-key i {
    color: #10b981;
    font-size: 11px;
}

.pm-info-val {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

/* Tag pills */
.pm-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.18s;
    border: 1px solid transparent;
}

.pm-tag-green {
    background: #ecfdf5;
    color: #059669;
    border-color: #a7f3d0;
}

.pm-tag-green:hover {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
}

.pm-tag-slate {
    background: #f1f5f9;
    color: #334155;
    border-color: #e2e8f0;
}

/* ── Uyumluluk row (right panel) ── */
.pm-compat-row {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.04) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-bottom: 1px solid rgba(16, 185, 129, 0.12) !important;
}

.pm-compat-chips {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.pm-compat-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    background: #0f172a;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #e2e8f0;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.pm-compat-chip i {
    font-size: 10px;
    color: #10b981;
}


/* ── Uyumluluk fixed banner ── */
.pm-compat-banner {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: linear-gradient(135deg, #0f172a 0%, #1a2744 100%);
    border-radius: 14px;
    padding: 14px 16px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.pm-compat-banner::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.pm-compat-banner::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.pm-compat-top {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.pm-compat-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pm-compat-icon i {
    color: #10b981;
    font-size: 13px;
}

.pm-compat-title {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    flex: 1;
}

.pm-compat-check {
    margin-left: auto;
}

.pm-compat-check i {
    color: #10b981;
    font-size: 16px;
    filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.6));
}

/* Machine chip row */
.pm-compat-machines {
    display: flex;
    gap: 7px;
    position: relative;
    z-index: 1;
}

.pm-machine-chip {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 4px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: 0.2px;
    transition: all 0.2s;
    cursor: default;
    white-space: nowrap;
}

.pm-machine-chip i {
    font-size: 11px;
    color: #10b981;
}

.pm-machine-chip:hover {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.4);
    color: #10b981;
}

/* ── Formatlar box ── */
.pm-formats-box {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 13px 16px;
    backdrop-filter: blur(10px);
    text-align: center;
}

.pm-formats-label {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.pm-formats-label i {
    color: #10b981;
}

/* ── Formatlar as info row (right panel) ── */
.pm-formats-row {
    align-items: flex-start;
    flex-wrap: wrap;
}

.pm-formats-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Compact badge override inside info panel */
.pm-formats-inline .format-badge {
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 7px;
}



/* Price + Stats row */
.pm-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.pm-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 6px 12px;
}

.pm-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.pm-stat i {
    font-size: 11px;
    color: #94a3b8;
}

.pm-stat-div {
    width: 1px;
    height: 14px;
    background: #e2e8f0;
}

/* Meta chip rows */
.pm-meta-chips {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.pm-chip-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pm-chip-label {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 100px;
    flex-shrink: 0;
}

.pm-chip-label i {
    font-size: 10px;
    color: #10b981;
}

.pm-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.pm-chip-green {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.pm-chip-green:hover {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
}

.pm-chip-slate {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

/* Formatlar box - left side */
.pm-formats-box {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 14px 16px;
    backdrop-filter: blur(8px);
    text-align: center;
}

.pm-formats-label {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.pm-formats-label i {
    color: #10b981;
}

.pm-formats-list {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ========================================
   DARK THEME — PREVIEW MODAL
======================================== */

body.dark-theme .preview-modal {
    background: #252525;
}

body.dark-theme .preview-modal-header {
    background: #1a1a1a;
    border-color: #2a2a2a;
}

body.dark-theme .preview-modal-title h3 {
    color: #f9fafb;
}

body.dark-theme .preview-modal-title span {
    color: #9ca3af;
}

body.dark-theme .btn-like-header,
body.dark-theme .close-preview {
    background: #2a2a2a;
    color: #9ca3af;
}

body.dark-theme .btn-like-header:hover,
body.dark-theme .btn-like-header.liked,
body.dark-theme .btn-like-header.active {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

body.dark-theme .close-preview:hover {
    background: #374151;
    color: #f9fafb;
}

/* Sol galeri */
body.dark-theme .preview-left-section {
    background: #1a1a1a !important;
}

body.dark-theme .gallery-main {
    background: #252525 !important;
}

body.dark-theme .gallery-btn {
    background: rgba(37, 37, 37, 0.95);
    color: #f9fafb;
}

body.dark-theme .gallery-thumb {
    border-color: transparent;
}

body.dark-theme .gallery-thumb.active {
    border-color: #10b981;
}

body.dark-theme .gallery-thumbs::-webkit-scrollbar-thumb {
    background: #374151;
}

/* Sag bilgi paneli */
body.dark-theme .preview-info {
    background: #252525 !important;
}

body.dark-theme .preview-price-section {
    border-color: #2a2a2a;
}

body.dark-theme .old-price {
    color: #6b7280;
}

body.dark-theme .price-display .current-price {
    color: #f9fafb;
}

body.dark-theme .preview-desc-box {
    background: #1a1a1a;
    border-color: #2a2a2a;
}

body.dark-theme .preview-desc-box .description-text {
    color: #9ca3af;
}

body.dark-theme .preview-description {
    background: #1a1a1a;
}

body.dark-theme .preview-description p {
    color: #9ca3af;
}

body.dark-theme .preview-stats {
    background: #1a1a1a;
    border-color: #2a2a2a;
}

body.dark-theme .stat-item {
    color: #9ca3af;
}

body.dark-theme .stat-item i {
    color: #6b7280;
}

body.dark-theme .stat-item span {
    color: #d1d5db;
}

body.dark-theme .stat-divider {
    background: #374151;
}

body.dark-theme .description-text {
    color: #9ca3af;
}

body.dark-theme .preview-share>span {
    color: #6b7280;
}

body.dark-theme .sales-badge {
    background: #1f2937;
    color: #f59e0b;
}

body.dark-theme .preview-meta-row .meta-label {
    color: #6b7280;
}

body.dark-theme .meta-tags span,
body.dark-theme .meta-tags .keyword-tag {
    background: #374151;
    color: #d1d5db;
}

body.dark-theme .meta-tags span:hover,
body.dark-theme .meta-tags .keyword-tag:hover {
    background: #10b981;
    color: #fff;
}

body.dark-theme .meta-badges span {
    background: #1e3a5f;
    color: #93c5fd;
}

body.dark-theme .preview-actions-fixed {
    border-color: #2a2a2a;
    background: #252525;
}

body.dark-theme .preview-header {
    border-bottom-color: #2a2a2a;
}

body.dark-theme .btn-action-secondary {
    background: #2a2a2a;
    border-color: #374151;
    color: #9ca3af;
}

body.dark-theme .btn-action-secondary:hover {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}

body.dark-theme .btn-preview-action {
    background: #2a2a2a;
    border-color: #374151;
    color: #d1d5db;
}

body.dark-theme .btn-preview-action:hover {
    border-color: #10b981;
    background: #1f2937;
    color: #10b981;
}

body.dark-theme .share-btn {
    background: #2a2a2a;
    color: #9ca3af;
}

body.dark-theme .share-btn:hover {
    background: #10b981;
    color: #fff;
}

body.dark-theme .author-info h3 {
    color: #f9fafb;
}

body.dark-theme .author-info p {
    color: #9ca3af;
}

body.dark-theme .category-link {
    color: #93c5fd;
}

body.dark-theme .category-link:hover {
    color: #10b981;
}

/* PM bilesenleri */
body.dark-theme .pm-info-row {
    border-bottom-color: #2a2a2a;
}

body.dark-theme .pm-info-label {
    color: #6b7280;
}

body.dark-theme .pm-info-val {
    color: #f9fafb;
}

body.dark-theme .pm-mini-stats {
    background: #1a1a1a;
    border-color: #2a2a2a;
}

body.dark-theme .pm-mini-stat-val {
    color: #f9fafb;
}

body.dark-theme .pm-mini-stat-lbl {
    color: #9ca3af;
}

body.dark-theme .pm-compat-banner {
    background: #1f2937;
    border-color: #2a2a2a;
    color: #9ca3af;
}

body.dark-theme .pm-tag {
    background: #374151;
    color: #d1d5db;
}

body.dark-theme .pm-tag-green {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

body.dark-theme .pm-chip-green {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

body.dark-theme .pm-chip-slate {
    background: #2a2a2a;
    color: #9ca3af;
    border-color: #374151;
}

body.dark-theme .pm-formats-box {
    background: rgba(30, 30, 30, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .pm-formats-label {
    color: #9ca3af;
}

body.dark-theme .preview-actions {
    background: #252525;
    border-top-color: #2a2a2a;
}

body.dark-theme .like-count-badge {
    background: #ef4444;
}

/* Mobil geçersiz kilmalar */
body.dark-theme .preview-actions-fixed {
    background: #252525 !important;
    border-color: #2a2a2a !important;
}

/* pm-info-grid dark tema */
body.dark-theme .pm-info-grid {
    border-color: #2a2a2a;
}

body.dark-theme .pm-info-row {
    background: #1a1a1a;
    border-bottom-color: #2a2a2a;
}

body.dark-theme .pm-info-row:hover {
    background: #252525;
}

body.dark-theme .pm-info-key {
    color: #6b7280;
}

body.dark-theme .pm-info-val {
    color: #f9fafb;
}

/* ===== MODERN PREMIUM SKELETON ===== */
.pm-skeleton.modern-skeleton {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 2;
    background: #f3f4f6;
    background-image: linear-gradient(110deg, #f3f4f6 8%, #e5e7eb 18%, #f3f4f6 33%);
    background-size: 200% 100%;
    animation: shine-loader 1.5s linear infinite;
}

body.dark-theme .pm-skeleton.modern-skeleton {
    background: #1e1e2d;
    background-image: linear-gradient(110deg, #1e1e2d 8%, #2a2a3c 18%, #1e1e2d 33%);
}

body.dark-theme .preview-desc-box {
    background: #1e1e1e;
    border-color: #333;
}

/* ===== TEXT & INFO SKELETON (FULL MODAL) ===== */
/* Yükleme bitene kadar modal etkileşime kapalıdır */
.pm-skeleton-active {
    pointer-events: none !important;
}

/* Küçük ve UI bozacak elementleri yükleme ekranında direkt saklıyoruz */
.pm-skeleton-active .gallery-nav,
.pm-skeleton-active .preview-header-actions,
.pm-skeleton-active .premium-badge {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Profesyonel Blok Skeleton Hedefleri */
.pm-skeleton-active #previewHeaderTitle,
.pm-skeleton-active #previewHeaderAuthor,
.pm-skeleton-active #previewHeaderAvatar,
.pm-skeleton-active .pm-price-block,
.pm-skeleton-active .preview-desc-box,
.pm-skeleton-active .pm-info-grid,
.pm-skeleton-active .gallery-thumbs,
.pm-skeleton-active #previewAddCart,
.pm-skeleton-active #previewDetailsBtn {
    position: relative !important;
    overflow: hidden !important;
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    color: transparent !important;
}

/* Contenti Gizle ki İkonlar vs Patlamasın (Footprint'i korunur) */
.pm-skeleton-active #previewHeaderTitle *,
.pm-skeleton-active #previewHeaderAuthor *,
.pm-skeleton-active #previewHeaderAvatar *,
.pm-skeleton-active .pm-price-block *,
.pm-skeleton-active .preview-desc-box *,
.pm-skeleton-active .pm-info-grid *,
.pm-skeleton-active .gallery-thumbs *,
.pm-skeleton-active #previewAddCart *,
.pm-skeleton-active #previewDetailsBtn * {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Skeleton animasyonunu bu blokların üzerine bindir */
.pm-skeleton-active #previewHeaderTitle::after,
.pm-skeleton-active #previewHeaderAuthor::after,
.pm-skeleton-active #previewHeaderAvatar::after,
.pm-skeleton-active .pm-price-block::after,
.pm-skeleton-active .preview-desc-box::after,
.pm-skeleton-active .pm-info-grid::after,
.pm-skeleton-active .gallery-thumbs::after,
.pm-skeleton-active #previewAddCart::after,
.pm-skeleton-active #previewDetailsBtn::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 100;
    border-radius: 8px;
    /* Standart yumuşak köşe */
    background: #f3f4f6;
    background-image: linear-gradient(110deg, #f3f4f6 8%, #e5e7eb 18%, #f3f4f6 33%);
    background-size: 200% 100%;
    animation: shine-loader 1.5s linear infinite;
}

/* Bazı spesifik border-radius düzeltmeleri */
.pm-skeleton-active #previewHeaderAvatar::after {
    border-radius: 50%;
}

.pm-skeleton-active .pm-info-grid::after,
.pm-skeleton-active .preview-desc-box::after,
.pm-skeleton-active .pm-price-block::after {
    border-radius: 12px;
}

.pm-skeleton-active #previewAddCart::after,
.pm-skeleton-active #previewDetailsBtn::after {
    border-radius: 10px;
}

.pm-skeleton-active #previewHeaderTitle::after {
    border-radius: 6px;
}

.pm-skeleton-active #previewHeaderAuthor::after {
    border-radius: 4px;
}

/* Min-height / width (eğer içi boşken shrink oluyorsa) */
.pm-skeleton-active #previewHeaderTitle {
    min-width: 200px;
    min-height: 24px;
}

.pm-skeleton-active #previewHeaderAuthor {
    min-width: 120px;
    min-height: 18px;
}

.pm-skeleton-active .pm-price-block {
    min-height: 50px;
}

.pm-skeleton-active .gallery-thumbs {
    min-height: 60px;
    margin: 16px;
    border: none;
}

/* Dark Mod: Skeleton Degradesi Güncellemesi */
body.dark-theme .pm-skeleton-active #previewHeaderTitle::after,
body.dark-theme .pm-skeleton-active #previewHeaderAuthor::after,
body.dark-theme .pm-skeleton-active #previewHeaderAvatar::after,
body.dark-theme .pm-skeleton-active .pm-price-block::after,
body.dark-theme .pm-skeleton-active .preview-desc-box::after,
body.dark-theme .pm-skeleton-active .pm-info-grid::after,
body.dark-theme .pm-skeleton-active .gallery-thumbs::after,
body.dark-theme .pm-skeleton-active #previewAddCart::after,
body.dark-theme .pm-skeleton-active #previewDetailsBtn::after {
    background: #1e1e2d;
    background-image: linear-gradient(110deg, #1e1e2d 8%, #2a2a3c 18%, #1e1e2d 33%);
    background-size: 200% 100%;
    animation: shine-loader 1.5s linear infinite;
}