:root {
    --text-color: #1d1d1f;
    --bg-color: #ffffff;
    --card-bg: #f5f5f7;
    --accent: #0071e3;
}

body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--bg-color); color: var(--text-color); margin: 0; }
.container { max-width: 1100px; margin: 0 auto; padding: 20px; }

/* Header */
.site-header { padding: 20px 0; border-bottom: 1px solid #d2d2d7; }
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.logo { font-weight: 600; font-size: 25px; text-decoration: none; color: var(--text-color); display: flex; align-items: center; }

/* Hero Alanı */
.hero { text-align: center; padding: 30px 20px; }
.hero h1 { font-size: 2.2rem; margin-bottom: 5px; color: var(--text-color); }
.hero p { color: #6e6e73; font-size: 1.1rem; margin: 0; }

/* Kategori Menüsü */
.kategori-menusu {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-top: 20px;
    padding-bottom: 10px;
    scrollbar-width: none;
}
.kategori-menusu::-webkit-scrollbar {
    display: none;
}
.kategori-btn {
    background: var(--card-bg);
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s, color 0.3s;
}
.kategori-btn:hover {
    background: #e5e5ea;
}
.kategori-btn.aktif {
    background: var(--text-color);
    color: var(--bg-color);
}

/* Alt Kategori Menü Stili */
.alt-kategori-stili {
    margin-top: 10px !important;
    padding-left: 10px;
    border-left: 2px solid #d2d2d7;
}
.alt-kategori-stili .kategori-btn {
    background: #ffffff;
    border: 1px solid #d2d2d7;
    font-size: 13px;
    padding: 6px 14px;
}
.alt-kategori-stili .kategori-btn.aktif {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

/* Grid */
.grid-layout { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
@media (min-width: 1024px) { .grid-layout { grid-template-columns: repeat(4, 1fr); } }

/* Kartlar */
.urun-karti { background: var(--card-bg); border-radius: 20px; padding: 20px; cursor: pointer; transition: transform 0.3s ease; display: flex; flex-direction: column; }
.urun-karti:hover { transform: translateY(-5px); }
.urun-resim-tek { width: 100%; aspect-ratio: 1/1; object-fit: contain; }
.kategori-etiket { font-size: 11px; color: #86868b; text-transform: uppercase; margin: 10px 0 5px 0; }
.urun-isim { font-size: 15px; font-weight: 600; margin: 0; min-height: 2.4em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* Modal (Pop-up) Yapısı */
.modal { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.5); 
    z-index: 1000; 
    backdrop-filter: blur(8px); 
}
.modal-content { 
    background: #fff; 
    width: 90%; 
    max-width: 500px; 
    margin: 5vh auto; 
    padding: 24px; 
    border-radius: 24px; 
    position: relative; 
    max-height: 90vh; 
    overflow-y: auto; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.kapat-btn { 
    background: #f5f5f7; 
    border: none; 
    font-size: 20px; 
    cursor: pointer; 
    position: absolute; 
    right: 15px; 
    top: 15px; 
    width: 32px; 
    height: 32px; 
    border-radius: 50%; 
    z-index: 10; 
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.kapat-btn:hover {
    background: #e5e5ea;
}

/* Modal İçi Galeri ve Görseller */
.gorsel-galerisi { 
    display: flex !important; 
    overflow-x: auto !important; 
    scroll-snap-type: x mandatory !important; 
    width: 100% !important; 
    height: 350px !important; 
    margin-bottom: 10px !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: smooth;
    border-radius: 12px;
}
.gorsel-galerisi::-webkit-scrollbar {
    display: none !important;
}
.modal-gorsel-kucuk { 
    width: 100% !important; 
    flex: 0 0 100% !important; 
    height: 100% !important;    
    object-fit: contain !important; 
    scroll-snap-align: start !important; 
    background: #f9f9f9;
}

/* Thumbnail */
.thumbnail-container { 
    display: flex; 
    justify-content: center; 
    gap: 8px; 
    margin-bottom: 20px; 
    overflow-x: auto; 
    padding: 5px; 
}
.thumbnail-img { 
    width: 50px; 
    height: 50px; 
    object-fit: cover; 
    border-radius: 8px; 
    cursor: pointer; 
    opacity: 0.5; 
    border: 2px solid transparent; 
    transition: opacity 0.2s, border-color 0.2s;
}
.thumbnail-img.aktif-thumbnail { 
    opacity: 1; 
    border-color: var(--accent); 
}

/* Modal Metin ve Buton */
.modal-metin { display: flex; flex-direction: column; }
.satin-al-btn { 
    display: block; 
    width: 100%; 
    padding: 15px; 
    background-color: var(--accent); 
    color: white; 
    text-align: center; 
    border-radius: 12px; 
    text-decoration: none; 
    font-weight: 600; 
    margin-top: 15px; 
    transition: background 0.3s;
}
.satin-al-btn:hover {
    background-color: #005bb5;
}

/* Trendyol Tarzı Açılır Kategori Menüsü */
.dropdown-container {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    position: relative;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
}
.dropdown-container::-webkit-scrollbar {
    display: none;
}
.dropdown-wrapper {
    position: relative;
    display: inline-block;
}
.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #ffffff;
    min-width: 240px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 16px;
    padding: 15px;
    z-index: 100;
    border: 1px solid #d2d2d7;
    animation: fadeIn 0.2s ease;
}
.dropdown-wrapper.acik .dropdown-content {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
.dropdown-grup {
    margin-bottom: 12px;
}
.dropdown-grup:last-child {
    margin-bottom: 0;
}
.dropdown-marka-baslik {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-color);
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    background: #f5f5f7;
    transition: background 0.2s;
}
.dropdown-marka-baslik:hover {
    background: #e5e5ea;
}
.dropdown-model-listesi {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    padding-left: 5px;
}
.dropdown-model-item {
    font-size: 12px;
    background: #ffffff;
    border: 1px solid #d2d2d7;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    color: #48484a;
    transition: all 0.2s;
}
.dropdown-model-item:hover {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

/* Arama Kutusu Tasarımı */
.search-container {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
}
.search-box {
    display: flex;
    align-items: center;
    background: var(--card-bg, #ffffff);
    border-radius: 30px;
    padding: 5px 5px 5px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.search-box:focus-within {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border-color: var(--accent, #007aff);
}
.search-icon {
    width: 20px;
    height: 20px;
    color: #888;
    margin-right: 10px;
    flex-shrink: 0;
}
.search-box input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text-color, #333);
    width: 100%;
}
.search-btn {
    background: var(--accent, #007aff);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}
.search-btn:hover {
    background: #005bb5;
}

/* Footer ve Sosyal Medya Alanı */
.site-footer {
    background-color: var(--card-bg, #f5f5f7);
    border-top: 1px solid #d2d2d7;
    padding: 30px 20px;
    margin-top: 50px;
}
.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #6e6e73;
}
.social-links {
    display: flex;
    gap: 12px;
}
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #ffffff;
    border: 1px solid #d2d2d7;
    border-radius: 50%;
    color: var(--text-color, #1d1d1f);
    transition: all 0.3s ease;
}
.social-icon:hover {
    background: var(--accent, #0071e3);
    color: #ffffff;
    border-color: var(--accent, #0071e3);
    transform: translateY(-3px);
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 12px;
    }
    .nav-links {
        gap: 15px !important;
        font-size: 0.95rem;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-logo {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .modal-content { width: 100%; height: 100%; margin: 0; border-radius: 0; padding: 15px; }
    .gorsel-galerisi { margin-top: 30px; }
    .satin-al-btn { position: sticky; bottom: 0; }
    .search-box { padding: 4px 4px 4px 12px; }
    .search-btn { padding: 8px 16px; font-size: 0.9rem; }
}
