body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f0f0f0;
}

.site-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.search-container {
    text-align: center;
    margin-bottom: 20px;
    position: sticky;
    top: 0;
    background-color: #f0f0f0;
    padding: 10px 0;
    z-index: 100;
}

#searchInput {
    padding: 10px;
    width: 300px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.products-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s, transform 0.3s;
}

.product:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

.product-image {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 10px;
    cursor: pointer;
    border-radius: 5px;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: pointer;
}

.product-code-container {
    padding: 10px;
    display: flex;
    justify-content: center;
}

.product-code {
    background-color: #ff4444;
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    width: 100%; //buton genişliği
    font-size: 24px;
}

.product-code:hover {
    background-color: #ff6666;
}

.no-results {
    text-align: center;
    padding: 20px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    grid-column: span 4;
    box-sizing: border-box;
}

#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #ff4444;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    transition: background-color 0.3s;
}

#scrollToTopBtn:hover {
    background-color: #ff6666;
}

@media (max-width: 800px) {
    .products-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .no-results {
        grid-column: span 2;
    }
}