/* Teknolog-style header bottom menu + mega menu */

:root {
    --burak-theme-color: #e12e2e;
    --burak-theme-border: #d5d7da;
    --burak-mega-bg: #101318;
    --burak-mega-text: #f5f7fa;
}

/* ===== Top header logo ===== */
.smart-header .navbar-brand {
    text-decoration: none;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}

.smart-header .logo-text,
.smart-header .mobile-logo-text {
    font-weight: 800;
    color: var(--burak-theme-color);
    transition: color 0.4s ease, font-size 0.4s ease;
}

.smart-header .logo-text {
    font-size: 1.6rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.15;
}

.smart-header .mobile-logo-text {
    font-size: 1.3rem;
}

.smart-header .logo-icon {
    color: var(--burak-theme-color);
    transition: all 0.4s ease;
}

.smart-header .logo-slogan {
    font-size: 0.8rem;
    color: #6c757d;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.smart-header .logo-image {
    max-height: 64px;
    transition: all 0.4s ease;
    flex-shrink: 0;
}

/* ===== Bottom nav bar ===== */
.burak-header-menu.smart-menu {
    background: #fff;
    border-bottom: none;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
    padding: 0;
    overflow: visible;
    z-index: 1050;
    position: relative;
}

.burak-header-menu .container {
    position: static;
}

.burak-header-nav {
    display: flex;
    align-items: stretch;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    flex-wrap: nowrap;
}

.burak-header-nav > li {
    position: static;
    list-style: none;
}

.burak-nav-link {
    display: block;
    padding: 0 14px;
    font-size: 15px;
    font-weight: 600;
    color: #222;
    line-height: 64px;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, box-shadow 0.2s ease;
    background: transparent;
}

.burak-nav-link:hover,
.burak-nav-link:focus,
.burak-header-nav > li:hover > .burak-nav-link,
.burak-header-nav > li.is-open > .burak-nav-link,
.burak-nav-link.active {
    color: var(--burak-theme-color);
    box-shadow: inset 0 -2px 0 0 var(--burak-theme-color);
    outline: none;
}

.burak-nav-link--has-child {
    padding-right: 22px;
}

.burak-nav-link--has-child::after {
    content: "\F282";
    font-family: "bootstrap-icons";
    font-size: 11px;
    margin-left: 6px;
    vertical-align: middle;
    color: #bbb;
    font-weight: 400;
}

.burak-header-nav > li:hover > .burak-nav-link--has-child::after,
.burak-header-nav > li.is-open > .burak-nav-link--has-child::after {
    color: var(--burak-theme-color);
}

/* ===== Mega menu block — full width Teknolog style ===== */
.burak-nav-item--mega {
    position: static;
}

.burak-mega-block {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 1060;
    background: var(--burak-mega-bg);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    border-top: 3px solid var(--burak-theme-color);
}

.burak-nav-item--mega:hover > .burak-mega-block,
.burak-nav-item--mega:focus-within > .burak-mega-block,
.burak-nav-item--mega.is-open > .burak-mega-block {
    display: block;
}

.burak-mega-block::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
}

.burak-mega-inner {
    padding: 24px 0 28px;
}

.burak-header-menu .container .burak-mega-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Featured: hero + side list */
.burak-mega-featured {
    display: flex;
    gap: 22px;
    align-items: stretch;
}

.burak-mega-hero-card {
    flex: 0 0 38%;
    max-width: 38%;
    min-width: 0;
}

.burak-mega-hero-link {
    display: block;
    position: relative;
    overflow: hidden;
    line-height: 0;
    border-radius: 4px;
    background: #1a1f28;
}

.burak-mega-hero-link img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.burak-mega-hero-link:hover img {
    transform: scale(1.04);
}

.burak-mega-hero-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 20px 20px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.92) 100%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.burak-mega-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
}

.burak-mega-hero-meta .bi-lightning-fill {
    color: #ff4d4d;
}

.burak-mega-hero-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.burak-mega-side-list {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
    min-width: 0;
}

.burak-mega-side-card-link {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.burak-mega-side-card-link:hover {
    background: rgba(255, 255, 255, 0.06);
}

.burak-mega-side-card-thumb {
    flex: 0 0 108px;
    display: block;
    line-height: 0;
    overflow: hidden;
    border-radius: 4px;
    background: #1a1f28;
}

.burak-mega-side-card-thumb img {
    width: 108px;
    height: 72px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.burak-mega-side-card-link:hover .burak-mega-side-card-thumb img {
    transform: scale(1.05);
}

.burak-mega-side-card-body {
    flex: 1;
    min-width: 0;
}

.burak-mega-side-card-title {
    display: block;
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--burak-mega-text);
}

.burak-mega-side-card-meta {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
}

/* ÜRÜN category tabs */
.burak-mega-cat-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}

.burak-mega-cat-tabs li {
    list-style: none;
}

.burak-mega-cat-tab {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    background: transparent;
    color: var(--burak-mega-text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.burak-mega-cat-tab.is-active,
.burak-mega-cat-tab:hover {
    background: var(--burak-theme-color);
    border-color: var(--burak-theme-color);
    color: #fff;
}

.burak-mega-cat-tabs li.is-active .burak-mega-cat-tab {
    background: var(--burak-theme-color);
    border-color: var(--burak-theme-color);
    color: #fff;
}

.burak-mega-tab-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.burak-mega-tab-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.burak-mega-tab-card-thumb {
    display: block;
    line-height: 0;
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 4px;
    background: #1a1f28;
}

.burak-mega-tab-card-thumb img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.burak-mega-tab-card-link:hover .burak-mega-tab-card-thumb img {
    transform: scale(1.04);
}

.burak-mega-tab-card-title {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--burak-mega-text);
}

.burak-mega-tab-card-meta {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
}

.burak-mega-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.burak-mega-loader span {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--burak-theme-color);
    border-radius: 50%;
    animation: burakMegaSpin 0.8s linear infinite;
}

.burak-mega-cat-content.is-loading .burak-mega-loader {
    display: flex;
}

.burak-mega-empty {
    margin: 0;
    padding: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.burak-mega-featured--empty .burak-mega-hero-card {
    flex: 1 1 auto;
    max-width: 100%;
}

.burak-mega-hero-link--empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 220px;
    padding: 32px 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.18);
    text-decoration: none;
}

.burak-mega-hero-link--empty:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.28);
}

.burak-mega-hero-empty-label {
    font-size: 18px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 0.02em;
}

.burak-mega-hero-empty-meta {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.42);
}

@keyframes burakMegaSpin {
    to { transform: rotate(360deg); }
}

/* Scrolled compact state */
.smart-menu.scrolled .burak-nav-link {
    line-height: 52px;
    font-size: 14px;
    padding: 0 12px;
}

.smart-menu.scrolled {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12) !important;
}

/* Responsive */
@media (max-width: 1199px) {
    .burak-mega-featured {
        flex-direction: column;
    }

    .burak-mega-hero-card {
        flex: 1 1 auto;
        max-width: 100%;
    }

    .burak-mega-tab-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .burak-header-menu.smart-menu {
        display: none;
    }

    .burak-header-nav.d-lg-flex {
        display: none !important;
    }

    .burak-mega-block {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .burak-mega-tab-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .burak-mega-side-list {
        grid-template-columns: 1fr;
    }
}

/* ===== Mobile drawer (Feyza tarzı) ===== */
.burak-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(16, 19, 24, 0.55);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.burak-mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.burak-mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 90vw;
    height: 100vh;
    height: 100dvh;
    background: #fff;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    transition: right 0.3s ease;
    padding: 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.burak-mobile-drawer.open {
    right: 0;
}

.burak-mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 12px;
}

.burak-mobile-drawer-brand {
    text-decoration: none;
    min-width: 0;
}

.burak-mobile-drawer-logo {
    display: block;
    height: 50px;
    width: auto;
    max-width: 100%;
}

.burak-mobile-drawer-close {
    flex-shrink: 0;
    background: transparent;
    border: 0;
    font-size: 1.35rem;
    cursor: pointer;
    color: #222;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

.burak-mobile-drawer-close:hover {
    background: rgba(225, 46, 46, 0.08);
    color: var(--burak-theme-color);
}

.burak-mobile-drawer-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.burak-mobile-drawer-list > li {
    border-bottom: 1px solid var(--burak-theme-border);
}

.burak-mobile-drawer-list > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    font-weight: 500;
    color: #222;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.burak-mobile-drawer-list > li > a:hover,
.burak-mobile-drawer-list > li > a.is-active {
    color: var(--burak-theme-color);
}

.burak-drawer-sub {
    border-bottom: none;
}

.burak-drawer-sub summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    font-weight: 500;
    color: #222;
    font-size: 16px;
    cursor: pointer;
    list-style: none;
}

.burak-drawer-sub summary::-webkit-details-marker {
    display: none;
}

.burak-drawer-sub summary i {
    font-size: 12px;
    color: #999;
    transition: transform 0.2s ease;
}

.burak-drawer-sub[open] summary i {
    transform: rotate(180deg);
}

.burak-drawer-sub[open] summary {
    color: var(--burak-theme-color);
}

.burak-drawer-submenu {
    list-style: none;
    margin: 0;
    padding: 0 0 8px 16px;
}

.burak-drawer-submenu a {
    display: block;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 400;
    color: #555;
    text-decoration: none;
    transition: color 0.2s ease;
}

.burak-drawer-submenu a:hover {
    color: var(--burak-theme-color);
}

/* ===== Mobile bottom nav — 3 buton ===== */
.burak-mobile-bottom-nav {
    display: none;
}

@media (max-width: 991px) {
    .burak-mobile-bottom-nav {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1200;
        height: 64px;
        background: linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 -4px 22px rgba(0, 0, 0, 0.1), 0 -1px 4px rgba(0, 0, 0, 0.05);
        padding-bottom: env(safe-area-inset-bottom, 0);
    }

    .burak-mobile-bottom-nav .mbn-inner {
        display: flex;
        align-items: center;
        justify-content: space-around;
        height: 64px;
        max-width: 440px;
        margin: 0 auto;
        padding: 0 10px;
    }

    .burak-mobile-bottom-nav a,
    .burak-mobile-bottom-nav button {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        flex: 1;
        padding: 0;
        font-size: 10.5px;
        font-weight: 600;
        letter-spacing: 0.01em;
        color: #222;
        background: none;
        border: none;
        cursor: pointer;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }

    .burak-mobile-bottom-nav .mbn-icon {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        color: #222;
        background: linear-gradient(145deg, #f3f4f6 0%, #e6e8ec 100%);
        box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.08), -1px -1px 4px rgba(255, 255, 255, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.6);
        transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
    }

    .burak-mobile-bottom-nav a.mbn-active {
        color: var(--burak-theme-color);
    }

    .burak-mobile-bottom-nav a.mbn-active .mbn-icon {
        background: linear-gradient(145deg, #f04a4a, var(--burak-theme-color));
        color: #fff;
        box-shadow: 0 5px 14px rgba(225, 46, 46, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    }

    .burak-mobile-bottom-nav .mbn-icon-accent {
        background: linear-gradient(145deg, #222, #101318);
        color: #fff;
        box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }

    .burak-mobile-bottom-nav a:active .mbn-icon,
    .burak-mobile-bottom-nav button:active .mbn-icon {
        transform: scale(0.92);
    }

    .burak-mobile-bottom-nav .mbn-menu.is-spinning .mbn-icon i {
        animation: burakMbnSpin 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    }

    @keyframes burakMbnSpin {
        from { transform: rotate(0); }
        to { transform: rotate(180deg); }
    }

    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0));
    }
}
