﻿* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
    touch-action: manipulation;
    padding-bottom:30px;
}





.kapak-banner {
    width: 100%;
    height: 120px;
    overflow: hidden;
}

    .kapak-banner img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.firma-bilgi {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f0f0f0; /* daha açık zemin */
    color: #333;
    padding: 15px;
    gap: 15px;
    position: relative;
}

.firma-logo img {
    height: 60px;
    width: auto;
    border-radius: 8px;
}

.firma-detay {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

    .firma-detay h1 {
        margin: 0;
        font-size: 20px;
        color: #333;
    }

.firma-ikonlar {
    margin-top: 6px;
    display: flex;
    gap: 12px;
}
    .firma-ikonlar a {
        color: #555;
        font-size: 20px;
        transition: color 0.3s;
    }

        .firma-ikonlar a:hover {
            color: #007bff; /* mavi tonlu hover */
        }








.header-content {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    width: 100%;
    margin-bottom: 10px;
}

    .header-content a {
        text-decoration: none;
        color: #333;
        font-size: 16px;
    }

    .header-content h2,
    .header-content h4 {
        margin: 0;
        font-size: 18px;
        color: #333;
    }

.container {
    display: flex;
    flex-direction: column;
    height:auto;
    overflow-y: auto;
    padding: 15px;
    align-items: center;
}










.kategori-listesi {
    flex: 1;
    width: 100%;
    overflow-y: auto;
    padding-right: 5px;
    -webkit-overflow-scrolling: touch;
}

    .kategori-listesi::-webkit-scrollbar {
        width: 0px;
    }

.kategori-kutu {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 10px;
    margin-bottom: 12px;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

    .kategori-kutu img {
        width: 70px;
        height: 70px;
        object-fit: cover;
        border-radius: 8px;
        margin-right: 12px;
        flex-shrink: 0;
    }

    .kategori-kutu h4 {
        margin: 0;
        font-size: 16px;
        color: #333;
        word-break: break-word;
    }

.alt-kutu {
    max-width: 600px;
    margin: 10px auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 10px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

    .alt-kutu img {
        width: 60px;
        height: 60px;
        object-fit: cover;
        border-radius: 8px;
        margin-right: 15px;
    }

    .alt-kutu h4 {
        margin: 0;
        font-size: 16px;
        color: #333;
    }











.urun-kutu {
    position: relative;
    display: flex;
    gap: 12px;
    padding: 10px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    margin-bottom: 12px;
    min-height: 95px;
    align-items: flex-start;
}

    .urun-kutu img {
        width: 120px;
        height: 85px;
        object-fit: cover;
        border-radius: 8px;
        flex-shrink: 0;
    }

.urun-detay {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.urun-bilgi{
    position:absolute;
    left:5px;
    top:5px;
    font-size:16px;
    font-weight:700;
}

.urun-detay p {
    margin: 4px 0;
    font-size: 13px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .urun-detay strong {
        font-size: 15px;
        color: #000;
    }

.urun-fiyat {
    position: absolute;
    top: 65px;
    right: 0;
    font-size: 18px;
    color: #28a745;
    font-weight: 600;
}

.urun-sepet {
    position: absolute;
    top: 40px;
    right: 0px;
    display: flex;
    background-color: #f9f9f9;
    border-radius: 6px;
    gap: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.adet-btn {
    padding: 4px 8px;
    font-size: 15px;
    background-color: #eee;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
}

.adet-input {
    width: 36px;
    text-align: center;
    font-size: 13px;
    padding: 2px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.urun-kutu-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}








.sepet-listesi {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    flex: 1;
    margin-bottom: 10px;
}

.sepet-urun {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: background-color 0.3s;
}

    .sepet-urun:nth-child(even) {
        background-color: #f2f8ff;
    }

.sepet-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 12px;
    flex-shrink: 0;
}

.sepet-bilgi {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-right: 12px;
}

    .sepet-bilgi strong {
        font-size: 15px;
        color: #333;
    }

    .sepet-bilgi small {
        font-size: 13px;
        color: #666;
    }

.adet-kontrol {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 12px;
}

    .adet-kontrol button {
        padding: 4px 8px;
        font-size: 14px;
        border: none;
        background-color: #eee;
        border-radius: 4px;
        cursor: pointer;
    }

.sepet-sil-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #d00;
    cursor: pointer;
    flex-shrink: 0;
}

.sepet-toplam {
    border-top: 1px solid #ddd;
    padding-top: 10px;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sepet-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .sepet-btn i {
        color: white;
        font-size: 16px;
    }

    .sepet-btn:hover {
        background-color: #218838;
    }

    .sepet-btn.danger {
        background-color: #dc3545;
    }

    .sepet-btn.secondary {
        background-color: #6c757d;
    }










.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 200;
}

.modal-icerik {
    background-color: white;
    width: 90%;
    max-width: 400px;
    border-radius: 10px;
    padding: 20px;
    position: relative;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.modal-kapat {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

#masaNoInput {
    font-size: 1.4rem;
    padding: 10px 15px;
}








#dilModal .modal-icerik {
    padding: 20px;
    max-width: 300px;
    margin: auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}


.dil-listesi {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.dil-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #ffffff;
    border: 1px solid #ccc;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .dil-btn:hover {
        background-color: #eaeaea;
    }
    .dil-listesi li {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 14px;
        background: #f9f9f9;
        border-radius: 8px;
        cursor: pointer;
        transition: background 0.2s ease;
    }

        .dil-listesi li:hover {
            background: #eaeaea;
        }

    .dil-listesi img {
        width: 38px;
        height: 24px;
        border-radius: 4px;
    }

    .dil-listesi span {
        font-size: 16px;
        font-weight: 500;
        color: #333;
    }













.menu-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #ddd;
    font-size: 0.95rem;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.footer-wrapper {
    max-width: 100%;
    padding: 8px 16px;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

    .footer-row.justify-center {
        justify-content: center;
    }

.footer-col {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .footer-col.left {
        justify-content: flex-start;
    }

    .footer-col.center {
        justify-content: center;
    }

    .footer-col.right {
        justify-content: flex-end;
        flex-direction: column;
        align-items: flex-end;
    }

.footer-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
}

    .footer-btn .icon {
        font-size: 18px;
        position: relative;
    }

.sepet-icon-wrapper {
    position: relative;
    display: inline-block;
}

.sepet-rozet {
    position: absolute;
    top: -6px;
    right: -10px;
    background-color: red;
    color: white;
    font-size: 11px;
    padding: 1px 5px;
    border-radius: 50%;
    z-index: 101;
}

.footer-logo {
    height: 40px;
    max-width: 100px;
}

.footer-phone {
    font-size: 0.9rem;
    color: #555;
    margin-top: 4px;
}

@media (max-width: 576px) {
    .footer-btn {
        font-size: 0.85rem;
        padding: 5px 8px;
    }

    .footer-logo {
        height: 36px;
    }

    .footer-phone {
        font-size: 0.85rem;
    }

    .footer-col.right {
        align-items: center;
        text-align: center;
    }
}













@media (max-width: 480px) {
    .sepet-urun {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px;
    }

    .sepet-img {
        width: 100%;
        height: 120px;
        margin-bottom: 8px;
    }

    .sepet-bilgi {
        margin-right: 0;
        margin-bottom: 6px;
    }

    .adet-kontrol {
        margin-right: 0;
        margin-bottom: 6px;
    }

    .sepet-sil-btn {
        align-self: flex-end;
    }

    .sepet-toplam {
        flex-direction: column;
        gap: 8px;
        font-size: 14px;
    }

    .modal-icerik {
        max-width: 95%;
        padding: 15px;
    }
}
