/* Header Styles */
.top-bar {
    background-color: #000;
    text-align: center;
    padding: 8px 15px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-banner {
    background-color: #000;
    text-align: center;
    padding: 8px 15px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-text {
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.banner-text span {
    color: #fff;
}

.site-header {
    background: #fff;
    padding: 15px 0;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Mobile Header */
.mobile-header {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    color: #333;
    font-size: 24px;
}

/* Logo */
.site-branding {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 auto;
}

.site-logo {
    max-height: 85px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.sticky-nav .site-logo {
    max-height: 55px;
}

.site-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
}

/* Desktop Navigation */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
    list-style: none;
    justify-content: center;
}

.nav-menu li a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff4757;
    transition: width 0.3s ease;
}

.nav-menu li.current-menu-item a::after,
.nav-menu li a:hover::after,
body.single-product .nav-menu li:nth-child(2) a::after {
    width: 100%;
}

/* Header Icons */
.header-actions, .header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.account-link,
.cart-link,
.search-icon,
.user-icon,
.cart-icon {
    font-size: 18px;
    color: #333;
    text-decoration: none;
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.account-link:hover,
.cart-link:hover,
.search-icon:hover,
.user-icon:hover,
.cart-icon:hover {
    background-color: #f5f5f5;
    color: #000;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4757;
    color: #fff;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobil Kategori Panel */
.mobile-category-panel {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    z-index: 1001;
    transition: all 0.3s ease-in-out;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.mobile-category-panel.active {
    left: 0;
}

.mobile-category-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-category-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-category-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.mobile-category-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #333;
    cursor: pointer;
}

.mobile-category-content {
    flex: 1;
    overflow-y: auto;
}

.mobile-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-category-list li {
    border-bottom: 1px solid #eee;
}

.mobile-category-list li a {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.mobile-category-list li.new-tag a {
    color: #ff4b4b;
}

.mobile-category-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.auth-button {
    flex: 1;
    padding: 12px;
    text-align: center;
    border: 1px solid #333;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-button:hover {
    background: #333;
    color: #fff;
}

/* Announcement Bar */
.announcement-bar {
    background-color: #000;
    padding: 8px 0;
    overflow: hidden;
    color: #fff;
}

.announcement-text {
    white-space: nowrap;
    animation: scroll-left 20s linear infinite;
    display: flex;
    gap: 50px;
}

@keyframes scroll-left {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.announcement-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #fff;
    font-weight: 500;
}

.announcement-item .heart-icon {
    color: #ff4b4b;
}

/* Responsive Styles */
@media (max-width: 1400px) {
    .header-container {
        max-width: 1200px;
    }
}

@media (max-width: 1200px) {
    .header-container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .header-container {
        max-width: 720px;
    }
    
    .site-logo {
        max-height: 70px;
    }

    .sticky-nav .site-logo {
        max-height: 45px;
    }

    .nav-menu {
        gap: 15px;
    }

    .nav-menu li a {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }

    .header-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 15px;
        gap: 10px;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        font-size: 20px;
        order: 1;
    }

    .site-branding {
        order: 2;
        flex: 1;
        justify-content: center;
        margin: 0;
    }

    .site-logo {
        max-height: 40px;
        width: auto;
    }

    .header-actions {
        order: 3;
        margin-left: auto;
        gap: 10px;
    }

    .main-navigation {
        display: none;
    }

    .header-right {
        display: none;
    }

    .account-link,
    .cart-link {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .header-container {
        padding: 5px 10px;
    }

    .mobile-menu-toggle {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }

    .site-logo {
        max-height: 45px;
    }
}

/* Sticky Navigation */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.sticky-nav.active {
    transform: translateY(0);
}

.sticky-nav .header-container {
    padding: 8px 15px;
}

.sticky-nav .site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sticky-nav .site-logo {
    max-height: 55px;
}

.sticky-nav .site-title {
    font-size: 16px;
}

/* Responsive Styles için eklemeler */
@media (max-width: 768px) {
    .sticky-nav {
        display: none;
    }
}

.site-header .site-logo,
.sticky-nav .site-logo {
    max-width: 500px;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .site-header .site-logo,
    .sticky-nav .site-logo {
        max-width: 300px;
    }
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-screen.loaded {
    opacity: 0;
    pointer-events: none;
}

.loading-logo {
    width: 100px;
    height: 100px;
    animation: pulse 1.5s ease-in-out infinite;
}

.loading-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
} 