/* Global Styles */
:root {
    --primary-color: #ff6b35;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --orange-gradient: linear-gradient(135deg, #ff6b35, #f7931e);
    --gray-gradient: linear-gradient(135deg, #6c757d, #495057);
    --light-gray: #e9ecef;
    --medium-gray: #6c757d;
    --dark-gray: #495057;
    --border-radius: 0.5rem;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
    padding-top: 85px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

.display-4 {
    font-weight: 700;
}

/* Navigation */
.navbar {
    transition: var(--transition);
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid var(--light-gray);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    align-items: center;
    min-height: 85px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar-brand-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 85px;
    padding: 0.5rem 0;
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-bottom: 0;
    line-height: 1;
}

.navbar-logo {
    height: 225px;
    width: auto;
    max-width: 675px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.navbar-subtitle {
    font-size: 0.65rem;
    color: var(--primary-color);
    font-weight: 400;
    margin-top: -2px;
    opacity: 0.6;
    letter-spacing: 0.5px;
}

.navbar-brand:hover {
    color: var(--primary-color) !important;
    text-decoration: none;
}

.navbar-nav .nav-link {
    font-weight: 500;
    font-size: 0.8rem;
    transition: var(--transition);
    padding: 0.4rem 0.6rem !important;
    margin: 0 0.1rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.dropdown-menu {
    font-size: 0.85rem;
    border: none;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

/* Mobile Navigation Improvements */
@media (max-width: 991px) {
    .navbar-collapse {
        background: white;
        border-radius: 0.5rem;
        margin-top: 0.5rem;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
    }
    
    .navbar-nav .nav-link {
        border-bottom: 1px solid var(--light-gray);
        margin: 0 0.5rem;
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    .navbar-nav .nav-link[onclick="showComparisonCart()"] {
        padding: 0.3rem 0.6rem !important;
        font-size: 0.7rem;
        margin-left: 0.2rem;
    }
    
    .dropdown-menu {
        border: none;
        box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
        margin: 0 1rem;
        font-size: 0.85rem;
    }
}

/* Hero Section */
.hero-section {
    background: var(--orange-gradient);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Search Container */
.search-container {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Sepetten gelen ürünler için özel stil */
.search-container input[style*="background-color: rgb(240, 248, 255)"] {
    border-left: 4px solid var(--primary-color);
    position: relative;
}

.search-container input[style*="background-color: rgb(240, 248, 255)"]::before {
    content: "🛒";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    pointer-events: none;
}

.vs-badge {
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    margin: 0 auto;
}

/* Category Cards */
.category-card {
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
    background: var(--orange-gradient);
    color: white;
}

.category-card i {
    transition: var(--transition);
}

.category-card:hover i {
    transform: scale(1.1);
    color: white;
}

/* Feature Cards */
.feature-card {
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

/* Popular Comparisons */
.comparison-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
}

.comparison-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.comparison-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.comparison-card .card-body {
    padding: 1.5rem;
}

.product-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.brand-name {
    color: var(--secondary-color);
    font-size: 0.875rem;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    border: none;
    padding: 0.75rem 1.5rem;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: #0b5ed7;
    border-color: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 0.5rem rgba(13, 110, 253, 0.3);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Form Controls */
.form-control {
    border-radius: var(--border-radius);
    border: 1px solid var(--light-gray);
    transition: var(--transition);
    padding: 0.75rem 1rem;
    background-color: white;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
    background-color: white;
}

/* Mobile Form Improvements */
@media (max-width: 768px) {
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.875rem 1rem;
    }
    
    .form-control-lg {
        font-size: 16px;
        padding: 1rem 1.25rem;
    }
    
    .input-group .form-control {
        border-right: none;
    }
    
    .input-group .btn {
        border-left: none;
    }
}

.form-control-lg {
    padding: 1rem 1.25rem;
    font-size: 1.125rem;
}

/* Footer */
.footer-black {
    background: var(--dark-gray);
    border-top: 1px solid var(--medium-gray);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Footer oppozi link hover efekti */
footer h5 a:hover {
    color: var(--primary-color) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .search-container {
        margin: 0 1rem;
    }
    
    .vs-badge {
        margin: 1rem auto;
    }
    
    .category-card {
        margin-bottom: 1rem;
    }
    
    /* Mobile Navigation */
    .navbar-nav {
        text-align: center;
        flex-direction: row;
        gap: 0.1rem;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    
    .navbar-nav .nav-link {
        padding: 0.3rem 0.4rem;
        border-bottom: none;
        font-size: 0.75rem;
    }
    
    /* Mobile Product Cards */
    .product-card {
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    .product-card .card-body {
        padding: 1rem;
    }
    
    /* Mobile Search */
    .search-container .row {
        flex-direction: column;
    }
    
    .search-container .col-md-3 {
        margin-bottom: 0.5rem;
    }
    
    /* Mobile Buttons */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Mobile Modals */
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    /* Mobile Tables */
    .comparison-table {
        font-size: 0.875rem;
    }
    
    .comparison-table td,
    .comparison-table th {
        padding: 0.5rem 0.25rem;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .search-container {
        padding: 1.5rem !important;
    }
    
    /* Extra Small Mobile */
    .hero-section {
        padding: 1.5rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    /* Mobile Navigation */
    .navbar-brand {
        font-size: 1.4rem;
    }
    
    .navbar-logo {
        height: 180px;
        max-width: 540px;
    }
    
    .navbar {
        min-height: 70px;
    }
    
    .navbar-brand-container {
        min-height: 70px;
        padding: 0.25rem 0;
    }
    
    .navbar-subtitle {
        font-size: 0.6rem;
    }
    
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 1rem;
    }
    
    .navbar-nav {
        flex-direction: row;
        gap: 0.05rem;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    
    .navbar-nav .nav-link {
        padding: 0.25rem 0.3rem;
        font-size: 0.7rem;
    }
    
    .navbar-nav .nav-link[onclick="showComparisonCart()"] {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.65rem;
        margin-left: 0.1rem;
    }
    
    /* Mobile Cards */
    .product-card {
        margin: 0 0.5rem 1rem 0.5rem;
    }
    
    .product-card .product-image {
        height: 150px;
    }
    
    /* Mobile Forms */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Mobile Modals */
    .modal-dialog {
        margin: 0.25rem;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 0.75rem;
    }
    
    /* Mobile Tables */
    .comparison-table {
        font-size: 0.75rem;
    }
    
    .comparison-table td,
    .comparison-table th {
        padding: 0.25rem;
    }
    
    /* Mobile Buttons */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    /* Mobile Search */
    .search-container .form-control {
        font-size: 16px;
        padding: 0.75rem;
    }
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.shadow-sm {
    box-shadow: var(--box-shadow) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.rounded-3 {
    border-radius: var(--border-radius) !important;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus States */
.btn:focus,
.form-control:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .search-container {
        display: none !important;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
    }
}

/* Excel Import Section Styles */
.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    background: #f8f9fa;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: #e9ecef;
}

.upload-area.dragover {
    border-color: var(--primary-color);
    background: #e3f2fd;
    transform: scale(1.02);
}

.upload-area.dragover .upload-content {
    opacity: 0.7;
}

.upload-content {
    transition: var(--transition);
}

.template-preview {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid #dee2e6;
}

.template-preview h6 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.template-preview ul li {
    padding: 0.25rem 0;
    font-size: 0.875rem;
}

.progress {
    height: 0.5rem;
    border-radius: 0.25rem;
}

.progress-bar {
    transition: width 0.3s ease;
}

.imported-product-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
}

.imported-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.imported-product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.imported-product-card .card-body {
    padding: 1.5rem;
}

.imported-product-card .badge {
    font-size: 0.75rem;
}

.file-info {
    background: #e9ecef;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
}

.file-info h6 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.file-info p {
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

/* Animation for file processing */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.processing {
    animation: pulse 1.5s infinite;
}

/* Success animation */
@keyframes successPop {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.import-success {
    animation: successPop 0.5s ease-out;
}

/* Error styles */
.error-item {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: var(--border-radius);
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}

.error-item:last-child {
    margin-bottom: 0;
}

.error-row {
    font-weight: 600;
    color: #721c24;
}

.error-message {
    color: #721c24;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Responsive adjustments for import section */
@media (max-width: 768px) {
    .upload-area {
        margin-bottom: 1.5rem;
    }
    
    .template-preview {
        margin-top: 1rem;
    }
    
    .imported-product-card .card-body {
        padding: 1rem;
    }
}

/* Loading spinner for file processing */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* File type validation */
.file-type-error {
    border-color: var(--danger-color) !important;
    background: #f8d7da !important;
}

.file-type-error .upload-content {
    color: var(--danger-color);
}

/* Success state for upload area */
.upload-success {
    border-color: var(--success-color) !important;
    background: #d1e7dd !important;
}

.upload-success .upload-content {
    color: var(--success-color);
}

/* Ingredient Search Section */
.search-card {
    border: 1px solid var(--light-gray);
    transition: var(--transition);
    background-color: white;
}

.search-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.ingredient-tag {
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--light-gray);
    background-color: white;
}

.ingredient-tag:hover {
    background-color: var(--primary-color) !important;
    color: white !important;
    transform: translateY(-2px);
}

.ingredient-result-card {
    transition: var(--transition);
    border: 1px solid var(--light-gray);
    background-color: white;
}

.ingredient-result-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.ingredient-result-card img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

/* Product Addition Form */
.upload-area {
    border: 2px dashed var(--light-gray);
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    background: var(--light-color);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: #f0f8ff;
}

.upload-area.dragover {
    border-color: var(--primary-color);
    background: #e3f2fd;
    transform: scale(1.02);
}

.upload-content {
    text-align: center;
}

.upload-content i {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

#imagePreview {
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    padding: 0.5rem;
    background: var(--light-color);
}

#imagePreview img {
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Form Enhancements */
.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-control::placeholder {
    color: #6c757d;
    opacity: 0.7;
}

/* Category Cards Enhancement */
.category-card {
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid #e9ecef;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.category-card i {
    transition: var(--transition);
}

.category-card:hover i {
    transform: scale(1.1);
    color: var(--primary-color) !important;
}

.category-card h6 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.category-card small {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Product Cards Enhancement */
.product-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
    border: 1px solid var(--light-gray);
    max-width: 300px;
    margin: 0 auto;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.product-card .product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.product-card .product-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    line-height: 1.3;
    font-size: 1rem;
}

.product-card .brand-name {
    color: var(--medium-gray);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.product-card .badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-weight: 500;
}

.product-card .btn {
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.product-card .btn:last-child {
    margin-bottom: 0;
}

.product-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.product-card .product-details {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.product-card .detail-item {
    text-align: center;
}

.product-card .detail-item strong {
    display: block;
    font-size: 1.1rem;
}

.product-card .ingredients-preview {
    margin-bottom: 1rem;
}

.product-card .ingredients-preview h6 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-card .ingredients-list {
    max-height: 120px;
    overflow-y: auto;
}

.product-card .ingredients-list small {
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Product Detail Modal */
.detail-box {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid #e9ecef;
}

.ingredients-section {
    margin-top: 1rem;
}

.ingredients-section h6 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.ingredients-list {
    max-height: 200px;
    overflow-y: auto;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: var(--border-radius);
}

.ingredient-item {
    padding: 0.25rem 0;
    font-size: 0.875rem;
    border-bottom: 1px solid #e9ecef;
}

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

.ingredients-full {
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: var(--border-radius);
}

/* Comparison Modal Enhancements */
.comparison-modal .modal-dialog {
    max-width: 1200px;
    background-color: white;
}

.comparison-modal .ingredients-section {
    background: var(--light-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
    border: 1px solid var(--light-gray);
}

.comparison-modal .ingredients-list {
    max-height: 250px;
    overflow-y: auto;
}

/* Search Results */
.search-results {
    margin-top: 2rem;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--secondary-color);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Product Search */
.product-search-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

.product-search-container .input-group {
    max-width: 500px;
    margin: 0 auto;
}

/* Responsive adjustments for product cards */
@media (max-width: 768px) {
    .product-card .card-body {
        padding: 1rem;
    }
    
    .product-card .product-details {
        padding: 0.75rem;
    }
    
    .product-card .detail-item strong {
        font-size: 1rem;
    }
    
    .ingredients-list {
        max-height: 150px;
    }
    
    .comparison-modal .modal-dialog {
        margin: 1rem;
    }
    
    .ingredient-result-card {
        margin-bottom: 1rem;
    }
    
    .upload-area {
        min-height: 150px;
    }
}

/* Turkish language specific adjustments */
.text-tr {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Price formatting */
.price-tl {
    font-weight: 600;
    color: var(--primary-color);
}

.price-tl::after {
    content: ' ₺';
    font-weight: 400;
}

/* Category badges */
.category-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
}

.category-badge.multivitamin {
    background-color: #e3f2fd;
    color: #1976d2;
}

.category-badge.monovitamin {
    background-color: #fce4ec;
    color: #c2185b;
}

.category-badge.omega-balik-yagi {
    background-color: #e8f5e8;
    color: #388e3c;
}

.category-badge.probiotik {
    background-color: #fff3e0;
    color: #f57c00;
}

.category-badge.cocuk-urunleri {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.category-badge.gebe-emziren-urunleri {
    background-color: #e8f5e8;
    color: #2e7d32;
}

.category-badge.yasli-urunleri {
    background-color: #fff8e1;
    color: #f9a825;
}

/* Loading states for product cards */
.product-card.loading {
    opacity: 0.6;
    pointer-events: none;
}

.product-card.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Hover effects for product cards */
.product-card:hover .product-image {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.product-card:hover .detail-item strong {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

/* Scrollbar styling for ingredients lists */
.ingredients-list::-webkit-scrollbar {
    width: 6px;
}

.ingredients-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.ingredients-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.ingredients-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Form validation styles */
.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-valid {
    border-color: #198754;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.valid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #198754;
}

/* Animation for form submission */
.form-submitting {
    opacity: 0.7;
    pointer-events: none;
}

.form-submitting .btn {
    position: relative;
}

.form-submitting .btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Success animation for product addition */
.product-added {
    animation: productAdded 0.5s ease-in-out;
}

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

/* Enhanced button styles */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #f7931e);
    border: none;
    transition: all 0.3s ease;
    color: white;
    font-weight: 600;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f7931e, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
    color: white;
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Enhanced card shadows */
.card {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Loading spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

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

/* Enhanced spacing */
.section-padding {
    padding: 4rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 2rem 0;
    }
}

/* Comparison Cart Styles */
.comparison-cart-item {
    border: 1px solid #e9ecef;
    transition: var(--transition);
    position: relative;
}

.comparison-cart-item:hover {
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.comparison-cart-item .btn-outline-danger {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 24px;
    height: 24px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Detailed Comparison Table */
.comparison-table-container {
    overflow-x: auto;
    max-height: 70vh;
    overflow-y: auto;
}

.comparison-table {
    min-width: 800px;
    font-size: 0.9rem;
}

.comparison-table th {
    vertical-align: top;
    background: #343a40;
    color: white;
    border: 1px solid #495057;
    position: sticky;
    top: 0;
    z-index: 10;
}

.comparison-table td {
    vertical-align: middle;
    border: 1px solid #dee2e6;
    padding: 0.75rem;
}

.comparison-table .table-primary {
    background-color: #e3f2fd;
}

.comparison-table .table-success {
    background-color: #e8f5e8;
}

.product-header {
    text-align: center;
    padding: 0.5rem;
}

.product-thumbnail {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
}

.product-header h6 {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.2;
}

.product-header small {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Comparison Table Responsive */
@media (max-width: 768px) {
    .comparison-table {
        font-size: 0.8rem;
    }
    
    .comparison-table td,
    .comparison-table th {
        padding: 0.5rem 0.25rem;
    }
    
    .product-thumbnail {
        width: 40px;
        height: 30px;
    }
    
    .product-header h6 {
        font-size: 0.75rem;
    }
}

/* 4-Product Search Form */
.search-container .row {
    align-items: center;
}

.search-container .form-control {
    border-radius: 0.5rem;
    border: 2px solid #e9ecef;
    transition: var(--transition);
}

.search-container .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.search-container .form-control::placeholder {
    color: #6c757d;
    opacity: 0.7;
}

/* Comparison Count Badge */
#comparisonCount {
    font-size: 0.75rem;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

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

/* Modal Fullscreen for Comparison */
.modal-fullscreen .modal-dialog {
    max-width: 100%;
    margin: 0;
    height: 100%;
    background-color: white;
}

.modal-fullscreen .modal-content {
    height: 100%;
    border: 0;
    border-radius: 0;
    background-color: white;
}

.modal-fullscreen .modal-body {
    overflow-y: auto;
    padding: 1rem;
    background-color: white;
    color: var(--dark-color);
}

/* Enhanced Product Cards for Comparison */
.product-card .btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    transition: all 0.3s ease;
}

.product-card .btn-success:hover {
    background: linear-gradient(135deg, #20c997, #28a745);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

/* Comparison Table Scrollbar */
.comparison-table-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.comparison-table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.comparison-table-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.comparison-table-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Ingredient Check/Cross Icons */
.comparison-table .fa-check {
    color: #28a745;
    font-size: 1.1rem;
}

.comparison-table .fa-times {
    color: #dc3545;
    font-size: 1.1rem;
}

/* Table Row Hover Effects */
.comparison-table tbody tr:hover {
    background-color: #f8f9fa;
}

.comparison-table tbody tr:hover td {
    background-color: #f8f9fa;
}

/* Responsive Design for 4-Product Layout */
@media (max-width: 992px) {
    .search-container .col-md-3 {
        margin-bottom: 1rem;
    }
    
    .search-container .row {
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .search-container {
        padding: 1rem !important;
    }
    
    .search-container .form-control {
        font-size: 0.9rem;
    }
    
    .comparison-table {
        font-size: 0.75rem;
    }
    
    .product-thumbnail {
        width: 30px;
        height: 20px;
    }
}

/* Enhanced Navigation for Comparison Cart */
.navbar .nav-link[onclick="showComparisonCart()"] {
    position: relative;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    transition: var(--transition);
}

.navbar .nav-link[onclick="showComparisonCart()"]:hover {
    background-color: rgba(13, 110, 253, 0.1);
}

/* Comparison Cart Modal Enhancements */
.comparison-cart-item {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    transition: all 0.3s ease;
}

.comparison-cart-item:hover {
    background: linear-gradient(135deg, #e9ecef, #f8f9fa);
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Loading States for Comparison */
.comparison-loading {
    opacity: 0.6;
    pointer-events: none;
}

.comparison-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Success Animation for Adding to Cart */
.product-added-to-cart {
    animation: productAddedToCart 0.5s ease-in-out;
}

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

/* Enhanced Typography for Comparison */
.comparison-table strong {
    font-weight: 600;
    color: var(--dark-color);
}

.comparison-table .text-primary {
    color: var(--primary-color) !important;
}

/* Table Header Styling */
.comparison-table thead th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* Section Headers in Table */
.comparison-table .table-primary td,
.comparison-table .table-success td {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: #495057;
}

/* Price Highlighting */
.comparison-table .price-highlight {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-weight: 600;
}

/* Category Badge Enhancement */
.comparison-table .badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
}

/* Responsive Table Improvements */
@media (max-width: 1200px) {
    .comparison-table-container {
        font-size: 0.85rem;
    }
    
    .comparison-table td,
    .comparison-table th {
        padding: 0.5rem;
    }
}

@media (max-width: 768px) {
    .comparison-table-container {
        font-size: 0.8rem;
    }
    
    .comparison-table td,
    .comparison-table th {
        padding: 0.375rem;
    }
    
    .product-header {
        padding: 0.25rem;
    }
    
    .product-thumbnail {
        width: 35px;
        height: 25px;
    }
}

/* Enhanced Modal Styling */
.modal-fullscreen .modal-header {
    background: linear-gradient(135deg, var(--primary-color), #f7931e);
    color: white;
    border-bottom: none;
}

.modal-fullscreen .modal-header .btn-close {
    filter: invert(1);
}

.modal-fullscreen .modal-footer {
    background: white;
    border-top: 1px solid var(--light-gray);
}

.modal-content {
    background-color: white;
    border: 1px solid var(--light-gray);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-body {
    color: var(--dark-color);
    background-color: white;
}

/* Tüm modal'lar için genel stil */
.modal {
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-dialog {
    background-color: white;
    border-radius: var(--border-radius);
}

.modal-header {
    background-color: white;
    border-bottom: 1px solid var(--light-gray);
}

.modal-footer {
    background-color: white;
    border-top: 1px solid var(--light-gray);
}

/* Comparison Summary Section */
.comparison-summary {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid #dee2e6;
}

.comparison-summary h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.ai-comparison-summary {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.5;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Enhanced Button Styles */
.btn-primary {
    background: var(--orange-gradient);
    border: none;
    transition: all 0.3s ease;
    color: white;
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--orange-gradient);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.3);
    color: white;
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Loading Spinner Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark-color);
}

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

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

/* Tablet Responsive */
@media (min-width: 577px) and (max-width: 991px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .display-4 {
        font-size: 3rem;
    }
    
    .search-container {
        margin: 0 2rem;
    }
    
    .product-card {
        max-width: 280px;
    }
    
    .modal-dialog {
        max-width: 90%;
    }
    
    .comparison-table {
        font-size: 0.9rem;
    }
}

/* Enhanced Spacing */
.section-padding {
    padding: 4rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 2rem 0;
    }
}

/* Make navbar area visually narrower and align logo/menu horizontally */
.narrow-navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-left: 1rem;
    padding-right: 1rem;
    min-height: 85px;
    width: 100%;
}

.navbar-brand {
    margin-right: 1rem;
    padding: 0;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.navbar-logo {
    display: block;
    height: 100px;
    max-width: 250px;
    width: auto;
}

.collapse.navbar-collapse {
    flex-grow: 1;
}

.navbar-nav {
    flex-direction: row;
    gap: 0.25rem;
    flex-wrap: nowrap;
    white-space: nowrap;
    margin-left: 0;
    justify-content: flex-end;
    align-items: center;
    flex: 1;
}

.navbar-nav .nav-item {
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link[onclick="showComparisonCart()"] {
    position: relative;
    padding: 0.4rem 0.8rem !important;
    background-color: var(--primary-color);
    color: white !important;
    border-radius: 0.5rem;
    margin-left: 0.5rem;
}

.navbar-nav .nav-link[onclick="showComparisonCart()"]:hover {
    background-color: #e55a2b;
    color: white !important;
}

.navbar-nav .nav-link[onclick="showComparisonCart()"] .badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
}

@media (max-width: 991px) {
    .narrow-navbar-container {
        max-width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        min-height: 85px;
    }
    .navbar-brand {
        margin-right: 0;
        margin-bottom: 0;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
    .navbar-logo {
        height: 60px;
        max-width: 120px;
    }
    .navbar-nav {
        flex-direction: row;
        gap: 0.1rem;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: wrap;
    }
}

/* Mobile responsive comparison table */
@media (max-width: 768px) {
    .comparison-table-container {
        overflow-x: auto;
        position: relative;
    }
    
    .comparison-table {
        min-width: 600px;
    }
    
    .comparison-table th:first-child,
    .comparison-table td:first-child {
        position: sticky;
        left: 0;
        background-color: #fff;
        z-index: 10;
        min-width: 150px;
        max-width: 200px;
        border-right: 2px solid #dee2e6;
    }
    
    .comparison-table th:first-child {
        background-color: #343a40;
        color: white;
    }
    
    .comparison-table .table-primary td:first-child {
        background-color: #cce5ff;
    }
    
    .comparison-table .table-success td:first-child {
        background-color: #d4edda;
    }
}