body {
    background-color: #fff;
}

body.modal-open {
    overflow: hidden;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    margin: 0 auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

#backToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none; /* Başlangıçta gizle */
    z-index: 99;
    border: 2px solid;
    outline: none;
    background-color: #fb784f;
    color: white;
    cursor: pointer;
    padding-top: 7px;
    padding-bottom: 7px;
    border-radius: 50%;
    font-size: 18px;
}

#backToTopBtn:hover {
    background-color: #de8d3f; /* Hover etkisi */
}


#searchPanel {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: #f8f9fa;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    height: 100%;
    transition: bottom 0.4s ease;
    z-index: 9999;
}

/* Panel açıldığında görünen hale getirilir */
#searchPanel.active {
    bottom: 0;
}

.close-btn {
    text-align: right;
}

.product-image {
    width: 100%;
    height: 130px;
    /* Sabit yükseklik */
    object-fit: cover;
    /* Görselin düzgün sığmasını sağlar */
    object-position: center;
    /* Görseli ortalar */
}

.product-image-large {
    width: 100%;
    height: 200px;
    /* Sabit yükseklik */
    object-fit: cover;
    /* Görselin düzgün sığmasını sağlar */
    object-position: center;
    /* Görseli ortalar */
    border: 2px solid rgb(223 214 214 / 30%);
}

.card {
    position: relative;
    height: 130px;
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    /* Gölgeyi güçlendirdik */
    border: 3px solid rgb(255 255 255 / 30%);
    /* Daha belirgin bir çerçeve */
}

.card-title {
    font-size: 1rem;
}

.card-text {
    font-size: 0.75rem;
}


.fiyat {
    color: rgb(97 97 97);
    font-size: 14px;
    position: absolute;
    bottom: 0;
    right: 0;
    margin: 8px;
    padding: 4px 8px;
    background: linear-gradient(to left, rgb(255 191 61 / 71%), rgb(255 212 125 / 0%));
    /* Gradyan */
    border-radius: 4px;
    /* Hafif köşeler için */
}

.fiyat2 {
    color: rgb(97 97 97);
    font-size: 14px;
    position: absolute;
    right: 0;
    margin: 8px;
    padding: 4px 8px;
    background: linear-gradient(to left, rgb(255 191 61 / 71%), rgb(255 212 125 / 0%));
    /* Gradyan */
    border-radius: 4px;
    /* Hafif köşeler için */
}

.urun-item {
    font-size: 16px;
    margin-bottom: 10px;
}

.urun-ad {
    font-weight: bold;
}

.urun-aciklama-search {
    font-size: 12px;
    line-height: normal;
    color: #83888e;
}

.urun-fiyat {
    color: rgb(97 97 97);
    font-size: 14px;
    bottom: 0;
    right: 0;
    font-weight: bold;
    margin: 8px;
    padding: 4px 8px;
    background: linear-gradient(to left, rgb(255 191 61 / 71%), rgb(255 212 125 / 0%));
    /* Gradyan */
    border-radius: 4px;
    /* Hafif köşeler için */
}

hr {
    margin: 5px 0;
}

#searchPanel {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: #f8f9fa;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    height: 100%;
    transition: bottom 0.4s ease;
    z-index: 9999;
    overflow-y: auto; /* İçerik taşarsa dikey kaydırma eklenecek */
}

/* Panel açıldığında görünen hale getirilir */
#searchPanel.active {
    bottom: 0;
}

.close-btn {
    text-align: right;
}

.search-header {
    position: sticky;
    top: 0;
    background-color: #fce4c8;
    z-index: 1000;
    padding: 10px;
    border-radius: 10px;
}

.kategori-header {
    height: 250px;
    background-size: cover;
    /* Arka plan resminin tam olarak sığmasını sağlar */
    background-position: center;
    /* Resmi merkezde hizalar */
    position: relative;
    display: flex;
    align-items: center;
    /* İçeriği dikeyde merkezler */
    justify-content: center;
    /* İçeriği yatayda merkezler */
    box-shadow: inset 0 0 15px rgb(0 0 0 / 30%);
}

.overlay {
    background-color: rgba(0, 0, 0, 0.5);
    /* Arka plana yarı saydam siyah bir katman ekler */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.kategori-header .container {
    position: relative;
    z-index: 1;
    /* Metni üstte tutar */
}

.kategori-adi {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.kategori-aciklama {
    font-weight: normal;
}

.btn-menuye-don {
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    border: 2px solid;
    padding: 10px 20px;
    border-radius: 100px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-menuye-don:hover {
    background-color: #0056b3;
}

.product-details-panel {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 70%;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    transition: bottom 0.4s ease-in-out;
    z-index: 1050;
    overflow-y: auto;
    padding: 20px;
}

.product-details-panel .panel-content {
    position: relative;
    height: 100%;
}

.product-details-panel .close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
}

.product-details-panel.open {
    bottom: 0;
    border-radius: 20px 20px 0px 0px;
}

.overlay2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1040;
    /* Panelden bir seviye altta */
    display: none;
    /* Varsayılan olarak gizli */
}