/*
 * Developer: MexTech Limited
 * Licenced: Naijasearch is officially licenced and authorized to be used from MexTech Limited
 * Copyright: (c) 2026 All Rights Reserved, MexTech Limited (https://mextechltd.name.ng).
 */

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: none;
}

.brand__mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--brand);
    color: var(--on-brand);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.04em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 2px 6px rgba(var(--shade-rgb), 0.25);
}

.brand__word {
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    color: var(--ink);
    line-height: 1;
}

.brand__word b {
    color: var(--brand);
    font-weight: 800;
}

.brand__logo {
    display: block;
    width: auto;
    max-width: 200px;
    height: 34px;
    object-fit: contain;
}

.brand__logo--dark {
    display: none;
}

html[data-theme="dark"] .brand__logo--light {
    display: none;
}

html[data-theme="dark"] .brand__logo--dark {
    display: block;
}

.account {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    border-radius: var(--r-pill);
    border: 1px solid transparent;
    transition: background var(--fast), border-color var(--fast);
}

.account:hover {
    background: var(--surface-2);
    border-color: var(--line);
}

.suggest-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 70;
    display: none;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--sh-4);
    overflow: hidden;
    max-height: 340px;
    overflow-y: auto;
}

.suggest-panel.is-open {
    display: block;
}

.suggest-panel a,
.suggest-panel button {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 10px 14px;
    border: 0;
    background: transparent;
    text-align: left;
    font-size: 0.85rem;
    color: var(--ink-2);
    transition: background var(--fast);
}

.suggest-panel a:hover,
.suggest-panel button:hover,
.suggest-panel .is-active {
    background: var(--brand-soft-2);
}

.suggest-panel .suggest__label {
    font-weight: 700;
    color: var(--ink);
}

.suggest-panel .suggest__meta {
    margin-left: auto;
    font-size: 0.74rem;
    color: var(--muted);
}

@media (max-width: 860px) {

    .brand__word {
        font-size: 1.05rem;
    }

}

.drawer {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
}

.drawer.is-open {
    display: block;
}

.drawer__scrim {
    position: absolute;
    inset: 0;
    background: rgba(var(--overlay-rgb), 0.45);
    backdrop-filter: blur(2px);
}

.drawer__panel {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(84vw, 340px);
    background: var(--surface);
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 16px;
    overflow-y: auto;
    animation: drawer-in 240ms var(--ease);
}

@keyframes drawer-in {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

.drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.detail {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.gallery {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--sh-1);
}

.seller-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 14px;
    box-shadow: var(--sh-1);
}

.seller-card__name {
    font-weight: 700;
    font-size: 0.92rem;
}

.seller-card__meta {
    font-size: 0.76rem;
    color: var(--muted);
    margin-top: 2px;
}

.prose {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--ink-2);
}

.prose p {
    margin-bottom: 0.9em;
}

.prose ul {
    list-style: disc;
    padding-left: 18px;
    margin-bottom: 0.9em;
}

.prose li {
    margin-bottom: 0.35em;
}

.attr {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 9px 11px;
}

.directions {
    background: var(--brand-soft-2);
    border: 1px solid var(--brand-line);
    border-radius: var(--r-md);
    padding: 16px;
}

@media (max-width: 900px) {
    .detail {
        grid-template-columns: 1fr;
    }

}

.dash {
    display: grid;
    grid-template-columns: 224px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    padding: 22px 0 40px;
}

@media (max-width: 900px) {
    .dash {
        grid-template-columns: 1fr;
        gap: 14px;
    }

}

.admin-main {
    padding: 20px 24px 48px;
    min-width: 0;
}

@media (max-width: 900px) {
    .admin-main {
        padding: 16px 12px 40px;
    }
}

.auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

@media (max-width: 900px) {
    .auth {
        grid-template-columns: 1fr;
    }

}

.consent {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 74px;
    z-index: 80;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.consent__inner {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    max-width: 720px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--sh-4);
    padding: 12px 16px;
    font-size: 0.83rem;
    color: var(--ink-2);
}

.consent__actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

@media (min-width: 861px) {
    .consent {
        bottom: 16px;
    }
}

@media (max-width: 640px) {
    .consent__inner {
        font-size: 0.78rem;
    }
}

@media (max-width: 640px) {
    .section__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .table th,
    .table td {
        padding: 9px 10px;
    }
}

.section__head--stack {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 1.5rem;
}

.section__head--stack > p {
    max-width: 64ch;
}

.section__head--inline {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.section__head--inline .section__title {
    min-width: 0;
}

.section__head--inline .section__link {
    flex: 0 0 auto;
    white-space: nowrap;
}

.ctarow {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0.55rem;
    width: 100%;
    max-width: 26rem;
    margin-top: 0.9rem;
}

.ctarow .btn {
    min-width: 0;
    padding-inline: 14px;
}

.section__head--stack .ctarow__alt {
    margin: 0.85rem 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

.ctarow__alt a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--brand);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ctarow__alt a:hover {
    color: var(--brand-strong);
}

@media (max-width: 380px) {
    .ctarow .btn {
        font-size: 0.82rem;
        padding-inline: 10px;
    }
}

@media (min-width: 1200px) {
    .detail {
        grid-template-columns: minmax(0, 1fr) 380px;
        gap: 30px;
    }

    .auth {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
        gap: 48px;
    }
}

@media (min-width: 1440px) {
    .detail {
        grid-template-columns: minmax(0, 1fr) 420px;
        gap: 36px;
    }

    .dash {
        grid-template-columns: 248px minmax(0, 1fr);
        gap: 28px;
    }
}

@media (min-width: 1920px) {
    .detail {
        grid-template-columns: minmax(0, 1fr) 460px;
        gap: 44px;
    }

    .dash {
        grid-template-columns: 264px minmax(0, 1fr);
        gap: 34px;
    }
}
