/* =====================================================
   HEADER - SEPET
   ===================================================== */

/* SEPET WRAPPER */
.header-cart-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

/* SEPET BAĞLANTISI */
.cart-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 10px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: linear-gradient(135deg, rgba(255, 106, 0, 0.08) 0%, rgba(255, 106, 0, 0.04) 100%);
    border: 2px solid rgba(255, 106, 0, 0.2);
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 3px 12px rgba(255, 106, 0, 0.1);
    cursor: pointer;
}

.cart-link:hover {
    background: linear-gradient(135deg, rgba(255, 106, 0, 0.15) 0%, rgba(255, 106, 0, 0.08) 100%);
    border-color: var(--orange);
    box-shadow: 0 8px 24px rgba(255, 106, 0, 0.25);
    text-decoration: none;
    transform: translateY(-3px);
    color: var(--orange);
}

.cart-icon {
    font-size: 18px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-link:hover .cart-icon {
    transform: scale(1.2) rotate(12deg);
    animation: cartBounce 0.5s ease;
}

@keyframes cartBounce {
    0% { transform: scale(1.2) rotate(12deg) translateX(0); }
    50% { transform: scale(1.25) rotate(-8deg) translateX(2px); }
    100% { transform: scale(1.2) rotate(12deg) translateX(0); }
}

.cart-text {
    font-weight: 800;
    font-size: 13px;
    color: #333;
    white-space: nowrap;
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
}

.cart-text small {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    display: block;
}

.cart-text strong {
    font-size: 13px;
    color: var(--orange);
    display: block;
}

.cart-link:hover .cart-text {
    color: var(--orange);
}

.cart-link:hover .cart-text strong {
    color: var(--orange);
}

/* SEPET BADGE - ÜRÜN SAYISI */
.cart-badge {
    position: absolute;
    top: -10px;
    right: -8px;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    color: white;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    box-shadow: 0 4px 14px rgba(255, 106, 0, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.2);
    animation: badgePulse 2.5s infinite;
    border: 2px solid white;
    letter-spacing: 0.5px;
    min-width: 26px;
    min-height: 26px;
    text-align: center;
    line-height: 1;
}

.cart-badge.updated {
    animation: badgeBounce 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes badgePulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 4px 14px rgba(255, 106, 0, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.2);
    }
    50% { 
        transform: scale(1.15);
        box-shadow: 0 6px 20px rgba(255, 106, 0, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.3);
    }
}

@keyframes badgeBounce {
    0% { transform: scale(0.8) rotate(-10deg); opacity: 0.5; }
    50% { transform: scale(1.25) rotate(10deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* TELEFON BÖLÜMÜ */
.header-phone-section {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-phone-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 106, 0, 0.08);
    border: 1.5px solid rgba(255, 106, 0, 0.2);
    white-space: nowrap;
}

.header-phone-link:hover {
    background: rgba(255, 106, 0, 0.15);
    border-color: var(--orange);
    color: var(--orange);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.15);
}

.header-phone-link i {
    font-size: 14px;
}

.phone-number {
    display: inline-block;
    white-space: nowrap;
}

/* SOSYAL MEDYA BÖLÜMÜ */
.header-social-section {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
    text-decoration: none;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: inherit;
    transition: left 0.3s ease;
    z-index: -1;
}

.social-icon.whatsapp {
    color: #25D366;
    background: rgba(37, 211, 102, 0.08);
    border-color: rgba(37, 211, 102, 0.2);
}

.social-icon.whatsapp:hover {
    background: #25D366;
    color: white;
    border-color: #25D366;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
}

.social-icon.instagram {
    background: var(--ig-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border: 2px solid rgba(255, 106, 0, 0.2);
    position: relative;
}

.social-icon.instagram::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--ig-gradient);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.1;
}

.social-icon.instagram:hover {
    background: var(--ig-gradient);
    -webkit-background-clip: unset;
    -webkit-text-fill-color: white;
    background-clip: unset;
    color: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(224, 89, 170, 0.3);
    border-color: transparent;
}

/* MOBİL - HEADER DÜZENI */
@media (max-width: 1200px) {
    /* Ekrana sığmadığında alt satıra inebilir */
    .header-right-section {
        flex-wrap: wrap;
        gap: 8px;
    }
}

@media (max-width: 992px) {
    .cart-link {
        padding: 7px 13px;
        font-size: 12px;
        gap: 8px;
    }

    .cart-icon {
        font-size: 16px;
    }

    .cart-badge {
        width: 24px;
        height: 24px;
        font-size: 10px;
        top: -8px;
        right: -6px;
    }

    .header-phone-link {
        padding: 7px 12px;
        font-size: 12px;
    }

    .header-phone-link i {
        font-size: 13px;
    }

    .social-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .cart-link {
        padding: 6px 11px;
        font-size: 11px;
        gap: 6px;
        flex-wrap: wrap;
    }

    .cart-icon {
        font-size: 15px;
    }

    .cart-text {
        display: none;
    }

    .cart-badge {
        width: 22px;
        height: 22px;
        font-size: 9px;
        top: -7px;
        right: -5px;
    }

    .header-phone-link {
        padding: 6px 10px;
        font-size: 11px;
    }

    .header-phone-link i {
        font-size: 12px;
    }

    .phone-number {
        display: none;
    }

    .social-icon {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .header-phone-section,
    .header-social-section {
        gap: 4px;
    }
}

@media (max-width: 640px) {
    .cart-link {
        padding: 6px 10px;
        font-size: 10px;
        gap: 5px;
    }

    .cart-icon {
        font-size: 14px;
    }

    .cart-text {
        display: none;
    }

    .cart-badge {
        width: 21px;
        height: 21px;
        font-size: 8px;
        top: -6px;
        right: -4px;
    }

    .header-phone-link {
        padding: 5px 8px;
        font-size: 10px;
    }

    .header-phone-link i {
        font-size: 11px;
    }

    .social-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .cart-link {
        padding: 5px 8px;
        font-size: 9px;
        gap: 4px;
    }

    .cart-icon {
        font-size: 13px;
    }

    .cart-badge {
        width: 20px;
        height: 20px;
        font-size: 7px;
        top: -5px;
        right: -3px;
    }

    .header-phone-link {
        padding: 4px 6px;
        font-size: 9px;
    }

    .header-phone-link i {
        font-size: 10px;
    }

    .social-icon {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }
}
}

@media (max-width: 480px) {
    .cart-link {
        padding: 5px 9px;
        font-size: 10px;
        gap: 4px;
    }

    .cart-icon {
        font-size: 13px;
    }

    .cart-text {
        display: none;
    }

    .cart-badge {
        width: 20px;
        height: 20px;
        font-size: 7px;
        top: -5px;
        right: -3px;
    }
}
