/* 1. DEĞİŞKENLER VE TEMEL AYARLAR */
:root {
    --premium-gold: #c5a059;
    --midnight-deep: #08061a;
    --card-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(197, 160, 89, 0.2);
}

body {
    background-color: var(--midnight-deep);
    color: #e0e0e0;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

/* 2. HEADER */
.menu-header {
    text-align: center;
    padding: 60px 20px 30px;
}

.menu-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: var(--premium-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

/* 3. KATEGORİ BUTONLARI */
.categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
    padding: 0 10px;
}

.category-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #aaa;
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
}

.category-btn.active {
    background: linear-gradient(135deg, #c5a059 0%, #a38142 100%);
    color: #0f0c30 !important;
    border-color: transparent;
}

/* 4. ÜRÜN GRİD SİSTEMİ - BOZULMAYI ÖNLEYEN KISIM */
.products {
    display: grid !important;
    /* Masaüstünde 4'lü, tablette 3'lü */
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
    gap: 20px;
    padding: 0 5% 60px;
    max-width: 1200px;
    margin: 0 auto;
    /* Kartların boyunu eşitlemek için */
    align-items: stretch; 
}

/* 5. PRODUCT CARD */
.product-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    overflow: hidden;
    display: flex !important;
    flex-direction: column; /* İçeriği dikeyde hizalar */
    height: 100%; /* Her kartın boyu grid hücresi kadar olur */
    transition: 0.3s;
}

.img-wrapper {
    width: 100%;
    height: 180px; /* Masaüstü görsel boyu */
    overflow: hidden;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 240px;
}

.info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* İçeriğin kartı doldurmasını sağlar */
    justify-content: space-between; /* Fiyatı en alta iter */
}

.info h3 {
    font-size: 16px;
    color: #fff;
    margin: 0 0 8px 0;
    /* Başlık 2 satırı geçerse taşmasın */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px; /* Başlıklar farklı olsa da alan sabit kalır */
}

.info p {
    font-size: 12px;
    color: #888;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price {
    font-weight: 700;
    font-size: 16px;
    color: var(--premium-gold);
    margin-top: auto; /* Fiyatı kartın en altına sabitler */
}

/* 6. MOBİL FIX - KESİN YAN YANA 2'Lİ VE DÜZGÜN */
@media (max-width: 768px) {
    .products {
       display:inherit !important;
        gap: 10px !important;
        padding: 0 10px 40px !important;
    }

    .img-wrapper {
        height: 120px; /* Mobilde görsel daha küçük */
    }

    .info {
        padding: 10px;
    }

        .info h3 {
            font-size: 13px;
            min-height: 32px;
            margin-bottom: 4px;
            display: flex;
            align-items: center; 
            justify-content: center; 
            text-align: center;
        }

        .info p {
            display: flex;
            justify-content: center;
            align-items: center;
            text-align: center;
            flex-wrap: wrap;
            word-break: break-word; 
        }

    .price {
        font-size: 14px;
    }
}
