/* --- SAYFA GENİŞLİK SABİTLEME --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* --- KATEGORI BAŞLIK ALANI --- */
.category-header {
    margin: 20px 0;
    text-align: left;
}

.category-header h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.category-header p {
    font-size: 15px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* --- KATALOG GEÇİŞ BUTONU --- */
.catalog-toggle-bar {
    margin-top: 15px;
}

.btn-catalog-view {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    color: #333;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-catalog-view:hover {
    background-color: #e0e0e0;
}

/* --- MASAÜSTÜNDE KESİN 3'LÜ YAN YANA LİSTE --- */
.product-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    margin: 30px 0 !important;
    width: 100% !important;
    box-sizing: border-box;
}

/* Tablet ekranlar için 2'li düzen */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobil ekranlar için 1'li düzen */
@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: repeat(1, 1fr) !important;
    }
}

/* --- KATI ÇERÇEVELİ ÜRÜN KARTI --- */
.product-card {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.card-link {
    text-decoration: none !important;
    color: inherit !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

/* --- GÖRSELİ KESİN OLARAK KİLİTLEYEN SABİT ÇERÇEVE --- */
.img-wrapper {
    width: 100% !important;
    height: 220px !important;
    max-height: 220px !important;
    background-color: #f7f7f7 !important;
    overflow: hidden !important;
    position: relative !important;
    display: block !important;
    flex-shrink: 0 !important;
}

.product-card img {
    width: 100% !important;
    height: 100% !important;
    max-height: 220px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    transition: transform 0.3s;
}

.product-card:hover img {
    transform: scale(1.03);
}

/* --- KART METİN ALANI --- */
.card-body {
    padding: 12px 15px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    justify-content: space-between !important;
}

.product-card h3 {
    font-size: 14px !important;
    color: #333 !important;
    margin: 0 0 8px 0 !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    height: 36px !important;
}

.product-card .price {
    font-size: 16px !important;
    color: #2e7d32 !important;
    font-weight: bold !important;
}

/* --- WHATSAPP BUTON ALANI --- */
.card-footer-action {
    padding: 0 15px 15px 15px !important;
    box-sizing: border-box !important;
}

.btn-whatsapp-mini {
    background-color: #25d366 !important;
    color: white !important;
    text-align: center !important;
    padding: 8px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    text-decoration: none !important;
    display: block !important;
    border-radius: 6px !important;
    transition: background-color 0.2s;
}

.btn-whatsapp-mini:hover {
    background-color: #1ebe5d !important;
}

/* --- SADECE GÖRSEL KATALOĞU (GALERİ) --- */
.visual-catalog-grid {
    margin: 30px 0;
}

.visual-catalog-grid h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.gallery-masonry {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Her bir galeri görsel bağlantı sarmalayıcısı */
.gallery-masonry a {
    display: block !important;
    width: 100% !important;
    height: 240px !important; /* Tüm fotoğrafların boyunu eşitleyen sabit yükseklik */
    max-height: 240px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background-color: #f7f7f7 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-masonry a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

/* Galeri içindeki fotoğrafların çerçeveye tam oturması */
.gallery-masonry img {
    width: 100% !important;
    height: 100% !important;
    max-height: 240px !important;
    object-fit: cover !important; /* Fotoğrafı kırpmadan veya esnetmeden kutuya ortalar */
    object-position: center !important;
    display: block !important;
    transition: transform 0.3s ease;
}

.gallery-masonry a:hover img {
    transform: scale(1.04);
}

/* Tablet ve Mobil Uyumu */
@media (max-width: 992px) {
    .gallery-masonry {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 576px) {
    .gallery-masonry {
        grid-template-columns: repeat(1, 1fr) !important;
        height: auto;
    }
    .gallery-masonry a {
        height: 260px !important; /* Mobilde biraz daha geniş ve rahat görünüm */
        max-height: 260px !important;
    }
}
/* Kategori Butonları Konteynerı */
.mahalle-kategori-butonlari {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.btn-kategori-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background-color: #ffffff;
    color: #2c3e50;
    /* Sert ve modern gölge efekti (Neobrutalizm tarzı) */
    border: 2px solid #2c3e50;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 4px 4px 0px #2c3e50; /* Butonun arkasında sabit sert gölge */
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-kategori-filter span {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Üzerine gelindiğinde buton yukarı kayar ve gölgesi belirginleşir */
.btn-kategori-filter:hover {
    background-color: #e8f8f0;
    color: #1b5e20;
    border-color: #27ae60;
    transform: translate(-3px, -3px); /* Sol üsteye doğru hafifçe fırlar */
    box-shadow: 7px 7px 0px #27ae60; /* Gölge rengi yeşile döner ve büyür */
}

/* Tıklandığı an basılma (geri çekilme) efekti */
.btn-kategori-filter:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px #27ae60;
}

/* Çiçek ikonunun neşeyle zıplaması */
.btn-kategori-filter:hover span {
    transform: scale(1.3) rotate(15deg);
}
/* Sosyal Paylaşım Alanı Stilleri */
.botanik-share-wrapper {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #eee;
    text-align: left;
}

.botanik-share-title {
    display: block;
    font-size: 11px;
    color: #666;
    margin-bottom: 6px;
    font-weight: 500;
}

.botanik-share-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.botanik-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 500;
    color: #ffffff;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.botanik-btn svg {
    width: 12px;
    height: 12px;
}

/* Platform Renkleri ve Hover Efektleri */
.botanik-btn-fb {
    background-color: #1877f2;
}
.botanik-btn-fb:hover {
    background-color: #145dbf;
    transform: translateY(-1px);
}

.botanik-btn-pin {
    background-color: #e60023;
}
.botanik-btn-pin:hover {
    background-color: #b8001c;
    transform: translateY(-1px);
}

.botanik-btn-wa {
    background-color: #25d366;
}
.botanik-btn-wa:hover {
    background-color: #1ebe5d;
    transform: translateY(-1px);
}