/* Market Karşılaştır - Modern Stil */

/* Ana renk paleti */
:root {
    --bg: #F5F7FA;
    --card-bg: #FFFFFF;
    --primary: #1A3C7B;     /* Koyu Mavi: güven ve profesyonellik */
    --secondary: #2563A8;   /* Orta Mavi: destekleyici ton */
    --accent: #FFE500;      /* Sarı: vurgu ve fırsat */
    --text: #1A1A1A;
    --muted-text: #6C757D;
    --border: #DEE2E6;
    
    /* Header renkleri */
    --header-bg: #1A3C7B;
    --header-text: #FFFFFF;
    --header-accent: #FFE500;
    
    /* Footer renkleri */
    --footer-bg: #1A3C7B;
    --footer-text: #D3DAE6;
    --footer-link-hover: #FFE500;
    --footer-border: #0F2548;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Modern Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(26, 60, 123, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 229, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Navbar - Modern Glassmorphism */
.navbar {
    background: rgba(26, 60, 123, 0.95) !important;
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 32px 0 rgba(26, 60, 123, 0.2);
    border-bottom: 2px solid var(--header-accent); /* Sarı çizgi ile birleşmesi için */
    z-index: 1030; /* Bootstrap dropdown'un çalışması için yeterli z-index - Modal'dan düşük */
    position: sticky;
    top: 0;
}

.navbar .dropdown-menu {
    z-index: 1050 !important; /* Dropdown menü en üstte görünsün */
    display: none; /* Bootstrap tarafından kontrol edilir */
}

.navbar .dropdown-menu.show {
    display: block !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--header-text);
    margin-right: auto; /* Sola yasla */
}

.navbar-brand:hover {
    color: var(--header-accent);
}

.navbar-brand i {
    color: var(--header-accent);
}

.navbar-light .navbar-nav .nav-link {
    color: var(--header-text);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: var(--header-accent);
    transform: translateY(-2px);
}

.navbar-light .navbar-nav .nav-link.active {
    color: var(--header-accent);
    font-weight: 700;
    position: relative;
}

.navbar-light .navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: var(--header-accent);
    border-radius: 2px;
}

.navbar-light .navbar-nav .nav-link i {
    color: var(--header-accent);
}

.navbar-toggler {
    border-color: var(--header-accent);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23FFE500' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Global Arama Barı - Tüm Sayfalarda */
.global-search-bar {
    background: var(--header-accent); /* Sarı */
    border-top: 2px solid var(--header-bg); /* Üstte mavi çizgi */
    padding: 0.75rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 56px; /* Navbar yüksekliği kadar altta başla */
    z-index: 1020; /* Modal'dan düşük olmalı */
}

.global-search-brand {
    color: var(--header-bg);
    font-size: 1.1rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.global-search-brand i {
    font-size: 1.3rem;
}

.global-search-input-wrapper {
    position: relative;
    flex: 1;
}

.global-search-mic-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.1rem;
    z-index: 2;
    pointer-events: none;
}

.global-search-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem; /* Sol tarafta mikrofon için alan */
    border: none;
    border-radius: 12px 0 0 12px; /* Sol köşeleri yuvarlat */
    font-size: 1rem;
    background: white;
    color: var(--text);
    transition: all 0.3s ease;
}

.global-search-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 60, 123, 0.1);
}

.global-search-input::placeholder {
    color: #9ca3af;
}

/* Global Autocomplete Dropdown */
#globalAutocompleteDropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    z-index: 999999;
}

.global-search-actions {
    flex-shrink: 0;
}

.global-filter-buttons {
    display: flex;
    gap: 0.25rem;
}

.global-filter-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--header-bg);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.global-filter-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.global-filter-btn.active {
    background: var(--header-bg);
    color: var(--header-accent);
    box-shadow: 0 4px 8px rgba(26, 60, 123, 0.3);
}

.global-search-button {
    padding: 0.875rem 2rem;
    background: var(--header-bg);
    color: var(--header-accent);
    border: none;
    border-radius: 0 12px 12px 0; /* Sağ köşeleri yuvarlat */
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%; /* Input ile aynı yükseklik */
    align-self: stretch;
}

.global-search-button:hover {
    background: #0F2548;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 60, 123, 0.3);
}

.global-search-button:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .global-search-bar {
        padding: 0.5rem 0;
    }
    
    .global-search-bar .d-flex {
        flex-wrap: wrap;
        gap: 0.5rem !important;
    }
    
    .global-search-brand {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }
    
    .global-search-brand i {
        font-size: 1rem;
    }
    
    .global-search-input-wrapper {
        width: 100%;
        order: 2;
    }
    
    .global-search-mic-icon {
        left: 0.75rem;
        font-size: 0.9rem;
    }
    
    .global-search-input {
        padding: 0.6rem 0.75rem 0.6rem 2.5rem;
        font-size: 0.85rem;
        border-radius: 10px 0 0 10px;
    }
    
    .global-search-input::placeholder {
        font-size: 0.8rem;
    }
    
    .global-search-actions {
        width: 100%;
        order: 3;
        margin-top: 0.3rem;
    }
    
    .global-filter-buttons {
        flex-grow: 1;
        justify-content: flex-end;
        gap: 0.2rem;
    }
    
    .global-filter-btn {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
        border-radius: 6px;
    }
    
    .global-search-button {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        border-radius: 0 10px 10px 0;
    }
}

/* Ana Kapsayıcı */
.main-container {
    padding: 2rem 0 10rem 0; /* Alt padding'i daha da artırdık - footer için */
    position: relative;
    z-index: 1; /* Normal stacking order */
    min-height: calc(100vh - 200px);
}

/* Product Container - Autocomplete'ten altında kalmalı */
.row#productsContainer,
#productsContainer .row,
.product-grid {
    position: relative;
    z-index: 1; /* Autocomplete dropdown'un altında kalmalı */
}

/* Arama Kartı - Modern Glassmorphism */
.search-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    padding: 1.25rem; /* Daha dar padding */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-bottom: 1.5rem; /* Margin'i de daralt */
    position: relative;
    overflow: visible; /* Autocomplete dropdown'ın görünmesi için */
    z-index: 1000; /* Product card'ların üstünde olsun */
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
}

.market-compare-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(26, 60, 123, 0.2);
}

.search-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    border-radius: 24px 24px 0 0; /* Üst köşeleri yuvarlat - search-card ile aynı border-radius */
}

.search-card h1 {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.search-card p {
    color: var(--muted-text);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* Arama Input */
.search-wrapper {
    position: relative;
    margin-bottom: 0.75rem;
    z-index: 99999; /* Autocomplete dropdown'un üstte görünmesi için - çok yüksek z-index */
    isolation: isolate; /* Yeni stacking context oluştur */
}

.search-input {
    width: 100%;
    padding: 0.875rem 3.5rem 0.875rem 1.5rem;
    border: 2px solid rgba(222, 226, 230, 0.6);
    border-radius: 16px;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26, 60, 123, 0.1), 0 8px 20px rgba(26, 60, 123, 0.1);
    background: white;
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    z-index: 1;
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12),
                0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(26, 60, 123, 0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 999999; /* En üstte görünmesi için çok yüksek z-index */
    display: none;
    animation: fadeInDown 0.2s ease-out;
    position: absolute !important; /* Override any other positioning */
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.autocomplete-item {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.autocomplete-selected {
    background: linear-gradient(90deg, rgba(26, 60, 123, 0.08) 0%, rgba(26, 60, 123, 0.04) 100%);
    transform: translateX(4px);
    border-left: 3px solid var(--primary);
    padding-left: calc(1.25rem - 3px);
}

.autocomplete-item.autocomplete-selected {
    background: linear-gradient(90deg, rgba(26, 60, 123, 0.12) 0%, rgba(26, 60, 123, 0.06) 100%);
    color: var(--text);
}

.autocomplete-item.autocomplete-selected .autocomplete-name {
    color: var(--text);
    font-weight: 700;
}

.autocomplete-item.autocomplete-selected .autocomplete-meta {
    color: var(--muted-text);
}

.autocomplete-item:active {
    background: linear-gradient(90deg, rgba(26, 60, 123, 0.1) 0%, rgba(26, 60, 123, 0.05) 100%);
}

.autocomplete-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 1rem;
    border: 2px solid rgba(26, 60, 123, 0.1);
    flex-shrink: 0;
}

.autocomplete-content {
    flex: 1;
    min-width: 0;
}

.autocomplete-name {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.autocomplete-name strong {
    color: var(--primary);
    font-weight: 700;
}

.autocomplete-meta {
    font-size: 0.75rem;
    color: var(--muted-text);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.125rem;
}

.autocomplete-meta i {
    font-size: 0.7rem;
    opacity: 0.6;
}

/* Autocomplete Scrollbar */
.autocomplete-dropdown::-webkit-scrollbar {
    width: 6px;
}

.autocomplete-dropdown::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Barkod Butonu - Modern Gradient */
.barcode-btn {
    background: linear-gradient(135deg, var(--primary) 0%, #0F2548 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(26, 60, 123, 0.25);
    height: fit-content;
    position: relative;
    overflow: hidden;
}

.barcode-btn::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.5s ease;
}

.barcode-btn:hover::before {
    left: 100%;
}

.barcode-btn:hover {
    background: linear-gradient(135deg, #0F2548 0%, var(--primary) 100%);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(26, 60, 123, 0.4);
}

.barcode-btn i {
    font-size: 0.7rem;
    color: white;
    margin-right: 0.375rem;
}

/* Filtre Butonları */
.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid rgba(222, 226, 230, 0.6);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    font-size: 0.85rem;
    color: var(--text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(26, 60, 123, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.filter-btn:hover::before {
    width: 300px;
    height: 300px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.filter-btn.active {
    box-shadow: 0 4px 20px rgba(26, 60, 123, 0.3);
}

/* Ürün Kartı - Modern 2024 */
.product-card-clickable {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card-clickable:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

.product-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    z-index: 1; /* Autocomplete dropdown'un altında kalmalı */
}

/* İçeriğe göre otomatik yükseklik (mb-4 ile kullanılan product-card'lar için) */
.product-card.mb-4 {
    height: auto !important;
    min-height: auto !important;
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 60, 123, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(26, 60, 123, 0.15);
    border-color: var(--primary);
}

.product-card:hover::after {
    opacity: 1;
}

.product-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-price-section {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-price-section .btn-add-to-cart {
    margin-top: 0;
}

.product-price-placeholder {
    margin: 0;
}

.product-image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(222, 226, 230, 0.5);
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-image[src=""],
.product-image:not([src]) {
    display: none;
}

.product-image + .product-image-fallback {
    width: 100%;
    height: 180px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-text);
    font-size: 3rem;
}

.product-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8rem;
}

.product-brand {
    color: var(--muted-text);
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
    min-height: 1.25rem;
}

.product-views {
    font-size: 0.7rem;
    color: var(--muted-text);
    opacity: 0.8;
    white-space: nowrap;
}

.product-category {
    display: inline-block;
    background: linear-gradient(135deg, rgba(37, 99, 168, 0.1) 0%, rgba(26, 60, 123, 0.05) 100%);
    color: var(--secondary);
    padding: 0.3rem 0.75rem;
    border-radius: 16px;
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
    border: 1.5px solid var(--secondary);
    font-weight: 600;
    transition: all 0.3s ease;
}

.product-card:hover .product-category {
    background: var(--secondary);
    color: white;
    transform: scale(1.05);
}

/* Kategori linki hover efekti */
a.product-category:hover {
    background: var(--secondary) !important;
    color: white !important;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(37, 99, 168, 0.3);
}

.product-price-badge {
    background: linear-gradient(135deg, var(--accent) 0%, #ffd740 100%);
    color: var(--primary);
    font-weight: 800;
    font-size: 1.15rem;
    padding: 0.75rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 0.75rem;
    box-shadow: 0 4px 15px rgba(255, 229, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.product-price-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.product-price-badge small {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    margin-top: 0.3rem;
    position: relative;
    z-index: 1;
}

/* Fiyat Listesi */
.price-list {
    padding: 0;
    width: 100%;
    overflow: hidden;
}

.price-list-modal {
    max-height: 400px;
    overflow-y: auto;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 0.4rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(245, 247, 250, 0.5);
    border: 1px solid transparent;
    width: 100%;
}

.price-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.price-right {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.price-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.price-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.price-item.cheapest {
    background: linear-gradient(135deg, rgba(255, 229, 0, 0.15) 0%, rgba(255, 215, 64, 0.1) 100%);
    border: 2px solid var(--accent);
    box-shadow: 0 4px 15px rgba(255, 229, 0, 0.2);
}

.market-name {
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.market-name > span:last-child {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.market-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: contain;
    flex-shrink: 0;
}

.price-value {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 120px;
    max-width: 150px;
    gap: 0.15rem;
    flex-shrink: 0;
    text-align: right;
}

.price-amount {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
    white-space: nowrap;
}

.price-amount small {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--muted-text);
    margin-left: 0.25rem;
}

.price-pack-info {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.price-tier-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 4px;
    color: #2563eb;
    font-size: 0.7rem;
}

.btn-feedback-price {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    color: #495057;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-feedback-price:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 60, 123, 0.2);
}

.btn-feedback-price i {
    font-size: 0.9rem;
}

.price-actions .feedback-stats {
    font-size: 0.75rem;
    color: #6c757d;
}

.cheapest-badge {
    background: linear-gradient(135deg, rgba(255, 229, 0, 0.85) 0%, rgba(255, 214, 0, 0.9) 100%);
    color: var(--primary);
    padding: 0.2rem 0.55rem;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 6px rgba(255, 229, 0, 0.25);
}

.cheapest-badge-top {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: linear-gradient(135deg, rgba(255, 229, 0, 0.95) 0%, rgba(255, 214, 0, 1) 100%);
    color: var(--primary);
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(255, 229, 0, 0.3);
    z-index: 10;
}

/* Favori Butonu - Modern Animated */
.favorite-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.favorite-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 6px 20px rgba(26, 60, 123, 0.2);
}

.favorite-btn.active {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    animation: heartbeat 0.6s ease;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1.1); }
}

.favorite-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.favorite-btn:hover i {
    transform: scale(1.1);
}

/* Fırsat Rozeti - Modern Pulsing */
.opportunity-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: linear-gradient(135deg, var(--accent) 0%, #ffd740 100%);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.85rem;
    box-shadow: 0 4px 20px rgba(255, 229, 0, 0.4);
    border: 2px solid var(--primary);
    z-index: 5;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(255, 229, 0, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(255, 229, 0, 0.6);
    }
}

/* Yükleniyor - Modern Spinner */
.loading {
    text-align: center;
    padding: 4rem 2rem;
}

.spinner-border {
    width: 3.5rem;
    height: 3.5rem;
    border-width: 0.35rem;
    animation: spin 1s linear infinite, pulse-ring 2s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse-ring {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(26, 60, 123, 0.4);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(26, 60, 123, 0);
    }
}

/* Boş Durum - Modern */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    animation: fadeIn 0.6s ease;
}

.empty-state-icon {
    font-size: 6rem;
    margin-bottom: 1.5rem;
    opacity: 0.7;
    animation: float 3s ease-in-out infinite;
}

.empty-state h3 {
    color: var(--text);
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1.75rem;
}

.empty-state p {
    color: var(--muted-text);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 2rem;
}

/* Barkod Okuyucu Modal */
#barcode-scanner {
    width: 100%;
    max-width: 640px;
    border-radius: 12px;
    overflow: hidden;
}

.scanner-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 40%;
    border: 3px solid var(--success-color);
    border-radius: 12px;
    pointer-events: none;
}

/* Fiyat Geçmişi Grafik */
.price-history-chart {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .search-card {
        padding: 2rem 1.5rem;
    }
    
    .search-card h1 {
        font-size: 1.75rem;
    }
    
    .barcode-btn {
        width: 100%;
        margin-top: 1rem;
    }
    
    .filter-buttons {
        margin-bottom: 1rem;
    }
}

/* Animasyonlar - Modern 2024 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Scroll Bar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0F2548;
}

/* Özel Butonlar - Modern */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary) 0%, #0F2548 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(26, 60, 123, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, #0F2548 0%, var(--primary) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(26, 60, 123, 0.4);
}

.btn-secondary-custom {
    background: linear-gradient(135deg, var(--secondary) 0%, #1A3C7B 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(37, 99, 168, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
}

.btn-secondary-custom:hover {
    background: linear-gradient(135deg, #1A3C7B 0%, var(--secondary) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(37, 99, 168, 0.4);
}

.btn-accent-custom {
    background: linear-gradient(135deg, var(--accent) 0%, #ffd740 100%);
    color: var(--primary);
    border: 2px solid var(--primary);
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(255, 229, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-accent-custom:hover {
    background: linear-gradient(135deg, #ffd740 0%, var(--accent) 100%);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 229, 0, 0.5);
}

/* List Group - Modern Active State (Global) */
.list-group-item {
    border: none;
    padding: 0.6rem 0.75rem; /* Daha kompakt padding */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0.2rem; /* Daha az boşluk */
    border-radius: 8px; /* Daha küçük border-radius */
    font-size: 0.9rem; /* Daha küçük font */
}

.list-group-item:hover:not(.active) {
    background: var(--bg);
    color: var(--primary);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.list-group-item.active {
    background: linear-gradient(135deg, var(--primary) 0%, #0F2548 100%);
    color: white;
    font-weight: 700;
    border-left: 4px solid var(--accent);
    padding-left: calc(1rem - 4px);
    box-shadow: 0 4px 12px rgba(26, 60, 123, 0.3);
    transform: translateX(4px);
}

.list-group-item.active i {
    color: var(--accent);
}

.list-group-item.active .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Site Tanıtım Bölümü - Footer'a Yakın */
.site-intro-section {
    margin-top: 2rem;
    margin-bottom: 1rem; /* Footer'a yakınlaştır */
}

.site-intro-card {
    padding: 1rem 1.25rem !important; /* Daha küçük padding */
    max-width: 100% !important; /* Container genişliğinde */
    margin-bottom: 0.5rem !important; /* Footer'a yakınlaştır */
}

.site-intro-card h2 {
    font-size: 1.25rem !important; /* Başlığı küçült */
    margin-bottom: 0.75rem !important;
}

.site-intro-card h3 {
    font-size: 1.1rem !important; /* Alt başlığı küçült */
    margin-top: 1rem !important;
    margin-bottom: 0.5rem !important;
}

.site-intro-card p {
    font-size: 0.9rem !important; /* Metni küçült */
    margin-bottom: 0.75rem !important;
    line-height: 1.6 !important;
}

.site-intro-card ul {
    font-size: 0.875rem !important; /* Liste metnini küçült */
    margin-bottom: 0.75rem !important;
    padding-left: 1.25rem !important;
}

.site-intro-card li {
    margin-bottom: 0.5rem !important;
}

/* Sidebar Kartları - Yüksekliği İçeriğe Göre Ayarla */
.sidebar-card {
    height: auto !important;
    min-height: 0 !important;
}

/* Kategori Sidebar Scrollbar Stilleri */
.sidebar-list-wrapper {
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.sidebar-list-wrapper::-webkit-scrollbar {
    width: 6px;
}

.sidebar-list-wrapper::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.sidebar-list-wrapper::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

.sidebar-list-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Footer Stilleri - Modern */
footer {
    background: linear-gradient(135deg, var(--footer-bg) 0%, #1f2d42 100%) !important;
    color: var(--footer-text);
    border-top: 4px solid var(--accent);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-top: 2rem !important; /* Site intro'dan sonra yeterli boşluk */
    clear: both !important;
    z-index: 10;
    min-height: 300px;
}


/* Modern Filtreleme Bölümü */
.modern-filter-section {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
}

.modern-filter-select {
    border-radius: 12px;
    border: 2px solid var(--border);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: white;
}

.modern-filter-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 60, 123, 0.1);
    outline: none;
}

.modern-filter-select:hover {
    border-color: var(--primary);
}

.modern-filter-section .form-label {
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.modern-filter-section .form-label i {
    color: var(--primary);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

footer h5,
footer h6 {
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
}

footer a {
    color: var(--footer-text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

footer a:hover {
    color: var(--footer-link-hover);
    text-decoration: none;
    transform: translateX(5px);
}

footer hr {
    border-color: var(--footer-border);
    opacity: 0.3;
}

footer .text-muted {
    color: var(--footer-text) !important;
}

footer i {
    color: var(--footer-link-hover);
    transition: transform 0.3s ease;
}

footer a:hover i {
    transform: scale(1.2);
}

/* Footer Buton Hover Efektleri */
footer .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--footer-text);
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

footer .btn-outline-light:hover {
    background: var(--footer-link-hover);
    border-color: var(--footer-link-hover);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 229, 0, 0.3);
}

footer .btn-outline-light:hover i {
    transform: scale(1.1);
    color: var(--primary);
}

footer .btn-outline-light:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 229, 0, 0.2);
}

/* Modern Sayfalama (Pagination) Stilleri */
.pagination {
    margin: 2rem 0;
    gap: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination .page-item {
    margin: 0 0.25rem;
}

.pagination .page-link {
    min-width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 2px solid var(--border);
    background: var(--card-bg);
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.pagination .page-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.pagination .page-link:hover::before {
    left: 100%;
}

.pagination .page-link:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(26, 60, 123, 0.3);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary) 0%, #0F2548 100%);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 16px rgba(26, 60, 123, 0.4),
                0 0 0 3px rgba(255, 229, 0, 0.2);
    font-weight: 700;
    transform: scale(1.05);
}

.pagination .page-item.active .page-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.pagination .page-item.disabled .page-link {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--bg);
    border-color: var(--border);
    color: var(--muted-text);
}

.pagination .page-item.disabled .page-link:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    background: var(--bg);
    border-color: var(--border);
    color: var(--muted-text);
}

.pagination .page-link span {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Sayfalama için özel stiller - Mobil uyumlu */
@media (max-width: 767.98px) {
    .pagination-container {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0.5rem 0;
    }
    
    .pagination-container .pagination {
        flex-wrap: nowrap !important;
        gap: 0.2rem;
        justify-content: flex-start !important;
        margin: 0 !important;
        min-width: fit-content;
    }
    
    .pagination-container::-webkit-scrollbar {
        display: none;
    }
    
    .pagination .page-item {
        margin: 0 0.1rem;
        flex-shrink: 0;
    }
    
    .pagination .page-link {
        min-width: 36px;
        height: 36px;
        font-size: 0.8rem;
        padding: 0.3rem 0.4rem;
        white-space: nowrap;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .pagination .page-link span {
        font-size: 0.7rem;
    }
    
    /* Önceki/Sonraki için özel düzenleme - ilk ve son buton */
    .pagination .page-item:first-child .page-link,
    .pagination .page-item:last-child .page-link {
        min-width: auto;
        padding: 0.3rem 0.5rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }
}

/* Sayfalama container animasyonu */
.pagination-container {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sepet Sayfası - Scroll Düzeltmeleri */
.market-comparison-list {
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px; /* Scrollbar için minimal padding */
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

/* Sepet - Fiyat Farkı Göstergeleri */
.market-comparison-item .price-difference-positive {
    color: #ef4444;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.market-comparison-item .price-difference-cheapest {
    color: #22c55e;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.market-comparison-item .price-difference-positive i {
    font-size: 0.75rem;
}

.market-comparison-item .price-difference-cheapest i {
    font-size: 0.75rem;
}

/* Sepet - Detay Gör Butonu */
.market-comparison-item .btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: white;
    transition: all 0.3s ease;
}

.market-comparison-item .btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 60, 123, 0.3);
}

/* Market Detay Modal Stilleri */
.modal {
    z-index: 1100;
}

.modal-backdrop {
    z-index: 1090;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-dialog {
    position: relative;
    pointer-events: auto;
}

.modal-content {
    animation: modalFadeIn 0.3s ease-out;
    position: relative;
    pointer-events: auto;
    background: white;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-body .table-responsive {
    border-radius: 12px;
    overflow: hidden;
}

.modal-body .table {
    margin-bottom: 0;
}

.modal-body .table thead {
    background: #f8f9fa;
}

.modal-body .table tbody tr {
    transition: all 0.2s ease;
}

.modal-body .table tbody tr:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

/* Modal Scrollbar */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Modal Butonları - Tıklanabilir */
.modal-header .btn-close {
    position: relative;
    z-index: 1000;
    cursor: pointer;
    opacity: 1;
}

.modal-header .btn-close:hover {
    opacity: 0.75;
}

.modal-footer .btn {
    position: relative;
    z-index: 1000;
    cursor: pointer;
    pointer-events: auto;
}

.modal-footer .btn:hover {
    opacity: 0.9;
}

/* Scrollbar'ı sağa çekmek için iç alanı küçült */
.search-card .market-comparison-list {
    width: calc(100% - 4px);
    margin-left: 0;
}

.market-comparison-item {
    width: 100%;
    box-sizing: border-box;
    margin-right: 0 !important;
    padding: 1rem !important; /* İçerik için yeterli padding */
    transition: all 0.3s ease;
}

.market-comparison-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.market-comparison-list::-webkit-scrollbar {
    width: 6px;
}

.market-comparison-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.market-comparison-list::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.market-comparison-list::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Sepet Tablosu - Yatay scroll önleme */
body .search-card .table-responsive {
    overflow-x: hidden !important;
}

body .search-card .table {
    table-layout: auto;
    width: 100%;
}

body .search-card .table td,
body .search-card .table th {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Sepet Ürün Fiyat Badge'leri */
.search-card .table td .badge.bg-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
    color: white;
    font-weight: 600;
    border: none;
    box-shadow: 0 2px 4px rgba(34, 197, 94, 0.2);
}

.search-card .table td .badge.bg-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: white;
    font-weight: 600;
    border: none;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.search-card .table td .text-success {
    color: #16a34a !important;
}

.search-card .table td .text-danger {
    color: #dc2626 !important;
}

/* Sepet Tablosu Footer - Özet */
.search-card .table tfoot {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-top: 2px solid var(--primary);
}

.search-card .table tfoot td {
    padding: 1rem;
    vertical-align: middle;
}

.search-card .table tfoot .text-success {
    color: #16a34a !important;
    font-weight: 600;
}

.search-card .table tfoot .text-danger {
    color: #dc2626 !important;
    font-weight: 600;
}

/* Sepet İkonu Stilleri */
#cartLink {
    position: relative;
    padding: 0.5rem 1rem !important;
}

#cartLink:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

#cartBadge {
    min-width: 20px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    font-size: 0.65rem;
    font-weight: 600;
    animation: pulse 0.3s ease-in-out;
    top: -2px !important;
    right: -2px !important;
}

@keyframes pulse {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Sepete Ekle Butonu - Modern Tasarım */
.btn-add-to-cart {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-add-to-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-add-to-cart:hover::before {
    left: 100%;
}

.btn-add-to-cart:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.4);
}

.btn-add-to-cart:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

.btn-add-to-cart i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.btn-add-to-cart:hover i {
    transform: scale(1.15) rotate(-5deg);
}

/* Animasyon efekti - sepete eklendiğinde */
.btn-add-to-cart.added {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    animation: cartAdded 0.5s ease;
}

@keyframes cartAdded {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Product Container Gap */
#productsContainer.row {
    --bs-gutter-x: 2.5rem;
    --bs-gutter-y: 2.5rem;
    margin-left: 0;
    margin-right: 0;
}

#productsContainer.row > [class*="col-"] {
    padding-left: calc(var(--bs-gutter-x) / 2);
    padding-right: calc(var(--bs-gutter-x) / 2);
}

/* Mobil Görünüm İyileştirmeleri */
@media (max-width: 767.98px) {
    /* Ürün kartları mobilde daha kompakt (2 sütun için optimize) */
    .product-card {
        margin-bottom: 0.75rem;
        border-radius: 14px;
    }
    
    /* Ürün resmi mobilde daha küçük (2 sütun için) */
    .product-image {
        height: 120px;
        padding: 0.75rem;
    }
    
    /* Kart gövdesi padding'i mobilde azalt (2 sütun için) */
    .product-card-body {
        padding: 0.65rem 0.7rem 0.35rem !important;
    }
    
    /* Başlık mobilde daha küçük (2 sütun için) */
    .product-title {
        font-size: 0.8rem;
        min-height: 2.2rem;
        margin-bottom: 0.3rem;
        line-height: 1.3;
    }
    
    /* Marka ve kategori mobilde daha küçük */
    .product-brand {
        font-size: 0.7rem;
        margin-bottom: 0.15rem;
        line-height: 1.2;
    }
    
    .product-views {
        font-size: 0.65rem;
    }
    
    .product-category {
        font-size: 0.6rem;
        padding: 0.2rem 0.5rem;
        margin-bottom: 0.3rem;
        line-height: 1.2;
    }
    
    /* Fiyat badge mobilde optimize (2 sütun için) */
    .product-price-badge {
        font-size: 0.85rem;
        padding: 0.5rem 0.4rem;
        margin-top: 0.4rem;
        border-radius: 8px;
        line-height: 1.2;
    }
    
    .product-price-badge small {
        font-size: 0.65rem;
        margin-top: 0.2rem;
        display: block;
    }
    
    /* Sepete ekle butonu mobilde daha kompakt (2 sütun için) */
    .product-card-actions {
        padding: 0 0.7rem 0.5rem !important;
        margin-top: 0.1rem !important;
    }
    
    .btn-add-to-cart {
        font-size: 0.75rem;
        padding: 0.45rem 0.5rem;
        white-space: nowrap;
    }
    
    .btn-add-to-cart i {
        font-size: 0.7rem;
    }
    
    .btn-add-to-cart span {
        font-size: 0.75rem;
    }
    
    /* Container gap mobilde azalt (2 sütun için) */
    #productsContainer.row {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 0.75rem;
    }
    
    /* İndirim badge mobilde daha küçük (2 sütun için) */
    .opportunity-badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
        top: 0.4rem;
        left: 0.4rem;
        border-radius: 6px;
    }
    
    /* Favori butonu mobilde daha küçük (2 sütun için) */
    .favorite-btn {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
        top: 0.4rem;
        right: 0.4rem;
    }
    
    /* Fiyat geçmişi tablosu mobilde düzenleme */
    .product-card table {
        font-size: 0.85rem;
    }
    
    .product-card table td {
        padding: 0.6rem 0.5rem !important;
        vertical-align: middle;
    }
    
    .product-card table td small {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    /* Fiyat badge mobilde TL simgesi alta kaymasın */
    .product-card table td span {
        white-space: nowrap !important;
        display: inline-block !important;
        font-size: 0.8rem !important;
        padding: 0.3rem 0.6rem !important;
        line-height: 1.2 !important;
    }
    
    /* Fiyat geçmişi başlık mobilde küçült */
    .product-card h4 {
        font-size: 1.2rem !important;
    }
    
    /* Fiyat geçmişi ikon mobilde küçült */
    .product-card .d-flex.align-items-center > div[style*="width: 48px"] {
        width: 36px !important;
        height: 36px !important;
    }
    
    .product-card .d-flex.align-items-center > div[style*="width: 48px"] i {
        font-size: 1rem !important;
    }
    
    /* Ürün Detay Sayfası - Fiyat Listesi Mobil Düzeltmeleri */
    .price-item {
        padding: 0.85rem 1rem;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.75rem;
    }
    
    .price-left {
        flex: 1;
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 0.65rem;
        flex-wrap: wrap;
    }
    
    .market-name {
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        gap: 0.4rem;
        flex-wrap: wrap;
        line-height: 1.3;
    }
    
    .market-logo {
        width: 42px !important;
        height: 42px !important;
        object-fit: contain;
        flex-shrink: 0;
        border-radius: 12px;
        background: #fff;
        padding: 0.35rem;
        box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
    }
    
    .market-name .metro-bulk-badge,
    .market-name .cheapest-badge {
        margin-left: 0;
    }
    
    .metro-bulk-badge {
        font-size: 0.55rem !important;
        padding: 0.2rem 0.4rem !important;
        white-space: nowrap;
    }
    
    .cheapest-badge {
        font-size: 0.6rem !important;
        padding: 0.2rem 0.45rem !important;
    }
    
    .price-right {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        flex-shrink: 0;
    }
    
    .price-value {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 0.2rem;
        min-width: 0;
    }
    
    .price-amount {
        font-size: 1.28rem !important;
        line-height: 1.2;
        white-space: nowrap;
    }
    
    .price-amount small {
        font-size: 0.58rem !important;
    }
    
    .price-pack-info {
        font-size: 0.65rem !important;
        margin-top: 0;
        text-align: right;
        line-height: 1.2;
        white-space: normal;
        max-width: 150px;
    }
    
    .price-actions {
        display: flex;
        flex-direction: column;
        gap: 0.25rem !important;
        align-items: center;
    }
    
    .btn-feedback-price,
    .btn-update-price {
        padding: 0.38rem 0.5rem !important;
        font-size: 0.75rem !important;
        min-width: auto !important;
        border-radius: 12px !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn-feedback-price i,
    .btn-update-price i {
        font-size: 0.75rem !important;
    }
    
    /* Güncel Fiyatlar başlık mobilde küçült */
    .product-card h4 {
        font-size: 1.1rem !important;
    }
    
    /* Güncel Fiyatlar kartı padding mobilde azalt */
    .product-card[style*="padding: 2rem"] {
        padding: 1rem !important;
    }
    
    /* Ürün Detay - Sol Taraf Ürün Bilgileri Mobil Düzeltmeleri */
    .col-lg-4 .product-card {
        position: relative !important;
        top: auto !important;
        padding: 1rem !important;
    }
    
    .col-lg-4 .product-card h2 {
        font-size: 1.2rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .col-lg-4 .product-card .badge {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.75rem !important;
    }
    
    /* Barkod bölümü mobilde küçült */
    .col-lg-4 .product-card div[style*="border-left: 4px solid"] {
        padding: 0.75rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .col-lg-4 .product-card div[style*="border-left: 4px solid"] div[style*="width: 40px"] {
        width: 32px !important;
        height: 32px !important;
        margin-right: 0.75rem !important;
    }
    
    .col-lg-4 .product-card div[style*="border-left: 4px solid"] div[style*="font-size: 1.1rem"] {
        font-size: 0.95rem !important;
    }
    
    /* Ürün açıklaması mobilde küçült */
    .col-lg-4 .product-card div[style*="backdrop-filter"] {
        padding: 0.75rem 1rem !important;
    }
    
    .col-lg-4 .product-card div[style*="backdrop-filter"] p {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
    }
    
    /* Market URL öner butonları mobilde küçült */
    .btn-suggest-url,
    .btn-feedback-product {
        font-size: 0.8rem !important;
        padding: 0.5rem 0.85rem !important;
    }
    
    /* Footer - Mobil Uygulama Badge'leri */
    .app-badge {
        font-size: 0.85rem !important;
        padding: 6px 14px !important;
    }
    
    .app-badge i {
        font-size: 22px !important;
        margin-right: 8px !important;
    }
    
    .app-badge div div:first-child {
        font-size: 8px !important;
    }
    
    .app-badge div div:last-child {
        font-size: 13px !important;
    }
    
    /* Sepet - Market Karşılaştırma Mobil */
    .market-comparison-item {
        padding: 0.85rem !important;
    }
    
    .market-comparison-item h4 {
        font-size: 1.2rem !important;
    }
    
    .market-comparison-item .d-flex.justify-content-between.align-items-center h4 {
        font-size: 1.15rem !important;
    }
    
    .market-comparison-item .price-difference-positive,
    .market-comparison-item .price-difference-cheapest {
        font-size: 0.75rem !important;
    }
    
    .market-comparison-item .badge {
        font-size: 0.7rem !important;
        padding: 0.3rem 0.6rem !important;
    }
    
    /* Fiyat farkı mobilde daha kompakt */
    .market-comparison-item .d-flex.justify-content-between.align-items-center > div {
        font-size: 0.7rem !important;
        margin-left: 0.5rem !important;
    }
    
    /* Modal Mobil Düzenlemeler */
    .modal-dialog {
        margin: 0.5rem !important;
    }
    
    .modal-body {
        padding: 1rem !important;
        max-height: 60vh !important;
    }
    
    .modal-body .table {
        font-size: 0.85rem !important;
    }
    
    .modal-body .table th,
    .modal-body .table td {
        padding: 0.75rem 0.5rem !important;
    }
    
    .modal-body .table img {
        width: 40px !important;
        height: 40px !important;
    }
    
    .modal-body .table tfoot td {
        padding: 0.75rem 0.5rem !important;
    }
    
    .modal-body .table tfoot td div {
        font-size: 1rem !important;
    }
    
    .modal-body .table tfoot td div span {
        font-size: 0.75rem !important;
    }
    
    .modal-body .badge {
        font-size: 0.7rem !important;
        padding: 0.3rem 0.5rem !important;
    }
    
    .modal-header {
        padding: 1rem !important;
    }
    
    .modal-header h5 {
        font-size: 1rem !important;
    }
    
    .modal-header img {
        width: 40px !important;
        height: 40px !important;
        margin-right: 0.75rem !important;
    }
}

