/* Vendor pages (decided 2026-11-01): the directory of vendors selling to the company
   (#vendors), a vendor's page with its details above its listings (#vendors/<id>), and
   the links that lead there: "Sold by" on cards and listing pages, cart vendor groups,
   and Vendors in the Shop menu. */

/* Links to a vendor's page. */
.vendor-link { color: inherit; text-decoration: underline; text-decoration-color: #c9c9c9; text-underline-offset: 2px; }
.vendor-link:hover { color: #1f1f1f; text-decoration-color: currentColor; }
.cart-vendor-header h2 .cart-vendor-link { min-width: 0; color: inherit; text-decoration: underline; text-decoration-color: #c9c9c9; text-underline-offset: 3px; }
.cart-vendor-header h2 .cart-vendor-link:hover { text-decoration-color: currentColor; }
.header-dropdown > a + .shop-menu-vendors { position: relative; margin-top: 9px; }
.header-dropdown > a + .shop-menu-vendors::before { content: ''; position: absolute; top: -5px; left: 4px; right: 4px; border-top: 1px solid #ececec; }
.navigation-vendors { position: relative; min-height: 44px; margin-top: 9px; padding: 10px 12px; font-size: 14px; font-weight: 500; }
.navigation-vendors .icon { width: 20px; height: 20px; }
.navigation-vendors::before { content: ''; position: absolute; top: -5px; left: 12px; right: 12px; border-top: 1px solid #ececec; }
.navigation-vendors[aria-current] { background: #ededed; color: #111; }

/* Initials stand for the vendor. */
.vendor-avatar { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: #ececec; color: #3d3d3d; font-size: 15px; font-weight: 650; letter-spacing: .3px; }
.vendor-avatar.is-large { flex-basis: 64px; width: 64px; height: 64px; font-size: 22px; }
.vendor-location { margin: 2px 0 0; color: #6b6b6b; font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }

/* The directory. */
.vendors-page { width: 100%; max-width: 1184px; margin: 8px auto 48px; color: #252525; }
.vendors-page .product-breadcrumb { margin-bottom: 24px; }
.vendors-heading { margin: 0 0 20px; }
.vendors-heading h1 { margin: 0; color: #171717; font-size: clamp(26px, 3vw, 32px); font-weight: 650; letter-spacing: -.8px; line-height: 1.2; }
.vendors-heading p { margin: 8px 0 0; color: #6b6b6b; font-size: 14px; line-height: 22px; }
.vendor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.vendor-card { position: relative; display: flex; flex-direction: column; gap: 16px; min-width: 0; margin: 0; padding: 18px; border: 1px solid #e2e2e2; border-radius: 12px; background: #fff; box-shadow: 0 1px 3px #00000006; transition: border-color .15s, box-shadow .15s; }
.vendor-card:hover { border-color: #bdbdbd; box-shadow: 0 6px 18px #0000000d; }
.vendor-card:focus-within { border-color: #8f8f8f; }
.vendor-card-heading { display: flex; align-items: center; gap: 12px; min-width: 0; }
.vendor-card-title { min-width: 0; }
.vendor-card-title h2 { margin: 0; color: #1f1f1f; font-size: 16px; font-weight: 600; letter-spacing: -.2px; line-height: 22px; overflow-wrap: anywhere; }
/* The whole card opens the vendor's page. */
.vendor-card-link::after { content: ''; position: absolute; inset: 0; border-radius: 12px; }
.vendor-card-link:focus-visible { outline: 0; }
.vendor-card-link:focus-visible::after { outline: 2px solid #2463c5; outline-offset: 2px; }
.vendor-card-facts { display: grid; gap: 8px; margin: 0; padding: 14px 0 0; border-top: 1px solid #efefef; }
.vendor-card-facts > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0; }
.vendor-card-facts dt { flex: 0 0 auto; color: #6b6b6b; font-size: 13px; line-height: 20px; }
.vendor-card-facts dd { min-width: 0; margin: 0; color: #262626; font-size: 13px; font-weight: 550; line-height: 20px; text-align: right; overflow-wrap: anywhere; }

/* A vendor's page: its details above its listings, in the catalog's layout. */
.portal-workspace-shell:has(.vendor-page) { background: #fff; }
.vendor-page .vendor-hero { padding: 20px 32px 0; background: #fff; }
.vendor-page .product-breadcrumb { margin: 0 0 20px; }
.vendor-hero-main { display: flex; align-items: center; gap: 16px; min-width: 0; }
.vendor-hero-title { flex: 1 1 auto; min-width: 0; }
.vendor-hero-title h1 { margin: 0; color: #171717; font-size: clamp(26px, 3vw, 34px); font-weight: 650; letter-spacing: -.9px; line-height: 1.18; overflow-wrap: anywhere; }
.vendor-hero-title .vendor-location { font-size: 14px; }
.vendor-message { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: 0 0 auto; min-height: 44px; margin: 0; padding: 9px 18px; border: 1px solid #1c1c1c; border-radius: 8px; background: #1c1c1c; color: #fff; font-size: 14px; font-weight: 600; line-height: 22px; }
.vendor-message:hover { border-color: #373737; background: #373737; }
.vendor-message .icon { width: 18px; height: 18px; }
.vendor-hero-details { display: grid; grid-template-columns: minmax(0, 600px) minmax(280px, 460px); justify-content: start; align-items: start; gap: 20px 64px; margin-top: 20px; padding-bottom: 24px; border-bottom: 1px solid #e9e9e9; }
.vendor-hero-details.no-about { grid-template-columns: minmax(0, 600px); }
.vendor-about { min-width: 0; }
.vendor-about p { margin: 0 0 10px; color: #3a3a3a; font-size: 14px; line-height: 22px; white-space: pre-line; overflow-wrap: anywhere; }
.vendor-about p:last-child { margin-bottom: 0; }
.vendor-facts { display: grid; gap: 12px; min-width: 0; margin: 0; }
.vendor-facts > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: baseline; gap: 16px; }
.vendor-facts dt { color: #6b6b6b; font-size: 13px; line-height: 21px; }
.vendor-facts dd { min-width: 0; margin: 0; color: #262626; font-size: 14px; line-height: 21px; overflow-wrap: anywhere; }
.vendor-fact-note { display: block; color: #6b6b6b; font-size: 13px; line-height: 20px; }
.vendor-listings-title { display: flex; align-items: baseline; gap: 10px; margin: 0; padding: 20px 0 6px; color: #222; font-size: 18px; font-weight: 600; letter-spacing: -.3px; line-height: 26px; }
.vendor-listings-title span { color: #737373; font-size: 13px; font-weight: 400; letter-spacing: 0; }
.vendor-page .vendor-empty { margin: 16px 32px 0; border: 1px solid #e9e9e9; border-radius: 12px; box-shadow: none; }
.vendor-page .vendor-empty .empty-state { padding: 56px 20px; border: 0; }
.vendor-page .vendor-empty .empty-state h2 { font-size: 22px; letter-spacing: -.5px; }

@media (min-width: 901px) {
  /* The filters stay beside the listings as on the catalog, below the vendor's details. */
  .vendor-page .catalog-layout { min-height: 0; border-top: 1px solid #e9e9e9; }
  .vendor-page .vendor-hero-details { border-bottom: 0; padding-bottom: 8px; }
  .vendor-page .vendor-listings-title { padding: 16px 0 14px; }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .vendor-page .vendor-hero { padding-left: 24px; padding-right: 24px; }
  .vendor-hero-details { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .vendors-page { margin: 0 auto 32px; padding: 0 var(--page-gutter); }
  .vendors-page .product-breadcrumb { margin: 14px 0 16px; font-size: 12px; }
  .vendors-heading { margin-bottom: 16px; }
  .vendors-page .product-detail-empty { margin: 32px 0; }
  .vendor-grid { gap: 12px; }
  .vendor-card { padding: 16px; }
  .vendor-page .vendor-hero { padding: 14px var(--page-gutter) 0; }
  .vendor-page .product-breadcrumb { margin: 0 0 16px; font-size: 12px; }
  .vendor-hero-main { flex-wrap: wrap; gap: 12px 14px; }
  .vendor-avatar.is-large { flex-basis: 52px; width: 52px; height: 52px; font-size: 18px; }
  .vendor-message { flex: 1 1 100%; min-height: 48px; font-size: 16px; }
  .vendor-hero-details { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 18px; padding-bottom: 18px; }
  .vendor-facts > div { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; }
  .vendor-listings-title { padding: 16px 0 10px; font-size: 17px; }
  .vendor-page .vendor-empty { margin: 0; border-width: 1px 0; border-radius: 0; }
}
@media (max-width: 360px) {
  .vendor-facts > div { grid-template-columns: 96px minmax(0, 1fr); }
}
