/* QR Menü Public Görünümü */
.menu-page {
    background: linear-gradient(180deg, var(--bg-light) 0%, #f0f4f8 100%);
    min-height: 100vh;
}

.menu-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--secondary-color);
    padding: 25px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.menu-header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.menu-header-actions {
    position: relative;
}

.menu-toggle-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: var(--secondary-color);
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.menu-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.menu-toggle-btn:active {
    transform: scale(0.95);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    max-width: 280px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.menu-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-dropdown-header {
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.menu-dropdown-header span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-dropdown-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 14px;
}

.menu-dropdown-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.menu-dropdown-content {
    padding: 8px;
}

.menu-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 4px;
    font-weight: 500;
}

.menu-dropdown-item i:first-child {
    margin-right: 10px;
    color: var(--primary-color);
}

.menu-dropdown-item i:last-child {
    color: var(--primary-color);
    font-size: 14px;
}

.menu-dropdown-item:hover {
    background: var(--bg-light);
    transform: translateX(5px);
}

.menu-dropdown-item.active {
    background: rgba(30, 58, 138, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

.menu-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.menu-category {
    margin-bottom: 50px;
}

.category-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 4px solid var(--primary-color);
    position: relative;
    padding-left: 20px;
}

.category-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 3px;
}

.category-description {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 30px;
}

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

.product-card {
    background-color: var(--secondary-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(30, 58, 138, 0.2);
    border-color: var(--primary-color);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--bg-light);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-info {
    padding: 25px;
}

.product-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
    line-height: 1.3;
}

.product-description {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.7;
    min-height: 45px;
}

.product-price {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-top: 15px;
    border-top: 2px solid var(--bg-light);
}

.price-amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.empty-products {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.empty-products i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.menu-footer {
    background-color: var(--text-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
}

/* Önerilen Ürünler Bölümü */
.recommended-products {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.recommended-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
    text-align: center;
}

.products-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.products-scroll::-webkit-scrollbar {
    height: 6px;
}

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

.products-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.product-scroll-card {
    min-width: 120px;
    text-align: center;
    flex-shrink: 0;
}

.product-scroll-image {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto 10px;
    background: var(--bg-light);
}

.product-scroll-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-scroll-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    line-height: 1.3;
}

/* Kategoriler Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.category-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    aspect-ratio: 1;
}

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

.category-card-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-card-image img {
    transform: scale(1.1);
}

.category-card-placeholder {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card-placeholder i {
    font-size: 48px;
    color: white;
    opacity: 0.7;
}

.category-card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    color: white;
    font-size: 18px;
    font-weight: 700;
    padding: 20px 15px 15px;
    margin: 0;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Kategori Detay Sayfası */
.category-detail-header {
    margin-bottom: 30px;
    position: relative;
}

.back-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: var(--primary-dark);
    transform: translateX(-3px);
}

.category-detail-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-header-content {
        flex-direction: row;
        gap: 0;
    }
    
    .menu-header h1 {
        font-size: 20px;
        flex: 1;
    }
    
    .menu-dropdown {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        left: auto;
        min-width: 160px;
        max-width: 200px;
        border-radius: 12px;
        transform: translateY(-10px);
    }
    
    .menu-dropdown.active {
        transform: translateY(0);
    }
    
    .menu-dropdown-item {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .menu-toggle-btn {
        padding: 8px 12px;
        font-size: 16px;
    }
    
    .menu-dropdown-header {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .menu-dropdown-close {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .menu-content {
        padding: 15px;
    }
    
    .recommended-products {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .recommended-title {
        font-size: 18px;
    }
    
    .product-scroll-card {
        min-width: 100px;
    }
    
    .product-scroll-image {
        width: 100px;
        height: 100px;
    }
    
    .product-scroll-name {
        font-size: 12px;
    }
    
    .categories-grid {
        gap: 12px;
    }
    
    .category-card-title {
        font-size: 16px;
        padding: 15px 12px 12px;
    }
    
    .category-title {
        font-size: 24px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .category-detail-title {
        font-size: 24px;
    }
}

