/* ============================================================
   BS YAYINCILIK — NAVBAR & HEADER
   Üst duyuru bandı, header, nav linkleri, logo, sepet drawer
   ============================================================ */

/* ============================================================
   TOP BAR (Koyu Üst Duyuru Bandı - Kayan Yazı)
   ============================================================ */
.bs-top-bar {
    background-color: var(--bg-topbar);
    border-bottom: 1px solid var(--text-dark);
    color: var(--text-dark);
    padding: 10px 0;
    font-size: 0.85rem;
    font-weight: 700;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    max-width: 100%;
}

.bs-top-bar-inner {
    display: flex;
    width: max-content;
    will-change: transform;
    animation: marquee 25s linear infinite;
}

.bs-top-bar:hover .bs-top-bar-inner {
    animation-play-state: paused;
}

.bs-top-bar-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 40px;
    font-weight: 700;
    flex-shrink: 0;
}

.bs-top-bar-item::before {
    content: '🚚';
    font-size: 1rem;
}


.bs-sticky-nav-wrapper {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9000;
}

#main-content {
    padding-top: 126px;
}

/* Not: main-content padding ve tüm mobil navbar media query'leri
   artık responsive.css'de toplancı olarak yönetiliyor. */

/* ============================================================
   HEADER (Koyu Kurumsal Navbar)
   ============================================================ */
.bs-header {
    background-color: var(--bg-main);
    border-bottom: 1px solid var(--text-dark);
    border-top: 1px solid var(--text-dark);
    padding: 0 !important;
    position: relative;
    z-index: 9000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 100%;
    transition: box-shadow 0.35s ease, padding 0.3s ease;
}

.bs-header.scrolled {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.bs-header-inner {
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    position: relative;
    box-sizing: border-box;
    transition: padding 0.3s ease;
}

.bs-header.scrolled .bs-header-inner {
    padding: 0;
}

/* Navigation - Boxed Cells */
.bs-nav {
    display: flex;
    align-items: stretch;
    align-self: stretch;
}

.bs-nav-left {
    flex: 3;
}

.bs-nav-right {
    flex: 2;
}

.bs-nav-link {
    font-family: var(--font-heading, 'Nunito', sans-serif);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text-dark);
    text-transform: capitalize;
    transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    text-align: center;
    padding: 0 !important;
    text-decoration: none;
    border-right: 1px solid var(--text-dark);
    box-sizing: border-box;
}

.bs-nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.bs-header.scrolled .bs-nav-link {
    padding: 0 !important;
}

.bs-nav-link:hover {
    color: var(--primary);
}

.bs-nav-link:hover::before,
.bs-nav-link.active::before {
    transform: scaleX(1);
    transform-origin: left;
}

.bs-nav-link.active {
    color: var(--primary);
    font-weight: 800;
}

/* Logo - Boxed Cell */
.bs-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 5;
    width: 250px;
    min-width: 250px;
    max-width: 250px;
    align-self: stretch;
    border-right: 1px solid var(--text-dark);
    box-sizing: border-box;
    flex-shrink: 0;
}

.bs-logo-img {
    height: 80px !important;
    max-height: 80px !important;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    padding: 12px 0;
    box-sizing: content-box !important;
    transition: height 0.3s ease, max-height 0.3s ease, padding 0.3s ease;
}

/* Kaydırınca Masaüstünde 56px */
.bs-header.scrolled .bs-logo-img {
    height: 56px !important;
    max-height: 56px !important;
    padding: 6px 0;
}



.bs-header-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex: 1;
    height: 100%;
    align-self: center;
    box-sizing: border-box;
}

.bs-header-icon {
    width: 22px;
    height: 22px;
    color: var(--text-dark);
    transition: color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.bs-header-icon:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.bs-cart-icon {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 0;
}

.bs-cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--primary);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-dark);
    pointer-events: none;
}

/* ============================================================
   SEPET DRAWER (Sağdan Açılan)
   ============================================================ */
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    max-width: 100vw;
    height: 100%;
    background: var(--white);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-left: 3px solid var(--text-dark);
    box-sizing: border-box;
}

.cart-drawer.open {
    transform: translateX(0);
}

.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    border-bottom: 2px solid var(--border-subtle);
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-slate) 100%);
    flex-shrink: 0;
}

.cart-drawer-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading, 'Nunito', sans-serif);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--white);
    margin: 0;
}

.cart-close-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.cart-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.cart-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.cart-empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-drawer-footer {
    padding: 16px 20px;
    border-top: 2px solid var(--border-subtle);
    background: var(--surface-slate);
    flex-shrink: 0;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.cart-total-price {
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 900;
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Overlay */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Scroll Top Butonu */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(229, 101, 21, 0.4);
    z-index: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.scroll-top-btn.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.scroll-top-btn:hover {
    background: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(229, 101, 21, 0.5);
}

/* ============================================================
   HAMBURGERMENİ BUTONU
   ============================================================ */
/* Not: Navbar responsive kuralları responsive.css'de. */
.bs-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.bs-hamburger:hover {
    background: transparent !important;
}

.bs-hamburger span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.bs-hamburger.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.bs-hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.bs-hamburger.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ============================================================
   MOBİL NAV DRAWER (Sağdan Açılan)
   ============================================================ */
.bs-mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 85vw;
    height: 100%;
    background: var(--bg-main);
    z-index: 9100;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    box-shadow: -6px 0 30px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
}

.bs-mobile-nav.open {
    transform: translateX(0);
}

.bs-mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(16, 28, 56, 0.1);
    flex-shrink: 0;
}

.bs-mobile-nav-logo {
    font-family: var(--font-heading, 'Nunito', sans-serif);
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--text-dark);
    text-decoration: none;
}

.bs-mobile-nav-close {
    background: transparent;
    border: none;
    color: var(--text-dark);
    width: 34px;
    height: 34px;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.bs-mobile-nav-close:hover {
    transform: rotate(90deg);
}

.bs-mobile-nav-list {
    list-style: none;
    padding: 12px 0;
    margin: 0;
    flex: 1;
}

.bs-mobile-nav-link {
    display: block;
    padding: 14px 22px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.bs-mobile-nav-link:hover,
.bs-mobile-nav-link.active {
    color: var(--white) !important;
    background: var(--primary) !important;
}