/* Public vendor profile (pages/public-vendor-profile.php). Builds on home-page.css (.bh, .bh-card). */
.vp {
    --vp-brand: #021A54;
    --vp-radius: 16px;
    background: #f4f6fb;
    padding-bottom: 48px;
    overflow-x: clip;
}

.vp-sr {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- Hero ---------- */
.vp-hero {
    position: relative;
    background: #fff;
    border-bottom: 1px solid var(--bh-line);
}

.vp-cover {
    height: 230px;
    background: linear-gradient(120deg, var(--vp-brand) 0%, #0b2f86 60%, #f97316 160%);
    overflow: hidden;
}

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

.vp-cover--plain {
    background:
        radial-gradient(circle at 85% 20%, rgba(249, 115, 22, .55), transparent 40%),
        radial-gradient(circle at 10% 90%, rgba(255, 255, 255, .12), transparent 35%),
        linear-gradient(120deg, var(--vp-brand) 0%, #0b2f86 100%);
}

.vp-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 20px;
    align-items: end;
    margin-top: -56px;
    position: relative;
}

.vp-logo {
    width: 128px;
    height: 128px;
    border-radius: 24px;
    background: #fff;
    border: 4px solid #fff;
    box-shadow: 0 12px 30px rgba(2, 26, 84, .18);
    overflow: hidden;
    display: grid;
    place-items: center;
}

.vp-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vp-logo span {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--vp-brand), #0b2f86);
    color: #fff;
    font: 800 42px/1 "Plus Jakarta Sans", Poppins, sans-serif;
    letter-spacing: 1px;
}

/* Name and buttons start below the cover; only the logo overlaps it. */
.vp-id,
.vp-actions {
    align-self: start;
    margin-top: 70px;
}

.vp-id {
    min-width: 0;
}

.vp-id h1 {
    margin: 0 0 4px;
    font: 800 30px/1.15 "Plus Jakarta Sans", Poppins, sans-serif;
    color: var(--bh-ink);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    overflow-wrap: anywhere;
}

.vp-verified {
    color: #1d9bf0;
    font-size: 22px;
    line-height: 1;
}

.vp-tagline {
    margin: 0 0 6px;
    color: var(--bh-muted);
    font-size: 15px;
}

.vp-facts {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    font-size: 13.5px;
    color: var(--bh-muted);
}

.vp-facts i {
    color: #94a3b8;
    margin-right: 3px;
}

.vp-facts a {
    color: var(--bh-navy-2);
    font-weight: 600;
    text-decoration: none;
}

.vp-rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--bh-muted);
    text-decoration: none;
}

.vp-rating strong {
    color: var(--bh-ink);
}

.vp-stars {
    color: #f59e0b;
    font-size: 13px;
    letter-spacing: 1px;
    white-space: nowrap;
}

.vp-stars .far {
    color: #cbd5e1;
}

/* ---------- Buttons ---------- */
.vp-actions {
    display: flex;
    gap: 8px;
    padding-bottom: 6px;
}

.vp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--bh-line);
    border-radius: 12px !important;
    background: #fff;
    color: var(--bh-ink);
    font: 600 14px/1 Poppins, sans-serif;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s;
}

.vp-btn:hover {
    border-color: #cbd5e1;
    background: var(--bh-soft);
    color: var(--bh-ink);
}

.vp-btn:focus-visible {
    outline: 3px solid rgba(249, 115, 22, .35);
    outline-offset: 2px;
}

.vp-btn:disabled {
    opacity: .6;
    cursor: wait;
}

.vp-btn--primary {
    background: var(--bh-orange);
    border-color: var(--bh-orange);
    color: #fff;
}

.vp-btn--primary:hover {
    background: var(--bh-orange-2);
    border-color: var(--bh-orange-2);
    color: #fff;
}

.vp-btn.is-on {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: var(--bh-green);
}

.vp-btn--icon {
    width: 44px;
    padding: 0;
}

.vp-phone-only {
    display: none;
}

.vp-btn--wide {
    width: 100%;
    margin-top: 14px;
}

/* ---------- Stats ---------- */
.vp-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 22px 0 0;
    border-top: 1px solid var(--bh-line);
}

.vp-stats div {
    padding: 14px 8px 16px;
    text-align: center;
}

.vp-stats div + div {
    border-left: 1px solid var(--bh-line);
}

.vp-stats dt {
    font-size: 12px;
    color: var(--bh-muted);
    margin: 0 0 4px;
}

.vp-stats dd {
    margin: 0;
    font: 800 22px/1.1 "Plus Jakarta Sans", Poppins, sans-serif;
    color: var(--bh-ink);
}

.vp-stats small {
    font-size: 13px;
    color: var(--bh-muted);
    font-weight: 600;
}

/* ---------- Section tabs ---------- */
.vp-tabs {
    position: sticky;
    top: var(--bnav-offset, 0px);
    z-index: 20;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--bh-line);
}

.vp-tabs .bh-wrap {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.vp-tabs .bh-wrap::-webkit-scrollbar {
    display: none;
}

.vp-tabs a {
    flex: 0 0 auto;
    padding: 14px 14px 12px;
    border-bottom: 3px solid transparent;
    color: var(--bh-muted);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.vp-tabs a span {
    margin-left: 4px;
    padding: 1px 8px;
    border-radius: 999px;
    background: #eef2f7;
    font-size: 12px;
    color: var(--bh-muted);
}

.vp-tabs a:hover,
.vp-tabs a.is-active {
    color: var(--bh-navy);
    border-bottom-color: var(--bh-orange);
}

/* ---------- Layout ---------- */
.vp-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
    margin-top: 24px;
}

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

.vp-section {
    margin-bottom: 32px;
    scroll-margin-top: calc(var(--bnav-offset, 0px) + 64px);
}

.vp-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.vp-section__head h2 {
    margin: 0;
    font: 800 21px/1.2 "Plus Jakarta Sans", Poppins, sans-serif;
    color: var(--bh-ink);
}

.vp-section__head p {
    margin: 0;
    flex-basis: 100%;
    color: var(--bh-muted);
    font-size: 14px;
}

.vp-panel {
    background: #fff;
    border: 1px solid var(--bh-line);
    border-radius: var(--vp-radius);
    padding: 20px;
}

.vp-muted,
.vp-note {
    color: var(--bh-muted);
    font-size: 14px;
    margin: 0;
}

.vp-note {
    margin: -4px 0 12px;
}

.vp-note a {
    margin-left: 8px;
    color: var(--bh-orange-2);
    font-weight: 600;
}

/* ---------- Shop ---------- */
.vp-shopbar {
    display: flex;
    gap: 8px;
    min-width: 0;
    flex: 1 1 320px;
    max-width: 480px;
}

.vp-search {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    min-height: 42px;
    border: 1px solid var(--bh-line);
    border-radius: 12px;
    background: #fff;
    color: #94a3b8;
}

.vp-search input {
    flex: 1;
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font: 14px Poppins, sans-serif;
    color: var(--bh-ink);
}

.vp-search:focus-within {
    border-color: var(--bh-orange);
}

.vp-shopbar select {
    min-height: 42px;
    max-width: 170px;
    padding: 0 10px;
    border: 1px solid var(--bh-line);
    border-radius: 12px;
    background: #fff;
    font: 14px Poppins, sans-serif;
    color: var(--bh-ink);
}

.vp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
}

.vp-grid .bh-card {
    min-width: 0;
    width: auto;
}

.vp-pages {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
}

.vp-pages a {
    min-width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0 10px;
    border: 1px solid var(--bh-line);
    border-radius: 10px;
    background: #fff;
    color: var(--bh-ink);
    font-weight: 600;
    text-decoration: none;
}

.vp-pages a.is-active {
    background: var(--bh-navy);
    border-color: var(--bh-navy);
    color: #fff;
}

.vp-empty {
    text-align: center;
    padding: 36px 20px;
    color: var(--bh-muted);
}

.vp-empty > i {
    font-size: 30px;
    color: #cbd5e1;
}

.vp-empty p {
    margin: 10px 0 0;
}

.vp-empty .vp-btn {
    margin-top: 14px;
}

/* ---------- About ---------- */
.vp-about {
    color: #334155;
    line-height: 1.7;
    font-size: 15px;
    max-height: 9.5em;
    overflow: hidden;
    position: relative;
}

.vp-about:not(.is-open)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3em;
    background: linear-gradient(rgba(255, 255, 255, 0), #fff);
    pointer-events: none;
}

.vp-about.is-open {
    max-height: none;
}

.vp-about > :first-child {
    margin-top: 0;
}

.vp-about > :last-child {
    margin-bottom: 0;
}

.vp-more {
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--bh-orange-2);
    font: 600 14px Poppins, sans-serif;
    cursor: pointer;
}

.vp-more[hidden] {
    display: none;
}

.vp-policies {
    margin-top: 18px;
    display: grid;
    gap: 10px;
}

.vp-policy {
    border: 1px solid var(--bh-line);
    border-radius: 12px;
    background: var(--bh-soft);
}

.vp-policy summary {
    padding: 13px 16px;
    font-weight: 600;
    cursor: pointer;
    color: var(--bh-ink);
}

.vp-policy summary i {
    color: var(--bh-orange);
    width: 20px;
}

.vp-policy > div {
    padding: 0 16px 14px;
    color: #334155;
    font-size: 14px;
    line-height: 1.6;
}

/* ---------- Reviews ---------- */
.vp-summary {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    margin-bottom: 14px;
}

.vp-summary__score {
    text-align: center;
    display: grid;
    gap: 6px;
    justify-items: center;
}

.vp-summary__score strong {
    font: 800 44px/1 "Plus Jakarta Sans", Poppins, sans-serif;
    color: var(--bh-ink);
}

.vp-summary__score > span:last-child {
    font-size: 13px;
    color: var(--bh-muted);
}

.vp-summary__bars {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 7px;
}

.vp-summary__bars li {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 28px;
    gap: 10px;
    align-items: center;
    font-size: 13px;
    color: var(--bh-muted);
}

.vp-summary__bars i {
    color: #f59e0b;
    font-size: 11px;
}

.vp-summary__bars li > span:last-child {
    text-align: right;
}

.vp-bar {
    height: 8px;
    border-radius: 999px;
    background: #eef2f7;
    overflow: hidden;
}

.vp-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: #f59e0b;
}

.vp-reviews {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.vp-review {
    background: #fff;
    border: 1px solid var(--bh-line);
    border-radius: var(--vp-radius);
    padding: 16px 18px;
}

.vp-review__top {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.vp-review__top > div {
    flex: 1 1 180px;
    min-width: 0;
}

.vp-review__meta time {
    white-space: nowrap;
}

.vp-review__top strong {
    display: block;
    color: var(--bh-ink);
    font-size: 14.5px;
}

.vp-review__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--bh-muted);
}

.vp-avatar {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e0e7ff;
    color: var(--bh-navy-2);
    font-weight: 700;
}

.vp-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #ecfdf5;
    color: var(--bh-green);
    font-size: 12px;
    font-weight: 600;
}

.vp-review h3 {
    margin: 12px 0 4px;
    font-size: 15px;
    color: var(--bh-ink);
}

.vp-review p {
    margin: 8px 0 0;
    color: #334155;
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.vp-review__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    margin-top: 10px;
    padding: 5px 10px;
    border-radius: 8px;
    background: var(--bh-soft);
    color: var(--bh-muted);
    font-size: 12.5px;
    text-decoration: none;
}

.vp-review__item span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vp-review {
    min-width: 0;
}

.vp-reply {
    margin-top: 12px;
    padding: 10px 14px;
    border-left: 3px solid var(--bh-orange);
    border-radius: 0 10px 10px 0;
    background: #fff7ed;
    font-size: 13.5px;
}

.vp-reply p {
    margin-top: 4px;
}

/* ---------- Side column ---------- */
.vp-side {
    display: grid;
    gap: 16px;
    position: sticky;
    top: calc(var(--bnav-offset, 0px) + 64px);
}

.vp-side__title {
    margin: 0 0 12px;
    font: 800 16px/1.2 "Plus Jakarta Sans", Poppins, sans-serif;
    color: var(--bh-ink);
}

.vp-trust,
.vp-contact {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.vp-trust li {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.vp-trust li > i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #eef2ff;
    color: var(--bh-navy-2);
}

.vp-trust strong {
    display: block;
    font-size: 14px;
    color: var(--bh-ink);
}

.vp-trust span {
    font-size: 13px;
    color: var(--bh-muted);
    line-height: 1.45;
}

.vp-contact {
    gap: 10px;
}

.vp-contact a,
.vp-contact span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #334155;
    font-size: 14px;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.vp-contact a:hover {
    color: var(--bh-orange-2);
}

.vp-contact i {
    width: 18px;
    color: #94a3b8;
    text-align: center;
}

.vp-contact .fa-whatsapp {
    color: #25d366;
}

.vp-report {
    margin: 0;
    font-size: 12.5px;
    color: var(--bh-muted);
    text-align: center;
}

.vp-report a {
    color: var(--bh-muted);
    text-decoration: underline;
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
    .vp-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .vp-side {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .vp-report {
        grid-column: 1 / -1;
    }
}

/* ---------- Phone ---------- */
@media (max-width: 768px) {
    .vp {
        padding-bottom: 24px;
    }

    .vp-cover {
        height: 112px;
    }

    /* Logo beside the name, all buttons in one row underneath: nothing is hidden. */
    .vp-head {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 10px 12px;
        margin-top: -34px;
        align-items: end;
    }

    .vp-logo {
        width: 72px;
        height: 72px;
        border-radius: 16px;
        border-width: 3px;
    }

    .vp-logo span {
        font-size: 24px;
    }

    .vp-id,
    .vp-actions {
        margin-top: 0;
    }

    /* Starts just below the cover (the head is pulled up 34px over it); only the logo overlaps. */
    .vp-id {
        align-self: start;
        margin-top: 42px;
    }

    .vp-id h1 {
        font-size: 19px;
        gap: 6px;
        margin-bottom: 2px;
    }

    .vp-verified {
        font-size: 16px;
    }

    .vp-tagline {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .vp-facts {
        grid-column: 1 / -1;
        gap: 2px 12px;
        font-size: 12px;
        margin-bottom: 4px;
    }

    .vp-rating {
        font-size: 12.5px;
        gap: 6px;
    }

    .vp-stars {
        font-size: 11px;
    }

    .vp-actions {
        grid-column: 1 / -1;
        display: flex;
        gap: 6px;
        padding-bottom: 0;
    }

    .vp-actions .vp-btn {
        min-height: 40px;
        padding: 0 12px;
        font-size: 13px;
        flex: 0 0 auto;
    }

    .vp-actions .vp-btn--primary {
        flex: 1 1 auto;
        min-width: 0;
    }

    .vp-actions .vp-btn--icon {
        width: 40px;
        padding: 0;
    }

    .vp-phone-only {
        display: inline-flex;
    }

    .vp-btn--wa .fa-whatsapp {
        color: #25d366;
        font-size: 17px;
    }

    .vp-stats {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        margin-top: 12px;
    }

    .vp-stats div {
        padding: 9px 2px 10px;
    }

    .vp-stats dt {
        font-size: 10.5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .vp-stats dd {
        font-size: 16px;
    }

    .vp-stats small {
        font-size: 11px;
    }

    .vp-tabs .bh-wrap {
        gap: 0;
        justify-content: space-between;
    }

    .vp-tabs a {
        padding: 11px 6px 9px;
        font-size: 13px;
    }

    .vp-tabs a span {
        margin-left: 2px;
        padding: 0 6px;
        font-size: 11px;
    }

    .vp-layout {
        margin-top: 14px;
        gap: 14px;
    }

    .vp-section {
        margin-bottom: 20px;
    }

    .vp-section__head {
        margin-bottom: 10px;
    }

    .vp-section__head h2 {
        font-size: 17px;
    }

    .vp-shopbar {
        flex-basis: 100%;
        max-width: none;
    }

    .vp-shopbar select {
        max-width: 140px;
    }

    .vp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .vp-panel {
        padding: 16px;
    }

    .vp-summary {
        grid-template-columns: 100px minmax(0, 1fr);
        gap: 14px;
    }

    .vp-summary__score strong {
        font-size: 34px;
    }

    .vp-side {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .vp-review {
        padding: 14px;
    }

    .vp-trust {
        gap: 10px;
    }
}

@media (max-width: 380px) {
    .vp-shopbar select {
        max-width: 112px;
    }

    /* Narrow phones: Follow shows only its icon so every button still fits. */
    .vp-actions [data-vp-follow] span,
    .vp-actions a[href*="login.php"]:not(.vp-btn--primary) {
        font-size: 0;
        gap: 0;
    }

    .vp-actions [data-vp-follow],
    .vp-actions a[href*="login.php"]:not(.vp-btn--primary) {
        width: 40px;
        padding: 0;
    }

    .vp-actions a[href*="login.php"]:not(.vp-btn--primary) i {
        font-size: 14px;
    }
}
