﻿/* ============================= */
/*        GENEL AYARLAR         */
/* ============================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    background: #fefefe;
    color: #333;
}

/* ============================= */
/*           ÜST MENÜ           */
/* ============================= */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    background-color: #1c3d5a;
    color: white;
    flex-wrap: wrap;
}

.left-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    height: 40px;
}

.slogan {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    
}

.menu {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    transition: background 0.3s;
    border-radius: 6px;
}

.menu a:hover,
.menu .btn-login:hover {
    background-color: #0d5e4f;
}

.btn-login {
    background-color: #107361;
    padding: 8px 16px;
}

/* ============================= */
/*      KATEGORİ BUTONLARI      */
/* ============================= */
/* Sabit kategori satırı */
.category-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin: 30px 0 20px;
}

.category-button {
    background-color: transparent;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600; /* daha vurgulu başlık stili */
    font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
    color: #1c3d5a;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;

}
.category-button {
    cursor: pointer;
}



    .category-button.active {
        border-bottom: 2px solid #1c3d5a;
        color: #107361;
        background-color: transparent;
    }


/* ============================= */
/*     ORTA ALAN KAPSAYICI      */
/* ============================= */
#product-container {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

/* ---------- 1. YATAY SATIR ---------- */

.first-row {
    display: block;
    max-width: 1200px;
    margin: 30px auto;
    height: auto; /* ✅ sabit yükseklik yok */
    overflow: visible;
}

.first-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* ✅ 4 sütun */
    grid-auto-rows: auto; 
    gap: 20px;
    height: auto; /* sabit değil */
}




/* Sol taraf: ürün kartları alanı */
.first-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* SABİT SATIR KALKTI: kartlar içeriğe göre uzasın */
    grid-auto-rows: auto;
    align-items: start;
    gap: 20px;
    box-sizing: border-box;
    /* height: 100%; satırını da kaldırıyoruz */
}


    .first-cards .product-card {
        display: flex;
        flex-direction: column;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.06);
        overflow: hidden;
    }

        .first-cards .product-card img {
            height: 140px; /* mevcut yükseklik */
            width: 100%;
            object-fit: cover; /* kırpmaz, tamamını gösterir */
            background-color: #f8f8f8; /* boş kalan alanı arka planla doldur */
            pointer-events: none;
            
        }


    .first-cards::-webkit-scrollbar {
        width: 8px;
    }

   

/* Sağ taraf: ürün detay paneli */

:root {
    --detail-bg: #cdeee0; /* Görseldeki yeşilimsi mint */
    --detail-border: #1c3d5a;
    --detail-title: #1c3d5a;
    --detail-text: #244;
}



.product-detail-panel {
    background: #f5f5f5; /* görseldeki mint tonu */
    border: 1px solid #1c3d5a;
    border-radius: 14px;
    padding: 22px;
    height: 100%;
    overflow-y: auto;
    color: #223447;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    position: sticky;
    top: 100px;
    box-sizing: border-box;
}


    /* Üst başlık */
    .product-detail-panel h3 {
        color: #0F675D;
        font-size: 20px;
        font-weight: 700;
        margin: 0 0 14px 0;
        padding-bottom: 10px;
        border-bottom: 2px dashed rgba(28,61,90,0.25);
    }

    .product-detail-panel p {
        margin-bottom: 10px;
        color: #444;
        
    }

.first-row .product-detail-panel {
    background: #fafafa !important; /* sayfa uyumlu açık gri */
    border-color: #1c3d5a;
}

/* İçerik */
.product-detail-content {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
}


    /* Scroll bar görünümü (Chrome için) */
    .product-detail-content::-webkit-scrollbar {
        width: 8px;
    }

    .product-detail-content::-webkit-scrollbar-track {
        background: #e0e0e0;
        border-radius: 4px;
    }

    .product-detail-content::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
    }


/* ---------- 2. YATAY SATIR: KARTLAR ---------- */
.other-rows .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* ============================= */
/*         ÜRÜN KARTLARI        */
/* ============================= */
.product-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    padding: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}





    .product-card img {
        border-radius: 8px;
        margin-bottom: 12px;
        object-fit: cover;
        height: 160px;
        width: 100%;
    }

.product-info {
    font-size: 14px;
    color: #333;
}

.product-desc {
    font-size: 14px;
    color: #555;
}
.product-city {
    font-weight: bold;
    color: #d1a700; /* Şehir adı için sarımsı vurgulu renk */
    margin-top: 8px;
}



/* ============================= */
/*           SAYFALAMA          */
/* ============================= */
.pagination {
    display: flex; /* veya block */
    gap: 8px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

    .pagination button {
        padding: 6px 12px;
        margin: 0 4px;
        border: none;
        border-radius: 4px;
        background: #1c3d5a;
        color: #fff;
        cursor: pointer;
    }

    

        .pagination button.active {
            background-color: #ffbb00;
            color: black;
        }
/* ============================= */
/*         GİRİŞ YAP STİLİ       */
/* ============================= */

/* Kapsayıcı kutu (sol blok: Giriş Yap) */
.bottom-rows {
    display: flex;
    justify-content: center; /* ortalar */
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
    box-sizing: border-box;
}

.block.login-box {
    background-color: #fefefe;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 40px;
    max-width: 600px; /* 800 yerine 600px */
    width: 60%; /* yüzde genişlik ekledik */
    margin: 40px auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    font-family: 'Segoe UI', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}



    /* Başlık */
    .block.login-box h3 {
        font-size: 22px;
        font-weight: 600;
        margin-bottom: 16px;
        color: #1c3d5a;
    }


    /* Giriş alanları */
    .block.login-box input[type="email"],
    .block.login-box input[type="password"] {
        width: 100%;
        max-width: 100%;
        padding: 10px 14px;
        font-size: 15px;
        border-radius: 6px;
        border: 1px solid #ccc;
        background-color: #fff;
        box-shadow: none;
        transition: border-color 0.2s ease;
        box-sizing: border-box;
        margin-bottom: 14px; /* kutular arasında boşluk */
    }


    .block.login-box input:focus {
        border-color: #1c3d5a;
        outline: none;
    }

    .block.login-box button {
        width: 100%;
        padding: 10px;
        font-size: 15px;
        background-color: #107361;
        color: white;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

        .block.login-box button:hover {
            background-color: #0b5e4c;
        }


    /* Giriş butonu */
    .block.login-box button {
        width: 100%;
        max-width: 600px;
        padding: 12px;
        font-size: 15px;
        background-color: #107361;
        color: white;
        font-weight: 500;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        transition: background-color 0.3s ease;
        margin-top: 10px;
    }

        .block.login-box button:hover {
            background-color: #0e5d4a;
        }



/* Mobil uyumlu olsun diye */
@media (max-width: 768px) {
    .block.login-box {
        flex: 1 1 100%;
    }
}



.slogan-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 50px auto 60px;
    padding: 30px 40px;
    background-color: #f7f9fa;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    flex-wrap: wrap;
    gap: 40px;
    box-sizing: border-box;
}

.slogan-box {
    flex: 1;
    min-width: 300px;
}

    .slogan-box h2 {
        font-size: 30px;
        font-weight: 600;
        color: #1c3d5a;
        margin-bottom: 16px;
    }

.start-btn {
    padding: 12px 28px;
    font-size: 16px;
    background-color: #107361;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-weight: 500;
}

    .start-btn:hover {
        background-color: #0a5b49;
    }

.steps-box {
    flex: 1;
    min-width: 300px;
}

    .steps-box h3 {
        font-size: 22px;
        color: #1c3d5a;
        margin-bottom: 20px;
        font-weight: 600;
        text-align: center;
    }

.step-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.step-card {
    text-align: center;
    width: 100px;
}

    .step-card .circle {
        width: 42px;
        height: 42px;
        background: #1c3d5a;
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        margin: 0 auto 10px;
    }


/* Adım kutuları */
.steps-box {
    flex: 1;
    min-width: 280px;
}

    .steps-box h3 {
        font-size: 22px;
        color: #1c3d5a;
        margin-bottom: 20px;
    }

.step-list {
    display: flex;
    gap: 20px;
    justify-content: space-around;
    flex-wrap: wrap;
}

.step-card {
    text-align: center;
    width: 100px;
}

    .step-card .circle {
        width: 40px;
        height: 40px;
        background: #1c3d5a;
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        margin: 0 auto 8px;
    }
.register-form {
    background-color: #fff;
    width: 60%; /* 80% yerine daha dar */
    max-width: 600px; /* 900px yerine daha dar */
    padding: 40px 30px;
    margin: 40px auto;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    text-align: center;
    box-sizing: border-box;
    transition: all 0.3s ease;
}


    .register-form h2 {
        font-size: 24px;
        margin-bottom: 24px;
        color: #1c3d5a;
        font-weight: 600;
    }

    .register-form input[type="text"],
    .register-form input[type="email"],
    .register-form input[type="password"] {
        width: 100%;
        max-width: 100%;
        padding: 14px;
        margin-bottom: 16px;
        font-size: 15px;
        border: 1px solid #ccc;
        border-radius: 8px;
        box-sizing: border-box;
    }

    .register-form label.terms {
        display: flex;
        align-items: center;
        justify-content: start;
        font-size: 14px;
        color: #333;
        margin: 16px 0 24px;
        text-align: left;
    }

        .register-form label.terms input[type="checkbox"] {
            margin-right: 10px;
            accent-color: #107361;
        }

    .register-form button {
        width: 100%;
        padding: 14px;
        background-color: #107361;
        color: white;
        font-size: 16px;
        font-weight: bold;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: background 0.3s ease;
    }

        .register-form button:hover {
            background-color: #0c5a4d;
        }


    .register-form select {
        width: 100%;
        max-width: 100%;
        padding: 14px;
        margin-bottom: 16px;
        font-size: 15px;
        border: 1px solid #ccc;
        border-radius: 8px;
        box-sizing: border-box;
        background-color: #fff;
        cursor: pointer;
        appearance: none; /* tarayıcı varsayılan oku sadeleştirir */
    }



.terms-link {
    text-align: left;
    font-size: 13px;
    margin-top: -10px;
    margin-bottom: 20px;
}

    .terms-link a {
        color: #1c3d5a;
        text-decoration: underline;
    }



/* ============================= */
/*            FOOTER            */
/* ============================= */
.footer {
    background: #1c3d5a;
    color: white;
    text-align: center;
    padding: 16px 0;
    font-size: 14px;
    margin-top: 40px; /* form ile arasında boşluk */
    position: relative; /* sabit durmaması için */
}


/* Seçili ürün vurgusu */
.product-card.selected {
    outline: 2px solid #0F675D; /* sayfadaki yeşil */
    outline-offset: 2px;
}
/* Hover detay paneli için kapsayıcı konum */

/* Hover detay paneli (sağda yüzer, scroll bar'lı) */
.hover-detail {
    position: fixed; /* absolute yerine: sayfanın sağında sabitlensin */
    top: 96px; /* üstten boşluk */
    right: 24px; /* sağdan boşluk */
    width: 380px; /* profesyonel, orta genişlik */
    max-height: 70vh; /* ekranın %70'i kadar yükseklik */
    height: auto; /* içerik kadar uzasın */
    display: none; /* JS ile .is-visible olduğunda açılacak */
    z-index: 1000; /* her şeyin üstünde kalsın */
}

    .hover-detail.is-visible {
        display: block;
    }

.hover-detail__inner {
    height: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0,0,0,.12);
    overflow: hidden;
}

.hover-detail__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid #eef0f2;
}

    .hover-detail__header h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 700;
        color: #1c3d5a;
    }

.hover-detail__close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    background: #f3f4f6;
}

    .hover-detail__close:hover {
        background: #e5e7eb;
    }
.hover-detail__body {
    max-height: calc(70vh - 56px); /* başlık çıktıktan sonra kalan alan */
    padding: 12px 14px;
    overflow: auto;
}

#hoverImageWrap img {
    width: 100%;
    height: 200px; /* daha dengeli yükseklik */
    object-fit: cover;
    border-radius: 10px;
    display: block;
    margin-bottom: 10px;
}

.hover-desc {
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 8px;
    color: #374151;
}

.hover-city {
    font-size: 13px;
    color: #1c3d5a;
    background: #d1f5e0;
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
}
/* Scrollbar inceltme (Chrome/Edge) */
.hover-detail__body::-webkit-scrollbar {
    width: 8px;
}

.hover-detail__body::-webkit-scrollbar-thumb {
    background: #cfd8dc;
    border-radius: 8px;
}
/* Ürün kartı üstünde imleç pointer olmasın */
.first-cards .product-card,
.first-cards .product-card img,
.first-cards .product-card a {
    cursor: default !important; /* JS'in verdiği pointer'ı da ezer */
}
