/* ============================================
   HEADER STYLES
   Premium Sticky Header
   ============================================ */

.bp-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: var(--bp-transition);
}

/* WordPress Admin Bar Fix */
body.admin-bar .bp-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .bp-header {
        top: 46px;
    }
}

.bp-header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.bp-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 30px;
}

/* Logo */
.bp-logo-wrap {
    flex-shrink: 0;
}

.bp-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.bp-logo-icon {
    font-size: 32px;
}

.bp-logo-text {
    font-family: var(--bp-font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--bp-dark);
}

.bp-logo-img,
.bp-logo-wrap img {
    height: 50px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

/* Custom Logo from WordPress */
.bp-logo-link.custom-logo-link {
    display: flex;
    align-items: center;
}

.bp-logo-link.custom-logo-link img {
    height: 50px;
    width: auto;
    max-width: 180px;
}

/* Navigation */
.bp-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.bp-nav-menu {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bp-nav-item {
    margin: 0;
    padding: 0;
}

.bp-nav-link,
.bp-nav-menu > li > a {
    display: block;
    padding: 12px 20px;
    font-family: var(--bp-font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--bp-dark);
    text-decoration: none;
    border-radius: var(--bp-radius-full);
    transition: var(--bp-transition);
}

.bp-nav-link:hover,
.bp-nav-menu > li > a:hover,
.bp-nav-menu > li.current-menu-item > a,
.bp-nav-menu > li.current_page_item > a {
    background: var(--bp-light);
    color: var(--bp-primary);
}

/* Header Actions */
.bp-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.bp-cart {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bp-light);
    border-radius: var(--bp-radius-full);
    font-size: 20px;
    text-decoration: none;
    transition: var(--bp-transition);
}

.bp-cart:hover {
    background: var(--bp-secondary);
    transform: scale(1.05);
}

.bp-cart-count {
    background: var(--bp-primary);
    color: var(--bp-white);
    font-family: var(--bp-font-heading);
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--bp-radius-full);
    min-width: 22px;
    text-align: center;
}

.bp-header-cta {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Mobile Toggle */
.bp-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: var(--bp-primary);
    border: none;
    border-radius: var(--bp-radius-md);
    cursor: pointer;
    gap: 5px;
    padding: 10px;
    z-index: 100001;
}

.bp-mobile-toggle span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: var(--bp-white);
    border-radius: 2px;
    transition: var(--bp-transition);
}

.bp-mobile-toggle.active {
    background: var(--bp-dark);
}

.bp-mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.bp-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.bp-mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
.bp-mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Mobile Menu */
.bp-mobile-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: var(--bp-white);
    z-index: 99999;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.bp-mobile-menu.active {
    right: 0;
}

.bp-mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--bp-light);
    background: linear-gradient(135deg, var(--bp-primary) 0%, #ff8e53 100%);
}

.bp-mobile-logo {
    font-family: var(--bp-font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--bp-white);
}

.bp-mobile-close {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    color: var(--bp-white);
    cursor: pointer;
    transition: var(--bp-transition);
}

.bp-mobile-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.bp-mobile-nav {
    flex: 1;
    padding: 10px 0;
}

.bp-mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bp-mobile-nav-menu li {
    border-bottom: 1px solid var(--bp-light);
}

.bp-mobile-nav-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 25px;
    font-family: var(--bp-font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--bp-dark);
    text-decoration: none;
    transition: var(--bp-transition);
}

.bp-mobile-nav-menu a:hover,
.bp-mobile-nav-menu a:active {
    background: var(--bp-light);
    color: var(--bp-primary);
    padding-left: 30px;
}

.bp-mobile-menu-footer {
    padding: 20px;
    border-top: 1px solid var(--bp-light);
    background: var(--bp-light);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bp-mobile-cta {
    width: 100%;
    text-align: center;
    justify-content: center;
}

.bp-btn-whatsapp {
    width: 100%;
    text-align: center;
    justify-content: center;
    background: #25D366 !important;
    color: var(--bp-white) !important;
}

.bp-btn-whatsapp:hover {
    background: #128C7E !important;
}

/* ============================================
   FOOTER STYLES
   ============================================ */
.bp-footer {
    background: var(--bp-dark);
    color: var(--bp-white);
    padding: 80px 0 30px;
}

.bp-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.bp-footer-brand .bp-footer-logo {
    font-size: 28px;
    font-family: var(--bp-font-heading);
    font-weight: 800;
    color: var(--bp-white);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.bp-footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.7;
    max-width: 300px;
}

.bp-footer h4 {
    color: var(--bp-white);
    font-size: 18px;
    margin-bottom: 25px;
    font-family: var(--bp-font-heading);
}

.bp-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bp-footer-links li {
    margin-bottom: 12px;
}

.bp-footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    transition: var(--bp-transition);
}

.bp-footer-links a:hover {
    color: var(--bp-secondary);
    padding-left: 5px;
}

.bp-footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    font-size: 15px;
}

.bp-footer-social {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.bp-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--bp-radius-md);
    font-size: 20px;
    transition: var(--bp-transition);
}

.bp-footer-social a:hover {
    background: var(--bp-primary);
    transform: translateY(-3px);
}

.bp-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.bp-footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin: 0;
}

.bp-footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
}

.bp-footer-bottom a:hover {
    color: var(--bp-secondary);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .bp-header-inner {
        padding: 0 20px;
    }
    
    .bp-nav-link,
    .bp-nav-menu > li > a {
        padding: 10px 15px;
        font-size: 14px;
    }
}

@media (max-width: 992px) {
    .bp-nav {
        display: none;
    }
    
    .bp-mobile-toggle {
        display: flex;
    }
    
    .bp-header-cta .bp-btn span:last-child {
        display: none;
    }
    
    .bp-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .bp-header-inner {
        height: 70px;
        padding: 0 15px;
    }
    
    .bp-logo-img,
    .bp-logo-wrap img,
    .bp-logo-link.custom-logo-link img {
        height: 40px;
    }
    
    .bp-logo-text {
        font-size: 20px;
    }
    
    /* HEADER ACTIONS'I GİZLE - sadece hamburger göster */
    .bp-header-actions {
        display: none !important;
    }
    
    /* Hamburger'ı HER ZAMAN göster */
    .bp-mobile-toggle {
        display: flex !important;
    }
    
    /* MOBİL ACTIONS - Sepet + Hamburger yan yana */
    .bp-mobile-actions {
        display: flex !important;
        align-items: center;
        gap: 10px;
    }
    
    .bp-mobile-cart {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: #f8f9fa;
        border-radius: 12px;
        font-size: 20px;
        text-decoration: none;
        position: relative;
        transition: all 0.3s ease;
    }
    
    .bp-mobile-cart:hover {
        background: var(--bp-secondary, #4ECDC4);
    }
    
    .bp-mobile-cart-count {
        position: absolute;
        top: -5px;
        right: -5px;
        background: var(--bp-primary, #FF6B6B);
        color: #fff;
        font-size: 11px;
        font-weight: 700;
        min-width: 18px;
        height: 18px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .bp-mobile-menu {
        top: 70px;
        height: calc(100vh - 70px);
    }
    
    /* Admin bar için */
    body.admin-bar .bp-mobile-menu {
        top: 116px;
        height: calc(100vh - 116px);
    }
    
    .bp-footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .bp-footer-brand p {
        max-width: 100%;
    }
    
    .bp-footer-social {
        justify-content: center;
    }
    
    .bp-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile Actions - Desktop'ta gizle */
.bp-mobile-actions {
    display: none;
}

/* Mobil menü footer link */
.bp-mobile-footer-link {
    display: block;
    padding: 12px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
}

.bp-mobile-footer-link:hover {
    background: var(--bp-secondary, #4ECDC4);
    color: #fff;
}
