/* =========================================================
   ZABANE ABI — HEADER & FOOTER STYLES
   Add to: components.css (appended)
   ========================================================= */

/* ============== HEADER ============== */
.za-header {
    position: fixed;
    top: 0;
    inset-inline: 0;
    z-index: 50;
    transition: all 0.5s var(--ease-out);
    background: transparent;
    border-bottom: 1px solid transparent;
}

.za-header.is-scrolled {
    background: rgba(5, 5, 7, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--hair);
}

.za-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.za-header__logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--ink);
    text-decoration: none;
    transition: opacity 0.2s;
}

.za-header__logo:hover {
    opacity: 0.8;
}

.za-logo-mark {
    display: flex;
}

.za-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.za-logo-text__fa {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--ink);
}

.za-logo-text__en {
    font-family: var(--serif);
    font-style: italic;
    font-size: 0.625rem;
    color: var(--teal);
    letter-spacing: 0.1em;
    margin-top: 2px;
}

.za-header__nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.za-header__menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
}

.za-header__menu li a {
    display: block;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    color: var(--muted);
    border-radius: var(--radius-xs);
    transition: color 0.2s;
}

.za-header__menu li a:hover,
.za-header__menu li.current-menu-item a,
.za-header__menu li.current_page_item a {
    color: var(--teal);
}

.za-header__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.za-header__cart {
    position: relative;
    padding: 0.5rem;
    color: var(--muted);
    transition: color 0.2s;
}

.za-header__cart:hover {
    color: var(--teal);
}

.za-header__cart-count {
    position: absolute;
    top: -2px;
    inset-inline-start: -2px;
    width: 16px;
    height: 16px;
    background: var(--teal);
    color: var(--bg);
    font-size: 10px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.za-header__menu-toggle {
    display: none;
    padding: 0.5rem;
    color: var(--ink);
    background: none;
    border: none;
    cursor: pointer;
}

.za-header__mobile {
    display: none;
    background: rgba(7, 8, 9, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--hair);
    padding: 1rem 0;
}

.za-header__mobile.is-open {
    display: block;
}

.za-header__mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.za-header__mobile-menu li a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--ink);
    font-size: 0.9375rem;
    border-radius: var(--radius-xs);
    transition: background 0.2s;
}

.za-header__mobile-menu li a:hover,
.za-header__mobile-menu li.current-menu-item a {
    background: rgba(22, 210, 212, 0.05);
    color: var(--teal);
}

.za-header__mobile-menu li {
    margin-bottom: 4px;
}

/* body when mobile menu is open */
body.za-menu-open {
    overflow: hidden;
}

/* ============== FOOTER ============== */
.za-footer {
    position: relative;
    z-index: 10;
    margin-top: 5rem;
    border-top: 1px solid var(--hair);
    background: rgba(7, 8, 9, 0.6);
    padding-block: 4rem 2rem;
}

.za-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.za-footer__brand {
    max-width: 320px;
}

.za-footer__logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1rem;
    color: var(--ink);
    text-decoration: none;
}

.za-footer__logo svg {
    flex-shrink: 0;
}

.za-footer__logo-fa,
.za-footer__logo-en {
    display: block;
    line-height: 1.2;
}

.za-footer__logo-fa {
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--ink);
}

.za-footer__logo-en {
    font-family: var(--serif);
    font-style: italic;
    font-size: 0.625rem;
    color: var(--teal);
    letter-spacing: 0.1em;
    margin-top: 2px;
}

.za-footer__desc {
    font-size: 0.8125rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.za-footer__social {
    display: flex;
    gap: 0.75rem;
}

.za-footer__social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--hair);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: all 0.2s;
}

.za-footer__social a:hover {
    color: var(--teal);
    border-color: var(--teal);
}

.za-footer__col h4 {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--ink);
}

.za-footer__col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.za-footer__col ul li {
    margin-bottom: 0.625rem;
}

.za-footer__col ul li a {
    font-size: 0.8125rem;
    color: var(--muted);
    transition: color 0.2s;
}

.za-footer__col ul li a:hover {
    color: var(--teal);
}

.za-footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--muted);
    margin-bottom: 0.625rem;
}

.za-footer__contact li svg {
    width: 14px;
    height: 14px;
    color: var(--teal);
    flex-shrink: 0;
    margin-top: 3px;
}

.za-footer__divider {
    margin-bottom: 1.5rem;
}

.za-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.za-footer__bottom p {
    font-size: 0.75rem;
    color: var(--muted-2);
    margin: 0;
}

.za-footer__bottom-links {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.za-footer__bottom-links a {
    font-size: 0.75rem;
    color: var(--muted-2);
    transition: color 0.2s;
}

.za-footer__bottom-links a:hover {
    color: var(--teal);
}

/* ============== MAIN ============== */
.za-main {
    position: relative;
    z-index: 10;
    min-height: calc(100vh - 64px);
}

/* ============== RESPONSIVE HEADER/FOOTER ============== */
@media (max-width: 1024px) {
    .za-header__nav {
        display: none;
    }
    .za-header__menu-toggle {
        display: block;
    }
    .za-header__actions .za-btn--sm:not(.za-header__menu-toggle) {
        display: none;
    }
}

@media (max-width: 768px) {
    .za-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    .za-footer__brand {
        grid-column: 1 / -1;
        max-width: none;
    }
    .za-footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .za-footer__grid {
        grid-template-columns: 1fr;
    }
}
