/* Menu Page Specific Styles */

/* Header hover effects - ana sayfa ile uyumlu */
.nav a:hover {
    color: #ffffff !important;
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Menu Hero Section */
.menu-hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/isler.png') no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 120px 0 80px;
    text-align: center;
    color: white;
    margin-top: 80px;
}

.menu-hero-content h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.menu-hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Ürün listesi üstü — sayfa hero ile aynı metin */
.menu-hero-inline {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 2px solid #f0f0f0;
}

.menu-hero-inline .menu-hero-content h2 {
    font-size: 2rem;
    margin-bottom: 12px;
    color: #1a1a1a;
    text-shadow: none;
}

.menu-hero-inline .menu-hero-content p {
    font-size: 1.05rem;
    color: #555;
    opacity: 1;
    line-height: 1.6;
}

/* Menu Content & Layout */
.menu-content {
    position: relative;
    padding: 0;
    --menu-sticky-top: 80px;
}

.menu-layout {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.menu-main-area {
    flex: 1;
    min-width: 0;
    padding: 40px 0;
    margin-left: 340px;
}

.menu-main-area .container {
    max-width: 1200px;
}

/* Mobile category drawer toggle */
.category-drawer-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: calc(100% - 40px);
    max-width: 400px;
    margin: 16px auto 0;
    padding: 14px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    color: #1a1a1a;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.category-drawer-toggle:hover {
    border-color: #1a1a1a;
    transform: translateY(-1px);
}

.category-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-sidebar-backdrop.is-visible {
    display: block;
    opacity: 1;
}

body.category-drawer-open {
    overflow: hidden;
}

/* Menu Sidebar — content height, sticky on desktop while scrolling products */
.menu-sidebar {
    flex: 0 0 340px;
    width: 340px;
    align-self: stretch;
    height: calc(100vh - var(--menu-sticky-top));
    max-height: none;
    overflow-y: auto;
    background: #fff;
    border-right: 1px solid #e8e8e8;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.06);
    padding: 24px 0 32px;
    border-radius: 0;
    display: flex;
    flex-direction: column;
}

/* Desktop: make sidebar sticky/fixed */
@media (min-width: 992px) {
    .menu-sidebar {
        position: fixed;
        left: 0;
        top: var(--menu-sticky-top);
        z-index: 20;
    }
}

.sidebar-header {
    margin-bottom: 16px;
    padding: 0 20px 16px;
    border-bottom: 2px solid #f0f0f0;
    flex-shrink: 0;
}

.sidebar-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.category-drawer-close {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: #f0f0f0;
    color: #1a1a1a;
    cursor: pointer;
    flex-shrink: 0;
}

.category-drawer-close:hover {
    background: #e0e0e0;
}

.sidebar-header h3 {
    color: #1a1a1a ;
    font-size: 1.5rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-header h3::before {
    content: '\f0ca';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #333333 ;
}

/* Sidebar Search */
.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #1a1a1a ;
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 0.9rem;
    background: #f9f9f9 ;
}

.search-input:focus {
    outline: none;
    border-color: #1a1a1a ;
    background: white;
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

/* Category Navigation */
.category-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0 12px;
    -webkit-overflow-scrolling: touch;
}

.category-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-nav li {
    margin-bottom: 4px;
}

.category-nav a.category-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #555;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    position: relative;
}

.category-nav a.category-link:hover {
    background: #f9f9f9;
    color: #1a1a1a;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    /* Show mobile drawer toggle and close button */
    .category-drawer-toggle {
        display: flex;
    }
    .category-drawer-close {
        display: flex;
    }

    /* Sidebar becomes off-canvas (hidden by default) */
    .menu-sidebar {
        position: fixed;
        left: -100%;
        top: var(--menu-sticky-top);
        width: 320px;
        height: calc(100vh - var(--menu-sticky-top));
        transition: left 0.3s ease;
        z-index: 1050;
    }
    body.category-drawer-open .menu-sidebar {
        left: 0;
    }

    /* Main area should not reserve space for sidebar on small screens */
    .menu-main-area {
        margin-left: 0;
        padding: 20px 16px;
    }

    /* Ensure hero performs well on mobile */
    .menu-hero {
        padding: 80px 0 40px;
        background-attachment: scroll;
    }

    /* Reduce shadows/borders for smaller devices */
    .menu-sidebar {
        box-shadow: 0 8px 40px rgba(0,0,0,0.2);
        border-right: none;
    }

    /* Backdrop visible when open */
    .category-sidebar-backdrop {
        display: none;
    }
    body.category-drawer-open .category-sidebar-backdrop {
        display: block;
        opacity: 1;
    }

    /* Prevent horizontal shift on small screens by removing extra margins
       and ensuring containers don't overflow */
    .menu-main,
    .menu-main-area {
        /* center main product area responsively */
        margin: 0 auto;
        max-width: 1200px;
        padding-left: 16px;
        padding-right: 16px;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
}

.category-nav a.category-link.active {
    background: linear-gradient(135deg, #1a1a1a, #333333);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.category-nav a.category-link.active::after {
    content: '\f0da';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: auto;
    color: white;
    font-size: 0.85rem;
}

.category-nav a.category-link i {
    width: 20px;
    text-align: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.category-nav li.is-hidden {
    display: none;
}

.loading-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    color: #666;
    font-style: italic;
}

.loading-item i {
    color: #1a1a1a ;
}

/* Menu Main Content */
.menu-main {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin: 0 20px;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.menu-header h3 {
    color: #1a1a1a ;
    font-size: 2rem;
    margin: 0;
}

.product-count {
    background: linear-gradient(135deg, #1a1a1a , #333333);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    min-height: 400px;
}

a.product-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    border: 2px solid transparent;
    opacity: 1;
    height: 420px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    transform-origin: center center;
}

.product-card-media {
    position: relative;
    flex-shrink: 0;
}

.product-card-cta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.product-card:hover .product-card-cta {
    opacity: 1;
    transform: translateY(0);
}

.product-card-cta i {
    font-size: 1rem;
}

.product-card:hover {
    transform: scale(1.06);
    z-index: 2;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-color: #1a1a1a ;
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: #f9f9f9;
    display: block;
    border: none;
    outline: none;
    max-width: 100%;
    max-height: 250px;
    min-height: 250px;
}

.product-info {
    padding: 22px 22px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-name {
    font-size: 1.4rem;
    font-weight: bold;
    color: #1a1a1a ;
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
    min-height: 48px;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333333 ;
}

/* Loading States */
.loading-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.loading-products i {
    font-size: 2rem;
    color: #1a1a1a ;
    margin-bottom: 15px;
}

.loading-products p {
    font-size: 1.1rem;
    margin: 0;
}

/* No Products State */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-products i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 20px;
}

.no-products h4 {
    color: #1a1a1a ;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.no-products p {
    font-size: 1.1rem;
    margin: 0;
}

/* Sayfalama */
.menu-pagination {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid #f0f0f0;
}

.menu-pagination-summary {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin: 0 0 16px;
}

.menu-pagination-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 16px;
}

.menu-pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    color: #1a1a1a;
    background: #f5f5f5;
    border: 2px solid #e8e8e8;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.menu-pagination-btn:hover:not(.is-disabled) {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
    transform: translateY(-1px);
}

.menu-pagination-btn.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.menu-pagination-numbers {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.menu-pagination-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    color: #333;
    background: #fff;
    border: 2px solid #e0e0e0;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.menu-pagination-num:hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

.menu-pagination-num.is-active {
    background: linear-gradient(135deg, #1a1a1a, #333);
    color: #fff;
    border-color: #1a1a1a;
    cursor: default;
}

.menu-pagination-ellipsis {
    padding: 0 4px;
    color: #999;
    font-weight: 600;
    user-select: none;
}

/* Responsive Design */
@media (min-width: 992px) and (max-width: 1024px) {
    .menu-sidebar {
        flex: 0 0 285px;
        width: 285px;
    }

    .menu-main-area {
        margin-left: 285px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 22px;
    }
}

@media (max-width: 768px) {
    .menu-hero-content h2 {
        font-size: 2.2rem;
    }

    .menu-hero-content p {
        font-size: 1rem;
    }

    .category-drawer-toggle {
        display: flex;
    }

    .category-drawer-close {
        display: inline-flex;
    }

    .menu-layout {
        flex-direction: column;
        min-height: 0;
    }

    .menu-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        z-index: 1050;
        width: min(300px, 88vw);
        max-width: 300px;
        min-height: 100vh;
        height: 100vh;
        max-height: none;
        align-self: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        border-right: 1px solid #e0e0e0;
        padding-top: 20px;
    }

    .menu-sidebar.is-open {
        transform: translateX(0);
    }

    .menu-main-area {
        padding: 16px 0 24px;
        width: 100%;
    }

    .menu-main {
        margin: 0 16px;
        padding: 20px;
    }

    .menu-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .menu-header h3 {
        font-size: 1.6rem;
    }

    .menu-hero-inline .menu-hero-content h2 {
        font-size: 1.65rem;
    }

    .menu-hero-inline .menu-hero-content p {
        font-size: 0.95rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 22px;
    }

    .category-nav a.category-link {
        padding: 12px 14px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .menu-hero {
        padding: 100px 0 60px;
    }

    .menu-hero-content h2 {
        font-size: 1.8rem;
    }

    .menu-main {
        margin: 0 10px;
        padding: 15px;
    }

    .menu-hero-inline {
        margin-bottom: 20px;
        padding-bottom: 18px;
    }

    .menu-hero-inline .menu-hero-content h2 {
        font-size: 1.45rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .product-card {
        margin: 0 5px;
    }
}

/* Animation Classes - Completely Disabled */
.fade-in {
    opacity: 1;
}

.slide-in-left {
    opacity: 1;
}

.slide-in-right {
    opacity: 1;
}

    /* 1. Masaüstü Görünümü */
    .footer-content {
        padding-left: 150px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* 2. Mobil Görünüm */
    @media (max-width: 768px) {
        .footer-content {
            padding-left: 15px;
            padding-right: 15px;
            flex-direction: column;
            text-align: center;
            gap: 15px;
        }
    }

