/* --- HEADER, LOGO VE NAVİGASYON --- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2.5rem;
    background-color: var(--white-color);
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px;
}
.main-header .logo img {
    max-height: 50px;
    width: auto;
    display: block;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.header-right a { text-decoration: none; color: var(--text-color); font-size: 1.2rem; }
.cart-icon { position: relative; }
.cart-count {
    position: absolute; top: -8px; right: -12px; background-color: var(--secondary-color);
    color: white; border-radius: 50%; width: 20px; height: 20px; font-size: 0.75rem;
    display: flex; align-items: center; justify-content: center; font-weight: bold;
}
.main-nav { display: block; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2.5rem; }
.main-nav a { text-decoration: none; color: var(--text-color); padding-bottom: 5px; font-weight: 500; position: relative; }
.main-nav a:after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
    background-color: var(--secondary-color); transition: width 0.4s ease;
}
.main-nav a:hover:after, .main-nav a.active-link:after { width: 100%; }
.main-nav a.active-link { color: var(--secondary-color); }
.menu-toggle { display: none; }

/* --- HEADER MOBİL UYUMLULUK --- */
@media (max-width: 1024px) {
    .main-nav {
        display: none; position: absolute; top: 80px; left: 0; width: 100%;
        background-color: rgba(255, 255, 255, 0.98); backdrop-filter: blur(5px);
        flex-direction: column; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    .main-nav.active { display: flex; }
    .main-nav ul { flex-direction: column; padding: 1rem 0; width: 100%; }
    .main-nav ul li { padding: 1rem 0; width: 100%; border-bottom: 1px solid var(--border-color); }
    .main-nav ul li:last-child { border-bottom: none; }
    .menu-toggle {
        display: flex; flex-direction: column; justify-content: space-around;
        width: 30px; height: 22px; background: transparent; border: none;
        cursor: pointer; padding: 0; z-index: 1001;
    }
    .menu-toggle span { display: block; width: 30px; height: 3px; background-color: var(--text-color); border-radius: 10px; transition: all 0.3s ease-in-out; }
    .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(7px, 7px); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }
}