/* ===============================
   PART 13
   Dynamic Navigation + Search Fix
================================ */

.z13-header {
    width: 100%;
    min-height: 94px;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(180deg, rgba(4,10,22,0.98), rgba(2,7,16,0.96));
    border-bottom: 1px solid rgba(0,157,255,0.16);
    position: sticky;
    top: 0;
    z-index: 900;
    backdrop-filter: blur(14px);
}

.z13-logo {
    width: 245px;
    height: 70px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.z13-logo img {
    max-width: 245px;
    max-height: 68px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 16px rgba(0,157,255,0.14));
}

.z13-logo-fallback {
    display: flex;
    flex-direction: column;
}

.z13-logo-fallback strong {
    color: #fff;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 7px;
}

.z13-logo-fallback span {
    color: rgba(255,255,255,0.62);
    font-size: 13px;
}

.z13-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.z13-nav::-webkit-scrollbar {
    display: none;
}

.z13-nav a {
    color: rgba(255,255,255,0.86);
    text-decoration: none;
    font-size: 13px;
    font-weight: 900;
    padding: 11px 10px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    transition: 0.2s ease;
}

.z13-nav a:hover,
.z13-nav a.active {
    color: #fff;
    background: rgba(255,122,0,0.13);
}

.z13-nav-icon {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.z13-nav-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
}

.z13-nav-icon span {
    font-size: 18px;
    line-height: 1;
}

.z13-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.z13-search {
    width: 250px;
    height: 46px;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 16px;
    overflow: hidden;
}

.z13-search input {
    width: 100%;
    height: 100%;
    background: transparent;
    color: #fff;
    border: 0;
    outline: 0;
    padding: 0 13px;
}

.z13-search input::placeholder {
    color: rgba(255,255,255,0.52);
}

.z13-search button {
    width: 48px;
    height: 46px;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.z13-cart,
.z13-login {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: rgba(255,255,255,0.055);
    border: 1px solid rgba(255,255,255,0.10);
    color: white;
    text-decoration: none;
    display: grid;
    place-items: center;
    position: relative;
}

.z13-cart b {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 21px;
    height: 21px;
    border-radius: 999px;
    background: var(--orange);
    color: #fff;
    font-size: 11px;
    display: grid;
    place-items: center;
    padding: 0 6px;
}

.z13-login {
    background: linear-gradient(135deg, rgba(255,122,0,0.95), rgba(255,176,0,0.95));
}

.z13-mobile-btn,
.z13-mobile-search {
    display: none;
}

/* Admin navigation */
.p13-admin-nav-list {
    display: grid;
    gap: 18px;
}

.p13-admin-nav-card {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(0,157,255,0.18);
}

.p13-admin-nav-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.p13-admin-icon-preview {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.p13-admin-icon-preview img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.p13-admin-icon-preview span {
    font-size: 28px;
}

.p13-admin-nav-preview strong {
    display: block;
    color: white;
    font-size: 18px;
}

.p13-admin-nav-preview small {
    color: rgba(255,255,255,0.55);
}

/* Tablet */
@media (max-width: 1180px) {
    .z13-header {
        gap: 14px;
        padding: 14px 18px;
    }

    .z13-logo {
        width: 210px;
    }

    .z13-logo img {
        max-width: 210px;
    }

    .z13-search {
        width: 190px;
    }

    .z13-nav a {
        font-size: 12px;
        padding: 10px 8px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .z13-header {
        min-height: 82px;
        padding: 10px 16px;
        justify-content: space-between;
        gap: 12px;
    }

    .z13-logo {
        width: 220px;
        height: 62px;
    }

    .z13-logo img {
        max-width: 220px;
        max-height: 58px;
    }

    .z13-mobile-btn {
        display: grid;
        place-items: center;
        width: 56px;
        height: 56px;
        border-radius: 18px;
        border: 1px solid rgba(255,255,255,0.14);
        background: rgba(255,255,255,0.05);
        color: white;
        font-size: 32px;
        cursor: pointer;
        flex-shrink: 0;
    }

    .z13-actions {
        display: none;
    }

    .z13-nav {
        position: fixed;
        top: 88px;
        left: 14px;
        right: 14px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 8px;
        padding: 14px;
        border-radius: 20px;
        background: rgba(5,12,24,0.98);
        border: 1px solid rgba(0,157,255,0.22);
        box-shadow: 0 20px 60px rgba(0,0,0,0.45);
        z-index: 1000;
        overflow: visible;
    }

    .z13-nav.open {
        display: flex;
    }

    .z13-nav a {
        padding: 14px 16px;
        font-size: 16px;
        border-radius: 14px;
        justify-content: flex-start;
    }

    .z13-nav-icon {
        width: 28px;
        height: 28px;
    }

    .z13-nav-icon img {
        width: 26px;
        height: 26px;
    }

    .z13-nav-icon span {
        font-size: 22px;
    }

    .z13-mobile-search {
        display: flex;
        height: 48px;
        background: rgba(255,255,255,0.06);
        border: 1px solid rgba(255,255,255,0.10);
        border-radius: 14px;
        overflow: hidden;
        margin-bottom: 8px;
    }

    .z13-mobile-search input {
        width: 100%;
        height: 100%;
        background: transparent;
        border: 0;
        outline: 0;
        color: #fff;
        padding: 0 14px;
    }

    .z13-mobile-search button {
        width: 52px;
        border: 0;
        background: var(--orange);
        color: #fff;
        font-weight: 900;
    }
}

@media (max-width: 430px) {
    .z13-logo {
        width: 205px;
    }

    .z13-logo img {
        max-width: 205px;
        max-height: 54px;
    }

    .z13-mobile-btn {
        width: 52px;
        height: 52px;
        font-size: 30px;
    }
}

@media (max-width: 380px) {
    .z13-logo {
        width: 180px;
    }

    .z13-logo img {
        max-width: 180px;
        max-height: 50px;
    }
}