/* ================================== */
/* ÜRÜNLER GALERİSİ (urunler.css)     */
/* ================================== */

/* Genel Sayfa Başlığı (forms.css'den benzer) */
.page-header {
    background-color: #f8f9fa;
    padding: 3rem 0;
    border-bottom: 1px solid #dee2e6;
    text-align: center;
}
.page-header h1 {
    font-weight: 700;
    color: var(--primary-color, #0d6efd);
    margin-bottom: 0.5rem;
}

.content-section {
    padding: 3rem 0;
}

/* Ürün Galeri Grid (anasayfa.css'deki .news-grid'e [cite: 21, 23, 25] benzer) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 576px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Ürün Kartı (anasayfa.css'deki .news-card'a [cite: 21, 23, 25] benzer) */
.product-card {
    height: 100%;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 220px; /* Ürün resim yüksekliği */
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.product-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Kartın tamamını doldurmasını sağlar */
}

.product-card-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
    color: #333;
}

.product-card-owner {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.product-card-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background-color: var(--primary-color, #0d6efd);
    border: 1px solid var(--primary-color, #0d6efd);
    border-radius: 0.3rem;
    transition: all 0.15s ease-in-out;
    margin-top: auto; /* Butonu kartın en altına iter */
}
.product-card-link:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* ================================== */
/* ÜRÜN DETAY SAYFASI                 */
/* ================================== */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 992px) {
    .product-detail-layout {
        grid-template-columns: 2fr 1fr; /* Sol 2 birim, Sağ 1 birim */
    }
}

/* Sol Taraf - Resim Galerisi */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.product-gallery-main {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}
.product-gallery-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.product-gallery-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: border-color 0.2s;
}
.product-gallery-thumb:hover,
.product-gallery-thumb.active {
    border-color: var(--primary-color, #0d6efd);
}

/* Sağ Taraf - Ürün Bilgileri */
.product-info-box {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
}
.product-info-box h3 {
    font-weight: 600;
    color: var(--primary-color, #0d6efd);
    margin-top: 0;
}
.product-info-box .owner-info {
    font-size: 1.1rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 1.5rem;
}
.product-info-box .description-title {
    font-weight: 600;
    margin-top: 2rem;
    border-top: 1px solid #ddd;
    padding-top: 1.5rem;
}
.product-info-box .description-text {
    line-height: 1.7;
    color: #444;
}
.product-card-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color, #0d6efd);
    margin-bottom: 1rem;
}
.product-detail-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color, #0d6efd);
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Diğer Ürünler Bölümü Stili */
.other-products-wrapper {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #eee;
}

.other-products-wrapper .section-title {
    text-align: center;
    margin-bottom: 2rem;
}