/* ---------------------------------------------------
   ANA SAYFA VİTRİN DÜZENİ (MASAÜSTÜ: 3 KOLON)
   --------------------------------------------------- */
@media (min-width: 992px) { 
    #content.page-home {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-start;
    }
    
    /* Önce tüm modülleri tam genişlik yapıp aşağı itiyoruz */
    #content.page-home > * {
        flex: 0 0 100%;
        order: 10;
        margin-bottom: 20px;
    }

    /* 1. SOL: Kategori Ağacı */
    #content.page-home > .block-categories {
        flex: 0 0 24% !important;
        order: 1;
        background: #ffffff;
        border: 1px solid #eeeeee;
        border-radius: 8px;
        min-height: 350px; /* İçi boşken bile tasarım çökmesin diye geçici yükseklik */
    }

    /* 2. ORTA: Slider (Görsel Kaydırıcı) */
    #content.page-home > #carousel {
        flex: 0 0 50% !important;
        order: 2;
    }

    /* 3. SAĞ: Bağlantı Listesi (veya diğer 3. sıra modülleri) */
    #content.page-home > .link-block,
    #content.page-home > .links {
        flex: 0 0 24% !important;
        order: 3;
        background: #ffffff;
        border: 1px solid #eeeeee;
        border-radius: 8px;
        min-height: 350px; 
    }
}

/* ---------------------------------------------------
   ANA SAYFA VİTRİN DÜZENİ (MOBİL: ALT ALTA)
   --------------------------------------------------- */
@media (max-width: 991px) {
    #content.page-home {
        display: flex;
        flex-direction: column;
    }
    #content.page-home > * {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        margin-bottom: 20px !important;
    }
    
    /* Mobilde görsel kalabalığı önlemek için sol ve sağ blokları gizleyebilirsin. 
       Görünmesini istersen aşağıdaki 4 satırı silebilirsin. */
    #content.page-home > .block-categories,
    #content.page-home > .link-block,
    #content.page-home > .links {
        display: none !important;
    }
}