:root { 
    --brand-blue: rgb(49, 189, 202); 
    --orange: #ff6600; 
    --dark: #444; 
    --light-gray: #777; 
    --discount-green: #7dc242; 
}

/* WEB KORUMA */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
}

body { 
    margin: 0; 
    font-family: 'Segoe UI', sans-serif; 
    background: #f4f4f4; 
    color: var(--dark); 
    overflow-x: hidden; 
}

img { pointer-events: none; -webkit-user-drag: none; }

.container { 
    max-width: 500px; 
    margin: 0 auto; 
    background: #fff; 
    min-height: 100vh; 
    position: relative; 
    box-shadow: 0 0 10px rgba(0,0,0,0.1); 
    padding-bottom: 5px; 
}

/* Header */
.header { 
    background: var(--brand-blue); 
    color: #fff; 
    padding: 0 15px; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: 60px; 
    box-sizing: border-box; 
}

.header-left, .header-right { display: flex; align-items: center; gap: 15px; width: 80px; }
.header-right { justify-content: flex-end; }
.header-center { flex: 1; text-align: center; font-weight: bold; font-size: 14px; letter-spacing: 1px; }

.search-box { 
    position: absolute; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background: var(--brand-blue); 
    display: none; 
    align-items: center; 
    padding: 0 15px; 
    box-sizing: border-box; 
    z-index: 1001; 
}

.search-box input { 
    flex: 1; border: none; padding: 10px 15px; border-radius: 20px; outline: none; font-size: 14px; 
    user-select: text; -webkit-user-select: text;
}

/* Tab Menü */
.category-tabs {
    display: none; 
    overflow-x: auto;
    white-space: nowrap;
    background: #fff;
    padding: 10px 5px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 60px;
    z-index: 999;
    scrollbar-width: none;
}

.tab-item { display: inline-flex; flex-direction: column; align-items: center; min-width: 75px; cursor: pointer; transition: 0.3s; padding: 5px; opacity: 0.5; }
.tab-item.active { opacity: 1; transform: scale(1.05); }
.tab-img { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; border: 2px solid #eee; margin-bottom: 5px; }
.tab-item.active .tab-img { border-color: var(--brand-blue); box-shadow: 0 0 8px rgba(49,189,202,0.3); }
.tab-text { font-size: 9px; font-weight: bold; color: #333; text-transform: uppercase; text-align: center; line-height: 1.1; white-space: normal; }

/* Ana Sayfa */
.hero { width: 100%; height: 200px; object-fit: cover; }
.content-card { background: white; margin-top: -35px; border-radius: 35px 35px 0 0; padding: 25px 20px; position: relative; }
.sub-title { font-size: 11px; color: #999; margin: 0; text-transform: uppercase; font-weight: bold; letter-spacing: 1px; }
.main-title { font-size: 24px; margin: 5px 0; color: #222; font-weight: 800; }
.location { color: var(--light-gray); font-size: 13px; margin-bottom: 15px; display: flex; align-items: center; gap: 6px; }

.social-icons { display: flex; gap: 10px; margin-bottom: 25px; }
.social-icons a { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; text-decoration: none; font-size: 18px; }

/* Grid */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 15px; }
.cat-card { height: 125px; border-radius: 18px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; border: 1px solid #eee; cursor: pointer; }
.cat-card::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
.cat-card span { color: #fff; z-index: 1; font-weight: bold; font-size: 12px; text-align: center; text-transform: uppercase; text-shadow: 1px 1px 3px #000; padding: 5px; }

/* Ürün Kartları */
#product-view, #search-view { display: none; padding: 15px; background: #fff; min-height: 100vh; }
.back-btn { cursor: pointer; font-weight: bold; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--light-gray); margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid #f5f5f5; }

.product-card { background: #fff; border: 1px solid #eee; border-radius: 14px; display: flex; padding: 12px; margin-bottom: 12px; align-items: center; animation: fadeIn 0.3s; }
.product-img { width: 70px; height: 70px; background: #fcfcfc; border-radius: 10px; flex-shrink: 0; overflow: hidden; border: 1px solid #f0f0f0; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-info { margin-left: 12px; flex: 1; }
.product-info h4 { margin: 0; font-size: 14px; color: #333; font-weight: 600; }

.price-row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.normal-price-box .val { font-weight: bold; color: var(--brand-blue); font-size: 15px; }
.genc-price-box { background: #f9fff4; border: 1px solid #e2f0d5; padding: 4px 8px; border-radius: 8px; display: flex; align-items: center; gap: 6px; }
.genc-logo { width: 22px; height: 22px; border-radius: 4px; }
.genc-text .val { font-size: 15px; color: var(--orange); font-weight: 800; }

.footer { text-align: center; padding: 20px; font-size: 11px; color: #aaa; background: #fff; border-top: 1px solid #eee; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* Güncellenmiş Ürün Listesi Arka Planı */
#product-view {
    position: relative;
    min-height: 100vh;
    background-color: #fff;
    overflow-x: hidden; /* Sağa taşmaları engeller */
}

#product-view::before {
    content: "";
    position: fixed;
    top: 55%; /* Header'ın biraz altına gelmesi için */
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* Boyutlandırma Ayarları */
    width: 90%;  /* Ekran genişliğinin %90'ı kadar olsun, taşmasın */
    height: 70%; /* Ekran yüksekliğinin %70'i kadar olsun */
    
    background-image: url('https://i.hizliresim.com/k120whj.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain; /* Resmi bozmadan kutunun içine sığdırır */
    
    /* Görünürlük Ayarı */
    opacity: 0.5; /* Çok daha hafif ve profesyonel durması için düşürdüm */
    z-index: 0;
    pointer-events: none;
}

#product-list-content {
    position: relative;
    z-index: 1;
}

* Logoları yan yana ve ortalı tutar */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Logolar arasındaki boşluk */
}

/* Logoların boyutunu header yüksekliğine göre ayarlar */
.header-logo {
    height: 35px; /* Header yüksekliğine göre burayı artırıp azaltabilirsiniz */
    width: auto;
    object-fit: contain;
}

/* Header içeriğinin daralmaması için merkezi genişletir */
.header-center {
    flex: 2;
    display: flex;
    justify-content: center;
}