﻿body, h1, button {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #eee;
}

.toggle-buttons button {
    margin: 0 5px;
}

.category-nav {
    display: flex;
    overflow-x: auto;
    background-color: #f1f1f1;
}

.category-button {
    padding: 10px 20px;
    border: none;
    background: none;
}

.category-button.active {
    background-color: #ddd;
}

.product-section {
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.product {
    text-align: center;
}

.product img {
    width: 100%;
    height: auto;
}

.product p {
    background-color: #fff;
    padding: 5px;
    border-radius: 5px;
}

/* Sonrakiler */
body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    background-color: #fff;
    height: 56px;
}

.back-button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

h1 {
    margin: 0;
    font-size: 24px;
}

.menu-icons {
    display: flex;
    gap: 16px;
}

.menu-icons i {
    font-size: 24px;
    cursor: pointer;
}


/* Yukarı çık butonu */

.to-top-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: orange;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    text-align: center;
    vertical-align: middle;
}

.to-top-button.show {
    opacity: 1;
}

.to-top-button svg {
    fill: #fff;
    width: 24px;
    height: 24px;
    margin-top: 10px;
}

/* 3. yaptıklarım */ 
.menu-icons i {
    cursor: pointer;
    font-size: 24px;
    padding: 10px;
}
.selected {
    color: orange; /* Seçili olduğunda rengi değiştirebilirsiniz */
}

.categories {
    display: flex;
    overflow-x: auto; /* Yatay kaydırma için */
    white-space: nowrap; /* Tüm düğmeleri tek satırda tutar */
    -ms-overflow-style: none; /* Internet Explorer ve Edge için kaydırma çubuğunu gizle */
    scrollbar-width: none; /* Firefox için kaydırma çubuğunu gizle */
}

.categories::-webkit-scrollbar {
    display: none; /* Chrome, Safari ve Opera için kaydırma çubuğunu gizle */
}

.category-button {
padding: 10px 20px;
background-color: #fff; /* Düğme rengi */
color: black; /* Yazı rengi */
border: none;
border-radius: 10px; /* Kenar yuvarlaklığı */
cursor: pointer;
font-weight: bold; /* Yazı kalınlığı */
transition: background-color 0.3s ease; /* Geçiş efekti */
margin-right: 20px;
border:orange solid 1px;
}


.category-nav{
    margin-top:10px;
background-color: #fff;
}

.category-button.active {
    color: black; /* Seçili olduğunda yazı rengi */
    border: orange solid 1px;
    background-color: darkorange; /* Seçili olduğunda arka plan rengi */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Daha belirgin bir gölge ekler */
}


/* 4. düzenlemeler */
.card-img-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px;
}

.card-img-top {
    width: 100px; /* Yuvarlak resim boyutu */
    height: 100px;
    object-fit: cover;
}

.card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


/* Düzenleme 5 */
.card-img-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px;
}

.card-img-top {
    width: 100px; /* Yuvarlak resim boyutu */
    height: 100px;
    object-fit: cover;
}

.card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8px; /* Daha küçük padding */
}

.card-title {
    margin-bottom: 4px; /* Daha küçük margin */
    font-size: 1rem; /* Yazı boyutunu ayarlayın */
}

.card-text {
    margin-bottom: 4px; /* Daha küçük margin */
    font-size: 0.875rem; /* Yazı boyutunu ayarlayın */
}
 /* 6. düzenleme */
 /* Container div */
.menu-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* h1 styling */
.menu-container h1 {
    margin: 0;
}

/* Menu icons styling */
.menu-icons {
    display: flex;
    gap: 10px; /* Iconlar arasına boşluk eklemek için */
}
