/* GENEL AYARLAR */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
html, body { overflow-x: hidden; }
body { font-family: 'Inter', sans-serif; background: #fff; color: #292929; }
input, textarea, select, button, [contenteditable] { font-family: inherit; }
input, textarea, [contenteditable] { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
button, a, label, summary, select, [role="button"], [onclick] { cursor: pointer; }
button:disabled, [aria-disabled="true"] { cursor: default; }

.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: #fff;
    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: clamp(5px, 1.5vw, 17px); }
.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));
    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: transparent; }
.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;
    align-items: stretch;
}

/* Ürün kartı hover: yukarı kalk + gölge */
.product-card {
    background: white;
    border: none;
    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);
    
    /* Equal height flex layout */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card .p-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: flex-start;
}

.product-card .p-details > *:last-child {
    margin-top: auto; /* Pushes the bottom items down */
}
@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: #fff;
    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: 900;
    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: 900; 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: 900; 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: 900;
    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 {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

/* YENİ TARTIŞMA KARTI YERLEŞİMİ (Global) */
.dc-main-layout {
    display: flex;
    gap: 15px;
    flex: 1;
}
.dc-text-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.dc-media-and-tag {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.discussion-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(47, 72, 60, 0.10);
}

/* Kartın içindeki metinlerin yazı imlecini (I-beam) göstermemesi için */
.discussion-card * {
    cursor: pointer;
}

.discussion-card .dc-comment-input, 
.discussion-card .dc-tag-search {
    cursor: text;
}

.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: 900;
    font-size: 0.95rem;
    color: #222;
}

.dc-user-meta .dc-tags {
    font-size: 0.75rem;
    color: #888;
    background: #f0f2f1;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 6px;
}

.dc-time-views {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 2px;
}

.dc-category-badge {
    background: #e9f5ef;
    color: #2f483c;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 900;
}

.dc-title {
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 12px;
    color: #111;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.dc-content {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.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: 900;
}

.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: 900;
    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İ (2 SÜTUN) ── */
.trending-discussions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}



/* 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: #666;
    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: 900;
}

/* 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;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.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: 900;
}
/* 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: 900;
    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 inline stillerle çalışması için css tarafı temizlendi */

/* TREND ÜRÜNLER STİLLERİ */
.trending-products {
    background: transparent !important;
    padding: 20px 0 !important;
    margin-top: 10px;
}
.trending-products .container {
    background: #e8efe9;
    border-radius: 20px;
    padding: 25px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}
.home-page .discussions.section-padding {
    padding: clamp(48px, 6vw, 72px) 0;
}

.tp-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 0 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(47, 72, 60, 0.2) transparent;
}

.tp-scroll-container::-webkit-scrollbar {
    height: 6px; /* slightly thicker to be visible if we add borders */
}

.tp-scroll-container::-webkit-scrollbar-track {
    background: transparent;
    margin: 0 10vw; /* This works in some WebKit versions to add space at ends */
}

.tp-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(47, 72, 60, 0.4);
    border-radius: 10px;
}

.tp-scroll-container::-webkit-scrollbar-button {
    display: none; /* removes arrows */
}

.tp-scroll-container:hover::-webkit-scrollbar-thumb {
    background: rgba(47, 72, 60, 0.6);
}

.tp-card {
    flex: 0 0 calc((100% - 80px) / 5);
    min-width: 180px;
    background: #fff;
    border-radius: 14px;
    padding: 15px;
    box-shadow: var(--al-shadow-card);
    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 12px 28px rgba(47, 72, 60, 0.12);
    border-color: var(--al-green);
}

.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: 900;
    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: 900;
    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: 900;
        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 120px;
        min-width: 120px;
        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;
    }
    
    /* YENİ: Mobilde metin max 3 satır olsun */
    .discussion-card .dc-content {
        -webkit-line-clamp: 3 !important; 
        margin-bottom: 15px !important;
    }

    /* YENİ: Foto ve Tag yan yana sığsın */
    .discussion-card .dc-media-and-tag {
        display: flex !important;
        flex-direction: row !important;
        gap: 10px !important;
        align-items: stretch !important;
    }
    .discussion-card .dc-media-gallery,
    .discussion-card .dc-tagged-prod {
        margin-bottom: 0 !important;
        flex: 1 !important; /* Alanı tam ikiye bölsün */
        width: 0 !important; 
        max-width: calc(50% - 5px) !important; /* Tek başına kaldığında da ikili görünümdeki boyutunda olsun */
        height: auto !important;
        aspect-ratio: 130/185 !important; /* Orantılı dikey dikdörtgen */
    }
    .discussion-card .dc-media-gallery img:first-child {
        width: 100% !important;
        height: 100% !important;
        aspect-ratio: auto !important;
        object-fit: cover;
    }
    .discussion-card .dc-tagged-prod img {
        max-height: none !important; /* İçeriği doldursun */
    }
    .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 12px !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: 900;
        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: 900; 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;
    }
}

/* Sidebar Fix */
.sidebar {
    width: 280px;
    min-width: 280px;
    flex-shrink: 0;
}

/* Yorum Cevap Formu (Reddit tarzı için gizli) */
.dc-reply-form {
    display: none;
}
.dc-reply-form.active {
    display: block;
}

/* Toggle node and line fixes */
/* Removed straight line pseudo-elements per user request */
.dc-thread-toggle-node::after { display: none !important; }
.dc-thread-toggle-wrapper {
    display: flex;
    align-items: center;
    margin-top: 10px;
    margin-left: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
}
.dc-thread-toggle-wrapper:hover { color: #111; }
.dc-thread-toggle-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #eee;
    color: #555;
    margin-right: 8px;
    font-weight: bold;
    font-size: 14px;
    line-height: 1;
}

/* NAVBAR-HERO (Global for non-home pages) */
.navbar-hero {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    padding: 0 5%;
}
.navbar-hero .nh-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
    height: 65px;
    position: relative;
}
.navbar-hero .nh-logo {
    position: absolute;
    left: 0;
    font-family: 'Yeseva One', serif;
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--al-green);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.navbar-hero .nh-logo .lab-green { color: #2f483c; }
.navbar-hero .nh-logo img { width: 36px; height: 36px; object-fit: contain; }
.navbar-hero .nh-links {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.navbar-hero .nh-links a {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: #333;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}
.navbar-hero .nh-links a:hover { color: #2f483c; }
.navbar-hero .nh-links a.active { color: #2f483c; font-weight: 600; }

@media (max-width: 768px) {
    .navbar-hero { display: none !important; }
}

/* 3 NOKTA MENÜSÜ DROPDOWN */
.dc-menu-container { position: relative; }
.dc-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 100;
    border: 1px solid #eee;
    overflow: hidden;
    min-width: 120px;
}
.dc-dropdown.show { display: block; }
.dc-dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 20px;
    font-size: 0.85rem;
    cursor: pointer;
    background: none;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
    color: #333;
    font-family: inherit;
}
.dc-dropdown-item:last-child { border-bottom: none; }
.dc-dropdown-item:hover { background: #f8f8f8; }
.dc-dropdown-item.delete { color: #e31837; }
.dc-dropdown-item.delete:hover { background: #fff5f5; }


/* --- NEW TAGGING MODAL --- */
.tag-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #fff; z-index: 9999; display: flex; flex-direction: column; overflow: hidden; animation: slideUp 0.3s ease; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.tag-modal-content { display: flex; flex-direction: column; height: 100%; }
.tag-modal-header { padding: 15px 20px; display: flex; align-items: center; gap: 15px; }
.tag-modal-back { background: none; border: none; cursor: pointer; color: #333; display: flex; align-items: center; justify-content: center; padding: 5px; }
.tag-modal-search-wrapper { flex: 1; position: relative; }
.tag-modal-search { width: 100%; background: #f5f5f5; border: none; border-radius: 8px; padding: 10px 10px 10px 36px; outline: none; font-size: 0.95rem; font-family: 'Inter', sans-serif; }
.tag-modal-search-wrapper svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #888; width: 18px; height: 18px; }
.tag-modal-tabs { display: flex; border-bottom: 1px solid #eee; }
.tag-tab { flex: 1; background: none; border: none; padding: 12px 0; font-size: 0.95rem; font-weight: 500; color: #666; cursor: pointer; position: relative; user-select: none; -webkit-user-select: none; }
.tag-tab.active { color: #111; font-weight: 600; }
.tag-tab.active::after { content: ''; position: absolute; bottom: -1px; left: 20%; width: 60%; height: 3px; background: #e3a6a1; border-radius: 3px 3px 0 0; }
.tag-modal-body { flex: 1; overflow-y: auto; background: #fff; overscroll-behavior: contain; }
.tag-tab-content { display: none; padding: 0 20px; }
.tag-tab-content.active { display: block; }
.tag-filters-bar { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid #eee; font-size: 0.85rem; color: #888; }
.tag-sort-btn { background: none; border: 1px solid #ddd; padding: 6px 12px; border-radius: 6px; cursor: pointer; color: #333; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.tag-list-item { display: flex; align-items: center; gap: 15px; padding: 15px 0; border-bottom: 1px solid #f5f5f5; cursor: pointer; transition: background 0.2s; }
.tag-list-item:hover { background: #fafafa; }
.tag-list-img { width: 45px; height: 45px; object-fit: contain; flex-shrink: 0; }
.tag-list-info { flex: 1; overflow: hidden; }
.tag-list-brand { font-weight: 900; font-size: 0.9rem; color: #111; text-transform: uppercase; margin-bottom: 2px; }
.tag-list-name { font-size: 0.85rem; color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.tag-list-rating { font-size: 0.8rem; color: #333; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.tag-list-rating span { color: #888; font-weight: 400; }
.tag-brand-avatar { width: 50px; height: 50px; border-radius: 50%; background: #fff; border: 1px solid #eee; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 1.1rem; color: #333; flex-shrink: 0; }
.tag-brand-name { font-weight: 600; font-size: 0.95rem; color: #111; }
@media (min-width: 768px) { .tag-modal-overlay { background: rgba(0,0,0,0.5); justify-content: center; align-items: center; } .tag-modal-content { width: 450px; height: 80vh; max-height: 700px; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.1); } }


/* ==========================================================================
   SITE FOOTER (AURA LAB)
   ========================================================================== */
.site-footer {
    background-color: #fafafa;
    border-top: 1px solid #eaeaea;
    padding: 64px 0 28px;
    font-family: 'Inter', sans-serif;
    color: #4a4a4a;
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
    align-items: start;
}

/* İletişim sütunu (footer-contact.js ile enjekte edilir) */
.footer-contact-list { list-style: none; padding: 0; margin: 0; }
.footer-contact-item {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 14px; color: #555; font-size: 0.9rem;
}
.footer-contact-item svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--al-green); }
.footer-contact-item a { color: #555; text-decoration: none; transition: color 0.2s; word-break: break-word; }
.footer-contact-item a:hover { color: var(--al-green); text-decoration: underline; }

.footer-logo {
    display: block;
    font-family: 'Yeseva One', serif;
    font-size: 1.8rem;
    color: var(--al-green);
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.footer-mission {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    max-width: 300px;
}

.footer-heading {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #2f483c;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--al-green);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #eaeaea;
    padding-top: 20px;
    text-align: center;
}

.footer-copyright {
    font-size: 0.85rem;
    color: #888;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-mission {
        max-width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════════════
   TASTE-SKILL · DESIGN TOKENS & ANIMATION SYSTEM
   DESIGN_VARIANCE:6  MOTION_INTENSITY:7  VISUAL_DENSITY:4
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Color tokens */
  --al-green:       #2f483c;
  --al-green-dark:  #1e332a;
  --al-green-light: #e9f5ef;
  --al-emerald:     #10b981;
  --al-red:         #e31837;
  --al-black:       #111;

  /* Easing tokens */
  --al-ease:   cubic-bezier(0.4, 0, 0.2, 1);
  --al-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --al-out:    cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadow tokens */
  --al-shadow-card:  0 4px 15px rgba(0,0,0,0.03);
  --al-shadow-hover: 0 20px 40px rgba(0,0,0,0.10);
  --al-shadow-fab:   0 10px 25px rgba(47,72,60,0.30);
  --al-shadow-fab-h: 0 16px 36px rgba(47,72,60,0.38);
}

/* ── SCROLL REVEAL ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--al-ease),
              transform 0.65s var(--al-out);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal][data-reveal-delay="100"] { transition-delay: 0.1s; }
[data-reveal][data-reveal-delay="150"] { transition-delay: 0.15s; }
[data-reveal][data-reveal-delay="200"] { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ── CARD ENTRANCE ANIMATION ── */
@keyframes alCardIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

/* Product grid cards — nth-child stagger */
.products-grid .product-card {
  animation: alCardIn 0.45s var(--al-out) both;
}
.products-grid .product-card:nth-child(2)  { animation-delay: 55ms; }
.products-grid .product-card:nth-child(3)  { animation-delay: 110ms; }
.products-grid .product-card:nth-child(4)  { animation-delay: 165ms; }
.products-grid .product-card:nth-child(5)  { animation-delay: 220ms; }
.products-grid .product-card:nth-child(6)  { animation-delay: 275ms; }
.products-grid .product-card:nth-child(7)  { animation-delay: 330ms; }
.products-grid .product-card:nth-child(8)  { animation-delay: 385ms; }
.products-grid .product-card:nth-child(9)  { animation-delay: 440ms; }
.products-grid .product-card:nth-child(n+10) { animation-delay: 490ms; }

/* Homepage trending product cards */
.tp-scroll-container .tp-card {
  animation: alCardIn 0.45s var(--al-out) both;
}
.tp-scroll-container .tp-card:nth-child(2)  { animation-delay: 60ms; }
.tp-scroll-container .tp-card:nth-child(3)  { animation-delay: 120ms; }
.tp-scroll-container .tp-card:nth-child(4)  { animation-delay: 180ms; }
.tp-scroll-container .tp-card:nth-child(5)  { animation-delay: 240ms; }
.tp-scroll-container .tp-card:nth-child(n+6) { animation-delay: 300ms; }

/* Discussion cards */
#trending-grid .discussion-card,
.forum-feed .discussion-card {
  animation: alCardIn 0.45s var(--al-out) both;
}
#trending-grid .discussion-card:nth-child(2),
.forum-feed .discussion-card:nth-child(2) { animation-delay: 70ms; }
#trending-grid .discussion-card:nth-child(3),
.forum-feed .discussion-card:nth-child(3) { animation-delay: 140ms; }
#trending-grid .discussion-card:nth-child(4),
.forum-feed .discussion-card:nth-child(4) { animation-delay: 210ms; }
#trending-grid .discussion-card:nth-child(n+5),
.forum-feed .discussion-card:nth-child(n+5) { animation-delay: 280ms; }

@media (prefers-reduced-motion: reduce) {
  .product-card,
  .tp-card,
  .discussion-card { animation: none !important; }
}

/* ── ENHANCED PRODUCT CARD HOVER ── */
@media (hover: hover) {
  .product-card:hover {
    transform: translateY(-6px) scale(1.015) !important;
    box-shadow: var(--al-shadow-hover) !important;
  }
  .product-card:hover .p-image-wrapper img {
    transform: scale(1.06);
  }
  .tp-card:hover .tp-img {
    transform: scale(1.09) !important;
    transition: transform 0.55s var(--al-ease) !important;
  }
}

/* ── HERO TEXT ENTRANCE ── */
@keyframes alHeroIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.hero-text-area h2 {
  animation: alHeroIn 0.7s cubic-bezier(0.16,1,0.3,1) 0.28s both;
}
.hero-text-area p {
  animation: alHeroIn 0.7s cubic-bezier(0.16,1,0.3,1) 0.41s both;
}
.hero-text-area > div > a {
  animation: alHeroIn 0.7s cubic-bezier(0.16,1,0.3,1) 0.54s both;
}

@media (prefers-reduced-motion: reduce) {
  .hero-text-area h2,
  .hero-text-area p,
  .hero-text-area > div > a { animation: none; }
}

/* ── MODAL ENTRANCE ── */
@keyframes alModalIn {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* ── FAB BUTTON — bounce entrance & enhanced hover ── */
@keyframes alFabIn {
  from { opacity: 0; transform: scale(0.4) rotate(-180deg); }
  to   { opacity: 1; transform: scale(1)   rotate(0deg);   }
}
.fab-btn {
  animation: alFabIn 0.55s var(--al-spring) 0.3s both;
}
.fab-btn:hover {
  transform: scale(1.12) rotate(90deg) !important;
  box-shadow: var(--al-shadow-fab-h) !important;
  background: #3a5949 !important;
  transition: transform 0.4s var(--al-spring),
              box-shadow 0.3s var(--al-ease),
              background 0.2s var(--al-ease) !important;
}
.fab-btn:active {
  transform: scale(0.93) rotate(45deg) !important;
  transition: transform 0.1s var(--al-ease) !important;
}
@media (prefers-reduced-motion: reduce) {
  .fab-btn { animation: none; }
  .fab-btn:hover { transform: scale(1.05) !important; }
  .fab-btn:active { transform: scale(0.97) !important; }
}

/* ── ENHANCED FORM FOCUS ── */
.pm-input:focus,
.pm-textarea:focus,
.pm-select:focus,
.dc-comment-input:focus {
  border-color: var(--al-green) !important;
  box-shadow: 0 0 0 3px rgba(47,72,60,0.13);
  background-color: #fff;
  outline: none;
}

/* ── FOCUS RING (accessibility) ── */
:focus-visible {
  outline: 2px solid var(--al-green);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── SHIMMER SKELETON ── */
@keyframes alShimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
.skeleton,
.skeleton-shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e6e6e6 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: alShimmer 1.6s infinite;
  border-radius: 10px;
}
@media (prefers-reduced-motion: reduce) {
  .skeleton, .skeleton-shimmer { animation: none; background: #f0f0f0; }
}

/* ── ÜRÜN KARTI SKELETON (grid ilk yükleme) ── */
.skeleton-card {
  background: #fff;
  padding: 15px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
}
.skeleton-card .skeleton-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  margin-bottom: 14px;
}
.skeleton-card .skeleton-text {
  height: 12px;
  border-radius: 6px;
  margin: 6px 0;
}
.skeleton-card .skeleton-text.short {
  width: 55%;
  align-self: center;
}
.skeleton-card .skeleton-img,
.skeleton-card .skeleton-text {
  background: linear-gradient(90deg, #f0f0f0 25%, #e6e6e6 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: alShimmer 1.6s infinite;
}
@media (prefers-reduced-motion: reduce) {
  .skeleton-card .skeleton-img,
  .skeleton-card .skeleton-text { animation: none; background: #f0f0f0; }
}

/* ── ANA SAYFA — bölüm başlıkları ── */
.home-section-head {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 32px;
  margin-bottom: 24px;
}
.section-title.minimal-title {
  font-family: 'Playfair Display', serif;
  font-style: normal;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--al-black);
  margin: 0;
  display: block;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  line-height: 1;
}
.view-all-link {
  text-decoration: none;
  color: var(--al-green);
  font-weight: 900;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
  position: relative;
  z-index: 10;
  line-height: 1;
  display: inline-block;
  transform: translateY(2px);
  display: flex;
  align-items: center;
  transition: opacity 0.2s var(--al-ease);
}
.view-all-link:hover { opacity: 0.65; }

/* ── ANA SAYFA — hero CTA ── */
.hero-cta {
  display: inline-block;
  margin-top: 24px;
  padding: 13px 36px;
  background: var(--al-black);
  color: #fff;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 8px;
  transition: background 0.3s var(--al-ease), transform 0.3s var(--al-ease), box-shadow 0.3s var(--al-ease);
}
.hero-cta:hover, .hero-cta:focus-visible {
  background: var(--al-green);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(47, 72, 60, 0.25);
}

/* ── PROMO DUO — AuraScan + Bana Özel yan yana kartlar ── */
.promo-duo-section {
  width: 100%;
  background-color: #fff;
  padding: clamp(40px, 5vw, 60px) 0;
  position: relative;
  z-index: 20;
}
/* .promo-duo-section .container removed to inherit standard .container width */
.promo-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.promo-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-radius: 20px;
  padding: 36px 42px;
  min-height: 240px;
  text-decoration: none;
  transition: transform 0.3s var(--al-ease), box-shadow 0.3s var(--al-ease);
}
.promo-card h3 {
  font-family: 'Yeseva One', serif;
  font-size: 2.1rem;
  font-weight: normal;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.promo-card p {
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.5;
  margin: 0 0 20px;
  opacity: 0.9;
}
.promo-cta {
  margin-top: auto;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 2;
}
.promo-aurascan .promo-cta { background: #fff; color: #1e332a; }
.promo-ozel .promo-cta { background: var(--al-green); color: #fff; box-shadow: 0 6px 16px rgba(47,72,60,0.22); }
.promo-aurascan {
  background: linear-gradient(135deg, #2f483c 0%, #1e332a 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(47, 72, 60, 0.2);
}
.promo-ozel {
  background: #A6C4B7;
  border: none;
  color: #1C2A23;
}
.promo-watermark {
  position: absolute;
  right: -28px;
  bottom: -34px;
  width: 230px;
  height: 230px;
  transform: rotate(-18deg);
  opacity: 0.15;
  pointer-events: none;
}
@media (hover: hover) {
  .promo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--al-shadow-hover);
  }
}
@media (max-width: 768px) {
  .promo-duo-section { padding-left: 0; padding-right: 0; }
  .promo-duo {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 14px;
  }
  .promo-duo::-webkit-scrollbar { display: none; }
  .promo-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
    min-height: 205px;
    padding: 24px 26px 26px;
  }
  .promo-card h3 { font-size: 1.35rem; }
  .promo-card p { font-size: 0.85rem; margin-bottom: 12px; }
  .promo-cta { padding: 10px 24px; }
  .promo-watermark {
    width: 140px;
    height: 140px;
    right: -18px;
    bottom: -20px;
  }
}

/* ── SHOP HERO (urunler.html) PAGE ENTRANCE ── */
@keyframes alPageIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.shop-hero {
  animation: alPageIn 0.5s var(--al-ease) both;
}

/* ── CATEGORY ITEM — spring hover ── */
.category-item {
  transition: transform 0.3s var(--al-spring) !important;
}
.category-item:hover {
  transform: translateY(-9px) !important;
}

/* ── CHIP / FILTER BUTTON hover glow ── */
.f-btn.active,
.f-rect-btn.active {
  box-shadow: 0 0 0 3px rgba(47,72,60,0.18);
}

/* ── FORUM POST TRIGGER hover ── */
#fb-style-post-trigger {
  transition: box-shadow 0.2s var(--al-ease), transform 0.2s var(--al-ease) !important;
}
#fb-style-post-trigger:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.09) !important;
  transform: translateY(-1px) !important;
}

/* ── NAVBAR backdrop blur on non-home pages ── */
.navbar-hero {
  transition: box-shadow 0.3s var(--al-ease),
              background 0.3s var(--al-ease),
              backdrop-filter 0.3s var(--al-ease);
}

/* ── PROFILE TABS MOBILE RESPONSIVE ── */
@media (max-width: 768px) {
  .profile-horizontal-tabs {
    gap: 18px !important;
    flex-wrap: nowrap !important;      /* sarma yok → tek satır */
    overflow-x: auto;                   /* taşarsa yatay kaydır */
    justify-content: flex-start !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .profile-horizontal-tabs::-webkit-scrollbar { display: none; }
  .profile-horizontal-tabs .p-tab {
    font-size: 0.8rem !important;
    white-space: nowrap;
    flex: 0 0 auto;
    padding-bottom: 8px;
  }
}

.home-page .discussions { background: transparent !important; }


/* ── MOBILE OVERRIDES FOR TITLES & CAROUSEL ── */
@media (max-width: 768px) {
  .section-title.minimal-title {
    font-size: 1.15rem;
  }
  .view-all-link {
    font-size: 0.65rem;
  }
  .trending-products .container {
    padding: 20px 15px; /* Reduce side padding to show more cards */
  }
  .tp-scroll-container {
    gap: 10px; /* Reduce gap to fit more */
  }
  .tp-card {
    flex: 0 0 125px !important;
    min-width: 125px !important;
    padding: 8px !important;
  }
  .tp-img {
    height: 110px !important;
  }
}

/* ============================================================
   RUTİNİM (Kullanıcı Bakım Rutini) — profil.html #routine-card
   ============================================================ */
.rutinim-head { margin-bottom: 18px; }
.rutinim-title { font-size: 1.2rem; font-weight: 800; color: #111; margin: 0; }
.rutinim-sub { font-size: 0.85rem; color: #888; margin: 4px 0 0; line-height: 1.5; }

/* Katlanır başlık: başlık solda, ok sağda, çerçevesiz */
.rutinim-toggle { display: flex; align-items: center; justify-content: space-between; cursor: pointer; margin-bottom: 0; user-select: none; }
.rutinim-toggle.open { margin-bottom: 18px; }
.rutinim-caret { font-size: 1.5rem; line-height: 1; color: #888; border: none; background: none; transition: transform 0.25s ease; transform: rotate(0deg); }
.rutinim-toggle.open .rutinim-caret { transform: rotate(90deg); }

/* Sade numaralı sayfalama (Bana Özel / Ürünler) — renkli sembol yok */
.pg-bar { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; margin: 30px 0 10px; }
.pg-btn { min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid #ddd; background: #fff; color: #333; border-radius: 8px; font-family: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all .15s; }
.pg-btn:hover { border-color: #2f483c; color: #2f483c; }
.pg-btn.pg-active { background: #2f483c; border-color: #2f483c; color: #fff; cursor: default; }
.pg-dots { color: #aaa; padding: 0 2px; }

/* Filtre paneli veri gelene kadar placeholder */
.filter-loading { color: #aaa; font-size: 0.85rem; padding: 8px 2px; }

.rutinim-empty-cta { text-align: center; padding: 18px 0 6px; }
.rutinim-empty-cta p { color: #666; margin: 0 0 14px; font-size: 0.9rem; }

.rutinim-group { margin-bottom: 22px; }
.rutinim-group:last-child { margin-bottom: 0; }
.rutinim-group-head { border-bottom: 1px solid #ececec; padding-bottom: 7px; margin-bottom: 12px; }
.rutinim-group-title { font-size: 0.98rem; font-weight: 700; color: #2f483c; letter-spacing: 0.2px; }

.rutinim-row {
  display: flex; align-items: stretch; gap: 12px;
  overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin;
}
.rutinim-row::-webkit-scrollbar { height: 6px; }
.rutinim-row::-webkit-scrollbar-thumb { background: #dcdcdc; border-radius: 3px; }

.rutinim-chip {
  position: relative; flex: 0 0 auto; width: 108px;
  border: 1px solid #ececec; border-radius: 12px; background: #fff;
  padding: 12px 10px 10px; cursor: pointer; transition: box-shadow .18s, transform .18s;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.rutinim-chip:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.08); transform: translateY(-1px); }
.rutinim-chip-img { width: 56px; height: 56px; object-fit: contain; margin-bottom: 8px; }
.rutinim-chip-text { display: flex; flex-direction: column; gap: 1px; width: 100%; }
.rutinim-chip-brand { font-size: 0.68rem; font-weight: 700; color: #2f483c; text-transform: uppercase; letter-spacing: 0.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rutinim-chip-name { font-size: 0.74rem; color: #555; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Uyum noktası */
.rutinim-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.rutinim-chip > .rutinim-dot { position: absolute; top: 8px; right: 9px; box-shadow: 0 0 0 2px #fff; }
.rutinim-dot.green { background: #2f9e44; }
.rutinim-dot.yellow { background: #f0a020; }
.rutinim-dot.red { background: #e03131; }

.rutinim-remove {
  position: absolute; top: 6px; left: 6px; width: 18px; height: 18px; line-height: 16px;
  border: none; border-radius: 50%; background: rgba(0,0,0,0.06); color: #666;
  font-size: 14px; cursor: pointer; padding: 0; opacity: 0; transition: opacity .15s;
}
.rutinim-chip:hover .rutinim-remove { opacity: 1; }
.rutinim-remove:hover { background: #e03131; color: #fff; }

.rutinim-add {
  flex: 0 0 auto; align-self: center; min-height: 44px; padding: 0 18px;
  border: 1.5px dashed #b9c8c0; border-radius: 12px; background: #f6faf8;
  color: #2f483c; font-weight: 700; font-size: 0.85rem; cursor: pointer; transition: .18s;
  white-space: nowrap;
}
.rutinim-add:hover { background: #2f483c; color: #fff; border-color: #2f483c; }

/* ── Sürükle-bırak (basılı tut → taşı/sırala) ── */
.rutinim-chip { touch-action: pan-x; }                 /* satır yatay scroll'u korunur */
.rutinim-chip.rutinim-dragging { opacity: 0.35; }
.rutinim-drag-ghost {
  position: fixed; left: 0; top: 0; z-index: 10050; width: 108px;
  pointer-events: none; will-change: transform;
  transition: none !important;   /* fareyle birebir; .rutinim-chip transform geçişini ez */
  border: 1px solid #ececec; border-radius: 12px; background: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,0.22);
}
.rutinim-row { transition: background .15s ease, outline-color .15s ease; }
.rutinim-group.rutinim-drop-active .rutinim-row {
  background: #f0f7f3; outline: 2px dashed #b9c8c0; outline-offset: 2px; border-radius: 12px;
}
body.rutinim-dragging-active { user-select: none; -webkit-user-select: none; }
@keyframes rutinim-settle { from { transform: scale(0.9); opacity: 0.4; } to { transform: none; opacity: 1; } }
.rutinim-chip.rutinim-settle { animation: rutinim-settle .22s ease; }

/* Akıllı öneri kutusu */
.rutinim-suggest-slot { display: contents; }
.rutinim-chip.rutinim-suggest {
  border: 1.5px dashed #b9c8c0; background: #f6faf8; padding-top: 24px;
}
.rutinim-chip.rutinim-suggest:hover { border-color: #2f483c; box-shadow: 0 4px 14px rgba(47,72,60,0.12); }
.rutinim-suggest-label {
  position: absolute; top: 6px; left: 8px; right: 8px;
  font-size: 0.6rem; font-weight: 800; letter-spacing: 0.3px; text-transform: uppercase;
  color: #2f483c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rutinim-suggest-score {
  position: absolute; top: 5px; right: 7px; color: #fff; font-size: 0.62rem; font-weight: 800;
  padding: 1px 6px; border-radius: 20px; box-shadow: 0 0 0 2px #f6faf8;
}
.rutinim-suggest-add {
  margin-top: 6px; font-size: 0.64rem; font-weight: 800; color: #2f483c;
  background: #e7f0ec; padding: 3px 8px; border-radius: 20px;
}
@media (max-width: 600px) {
  .rutinim-chip.rutinim-suggest { padding-top: 10px; padding-left: 12px; flex-wrap: wrap; }
  .rutinim-suggest-label { position: static; order: 0; flex: 1 0 100%; margin-bottom: 2px; }
  .rutinim-suggest-score { position: static; order: 5; }
  .rutinim-suggest-add { order: 6; margin-top: 0; margin-left: auto; }
}

/* Detay modalı */
.rutinim-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 10006;
  display: none; align-items: center; justify-content: center; backdrop-filter: blur(3px);
}
.rutinim-modal {
  position: relative; background: #fff; width: 92%; max-width: 460px; max-height: 88vh;
  overflow-y: auto; border-radius: 16px; padding: 26px 24px; box-shadow: 0 12px 44px rgba(0,0,0,0.25);
}
.rutinim-modal-close {
  position: absolute; top: 12px; right: 14px; border: none; background: none;
  font-size: 1.6rem; line-height: 1; color: #999; cursor: pointer;
}
.rutinim-detail-hero { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.rutinim-detail-hero img { width: 64px; height: 64px; object-fit: contain; flex-shrink: 0; }
.rutinim-detail-brand { font-size: 0.72rem; font-weight: 700; color: #2f483c; text-transform: uppercase; letter-spacing: 0.3px; }
.rutinim-detail-name { font-size: 1rem; font-weight: 700; color: #111; line-height: 1.3; }

.rutinim-detail-sec { border-top: 1px solid #f0f0f0; padding-top: 14px; margin-top: 14px; }
.rutinim-detail-sec:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.rutinim-detail-sec-title { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: #999; margin-bottom: 10px; }
.rutinim-detail-list { margin: 8px 0 0; padding-left: 18px; }
.rutinim-detail-list li { font-size: 0.83rem; color: #555; line-height: 1.5; margin-bottom: 5px; }

.rutinim-ok { font-size: 0.88rem; color: #2f9e44; margin: 0; line-height: 1.5; }
.rutinim-note { font-size: 0.83rem; color: #888; margin: 0; line-height: 1.5; }

.rutinim-conf { background: #faf9f7; border: 1px solid #eee; border-radius: 10px; padding: 12px 13px; margin-bottom: 10px; }
.rutinim-conf:last-child { margin-bottom: 0; }
.rutinim-conf-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.rutinim-conf-head strong { font-size: 0.9rem; color: #111; }
.rutinim-conf-sev { margin-left: auto; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; padding: 2px 8px; border-radius: 20px; }
.rutinim-conf-sev.green { background: #e7f6ec; color: #2f9e44; }
.rutinim-conf-sev.yellow { background: #fdf3e0; color: #c47b0a; }
.rutinim-conf-sev.red { background: #fdeaea; color: #e03131; }
.rutinim-conf-reason { font-size: 0.82rem; color: #555; line-height: 1.5; margin-bottom: 6px; }
.rutinim-conf-reason:last-child { margin-bottom: 0; }
.rutinim-pill { display: inline-block; background: #edf3f0; color: #2f483c; font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; margin-right: 5px; }

.rutinim-score { display: flex; align-items: center; gap: 10px; }
.rutinim-score-badge { color: #fff; font-weight: 800; font-size: 0.95rem; padding: 5px 12px; border-radius: 20px; }
.rutinim-score-label { font-size: 0.86rem; color: #555; }

/* ── Rutinim mobil: yatay cip yerine DİKEY LİSTE ── */
@media (max-width: 600px) {
  .rutinim-row {
    flex-direction: column; align-items: stretch;
    overflow-x: visible; gap: 8px; padding: 2px 0 4px;
  }
  .rutinim-chip {
    width: auto; flex-direction: row; align-items: center;
    text-align: left; padding: 10px 12px; gap: 12px;
  }
  .rutinim-chip-img { order: 1; width: 50px; height: 50px; margin-bottom: 0; flex-shrink: 0; }
  .rutinim-chip-text { order: 2; flex: 1; min-width: 0; align-items: flex-start; text-align: left; }
  .rutinim-chip-brand { font-size: 0.72rem; }
  .rutinim-chip-name { font-size: 0.82rem; -webkit-line-clamp: 2; }
  /* Uyum noktası + sil düğmesi sağda, statik ve HER ZAMAN görünür */
  .rutinim-chip > .rutinim-dot { position: static; order: 3; width: 13px; height: 13px; box-shadow: none; }
  .rutinim-remove {
    position: static; order: 4; opacity: 1; flex-shrink: 0;
    width: 30px; height: 30px; line-height: 28px; font-size: 20px; background: #f2f2f2;
  }
  .rutinim-add { width: 100%; align-self: stretch; min-height: 46px; }
  /* Detay modalı küçük ekran okunaklılığı */
  .rutinim-modal { width: 94%; padding: 22px 18px; }
  .rutinim-conf-reason, .rutinim-detail-list li, .rutinim-conf-head strong,
  .rutinim-detail-name, .rutinim-score-label { overflow-wrap: break-word; word-break: break-word; }
  .rutinim-conf-head { flex-wrap: wrap; }
  .rutinim-conf-sev { margin-left: 0; }
}
@media (max-width: 400px) {
  .rutinim-chip-img { width: 44px; height: 44px; }
  .rutinim-title { font-size: 1.1rem; }
  .rutinim-sub { font-size: 0.8rem; }
}

/* ============================================================
   GENEL MOBİL CİLA — dokunma hedefleri + küçük ekran ince ayar
   ============================================================ */
@media (max-width: 768px) {
  /* Avatar düzenleme dokunuşta keşfedilebilir olsun (kalem rozeti) */
  .profile-avatar-wrapper::after {
    content: '✏️'; position: absolute; bottom: 2px; right: 2px;
    width: 30px; height: 30px; border-radius: 50%;
    background: #2f483c; color: #fff; font-size: 13px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25); border: 2px solid #fff; pointer-events: none;
  }
  /* Alt menü etiketleri biraz daha okunaklı */
  .tab-item { font-size: 0.62rem; }
}
@media (max-width: 400px) {
  .products-grid { gap: 8px !important; }
  .product-card .p-name { font-size: 0.8rem; }
  .product-card .p-brand { font-size: 0.7rem; }
  .tab-item { font-size: 0.58rem; }
  .tab-item svg { width: 21px; height: 21px; }
}

/* Tartışma kartı kategori rozeti mobilde küçülsün (inline stili ezer) */
@media (max-width: 600px) {
  .dc-category-badge {
    font-size: 0.58rem !important;
    padding: 3px 8px !important;
    letter-spacing: 0 !important;
  }
}
