/* ════════════════════════════════════════════════════════════════════════
   seller.css — merchant brand mark (header/footer, _Layout.cshtml) + the
   seller block/line (Pages/Shared/_SellerBlock.cshtml).

   ONE markup (_SellerBlock.cshtml renders a single ".seller-block" tree),
   TWO contexts:
     · Product page  — ".pdp-panel .seller-block"        → full block
     · Product card  — ".product-card__seller .seller-block" → compact row
   No component duplication (Q9) — this file is what tells the same markup
   to look different per context.

   Tokens only — every color/spacing/radius/type value below resolves through
   tokens.css/theme.css custom properties, never a literal hex (Q24 — zero
   hardcoded colour outside the design system).
   ════════════════════════════════════════════════════════════════════════ */

/* ── Header/footer brand logo — sibling of .brand__mark (layout.css); same
      box, an <img> instead of a letter, shown only when the merchant has a
      real logo (_Layout.cshtml swaps between the two, never both). ────── */
.brand__logo {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    object-fit: cover;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    background: var(--paper);
}

/* ── Seller block — full (product page) ──────────────────────────────────
   Default shape of the shared markup; the compact card override below
   restyles the SAME classes rather than introducing new ones. ─────────── */
.seller-block {
    margin-top: var(--space-4);
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    border: 1px solid var(--line);
    border-radius: var(--card-radius, var(--radius-md));
    background: var(--paper-muted);
}

.seller-block__eyebrow {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--ink-soft);
}

.seller-block__identity {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
    color: var(--ink);
    min-width: 0;
}

.seller-block__logo {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    background: var(--paper);
}

.seller-block__mark {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--brand);
    color: var(--brand-text);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-family: var(--font-display);
    font-weight: var(--weight-bold);
    font-size: 1rem;
}

.seller-block__name {
    font-weight: var(--weight-semibold);
    font-size: var(--text-md);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.seller-block__identity:hover .seller-block__name,
.seller-block__link:hover {
    color: var(--brand);
}

.seller-block__count {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--ink-soft);
}

.seller-block__link {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--brand);
    text-decoration: none;
    width: fit-content;
}

.seller-block__link:hover {
    text-decoration: underline;
}

/* ── Seller line — compact (product card) ─────────────────────────────────
   The stretched ".product-card__link" (components.css) covers the whole
   card; ".product-card__body" turns pointer-events off for everything
   inside it EXCEPT the controls that opt back in (".product-card__cta" is
   one such control, in the media area) — this wrapper opts the seller line
   back in the same way, so its link stays reachable instead of silently
   falling through to the card's own link (same product page). ─────────── */
.product-card__seller {
    pointer-events: auto;
    margin-top: var(--space-1);
}

.product-card__seller .seller-block {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-1) var(--space-2);
    padding: 0;
    margin-top: 0;
    border: none;
    background: transparent;
}

.product-card__seller .seller-block__eyebrow,
.product-card__seller .seller-block__link,
.product-card__seller .seller-block__count-suffix {
    display: none;
}

.product-card__seller .seller-block__identity {
    gap: var(--space-1);
}

.product-card__seller .seller-block__logo,
.product-card__seller .seller-block__mark {
    width: 18px;
    height: 18px;
    font-size: .65rem;
    border-radius: var(--radius-sm);
}

.product-card__seller .seller-block__name {
    font-size: var(--text-sm);
    font-weight: var(--weight-regular);
    color: var(--ink-soft);
    max-width: 12rem;
}

.product-card__seller .seller-block__identity:hover .seller-block__name {
    color: var(--brand);
    text-decoration: underline;
}

.product-card__seller .seller-block__count {
    font-size: var(--text-sm);
    color: var(--ink-faint);
}
