﻿/* styles.css */
:root {
    --primary: #4a6fa5;
    --primary-light: #6b8cbe;
    --primary-dark: #3a5a80;
    --secondary: #ff7e5f;
    --secondary-light: #ff9e87;
    --background: #f8f9ff;
    --card-bg: #ffffff;
    --text: #2d3748;
    --text-light: #718096;
    --text-lighter: #a0aec0;
    --success: #48bb78;
    --warning: #ed8936;
    --error: #f56565;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px;
}

/* =================================
   LOGIN PAGE STYLES
   ================================= */

/* Login page specific body style */
body.login-page {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    margin: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}

.login-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .login-header::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 100%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
        z-index: 0;
    }

    .login-header h1 {
        font-size: 1.8rem;
        font-weight: 700;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        position: relative;
        z-index: 1;
    }

    .login-header .subtitle {
        font-size: 0.9rem;
        opacity: 0.9;
        font-weight: 300;
        position: relative;
        z-index: 1;
    }

.login-form {
    padding: 40px 30px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 15px 45px 15px 15px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    transition: var(--transition);
    background: var(--background);
    color: var(--text);
}

    .form-input:focus {
        border-color: var(--primary-light);
        background: var(--card-bg);
        box-shadow: 0 0 20px rgba(74, 111, 165, 0.2);
    }

.input-icon {
    position: absolute;
    right: 15px;
    top: 38px;
    color: var(--primary-light);
    font-size: 16px;
}

.login-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
    box-shadow: 0 4px 6px rgba(74, 111, 165, 0.15);
}

    .login-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(74, 111, 165, 0.4);
        background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    }

    .login-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

.error-message, .success-message {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid;
    display: none;
    font-size: 0.9rem;
}

.error-message {
    background: #fee;
    color: var(--error);
    border-color: var(--error);
}

.success-message {
    background: #efe;
    color: var(--success);
    border-color: var(--success);
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

    .remember-me input[type="checkbox"] {
        transform: scale(1.2);
        accent-color: var(--primary);
    }

.login-loading {
    display: none;
    text-align: center;
    color: var(--primary-light);
}

    .login-loading.show {
        display: block;
    }

    .login-loading i {
        font-size: 1.2rem;
        margin-right: 8px;
    }


#addShelfModal .modal-content {
    max-height: 90vh; /* Ekranın %90'ı kadar yükseklik */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#addShelfModal .modal-header {
    flex-shrink: 0; /* Header sabit kalır */
}

#addShelfModal .modal-body {
    flex: 1;
    overflow-y: auto; /* Dikey scroll bar */
    max-height: calc(90vh - 120px); /* Header ve footer yüksekliği çıkarıldı */
    padding: 24px;
}

#addShelfModal .modal-footer {
    flex-shrink: 0; /* Footer sabit kalır */
    border-top: 1px solid var(--border);
}

/* Dükkan seçim dropdown'ı için scroll */
#shelfDukkan {
    max-height: 200px; /* Dropdown maksimum yüksekliği */
    overflow-y: auto;
}

/* Custom scrollbar stilleri */
#addShelfModal .modal-body::-webkit-scrollbar {
    width: 8px;
}

#addShelfModal .modal-body::-webkit-scrollbar-track {
    background: var(--background);
    border-radius: 4px;
}

#addShelfModal .modal-body::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
    transition: background 0.3s ease;
}

    #addShelfModal .modal-body::-webkit-scrollbar-thumb:hover {
        background: var(--primary);
    }

/* Dropdown scroll bar */
#shelfDukkan::-webkit-scrollbar {
    width: 6px;
}

#shelfDukkan::-webkit-scrollbar-track {
    background: var(--background);
}

#shelfDukkan::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 3px;
}

    #shelfDukkan::-webkit-scrollbar-thumb:hover {
        background: var(--primary);
    }

/* Firefox için scrollbar stilleri */
#addShelfModal .modal-body {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) var(--background);
}

/* Form grupları arasında daha iyi boşluk */
#addShelfModal .form-group {
    margin-bottom: 20px;
}

    #addShelfModal .form-group:last-child {
        margin-bottom: 0;
    }

/* Textarea için scroll */
#shelfAciklama {
    resize: vertical;
    min-height: 80px;
    max-height: 150px;
    overflow-y: auto;
}

    #shelfAciklama::-webkit-scrollbar {
        width: 6px;
    }

    #shelfAciklama::-webkit-scrollbar-track {
        background: var(--background);
    }

    #shelfAciklama::-webkit-scrollbar-thumb {
        background: var(--border);
        border-radius: 3px;
    }

        #shelfAciklama::-webkit-scrollbar-thumb:hover {
            background: var(--text-light);
        }

/* Responsive tasarım için mobile scroll ayarları */
@media (max-width: 768px) {
    #addShelfModal .modal-content {
        max-height: 95vh;
        margin: 10px;
    }

    #addShelfModal .modal-body {
        max-height: calc(95vh - 100px);
        padding: 16px;
    }

        /* Mobile'da scroll bar daha ince */
        #addShelfModal .modal-body::-webkit-scrollbar {
            width: 4px;
        }
}

@media (max-width: 480px) {
    #addShelfModal .modal-content {
        max-height: 100vh;
        margin: 0;
        border-radius: 16px 16px 0 0;
    }

    #addShelfModal .modal-body {
        max-height: calc(100vh - 120px);
        padding: 16px;
    }

        /* Çok küçük ekranlarda scroll indicator */
        #addShelfModal .modal-body::before {
            content: '';
            position: sticky;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(to right, var(--primary), transparent);
            z-index: 1;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        #addShelfModal .modal-body.scrolled::before {
            opacity: 1;
        }
}

/* =================================
   MAIN APP STYLES
   ================================= */

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 28px 32px;
    border-radius: 16px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

    .header::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 100%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
        z-index: -1;
    }

    .header h1 {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 8px;
        letter-spacing: -0.5px;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .header .subtitle {
        font-size: 1.1rem;
        opacity: 0.9;
        font-weight: 400;
    }

/* User Info */
.user-info {
    position: absolute;
    top: 28px;
    right: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255,255,255,0.15);
    padding: 10px 16px;
    border-radius: 24px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
}

.user-welcome {
    font-size: 0.95rem;
    font-weight: 500;
}

.logout-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

    .logout-btn:hover {
        background: rgba(255,255,255,0.3);
        transform: translateY(-1px);
    }

/* Search Section */
.search-section {
    background: var(--card-bg);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 14px 52px 14px 22px;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 16px;
    outline: none;
    transition: var(--transition);
    background-color: var(--background);
    color: var(--text);
}

    .search-input:focus {
        border-color: var(--primary-light);
        box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.2);
    }

.search-icon {
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 18px;
}

/* Filters */
.filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-select {
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 24px;
    outline: none;
    font-size: 14px;
    background: var(--card-bg);
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

    .filter-select:focus {
        border-color: var(--primary-light);
        box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.2);
    }

/* Main Layout */
.main-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: start;
}

/* Sidebar */
.sidebar {
    position: relative;
    z-index: 1;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: visible; /* visible olarak değiştir */
    padding: 20px;
    min-height: 400px;
}

    .sidebar h3 {
        color: var(--primary);
        margin-bottom: 20px;
        font-size: 1.25rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 10px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--border);
    }
.sidebar-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 20px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid var(--border) !important;
    position: relative;
    z-index: 2;
}
    .sidebar-header h3 {
        margin: 0 !important;
        color: var(--primary) !important;
        font-size: 1.25rem !important;
        font-weight: 600 !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        position: relative;
        z-index: 3;
    }

.store-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 2;
    background: white;
}

.store-content {
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 3;
    background: inherit;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.store-actions {
    padding: 8px;
    display: flex;
    align-items: center;
}

.store-delete-btn {
    background: rgba(245, 101, 101, 0.1);
    color: #f56565;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 0.9rem;
    opacity: 0;
    transform: translateX(10px);
}

    .store-delete-btn:hover {
        background: #f56565;
        color: white;
        transform: translateX(0) scale(1.1);
    }

    .store-delete-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

/* Store item hover efektleri */
.store-item:hover {
    background: rgba(74, 111, 165, 0.05);
    border-color: var(--border);
    transform: translateX(4px);
}

    .store-item:hover .store-delete-btn {
        opacity: 1;
        transform: translateX(0);
    }

.store-item.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 5px 15px rgba(74, 111, 165, 0.2);
    border-color: transparent;
}

    .store-item.active .store-delete-btn {
        background: rgba(255, 255, 255, 0.2);
        color: white;
        opacity: 1;
    }

    .store-item.active:hover .store-delete-btn {
        background: rgba(245, 101, 101, 0.9);
        color: white;
    }

/* Store name ve store info stilleri */
.store-name {
    font-weight: 600 !important;
    color: var(--text-dark) !important;
    margin-bottom: 4px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    position: relative;
    z-index: 4;
    text-shadow: none; /* Text shadow kaldır */
    background: transparent;
}
    .store-name i {
        color: var(--primary) !important;
        opacity: 1 !important;
        font-size: 1rem !important;
    }

/* Active state düzeltmeleri */
.store-item.active .store-content {
    background: linear-gradient(135deg, var(--primary), #6b8cbe) !important;
    color: white !important;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(74, 111, 165, 0.3);
}

.store-item.active .store-name {
    color: white !important;
}

    .store-item.active .store-name i {
        color: white !important;
    }

.store-item.active .store-info {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Add store button düzeltmeleri */
.add-store-btn {
    background: var(--primary) !important;
    color: white !important;
    border: none !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: var(--transition) !important;
    position: relative;
    z-index: 5;
}

    .add-store-btn:hover {
        transform: scale(1.1) !important;
        box-shadow: 0 4px 12px rgba(74, 111, 165, 0.3) !important;
    }

/* Store actions düzeltmeleri */
.store-actions {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.store-item:hover .store-actions {
    opacity: 1;
}

.store-delete-btn {
    background: rgba(245, 101, 101, 0.1) !important;
    color: #f56565 !important;
    border: none !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    font-size: 0.8rem !important;
}

    .store-delete-btn:hover {
        background: #f56565 !important;
        color: white !important;
    }

/* Loading state düzeltmeleri */
#storeLoading {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
    position: relative;
    z-index: 2;
    background: white;
}

/* CSS değişkenleri (eğer tanımlı değilse) */
:root {
    --primary: #4a6fa5;
    --text-dark: #2d3748;
    --text-light: #718096;
    --border: #e2e8f0;
    --transition: all 0.3s ease;
}

/* Responsive düzeltmeleri */
@media (max-width: 768px) {
    .sidebar {
        padding: 16px;
        margin-bottom: 20px;
    }

    .store-content {
        padding: 10px 12px;
    }

    .store-name {
        font-size: 0.9rem !important;
    }

    .store-info {
        font-size: 0.8rem !important;
    }
}

/* Hover effects */
.store-item:not(.active):hover .store-content {
    background: #f8f9ff !important;
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(74, 111, 165, 0.1);
}

.store-info {
    font-size: 0.85rem !important;
    color: var(--text-light) !important;
    position: relative;
    z-index: 4;
    background: transparent;
    text-shadow: none;
}

.store-item {
    margin-bottom: 8px;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    background: white; /* Beyaz arka plan ekle */
}
    .store-item:hover {
        background: rgba(74, 111, 165, 0.05);
        border-color: var(--border);
        transform: translateX(4px);
    }

    .store-item.active {
        background: linear-gradient(135deg, var(--primary), var(--primary-light));
        color: white;
        box-shadow: 0 5px 15px rgba(74, 111, 165, 0.2);
        border-color: transparent;
    }

.store-name {
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.store-info {
    font-size: 0.85rem;
    opacity: 0.8;
    color: inherit;
}

/* Content Area */
.content-area {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.content-title {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.25px;
}

.add-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 24px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 6px rgba(74, 111, 165, 0.15);
}

    .add-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 15px rgba(74, 111, 165, 0.25);
        background: linear-gradient(135deg, var(--primary-light), var(--primary));
    }

/* Stats Bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

    .stat-card::before {
        content: '';
        position: absolute;
        top: -20px;
        right: -20px;
        width: 60px;
        height: 60px;
        background: rgba(255,255,255,0.1);
        border-radius: 50%;
    }

    .stat-card:nth-child(2) {
        background: linear-gradient(135deg, #6b8cbe, #4a6fa5);
    }

    .stat-card:nth-child(3) {
        background: linear-gradient(135deg, #ff7e5f, #f85a3e);
    }

    .stat-card:nth-child(4) {
        background: linear-gradient(135deg, #48bb78, #38a169);
    }

    .stat-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    }

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Shelves Grid */
.shelves-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.shelf-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

    .shelf-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
        border-color: var(--primary-light);
    }

.shelf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.shelf-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.shelf-count {
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 36px;
    text-align: center;
}

.shelf-description {
    color: var(--text-light);
    margin-bottom: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.product-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-tag {
    background: var(--background);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--text-light);
    border: 1px solid var(--border);
}

/* Login Overlay */
.login-check-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    color: white;
}

.login-check-content {
    text-align: center;
    max-width: 400px;
    padding: 40px;
}

    .login-check-content i {
        font-size: 3rem;
        margin-bottom: 24px;
        animation: spin 1s linear infinite;
        color: rgba(255,255,255,0.8);
    }

    .login-check-content h2 {
        font-weight: 500;
        margin-bottom: 16px;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Loading & Empty States */
.loading {
    display: none;
    text-align: center;
    padding: 60px 20px;
    color: var(--primary);
}

    .loading.show {
        display: block;
    }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    grid-column: 1 / -1;
}

    .empty-state i {
        font-size: 4rem;
        margin-bottom: 20px;
        color: var(--border);
        opacity: 0.5;
    }

    .empty-state h3 {
        font-weight: 500;
        margin-bottom: 8px;
        color: var(--text);
    }

    .empty-state p {
        max-width: 400px;
        margin: 0 auto;
    }

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 240px 1fr;
        gap: 24px;
    }

    .shelves-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 16px;
    }

    .main-content {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: 2;
        position: static;
    }

    .content-area {
        order: 1;
    }

    .header h1 {
        font-size: 2rem;
        padding-right: 120px;
    }

    .user-info {
        position: static;
        margin-top: 16px;
        justify-content: flex-start;
        width: fit-content;
    }

    .stats-bar {
        grid-template-columns: 1fr 1fr;
    }

    /* Login page mobile styles */
    .login-container {
        margin: 10px;
    }

    .login-header {
        padding: 30px 20px;
    }

    .login-form {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.75rem;
    }

    .stats-bar {
        grid-template-columns: 1fr;
    }

    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-select {
        width: 100%;
    }

    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* Micro-interactions */
.store-item, .shelf-card, .stat-card {
    will-change: transform;
}

    /* Focus states for accessibility */
    button:focus, .store-item:focus, .shelf-card:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.5);
    }

/* Modern scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--primary);
    }


@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

/* Shelf Detail Modal */
#shelfDetailModal {
    animation: modalFadeIn 0.3s ease;
}

/* Product Card Hover Effects */
.product-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
    border-color: var(--primary) !important;
}

/* Button Hover Effects */
.btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Mobile Responsive for Modal */
@media (max-width: 768px) {
    .shelf-modal-content {
        margin: 10px !important;
        max-height: calc(100vh - 20px) !important;
    }

    .products-grid {
        grid-template-columns: 1fr !important;
    }

    .shelf-modal-header {
        flex-direction: column !important;
        gap: 16px !important;
        align-items: stretch !important;
    }

    .product-actions {
        flex-direction: column !important;
    }
}
@keyframes modalFadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none; /* Başlangıçta gizli */
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

    /* Modal gösterme */
    .modal-overlay.show {
        display: flex;
    }

/* Modal content */
.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Modal header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    background: var(--primary);
    color: white;
}

    .modal-header h3 {
        margin: 0;
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 1.2rem;
    }

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

    .modal-close:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.1);
    }

/* Modal body */
.modal-body {
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        color: var(--text);
        font-weight: 600;
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 12px;
        border: 1px solid var(--border);
        border-radius: 8px;
        font-size: 14px;
        outline: none;
        transition: var(--transition);
        font-family: inherit;
        box-sizing: border-box;
    }

        .form-group input:focus,
        .form-group textarea:focus {
            border-color: var(--primary-light);
            box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.2);
        }

    .form-group textarea {
        resize: vertical;
        min-height: 80px;
    }

/* Modal footer */
.modal-footer {
    display: flex;
    gap: 12px;
    padding: 24px;
    border-top: 1px solid var(--border);
    background: var(--background);
}

.btn-cancel {
    flex: 1;
    padding: 12px;
    background: var(--text-light);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

    .btn-cancel:hover {
        background: var(--text);
        transform: translateY(-1px);
    }

.btn-primary {
    flex: 2;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

    .btn-primary:hover:not(:disabled) {
        background: var(--primary-light);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(74, 111, 165, 0.3);
    }

    .btn-primary:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

/* Mobile responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10px;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 16px;
    }

    .modal-footer {
        flex-direction: column;
    }
}
.form-select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
    font-family: inherit;
    box-sizing: border-box;
    background: var(--card-bg);
    color: var(--text);
    cursor: pointer;
}

    .form-select:focus {
        border-color: var(--primary-light);
        box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.2);
    }

/* Uppercase input */
.uppercase-input {
    text-transform: uppercase;
}

    .uppercase-input::placeholder {
        text-transform: none;
    }

/* Button loading state */
.btn-loading {
    display: none;
}

.shelf-delete-btn:hover {
    background: #f56565 !important;
    color: white !important;
    transform: translateX(0) scale(1.1) !important;
}

.shelf-card:hover .shelf-delete-btn {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.shelf-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.shelf-code {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 12px;
}
.shelf-delete-btn {
    background: rgba(245, 101, 101, 0.1);
    color: #f56565;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 0.9rem;
    opacity: 0;
    transform: translateX(10px);
}

    .shelf-delete-btn:hover {
        background: #f56565 !important;
        color: white !important;
        transform: translateX(0) scale(1.1) !important;
    }

    .shelf-delete-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

/* Raf kartı hover efektleri */
.shelf-card:hover .shelf-delete-btn {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.shelf-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.shelf-code {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 12px;
    font-weight: 500;
}

    .shelf-code strong {
        color: var(--primary);
        font-weight: 600;
    }

/* Modal loading durumları */
.btn-loading {
    display: none;
    color: rgba(255, 255, 255, 0.8);
}

.btn-primary .btn-loading {
    display: none;
}

/* Form validation feedback */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(245, 101, 101, 0.2);
}

.form-group .error-message {
    color: var(--error);
    font-size: 0.8rem;
    margin-top: 4px;
    display: block;
}

/* Raf kartı geliştirmeleri */
.shelf-card {
    position: relative;
    transition: var(--transition);
}

    .shelf-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
        border-color: var(--primary-light);
    }

.shelf-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.shelf-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

/* Responsive tasarım iyileştirmeleri */
@media (max-width: 768px) {
    .shelf-actions {
        flex-direction: column;
        align-items: flex-end;
        gap: 4px;
    }

    .shelf-delete-btn {
        opacity: 1;
        transform: translateX(0);
        position: static;
    }

    .shelf-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .shelf-actions {
        align-self: flex-end;
        flex-direction: row;
        align-items: center;
    }
}

/* site.css dosyasının sonuna eklenecek ürün işlemleri CSS stilleri */

/* =================================
   ÜRÜN MODAL STİLLERİ
   ================================= */

/* Product Modal Specific Styles */
.product-modal {
    max-width: 900px;
    width: 95%;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
}

    .product-modal .modal-body {
        max-height: calc(95vh - 140px); /* Header ve footer yüksekliği çıkarıldı */
        overflow-y: auto;
        flex: 1;
    }

    .product-modal .modal-header,
    .product-modal .modal-footer {
        flex-shrink: 0;
    }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Autocomplete Styles */
.autocomplete-group {
    position: relative;
}

.autocomplete-container {
    position: relative;
}

.autocomplete-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
    background: var(--card-bg);
    color: var(--text);
}

    .autocomplete-input:focus {
        border-color: var(--primary-light);
        box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.2);
        background: white;
    }

.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1001;
    display: none;
    box-shadow: var(--shadow-md);
}

.suggestion-item {
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

    .suggestion-item:hover {
        background: var(--background);
    }

    .suggestion-item:last-child {
        border-bottom: none;
    }

.suggestion-main {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.suggestion-details {
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Price Section */
.price-section {
    background: linear-gradient(135deg, var(--background), #f0f2ff);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    position: relative;
}

    .price-section::before {
        content: '';
        position: absolute;
        top: -1px;
        left: -1px;
        right: -1px;
        bottom: -1px;
        background: linear-gradient(135deg, var(--primary), var(--primary-light));
        border-radius: 12px;
        z-index: -1;
        opacity: 0.1;
    }

    .price-section h4 {
        margin: 0 0 16px 0;
        color: var(--primary);
        font-size: 1rem;
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 600;
    }

.price-input {
    position: relative;
    display: flex;
    align-items: center;
}

    .price-input input {
        flex: 1;
        padding-right: 50px;
        font-family: 'Courier New', monospace;
        font-weight: 600;
    }

    .price-input.highlighted {
        position: relative;
    }

        .price-input.highlighted input {
            border-color: var(--success);
            background: rgba(72, 187, 120, 0.05);
            box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.1);
        }

        .price-input.highlighted::before {
            content: '💰';
            position: absolute;
            left: 12px;
            z-index: 1;
        }

        .price-input.highlighted input {
            padding-left: 40px;
        }

.currency {
    position: absolute;
    right: 12px;
    color: var(--primary);
    font-weight: 700;
    pointer-events: none;
    font-size: 0.9rem;
}

.price-calculator {
    margin-top: 16px;
    padding: 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.margin-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 4px 0;
}

    .margin-info:last-child {
        margin-bottom: 0;
        border-top: 1px solid var(--border);
        padding-top: 8px;
    }

.margin-label {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.margin-value {
    font-weight: 700;
    color: var(--success);
    font-size: 1rem;
    font-family: 'Courier New', monospace;
}

/* Selected Shelf Info */
.selected-shelf-info {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

    .selected-shelf-info::before {
        content: '';
        position: absolute;
        top: -20px;
        right: -20px;
        width: 60px;
        height: 60px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
    }

    .selected-shelf-info h4 {
        margin: 0 0 12px 0;
        font-size: 1rem;
        display: flex;
        align-items: center;
        gap: 8px;
        position: relative;
        z-index: 1;
    }

.shelf-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.shelf-name {
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1.2;
}

.shelf-code {
    opacity: 0.9;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Button Styles */
.btn-secondary {
    background: var(--text-light);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

    .btn-secondary:hover {
        background: var(--text);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

/* =================================
   ÜRÜN KART STİLLERİ
   ================================= */

/* Ürün silme butonu */
.product-delete-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(245, 101, 101, 0.1);
    color: #f56565;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
    z-index: 10;
    font-size: 0.8rem;
}

    .product-delete-btn:hover {
        background: #f56565;
        color: white;
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(245, 101, 101, 0.3);
    }

    .product-delete-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

/* Ürün kartı hover efektleri */
.product-card {
    position: relative;
    transition: all 0.3s ease;
}

    .product-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        border-color: #4a6fa5;
    }

        .product-card:hover .product-delete-btn {
            opacity: 1;
            transform: scale(1);
        }

.product-delete-btn:hover {
    background: #f56565 !important;
    color: white !important;
    transform: scale(1.1) !important;
}

/* Ürün action buttons */
.product-actions {
    display: flex;
    gap: 8px;
}

    .product-actions .btn {
        flex: 1;
        padding: 10px 12px;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        font-size: 0.85rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        transition: var(--transition);
        text-decoration: none;
    }

.btn-edit {
    background: var(--warning);
    color: white;
}

    .btn-edit:hover {
        background: #dd7324;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(237, 137, 54, 0.3);
    }

.btn-sell {
    background: var(--success);
    color: white;
}

    .btn-sell:hover {
        background: #38a169;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
    }

/* =================================
   NOTIFICATION STİLLERİ
   ================================= */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    font-weight: 500;
    max-width: 350px;
    word-wrap: break-word;
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-success {
    background: var(--success);
    color: white;
}

.notification-error {
    background: var(--error);
    color: white;
}

.notification-info {
    background: var(--primary);
    color: white;
}

.notification-warning {
    background: var(--warning);
    color: white;
}

.notification::before {
    content: '';
    width: 4px;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 4px 0 0 4px;
}

/* =================================
   RESPONSIVE TASARIM
   ================================= */

@media (max-width: 768px) {
    /* Ürün modal responsive */
    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .product-modal {
        width: 98%;
        margin: 10px;
        max-height: 95vh;
    }

    /* Ürün kartı responsive */
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-actions {
        flex-direction: column;
        gap: 8px;
    }

    .product-delete-btn {
        opacity: 1;
        transform: scale(1);
        position: relative;
        top: auto;
        right: auto;
        align-self: flex-end;
        margin-bottom: 8px;
    }

    .price-section {
        padding: 16px;
    }

    .selected-shelf-info {
        padding: 16px;
    }

    /* Notification responsive */
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .product-modal {
        width: 100%;
        margin: 0;
        border-radius: 16px 16px 0 0;
        max-height: 100vh;
        height: 100vh;
    }

    .modal-header {
        padding: 16px;
    }

    .modal-body {
        padding: 16px;
    }

    .modal-footer {
        padding: 16px;
        flex-direction: column;
        gap: 8px;
    }

    .form-column {
        gap: 12px;
    }

    .price-section {
        padding: 12px;
    }

    .selected-shelf-info {
        padding: 12px;
    }
}

/* =================================
   ANIMASYONLAR
   ================================= */

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes productCardPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 111, 165, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(74, 111, 165, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(74, 111, 165, 0);
    }
}

/* Yeni eklenen ürün animasyonu */
.product-card.new-product {
    animation: productCardPulse 2s;
}

/* Loading states */
.btn-loading {
    display: none;
    color: rgba(255, 255, 255, 0.8);
}

.btn-primary .btn-loading {
    display: none;
}

/* Form validation */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(245, 101, 101, 0.2);
}

.form-group .error-message {
    color: var(--error);
    font-size: 0.8rem;
    margin-top: 4px;
    display: block;
    font-weight: 500;
}

/* Success states */
.form-group input.success {
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.2);
}

/* Scrollbar styling for suggestions */
.autocomplete-suggestions::-webkit-scrollbar {
    width: 6px;
}

.autocomplete-suggestions::-webkit-scrollbar-track {
    background: var(--background);
}

.autocomplete-suggestions::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 3px;
}

    .autocomplete-suggestions::-webkit-scrollbar-thumb:hover {
        background: var(--primary);
    }

/* Arama Sonuçları Stilleri */
.search-results-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.search-header {
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 30px;
    border-radius: 16px;
    color: white;
    box-shadow: var(--shadow-md);
    position: relative;
}

    .search-header h1 {
        margin-bottom: 10px;
        font-size: 1.8rem;
        display: flex;
        align-items: center;
        gap: 12px;
    }

.search-info {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

.search-term {
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
}

.results-count {
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
}

    .back-button:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: translateY(-2px);
        color: white;
    }

.search-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
        border-color: var(--primary-light);
    }

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--success);
}

.product-details {
    margin-bottom: 20px;
}

.product-info-row {
    display: flex;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.product-info-label {
    color: var(--text-light);
    width: 80px;
    font-weight: 500;
}

.product-info-value {
    color: var(--text);
    font-weight: 600;
    flex: 1;
}

.product-location {
    background: var(--background);
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.location-icon {
    background: var(--primary);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.location-details {
    flex: 1;
}

.store-name {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 2px;
}

.shelf-name {
    font-size: 0.9rem;
    color: var(--text-light);
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-action {
    padding: 10px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-view {
    background: var(--primary);
    color: white;
}

    .btn-view:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
    }

.btn-edit {
    background: var(--warning);
    color: white;
}

    .btn-edit:hover {
        background: darken(var(--warning), 10%);
        transform: translateY(-2px);
    }

.btn-sell {
    background: var(--success);
    color: white;
}

    .btn-sell:hover {
        background: darken(var(--success), 10%);
        transform: translateY(-2px);
    }

.btn-delete {
    background: var(--error);
    color: white;
}

    .btn-delete:hover {
        background: darken(var(--error), 10%);
        transform: translateY(-2px);
    }

.empty-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

    .empty-results i {
        font-size: 4rem;
        color: var(--text-lighter);
        margin-bottom: 20px;
    }

    .empty-results h2 {
        font-size: 1.5rem;
        margin-bottom: 10px;
        color: var(--text);
    }

    .empty-results p {
        font-size: 1.1rem;
        margin-bottom: 30px;
        color: var(--text-light);
    }

.suggestions {
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
}

    .suggestions h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
        color: var(--primary);
    }

    .suggestions ul {
        padding-left: 20px;
    }

    .suggestions li {
        margin-bottom: 5px;
        color: var(--text);
    }

@media (max-width: 768px) {
    .search-results {
        grid-template-columns: 1fr;
    }

    .product-actions {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .product-actions {
        grid-template-columns: 1fr;
    }

    .search-header {
        padding: 20px;
    }

        .search-header h1 {
            font-size: 1.5rem;
        }

    .search-info {
        font-size: 0.9rem;
    }
}

/* Ürün Detay Sayfası Stilleri */
.product-detail-container {
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.product-detail-header {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

    .product-detail-header h1 {
        font-size: 1.8rem;
        color: var(--primary);
        margin: 0;
    }

.product-detail-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.product-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.product-title {
    font-size: 1.8rem;
    color: var(--primary);
    margin: 0;
    font-weight: 700;
}

.product-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--success);
}

.product-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.info-section {
    margin-bottom: 30px;
    background: var(--background);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.section-title {
    background: var(--primary);
    color: white;
    padding: 12px 16px;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-content {
    padding: 16px;
}

.info-row {
    display: flex;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

    .info-row:last-child {
        margin-bottom: 0;
    }

.info-label {
    color: var(--text-light);
    width: 120px;
    font-weight: 500;
}

.info-value {
    color: var(--text);
    font-weight: 600;
    flex: 1;
}

.price-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--success);
}

.stock-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.stock-success {
    background: rgba(72, 187, 120, 0.1);
    color: var(--success);
}

.stock-warning {
    background: rgba(237, 137, 54, 0.1);
    color: var(--warning);
}

.stock-danger {
    background: rgba(245, 101, 101, 0.1);
    color: var(--error);
}

.margin-success {
    color: var(--success);
}

.margin-warning {
    color: var(--warning);
}

.margin-danger {
    color: var(--error);
}

.location-card {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border);
}

    .location-card:last-child {
        margin-bottom: 0;
    }

.location-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.location-info {
    flex: 1;
}

.location-title {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.location-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

.description-box {
    background: white;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    line-height: 1.6;
}

.product-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.btn-action {
    padding: 14px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

@media (max-width: 768px) {
    .product-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-actions {
        grid-template-columns: 1fr;
    }

    .product-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Canlı arama için CSS */
.search-box {
    position: relative;
}

.search-input.loading {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%234a6fa5" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><path d="M12 6v6l4 2"></path></svg>');
    background-repeat: no-repeat;
    background-position: right 40px center;
    background-size: 20px;
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 5px;
    border: 1px solid var(--border);
}

.search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s;
}

    .search-result-item:last-child {
        border-bottom: none;
    }

    .search-result-item:hover {
        background: var(--background);
    }

.result-name {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.result-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    font-size: 0.85rem;
}

.result-code {
    color: var(--text-light);
}

.result-price {
    font-weight: 600;
    color: var(--primary);
}

.result-location {
    font-size: 0.8rem;
    color: var(--text-light);
}

.search-message {
    padding: 16px;
    text-align: center;
    color: var(--text-light);
}
/* Ürün resmi stilleri - site.css dosyasına eklenecek */
.product-image-container {
    margin: 15px 0;
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    border: 1px solid var(--border);
    position: relative;
}

.product-thumbnail {
    max-width: 100%;
    height: 120px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
}

    .product-thumbnail:hover {
        transform: scale(1.05);
    }

.product-image {
    max-width: 100%;
    max-height: 400px;
    display: block;
    margin: 0 auto;
    cursor: zoom-in;
    transition: transform 0.3s ease;
    object-fit: contain;
}

    .product-image:hover {
        transform: scale(1.02);
    }

.image-hint {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0.8;
}

/* Resim yükleme alanı stilleri */
.image-upload-group {
    margin-bottom: 24px;
}

.image-upload-container {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
    background: var(--background);
}

    .image-upload-container.dragover {
        border-color: var(--primary);
        background: rgba(74, 111, 165, 0.05);
    }

.image-preview {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    margin-bottom: 16px;
    border-radius: 8px;
    background: white;
}

#previewImg {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-light);
}

    .upload-placeholder i {
        font-size: 3rem;
        color: var(--border);
    }

.image-upload-controls {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.btn-select-image, .btn-remove-image {
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-select-image {
    background: var(--primary);
    color: white;
    flex: 1;
}

    .btn-select-image:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
    }

.btn-remove-image {
    background: var(--error);
    color: white;
}

    .btn-remove-image:hover {
        background: #e04545;
        transform: translateY(-2px);
    }

.image-help-text {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 8px;
    margin-bottom: 0;
}

.upload-progress {
    margin-top: 12px;
    height: 4px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* Resim görüntüleyici modal */
.image-viewer-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.image-viewer-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
}

#fullSizeImage, #searchFullSizeImage, #fullSizeProductImage {
    max-width: 90%;
    max-height: 80vh;
    margin: auto;
    display: block;
    object-fit: contain;
    border: 2px solid white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.close-viewer {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
}

    .close-viewer:hover {
        color: var(--primary);
        transform: scale(1.1);
    }

.image-caption {
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 1.2rem;
    max-width: 80%;
}

/* Resim yükleme mesajları */
.image-upload-message {
    padding: 8px 12px;
    margin-top: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

    .image-upload-message.success {
        background: rgba(72, 187, 120, 0.1);
        color: var(--success);
        border-left: 3px solid var(--success);
    }

    .image-upload-message.error {
        background: rgba(245, 101, 101, 0.1);
        color: var(--error);
        border-left: 3px solid var(--error);
    }

/* Mobil uyumluluk */
@media (max-width: 768px) {
    .product-image-container {
        margin: 10px 0;
    }

    .product-thumbnail {
        height: 100px;
    }

    .product-image {
        max-height: 300px;
    }

    .image-preview {
        height: 150px;
    }
}

/* Resim yükleme alanı stilleri */
.image-upload-group {
    margin-bottom: 24px;
}

.image-upload-container {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
    background: var(--background);
}

    .image-upload-container.dragover {
        border-color: var(--primary);
        background: rgba(74, 111, 165, 0.05);
    }

.image-preview {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    margin-bottom: 16px;
    border-radius: 8px;
    background: white;
}

#previewImg {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-light);
}

    .upload-placeholder i {
        font-size: 3rem;
        color: var(--border);
    }

.image-upload-controls {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.btn-select-image, .btn-remove-image {
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-select-image {
    background: var(--primary);
    color: white;
    flex: 1;
}

    .btn-select-image:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
    }

.btn-remove-image {
    background: var(--error);
    color: white;
}

    .btn-remove-image:hover {
        background: #e04545;
        transform: translateY(-2px);
    }

.image-help-text {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 8px;
    margin-bottom: 0;
}

.upload-progress {
    margin-top: 12px;
    height: 4px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 4px;
}
/* Live Search Dropdown Stilleri */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

.search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f7fafc;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .search-result-item:hover {
        background: #f8f9ff;
        transform: translateX(4px);
    }

    .search-result-item:last-child {
        border-bottom: none;
    }

.result-name {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.result-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.result-code {
    font-size: 0.85rem;
    color: #718096;
    background: #edf2f7;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.result-price {
    font-weight: 700;
    color: #16a34a;
    font-size: 0.9rem;
}

.result-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.result-hint {
    color: #a0aec0;
    font-size: 0.75rem;
    font-style: italic;
}

.search-message {
    padding: 16px;
    text-align: center;
    color: #718096;
    font-size: 0.9rem;
}

    .search-message i {
        margin-right: 8px;
    }

.search-error {
    color: #f56565;
    background: #fed7d7;
}

/* Loading state için input */
.search-input.loading {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12a9 9 0 1 1-6.219-8.56"/></svg>');
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Responsive tasarım */
@media (max-width: 768px) {
    .search-results-dropdown {
        max-height: 300px;
    }

    .search-result-item {
        padding: 10px 12px;
    }

    .result-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .result-price {
        align-self: flex-end;
    }
}
/* Live Search Dropdown Stilleri */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

/* Arama terimi vurgulaması */
.search-highlight {
    background: linear-gradient(135deg, #4a6fa5, #6b8cbe);
    color: white;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(74, 111, 165, 0.3);
    animation: highlightPulse 0.6s ease-out;
}

@keyframes highlightPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 1px 3px rgba(74, 111, 165, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 2px 8px rgba(74, 111, 165, 0.5);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 1px 3px rgba(74, 111, 165, 0.3);
    }
}

.search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f7fafc;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .search-result-item:hover {
        background: #f8f9ff;
        transform: translateX(4px);
    }

    .search-result-item:last-child {
        border-bottom: none;
    }

.result-name {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.result-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.result-code {
    font-size: 0.85rem;
    color: #718096;
    background: #edf2f7;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.result-price {
    font-weight: 700;
    color: #16a34a;
    font-size: 0.9rem;
}

.result-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.result-hint {
    color: #a0aec0;
    font-size: 0.75rem;
    font-style: italic;
}

.search-message {
    padding: 16px;
    text-align: center;
    color: #718096;
    font-size: 0.9rem;
}

    .search-message i {
        margin-right: 8px;
    }

.search-error {
    color: #f56565;
    background: #fed7d7;
}

/* Loading state için input */
.search-input.loading {
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12a9 9 0 1 1-6.219-8.56"/></svg>');
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Responsive tasarım */
@media (max-width: 768px) {
    .search-results-dropdown {
        max-height: 300px;
    }

    .search-result-item {
        padding: 10px 12px;
    }

    .result-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .result-price {
        align-self: flex-end;
    }
}
/* SearchResults.cshtml dosyasına eklenecek CSS stilleri */
/* <style> tagı içine veya ayrı CSS dosyasına ekleyin */

/* Arama terimi vurgulaması - Index.cshtml ile aynı stil */
.search-highlight {
    background: linear-gradient(135deg, #4a6fa5, #6b8cbe);
    color: white;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(74, 111, 165, 0.3);
    animation: searchHighlightFade 0.8s ease-out;
}

/* Arama teriminin başlıktaki vurgulanması */
.search-term-highlight {
    background: linear-gradient(135deg, #ed8936, #f6ad55);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(237, 137, 54, 0.3);
    display: inline-block;
    animation: searchTermPulse 1s ease-out;
}

/* Animasyonlar */
@keyframes searchHighlightFade {
    0% {
        background: #fbbf24;
        transform: scale(1.1);
    }

    100% {
        background: linear-gradient(135deg, #4a6fa5, #6b8cbe);
        transform: scale(1);
    }
}

@keyframes searchTermPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 4px rgba(237, 137, 54, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(237, 137, 54, 0.5);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 2px 4px rgba(237, 137, 54, 0.3);
    }
}

/* Ürün kartlarında vurgulanan içerik için ek stiller */
.product-card .search-highlight {
    font-size: inherit;
    line-height: inherit;
}

.product-name .search-highlight {
    font-size: 1.1rem;
    padding: 2px 6px;
}

.product-info-value .search-highlight {
    font-size: 0.9rem;
    padding: 1px 4px;
}

/* Hover efektleri */
.product-card:hover .search-highlight {
    box-shadow: 0 2px 6px rgba(74, 111, 165, 0.4);
    transform: scale(1.02);
    transition: all 0.2s ease;
}

/* Dark mode desteği (isteğe bağlı) */
@media (prefers-color-scheme: dark) {
    .search-highlight {
        background: linear-gradient(135deg, #3182ce, #4299e1);
        color: white;
    }

    .search-term-highlight {
        background: linear-gradient(135deg, #d69e2e, #ecc94b);
        color: #1a202c;
    }
}