/* ===============================
   PART 12
   Zidago-style header logo
================================ */

/* Hide old header styles if they exist */
.p11-brand-wrap,
.p11-brand-frame,
.brand,
.brand-text,
.logo-holder {
    all: unset;
}

/* Main header */
.z12-header {
    width: 100%;
    height: 96px;
    padding: 14px 34px;
    display: flex;
    align-items: center;
    gap: 28px;
    background:
        linear-gradient(180deg, rgba(4, 10, 22, 0.97), rgba(2, 7, 16, 0.96));
    border-bottom: 1px solid rgba(0,157,255,0.15);
    position: sticky;
    top: 0;
    z-index: 900;
    backdrop-filter: blur(14px);
}

/* Logo like Zidago */
.z12-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 250px;
    height: 72px;
    flex-shrink: 0;
    text-decoration: none;
}

.z12-logo img {
    width: auto;
    height: 68px;
    max-width: 250px;
    object-fit: contain;
    display: block;
    filter:
        drop-shadow(0 0 16px rgba(0,157,255,0.12))
        drop-shadow(0 10px 18px rgba(0,0,0,0.22));
}

/* Fallback if no logo uploaded */
.z12-logo-fallback {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.z12-logo-fallback strong {
    color: white;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: 7px;
    line-height: 1;
}

.z12-logo-fallback span {
    color: rgba(255,255,255,0.65);
    font-size: 13px;
    margin-top: 8px;
}

/* Nav */
.z12-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.z12-nav a {
    color: rgba(255,255,255,0.86);
    text-decoration: none;
    font-size: 14px;
    font-weight: 900;
    padding: 12px 13px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    transition: 0.2s ease;
}

.z12-nav a span {
    font-size: 16px;
}

.z12-nav a:hover,
.z12-nav a.active {
    color: white;
    background: rgba(255,122,0,0.12);
}

/* Actions */
.z12-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.z12-search {
    width: 240px;
    height: 46px;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 15px;
    overflow: hidden;
}

.z12-search input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    padding: 0 12px;
}

.z12-search input::placeholder {
    color: rgba(255,255,255,0.5);
}

.z12-search button {
    width: 46px;
    height: 46px;
    border: none;
    background: transparent;
    color: white;
    cursor: pointer;
}

.z12-cart,
.z12-login {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    color: white;
    text-decoration: none;
    display: grid;
    place-items: center;
    position: relative;
}

.z12-cart b {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 21px;
    height: 21px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--orange);
    color: white;
    font-size: 11px;
    display: grid;
    place-items: center;
}

.z12-login {
    background: linear-gradient(135deg, rgba(255,122,0,0.95), rgba(255,176,0,0.95));
}

/* Mobile button */
.z12-mobile-btn {
    display: none;
}

/* Tablet */
@media (max-width: 1180px) {
    .z12-header {
        gap: 18px;
        padding: 14px 22px;
    }

    .z12-logo {
        width: 220px;
    }

    .z12-logo img {
        max-width: 220px;
    }

    .z12-search {
        width: 190px;
    }

    .z12-nav a {
        font-size: 13px;
        padding: 11px 10px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .z12-header {
        height: 82px;
        padding: 10px 16px;
        justify-content: space-between;
        gap: 12px;
    }

    .z12-logo {
        width: 230px;
        height: 62px;
    }

    .z12-logo img {
        height: 58px;
        max-width: 230px;
        object-fit: contain;
    }

    .z12-logo-fallback strong {
        font-size: 28px;
        letter-spacing: 6px;
    }

    .z12-logo-fallback span {
        display: none;
    }

    .z12-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;
    }

    .z12-actions {
        display: none;
    }

    .z12-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.20);
        box-shadow: 0 20px 60px rgba(0,0,0,0.45);
        z-index: 1000;
    }

    .z12-nav.open {
        display: flex;
    }

    .z12-nav a {
        padding: 14px 16px;
        font-size: 16px;
        border-radius: 14px;
        justify-content: flex-start;
    }
}

/* Small phones */
@media (max-width: 430px) {
    .z12-logo {
        width: 205px;
    }

    .z12-logo img {
        max-width: 205px;
        height: 54px;
    }

    .z12-mobile-btn {
        width: 52px;
        height: 52px;
        font-size: 30px;
    }
}

@media (max-width: 380px) {
    .z12-logo {
        width: 180px;
    }

    .z12-logo img {
        max-width: 180px;
        height: 50px;
    }
}