/* Shared vendor card (product page + vendor profile) */
.pd-vendor-shell {
    --pd-line: #e8eaee;
    --pd-brand-dark: #62a832;
    background: #fff;
    border: 1px solid var(--pd-line);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(17, 24, 39, .07);
}

.pd-vendor {
    position: relative;
    padding: 1.05rem 1rem 1rem;
    overflow: visible;
}
.pd-vendor-top {
    display: flex;
    align-items: center;
    gap: .85rem;
}
.pd-vendor-logo {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    flex: 0 0 auto;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #1f2937, #374151);
    box-shadow: 0 10px 22px rgba(24, 24, 27, .16);
    text-decoration: none;
    transition: transform .2s ease;
}
.pd-vendor-logo:hover { transform: translateY(-2px) scale(1.03); }
.pd-vendor-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pd-vendor-logo-fallback {
    color: #fff;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -.02em;
}
.pd-vendor-identity { min-width: 0; flex: 1; }
.pd-vendor-name-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .3rem;
}
.pd-vendor-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #3f3f46;
    text-decoration: none;
    line-height: 1.25;
}
.pd-vendor-name:hover { color: var(--pd-brand-dark, #62a832); }
.pd-vendor-tagline {
    margin: .28rem 0 0;
    color: #9ca3af;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.55;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pd-vendor-response {
    margin-top: .9rem;
    display: flex;
    align-items: center;
    gap: .45rem;
    background: #f3f4f6;
    border-radius: 999px;
    padding: .55rem .85rem;
    color: #6b7280;
    position: relative;
    overflow: hidden;
}
.pd-vendor-response::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 -40%;
    width: 40%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
    transform: skewX(-18deg);
    opacity: 0;
}
.pd-vendor.is-shimmer .pd-vendor-response::after {
    animation: pdVendorShimmer 1.1s ease;
}
@keyframes pdVendorShimmer {
    0% { left: -40%; opacity: 0; }
    30% { opacity: 1; }
    100% { left: 110%; opacity: 0; }
}
.pd-vendor-response-ico {
    display: grid;
    place-items: center;
    color: #9ca3af;
    flex: 0 0 auto;
}
.pd-vendor-response-text {
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.4;
}
.pd-vendor-response-text b {
    color: #3f3f46;
    font-weight: 800;
}

.pd-vendor-badges {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: .45rem .5rem;
    margin-top: 1rem;
    padding: .15rem .2rem .35rem;
}
.pd-vbadge {
    position: relative;
    border: 0;
    background: transparent;
    padding: .15rem;
    cursor: pointer;
    transition: transform .18s cubic-bezier(.2,.9,.3,1.2);
}
.pd-vbadge:hover,
.pd-vbadge:focus-visible {
    transform: translateY(-4px) scale(1.08);
    outline: none;
}
.pd-vbadge-ico {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
}
.pd-vbadge-ico svg {
    width: 100%;
    height: 100%;
    display: block;
}
.pd-vbadge-medal .pd-vbadge-ico.emoji {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(180deg, #fff, #f4f4f5);
    border: 1px solid #e4e4e7;
    box-shadow: 0 4px 10px rgba(24, 24, 27, .06);
    font-size: 1.25rem;
    line-height: 1;
}
.pd-vbadge-medal:hover .pd-vbadge-ico.emoji {
    border-color: #d4d4d8;
    background: #fff;
}
.pd-vbadge-pill {
    position: absolute;
    top: -4px;
    left: -2px;
    min-width: 1.35rem;
    padding: .12rem .35rem;
    border-radius: 999px;
    background: #22c55e;
    color: #fff;
    font-size: .62rem;
    font-weight: 800;
    line-height: 1.2;
    box-shadow: 0 4px 10px rgba(34, 197, 94, .35);
    direction: ltr;
    z-index: 1;
}

.pd-vendor-meta-line {
    margin-top: .75rem;
    text-align: center;
    color: #a1a1aa;
    font-size: .76rem;
    font-weight: 700;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .35rem;
}
.pd-vendor-meta-line .dot { opacity: .55; }

.pd-vendor-actions {
    display: flex;
    gap: .45rem;
    margin-top: .85rem;
    flex-wrap: wrap;
}
.pd-vendor-follow-form {
    flex: 1;
    margin: 0;
    min-width: 110px;
}
.pd-vendor-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 110px;
    min-height: 40px;
    padding: .55rem .7rem;
    border-radius: 11px;
    font: inherit;
    font-size: .84rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .15s ease, filter .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.pd-vendor-btn:hover { transform: translateY(-1px); }
.pd-vendor-btn.ghost {
    background: #fff;
    border-color: var(--pd-line, #e8eaee);
    color: #3f3f46;
}
.pd-vendor-btn.ghost:hover {
    border-color: #d4d4d8;
    background: #fafafa;
}
.pd-vendor-btn.primary {
    background: #18181b;
    color: #fff;
    box-shadow: 0 8px 18px rgba(24, 24, 27, .16);
}
.pd-vendor-btn.primary:hover { filter: brightness(1.08); }
.pd-vendor-btn.is-following {
    width: 100%;
    background: #f4f4f5;
    border-color: #e4e4e7;
    color: #52525b;
}
.pd-vendor-btn.is-following:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.pd-vendor-btn.is-disabled,
.pd-vendor-btn[aria-disabled="true"] {
    opacity: .72;
    cursor: default;
    pointer-events: none;
    transform: none !important;
}

.pd-vendor-tip {
    position: absolute;
    z-index: 5;
    bottom: calc(100% - .35rem);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #18181b;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: .4rem .65rem;
    border-radius: 9px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    box-shadow: 0 10px 24px rgba(0,0,0,.18);
    transition: opacity .15s ease, transform .15s ease;
}
.pd-vendor-tip.is-on {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.pd-vendor-tip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border: 5px solid transparent;
    border-top-color: #18181b;
}
