:root {
    --bg-main: #06342a;        
    --accent: #c8996d;         
    --card-bg: #0c4237;        
    --text-white: #ffffff;
    --text-cream: #f4ece1;     
    --neon-red: #ff3f26;       
    --border-light: rgba(200, 153, 109, 0.25);
    --transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==========================================================================
   1. BASE STYLES & RESET (Media queries-dən əvvəl və ya sonra düzgün ardıcıllıq)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-cream);
    overflow-x: hidden; /* Sağ tərəfə qaçmaların qarşısını tam almaq üçün vizual sığorta */
    width: 100%;
}

/* CONTAINER STRUKTURU */
.container {
    width: 100%;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

@media (min-width: 768px) {
    .container { width: 750px; }
}
@media (min-width: 1024px) {
    .container { width: 980px; }
}
@media (min-width: 1441px) {
    .container { width: 1400px; }
}

/* HEADER VƏ NAVİQASİYA */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(6, 52, 42, 0.96);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 6%;
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
}
/*
.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--accent);
    cursor: pointer;
}
*/
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-selector {
    display: flex;
    gap: 5px;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-cream);
    padding: 4px 10px;
    font-size: 11px;
    cursor: pointer;
    border-radius: 4px;
    transition: var(--transition);
}

.lang-btn.active, .lang-btn:hover {
    background: var(--accent);
    color: var(--bg-main);
    border-color: var(--accent);
    font-weight: bold;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-cream);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

nav ul li a:hover, nav ul li a.active {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-white);
}

/* SECTIONS STRUKTURU */
.page-section {
    display: none;
    padding: 130px 6% 60px;
    min-height: 100vh;
    opacity: 0;
    transform: scale(0.99);
    transition: opacity 0.4s ease, transform 0.4s ease;
    width: 100%;
}

.page-section.active {
    display: block;
    opacity: 1;
    transform: scale(1);
}

.section-title {
    font-size: 36px;
    font-weight: 300;
    letter-spacing: 3px;
    text-align: center;
    color: var(--accent);
    margin-bottom: 40px;
    text-transform: uppercase;
}

/* HERO & GİRİŞ SƏHİFƏSİ INTERYER QALEREYASI */
.hero-section {
    text-align: center;
    max-width: 800px;
    margin: 20px auto 40px;
}

.hero-section h1 {
    font-size: 42px;
    font-weight: 300;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 16px;
    color: #a4beba;
}

.interior-showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.interior-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.interior-card.wide-card {
    grid-column: 1 / -1;
}

.interior-card .img-placeholder {
    height: 260px;
    background-color: rgba(200, 153, 109, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 14px;
    font-style: italic;
    border-bottom: 1px solid var(--border-light);
    padding: 20px;
    text-align: center;
}

.card-caption {
    padding: 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #a4beba;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
}

.neon-banner-zone {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 50px 0;
    width: 100%;
}

.neon-glow-box {
    border: 2px solid var(--neon-red);
    padding: 25px 45px;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 63, 38, 0.4), inset 0 0 15px rgba(255, 63, 38, 0.3);
    transform: rotate(-3deg);
    max-width: 100%;
}

.neon-text {
    font-family: 'Courier New', Courier, monospace;
    font-size: 32px;
    font-weight: bold;
    color: var(--text-white);
    text-shadow: 0 0 5px var(--text-white), 0 0 10px var(--neon-red), 0 0 20px var(--neon-red);
    text-align: center;
}

/* MENYU STRUKTURU */
.menu-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
}

.menu-sidebar {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 15px;
    position: sticky;
    top: 110px;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 10;
}

.cat-item {
    padding: 12px 15px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 6px;
    color: #a4beba;
    list-style: none;
    transition: var(--transition);
}

.cat-item:hover, .cat-item.active {
    background: var(--accent);
    color: var(--bg-main);
    font-weight: 600;
}

.sub-category-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
    width: 100%;
}

.sub-category-bar::-webkit-scrollbar, .menu-sidebar::-webkit-scrollbar {
    height: 4px;
    width: 4px;
}

.sub-cat-btn {
    background: rgba(200, 153, 109, 0.1);
    border: 1px solid var(--border-light);
    color: var(--text-cream);
    padding: 8px 14px;
    font-size: 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.sub-cat-btn:hover, .sub-cat-btn.active {
    background: var(--text-white);
    color: var(--bg-main);
    border-color: var(--text-white);
    font-weight: bold;
}

.category-display-title {
    font-size: 22px;
    margin-bottom: 25px;
    border-left: 4px solid var(--accent);
    padding-left: 12px;
}

.products-list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ŞƏKİLLƏRİN EKRANDAKI VİZUALI */
.product-card-with-img {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    display: flex;
    min-height: 110px;
    overflow: hidden;
    transition: var(--transition);
}

.product-image-slot {
    width: 100px;
    background-color: rgba(250, 236, 225, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border-light);
    flex-shrink: 0;
    position: relative;
}

.product-image-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.product-image-slot img:hover {
    transform: scale(1.05);
}

.product-image-slot img[src=""], 
.product-image-slot img:not([src]) {
    display: none !important;
}

.fallback-icon {
    font-size: 24px;
}

.product-info-slot {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.product-info-slot h4 {
    font-size: 15px;
    color: var(--text-white);
    margin-bottom: 4px;
}

.product-info-slot p {
    font-size: 12px;
    color: #a4beba;
    line-height: 1.4;
    margin-bottom: 8px;
}

.product-price-tag {
    font-size: 14px;
    font-weight: bold;
    color: var(--accent);
}

/* REZERVASİYA VƏ DIGƏR DETALLAR */
.reservation-grid-main {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
}

.interactive-map-container, .booking-form-wrapper {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    padding: 25px;
    border-radius: 8px;
}

.cafe-floor-map {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.map-cell {
    background: rgba(200, 153, 109, 0.15);
    border: 2px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.table-round { height: 75px; border-radius: 50%; }
.table-rect { height: 75px; border-radius: 8px; }

.map-cell:hover, .map-cell.active-select {
    background: var(--accent);
    color: var(--bg-main);
}

input, textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-main);
    border: 1px solid var(--border-light);
    color: var(--text-white);
    border-radius: 4px;
    margin-bottom: 15px;
}

.form-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.phi-btn-accent {
    width: 100%;
    background: var(--accent);
    color: var(--bg-main);
    border: none;
    padding: 14px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
}

.events-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.event-card-modern {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
}

.event-image-placeholder {
    height: 200px;
    background: rgba(255,255,255,0.02);
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-details-box {
    padding: 20px;
}

.about-flex-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.interior-sample-box {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}


/* HERO & GİRİŞ SƏHİFƏSİ INTERYER QALEREYASI (16:9 Tam Responsiv) */
.interior-showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.interior-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.interior-card.wide-card {
    grid-column: 1 / -1;
}

/* Müasir aspect-ratio xüsusiyyəti ilə şəkil sahəsini 16:9 nisbətinə məcbur edirik */
.interior-card .img-placeholder {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background-color: rgba(200, 153, 109, 0.04);
    border-bottom: 1px solid var(--border-light);
    position: relative;
    padding: 0; /* Şəklin tam kənarlara oturması üçün daxili boşluğu sıfırlayırıq */
    overflow: hidden;
}

/* Şəkillərin basıq və ya uzanmış görünməməsi, tam 16:9 sahəni örtməsi üçün */
.interior-card .img-placeholder img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.card-caption {
    padding: 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #a4beba;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    margin-top: auto; /* Yazının həmişə kartın ən altında sabit qalmasını təmin edir */
}

/* Mobil və Planşet responsivliyi üçün media sorğusu */
@media (max-width: 768px) {
    .interior-showcase-grid {
        grid-template-columns: 1fr; /* Kiçik ekranlarda bütün kartlar tək sütun şəklində alt-alta düzülür */
        gap: 15px;
    }
}


/* ŞƏKİL BÖYÜTMƏ MODALININ CSS KODLARI */
.zoom-modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    padding-top: 60px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: hidden; 
    background-color: rgba(3, 22, 18, 0.95); 
    backdrop-filter: blur(8px);
}

.zoom-modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: zoomInAnim 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes zoomInAnim {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-zoom {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--text-cream);
    font-size: 44px;
    font-weight: 200;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.close-zoom:hover {
    color: var(--accent);
}

/* ================= RESPONSİVLİK VƏ SCROLL-X PROBLEMİNİN TAM HƏLLİ ================= */
@media (max-width: 1024px) {
    .menu-container {
        grid-template-columns: minmax(0, 1fr); /* KRİTİK DƏYİŞİKLİK: white-space: nowrap-un ekranı sındırmasının qarşısını alır */
        gap: 20px;
    }

    .menu-sidebar {
        position: sticky;
        top: 74px; 
        z-index: 100;
        max-height: none;
        overflow-y: visible;
        overflow-x: auto;
        background: var(--bg-main);
        border-radius: 0;
        border-top: none;
        border-left: none;
        border-right: none;
        border-bottom: 1px solid var(--border-light);
        padding: 12px 0;
        margin: 0; 
        width: 100%;
    }

    #category-list {
        display: flex;
        flex-direction: row;
        gap: 10px;
        padding-bottom: 2px;
    }

    .cat-item {
        padding: 8px 18px;
        white-space: nowrap;
        background: rgba(200, 153, 109, 0.08);
    }

    .reservation-grid-main, .interior-showcase-grid, .events-gallery, .about-flex-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    
    nav {
        position: fixed; 
        top: 0; 
        right: -100%; 
        width: 75%; 
        height: 100vh;
        background: var(--bg-main); 
        padding: 100px 30px; 
        transition: var(--transition);
        z-index: 999;
    }
    
    nav.open { right: 0; }
    nav ul { flex-direction: column; gap: 20px; }
    
    .products-list-grid { 
        grid-template-columns: minmax(0, 1fr); 
    }
    
    .zoom-modal-content {
        max-width: 95%;
        max-height: 75vh;
    }

    /* Mobil ekranlar üçün daşma tənzimləmələri */
    .form-split {
        grid-template-columns: 1fr; /* Giriş sahələri mobildə alt-alta düşür */
    }

    .neon-glow-box {
        padding: 15px 25px; /* Mobildə daxili məsafələr kiçilir */
        border-radius: 25px;
    }

    .neon-text {
        font-size: 22px; /* Şrift ölçüsü kiçildilir ki, kənara daşmasın */
    }
}