@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&display=swap');

:root {
    --gold: #cda35e;
    --gold-light: #e6c587;
    --gold-soft: rgba(205,163,94,0.22);
    --navy: #0b254c;
    --navy-2: #081f40;
    --card-bg: #14315f;
    --card-bg-2: #173a6c;
    --text-color: #f0e9da;
    --text-muted: #a3b4ce;
    --border-radius: 14px;
    --card-shadow: 0 6px 24px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(180deg, #0b254c 0%, #0a2148 55%, #0b254c 100%);
    background-attachment: fixed;
    min-height: 100vh;
    margin: 0;
}

/* Container */
.container {
    max-width: 760px;
    width: 94%;
    margin: 0 auto;
    padding: 0.25rem;
}

/* Header */
.menu-header {
    background: url('../images/header-bg.png') center center / cover no-repeat, #0b254c;
    min-height: 230px;
    text-align: center;
    border-bottom: 1px solid var(--gold-soft);
    position: relative;
}
@media (min-width: 768px) {
    .menu-header { min-height: 320px; }
}
.menu-header::after {
    content: "";
    position: absolute;
    bottom: -1px; left: 50%;
    transform: translateX(-50%);
    width: 120px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.logo-container {
    display: inline-block;
    margin: 0 auto 0.6rem;
    padding: 0;
}

.logo {
    max-height: 150px;
    width: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
}

.menu-title {
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-style: italic;
    font-weight: 500;
    letter-spacing: 1px;
    margin: 0.4rem 0 0;
}

/* Menu Navigation */
.menu-nav {
    background: rgba(11,37,76,0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.6rem 0;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--gold-soft);
}

.menu-nav .container {
    max-width: 760px;
    width: 94%;
    margin: 0 auto;
}

.nav,
.menu-nav .nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 0.5rem;
    padding-bottom: 2px;
}
.nav::-webkit-scrollbar { display: none; }

.menu-nav .nav-link {
    color: var(--gold);
    text-decoration: none;
    white-space: nowrap;
    padding: 0.4rem 1rem;
    border: 1px solid var(--gold-soft);
    border-radius: 25px;
    transition: all 0.25s ease;
    font-weight: 500;
    font-size: 0.82rem;
    background: rgba(205,163,94,0.04);
}

.menu-nav .nav-link.active,
.menu-nav .nav-link:hover {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #0a1729;
    border-color: var(--gold);
    font-weight: 600;
    box-shadow: 0 3px 12px rgba(205,163,94,0.3);
}

/* Category Section */
.category-section {
    margin-bottom: 2.5rem;
    scroll-margin-top: 5rem;
}

.category-heading {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    font-size: 1.55rem;
    font-weight: 600;
    text-align: center;
    margin: 0.5rem 0 1.4rem;
    letter-spacing: 0.5px;
    position: relative;
    text-transform: uppercase;
}
.category-heading::before,
.category-heading::after {
    content: "";
    display: inline-block;
    width: 28px; height: 1px;
    background: var(--gold);
    vertical-align: middle;
    margin: 0 0.7rem;
    opacity: 0.6;
}

/* Product Card */
.product-card {
    width: 100%;
    display: flex;
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--card-bg-2) 100%);
    border: 1px solid var(--gold-soft);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.55rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.25s ease, border-color 0.25s ease;
    align-items: stretch;
    padding: 0;
}

.product-card:hover {
    transform: translateY(-2px);
    border-color: rgba(205,163,94,0.5);
}

.product-image {
    width: 92px;
    height: 92px;
    flex-shrink: 0;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    flex: 1;
    padding: 0.7rem 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.product-details { flex: 1; }

.product-name {
    font-size: 1.02rem;
    font-weight: 600;
    margin: 0 0 0.15rem;
    color: var(--text-color);
    letter-spacing: 0.2px;
}

.product-description {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.product-price {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--gold);
    white-space: nowrap;
}

/* Footer */
footer {
    background: #081d3d;
    padding: 1.4rem 0;
    margin-top: 2.5rem;
    text-align: center;
    border-top: 1px solid var(--gold-soft);
    color: var(--text-muted);
}
footer p { margin: 0; color: var(--text-color); font-size: 0.9rem; }
footer small {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* Lightbox */
.sl-overlay { background: #000; }
.sl-wrapper .sl-navigation button,
.sl-wrapper .sl-close { color: var(--gold); }

/* Responsive */
@media (min-width: 768px) {
    .product-name { font-size: 1.08rem; }
    .product-price { font-size: 1.22rem; }
}
@media (max-width: 767px) {
    .col-md-6 { width: 100%; }
    .menu-title { font-size: 1.2rem; }
    .category-heading { font-size: 1.3rem; }
}

/* Row spacing */
.row.g-4 {
    --bs-gutter-y: 0.25rem;
    --bs-gutter-x: 0.25rem;
}
.col-12, .col-md-6, .col-lg-6 {
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-bottom: calc(var(--bs-gutter-y) * 0.5);
}
main { padding-top: 0.25rem; }

/* ===== Kategori Izgarasi (iki-seviye tasarim) ===== */
#product-views { display: none; }
.cat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 0.5rem;
}
@media (min-width: 620px) {
    .cat-grid { grid-template-columns: 1fr 1fr; }
}

.cat-card {
    position: relative;
    display: block;
    height: 130px;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid var(--gold-soft);
    box-shadow: var(--card-shadow);
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.cat-card:hover, .cat-card:active {
    transform: translateY(-2px);
    border-color: rgba(205,163,94,0.55);
}
.cat-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cat-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6,18,38,0.94) 0%, rgba(8,24,50,0.68) 48%, rgba(8,24,50,0.18) 100%);
}
.cat-card-text {
    position: absolute;
    left: 20px;
    bottom: 16px;
    right: 52px;
    z-index: 2;
}
.cat-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.15;
}
.cat-card-desc {
    font-size: 0.8rem;
    color: #cdd8ea;
    margin-top: 3px;
}
.cat-card-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 1.4rem;
    z-index: 2;
    opacity: 0.85;
}

/* Geri cubugu */
.back-bar {
    display: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(11,37,76,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gold-soft);
}
.back-bar.show { display: flex; }
.back-btn {
    background: none;
    border: 1px solid var(--gold-soft);
    color: var(--gold);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}
.back-btn:hover { background: rgba(205,163,94,0.1); }
.back-title {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    font-size: 1.05rem;
    font-weight: 600;
}
.empty-cat {
    color: var(--text-muted);
    text-align: center;
    padding: 1.5rem;
}
