﻿h2 {
    -webkit-text-stroke: 0.3px black;
    text-align: center;
    font-size: 33px;
    font-family: ui-sans-serif;
    color: #0059ff !important;
    text-align: center;
}

@media screen and (min-width: 1201px) {
    /* Modal (Resim Büyütme) */

    .container {
        max-width: auto;
        margin: auto;
        text-align: center;
        padding: 20px;
        flex-grow: 1;
    }

    .modal {
        display: none;
        position: fixed;
        z-index: 1;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0, 0, 0, 0.7);
        padding: 20px;
    }

        .modal .modal-content {
            width: 70%; /* Sayfa boyutunda tam büyümesini sağlamak */
            padding: 20px;
            margin: 0 auto;
            display: block;
            object-fit: contain;
        }

            .modal .modal-content .modalImg {
                max-width: 100%; /* İçeriğe sığsın */
                max-height: 80vh; /* Ekran yüksekliğini aşmasın */
                object-fit: contain; /* Resmin oranını koru */
                border-radius: 6px;
            }

        .modal .close {
            position: absolute;
            top: 5px;
            right: 10px;
            color: black;
            font-size: 40px;
            font-weight: bold;
            cursor: pointer;
            z-index: 1;
        }

    .close:hover,
    .close:focus {
        color: #f00;
        text-decoration: none;
        cursor: pointer;
    }

    .kategori {
        width: auto;
        height: 225px;
        background: #f8f8f8;
        border-radius: 10px;
        padding: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
    }

        .kategori:hover {
            background: #ffe8c04d;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
            transform: scale(1.05);
        }

    .kategori-resim {
        width: 225px;
        height: 170px;
        border-radius: 5px;
        object-fit: cover;
    }

    .kategori .kategori-ad {
        padding-top: inherit;
        font-size: 17px;
        -webkit-text-stroke: 0.4px black;
        color: #0322a9f5;
        font-family: 'Playfair Display', serif;
    }

    .product-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 15px;
    }

    /* Ürün Kartı */
    .product-item {
        display: flex;
        justify-content: space-around;
        flex-wrap: wrap;
        background-color: #fff;
        border: 1px solid #ddd;
        padding: 12px;
        margin: 8px;
        border-radius: 8px;
        width: 220px;
        text-align: center;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

        .product-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
        }

            /* Ürün Görseli */


            /* Ürün görseli hover efekti */
            .product-item:hover img {
                transform: scale(1.05);
            }

    /* Ürün Adı */
    .product-name {
        font-size: 16px;
        font-weight: bold;
        margin: 10px 0 8px 0;
        color: #333;
        text-transform: capitalize;
    }

    /* Ürün Fiyatı */
    .product-price {
        color: #28a745;
        font-size: 14px;
        font-weight: bold;
    }

        .product-price::before {
            content: "₺";
            margin-right: 5px;
        }

    .product-item img {
        max-width: 80%;
        max-height: 150px;
        object-fit: cover;
        border-radius: 8px;
        transition: transform 0.3s ease;
        cursor: pointer;
    }
}

@media screen and (max-width: 1200px) {
    h2 {
        -webkit-text-stroke: 0.3px black;
        text-align: center;
        font-size: 33px;
        font-family: ui-sans-serif;
        color: #0059ff !important;
        text-align: center;
    }

    .container {
        max-width: auto;
        margin: auto;
        text-align: center;
        padding: 20px;
        flex-grow: 1;
    }

    .navbar {
        width: 100%;
        background-color: #2c3e50;
        display: flex;
        justify-content: right;
        gap: 20px;
    }

    .navbar-brand {
        width: 400px;
    }

        .navbar-brand .Logo {
            height: 77px;
            padding: 6px;
            width: 240px;
            left: 50px;
            position: absolute;
        }

    .nav-item {
        text-align: center;
    }

    .form-inline {
        padding: 5px;
    }

    .navbar a {
        color: white;
        text-decoration: none;
        font-size: 18px;
        padding: 10px 15px;
        transition: 0.3s;
    }

        .navbar a:hover {
            background-color: #3498db;
            border-radius: 5px;
        }

    .kategori {
        width: 150px;
        height: 200px;
        background: #f8f8f8;
        border-radius: 10px;
        padding: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
    }

        .kategori:hover {
            background: #ffe8c04d;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
            transform: scale(1.05);
        }

        .kategori .kategori-resim {
            width: -webkit-fill-available;
            height: 140px;
            border-radius: 5px;
            object-fit: cover;
        }

        .kategori .kategori-ad {
            padding-top: inherit;
            font-size: 15px;
            -webkit-text-stroke: 0.3px black;
            color: #0322a9f5;
            font-family: 'Playfair Display', serif;
        }
    /* Modal (Resim Büyütme) */
    .modal {
        display: none;
        position: fixed;
        z-index: 1;
        left: 0;
        top: 0;
        width: 100%;
        overflow: auto;
        background-color: rgba(0, 0, 0, 0.7);
        padding: 20px;
    }

        .modal .modal-content {
            width: 100%; /* Sayfa boyutunda tam büyümesini sağlamak */
            padding: 20px;
            margin: 0 auto;
            display: block;
            object-fit: contain;
        }

            .modal .modal-content .modalImg {
                width: 40%; /* Sayfa boyutunda tam büyümesini sağlamak */
            }

        .modal .close {
            position: absolute;
            top: 5px;
            right: 5px;
            color: black;
            font-size: 40px;
            font-weight: bold;
            cursor: pointer;
            z-index: 1;
        }


    .product-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 15px;
    }

    /* Ürün Kartı */
    .product-item {
        display: flex;
        justify-content: space-around;
        flex-wrap: wrap;
        background-color: #fff;
        border: 1px solid #ddd;
        padding: 12px;
        margin: 8px;
        border-radius: 8px;
        width: 220px;
        text-align: center;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

        .product-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
        }

    .product-name {
        font-size: 16px;
        font-weight: bold;
        margin: 10px 0 8px 0;
        color: #333;
        text-transform: capitalize;
    }

    /* Ürün Fiyatı */
    .product-price {
        color: #28a745;
        font-size: 14px;
        font-weight: bold;
    }

        .product-price::before {
            content: "₺";
            margin-right: 5px;
        }


    .product-item img {
        max-width: max-content;
        height: 150px;
        object-fit: cover;
        border-radius: 8px;
        transition: transform 0.3s ease;
        cursor: pointer;
    }
}

@media screen and (min-width: 400px) and (max-width: 991.5px) {
    .navbar {
        width: 100%;
        background-color: #2c3e50;
        display: flex;
        justify-content: right;
        gap: 20px;
    }

    .navbar-brand {
        width: 400px;
    }

    .navbar .navbar-toggler {
        margin: 0px 10px 0px 0px;
    }

    .navbar .navbar-brand .Logo {
        height: 75px;
        padding: 15px;
        width: 240px;
        left: 50px;
        position: absolute;
    }

    .navbar a {
        color: white;
        text-decoration: none;
        font-size: 18px;
        padding: 10px 15px;
        transition: 0.3s;
    }

        .navbar a:hover {
            background-color: #3498db;
            border-radius: 5px;
        }

    #navbarSupportedContent {
        border: 1px solid #e8e8e8;
    }

    .product-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    }

        /* Ürün Görseli */


        /* Ürün görseli hover efekti */
        .product-item:hover img {
            transform: scale(1.05);
        }

    /* Ürün Adı */
    .product-name {
        font-size: 16px;
        font-weight: bold;
        margin: 10px 0 8px 0;
        color: #333;
        text-transform: capitalize;
    }

    /* Ürün Fiyatı */
    .product-price {
        color: #28a745;
        font-size: 14px;
        font-weight: bold;
    }

        .product-price::before {
            content: "₺";
            margin-right: 5px;
        }

    .product-list .product-item {
        width: 180px;
        display: flex;
        align-content: center;
    }

        .product-list .product-item .product-image {
            max-width: -webkit-fill-available;
            max-height: fit-content;
        }

    .kategori {
        width: 150px;
        height: 200px;
        background: #f8f8f8;
        border-radius: 10px;
        padding: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
    }

        .kategori:hover {
            background: #ffe8c04d;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
            transform: scale(1.05);
        }

        .kategori .kategori-resim {
            width: -webkit-fill-available;
            height: 140px;
            border-radius: 5px;
            object-fit: cover;
        }

        .kategori .kategori-ad {
            padding-top: inherit;
            font-size: 15px;
            -webkit-text-stroke: 0.3px black;
            color: #0322a9f5;
            font-family: 'Playfair Display', serif;
        }

        .kategori .kategori-resim {
            width: -webkit-fill-available;
            height: 140px;
            border-radius: 5px;
            object-fit: cover;
        }

    .nav-item {
        border: 1px solid #e8e8e8;
        text-align: center;
    }

    .form-inline {
        padding: 5px;
    }

    #carouselExampleIndicators {
        width: auto;
    }
    /* Modal (Resim Büyütme) */
    .modal {
        display: none;
        position: fixed;
        z-index: 1;
        left: 0;
        top: 0;
        width: 100%;
        overflow: auto;
        background-color: rgba(0, 0, 0, 0.7);
        padding: 20px;
    }

        .modal .modal-content {
            width: 100%; /* Sayfa boyutunda tam büyümesini sağlamak */
            padding: 20px;
            margin: 0 auto;
            display: block;
            object-fit: contain;
        }

            .modal .modal-content .modalImg {
                width: 40%; /* Sayfa boyutunda tam büyümesini sağlamak */
            }

        .modal .close {
            position: absolute;
            top: 20px;
            right: 25px;
            color: black;
            font-size: 40px;
            font-weight: bold;
            cursor: pointer;
            z-index: 1;
        }
}

@media (max-width: 550px) {
    h2 {
        -webkit-text-stroke: 0.3px black;
        text-align: center;
        font-size: 33px;
        font-family: ui-sans-serif;
        color: #0059ff !important;
        text-align: center;
    }

    .navbar {
        width: 100%;
        padding: 10px;
        justify-content: right;
    }

        .navbar .navbar-toggler {
            margin: 0px 10px 0px 0px;
        }

        .navbar .navbar-brand .Logo {
            height: 65px;
            padding: 10px;
            width: 240px;
            left: 50px;
            position: absolute;
        }

    #carouselExampleIndicators {
        display: none;
    }

    #navbarSupportedContent {
        border: 1px solid #e8e8e8;
    }

    .nav-item {
        border: 1px solid #e8e8e8;
        text-align: center;
    }

    .form-inline {
        padding: 5px;
    }

    .navbar-items {
        justify-content: space-around;
        width: 100%;
    }

    .navbar .navbar-brand {
        width: 200px;
    }

    .navbar-brand .Logo {
        width: 180px;
    }

    .kategori {
        width: 150px;
        height: 200px;
        background: #f8f8f8;
        border-radius: 10px;
        padding: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
    }

        .kategori:hover {
            background: #ffe8c04d;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
            transform: scale(1.05);
        }

        .kategori .kategori-resim {
            width: -webkit-fill-available;
            height: 140px;
            border-radius: 5px;
            object-fit: cover;
        }

        .kategori .kategori-ad {
            padding-top: inherit;
            font-size: 15px;
            -webkit-text-stroke: 0.3px black;
            color: #0322a9f5;
            font-family: 'Playfair Display', serif;
        }

    .urun-ekle input, .urun-ekle button {
        width: 100%;
        max-width: 220px;
    }

    .product-name {
        max-width: 150px; /* Mobilde maksimum genişlik */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .product-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 15px;
    }

        .product-list .product-item {
            width: 140px;
            float: left;
            display: flex;
            align-content: center;
        }

            .product-list .product-item .product-image {
                max-width: -webkit-fill-available;
                max-height: fit-content;
            }
    /* Modal (Resim Büyütme) */
    .modal {
        display: none;
        position: fixed;
        z-index: 1;
        left: 0;
        top: 0;
        width: 100%;
        overflow: auto;
        background-color: rgba(0, 0, 0, 0.7);
        padding: 20px;
    }

        .modal .modal-content {
            width: 100%; /* Sayfa boyutunda tam büyümesini sağlamak */
            max-height: max-content;
            padding: 20px;
            margin: 0 auto;
            display: block;
            object-fit: contain;
        }

            .modal .modal-content .modalImg {
                width: 100%; /* Sayfa boyutunda tam büyümesini sağlamak */
            }

        .modal .close {
            position: absolute;
            top: 3px;
            right: 5px;
            color: black;
            font-size: 40px;
            font-weight: bold;
            cursor: pointer;
            z-index: 1;
        }
}
