/* style.css */

/* Global body */
body {
    font-family: 'Inter', sans-serif;
    color: #333;
    background-color: #f9f9f9;
	background:	#f9f9f9;
}
/* Kartlar */
.card-img-wrapper { background:#fff; display:flex; align-items:center; justify-content:center; overflow:hidden; height: 250px; width: 100%; border-radius: 8px;}
.card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
.card-img-wrapper img { max-height:100%; max-width:100%; object-fit:contain; transition: transform 0.3s; }
.card-img-wrapper img:hover { transform: scale(1.05); }
.card:hover .card-img-wrapper img { transform: scale(1.05); }
@media (max-width: 768px) {
    .card-img-wrapper {
        height: 200px;
    }
    .product-name {
        font-size: 16px;
    }
}
.card { border: none; border-radius: 10px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; }


/* Ürün başlığı üstte */
.product-title { font-size:1.5rem; font-weight:bold; margin-bottom:10px; text-align:center; }

/* Sepete ekle butonu ve fiyat kutusu */
.add-to-cart-btn { background:#007bff; position: absolute; left: 10px; z-index: 2; bottom: 10px; color:#fff; border:none; padding:6px 12px; font-size:14px; border-radius:4px; text-decoration:none; transition: background 0.3s; margin-right:10px; }

.btn-primary, .filter-btn {
    background-color: #007bff;
    color: #fff;
    border-radius: 6px;
    padding: 6px 14px;
    font-weight: 500;
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
}
.add-to-cart-btn:hover { background:#0056b3; color:#fff; }
.price-box { position: absolute; right: 10px; bottom: 10px; background: #ffdd57; color: #000; padding: 6px 12px; font-weight: bold; border-radius: 4px; font-size: 0.9rem; z-index: 2; }
.btn-primary:hover { background-color: #0056b3; color: #fff; }

/* Thumbnail görseller */
.thumb-preview { width:60px; height:60px; object-fit:cover; border:1px solid #ccc; margin-right:5px; cursor:pointer; }

/* Son eklenen ürünler */
.recent-card img { max-height:350px; object-fit:cover; }

/* Responsive */
@media (max-width: 576px) {
  .thumb-preview { width:50px; height:50px; }
  .recent-card img { max-height:120px; }
}

/* Başlıklar */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #111;
}

/* Paragraflar */
p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Linkler */
a {
    color: #007bff;
}
a:hover {
    color: #0056b3;
    text-decoration: none;
}

/* Navbar */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.navbar .nav-link {
    color: #333;
    font-weight: 500;
    margin-right: 15px;
}
.navbar .nav-link:hover {
    color: #007bff;
}

/* Footer */
footer {
    background-color: #f8f9fa;
    color: #333;
    padding: 25px 0;
    text-align: center;
    font-size: 0.9rem;
}
footer a {
    color: #007bff;
}
footer a:hover {
    color: #0056b3;
}

/* Ürün adı üstte */
.card-title-overlay {
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    text-align: center;
    padding: 5px 0;
    font-size: 1rem;
    font-weight: bold;
    z-index: 2;
}

/* Fiyat kutusu ve sepete ekle */
.product-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 3px;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.18);
	color: #e74c3c;
}

.product-name {
    font-weight: 600;
    font-size: 17px;
    color: #2c3e50;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}


}

.d-flex.justify-content-between {
    margin-top: 8px;
}