/* Menü Sayfası Özel Stilleri - Modern Tema */

.menu-header {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.menu-header::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 1000 300"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,213.3C672,192,768,128,864,128C960,128,1056,192,1152,208C1248,224,1344,192,1392,176L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"/></svg>') bottom/cover no-repeat;
}

.menu-header>* {
    position: relative;
    z-index: 2;
}

.menu-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #f1f5f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.menu-search {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), 0 5px 10px rgba(0, 0, 0, 0.04);
    margin-bottom: 3rem;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.category-tabs .nav-pills {
    border: none;
    background: none;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-tabs .nav-link {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    border: 2px solid transparent;
    margin: 0;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
    letter-spacing: 0.025em;
    position: relative;
    overflow: hidden;
}

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

.category-tabs .nav-link:hover::before {
    left: 100%;
}

.category-tabs .nav-link:hover {
    background: rgba(99, 102, 241, 0.15);
    color: #4338ca;
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.category-tabs .nav-link.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

/* Ürün Kartları */
.card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(45deg, #6366f1, #8b5cf6, #ec4899);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card:hover,
.hover-shadow:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(0, 0, 0, 0.08);
}

.card-img-container {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.card-img-top {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 240px;
}

.card:hover .card-img-top {
    transform: scale(1.08);
}

.unavailable-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.product-image-placeholder {
    height: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 3rem;
    min-height: 240px;
    position: relative;
}

.product-image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.1) 10px,
            rgba(255, 255, 255, 0.1) 20px);
}

.card-body {
    padding: 2rem;
    background: linear-gradient(135deg, white 0%, #fefefe 100%);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.card-text {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price-display {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0;
}

.text-primary {
    color: #6366f1 !important;
}

.btn-outline-primary {
    color: #6366f1;
    border: 2px solid #6366f1;
    background: transparent;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-outline-primary:hover::before {
    left: 0;
}

.btn-outline-primary:hover {
    color: white;
    border-color: #6366f1;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

/* Product Card Styles */
.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    height: 100%;
}

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

.product-image {
    height: 240px;
    width: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
    min-height: 240px;
}

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

.product-info {
    padding: 2rem;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.product-description {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.product-options {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.product-options h6 {
    color: #374151;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.option-item {
    display: flex;
    justify-content: between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.option-name {
    color: #64748b;
    font-size: 0.9rem;
}

.option-price {
    color: #6366f1;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Availability Badge */
.availability-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(34, 197, 94, 0.9);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.availability-badge.unavailable {
    background: rgba(239, 68, 68, 0.9);
}

/* Filter Section */
.filter-section {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.filter-section h5 {
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Price Filter */
.price-filter {
    margin-bottom: 1.5rem;
}

.price-filter input {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.price-filter input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

/* Quick Filters */
.quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.quick-filter {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.quick-filter:hover,
.quick-filter.active {
    background: #6366f1;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Sort Options */
.sort-options {
    margin-bottom: 1.5rem;
}

.sort-options select {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem;
    font-size: 0.9rem;
    background: white;
    transition: border-color 0.3s ease;
}

.sort-options select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* No Products Message */
.no-products {
    text-align: center;
    padding: 3rem 2rem;
    color: #64748b;
}

.no-products i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #cbd5e1;
}

.no-products h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #374151;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .menu-header {
        padding: 60px 0;
    }

    .menu-header h1 {
        font-size: 2.5rem;
    }

    .category-tabs .nav-link {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .card-img-container {
        height: 200px;
    }

    .card-img-top {
        min-height: 200px;
    }

    .product-image {
        height: 200px;
        min-height: 200px;
    }

    .product-image-placeholder {
        min-height: 200px;
        font-size: 2.5rem;
    }

    .card-body {
        padding: 1.5rem;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .card-text {
        font-size: 0.9rem;
    }

    .filter-section {
        padding: 1.5rem;
    }

    .quick-filters {
        justify-content: center;
    }

    .sort-options {
        text-align: center;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .menu-header {
        padding: 40px 0;
    }

    .menu-header h1 {
        font-size: 2rem;
    }

    .card-img-container {
        height: 180px;
    }

    .card-img-top {
        min-height: 180px;
    }

    .product-image {
        height: 180px;
        min-height: 180px;
    }

    .product-image-placeholder {
        min-height: 180px;
        font-size: 2rem;
    }

    .card-body {
        padding: 1.25rem;
    }

    /* Mobil için horizontal scroll kategori tabları */
    .category-tabs {
        margin-bottom: 2rem;
        position: relative;
    }

    .category-tabs .nav-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        padding: 0.5rem 0;
        margin: 0 -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        gap: 0.75rem;
        /* Webkit scrollbar styling */
        scrollbar-width: thin;
        scrollbar-color: rgba(99, 102, 241, 0.3) transparent;
    }

    .category-tabs .nav-pills::-webkit-scrollbar {
        height: 4px;
    }

    .category-tabs .nav-pills::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 2px;
    }

    .category-tabs .nav-pills::-webkit-scrollbar-thumb {
        background: rgba(99, 102, 241, 0.3);
        border-radius: 2px;
    }

    .category-tabs .nav-pills::-webkit-scrollbar-thumb:hover {
        background: rgba(99, 102, 241, 0.5);
    }

    .category-tabs .nav-link {
        margin: 0;
        text-align: center;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: auto;
        padding: 10px 16px;
        font-size: 0.8rem;
    }

    .category-tabs .nav-item {
        margin-bottom: 0;
    }

    /* Scroll hint gradient */
    .category-tabs::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 20px;
        background: linear-gradient(to left, rgba(255, 255, 255, 0.8), transparent);
        pointer-events: none;
        z-index: 1;
    }

    .btn-outline-primary {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

@media print {

    .menu-header,
    .filter-section,
    .category-tabs,
    .btn {
        display: none !important;
    }

    .product-card {
        break-inside: avoid;
        margin-bottom: 1rem;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Search Container */
.search-container {
    position: relative;
}

.search-container .form-control {
    padding-left: 3rem;
    border-radius: 25px;
    border: 2px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.search-container .form-control:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-container .input-group-text {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    z-index: 3;
    padding: 0;
    font-size: 1.1rem;
}

/* Additional Animations */
.loading-fade {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.card-hover-effect {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover-effect:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Category Tabs Enhancement */
.category-tabs {
    margin-bottom: 2rem;
}

.category-tabs .nav-link {
    position: relative;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(10px);
}

.category-tabs .nav-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 3px;
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.category-tabs .nav-link:hover::before {
    transform: translateX(-50%) scaleX(1);
}

.category-icon {
    display: inline-block;
    margin-right: 0.5rem;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.category-tabs .nav-link:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Product Card Wrapper */
.product-card-wrapper {
    transition: all 0.3s ease;
}

.product-card-wrapper.filtered-out {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

/* Price Highlight */
.price-highlight {
    position: relative;
    background: linear-gradient(135deg,
            rgba(99, 102, 241, 0.1) 0%,
            rgba(139, 92, 246, 0.1) 100%);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Enhanced No Products Message */
.no-products {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    margin: 2rem 0;
}

.no-products i {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.no-products h4 {
    font-weight: 700;
    color: #1e293b;
}

/* Search Messages */
#searchMessage {
    border-radius: 15px;
    border: none;
    font-weight: 500;
}

#searchMessage.alert-info {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

#searchMessage.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}