* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: white;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.72),
            rgba(0, 0, 0, 0.90)
        ),
        url("images/background.jpg");

    background-size: cover;
    background-position: center;
    background-attachment: fixed;

    overflow-x: hidden;
}

/* ÜST KISIM */

.hero {
    width: min(1100px, 94%);
    margin: 0 auto;
    text-align: center;
    padding: 28px 20px 18px;
}

.logo {
    display: block;
    width: min(470px, 90%);
    max-height: 240px;
    object-fit: contain;
    margin: 0 auto 20px;
}

.hero h1 {
    font-size: clamp(38px, 7vw, 68px);
    line-height: 1.05;
    margin-bottom: 9px;
}

.hero p {
    color: #c6c6c6;
    font-size: 17px;
}

/* ANA ALAN */

.container {
    width: min(1150px, 92%);
    margin: 0 auto;
    padding-bottom: 110px;
}

/* ARAMA */

.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 20px auto 18px;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.search-input {
    display: block;
    width: 100%;
    height: 56px;

    padding: 0 52px;

    border: 1px solid rgba(42, 205, 103, 0.7);
    border-radius: 18px;

    background: rgba(5, 10, 7, 0.96);
    color: white;

    font-size: 16px;

    outline: none;

    appearance: none;
    -webkit-appearance: none;
}

.search-input::placeholder {
    color: #888;
}

.search-input:focus {
    border-color: #42df7c;
    box-shadow: 0 0 0 3px rgba(66, 223, 124, 0.12);
}

.search-input::-webkit-search-cancel-button {
    display: none;
}

.clear-search {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);

    width: 38px;
    height: 38px;

    border: none;
    border-radius: 50%;

    background: transparent;
    color: #aaa;

    font-size: 24px;
    cursor: pointer;

    display: none;
}

.clear-search.visible {
    display: block;
}

/* KATEGORİLER */

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    gap: 10px;

    margin-bottom: 22px;
}

.category-buttons button {
    min-height: 46px;

    padding: 0 18px;

    border: 1px solid #159447;
    border-radius: 999px;

    background: rgba(5, 10, 7, 0.94);
    color: white;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;
    white-space: nowrap;
}

.category-buttons button.active {
    background: #159447;
}

/* SONUÇ SAYISI */

.result-info {
    min-height: 22px;
    margin-bottom: 14px;

    text-align: center;
    color: #999;
    font-size: 13px;
}

/* ÜRÜNLER */

.menu-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.product-card {
    min-height: 190px;

    padding: 24px;

    border: 1px solid rgba(21, 148, 71, 0.58);
    border-radius: 22px;

    background: rgba(6, 10, 8, 0.96);

    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.22);
}

.product-card .category {
    display: block;

    margin-bottom: 14px;

    color: #2ec866;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1px;
}

.product-card h2 {
    margin-bottom: 10px;

    font-size: 27px;
    line-height: 1.15;
}

.product-card p {
    margin-bottom: 18px;

    color: #bbb;
    font-size: 15px;
}

/* VAR / YOK */

.available,
.unavailable {
    display: inline-block;

    padding: 8px 13px;

    border-radius: 999px;

    font-size: 13px;
    font-weight: 700;
}

.available {
    color: #43df7d;
    background: rgba(21, 148, 71, 0.16);
}

.unavailable {
    color: #aaa;
    background: rgba(150, 150, 150, 0.10);
}

.customer-product-off {
    opacity: 0.52;
    filter: grayscale(35%);
    border-color: rgba(140, 140, 140, 0.35);
}

.customer-product-off h2 {
    color: #aaa;
}

.customer-product-off .category {
    color: #777;
}

/* BOŞ SONUÇ */

.empty-state {
    grid-column: 1 / -1;

    padding: 40px 24px;

    text-align: center;

    border: 1px solid rgba(21, 148, 71, 0.4);
    border-radius: 22px;

    background: rgba(6, 10, 8, 0.96);
}

.empty-state h2 {
    margin-bottom: 8px;
}

.empty-state p {
    color: #aaa;
}

/* WHATSAPP */

.whatsapp-button {
    position: fixed;

    right: 22px;
    bottom: 22px;

    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    min-height: 56px;

    padding: 0 20px;

    border-radius: 999px;

    background: #25d366;
    color: white;

    text-decoration: none;

    font-size: 15px;
    font-weight: 800;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.42);
}

.whatsapp-symbol {
    font-size: 20px;
}

/* TELEFON */

@media (max-width: 700px) {

    body {
        background-attachment: scroll;
    }

    .hero {
        width: 100%;
        padding: 16px 14px 12px;
    }

    .logo {
        width: 86%;
        max-height: 180px;
        margin-bottom: 14px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 15px;
    }

    .container {
        width: 100%;
        padding: 0 14px 100px;
    }

    .search-wrapper {
        width: 100%;
        max-width: none;
        margin: 16px 0 14px;
    }

    .search-input {
        height: 54px;
        font-size: 16px;
        border-radius: 16px;
    }

    .category-buttons {
        width: calc(100% + 14px);

        margin-right: -14px;
        margin-bottom: 8px;

        padding: 0 14px 12px 0;

        flex-wrap: nowrap;
        justify-content: flex-start;

        overflow-x: auto;
        overflow-y: hidden;

        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .category-buttons::-webkit-scrollbar {
        display: none;
    }

    .category-buttons button {
        flex: 0 0 auto;
        min-height: 44px;
        padding: 0 16px;
    }

    .result-info {
        text-align: left;
        padding-left: 2px;
        margin-bottom: 10px;
    }

    .menu-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .product-card {
        min-height: 0;
        padding: 21px 19px;
        border-radius: 20px;
    }

    .product-card h2 {
        font-size: 25px;
    }

    .whatsapp-button {
        left: 14px;
        right: 14px;

        bottom:
            calc(
                12px +
                env(safe-area-inset-bottom)
            );

        width: auto;

        min-height: 58px;

        border-radius: 17px;

        font-size: 16px;
    }
}/* KONUM BUTONU */

.location-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-top: 16px;
    padding: 11px 20px;

    border: 1px solid #159447;
    border-radius: 999px;

    background: rgba(5, 10, 7, 0.75);
    color: #42df7c;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    transition: 0.2s ease;
}

.location-button:hover {
    background: #159447;
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 700px) {
    .location-button {
        margin-top: 14px;
        padding: 10px 18px;
        font-size: 14px;
    }
}/* =========================================
   SADECE MEVCUTLAR FİLTRESİ
========================================= */

.available-filter {
    display: flex;
    justify-content: center;
    margin: 4px 0 18px;
}

.available-switch {
    display: inline-flex;
    align-items: center;
    gap: 11px;

    cursor: pointer;
    user-select: none;

    color: #bdbdbd;
    font-size: 14px;
    font-weight: 600;
}

.available-switch input {
    display: none;
}

.switch-slider {
    position: relative;

    width: 46px;
    height: 26px;

    flex-shrink: 0;

    border: 1px solid #555;
    border-radius: 999px;

    background: #242424;

    transition: 0.25s ease;
}

.switch-slider::after {
    content: "";

    position: absolute;

    width: 18px;
    height: 18px;

    left: 3px;
    top: 3px;

    border-radius: 50%;

    background: #aaaaaa;

    transition: 0.25s ease;
}

.available-switch input:checked + .switch-slider {
    background: #159447;
    border-color: #159447;
}

.available-switch input:checked + .switch-slider::after {
    transform: translateX(20px);
    background: white;
}

.available-switch input:checked ~ .switch-text {
    color: #42df7c;
}


/* TELEFON */

@media (max-width: 700px) {

    .available-filter {
        justify-content: flex-start;
        margin: 2px 0 16px;
    }

    .available-switch {
        font-size: 13px;
    }
}