/* Header Custom Styles - Toqba Tasarımı */

/* Üst kırmızı banner */
.custom-top-banner {
    background: #154070;
    color: white;
    text-align: center;
    padding: 8px 0;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1000;
}

/* İkinci modern banner */
.custom-info-banner {
    background: white;
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 0;
    font-size: 13px;
}

.custom-info-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-support-info {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 13px;
}

.custom-support-info .phone-icon {
    margin-right: 8px;
    color: #154070;
    font-size: 14px;
}

.custom-support-info .phone-number {
    font-weight: 700;
    color: #154070 !important;
    text-decoration: none;
    margin: 0 5px;
}

.custom-support-info .phone-number:hover {
    color: #0f2d52 !important;
}

.custom-top-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.custom-top-links a {
    color: #999;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
}

.custom-top-links a:hover {
    color: #154070;
}

.custom-top-links .separator {
    color: #ddd;
    font-size: 12px;
    font-weight: 300;
}

/* Ana header bölümü */
.custom-main-header {
    background: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.custom-main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.custom-logo {
    flex-shrink: 0;
}

.custom-logo img {
    height: 60px;
    width: auto;
}

/* Arama kutusu */
.custom-search-container {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
}

.custom-search-form {
    display: flex;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.custom-search-form:focus-within {
    border-color: #154070;
}

.custom-search-input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    outline: none;
    background: white;
}

.custom-search-input::placeholder {
    color: #aaa;
    font-style: italic;
}

.custom-search-btn {
    background: #154070;
    border: none;
    color: white;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-search-btn:hover {
    background: #0f2d52;
}

.custom-search-btn i {
    font-size: 16px;
}

/* Sağ taraf menü */
.custom-right-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* User Button */
.custom-user-btn {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    gap: 8px;
}

.custom-user-btn:hover {
    border-color: #154070;
    color: #154070;
}

.custom-user-btn i {
    font-size: 16px;
}

.custom-user-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.custom-user-text .main-text {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.custom-user-text .sub-text {
    font-size: 11px;
    font-weight: 400;
    color: #999;
    margin-top: 1px;
}

.custom-user-btn:hover .custom-user-text .main-text {
    color: #154070;
}

/* Favorites Button */
.custom-favorites-btn {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    gap: 8px;
}

.custom-favorites-btn:hover {
    border-color: #154070;
    color: #154070;
}

.custom-favorites-btn i {
    font-size: 16px;
    color: #154070;
}

/* Cart Button */
.custom-cart-btn {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background: #154070;
    border-radius: 6px;
    color: white !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    gap: 8px;
    position: relative;
    border: 1px solid #154070;
}

.custom-cart-btn:hover {
    background: #0f2d52;
    border-color: #0f2d52;
    color: white !important;
}

.custom-cart-btn i {
    font-size: 16px;
}

.cart-badge {
    background: white;
    color: #666;
    border-radius: 12px;
    font-size: 11px;
    padding: 2px 8px;
    font-weight: 600;
    margin-left: 5px;
    min-width: 20px;
    text-align: center;
}

/* Alt navigasyon menüsü */
.custom-nav-menu {
    background: white;
    border-top: 1px solid #e0e0e0;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.custom-nav-menu .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.custom-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.custom-nav-item {
    position: relative;
}

.custom-nav-link {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.custom-nav-link:hover,
.custom-nav-item.active .custom-nav-link {
    color: #154070;
    border-bottom-color: #154070;
}

.custom-nav-item.featured .custom-nav-link {
    background: #154070;
    color: white;
    border-radius: 25px;
    margin: 5px;
    padding: 12px 25px;
    font-weight: 600;
}

.custom-nav-item.featured .custom-nav-link:hover {
    background: #0f2d52;
    border-bottom-color: transparent;
}

/* Hareketli İndirim Butonu */
.custom-nav-item.hot-deals .custom-nav-link {
    background: linear-gradient(45deg, #ff6b35, #f7931e, #ff6b35, #f7931e);
    background-size: 400% 400%;
    color: white;
    border-radius: 25px;
    margin: 9px;
    padding: 6px 9px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    animation: gradientShift 3s ease infinite;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.custom-nav-item.hot-deals .custom-nav-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    border-bottom-color: transparent;
    animation: gradientShift 1.5s ease infinite;
    color: white !important;
}

.custom-nav-item.hot-deals .fire-icon {
    animation: fireFlicker 2s ease-in-out infinite;
    font-size: 14px;
    color: #fff;
    flex-shrink: 0;
}

.custom-nav-item.hot-deals .discount-badge {
    background: rgba(255, 255, 255, 0.9);
    color: #ff6b35;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 8px;
    animation: badgeBounce 3s ease-in-out infinite;
    flex-shrink: 0;
    display: inline-block;
    line-height: 1;
}

/* Keyframe Animasyonları */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.02); }
}

@keyframes fireFlicker {
    0%, 100% { transform: rotate(-2deg) scale(1); }
    25% { transform: rotate(2deg) scale(1.05); }
    50% { transform: rotate(-1deg) scale(0.98); }
    75% { transform: rotate(1deg) scale(1.02); }
}

@keyframes badgeBounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-2px); }
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        max-height: 100px;
    }
}

/* Mobil Hamburger Menu */
.custom-mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: #333;
    cursor: pointer;
    padding: 8px;
    align-items: center;
    gap: 8px;
}

.custom-mobile-menu-toggle span {
    font-size: 16px;
    font-weight: 700;
}

/* Responsive Tasarım */
@media (max-width: 1200px) {
    .custom-main-header .container {
        gap: 20px;
    }
    
    .custom-search-container {
        max-width: 450px;
    }
}

@media (max-width: 992px) {
    .custom-top-links {
        gap: 15px;
    }
    
    .custom-top-links a {
        font-size: 11px;
    }
    
    .custom-right-menu {
        gap: 20px;
    }
    
    .custom-nav-list {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .custom-nav-link {
        padding: 12px 15px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .custom-mobile-menu-toggle {
        display: flex;
    }
    
    /* Mobilde nav menü - soldan açılan sidebar */
    .custom-nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 320px;
        height: 100vh;
        background: white;
        border-right: 1px solid #e0e0e0;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }
    
    .custom-nav-menu.active {
        transform: translateX(0);
    }
    
    /* Backdrop overlay */
    .custom-nav-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .custom-nav-backdrop.active {
        opacity: 1;
        visibility: visible;
    }

    /* Mobil Menu Header */
    .custom-mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 20px;
        border-bottom: 1px solid #e0e0e0;
        background: white;
        min-height: 60px;
        flex-shrink: 0;
    }

    .custom-mobile-menu-close {
        background: none;
        border: none;
        font-size: 20px;
        color: #333;
        cursor: pointer;
        padding: 5px;
        transition: all 0.3s ease;
    }

    .custom-mobile-menu-close:hover {
        color: #154070;
    }

    .custom-mobile-header-center {
        flex: 1;
        text-align: center;
        font-size: 14px;
        font-weight: 600;
        color: #333;
        margin: 0 15px;
    }

    .custom-mobile-header-center .auth-divider {
        color: #999;
        margin: 0 5px;
    }

    .custom-mobile-cart-icon {
        background: none;
        border: none;
        color: #333;
        cursor: pointer;
        padding: 5px;
        position: relative;
        font-size: 20px;
        transition: all 0.3s ease;
    }

    .custom-mobile-cart-icon:hover {
        color: #154070;
    }

    .custom-mobile-cart-icon .cart-badge {
        position: absolute;
        top: -5px;
        right: -8px;
        background: #154070;
        color: white;
        border-radius: 50%;
        font-size: 11px;
        padding: 2px 6px;
        min-width: 18px;
        text-align: center;
        font-weight: 600;
        line-height: 1.2;
    }

    /* Mobil Menu Items */
    .custom-mobile-menu-items {
        flex: 1;
        padding: 0;
        overflow-y: auto;
    }
    
    .custom-mobile-menu-items .container {
        padding: 0;
        height: auto;
        max-width: none;
        margin: 0;
    }
    
    .custom-nav-list {
        flex-direction: column;
        width: 100%;
        padding: 0;
        margin: 0;
        height: 100%;
    }
    
    .custom-nav-item {
        /* Çizgileri kaldır */
        border-bottom: none;
    }
    
    .custom-nav-link {
        padding: 18px 25px;
        text-align: left;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: none !important;
        font-size: 18px;
        font-weight: 600;
        color: #333;
        transition: all 0.3s ease;
        position: relative;
    }
    
    .custom-nav-link:hover {
        background: #f8f8f8;
        color: #333;
    }

    .custom-nav-link.has-arrow::after {
        content: '›';
        font-size: 20px;
        color: #999;
        font-weight: normal;
        margin-left: auto;
    }
    
    .custom-nav-item.hot-deals .custom-nav-link {
        justify-content: flex-start;
        margin: 15px 25px;
        padding: 15px 25px;
        font-size: 16px;
        border-radius: 25px;
    }

    .custom-nav-item.hot-deals .custom-nav-link:hover {
        margin-left: 25px;
        padding-left: 30px;
    }

    .custom-top-banner {
        font-size: 12px;
        padding: 6px 0;
    }
    
    .custom-info-banner {
        padding: 8px 0;
    }
    
    .custom-info-banner .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    /* Mobilde üst linkleri ve çalışma saatlerini gizle */
    .custom-top-links {
        display: none;
    }
    
    .custom-support-info span {
        display: none;
    }
    
    .custom-main-header {
        padding: 10px 0;
    }
    
    .custom-main-header .container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 15px;
    }
    
    /* İlk satır: menü toggle, logo ve arama ikonu */
    .mobile-header-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    
    .custom-mobile-menu-toggle {
        display: flex;
        order: 1;
        margin: 0;
    }
    
    .custom-logo {
        order: 2;
        margin: 0 auto;
        flex: 1;
        text-align: center;
    }
    
    .mobile-search-icon {
        order: 3;
        display: flex;
        background: none;
        border: none;
        color: #154070;
        font-size: 20px;
        cursor: pointer;
        padding: 8px;
        transition: all 0.3s ease;
    }
    
    .mobile-search-icon:hover {
        color: #0f2d52;
    }
    
    .custom-search-container {
        order: 4;
        width: 100%;
        margin: 0;
        display: none; /* Başlangıçta gizli */
        overflow: hidden;
        transition: all 0.3s ease;
    }
    
    .custom-search-container.active {
        display: block;
        animation: slideDown 0.3s ease;
        margin-top: 15px;
    }
    
    .custom-right-menu {
        order: 5;
        width: 100%;
        margin: 0;
        margin-top: 15px;
    }
    
    /* Mobilde arama ve butonları bir alt satıra al */
    .custom-main-header .container {
        flex-wrap: wrap;
    }
    
    .custom-search-container {
        width: 100%;
        max-width: none;
    }
    
    .custom-right-menu {
        justify-content: center;
        width: 100%;
        gap: 15px;
    }
    
    .custom-user-btn,
    .custom-favorites-btn,
    .custom-cart-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .custom-user-btn i,
    .custom-favorites-btn i,
    .custom-cart-btn i {
        font-size: 14px;
    }
    
    .custom-user-text .main-text {
        font-size: 12px;
    }
    
    .custom-user-text .sub-text {
        font-size: 10px;
    }
    
    .cart-badge {
        font-size: 10px;
        padding: 1px 6px;
        margin-left: 3px;
    }
    
    .custom-search-container {
        width: 100%;
        max-width: none;
        margin: 0;
    }
    
    .custom-nav-list {
        gap: 0;
    }
    
    
    .custom-nav-item.featured .custom-nav-link {
        margin: 3px;
        padding: 10px 20px;
    }
    
    .custom-nav-item.hot-deals .custom-nav-link {
        margin: 6px;
        padding: 4px 6px;
        font-size: 11px;
    }
    
    .custom-nav-item.hot-deals .discount-badge {
        font-size: 9px;
        padding: 1px 4px;
    }
}

@media (max-width: 576px) {
    .custom-top-banner {
        font-size: 11px;
        padding: 5px 0;
    }
    
    .custom-search-form {
        border-radius: 20px;
    }
    
    .custom-search-input {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .custom-search-btn {
        padding: 10px 15px;
    }
    
    .custom-right-menu {
        gap: 15px;
    }
    
    .custom-menu-item {
        font-size: 11px;
    }
    
    .custom-menu-item i {
        font-size: 18px;
    }
    
    .custom-nav-list {
        flex-direction: column;
        width: 100%;
    }
    
    .custom-nav-link {
        text-align: center;
        padding: 12px;
    }
    
    .custom-nav-item.featured {
        order: -1;
    }
}


/* Footer Custom Styles */
.footer {
    background-color: white !important;
    border-top: 1px solid #ddd;
}

/* Additional Custom Styling */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Font Awesome icon fixes */
.fa-phone:before {
    content: "\f095";
}

.fa-user:before {
    content: "\f007";
}

.fa-heart:before {
    content: "\f004";
}

.fa-shopping-cart:before {
    content: "\f07a";
}

.fa-search:before {
    content: "\f002";
}
