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

html {
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f8f9fa;
    padding-top: 70px;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    background: #2C1810;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    z-index: 1000;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.navbar-brand img {
    background: white;
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    display: block;
    object-fit: contain;
}

.navbar-brand img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.navbar-dark .navbar-nav .nav-link {
    color: #fff;
    font-weight: 500;
    padding: 8px 16px;
    transition: all 0.3s;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #C8A882;
}

/* Hero Section */
.menu-hero {
    background: linear-gradient(135deg, #6F4E37 0%, #C8A882 100%);
    padding: 60px 0;
    color: white;
    overflow: hidden;
}

.menu-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.menu-hero p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* ── Category Pills wrapper ── */
.category-pills-wrapper {
    position: sticky;
    top: 70px;
    z-index: 900;
    background: white;
    box-shadow: 0 3px 16px rgba(0,0,0,0.07);
    border-bottom: 1px solid rgba(200,168,130,0.12);
}

/* Desktop: flex, tek satır yatay */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    padding: 12px 16px;
}

.category-pill {
    padding: 7px 16px;
    border-radius: 20px;
    background: #FAF3E0;
    border: 1.5px solid transparent;
    color: #6F4E37;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    text-decoration: none;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    min-height: 36px;
}

.category-pill::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #6F4E37, #8B6035);
    opacity: 0;
    transition: opacity 0.25s;
    border-radius: inherit;
}

.category-pill span {
    position: relative;
    z-index: 1;
    color: inherit;
}

.category-pill:hover {
    border-color: #6F4E37;
    color: white;
    box-shadow: 0 3px 12px rgba(111,78,55,0.2);
}

.category-pill:hover::before { opacity: 1; }

.category-pill.active {
    border-color: #6F4E37;
    color: white;
    box-shadow: 0 3px 14px rgba(111,78,55,0.28);
}

.category-pill.active::before { opacity: 1; }

/* Menu Container */
.menu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Category Section */
.category-section {
    margin-bottom: 60px;
    animation: fadeIn 0.6s ease;
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #C8A882;
}

.category-icon {
    width: 50px;
    height: 50px;
    background: #6F4E37;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-right: 15px;
    font-size: 24px;
}

.category-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2C1810;
    margin: 0;
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.16);
}

/* Hover image zoom */
.product-card .product-image-wrap {
    overflow: hidden;
    position: relative;
}

.product-card .product-image {
    transition: transform 0.5s ease;
}

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

/* Quick view overlay on card */
.product-card .product-hover-overlay {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 200px;
    background: linear-gradient(to top, rgba(44,24,16,0.6) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.35s;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 12px;
}

.product-card:hover .product-hover-overlay {
    opacity: 1;
}

.btn-quick-view {
    background: rgba(255,255,255,0.92);
    color: #6F4E37;
    border: none;
    padding: 7px 18px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    transform: translateY(8px);
    transition: transform 0.3s, background 0.2s;
}

.product-card:hover .btn-quick-view {
    transform: translateY(0);
}

.btn-quick-view:hover {
    background: #D4A853;
    color: white;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: contain; /* DEĞİŞTİRİLDİ */
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
}

/* YENİ EKLENDİ: Görsel Temsilidir Metni */
.representative-text {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.75rem;
    z-index: 5;
    pointer-events: none;
}

.product-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info {
    flex: 1;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2C1810;
    margin-bottom: 8px;
}

.product-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6F4E37, #D4A853);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-badge {
    background: #C8A882;
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Extras Section */
.extras-container {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: 20px;
    padding: 40px;
    margin-top: 60px;
}

.extras-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2C1810;
    margin-bottom: 30px;
}

.extras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.extra-item {
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.extra-name {
    font-weight: 500;
    color: #2C1810;
}

.extra-price {
    font-weight: 700;
    color: #6F4E37;
    font-size: 1.1rem;
}

/* Footer CTA */
.footer-cta {
    background: #2C1810;
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-top: 80px;
}

.footer-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.footer-cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-reservation {
    background: #C8A882;
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-reservation:hover {
    background: #6F4E37;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

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

/* Mobile Responsive - Tablet */
@media (max-width: 991px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .menu-container {
        padding: 20px 15px;
    }
}

/* ═══════════════════════════════════════════
   MOBİL RESPONSIVE — Tablet (max 991px)
═══════════════════════════════════════════ */
@media (max-width: 991px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .menu-container {
        padding: 20px 15px;
    }
}

/* ═══════════════════════════════════════════
   MOBİL RESPONSIVE — Phone (max 768px)
   Yatay kart layoutu: görsel solda, metin sağda
═══════════════════════════════════════════ */
@media (max-width: 768px) {
    body {
        padding-top: 65px;
    }

    /* ── Hero ── */
    .menu-hero {
        padding: 32px 16px;
    }

    .menu-hero h1 {
        font-size: 1.75rem;
        margin-bottom: 6px;
    }

    .menu-hero p {
        font-size: 0.95rem;
    }

    /* ── Category Pills — mobil grid ── */
    .category-pills-wrapper {
        top: 65px;
    }

    /* Mobilde: her satırda 4, son satır ortada */
    .category-pills {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 6px;
        padding: 10px 12px;
        overflow: visible;
    }

    .category-pill {
        /* 4 sütun = (100% - 3*gap) / 4 */
        flex: 0 0 calc(25% - 5px) !important;
        max-width: calc(25% - 5px) !important;
        font-size: 0.67rem !important;
        padding: 8px 4px !important;
        min-height: 36px;
        border-radius: 10px;
        transform: none !important;
        justify-content: center !important;
        text-align: center;
        white-space: normal !important;
        line-height: 1.25;
        display: flex !important;
        align-items: center;
        box-sizing: border-box;
    }

    .category-pill span {
        display: block;
        text-align: center;
        white-space: normal;
        word-break: break-word;
        line-height: 1.2;
    }

    .category-pill:hover,
    .category-pill.active {
        transform: none !important;
    }

    /* ── Arama ── */
    .search-section {
        padding: 10px 0;
        top: 116px;
    }

    .search-input {
        font-size: 15px;
        padding: 8px 40px 8px 46px;
    }

    .search-icon { font-size: 15px; left: 14px; }

    /* ── Menü container ── */
    .menu-container {
        padding: 16px 12px 20px;
    }

    /* ── Kategori başlığı ── */
    .category-section {
        margin-bottom: 28px;
        scroll-margin-top: 170px;
    }

    .category-header {
        margin-bottom: 14px;
        padding-bottom: 10px;
    }

    .category-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
        border-radius: 8px;
        margin-right: 10px;
        flex-shrink: 0;
    }

    .category-title {
        font-size: 1.2rem;
    }

    /* ══════════════════════════════════════════
       YATAY KART LAYOUT (Görsel sol, metin sağ)
    ══════════════════════════════════════════ */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0;
    }

    .product-card {
        flex-direction: row;       /* YAN YANA */
        border-radius: 14px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.08);
        min-height: 110px;
        align-items: stretch;
    }

    /* Hover efektini mobilde sadeleştir */
    .product-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    }

    /* Görsel — sabit küçük kare */
    .product-image-wrap {
        width: 110px;
        min-width: 110px;
        flex-shrink: 0;
        border-radius: 14px 0 0 14px;
        overflow: hidden;
    }

    .product-image {
        width: 110px;
        height: 100%;
        min-height: 110px;
        object-fit: cover;
        background: linear-gradient(135deg, #6F4E37, #C8A882);
    }

    /* Görsel olmayan placeholder */
    .product-image-wrap > div.product-image {
        width: 110px;
        height: 100%;
        min-height: 110px;
    }

    /* Quick view overlay mobilde gizle */
    .product-hover-overlay { display: none; }

    /* Temsili yazı mobilde konumu */
    .representative-text {
        font-size: 0.62rem;
        padding: 2px 5px;
        top: 5px;
        right: auto;
        left: 5px;
        border-radius: 4px;
    }

    /* İçerik alanı */
    .product-content {
        padding: 12px 14px;
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .product-name {
        font-size: 0.97rem;
        font-weight: 700;
        margin-bottom: 4px;
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .product-description {
        font-size: 0.78rem;
        color: #888;
        line-height: 1.35;
        margin-bottom: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-footer {
        padding-top: 8px;
        margin-top: 6px;
        border-top: 1px solid #f3f3f3;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .product-price {
        font-size: 1.15rem;
        font-weight: 800;
    }

    .product-badge {
        font-size: 0.68rem;
        padding: 2px 8px;
        border-radius: 12px;
    }

    /* ── Extras ── */
    .extras-container {
        padding: 20px 14px;
        margin-top: 30px;
        border-radius: 14px;
    }

    .extras-title {
        font-size: 1.25rem;
        margin-bottom: 16px;
    }

    .extras-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .extra-item {
        padding: 10px 12px;
        border-radius: 10px;
        font-size: 0.83rem;
    }

    .extra-name { font-size: 0.82rem; }
    .extra-price { font-size: 0.9rem; }

    /* ── Footer CTA ── */
    .footer-cta {
        padding: 36px 20px;
        margin-top: 40px;
    }

    .footer-cta h2 {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }

    .footer-cta p {
        font-size: 0.95rem;
        margin-bottom: 18px;
    }

    .btn-reservation {
        padding: 12px 28px;
        font-size: 0.92rem;
    }

    /* ── Back to top ── */
    .back-to-top {
        width: 42px;
        height: 42px;
        bottom: 16px;
        right: 16px;
        font-size: 16px;
    }
}

/* ═══════════════════════════════════════════
   Çok küçük ekranlar (max 380px) — 3 sütun
═══════════════════════════════════════════ */
@media (max-width: 380px) {
    .menu-hero h1 { font-size: 1.4rem; }

    /* 3 sütuna düşür — son satır yine ortada */
    .category-pills {
        gap: 5px !important;
        padding: 8px 10px !important;
    }

    .category-pill {
        flex: 0 0 calc(33.333% - 4px) !important;
        max-width: calc(33.333% - 4px) !important;
        font-size: 0.6rem !important;
        padding: 7px 3px !important;
        min-height: 34px;
        border-radius: 8px;
    }

    .product-image-wrap {
        width: 90px;
        min-width: 90px;
    }

    .product-image {
        width: 90px;
        min-height: 90px;
    }

    .product-name { font-size: 0.88rem; }
    .product-price { font-size: 1rem; }

    .extras-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════
   Yatay mod (landscape)
═══════════════════════════════════════════ */
@media (max-width: 768px) and (orientation: landscape) {
    .menu-hero { padding: 24px 0; }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Landscape'te tekrar dikey kart */
    .product-card {
        flex-direction: column;
    }

    .product-image-wrap {
        width: 100%;
        min-width: unset;
        border-radius: 14px 14px 0 0;
    }

    .product-image {
        width: 100%;
        height: 140px;
        min-height: unset;
    }
}

/* ═══════════════════════════════════════════
   Dokunmatik cihaz iyileştirmeleri
═══════════════════════════════════════════ */
@media (hover: none) and (pointer: coarse) {
    .category-pill {
        min-height: 40px;
        display: inline-flex;
        align-items: center;
    }

    .btn-reservation { min-height: 44px; }

    .product-card {
        -webkit-tap-highlight-color: transparent;
    }

    /* Dokunmatik'te active state */
    .product-card:active {
        transform: scale(0.98);
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .category-pill:active {
        opacity: 0.75;
    }
}

/* Search Section */
.search-section {
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 140px;
    z-index: 890;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Search Box Styles */
.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-box {
    position: relative;
    background: #f8f9fa;
    border-radius: 50px;
    padding: 10px 20px;
    border: 2px solid #C8A882;
    transition: all 0.3s;
}

.search-box:focus-within {
    box-shadow: 0 5px 20px rgba(111, 78, 55, 0.2);
    border-color: #6F4E37;
}

.search-icon {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: #6F4E37;
    font-size: 18px;
}

.search-input {
    width: 100%;
    border: none;
    outline: none;
    padding: 10px 45px 10px 50px;
    font-size: 16px;
    background: transparent;
}

.clear-search {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px 10px;
    transition: all 0.3s;
}

.clear-search:hover {
    color: #6F4E37;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-favorite, .btn-cart {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 500;
}

.btn-favorite {
    background: #fff;
    border: 2px solid #e74c3c;
    color: #e74c3c;
}

.btn-favorite:hover {
    background: #e74c3c;
    color: white;
}

.btn-favorite.active {
    background: #e74c3c;
    color: white;
}

.btn-cart {
    background: #6F4E37;
    color: white;
}

.btn-cart:hover {
    background: #C8A882;
}

/* Animation Classes */
.animate-title {
}

.animate-subtitle {
}

/* Floating Cart Button */
.floating-cart {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #6F4E37;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    z-index: 999;
    transition: all 0.3s;
}

.floating-cart:hover {
    background: #C8A882;
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Product Card Hover Effect */
.product-card {
    overflow: hidden;
}

.product-card::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;
}

.product-card:hover::before {
    left: 100%;
}

/* Category Counter */
.category-count {
    background: #C8A882;
    color: white;
    padding: 2px 8px;
    border-radius: 15px;
    font-size: 0.85rem;
    margin-left: 10px;
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}


/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #6F4E37, #8B6035);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    z-index: 1050;
    box-shadow: 0 4px 15px rgba(111,78,55,0.4);
    border: 2px solid rgba(255,255,255,0.15);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: linear-gradient(135deg, #D4A853, #C8A882);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(111,78,55,0.5);
}

/* Category header gradient underline */
.category-header {
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #6F4E37, #D4A853) 1;
}

.category-title {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Extra item hover */
.extra-item {
    transition: all 0.3s ease;
}

.extra-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(111,78,55,0.12);
    border-left: 3px solid #D4A853;
}

/* Footer CTA improvements */
.footer-cta {
    background: linear-gradient(135deg, #2C1810 0%, #4a2c1a 100%);
}

.footer-cta h2 {
    font-family: 'Playfair Display', Georgia, serif;
}

.btn-reservation {
    background: linear-gradient(135deg, #C8A882, #D4A853);
    box-shadow: 0 4px 20px rgba(200,168,130,0.4);
}

.btn-reservation:hover {
    background: linear-gradient(135deg, #6F4E37, #8B6035);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
