/* Kahve Durağı QR menü — modern tipografi + boşluk + telefon uyumu.
   Tema CSS'inin üstüne biner. Çalışma mantığı değişmez. */

:root {
    --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
    --fs-xs: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
    --fs-sm: clamp(1rem, 0.94rem + 0.3vw, 1.1rem);
    --fs-base: clamp(1.0625rem, 1rem + 0.35vw, 1.2rem);
    --fs-md: clamp(1.15rem, 1.05rem + 0.45vw, 1.3rem);
    --fs-lg: clamp(1.3rem, 1.15rem + 0.6vw, 1.5rem);
    --fs-xl: clamp(1.45rem, 1.25rem + 0.9vw, 1.8rem);
    --fs-2xl: clamp(1.65rem, 1.4rem + 1.1vw, 2.05rem);
    --fs-3xl: clamp(1.85rem, 1.5rem + 1.5vw, 2.5rem);
    --lh-tight: 1.22;
    --lh-body: 1.5;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --page-gutter: clamp(1.15rem, 4.8vw, 2rem);
    --radius: 14px;
    --text: #1c1c1c;
    --text-muted: #6b6b6b;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body,
p,
a,
button,
input,
select,
textarea,
h1, h2, h3, h4, h5, h6,
.font1,
.font3,
#logo,
#main-menu ul li a,
.slider-content h1,
.slider-content p,
.video-content h1,
.video-content p,
.kategori-isim,
.urun-ad,
.price,
.btn,
.modal,
.modal-title,
#footer,
.language-link {
    font-family: var(--font) !important;
}

body {
    color: var(--text);
    font-size: var(--fs-base);
    line-height: var(--lh-body);
    letter-spacing: -0.011em;
    background: #f7f5f2;
}

body p {
    font-size: var(--fs-base);
    line-height: var(--lh-body);
    margin-bottom: 0.6em;
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.03em;
    line-height: var(--lh-tight);
    font-weight: 700;
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }
h5 { font-size: var(--fs-base); }

#content {
    background-color: #f7f5f2;
    padding-bottom: clamp(1rem, 3vw, 2rem);
}

.banner-hero-img,
.footer-badge,
#footer img,
#logo img {
    max-width: 100%;
    height: auto;
}

.kategori-card img,
.overlay_item img {
    max-width: 100%;
}

/* ---------- Header / dil ---------- */
.language-switcher {
    flex-direction: row;
    align-items: center;
    margin-top: 0;
    gap: 6px;
}

.language-link {
    width: auto;
    min-width: 52px;
    height: 36px;
    padding: 0 12px;
    margin: 0;
    justify-content: center;
    font-size: var(--fs-base);
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 999px;
}

.language-link.active {
    background-color: var(--primary-color);
    color: #111;
}

#header > .container {
    margin-left: var(--page-gutter);
    margin-right: var(--page-gutter);
}

.banner-hero-img {
    width: 100%;
    height: min(42vw, 380px);
    min-height: 150px;
    display: block;
    object-fit: cover;
}

.banner-image-wrapper {
    overflow: hidden;
}

.banner .banner-content {
    width: 92%;
    max-width: 720px;
    box-sizing: border-box;
    padding: 0 var(--space-3);
}

.banner .slider-content h1,
.slider-content h1 {
    font-size: var(--fs-3xl);
    font-weight: 700;
    margin: 0 0 var(--space-2);
    line-height: var(--lh-tight);
    overflow-wrap: anywhere;
    letter-spacing: -0.035em;
    text-transform: none;
}

.banner .slider-content p,
.banner .banner-content p,
.slider-content p {
    font-size: var(--fs-base);
    font-weight: 500;
    letter-spacing: 0.01em;
    margin: 0;
    line-height: 1.45;
    text-transform: none;
}

.kategori-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(0.5rem, 1.6vw, 1rem);
    margin: clamp(0.75rem, 2.2vw, 1.25rem) var(--page-gutter);
}

.kategori-card {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    border-radius: var(--radius);
}

.kategori-isim {
    font-family: var(--font) !important;
    font-size: var(--fs-base);
    font-weight: 600;
    letter-spacing: -0.01em;
    padding: 0.55em 0.45em;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
}

.geri {
    margin: var(--space-2) var(--page-gutter) var(--space-4);
    border-radius: 999px;
    padding: 0.55em 1.35em;
    min-height: 44px;
    font-size: var(--fs-base);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.menu_tabs .padding-t-20,
.padding-t-20 {
    padding-top: clamp(0.65rem, 1.8vw, 1.15rem);
    padding-bottom: clamp(0.35rem, 1vw, 0.75rem);
}

.urun-listesi {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.urun-kart {
    background: #fff;
    border-radius: var(--radius);
    padding: clamp(0.85rem, 2vw, 1.15rem) clamp(0.85rem, 2vw, 1.1rem);
    margin-bottom: clamp(0.85rem, 2vw, 1.2rem) !important;
    box-shadow: 0 2px 12px rgba(28, 28, 28, 0.06);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    padding-left: clamp(0.85rem, 2vw, 1.1rem) !important;
    padding-right: clamp(0.85rem, 2vw, 1.1rem) !important;
}

.urun-kart h3 {
    margin-top: 0;
    margin-bottom: 0.4em;
}

.urun-kart .urun-ad,
.urun-kart .urun-ad a {
    font-size: var(--fs-lg);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--text);
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    display: block;
}

.urun-kart .price {
    white-space: nowrap;
    font-size: var(--fs-lg);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--primary-color);
}

.urun-kart .item-img {
    padding-bottom: 100%;
}

.urun-kart .overlay_item {
    height: 100%;
    max-height: none;
    border-radius: 10px;
}

.urun-kart .aciklama-class {
    font-size: var(--fs-base);
    font-weight: 500;
    line-height: 1.45;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.urun-kart .glowing-img {
    margin: 6px 6px 0 0;
}

.food-banner {
    margin-top: clamp(0.35rem, 1.2vw, 0.75rem);
}

.food-banner .bcg {
    padding: 0;
}

.food-banner .banner-content {
    padding: clamp(0.45rem, 1.2vw, 0.8rem) 0;
}

.food-banner h2 {
    font-size: var(--fs-xl);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0.2em 0 0;
    text-transform: none;
}

.food-banner i {
    margin-bottom: 2px;
}

#footer {
    font-size: var(--fs-sm);
}

#footer.padding-50 {
    padding: clamp(1.25rem, 4vw, 2.5rem) 0 clamp(0.85rem, 2vw, 1.35rem);
}

#footer h3 {
    font-size: var(--fs-lg);
    margin: 0 0 0.35em;
}

#footer h5 {
    font-size: var(--fs-sm);
    font-weight: 500;
    line-height: 1.45;
    margin: 0 0 0.6em;
    color: rgba(255, 255, 255, 0.88);
}

#footer .footer_renk {
    font-size: var(--fs-sm);
    line-height: 1.5;
    font-weight: 500;
}

#footer .social.mt30 {
    margin-top: 0.85rem;
}

#footer img,
.footer-badge {
    max-width: 100%;
    height: auto;
}

.footer_logo {
    padding: 0.75rem var(--page-gutter) 1.1rem;
}

.footer_logo p {
    font-size: var(--fs-sm);
    margin: 0.5em 0 0;
    line-height: 1.45;
    opacity: 0.85;
}

#scroll_up {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

/* ---------- Kampanya tam ekran ---------- */
#kampanyaModal {
    padding: 0 !important;
    font-family: var(--font);
}

#kampanyaModal .modal-dialog {
    width: 100% !important;
    max-width: 100%;
    height: 100%;
    margin: 0;
}

#kampanyaModal > .modal-body {
    padding: 0;
    height: 100%;
}

#kampanyaModal .modal-content {
    position: relative;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    background: #000;
    display: flex;
    flex-direction: column;
}

#kampanyaModal .modal-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    background: rgba(0, 0, 0, 0.45);
    border: 0;
    color: #fff;
    padding: max(12px, env(safe-area-inset-top)) 16px 10px;
}

#kampanyaModal .modal-header .modal-title {
    color: #fff;
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: -0.01em;
}

#kampanyaModal .modal-header .close {
    color: #fff;
    opacity: 1;
    font-size: 32px;
    font-weight: 400;
    text-shadow: none;
}

#kampanyaModal .modal-content > .modal-body {
    position: relative;
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #000;
}

#kampanyaModal .modal-content > .modal-body h2 {
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    z-index: 2;
    margin: 0;
    padding: 8px 16px;
    color: #fff;
    text-align: center;
    font-size: var(--fs-md);
    font-weight: 600;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

#kampanyaModal .modal-content > .modal-body .text-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

#kampanyaModal img,
#kampanyaModal img.img-ortala {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-width: 100%;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    object-fit: contain;
    border-radius: 0;
    margin: 0;
}

#kampanyaModal .modal-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    background: rgba(0, 0, 0, 0.45);
    border: 0;
    text-align: center;
    padding: 10px 16px max(12px, env(safe-area-inset-bottom));
}

#kampanyaModal .modal-footer .btn {
    min-width: 120px;
    border-radius: 999px;
    font-weight: 600;
}

/* ---------- Ürün modal ---------- */
#urunModal .modal-dialog {
    max-width: 420px;
    margin: 24px auto;
}

#urunModal .urun-detay {
    position: relative;
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 24px 60px rgba(28, 22, 16, 0.22);
}

.urun-detay-kapat {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    color: #1c1c1c !important;
    opacity: 1;
    font-size: 26px;
    font-weight: 400;
    line-height: 38px;
    text-shadow: none;
}

.urun-detay-kapat:hover,
.urun-detay-kapat:focus {
    opacity: 1;
    background: #fff;
    color: #1c1c1c !important;
}

.urun-detay-gorsel {
    margin: 0;
    padding: 48px 20px 8px;
    background: linear-gradient(180deg, #f3efe9 0%, #fff 100%);
    text-align: center;
}

.urun-detay-gorsel img,
#urunModal .img-ortala {
    width: auto;
    max-width: 86%;
    max-height: 32vh;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(40, 30, 20, 0.08);
}

.urun-detay-govde {
    padding: 8px 22px 4px;
}

#urunModal #urun {
    font-size: clamp(1.2rem, 4.2vw, 1.45rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.28;
    word-break: break-word;
    margin: 0 0 0.4em;
    color: var(--text);
    text-align: left;
}

#urunModal #aciklama {
    font-size: 1.02rem !important;
    font-weight: 500 !important;
    line-height: 1.55 !important;
    color: #6a6560 !important;
    margin: 0 0 4px !important;
    word-break: break-word;
}

#urunModal .modal-footer {
    border: 0;
    padding: 12px 22px 22px;
    text-align: center;
    background: #fff;
}

.urun-detay-btn {
    display: block;
    width: 100%;
    border: 1.5px solid #e6e0d8;
    border-radius: 14px;
    padding: 12px 16px;
    background: #f7f5f2;
    color: #2a2a2a;
    font-family: var(--font);
    font-weight: 600;
    font-size: 1rem;
    min-height: 48px;
    letter-spacing: -0.01em;
    box-shadow: none;
}

.urun-detay-btn:hover,
.urun-detay-btn:focus {
    background: #efebe4;
    color: #111;
    border-color: #ddd6cc;
}

#urunModal .alerjen-alani {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #efebe6;
    text-align: left;
}

#urunModal .alerjen-baslik-container {
    display: block;
    width: 100%;
    margin: 0 0 10px;
    padding: 0;
    border-radius: 0;
    background: none;
    color: #8a8178;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: left;
}

#urunModal .alerjen-container {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    max-width: none;
    margin: 0;
}

#urunModal .alerjen-kart {
    width: 100% !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    background: #f7f5f2;
    border: 1px solid #ece7e0;
    border-radius: 14px;
    box-shadow: none;
    overflow: visible;
}

#urunModal .alerjen-ust-cizgi {
    display: none;
}

#urunModal .alerjen-kart img,
#urunModal .alerjen-img {
    width: 34px !important;
    height: 34px !important;
    margin: 0 !important;
    flex-shrink: 0;
    filter: none;
}

#urunModal .alerjen-isim {
    display: block;
    max-width: none !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    color: #3d3a36 !important;
    font-size: 0.95rem !important;
    font-weight: 600;
    letter-spacing: -0.015em !important;
    line-height: 1.35;
    text-align: left;
}

#urunModal .alerjen-kart:hover {
    transform: none !important;
    box-shadow: none !important;
}

@media (min-width: 992px) {
    #main-menu-trigger {
        position: absolute !important;
        opacity: 0 !important;
        pointer-events: none !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden;
        margin: 0 !important;
    }
}

@media (max-width: 1199px) {
    .kategori-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    #header,
    #header.header-transparent {
        height: auto !important;
        min-height: 56px;
        padding: 8px 0 !important;
        padding-top: max(8px, env(safe-area-inset-top)) !important;
        background-color: #fff !important;
    }

    #header > .container {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        max-width: 100%;
        padding: 0 var(--page-gutter);
    }

    #header > .container > .row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 0;
    }

    #logo {
        float: none;
        margin: 0 !important;
        padding: 4px 0 !important;
        text-align: left !important;
        max-width: 50%;
    }

    #logo a {
        margin-top: 0;
    }

    #logo img {
        width: 68px;
        margin: 0;
    }

    #main-menu-trigger {
        position: static !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        width: auto !important;
        height: auto !important;
        margin: 0 0 0 auto !important;
        top: auto !important;
        left: auto !important;
        display: flex !important;
        justify-content: flex-end;
        align-items: center;
        line-height: normal;
        font-size: inherit;
        color: inherit;
    }

    #main-menu {
        display: none !important;
    }

    .banner-hero-img {
        height: 200px;
        min-height: 160px;
    }

    .banner .banner-content .container {
        height: auto !important;
    }

    .kategori-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .food-banner i {
        font-size: 18px !important;
    }
}

@media (max-width: 767px) {
    .kategori-grid {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 0.7rem;
        margin-bottom: 0.7rem;
    }

    .kategori-isim {
        font-size: var(--fs-sm);
        padding: 0.5em 0.4em;
    }

    .banner-hero-img {
        height: 168px;
        min-height: 140px;
    }

    .menu_tabs .container {
        width: 100%;
        padding-left: var(--page-gutter) !important;
        padding-right: var(--page-gutter) !important;
    }

    .urun-kart {
        width: 100%;
    }

    .urun-kart .aciklama-class {
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .geri {
        width: calc(100% - (var(--page-gutter) * 2));
        margin-left: var(--page-gutter);
        margin-right: var(--page-gutter);
    }

    #urunModal {
        padding-right: 0 !important;
    }

    #urunModal .modal-dialog,
    #urunModal > .modal-dialog {
        width: auto;
        margin: 18px 18px;
    }

    #urunModal .urun-detay {
        max-height: calc(100dvh - 36px);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        border-radius: 22px;
    }

    .urun-detay-govde {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 6px 20px 4px;
        flex: 1;
    }

    #urunModal .modal-footer {
        padding: 10px 20px calc(16px + env(safe-area-inset-bottom, 0px));
    }

    #urunModal .img-ortala,
    .urun-detay-gorsel img {
        max-height: 30vh;
    }

    .footer-badge {
        width: 140px;
        margin-top: 0 !important;
    }
}

@media (max-width: 480px) {
    .banner-hero-img {
        height: 140px;
        min-height: 120px;
    }

    .language-link {
        min-width: 50px;
        padding: 0 10px;
        height: 34px;
    }

    #logo img {
        width: 60px;
    }

    .urun-kart {
        padding: 0.7rem 0.65rem 0.6rem;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .urun-kart {
        width: 50%;
    }
}
