/* =====================================================
   Kategori Dropdown
   ===================================================== */
.category-dropdown-container {
    position: fixed;
    bottom: 2rem;
    right: 1.5rem;
    z-index: 1000;
}

.category-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: var(--theme-color, hsl(var(--primary)));
    color: white;
    border: none;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9375rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-dropdown-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.4);
}

.category-dropdown-btn.active {
    transform: scale(0.95);
}

.category-dropdown-btn .chevron {
    transition: transform 0.3s ease;
}

.category-dropdown-btn.active .chevron {
    transform: rotate(180deg);
}

.category-dropdown-menu {
    position: absolute;
    bottom: calc(100% + 1rem);
    right: 0;
    width: 240px;
    background: hsl(var(--card) / 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid hsl(var(--border) / 0.5);
    border-radius: 1.25rem;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.category-dropdown-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.category-dropdown-list {
    padding: 0.75rem;
    max-height: 60vh;
    overflow-y: auto;
}

.category-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    color: hsl(var(--foreground));
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.category-dropdown-item:hover {
    background: hsl(var(--muted));
    color: var(--theme-color, hsl(var(--primary)));
}

.category-dropdown-item svg {
    opacity: 0.7;
    flex-shrink: 0;
}

/* =====================================================
   Menü Header
   ===================================================== */
.menu-header {
    position: relative;
    overflow: hidden;
}

.menu-cover {
    height: 200px;
    background: linear-gradient(135deg, var(--theme-color, #000) 0%, color-mix(in srgb, var(--theme-color, #000) 70%, #000) 100%);
    position: relative;
}

.menu-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.menu-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
}

.menu-info {
    position: relative;
    max-width: 800px;
    margin: -60px auto 0;
    padding: 0 1rem;
    text-align: center;
}

.menu-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: hsl(var(--card));
    border: 4px solid hsl(var(--card));
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-logo-placeholder {
    font-size: 2rem;
    font-weight: 700;
    color: var(--theme-color, #000);
}

.menu-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: hsl(var(--foreground));
}

.menu-description {
    font-size: 0.9375rem;
    color: hsl(var(--muted-foreground));
    max-width: 500px;
    margin: 0 auto 1rem;
}

.menu-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

.menu-contact-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.menu-contact-item svg {
    width: 1rem;
    height: 1rem;
}

/* =====================================================
   Kategori Navigasyonu
   ===================================================== */
.category-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    background: hsl(var(--background));
    border-bottom: 1px solid hsl(var(--border));
    padding: 1rem 0;
    margin-top: 1.5rem;
}

.category-nav-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-nav-inner::-webkit-scrollbar {
    display: none;
}

.category-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    background: hsl(var(--secondary));
    color: hsl(var(--secondary-foreground));
    transition: all 0.2s;
}

.category-link:hover,
.category-link.active {
    background: var(--theme-color, hsl(var(--primary)));
    color: white;
}

/* =====================================================
   Menü İçeriği
   ===================================================== */
.menu-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

/* Öne Çıkanlar */
.featured-section {
    margin-bottom: 2rem;
}

.featured-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.featured-title svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #fbbf24;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.featured-item {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.2s;
}

.featured-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.featured-item-image {
    height: 100px;
    background: hsl(var(--muted));
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-item-image svg {
    width: 2rem;
    height: 2rem;
    color: hsl(var(--muted-foreground));
}

.featured-item-info {
    padding: 0.75rem;
}

.featured-item-name {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-item-price {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--theme-color, hsl(var(--primary)));
}

/* Kategori Bölümleri */
.category-section {
    margin-bottom: 2rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--theme-color, hsl(var(--border)));
}

.category-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: calc(var(--radius) - 0.125rem);
    overflow: hidden;
    background: hsl(var(--muted));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: hsl(var(--muted-foreground));
}

.category-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.category-description {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.125rem;
}

/* Ürün Kartları */
.product-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    gap: 1rem;
    transition: all 0.2s;
}

.product-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-image {
    width: 80px;
    height: 80px;
    border-radius: calc(var(--radius) - 0.25rem);
    overflow: hidden;
    background: hsl(var(--muted));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image svg {
    width: 2rem;
    height: 2rem;
    color: hsl(var(--muted-foreground));
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.product-description {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.4;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--theme-color, hsl(var(--foreground)));
    margin-top: 0.5rem;
}

.product-unavailable {
    opacity: 0.5;
}

.product-unavailable .product-price::after {
    content: ' (Tükendi)';
    font-size: 0.75rem;
    font-weight: 400;
    color: hsl(var(--destructive));
}

/* =====================================================
   Footer
   ===================================================== */
.menu-footer {
    text-align: center;
    padding: 2rem 1rem;
    border-top: 1px solid hsl(var(--border));
    color: hsl(var(--muted-foreground));
    font-size: 0.75rem;
}

.menu-footer a {
    color: var(--theme-color, hsl(var(--primary)));
    font-weight: 500;
}

/* =====================================================
   Animasyonlar
   ===================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-section {
    animation: fadeInUp 0.4s ease forwards;
}

.category-section:nth-child(1) {
    animation-delay: 0.1s;
}

.category-section:nth-child(2) {
    animation-delay: 0.2s;
}

.category-section:nth-child(3) {
    animation-delay: 0.3s;
}

.category-section:nth-child(4) {
    animation-delay: 0.4s;
}

/* =====================================================
   Mobil Responsive
   ===================================================== */
@media (max-width: 640px) {
    .menu-cover {
        height: 160px;
    }

    .menu-info {
        margin-top: -50px;
    }

    .menu-logo {
        width: 80px;
        height: 80px;
    }

    .menu-name {
        font-size: 1.5rem;
    }

    .menu-contact {
        flex-direction: column;
        gap: 0.5rem;
    }

    .product-card {
        padding: 0.75rem;
    }

    .product-image {
        width: 60px;
        height: 60px;
    }

    .product-name {
        font-size: 0.9375rem;
    }

    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =====================================================
   Ürün Detay Modalı
   ===================================================== */
.product-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.product-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.product-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    background: hsl(var(--card));
    border-radius: 16px;
    z-index: 1001;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.product-modal.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.product-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s;
}

.product-modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.product-modal-close svg {
    width: 20px;
    height: 20px;
}

.product-modal-image {
    width: 100%;
    aspect-ratio: 4/3;
    background: hsl(var(--muted));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-modal-placeholder {
    width: 64px;
    height: 64px;
    color: hsl(var(--muted-foreground));
}

.product-modal-content {
    padding: 1.5rem;
}

.product-modal-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.product-modal-description {
    font-size: 0.9375rem;
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.product-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid hsl(var(--border));
}

.product-modal-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-color, hsl(var(--primary)));
}

.product-modal-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-modal-status.status-available {
    background: hsl(142 76% 36% / 0.15);
    color: hsl(142 76% 36%);
}

.product-modal-status.status-unavailable {
    background: hsl(var(--destructive) / 0.15);
    color: hsl(var(--destructive));
}

/* Ürün kartları tıklanabilir cursor */
.product-card {
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}