/*-- ÜRÜN GRİDİNE ÇİZGİLER EKLENDİ --*/

/* Animasyon Keyframes */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Ana Konteyner */
.ulupek-product-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Kategori ve İçerik Ayırıcı Çizgi */
.ulupek-category-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
}

/* Kenarlıklı Buton Tasarımı */
.category-filter-btn {
    background: transparent !important;
    border: 1px solid #2c4c59 !important; 
    color: #2c4c59 !important;
    border-radius: 8px !important;
    padding: 10px 10px 10px 10px !important;
    font-size: 18px !important; 
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.category-filter-btn:hover,
.category-filter-btn.active {
    background-color: #2c4c59 !important;
    color: #fff !important;
}

/* Ürün Grid ve Çizgiler */
.ulupek-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* DEĞİŞİKLİK: 'gap' kaldırıldı, çizgiler için grid'in sol ve üstüne çerçeve eklendi */
    border-left: 1px solid #e0e0e0;
    border-top: 1px solid #e0e0e0;
    transition: opacity 0.3s ease-in-out;
}
.ulupek-product-grid.loading {
    opacity: 0;
    min-height: 400px;
}
.ulupek-product-item.is-visible {
    animation: fadeInUp 0.5s ease-out forwards;
}

/* Ürün Kutusu Stili ve Çizgiler */
.ulupek-product-item {
    /* DEĞİŞİKLİK: Her ürünün sağına ve altına çerçeve eklenerek ızgara tamamlandı */
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    /* DEĞİŞİKLİK: İçeriğin çizgilere yapışmaması için iç boşluk (padding) eklendi */
    padding: 20px;
}
.ulupek-product-item a { text-decoration: none; color: inherit; display: block; }
.ulupek-product-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.ulupek-product-item:hover img {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(44, 76, 89, 0.15);
}
.ulupek-product-item h3 { font-size: 18px; font-weight: 500; margin: 0; padding: 0 5px; color: #333; }

/* "Daha Fazla" Butonu */
.ulupek-load-more-container { text-align: center; margin-top: 60px; }
#ulupek-load-more { background-color: #2c4c59; color: #fff; border: none; padding: 16px 50px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; border-radius: 8px; letter-spacing: 0.5px; }
#ulupek-load-more:hover { background-color: #1f3640; transform: translateY(-3px); box-shadow: 0 6px 15px rgba(44, 76, 89, 0.2); }
.no-products-found { grid-column: 1 / -1; text-align: center; font-size: 18px; color: #777; padding: 50px 0; }
@media (max-width: 992px) { .ulupek-product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .ulupek-product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .ulupek-product-grid { grid-template-columns: 1fr; } }