.af-grid {

    display:grid;

    grid-template-columns:repeat(5,1fr);

    gap:20px;

}


/* Tablet */
@media(max-width:1024px){

    .af-grid{

        grid-template-columns:repeat(3,1fr);

    }

}


/* Mobil */
@media(max-width:767px){

    .af-grid{

        grid-template-columns:repeat(2,1fr);

    }

}


.af-card {

    background:#ffffff;
    border-radius:20px;
    padding:25px;
    display:flex;
    flex-direction:column;
    text-align:center;
    border:1px solid #eeeeee;
    transition:all .3s ease;
}


.af-card:hover {

    transform:translateY(-5px);
    box-shadow:0 15px 35px rgba(0,0,0,.08);

}



.af-logo {

    height:110px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:20px;

}



.af-logo img {

    max-width:150px;
    max-height:90px;
    width:auto;
    height:auto;
    object-fit:contain;

}



.af-card h3 {

    font-size:18px;

    line-height:1.4;

    min-height:50px;

    display:-webkit-box;

    -webkit-line-clamp:2;

    -webkit-box-orient:vertical;

    align-items:center;

    justify-content:center;

    text-align:center;
}

.af-branch {

    font-size:14px;

    font-weight:500;

    color:#64748b;

}

.af-discount {

    display:inline-flex;
    
    align-items:center;

    justify-content:center;

    align-self:center;

    text-align:center;

    background:#ecfdf5;

    color:#15803d;

    padding:10px 18px;

    border-radius:30px;

    font-size:15px;

    font-weight:700;

    margin-bottom:18px;

}



.af-detail-btn {

    width:100%;

    background:#B17D1A;

    color:white;

    padding:12px 20px;
    
    border:none;

    border-radius:12px;

    font-size:14px;

    font-weight:500;
    
    margin-top:auto;

    transition:.3s;

}



.af-detail-btn:hover {

    background:#000;

}



@media(max-width:900px){

    .af-grid{

        grid-template-columns:repeat(2,1fr);

    }

}



@media(max-width:600px){

    .af-grid{

        grid-template-columns:1fr;

    }

}

/* MODAL */

.af-modal {

    display:none;

    position:fixed;

    inset:0;

    background:rgba(15,23,42,.65);

    backdrop-filter:blur(5px);

    z-index:99999;

    padding:20px;

}


.af-modal-box {

    background:#ffffff;

    width:100%;

    max-width:420px;
    
    max-height:85vh;

    margin:60px auto;

    padding:35px 30px;

    border-radius:28px;

    text-align:center;

    position:relative;
    
    overflow-y:auto;

    box-shadow:0 25px 70px rgba(0,0,0,.18);

    animation:afModalOpen .3s ease;

}


@keyframes afModalOpen {

    from {

        opacity:0;

        transform:translateY(30px) scale(.96);

    }


    to {

        opacity:1;

        transform:translateY(0) scale(1);

    }

}



.af-close {

    position:sticky;

    float:right;

    top:0;

    right:0;

    width:36px;

    height:36px;

    display:flex;

    align-items:center;

    justify-content:center;

    background:#f1f5f9;

    border-radius:50%;

    font-size:24px;

    color:#475569;

    cursor:pointer;

    z-index:10;

}



.af-modal-logo {

    height:110px;

    display:flex;

    align-items:center;

    justify-content:center;

    margin-bottom:20px;

}


.af-modal-logo img {

    max-width:160px;

    max-height:100px;

    object-fit:contain;

}



.af-modal-title {

    font-size:24px;

    font-weight:700;

    color:#111827;

    margin-bottom:15px;

}

.af-modal-branch {

    font-size:15px;

    color:#64748b;

    margin-top:-10px;

    margin-bottom:15px;

    font-weight:500;

}

.af-modal-discount {

    display:inline-flex;

    align-items:center;

    justify-content:center;

    background:#dcfce7;

    color:#15803d;

    padding:10px 20px;

    border-radius:50px;

    font-size:16px;

    font-weight:700;

    margin-bottom:25px;

}

.af-modal-description {

    text-align:left;

    color:#475569;

    font-size:14px;

    line-height:1.6;
    
    white-space:normal;

    margin:15px 0;

}

.af-modal-address,.af-modal-hours,
.af-modal-phone {

    display:flex;

    align-items:flex-start;

    width:100%;

    box-sizing:border-box;

    text-align:left;

    background:#f8fafc;

    padding:14px 16px;

    border-radius:12px;

    margin:10px 0;

    color:#475569;

    font-size:14px;

    line-height:1.5;

    text-decoration:none;

    word-break:break-word;

    overflow-wrap:anywhere;

}

.af-modal-hours {
    display:none;
}

.af-modal-phone:hover {

    color:#475569;

}

.af-modal-actions {

    margin-top:25px;

}



.af-modal-actions a {

    display:flex;

    align-items:center;

    justify-content:center;

    gap:8px;

    width:100%;

    padding:14px;

    border-radius:14px;

    margin-top:12px;

    text-decoration:none;

    font-weight:600;

    transition:.3s;

}


.af-modal-whatsapp {

    background:#22c55e;

    color:white!important;

}


.af-modal-website {

    background:#111827;

    color:white!important;

}


.af-modal-actions a:hover {

    transform:translateY(-2px);

}

/* KATEGORİ FİLTRELERİ */

.af-filters {
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:10px;
    margin-bottom:30px;
}

.af-filter-btn {
    border:1px solid #e5e7eb;
    background:#ffffff;
    color:#475569;
    padding:10px 18px;
    border-radius:30px;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
    transition:all .3s ease;
}

.af-filter-btn:hover {
    background:#111827;
    color:#ffffff;
    border-color:#111827;
}

.af-filter-btn.active {
    background:#B17D1A;
    color:#ffffff;
    border-color:#B17D1A;
}

@media(max-width:600px){

    .af-filters {
        gap:8px;
        margin-bottom:25px;
    }

    .af-filter-btn {
        padding:9px 14px;
        font-size:13px;
    }

}