/* Genel Mağaza Sayfası Tasarımı */
.store-container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* Kategori Butonları */
.category-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 10px;
    font-size: x-small;
}

.category-item {
    padding: 5px 10px;
    border-radius: 10px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    color: black;
}

.category-item:hover {
    background-color: #ffc107;
}

/* Ürün Kartları */
.product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    text-align: center;
    background-color: white;
    transition: transform 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    padding-bottom: 15px;
}

.product-card:hover {
    transform: translateY(-5px);
}

/* Ürün Görseli */
.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Ürün Fiyatı */
.product-price {
    position: absolute;
    bottom: 5px;
    left: 5px;
    font-weight: bold;
    color: black;
    background: rgba(255, 255, 255, 0.7);
    padding: 2px 6px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Ürün Başlığı */
.product-title {
    font-size: 12px;
    font-weight: 600;
    margin: 5px 0px 15px 0px;
    padding: 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.2em;
    max-height: 2.4em;
}

/* Fiyat Bilgisi */
.original-price {
    font-size: 10px;
    color: red;
    text-decoration: line-through;
}

.discount-price {
    font-size: 14px;
    color: #000;
    font-weight: bold;
}

.normal-price {
    font-size: 14px;
    color: #000;
}

/* Favori Kalp İkonu */
.favorite-icon {
    position: absolute;
    bottom: 5px;
    right: 10px;
    color: red;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10;
}

.favorite-icon.favorited {
    color: #33FF68;
}

/* Ürün Kartlarını Grid Olarak Düzenleme */
.product-card-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

/* 300px altı - %50 küçültme */
@media (max-width: 299px) {
    .product-card {
        transform: scale(0.8);
    }
    /* Ürün Başlıkları - Stil Düzenleme */
.product-title {
    font-size: 8px;
    font-weight: 600;
    margin: 5px 0px 20px 0px;
    padding: 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Maksimum 2 satır göster */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.2em; /* Satır yüksekliği */
    max-height: 2.4em; /* 2 satır yüksekliği */
    color: #333; /* Daha yumuşak bir gri ton */
    text-decoration: none; /* Altı çizili olmasın */
    transition: color 0.3s; /* Renk geçişi yumuşak olsun */
}

/* Ürün Kartı Linki */
.product-card a {
    text-decoration: none; /* Altı çizili olmasın */
    color: inherit; /* Renk, başlık stilinden gelsin */
    display: block;
    height: 100%;
    width: 100%;
    padding-bottom: 5px;
}
}
/* Fiyat Bilgisi */
.original-price {
    font-size: 6px;
    color: red;
    text-decoration: line-through;
}

.discount-price {
    font-size: 8px;
    color: #000;
    font-weight: bold;
}

.normal-price {
    font-size: 8px;
    color: #000;
}

/* 300-400px arası - %40 küçültme */
@media (min-width: 300px) and (max-width: 399px) {
    .product-card {
        transform: scale(0.9);
    }
    /* Ürün Başlıkları - Stil Düzenleme */
.product-title {
    font-size: 9px;
    font-weight: 600;
    margin: 5px 0px 15px 0px;
    padding: 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Maksimum 2 satır göster */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.2em; /* Satır yüksekliği */
    max-height: 2.4em; /* 2 satır yüksekliği */
    color: #333; /* Daha yumuşak bir gri ton */
    text-decoration: none; /* Altı çizili olmasın */
    transition: color 0.3s; /* Renk geçişi yumuşak olsun */
}

/* Ürün Kartı Linki */
.product-card a {
    text-decoration: none; /* Altı çizili olmasın */
    color: inherit; /* Renk, başlık stilinden gelsin */
    display: block;
    height: 100%;
    width: 100%;
    padding-bottom: 5px;
}
}
/* Fiyat Bilgisi */
.original-price {
    font-size: 8px;
    color: red;
    text-decoration: line-through;
}

.discount-price {
    font-size: 10px;
    color: #000;
    font-weight: bold;
}

.normal-price {
    font-size: 10px;
    color: #000;
}
/* 400-768px arası - %30 küçültme */
@media (min-width: 400px) and (max-width: 767px) {
    .product-card {
        transform: scale(0.9);
    }
    .product-title {
    font-size: 10px;
    font-weight: 600;
    margin: 5px 0px 15px 0px;
    padding: 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.2em;
    max-height: 2.4em;
}
}
/* Fiyat Bilgisi */
.original-price {
    font-size: 9px;
    color: red;
    text-decoration: line-through;
}

.discount-price {
    font-size: 12px;
    color: #000;
    font-weight: bold;
}

.normal-price {
    font-size: 12px;
    color: #000;
}
/* 768-1024px arası - %20 küçültme */
@media (min-width: 768px) and (max-width: 1024px) {
    .product-card {
        transform: scale(1);
    }
    .product-title {
    font-size: 11px;
    font-weight: 600;
    margin: 5px 0px 15px 0px;
    padding: 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.2em;
    max-height: 2.4em;
}
}

/* 768px altı - 2 ürün kartı */
@media (max-width: 767px) {
    .product-card-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
}

/* 768-1024px arası - 3 ürün kartı */
@media (min-width: 768px) and (max-width: 1023px) {
    .product-card-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Masaüstü - 4 ürün kartı */
@media (min-width: 1024px) {
    .product-card-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
}

/* Uyarı Mesajı */
.alert-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: red;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.5s;
}

.alert-message.show {
    opacity: 1;
}
/* Arama Sonuçları Konteyneri */
.search-results-container {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* Arama Sonuçları Öğeleri */
.search-results-container a {
    display: flex;
    align-items: center;
    padding: 10px;
    color: #333;
    text-decoration: none;
    transition: background 0.3s;
    border-bottom: 1px solid #f0f0f0;
}

.search-results-container a:last-child {
    border-bottom: none;
}

.search-results-container a:hover {
    background-color: #f9f9f9;
}

/* Ürün Görseli - Boyutu Sabitle ve Estetik Görünüm Sağla */
.search-results-container img {
    width: 40px; /* Görselin genişliğini sabitle */
    height: 40px; /* Görselin yüksekliğini sabitle */
    object-fit: cover;
    border-radius: 5px;
    margin-right: 10px;
    flex-shrink: 0;
}

/* Ürün Başlığı ve Fiyat */
.search-result-text {
    display: flex;
    flex-direction: column;
    font-size: 9px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.search-result-title {
    font-weight: bold;
    color: #000;
    margin-bottom: 2px;
    max-width: 200px; /* Uzun başlıkların taşmasını önler */
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.search-result-price {
    font-size: 9px;
    color: #333;
}

/* Mobil ve Masaüstü İçin Uyarlama */
@media (max-width: 768px) {
    .search-results-container img {
        width: 40px;
        height: 40px;
    }
    .search-result-title {
        max-width: 150px;
    }
}

.out-of-stock-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    z-index: 10;
    font-size: 14px;
    text-align: center;
}

