/* --- Genel --- */
body {
    font-family: 'Poppins', sans-serif;
    background: #f5f6fa;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Başlık */
h2 {
    font-weight: 600;
    text-align: center;
    margin-bottom: 25px;
}

/* Kartlar */
.card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    background: linear-gradient(145deg, #ffffff, #f0f2f5);
    display: flex;
    flex-direction: column;
    height: 320px; /* Tüm kartlar aynı boyutta */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.card img {
    height: 150px;
    object-fit: cover;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Ürün başlığı ve açıklama */
.card-title {
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 5px;
    display: block;
    line-height: 1.2;
}

.card-text {
    font-size: 0.9rem;
    color: #666;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

/* Dinamik yazı boyutu (uzun yazılarda küçülür) */
.card-title, .card-text {
    font-size: clamp(0.7rem, 1vw, 1.1rem);
}

/* Öne çıkan ürün */
.one-cikan {
    animation: glowing 1.2s infinite alternate;
    border: 2px solid #ffa940;
}

@keyframes glowing {
    0% { box-shadow: 0 0 8px #ff4d4f; }
    50% { box-shadow: 0 0 15px #ff7a45; }
    100% { box-shadow: 0 0 25px #ffa940; }
}

/* Form input ve butonlar */
input[type=number] {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 5px;
}

button, a.btn {
    border-radius: 8px;
    transition: all 0.3s;
}

button:hover, a.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

/* Sepet butonu özel */
.btn-warning {
    background: linear-gradient(45deg, #ffc107, #ffca28);
    border: none;
    color: #fff;
}

/* Header */
.site-header {
    background: #0d6efd;
    color: #fff;
    padding: 15px 0;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-header h1 {
    font-weight: 700;
    font-size: 1.8rem;
    margin: 0;
}

.site-header .search-form input[type=text] {
    border-radius: 8px;
    border: none;
    padding: 5px 10px;
    width: 200px;
}

.site-header .search-form button {
    border-radius: 8px;
    border: none;
    padding: 5px 10px;
    margin-left: 5px;
    background: #ffc107;
    color: #000;
}

.site-header .search-form button:hover {
    opacity: 0.9;
}

.site-header .header-links a {
    color: #fff;
    margin-left: 15px;
    text-decoration: none;
}

.site-header .header-links a:hover {
    text-decoration: underline;
}

/* Mobil uyum */
@media(max-width:768px){
    .card {
        height: auto; /* mobilde kart yüksekliği esnek */
        margin-bottom: 20px;
    }
    .site-header h1 {
        font-size: 1.3rem;
    }
    .site-header .search-form input[type=text] {
        width: 120px;
    }
}
