/*
 * 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).
 */

.btn--full {
    width: 100%;
    justify-content: center;
}

.btn--go {
    background: var(--brand);
    color: var(--on-brand);
    border-color: var(--brand);
    box-shadow: var(--sh-2);
}

.btn--go:hover {
    background: var(--brand-strong);
    border-color: var(--brand-strong);
}

.chip--type {
    background: var(--brand-soft);
    border-color: rgba(var(--brand-rgb), 0.18);
    color: var(--brand-strong);
    font-weight: 600;
}

.chip--cond {
    background: var(--amber-soft);
    border-color: rgba(168, 100, 0, 0.18);
    color: var(--amber);
}

html[data-theme="dark"] .chip--cond {
    border-color: var(--amber-line);
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.link-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
}

.link-more:hover {
    color: var(--brand-strong);
    text-decoration: underline;
}

.form__ok {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 10px 12px;
    border-radius: var(--r-sm);
    background: var(--brand-soft);
    border: 1px solid rgba(var(--brand-rgb), 0.2);
    color: var(--brand-strong);
    font-size: 0.85rem;
}

.crumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 12px 20px 0;
    font-size: 0.76rem;
    color: var(--muted);
}

.crumbs a {
    color: var(--ink-3);
    text-decoration: none;
}

.crumbs a:hover {
    color: var(--brand);
    text-decoration: underline;
}

.crumbs__sep {
    display: inline-flex;
    color: var(--line-strong);
}

.crumbs__here {
    color: var(--ink-3);
    font-weight: 600;
}

.notebar {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: var(--wrap);
    margin: 12px auto 0;
    padding: 10px 14px;
    border-radius: var(--r-sm);
    font-size: 0.85rem;
    font-weight: 500;
}

.notebar--warn {
    background: var(--amber-soft);
    border: 1px solid rgba(168, 100, 0, 0.22);
    color: var(--amber);
}

html[data-theme="dark"] .notebar--warn {
    border-color: var(--amber-line);
}

.notebar--stack {
    align-items: flex-start;
}

.notebar--stack > svg {
    flex: none;
    margin-top: 2px;
}

.notebar__body {
    min-width: 0;
}

.notebar__title {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
}

.notebar__text {
    margin: 2px 0 0;
    font-size: 0.82rem;
    line-height: 1.45;
}

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

.panel + .panel {
    margin-top: 14px;
}

.panel__title {
    margin: 0 0 12px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.pdp {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 24px;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 18px 20px 0;
    align-items: start;
}

.pdp__media {
    position: sticky;
    top: calc(var(--header-h) + 14px);
}

.pdp-gallery {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 10px;
    box-shadow: var(--sh-2);
}

.pdp-gallery__stage {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-md);
    background: var(--surface-2);
    aspect-ratio: 4 / 3;
}

.pdp-gallery__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity var(--fast);
}

.pdp-gallery__flag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 9px;
    border-radius: var(--r-xs);
    background: rgba(13, 26, 19, 0.78);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

.pdp-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.pdp-thumb {
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--r-sm);
    background: var(--surface-2);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    transition: border-color var(--fast), transform var(--fast);
}

.pdp-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pdp-thumb:hover {
    transform: translateY(-1px);
    border-color: var(--line-strong);
}

.pdp-thumb.is-active {
    border-color: var(--brand);
}

.pdp__info {
    min-width: 0;
}

.pdp-head__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.pdp-title {
    margin: 0 0 10px;
    font-size: clamp(1.28rem, 2.4vw, 1.72rem);
    line-height: 1.24;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.pdp-loc {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 0.82rem;
    color: var(--muted);
}

.pdp-loc svg {
    color: var(--brand);
}

.pdp-loc__dot {
    color: var(--line-strong);
}

.pdp-price {
    margin: 16px 0 0;
    padding: 14px 16px;
    border-radius: var(--r-md);
    background: linear-gradient(180deg, var(--brand-soft-2), var(--surface));
    border: 1px solid var(--line);
}

.pdp-price__value {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink);
    line-height: 1.1;
}

.pdp-price__note {
    margin-top: 4px;
    font-size: 0.78rem;
    color: var(--ink-3);
}

.pdp-summary {
    margin: 14px 0 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--ink-2);
}

.pdp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.pdp-actions > .btn {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 130px;
}

.pdp-actions > .btn--ghost {
    background: var(--surface);
    border-color: var(--line-strong);
}

.pdp-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1px;
    margin: 18px 0 0;
    padding: 0;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
}

.pdp-spec {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 12px;
    background: var(--surface);
}

.pdp-spec dt {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--faint);
}

.pdp-spec dd {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
    word-break: break-word;
}

.pdp-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 14px;
    font-size: 0.76rem;
    color: var(--muted);
}

.pdp-trust span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.pdp-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 20px;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 22px 20px 0;
    align-items: start;
}

.pdp-main {
    min-width: 0;
}

.pdp-side {
    position: sticky;
    top: calc(var(--header-h) + 14px);
}

.pdp-note {
    margin: 14px 0 0;
    padding: 10px 12px;
    border-radius: var(--r-sm);
    background: var(--amber-soft);
    color: var(--amber);
    font-size: 0.8rem;
}

.pdp-maplink {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.report-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.steps__item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.steps__item:first-child {
    border-top: 0;
    padding-top: 0;
}

.steps__num {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: var(--r-sm);
    background: var(--brand-soft);
    color: var(--brand-strong);
    font-size: 0.76rem;
    font-weight: 700;
}

.steps__item strong {
    display: block;
    font-size: 0.86rem;
    color: var(--ink);
    margin-bottom: 3px;
}

.steps__item p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--ink-3);
}

.seller-card__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.seller-card__avatar {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--r-pill);
    background: var(--brand);
    color: var(--on-brand);
    font-size: 1rem;
    font-weight: 700;
}

.seller-card__name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ink);
}

.seller-card__meta,
.seller-card__count {
    font-size: 0.76rem;
    color: var(--muted);
}

.seller-card__count {
    margin: 0 0 10px;
}

.seller-card__contact {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 0;
    border-top: 1px solid var(--line);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-2);
    text-decoration: none;
    word-break: break-word;
}

.seller-card__contact:hover {
    color: var(--brand);
}

.seller-card__contact svg {
    color: var(--brand);
    flex: none;
}

.section--related {
    padding-top: 26px;
}

@media (max-width: 1040px) {
    .pdp,
    .pdp-body {
        grid-template-columns: minmax(0, 1fr);
    }

    .pdp__media,
    .pdp-side {
        position: static;
    }

    .pdp-gallery__stage {
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 640px) {
    .pdp,
    .pdp-body {
        padding-left: 14px;
        padding-right: 14px;
    }

    .crumbs {
        padding-left: 14px;
        padding-right: 14px;
    }

    .pdp-gallery {
        padding: 7px;
    }

    .pdp-thumbs {
        grid-template-columns: repeat(auto-fill, minmax(54px, 1fr));
    }

    .pdp-actions > .btn {
        flex: 1 1 100%;
    }

    .pdp-specs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .panel {
        padding: 15px;
    }
}
