/* 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;
}

.sticky-header-wrapper {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1020;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: visible;
    transition: all 0.3s ease;
}

/* Scrolled State - Header küçülsün */
.sticky-header-wrapper.scrolled .site-header {
    padding: 5px 0;
}

.sticky-header-wrapper.scrolled .site-logo {
    max-height: 40px;
}

.sticky-header-wrapper.scrolled .category-bar-container {
    min-height: 36px;
}

.sticky-header-wrapper.scrolled .category-bar-item {
    padding: 8px 14px;
    font-size: 13px;
}

.site-header {
    background: #fff;
    padding: 8px 0;
    position: relative;
    /* box-shadow: 0 2px 5px rgba(0,0,0,0.05); */
    z-index: 100;
}

.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: 55px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .site-logo {
        max-height: 45px;
    }
}

@media (max-width: 480px) {
    .site-logo {
        max-height: 38px;
    }
}

.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: 10000;
    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);
    }
}

/* Header Category Bar */
.header-category-bar {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 0;
    overflow: visible;
    -webkit-overflow-scrolling: touch;
    /* box-shadow: 0 2px 4px rgba(0,0,0,0.04); */
}

.header-category-bar::-webkit-scrollbar {
    display: none;
}

.category-bar-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: stretch; /* Changed */
    justify-content: center;
    gap: 0;
    min-height: 42px; /* Increased height */
    overflow: visible;
}

.category-bar-item-wrapper {
    position: relative;
    display: flex;
}

.category-bar-item {
    display: flex;
    align-items: center;
    gap: 8px; /* Increased gap */
    padding: 10px 18px; /* Increased padding */
    color: #333; /* Darker color */
    text-decoration: none;
    font-size: 14px; /* Increased font size */
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent; /* Thicker border */
    position: relative;
}

.category-bar-item-wrapper:hover > .category-bar-item {
    color: #ff4757;
    background: #fafafa;
}

.category-bar-item-wrapper.current-menu-item > .category-bar-item {
    color: #ff4757;
    border-bottom-color: #ff4757;
    font-weight: 600;
}

.category-bar-item i {
    font-size: 14px; /* Increased icon size */
    opacity: 0.9;
}

.category-bar-item span {
    font-family: 'Poppins', sans-serif;
}

/* Category Dropdown */
.category-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    min-width: 500px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 1000;
    border-radius: 0 0 8px 8px;
    border-top: 1px solid #eee;
    animation: fadeIn 0.3s ease-out;
}

/* Sağdaki kategoriler için dropdown'u sola kaydır */
.category-bar-item-wrapper:last-child .category-dropdown,
.category-bar-item-wrapper:nth-last-child(2) .category-dropdown {
    left: auto;
    right: 0;
    transform: none;
}

/* Soldaki kategoriler için dropdown'u sağa kaydır */
.category-bar-item-wrapper:first-child .category-dropdown,
.category-bar-item-wrapper:nth-child(2) .category-dropdown {
    left: 0;
    right: auto;
    transform: none;
}

.category-bar-item-wrapper:hover .category-dropdown {
    display: block;
}

.dropdown-products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px;
}

.dropdown-product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.dropdown-product-item:hover {
    background-color: #f8f9fa;
}

.dropdown-product-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.dropdown-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.dropdown-product-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px;
}

.dropdown-product-price {
    font-size: 13px;
    font-weight: 500;
    color: #ff4757;
}

.dropdown-product-variations {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
    display: block;
}

.view-all-link {
    display: block;
    padding: 12px;
    text-align: center;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
    color: #333;
    font-weight: 600;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    border-radius: 0 0 8px 8px;
}

.view-all-link:hover {
    background-color: #ff4757;
    color: #fff;
}

.view-all-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.view-all-link:hover i {
    transform: translateX(3px);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Menu Divider */
.mobile-menu-divider {
    padding: 12px 20px 6px !important;
    border-bottom: none !important;
}

.mobile-menu-divider span {
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .header-category-bar {
        padding: 0;
    }

    .category-bar-container {
        justify-content: flex-start;
        padding: 0 10px;
        gap: 0;
    }

    .category-bar-item {
        padding: 8px 12px;
        font-size: 12px;
    }

    .category-dropdown {
        display: none !important; /* Hide on mobile */
    }
} 