@charset "UTF-8";
/* Blog kartları (Views/Blog/_BlogCard), ürün kartı (Views/Blog/_BlogProductCard) ve blog düğmesi (2026-11-21'de blog.css'ten
   ayrıldı): blog listesi, yazının altındaki "Diğer Yazılar", yazıdaki ürün kartları, ana sayfanın "Blogdan" bölümü ve ürün
   sayfasının "Benzer Ürünler"i. Blog sayfalarında blog.css'ten hemen önce, ana sayfada home.css'ten sonra
   (yalnız yayında yazı varken) yüklenir. Genel seçici yok: başka sayfaya karışmaz. */

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.blog-card {
    display: flex;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    overflow: hidden;
    transition:
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.blog-card:hover {
    box-shadow: 0px 5px 40px -10px rgba(0, 0, 0, 0.35);
    transform: translateY(-3px);
}

.blog-card-link {
    display: flex;
    flex-direction: column;
    width: 100%;
    color: #3d3d3d;
}

.blog-card-link:hover,
.blog-card-link:focus {
    color: #3d3d3d;
}

.blog-card-image {
    margin: 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f5f5f5;
}

.blog-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px 22px 22px;
}

.blog-date {
    display: block;
    font-size: 0.95em;
    color: #777;
    letter-spacing: 0.5px;
}

h2.blog-card-title,
h3.blog-card-title {
    margin: 8px 0 10px;
    padding: 0;
    font-size: 1.35em;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: normal;
    color: #112b5c;
    text-align: left;
}

.blog-card-summary {
    flex: 1;
    margin: 0 0 15px;
    font-size: 1.05em;
    line-height: 1.6;
    color: #555;
}

.blog-card-more {
    align-self: flex-start;
    font-size: 0.95em;
    font-weight: 700;
    letter-spacing: 1px;
    color: #404040;
    border-bottom: 2px solid #404040;
}

.blog-button {
    display: inline-block;
    margin: 0 5px 10px;
    padding: 12px 18px;
    border-radius: 6px;
    background: #404040;
    color: #ffffff !important;
    letter-spacing: 1px;
    transition: all 0.3s ease 0s;
}

.blog-button:hover,
.blog-button:focus {
    background: #112b5c;
}

@media (prefers-reduced-motion: reduce) {
    .blog-card,
    .blog-card:hover {
        transition: none;
        transform: none;
    }
}

/* ===== Ürün kartı (blog yazısında ve ürün sayfasının "Benzer Ürünler"inde) ===== */
.blog-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 1.5em 0;
    font-size: 0.85em;
}

.blog-product-image {
    aspect-ratio: 4 / 3; /* ürün fotoğrafları çoğunlukla yatay */
    background: #fff;
}

.blog-product-image img {
    object-fit: contain; /* ürün fotoğrafı kırpılmasın */
}

.blog-product-category {
    font-size: 0.9em;
    color: #777;
}

.blog-product-name {
    margin: 4px 0 8px;
    font-weight: 600;
    line-height: 1.35;
    color: #112b5c;
}

.blog-product-price {
    flex: 1;
    margin-bottom: 12px;
    font-weight: 600;
    color: #3d3d3d;
}

.blog-product-quantity {
    display: block;
    font-weight: 400;
    color: #777;
}

