/* GENEL AYARLAR */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background: #fff; color: #292929; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 92%; /* PC'de yanlarda temiz bir boşluk, mobilde %4 emniyet payı bırakır */
}

/* NAVBAR */
.navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}
.logo { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; font-weight: bold; }
.nav-logo-img { height: 40px; }
.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a { text-decoration: none; color: #000; font-weight: 500; }

/* ARKA PLAN AYARI */
.main-background-wrapper {
    background-image: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), 
                      url('arka-plan.jpg'); 
    background-size: cover;
    background-position: center;
    width: 100%;
    padding-bottom: 60px;
}

/* HERO */
.hero { text-align: center; padding: 60px 0; }
.main-title { font-family: 'Playfair Display', serif; font-size: 3.5rem; color: #2f483c; margin-bottom: 20px; }
.sub-title { font-size: 1.1rem; color: #444; margin-bottom: 30px; }

/* SEARCH */
.search-container { max-width: 600px; margin: 0 auto; position: relative; display: flex; }
.search-input { width: 100%; padding: 15px 25px; border: 1.5px solid #ccc; border-radius: 30px; outline: none; }
.search-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; }
.search-btn img { width: 20px; }

/* KATEGORİLER */
.categories { padding: 40px 0; }
.category-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr); 
    gap: 15px;
    max-width: 4000px;
    margin: 0 auto;
}
.category-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; }
.cat-image-square { 
    width: 100px; 
    height: 100px; 
    background-color: white; 
    border-radius: 20px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 10px; 
    overflow: hidden; 
    border: 1px solid #eee; 
}
.cat-image-square img { width: 100%; height: 100%; object-fit: cover; }
.cat-text { font-size: 0.8rem; color: #444; font-weight: 500; text-align: center; transition: text-decoration 0.15s; }

/* Kategori kısayol hover efekti */
.category-item {
    display: flex; flex-direction: column; align-items: center;
    text-decoration: none; transition: transform 0.2s;
}
.category-item:hover { transform: translateY(-6px); }
.category-item:hover .cat-text { text-decoration: underline; color: #2f483c; }

/* YILDIZ RENKLENDİRME */
.colored-star {
    display: inline-block;
    -webkit-mask-image: url(''); 
    mask-image: url('');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    background-color: #507563;
}

.title-star { width: 22px; height: 22px; margin-right: 8px; vertical-align: middle; }
.stars-container { display: flex; justify-content: center; gap: 3px; margin-top: 5px; }
.star-icon { width: 16px; height: 16px; }
.star-icon.grey { background-color: #ddd; }

/* ALT ALANLAR */
.section-padding { padding: 50px 0; background: white; }
.section-title { font-size: 1.4rem; margin-bottom: 25px; display: flex; align-items: center; }
.product-card { background: white; border: 1px solid #eee; padding: 15px; border-radius: 12px; text-align: center; max-width: 250px; }
.product-card .p-img { width: 100%; border-radius: 8px; }

.filter-btn { background: white; border: 1px solid #ccc; padding: 8px 20px; border-radius: 5px; cursor: pointer; margin-right: 10px; }
.filter-btn.active { background: #fdf2f0; border-color: #834333; }

/* ÜRÜNLER SAYFASI YERLEŞİMİ */
.main-container {
    display: flex;
    padding: 40px 0;
    gap: 30px;
}

/* SIDEBAR (SOL PANEL) */
.sidebar {
    width: 280px;
    flex-shrink: 0;
}

.sidebar-main-title {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: #2f483c;
    border-bottom: 2px solid #507563;
    padding-bottom: 10px;
}

.filter-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-title {
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Filtre Listeleri */
.filter-list label {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    font-size: 0.85rem;
    cursor: pointer;
    gap: 8px;
}

.filter-name {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    flex: 1;
}

.brand-text {
    line-height: 1.4;
    word-break: break-word;
}

.filter-count {
    color: #888;
    white-space: nowrap;
    padding-top: 2px;
}

.filter-list.scrollable {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Filtre Butonları */
.filter-buttons {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.f-btn {
    text-align: left;
    padding: 10px 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
}

.f-btn:hover { background: #f9f9f9; border-color: #507563; }
.f-btn.active { background: #2f483c; color: white; border-color: #2f483c; }

/* Cilt Tipi Kutuları */
.filter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.f-rect-btn {
    padding: 12px;
    background: white;
    border: 1px solid #ddd;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.2s;
}

.f-rect-btn:hover { background: #f9f9f9; border-color: #507563; }
.f-rect-btn.active { background: #2f483c; color: white; border-color: #2f483c; }

/* SAĞ TARAF (Ürün Alanı) */
.content-area {
    flex-grow: 1;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
}

.sort-select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* ÜRÜN KARTLARI (Katalog stili) */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

/* Ürün kartı hover: yukarı kalk + gölge */
.product-card {
    background: white;
    border: none; /* Kenarlık kaldırıldı */
    padding: 15px;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); /* Çok hafif bir gölge kalsın */
}
@media (hover: hover) {
    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    }
}

/* Resim kapsayıcı: tam kare, bembeyaz */
.p-image-wrapper {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.p-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Tam sığması için */
    padding: 12px; /* Biraz daha ufak görünmesi için */
    display: block;
    mix-blend-mode: multiply; /* Beyaz olmayan zeminleri eritmek için */
    transition: transform 0.3s ease;
}

.wishlist-icon {
    position: absolute;
    top: 8px;
    right: 10px;
    z-index: 5;
    cursor: pointer;
    line-height: 1;
    user-select: none;
}
.wishlist-heart {
    width: 22px;
    height: 22px;
    fill: rgba(0,0,0,0.15);
    stroke: #fff;
    stroke-width: 1.5;
    transition: fill 0.2s, transform 0.2s;
}
@media (hover: hover) {
    .wishlist-icon:hover .wishlist-heart {
        fill: #e31837;
        transform: scale(1.15);
    }
}
.wishlist-heart.fav-active {
    fill: #e31837;
    stroke: #e31837;
}

/* Navbar Favorilerim */
.nav-fav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #000;
    font-weight: 500;
}
.nav-fav-link svg {
    width: 18px;
    height: 18px;
    fill: #e31837;
}
.fav-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #e31837;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
}
.tr-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    font-size: 0.70rem;
    color: #fff;
    background: #e31837;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 4px;
    z-index: 10;
    pointer-events: none;
}

.p-details {
    padding: 15px 0;
    text-align: center;
}

.p-brand { font-weight: bold; color: #555; font-size: 0.9rem; }
.p-name { font-size: 0.85rem; margin: 5px 0; line-height: 1.4; min-height: 40px; }
.p-price { font-weight: 700; color: #2f483c; font-size: 1rem; }

/* MODAL VE ANALİZ CSS */
.modal-overlay { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.6); z-index:1000; align-items:center; justify-content:center; }
.modal-content { background:#fff; width:90%; max-width:900px; border-radius:15px; padding:30px; position:relative; max-height:90vh; overflow-y:auto; }
.modal-close-btn { position:absolute; top:20px; right:20px; background:none; border:none; font-size:2rem; cursor:pointer; color:#555; }
.modal-header { display:flex; gap:30px; margin-bottom:30px; border-bottom:1px solid #eee; padding-bottom:20px; }
.m-img-wrapper { width:200px; flex-shrink:0; }
.m-img-wrapper img { width:100%; border-radius:10px; }
.m-info h2 { font-size:1.8rem; margin:10px 0; color:#222; }
.m-brand { font-size:1rem; color:#888; font-weight:600; }
.m-price { font-size:1.4rem; color:#2f483c; font-weight:700; margin-bottom:15px; }
.concerns-tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.concerns-tags span { background:#e8f4fd; color:#0056b3; padding:5px 12px; border-radius:15px; font-size:0.85rem; border:1px solid #b8daff; }
.analysis-box { display:flex; gap:40px; background:#fafafa; border:1px solid #eee; border-radius:12px; padding:30px; flex-wrap:wrap; }
.analysis-title { font-size:1.2rem; margin-bottom:5px; }
.analysis-subtitle { font-size:0.9rem; color:#777; margin-bottom:20px; }
.analysis-left { flex:1; min-width:250px; }
.analysis-right { flex:2; min-width:300px; }
.chart-container { display:flex; align-items:center; gap:30px; }
.donut-chart { width:140px; height:140px; border-radius:50%; position:relative; background:#eee; }
.donut-chart::after { content:''; width:80px; height:80px; background:#fafafa; border-radius:50%; position:absolute; top:30px; left:30px; }
.chart-legend { display:flex; flex-direction:column; gap:12px; }
.l-item { font-size:0.9rem; display:flex; align-items:center; gap:8px; }
.dot { width:12px; height:12px; border-radius:50%; display:inline-block; }
.dot.green { background:#4caf50; }
.dot.yellow { background:#ffc107; }
.dot.red { background:#f44336; }
.dot.grey { background:#e0e0e0; }
.acc-item { background:#fff; border:1px solid #eee; border-radius:8px; margin-bottom:10px; padding:15px; cursor:pointer; }
.acc-header { display:flex; justify-content:space-between; align-items:center; font-weight:600; }
.acc-summary { display:flex; gap:15px; font-size:0.85rem; }
.acc-summary span.s-good { color:#007bff; background:#e8f4fd; padding:3px 8px; border-radius:10px; }
.acc-summary span.s-bad { color:#dc3545; background:#fceced; padding:3px 8px; border-radius:10px; }
.acc-body { margin-top:15px; display:none; font-size:0.9rem; padding-top:15px; border-top:1px solid #f1f1f1; }
.acc-body.open { display:block; }

/* ── TARTIŞMALAR (FORUM) SAYFASI ── */
.forum-layout {
    display: flex;
    padding: 30px 5%;
    gap: 40px;
    background: #f8f9fa;
    min-height: 100vh;
}

.forum-sidebar {
    width: 260px;
    flex-shrink: 0;
}

.f-sidebar-group {
    margin-bottom: 30px;
}

.f-sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.f-sidebar-list {
    list-style: none;
}

.f-sidebar-list li a {
    display: block;
    padding: 10px 12px;
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: 0.2s;
}

.f-sidebar-list li a:hover, .f-sidebar-list li a.active {
    background: #fff;
    color: #2f483c;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.forum-feed {
    flex-grow: 1;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* TARTIŞMA KARTI */
.discussion-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.04);
    border: 1px solid #eee;
    transition: transform 0.2s;
}

.discussion-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.07);
}

.dc-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.dc-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dc-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: #eee;
}

.dc-user-meta .dc-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #222;
}

.dc-user-meta .dc-tags {
    font-size: 0.75rem;
    color: #888;
    background: #f0f2f5;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 6px;
}

.dc-time-views {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 2px;
}

.dc-category-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #e9f5ef;
    color: #2f483c;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
}

.dc-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #111;
    line-height: 1.3;
}

.dc-content {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 20px;
}

.dc-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.dc-images img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #eee;
}

/* ETİKETLİ ÜRÜN KARTI (Mini) */
.dc-tagged-product {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fdfdfd;
    border: 1px solid #f0f0f0;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

.dc-tagged-product:hover {
    background: #f5f5f5;
    border-color: #ddd;
}

.dc-tp-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    background: #fff;
}

.dc-tp-info {
    flex-grow: 1;
}

.dc-tp-brand {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #888;
    font-weight: 700;
}

.dc-tp-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 2px 0;
}

.dc-tp-rating {
    font-size: 0.8rem;
    color: #f39c12;
}

/* YÜZEN BUTON (FAB) */
.fab-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background: #2f483c;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(47,72,60,0.3);
    cursor: pointer;
    z-index: 999;
    border: none;
    transition: 0.3s;
}

.fab-btn:hover {
    transform: scale(1.1) rotate(90deg);
    background: #3e5d4e;
}

/* YENİ TARTIŞMA MODALI */
.post-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.post-modal-content {
    background: #fff;
    width: 95%;
    max-width: 600px;
    border-radius: 20px;
    padding: 30px;
    position: relative;
}

.pm-header {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.pm-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pm-input, .pm-textarea, .pm-select {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #eee;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
}

.pm-input:focus, .pm-textarea:focus {
    border-color: #2f483c;
}

.pm-textarea {
    height: 150px;
    resize: none;
}

.pm-submit {
    background: #2f483c;
    color: #fff;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

.pm-product-search-results {
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-top: -10px;
    display: none;
}

.pm-search-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.85rem;
}

.pm-search-item:hover {
    background: #f5f5f5;
}
/* ── ANA SAYFA TARTIŞMA GRİDİ (1 SÜTUN - DİKEY) ── */
.trending-discussions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}



/* KART İÇİ ETKİLEŞİM İKONLARI */
.dc-actions {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f5f5f5;
}

.dc-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.2s;
}

.dc-action-btn:hover {
    color: #2f483c;
}

.dc-action-btn svg {
    width: 18px;
    height: 18px;
    /* fill özelliği SVG'nin kendi attribute/style'ından gelmesi için CSS'ten kaldırıldı */
}

.dc-action-btn.upvoted {
    color: #2f483c;
    font-weight: 700;
}

/* CHIP FİLTRELER (Görseldeki stil) */
.chip-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.chip-btn {
    padding: 10px 22px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

.chip-btn:hover {
    background: #f8f9fa;
    border-color: #ddd;
}

.chip-btn.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* NAV-FAV-LINK DÜZELTME */
.nav-fav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    font-weight: 500;
}

.nav-fav-link:hover svg {
    fill: #e31837;
}

.nav-links li a.active {
    color: #2f483c;
    font-weight: 700;
}
/* YORUM BÖLÜMÜ STİLLERİ */
.dc-comments-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    display: none; /* JS ile açılacak */
}

.dc-comments-section.active {
    display: block;
}

.dc-comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.dc-comment-item {
    background: #f9f9f9;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
}

.dc-comment-user {
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
    display: block;
}

.dc-comment-content {
    color: #555;
    line-height: 1.4;
}

.dc-comment-input-wrapper {
    display: flex;
    gap: 10px;
}

.dc-comment-input {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1.5px solid #eee;
    border-radius: 20px;
    font-size: 0.85rem;
    outline: none;
    transition: 0.2s;
}

.dc-comment-input:focus {
    border-color: #2f483c;
    background: #fff;
}

.dc-comment-send {
    background: #2f483c;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 0 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

/* TREND ÜRÜNLER STİLLERİ */
.trending-products {
    background: #fff;
    padding: 40px 0;
}

.tp-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 0 20px 0;
    margin-left: -15px; /* Kartın 15px iç paddingini dengeleyerek fotoğrafları başlıkla hizalar */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(0,0,0,0.1) transparent;
}

.tp-scroll-container::-webkit-scrollbar {
    height: 4px;
}

.tp-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.tp-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.08);
    border-radius: 10px;
}

.tp-scroll-container:hover::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
}

.tp-card {
    flex: 0 0 calc((100% - 80px) / 5);
    min-width: 180px;
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
    cursor: pointer;
    border: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.tp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #2f483c;
}

.tp-img-wrapper {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: #f9f9f9;
    margin-bottom: 12px;
}

.tp-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.tp-card:hover .tp-img {
    transform: scale(1.1);
}

.tp-info {
    flex-grow: 1;
}

.tp-brand {
    font-size: 0.7rem;
    font-weight: 700;
    color: #2f483c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.tp-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    height: 2.2rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 8px;
}

.tp-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.tp-price {
    font-weight: 700;
    color: #2f483c;
    font-size: 0.9rem;
}

.tp-rating {
    font-size: 0.75rem;
    color: #ffb800;
    font-weight: 600;
}

/* ══ MOBİL ALT MENÜ (Bottom Tab Bar) ══ */
.mobile-tab-bar {
    display: none; /* PC'de gizli */
}

/* ═══════════════════════════════════════════ */
/* ════════ MOBİL OPTİMİZASYON (≤768px) ═══════ */
/* ═══════════════════════════════════════════ */
@media (max-width: 768px) {

    /* ── NAVBAR: sadece logo görünsün, linkler gizlensin ── */
    .navbar {
        padding: 8px 0;
    }
    .navbar .container {
        justify-content: center !important;
    }
    .nav-links {
        display: none !important;
    }
    .logo {
        font-size: 1.2rem;
        gap: 8px;
    }
    .nav-logo-img {
        height: 30px;
    }

    /* ── MOBİL ALT MENÜ GÖSTER ── */
    .mobile-tab-bar {
        display: flex !important;
        position: fixed;
        bottom: 10px;
        left: 12px;
        right: 12px;
        background: rgba(255,255,255,0.92);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(0,0,0,0.06);
        border-radius: 40px; /* Daha oval */
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
        z-index: 9999;
        padding: 8px 6px;
        justify-content: space-around;
        align-items: center;
    }
    .tab-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        text-decoration: none;
        color: #aaa;
        font-size: 0.55rem;
        font-weight: 500;
        transition: color 0.2s, background 0.2s;
        flex: 1;
        padding: 8px 0;
        border-radius: 40px; /* Dış çerçeveye uyumlu olması için tam oval */
    }
    .tab-item svg {
        width: 22px;
        height: 22px;
    }
    .tab-item.active {
        color: #2f483c;
        font-weight: 700;
        background: rgba(47,72,60,0.1);
    }
    .tab-item.active svg {
        stroke: #2f483c;
    }

    /* ── Body alt boşluk (oval tab bar arkasına gizlenmesin) ── */
    body {
        padding-bottom: 80px;
    }

    /* ── Logo: Diğer sayfalarda sadece ikon, ana sayfada yazı görünsün ── */
    .logo span {
        display: none;
    }
    .home-page .logo span {
        display: inline;
    }
    .navbar .container {
        justify-content: flex-start !important;
    }
    .home-page .navbar .container {
        justify-content: flex-start !important;
    }
    
    /* ── Üst Bar Gizleme: Sadece ana sayfada görünsün ── */
    body:not(.home-page) .navbar {
        display: none !important;
    }

    /* ── MEGA MENU (mobilde gizle) ── */
    .mega-nav {
        display: none;
    }

    /* ── HERO ── */
    .hero {
        padding: 30px 0;
    }
    .main-title {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }
    .sub-title {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
    .search-input {
        padding: 12px 18px;
        font-size: 0.85rem;
    }

    /* ── KATEGORİ GRİDİ (5'er 5'er) ── */
    .category-grid {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 8px;
    }
    .cat-image-square {
        width: 56px;
        height: 56px;
        border-radius: 14px;
    }
    .cat-text {
        font-size: 0.6rem;
    }

    /* ── TREND ÜRÜNLER (yatay kaydırma) ── */
    .tp-scroll-container {
        gap: 12px;
        margin-left: 0;
    }
    .tp-card {
        flex: 0 0 140px;
        min-width: 140px;
        padding: 10px;
    }
    .tp-brand {
        font-size: 0.6rem;
    }
    .tp-name {
        font-size: 0.75rem;
        height: auto;
    }
    .tp-rating {
        font-size: 0.65rem;
    }

    /* ── TREND TARTIŞMALAR (alt alta - tek sütun) ── */
    .trending-discussions-grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
        margin-left: 0;
    }
    .discussion-card {
        padding: 10px; /* Sığması için padding kısıldı */
        min-width: 0; /* Flex/Grid taşmasını önler */
    }
    .discussion-card .dc-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .dc-avatar {
        width: 24px !important;
        height: 24px !important;
    }
    .dc-user-meta .dc-name {
        font-size: 0.65rem;
    }
    .dc-user-meta .dc-tags {
        font-size: 0.55rem;
        padding: 1px 4px;
        margin-left: 4px;
    }
    .dc-time-views {
        font-size: 0.6rem;
    }
    .dc-category-badge {
        font-size: 0.55rem;
        padding: 2px 6px;
        align-self: flex-start;
    }
    .dc-title {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }
    .dc-content {
        font-size: 0.75rem;
        margin-bottom: 10px;
        line-height: 1.4;
    }
    .dc-actions {
        gap: 8px;
    }

    /* ── SECTION BAŞLIKLARI ── */
    .section-title {
        font-size: 1.1rem;
    }
    .section-padding {
        padding: 30px 0;
    }

    /* ── CHIP FİLTRELER ── */
    .chip-filters {
        gap: 6px;
        margin-bottom: 15px;
    }
    .chip-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

/* ═══ ÇOK KÜÇÜK EKRANLAR (≤400px) ═══ */
@media (max-width: 400px) {
    .nav-links {
        gap: 6px;
    }
    .nav-links a {
        font-size: 0.6rem;
    }
    .main-title {
        font-size: 1.5rem;
    }
    .cat-image-square {
        width: 48px;
        height: 48px;
    }
    .cat-text {
        font-size: 0.55rem;
    }
}

/* ═══ FORUM SAYFA MOBİL (≤768px) ═══ */
@media (max-width: 768px) {
    .forum-layout {
        flex-direction: column !important;
        padding: 15px 0 !important;
        gap: 15px !important;
    }
    .forum-sidebar {
        width: 100% !important;
        display: flex;
        flex-direction: column; /* Sekmeler ve Çipler alt alta gelsin */
        gap: 8px;
        padding-bottom: 5px;
    }
    .f-sidebar-group {
        flex-shrink: 0;
        margin-bottom: 0;
    }
    .f-sidebar-title, .f-sidebar-list {
        display: none; /* Mobilde eski sidebar'ı gizliyoruz */
    }
    
    .forum-mode-tabs {
        display: flex;
        gap: 0;
        border-bottom: 1px solid #eaeaea;
        margin-bottom: 8px;
    }
    .forum-mode-btn {
        flex: 1;
        background: none;
        border: none;
        padding: 12px 0;
        font-size: 0.95rem;
        font-weight: 400; /* Daha ince */
        color: #555;
        cursor: pointer;
        border-bottom: 2px solid transparent;
        margin-bottom: -1px;
        transition: 0.2s;
    }
    .forum-mode-btn.active {
        color: #2f483c; /* Yeşil referans rengi */
        font-weight: 600;
        border-bottom: 2px solid #2f483c;
    }

    .forum-category-chips {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 8px;
        margin-bottom: 5px;
        -webkit-overflow-scrolling: touch;
    }
    .forum-category-chips::-webkit-scrollbar {
        display: none; /* Scrollbar'ı gizle */
    }
        max-width: 100% !important;
        width: 100%;
    }
    .discussion-card {
        padding: 14px !important;
    }
    .dc-title {
        font-size: 1rem !important;
    }
    .dc-content {
        font-size: 0.85rem !important;
    }

    /* FAB butonunu tab barın üstüne al */
    .fab-btn {
        bottom: 80px !important;
        right: 20px !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 1.5rem !important;
    }
}

/* ═══ dc-tags (cilt tipi) GLOBAL düzeltme ═══ */
.dc-tags {
    font-size: 0.65rem;
    color: #888;
    background: #f0f2f5;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 6px;
    white-space: nowrap;
    display: inline;
    vertical-align: middle;
}

/* ══ FORUM MODE TABS & CHIPS (mobilde görünür) ══ */
.forum-mode-tabs,
.forum-category-chips {
    display: none; /* PC'de gizli */
}
.sidebar-desktop-only {
    display: block; /* PC'de görünür */
}

@media (max-width: 768px) {
    .forum-mode-tabs {
        display: flex;
        gap: 0;
        border-bottom: 2px solid #eee;
        margin-bottom: 12px;
    }
    .forum-mode-btn {
        flex: 1;
        background: none;
        border: none;
        padding: 10px 0;
        font-size: 0.85rem;
        font-weight: 500; /* Başlıklar da biraz inceltildi */
        color: #999;
        cursor: pointer;
        border-bottom: 2px solid transparent;
        margin-bottom: -2px;
        transition: 0.2s;
    }
    .forum-mode-btn.active {
        color: #2f483c;
        border-bottom-color: #2f483c;
    }

    .forum-category-chips {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 8px;
        margin-bottom: 10px;
    }
    .forum-chip {
        white-space: nowrap;
        padding: 6px 14px;
        border-radius: 20px;
        border: 1px solid #e0e0e0; /* Çok ince ve açık renk çerçeve */
        background: #fff;
        font-size: 0.8rem;
        font-weight: 400; /* İncelik referansla aynı */
        color: #333;
        cursor: pointer;
        transition: 0.2s;
        flex-shrink: 0;
    }
    .forum-chip.active {
        background: #222; /* Koyu arka plan */
        color: #fff;
        border-color: #222;
        font-weight: 500;
    }

    .sidebar-desktop-only {
        display: none !important;
    }

    /* Ana sayfa trend dc-tags daha ufak */
    .trending-discussions-grid .dc-tags {
        font-size: 0.5rem;
        padding: 1px 5px;
    }

    /* Section başlıkları sola */
    .section-title {
        justify-content: flex-start;
    }

    /* ══ ÜRÜNLER SAYFASI MOBİL ══ */
    .mobile-top-controls {
        display: block; /* Sadece mobilde görünür */
        background: #fff;
        border-bottom: 1px solid #eee;
        position: sticky;
        top: 0;
        z-index: 1000;
        padding-bottom: 10px;
        transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    }
    
    .m-cat-tabs {
        display: flex;
        padding: 10px 0; /* Yan boşlukları kapatalım ki çizgiler tam otursun, veya 15px kalsın */
        margin: 0 15px;
        border-bottom: 1px solid #f5f5f5;
        align-items: center;
    }
    .m-cat-btn {
        flex: 1;
        background: none;
        border: none;
        font-size: 0.85rem;
        font-weight: 600;
        color: #555;
        padding: 5px 0;
        cursor: pointer;
        position: relative;
        text-align: center;
    }
    /* Sağ tarafa kısa çizgi (Son eleman hariç) */
    .m-cat-btn:not(:last-child)::before {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        height: 14px; /* Kısa çizgi */
        width: 1px;
        background-color: rgba(0, 0, 0, 0.15); /* İnce şeffaf siyah */
    }
    .m-cat-btn.active {
        color: #2f483c;
        text-shadow: 0 0 0.5px #2f483c;
    }
    .m-cat-btn.active::after {
        content: '';
        position: absolute;
        bottom: -11px;
        left: 50%;
        transform: translateX(-50%);
        width: 80%; /* Çizgi sekme genişliğinin %80'i olsun ki bitişik durmasınlar */
        height: 2px;
        background: #2f483c;
        border-radius: 2px;
    }

    .m-subcat-panel {
        position: fixed;
        bottom: -100%;
        left: 0;
        width: 100vw;
        height: 70vh; /* Ekranın alt %70'ini kaplar */
        background: #fff;
        z-index: 10005; /* Overlay'in de üzerinde */
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        box-shadow: 0 -5px 20px rgba(0,0,0,0.15);
        padding: 20px;
        transition: bottom 0.3s ease;
        overflow-y: auto;
    }
    .m-subcat-panel.open {
        bottom: 0;
    }
    .m-subcat-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .m-subcat-btn {
        text-align: left;
        background: none;
        border: none;
        font-size: 0.9rem;
        font-weight: 500;
        color: #444;
        cursor: pointer;
        padding: 5px 0;
    }
    .m-subcat-btn.active {
        color: #2f483c;
        font-weight: 700;
        text-decoration: underline;
    }

    .m-filter-bar {
        display: flex;
        justify-content: space-between; /* Biri sağa biri sola */
        align-items: center;
        padding: 15px 15px 5px; /* Üstten biraz boşluk (10px -> 15px yapıldı) */
    }
    .m-sort-select {
        border: none;
        background: transparent;
        font-size: 0.8rem;
        font-weight: 500;
        color: #555;
        outline: none;
        cursor: pointer;
        text-align: right;
        margin: 0;
        padding: 0;
        height: 20px;
        line-height: 20px;
    }
    .m-filter-btn {
        background: none;
        border: none;
        font-weight: 600;
        color: #111;
        font-size: 0.85rem;
        padding: 0;
        margin: 0;
        height: 20px;
        line-height: 20px;
        cursor: pointer;
        text-decoration: none; /* Varsayılan alt çizgi kaldırıldı */
    }
    .m-filter-btn:active {
        text-decoration: underline; /* Basılı tutarken altı çizilir */
    }

    /* Off-Canvas Sidebar */
    .products-page .main-container {
        display: block; /* Grid'i boz mobilde */
    }
    .products-page .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: #fff;
        z-index: 10001; /* Overlay üstü */
        overflow-y: auto;
        padding: 20px;
        transition: left 0.3s ease;
        box-shadow: 2px 0 15px rgba(0,0,0,0.15);
        display: block !important; /* Mobilde her zaman render edilsin ama solda kalsın */
    }
    .products-page .sidebar.open {
        left: 0;
    }
    .filter-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.4);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        z-index: 10000;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .filter-overlay.open {
        display: block;
        opacity: 1;
    }
    .sidebar-close-btn {
        display: block;
        position: absolute;
        top: 15px;
        right: 15px;
        background: none;
        border: none;
        font-size: 1.8rem;
        cursor: pointer;
        color: #333;
        z-index: 10;
    }

    /* Ürünler Grid (Yan Yana 2) */
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    /* Kartların mobilde sığması için font boyutları */
    .product-card .p-brand { font-size: 0.75rem; }
    .product-card .p-name { font-size: 0.85rem; }
    
    /* Mobilde Breadcrumb'ı gizle */
    #breadcrumb { display: none !important; }
    
    /* Mobilde masaüstü Sıralama seçicisini (arama çubuğu yanındaki) gizle */
    .content-header .sort-select { display: none !important; }
}

/* MEGA MENU GLOBAL */
.mega-nav { background: #fff; border-bottom: 1px solid #eee; position: sticky; top: 0; z-index: 100; }
.mega-nav-inner { display: flex; padding: 0; gap: 0; }
.mega-item { position: relative; }
.mega-item > a {
    display: block; padding: 16px 20px; font-size: 0.95rem; font-weight: 600;
    color: #222; text-decoration: none; border-bottom: 3px solid transparent; transition: 0.2s;
    white-space: nowrap;
}
.mega-item:hover > a, .mega-item > a.active { background-color: #f7f7f7; border-bottom-color: #2f483c; color: #2f483c; }

.mega-dropdown {
    display: none; position: absolute; top: 100%; left: 0; background: #fff;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12); border-top: 2px solid #2f483c;
    padding: 30px; min-width: 700px; z-index: 999;
}
.mega-item:hover .mega-dropdown { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.mega-col h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 12px; color: #111; }
.mega-col a {
    display: block; padding: 6px 0; font-size: 0.85rem; color: #555;
    text-decoration: none; transition: color 0.15s, padding-left 0.15s;
}
.mega-col a:hover { color: #2f483c; padding-left: 4px; }

/* Masaüstünde gizlenecekler */
@media (min-width: 769px) {
    .mobile-top-controls,
    .filter-overlay,
    .sidebar-close-btn,
    .m-subcat-panel {
        display: none !important;
    }
}
