/* ======== MODERN PAZAR YERİ KARE KARTLARI ======== */
.marketplace-products .modern-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.marketplace-products .modern-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
    border-color: #3D5AFE;
}
/* Ürün Resim Alanı - Kare */
.marketplace-products .product-image-wrapper {
    position: relative;
    padding-bottom: 100%;
    overflow: hidden;
    display: block;
}
.marketplace-products .product-image-wrapper .img-link {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
}
.marketplace-products .product-image-wrapper a img {
    object-fit: cover;
}
.marketplace-products .product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.marketplace-products .modern-product-card:hover .product-image {
    transform: scale(1.05);
}
/* Resim Üstündeki Bilgi Alanı (Hesap.com.tr tarzı) */
.marketplace-products .info {
    background: rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
}
.marketplace-products .info .store {
    width: 40px;
    min-width: 40px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-white-2);
    border: 1px solid var(--border);
    position: relative;
    top: -5px;
}
.marketplace-products .info .store .store-name {
    display: none;
}
.marketplace-products .info .store:hover {
    color: #3D5AFE;
}
.marketplace-products .info .store-name {
    margin-left: 6px;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.marketplace-products .info .icon {
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
    overflow: hidden;
    min-width: 40px;
    background-color: var(--bg-white-2);
    border: 1px solid var(--border);
    position: relative;
    top: -5px;
}
/* İndirim Badge */
.marketplace-products .discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}
/* Teslimat Badge */
.marketplace-products .auto-delivery-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.marketplace-products .auto-delivery-badge.admin {
    background: linear-gradient(135deg, #4caf50, #45a049);
}
.marketplace-products .auto-delivery-badge.user {
    background: linear-gradient(135deg, #2196f3, #1976d2);
}
.marketplace-products .auto-delivery-badge i {
    font-size: 10px;
}
/* Özel Ürün Badge'leri */
.marketplace-products .product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    z-index: 10;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.marketplace-products .badge-sale {
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
}
.marketplace-products .badge-hot {
    background: linear-gradient(135deg, #ff9800, #f57c00);
}
.marketplace-products .badge-new {
    background: linear-gradient(135deg, #4caf50, #45a049);
}
/* İndirim Badge ve Özel Badge çakışmasını önle */
.marketplace-products .modern-product-card .discount-badge + .product-badge {
    top: 40px;
}
.marketplace-products .modern-product-card .product-badge + .auto-delivery-badge {
    right: 8px;
    top: 40px;
}
/* Ürün İçerik Alanı */
.marketplace-products .product-content {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.marketplace-products .product-name {
    color: #1f2937;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 34px;
    transition: color 0.3s ease;
}
.marketplace-products .product-name:hover {
    color: #3D5AFE;
}
/* Kategori Bilgisi - YENİ */
.marketplace-products .product-category {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    gap: 6px;
}
.marketplace-products .product-category-link {
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #6b7280;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(107, 114, 128, 0.05);
}
.marketplace-products .product-category-link:hover {
    color: #3D5AFE;
    background: rgba(61, 90, 254, 0.1);
    transform: translateX(2px);
}
.marketplace-products .product-category-icon {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
}
.marketplace-products .product-category-name {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* Fiyat Alanı - Pembe Kutucuk */
.marketplace-products .price-box {
    margin-bottom: 8px;
}
.marketplace-products .price-wrapper {
    background: linear-gradient(135deg, #E30C4E, #E30C4E);
    color: white;
    padding: 8px 12px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
    position: relative;
    overflow: hidden;
}
.marketplace-products .price-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}
.marketplace-products .modern-product-card:hover .price-wrapper::before {
    left: 100%;
}
.marketplace-products .price-new {
    font-weight: 700;
    font-size: 14px;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.marketplace-products .price-old {
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    text-decoration: line-through;
    margin-right: 6px;
    font-weight: 500;
}

/* Satıcı Bilgisi - Tıklanabilir */
.marketplace-products .seller-info {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #f3f4f6;
}
.marketplace-products .seller-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #6b7280;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
    padding: 4px 6px;
    border-radius: 6px;
    background: rgba(107, 114, 128, 0.02);
}
.marketplace-products .seller-link:hover {
    color: #3D5AFE;
    background: rgba(61, 90, 254, 0.05);
    transform: translateX(2px);
}
.marketplace-products .seller-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
    transition: border-color 0.3s ease;
}
.marketplace-products .seller-link:hover .seller-avatar {
    border-color: #3D5AFE;
}
.marketplace-products .seller-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}
/* Grid sistem ayarları - daha küçük kartlar için */
.marketplace-products .row-products .col-6,
.marketplace-products .row-products .col-sm-4,
.marketplace-products .row-products .col-md-3,
.marketplace-products .row-products .col-lg-3,
.marketplace-products .row-products .col-xl-2 {
    margin-bottom: 20px;
}
/* Responsive Ayarlar */
@media (max-width: 576px) {
    .marketplace-products .product-name {
        font-size: 12px;
        height: 30px;
    }
    .marketplace-products .product-category-link {
        font-size: 10px;
    }
    .marketplace-products .price-wrapper {
        padding: 6px 10px;
    }
    .marketplace-products .price-new {
        font-size: 13px;
    }
}
@media (max-width: 768px) {
    .marketplace-products .product-content {
        padding: 10px;
    }
}
/* Dark Tema */
html[data-theme="dark"] .marketplace-products .modern-product-card {
    background: #28282A;
    border-color: #404040;
    color: #fff;
}
html[data-theme="dark"] .marketplace-products .product-name {
    color: #fff;
}
html[data-theme="dark"] .marketplace-products .product-category-link {
    color: #9ca3af;
    background: rgba(156, 163, 175, 0.1);
}
html[data-theme="dark"] .marketplace-products .product-category-link:hover {
    color: #3D5AFE;
    background: rgba(61, 90, 254, 0.2);
}
html[data-theme="dark"] .marketplace-products .product-category-icon {
    border-color: #404040;
}
html[data-theme="dark"] .marketplace-products .seller-link {
    color: #9ca3af;
    background: rgba(156, 163, 175, 0.05);
}
html[data-theme="dark"] .marketplace-products .seller-link:hover {
    color: #3D5AFE;
    background: rgba(61, 90, 254, 0.1);
}
html[data-theme="dark"] .marketplace-products .seller-info {
    border-top-color: #404040;
}
html[data-theme="dark"] .marketplace-products .seller-avatar {
    border-color: #404040;
}
html[data-theme="dark"] .marketplace-products .seller-link:hover .seller-avatar {
    border-color: #3D5AFE;
}
/* Animasyonlar */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.marketplace-products .modern-product-card {
    animation: slideIn 0.3s ease-out;
}
/* Hover Glow Efekti */
.marketplace-products .modern-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(45deg, transparent, rgba(61, 90, 254, 0.1), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: exclude;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.marketplace-products .modern-product-card:hover::before {
    opacity: 1;
}
/* Loading State */
.marketplace-products .modern-product-card.loading {
    opacity: 0.7;
    pointer-events: none;
}
.marketplace-products .modern-product-card.loading .product-image {
    filter: blur(1px);
}
/* Focus States - Accessibility */
.marketplace-products .product-name:focus,
.marketplace-products .product-category-link:focus,
.marketplace-products .seller-link:focus {
    outline: 2px solid #3D5AFE;
    outline-offset: 2px;
    border-radius: 4px;
}


/* ======== ADMIN ÜRÜNLER - YATAY KARTLAR ======== */
.admin-products-section {
    margin-bottom: 1.5rem !important;
    padding: 0 !important;
    position: relative !important;
    overflow: visible !important;
}

.admin-products-title {
    color: var(--text-color, #333333) !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 2px solid var(--border, #e0e0e0) !important;
    position: relative !important;
    white-space: normal !important;
    overflow: visible !important;
    display: block !important;
    line-height: 1.4 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.admin-products-title::before {
    content: "" !important;
    position: absolute !important;
    bottom: -2px !important;
    left: 0 !important;
    width: 50px !important;
    height: 2px !important;
    background: var(--bs-blue, #3D5AFE) !important;
}

/* Yatay kart düzeltmeleri - Flex Layout kullanarak */
.admin-products-section .fp-product-horizontal {
    background-color: var(--bg-white, #ffffff) !important;
    border: 1px solid var(--border, #e0e0e0) !important;
    padding: 15px !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 8px !important;
    margin-bottom: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    position: relative !important;
    overflow: visible !important;
}

html[data-theme="dark"] .admin-products-section .fp-product-horizontal {
    background: var(--bg-white, #2d2d2d) !important;
    border-color: var(--border, #3d3d3d) !important;
}

.admin-products-section .fp-product-horizontal:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-2px) !important;
}

html[data-theme="dark"] .admin-products-section .fp-product-horizontal:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
}

/* Sol içerik alanı */
.admin-products-section .fp-product-horizontal .left {
    display: flex !important;
    align-items: flex-start !important;
    width: 100% !important;
    margin-bottom: 10px !important;
    overflow: visible !important;
}

.admin-products-section .fp-product-horizontal .img {
    width: 170px !important;
    height: 170px !important;
    min-width: 70px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    margin-right: 12px !important;
    flex-shrink: 0 !important;
}

.admin-products-section .fp-product-horizontal .img-product {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}

.admin-products-section .fp-product-horizontal:hover .img-product {
    transform: scale(1.05) !important;
}

/* İçerik alanı */
.admin-products-section .fp-product-horizontal .content {
    flex: 1 !important;
    min-width: 0 !important;
    overflow: visible !important;
    padding-left: 0 !important;
    width: auto !important;
    height: auto !important;
}

/* Ürün adı - önemli düzeltmeler */
.admin-products-section .fp-product-horizontal .product-name,
.admin-products-section .fp-product-horizontal .content .product-name {
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin-bottom: 6px !important;
    color: var(--text-color, #333333) !important;
    text-decoration: none !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: initial !important;
    word-break: break-word !important;
    position: relative !important;
    box-sizing: border-box !important;
}

html[data-theme="dark"] .admin-products-section .fp-product-horizontal .product-name,
html[data-theme="dark"] .admin-products-section .fp-product-horizontal .content .product-name {
    color: var(--text-color, #ffffff) !important;
}

.admin-products-section .fp-product-horizontal .product-name:hover,
.admin-products-section .fp-product-horizontal .content .product-name:hover {
    color: var(--bs-blue, #3D5AFE) !important;
}

.admin-products-section .fp-product-horizontal .text {
    color: var(--text-secondary, #666666) !important;
    font-size: 13px !important;
    display: block !important;
    margin-bottom: 0 !important;
    line-height: 1.4 !important;
}

html[data-theme="dark"] .admin-products-section .fp-product-horizontal .text {
    color: var(--text-secondary, #a0a0a0) !important;
}

/* Alt bölüm yapısı */
.admin-products-section .fp-product-horizontal .bottom-section {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    width: 100% !important;
    align-items: center !important;
}

/* Fiyat alanı */
.admin-products-section .fp-product-horizontal .price {
    flex: 1 !important;
    margin-right: 15px !important;
    text-align: left !important;
}

.admin-products-section .fp-product-horizontal .price-new {
    color: var(--bs-success, #28a745) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    display: inline-block !important;
    white-space: nowrap !important;
}

.admin-products-section .fp-product-horizontal .price-old {
    color: var(--bs-danger, #dc3545) !important;
    font-size: 0.8rem !important;
    text-decoration: line-through !important;
    display: inline-block !important;
    white-space: nowrap !important;
    margin-right: 5px !important;
}

/* Aksiyon alanı */
.admin-products-section .fp-product-horizontal .right {
    display: flex !important;
    gap: 10px !important;
    flex: 2 !important;
}

/* Miktar seçici */
.admin-products-section .fp-quantity {
    display: flex !important;
    align-items: center !important;
    border: 1px solid var(--border, #e0e0e0) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: var(--bg-white, #ffffff) !important;
    height: 36px !important;
    width: 120px !important;
}

html[data-theme="dark"] .admin-products-section .fp-quantity {
    border-color: var(--border, #3d3d3d) !important;
    background: var(--bg-white, #2d2d2d) !important;
}

.admin-products-section .fp-quantity-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 36px !important;
    background: var(--bg-white-2, #f5f5f5) !important;
    color: var(--text-color, #333333) !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 1rem !important;
    flex-shrink: 0 !important;
}

html[data-theme="dark"] .admin-products-section .fp-quantity-btn {
    background: var(--bg-white-2, #3d3d3d) !important;
    color: var(--text-color, #ffffff) !important;
}

.admin-products-section .fp-quantity-btn:hover {
    background: var(--bs-blue, #3D5AFE) !important;
    color: white !important;
}

.admin-products-section .fp-quantity input {
    border: none !important;
    outline: none !important;
    text-align: center !important;
    width: 40px !important;
    height: 36px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    color: var(--text-color, #333333) !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 0 !important;
}

html[data-theme="dark"] .admin-products-section .fp-quantity input {
    color: var(--text-color, #ffffff) !important;
}

.admin-products-section .fp-product-horizontal .btn {
    padding: 8px 12px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    border: none !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    flex: 1 !important;
}

.admin-products-section .fp-product-horizontal .btn-primary {
    background: var(--bs-blue, #3D5AFE) !important;
    color: white !important;
}

.admin-products-section .fp-product-horizontal .btn-primary:hover {
    opacity: 0.9 !important;
    color: white !important;
    text-decoration: none !important;
}

.admin-products-section .fp-product-horizontal .btn-warning {
    background: var(--bs-warning, #ffc107) !important;
    color: #212529 !important;
}

.admin-products-section .fp-product-horizontal .btn-warning:hover {
    opacity: 0.9 !important;
    color: #212529 !important;
    text-decoration: none !important;
}

/* Success Animation */
.admin-products-section .btn-success-temp {
    background: var(--bs-success, #28a745) !important;
    transform: scale(0.95) !important;
}

/* Icon Styling */
.admin-products-section .fp-product-horizontal .btn i {
    margin-right: 5px !important;
    font-size: 0.9rem !important;
}

/* Loading State */
.admin-products-section .fp-product-horizontal.loading .btn-primary {
    opacity: 0.7 !important;
    pointer-events: none !important;
}

.admin-products-section .price-display {
    font-weight: 600;
    color: var(--bs-success, #28a745);
}

.admin-products-section .price-old-inline {
    font-size: 0.9em;
    text-decoration: line-through;
    color: var(--bs-danger, #dc3545);
    margin-right: 5px;
}

.admin-products-section .price-new-inline {
    color: var(--bs-success, #28a745);
}

html[data-theme="dark"] .admin-products-section .price-display {
    color: #5cb85c;
}

html[data-theme="dark"] .admin-products-section .price-old-inline {
    color: #d9534f;
}

html[data-theme="dark"] .admin-products-section .price-new-inline {
    color: #5cb85c;
}

/* Mobil düzeltmeler */
@media (max-width: 768px) {
    .admin-products-section {
        padding: 0 10px !important;
        margin-top: 10px !important;
        overflow: visible !important;
    }
    
    .admin-products-title {
        font-size: 1.1rem !important;
        margin-top: 1rem !important;
        padding-top: 0.5rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
        display: block !important;
        white-space: normal !important;
        overflow: visible !important;
    }
    
    .admin-products-section .fp-product-horizontal .bottom-section {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .admin-products-section .fp-product-horizontal .price {
        width: 100% !important;
        margin-bottom: 10px !important;
    }
    
    .admin-products-section .fp-quantity {
        width: 100% !important;
        margin-bottom: 10px !important;
    }
    
    .admin-products-section .fp-product-horizontal .btn {
        width: 100% !important;
    }
}

@media (max-width: 576px) {
    .admin-products-title {
        font-size: 1rem !important;
        margin-top: 0.8rem !important;
    }
    
    .admin-products-section .fp-product-horizontal {
        padding: 10px !important;
    }
    
    .admin-products-section .fp-product-horizontal .img {
        width: 150px !important;
        height: 150px !important;
        min-width: 150px !important;
    }
    
    .admin-products-section .fp-product-horizontal .product-name,
    .admin-products-section .fp-product-horizontal .content .product-name {
        font-size: 14px !important;
    }
    
    .admin-products-section .fp-product-horizontal .text {
        font-size: 12px !important;
    }
}
/* ADMİN ÜRÜNLERİ İÇİN BAŞLIK YÜKSEKLİK DÜZELTMESİ */
.admin-products-section .fp-product-horizontal .content .product-name {
    height: auto !important;
    min-height: 50px !important;
    max-height: none !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: initial !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    color: var(--text-color) !important;
    display: block !important;
    width: 100% !important;
    margin-bottom: 5px !important;
}

.admin-products-section .fp-product-horizontal .content .text {
    font-size: 13px !important;
    line-height: 1.4 !important;
    color: var(--text-gray) !important;
    display: block !important;
    margin-bottom: 0 !important;
}

/* Mobil görünüm için düzeltmeler */
@media (max-width: 768px) {
    .admin-products-section .fp-product-horizontal .content .product-name {
        font-size: 14px !important;
        min-height: 40px !important;
    }
    
    .admin-products-section .fp-product-horizontal .content .text {
        font-size: 12px !important;
    }
}

@media (max-width: 576px) {
    .admin-products-section .fp-product-horizontal .content .product-name {
        font-size: 13px !important;
        min-height: 35px !important;
    }
}