/* com_vendorstore: vendor storefront (view=store).
   Figma: Vendor Storefront Option A2 276:458, About Tab 396:987, Policies Tab 396:1162. Plan: notes/vendor-storefront-plan.md.

   Step 1 of the storefront build: the storefront-only rules moved here from site.css, unchanged (the old look).
   site.css still supplies the shared base (.vendorstore variables, .vs-btn, .vs-field, .vs-empty, .vs-sprout-mark),
   which the dashboard and product views use too. The next steps replace these rules with Figma ones on the
   foundation tokens (--sf-*), and the shared parts stop being needed by this view. */
/* ======================================================================================================
   Step 2: page frame, hero (banner and avatar) and identity block, from Figma (Option A2 276:458 and the
   About and Policies frames 396:987 and 396:1162, which agree with each other: banner flush under the
   header, identity block flush under the banner). Foundation tokens (--sf-*). Type styles switch at 48rem.
   Phones: no mobile frame yet, so sizes below 48rem are derived and shown for review (plan decision I).
   ====================================================================================================== */

/* Gantry's intro section paints its own grey and adds padding; the page sits on the Figma ground and starts
   exactly where the content says (same resets as the vendors directory). */
body:has(.vs-store) #g-page-surround,
body:has(.vs-store) #g-intro {
    background: var(--sf-color-ground-inverse);
}

body:has(.vs-store) #g-intro {
    padding-top: 0;
    padding-bottom: 0;
}

body:has(.vs-store) #g-intro .g-content {
    margin: 0;
    padding: 0;
}

body:has(.vs-store) #g-intro > .g-container {
    width: auto;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

body:has(.vs-store) #g-intro .platform-content,
body:has(.vs-store) #g-intro .platform-content > .row > .col {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

body:has(.vs-store) #g-intro .platform-content > .row {
    margin-left: 0;
    margin-right: 0;
}

.vendorstore.vs-store {
    /* Fill for a vendor without a banner or a logo. The same colour as --vs-dir-banner-empty in
       directory.css (the directory and the storefront use one fill; change both together, or move it to the
       foundation, which is a proposal and not done). */
    --vs-store-empty: #828b87;
    /* 1.29.0: a vendor who chose an accent colour gets it here instead (the template sets --vs-accent and friends on
       this element; StoreHelper::accentVars). Each use below falls back to the site's own colour. */
    --vs-store-gutter: 20px;
    --vs-avatar: 104px;
    --vs-avatar-overlap: 36px; /* how much of the avatar is over the banner (the rest hangs below it) */

    max-width: none;
    margin: 0;
    padding-bottom: var(--sf-space-4xl);
    color: var(--sf-color-ink-inverse);
}

@media (min-width: 48rem) {
    .vendorstore.vs-store {
        --vs-store-gutter: var(--sf-space-lg);
        --vs-avatar: 140px;
        --vs-avatar-overlap: 48px;
    }
}

.vs-store-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Banner: full bleed, 500 tall from 768 up (the designer's choice, 2026-10-09; Figma's frame is 381 at 1440 and it was
   240 before the redesign). On phones it is 40% of that, 200 (the designer tried 20% shorter, 400, then 40% of the
   500), linearly: 200 up to a 402 screen, then a straight line to 500 at 768 (slope 300 / 366 = 0.8197 per px), so it
   never jumps at a breakpoint. No overflow clipping: the avatar hangs over the bottom edge. */
.vs-store-banner {
    position: relative;
    height: clamp(200px, calc(200px + (100vw - 402px) * 0.8197), 500px);
    background: var(--vs-accent, var(--vs-store-empty)); /* shows only without a banner photo */
}

.vs-store-banner__img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Avatar: 140 with a 4px white ring, centred, 48 of it over the banner and 92 hanging below its bottom edge
   (the designer's request, 2026-10-09; the overlap was a third, 46.67, until it was snapped to whole numbers so the
   paddings are integers; Figma had it 16 above the edge). 104 on phones (derived): 36 over, 68 below. */
.vs-store-avatar {
    position: absolute;
    top: calc(100% - var(--vs-avatar-overlap));
    left: 50%;
    box-sizing: border-box;
    width: var(--vs-avatar);
    height: var(--vs-avatar);
    border: 4px solid var(--sf-color-ink-inverse);
    border-radius: 50%;
    background: var(--sf-color-ground-page);
    object-fit: cover;
    transform: translateX(-50%);
}

.vs-store-avatar--initial {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--vs-accent, var(--vs-store-empty));
    color: var(--vs-accent-ink, var(--sf-color-ink-inverse));
    font: var(--sf-type-mobile-heading-xl);
}

@media (min-width: 48rem) {
    .vs-store-avatar--initial {
        font: var(--sf-type-desktop-heading-xl);
    }
}

/* Identity block: 12 between the parts. Above the name: the part of the avatar that hangs below the banner's edge
   (92 on desktop, 68 on phones), so the padding is 92 + 24 = 116 (68 + 12 = 80 on phones), then the distance from the avatar's bottom to the name: 24 on desktop (space-lg) and 12 on
   phones (space-sm), rounded by the designer (2026-10-09; Figma had 67 and 48, then 47 and 28, then 23.5 and 14).
   Below the block: the distance to the tabs is 48 on desktop (space-2xl) and 40 on phones (no token for 40); the
   block owns the whole gap since step 3 replaced the old tab row. */
.vs-store-id {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sf-space-sm);
    padding: calc(var(--vs-avatar) - var(--vs-avatar-overlap) + var(--sf-space-sm)) var(--vs-store-gutter) 40px;
    text-align: center;
}

@media (min-width: 48rem) {
    .vs-store-id {
        padding-top: calc(var(--vs-avatar) - var(--vs-avatar-overlap) + var(--sf-space-lg));
        padding-bottom: var(--sf-space-2xl);
    }
}

/* Name row. Below 60rem the stamp sits under the name. From 60rem the name stays centred and the stamp hangs
   to its right, bottom aligned, 24 away (Figma A2: x 993, bottom 112.7 against the name box's 113); the name
   gives up 2 x (stamp + 24) of room so the pair never leaves the page. */
.vs-store-name-row {
    --vs-name-size: 30px;
    --vs-name-room: calc(100vw - 2 * var(--vs-store-gutter));

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sf-space-sm);
    max-width: 100%;
}

/* A name only breaks at spaces and hyphens: PHP writes the length of its longest word (--vs-name-word) and the
   name is made only as large as lets that word fit the room (0.62em per character is wide for this face),
   down to 18px. overflow-wrap is only the last resort. */
.vendorstore .vs-store-name {
    margin: 0;
    color: var(--sf-color-ink-inverse);
    font: var(--sf-type-mobile-heading-xl);
    font-size: max(18px, min(var(--vs-name-size), calc(var(--vs-name-room) / (var(--vs-name-word, 1) * 0.62))));
    overflow-wrap: break-word;
    text-transform: none;
}

.vs-store-stamp {
    display: block;
    width: 98.8px;
    height: auto;
}

@media (min-width: 48rem) {
    .vs-store-name-row {
        --vs-name-size: 56px;
    }

    .vendorstore .vs-store-name {
        font: var(--sf-type-desktop-vendor-name);
        font-size: max(18px, min(var(--vs-name-size), calc(var(--vs-name-room) / (var(--vs-name-word, 1) * 0.62))));
    }
}

@media (min-width: 60rem) {
    .vs-store-name-row {
        --vs-name-room: calc(100vw - 2 * var(--vs-store-gutter) - 2 * (98.8px + var(--sf-space-lg)));

        position: relative;
        display: block;
        width: fit-content;
        max-width: calc(100% - 2 * (98.8px + var(--sf-space-lg)));
        margin-right: auto;
        margin-left: auto;
    }

    .vs-store-stamp {
        position: absolute;
        bottom: 0;
        left: calc(100% + var(--sf-space-lg));
    }
}

.vendorstore .vs-store-tagline {
    max-width: 720px;
    margin: 0;
    color: var(--sf-color-ink-inverse);
    font: var(--sf-type-mobile-body-italic);
    overflow-wrap: break-word;
    text-wrap: balance;
}

@media (min-width: 48rem) {
    .vendorstore .vs-store-tagline {
        font: var(--sf-type-desktop-body-italic);
    }
}

/* Quicklinks (Vendor Quicklinks 395:991): outlined pills, 51 tall (49 on phones, Figma phone frames), 12 apart, 8 of padding above the row. Only
   the pills the vendor has; the row is not drawn when there are none (DEV NOTE 396:1657).
   Hover and focus are not in Figma: proposed here. Hover fills the pill with the accent green (the Login pill
   and Button / Primary use it); focus is the same 2px cream ring as the directory, offset 3. */
.vs-store-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--sf-space-sm);
    padding-top: var(--sf-space-xs);
}

.vs-store .vs-store-link {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    min-height: 49px;
    padding: 10px 20px;
    border: 1px solid var(--sf-color-ink-inverse);
    border-radius: var(--sf-radius-pill);
    color: var(--sf-color-ink-inverse);
    font: var(--sf-type-mobile-body);
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

@media (min-width: 48rem) {
    .vs-store .vs-store-link {
        min-height: 51px;
        font: var(--sf-type-desktop-body);
    }
}

.vs-store .vs-store-link:hover {
    border-color: var(--vs-accent, var(--sf-color-accent-green));
    background: var(--vs-accent, var(--sf-color-accent-green));
    color: var(--vs-accent-ink, var(--sf-color-ink-inverse));
    text-decoration: none;
}

.vs-store .vs-store-link:focus-visible {
    outline: 2px solid var(--sf-color-ground-cream);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .vs-store .vs-store-link {
        transition: none;
    }
}

/* ======================================================================================================
   Steps 3 and 4: the tab links and the product grid with its cards (Figma A2 276:458 and the Item Card
   238:189). The cards are the category page's cards (plg_system_siblecategory, .sib-card): the same photo box,
   the same fixed info block, the same hover. One card site-wide.
   ====================================================================================================== */

/* Tabs (Figma Tabs Row): Heading MD, 40 apart, the active tab white with a 56 wide 2px line 6 below it, the
   others line/default. Phones: Mobile Title 20 (Heading MD 28 from 48rem), the gap 12 at 320 and 16 at 402, one line
   at every phone width, each tab at least 44 tall and 56 wide (the underline). 24 under the row, then 8 of padding on the panel: 32 from the tab labels to the first row of
   pieces, the same as to the About card (the designer, 2026-10-09; it was 4 on Shop until then). Each tab is a real link; 44 tall. Phones: Mobile Heading MD, a smaller gap, wraps if it must. */
.vs-store-tabs {
    display: flex;
    /* At the default text size the labels and the gap are sized so four tabs fit on one line at 320 (271 of 280). With
       bigger text (a larger phone text setting, or a zoomed window) they wrap cleanly onto the next line instead of
       clipping or running off the side; every tab keeps its 44 tap target. */
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    /* 12 at 320 growing to 16 at 402 (and staying there) between tabs; 4 between lines when they wrap */
    gap: 4px clamp(12px, calc(12px + (100vw - 320px) * 0.0488), 16px);
    padding: 0 var(--vs-store-gutter) var(--vs-tabs-gap, var(--sf-space-lg));
}

.vs-store .vs-store-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-height: 44px; /* phones: a 44px tap target; from 48rem the tab is Figma's 42 (label, 6, line) */
    color: var(--sf-color-line-default);
    flex: 0 0 auto;
    font: var(--sf-type-mobile-title); /* 20: four labels on one line at 320 (24 needs 312 of the 280 there is) */
    text-decoration: none;
    /* Only the colour animates: the theme's own 0.2s on every link would also fade the focus ring in. */
    transition: color 0.15s ease;
}

.vs-store .vs-store-tab::after {
    content: "";
    width: 56px;
    height: 2px;
    border-radius: 1px;
    background: transparent;
}

.vs-store .vs-store-tab[aria-current="page"] {
    color: var(--sf-color-ink-inverse);
}

.vs-store .vs-store-tab[aria-current="page"]::after {
    background: var(--vs-accent-line, var(--sf-color-ink-inverse)); /* only set when the colour stands out on the dark ground */
}

/* Hover and focus (proposed, approved 2026-10-09): the label turns white; the same 2px cream ring as the pills. */
.vs-store .vs-store-tab:hover {
    color: var(--sf-color-ink-inverse);
    text-decoration: none;
}

.vs-store .vs-store-tab:focus-visible {
    outline: 2px solid var(--sf-color-ground-cream);
    outline-offset: 3px;
}

@media (min-width: 48rem) {
    .vs-store-tabs {
        column-gap: 40px;
    }

    .vs-store .vs-store-tab {
        min-height: 0;
        font: var(--sf-type-desktop-heading-md);
    }
}

/* Panels: only the open one shows. About, Policies and Contact are still the old look, in the old 1100 column. */
.vs-panel {
    display: none;
}

.vs-panel.is-active {
    display: block;
}

/* ======================================================================================================
   Steps 5 to 7: the paper cards (Figma About Tab 396:987, Policies Tab 396:1162, the review form 333:1154).
   A 1144 wide paper card, radius-md, with the rough edge: the paper sits on a ::before layer (paper.webp, exposure
   -0.07 so brightness 0.95) and the edge filter (#vs-paper-edge, emitted by the template) is applied to it alone,
   so the text stays crisp. Type: heading Heading Section 36 (Mobile 30) with a rule under it, body Body 20
   (Mobile 18), all ink/primary. 8 above the card (32 under the tabs), 120 under it to the footer (24 on top of the
   96 the page already has). Phones: no frame, derived (padding 32 and 24, the review form's phone padding is 28 / 20).
   ====================================================================================================== */

.vs-store-paperpanel {
    box-sizing: border-box;
    padding: var(--sf-space-xs) var(--vs-store-gutter) var(--sf-space-lg);
}

.vs-store-paper {
    --vs-paper-pad-y: 32px;
    --vs-paper-pad-x: 24px;

    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%; /* a card fills the column up to 1144 (the panel is a flex column when it holds several cards) */
    max-width: 1144px;
    margin: 0 auto;
    padding: var(--vs-paper-pad-y) var(--vs-paper-pad-x);
    color: var(--sf-color-ink-primary);
    font: var(--sf-type-mobile-body);
}

.vs-store-paper::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    border-radius: var(--sf-radius-md);
    background: var(--sf-color-ground-page) url("../../plg_system_siblefoundation/images/paper.webp") center / cover;
    filter: url("#vs-paper-edge") brightness(0.95);
}

@media (min-width: 48rem) {
    .vs-store-paper {
        --vs-paper-pad-y: 64px;
        --vs-paper-pad-x: 72px;

        font: var(--sf-type-desktop-body);
    }
}

.vendorstore .vs-store-paper__h {
    margin: 0;
    color: var(--sf-color-ink-primary);
    font: var(--sf-type-mobile-heading-section);
    text-transform: none;
}

@media (min-width: 48rem) {
    .vendorstore .vs-store-paper__h {
        font: var(--sf-type-desktop-heading-section);
    }
}

/* The rule under a heading: 1px ink/primary, 251 wide under "Meet the vendor" (Figma), 160 under the others. */
.vs-store-paper__rule {
    width: 160px;
    height: 0;
    border-top: 1px solid var(--sf-color-ink-primary);
}

.vs-store-paper__rule--about {
    width: 251px;
    max-width: 100%;
}

.vs-store-prose {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vendorstore .vs-store-prose p {
    margin: 0;
    overflow-wrap: break-word;
}

/* The bio and the policy text are capped at about 68 characters a line (the designer, 2026-10-09), left aligned in the
   full width card. */
.vs-store-paper--about .vs-store-prose,
.vs-store-paper--policy .vs-store-prose {
    max-width: 68ch;
}

/* A panel that the Commissions button focuses after it opens it is not a control: no ring around the whole panel. */
.vs-panel:focus {
    outline: none;
}

/* Several cards in one panel (Policies: the prose card, then Commissions): 40 apart (Figma Policies Content). */
.vs-store-paperpanel.is-active {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Policies card (Figma Paper Card / Shipping, now the one prose card): padding 44 and 48, 14 between the heading, the
   rule and the text, Heading Subsection 30 (Mobile Heading Section 30) and a 160 wide rule. */
.vs-store-paper--policy,
.vs-store-paper--commissions {
    --vs-paper-pad-y: 32px;
    --vs-paper-pad-x: 24px;

    gap: 14px;
}

@media (min-width: 48rem) {
    .vs-store-paper--policy,
    .vs-store-paper--commissions {
        --vs-paper-pad-y: 44px;
        --vs-paper-pad-x: 48px;
    }

    .vendorstore .vs-store-paper--policy .vs-store-paper__h,
    .vendorstore .vs-store-paper--commissions .vs-store-paper__h {
        font: var(--sf-type-desktop-heading-subsection);
    }
}

/* Commissions card (Figma Paper Card / Commissions): the text on the left (720 at most), the Light stamp at 184 x 75
   centred on the right, 107 between. Phones: stacked, the stamp under the text at 144 wide (derived). */
.vs-store-paper--commissions {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sf-space-lg);
}

.vs-store-commissions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    max-width: 720px;
}

.vendorstore .vs-store-commissions__body {
    margin: 0;
}

.vs-store-commissions__stamp {
    display: block;
    width: 144px;
    height: auto;
}

@media (min-width: 48rem) {
    .vs-store-paper--commissions {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 107px;
    }

    .vs-store-commissions {
        flex: 0 1 720px;
    }

    .vs-store-commissions__stamp {
        flex: 0 0 auto;
        width: 184px;
        margin-right: var(--sf-space-xl);
    }
}

/* Button / Primary (Figma 394:925): accent green, cream Button Label 24, a pill 49 tall; hover darkens to ink;
   focus is a 3px ink ring on the paper (as the product page). */
.vs-store .vs-store-btn {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    min-height: 49px;
    padding: 10px 36px;
    border: 0;
    border-radius: var(--sf-radius-pill);
    background: var(--vs-accent, var(--sf-color-accent-green));
    color: var(--vs-accent-ink, var(--sf-color-ground-cream));
    box-shadow: inset 0 0 0 1px var(--vs-accent-edge, transparent); /* a pale colour keeps its shape on the paper */
    font: var(--sf-type-desktop-button-label);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.vs-store .vs-store-btn:hover {
    background: var(--sf-color-ink-primary);
    color: var(--sf-color-ground-cream);
}

.vs-store .vs-store-btn:focus-visible {
    outline: 3px solid var(--sf-color-ink-primary);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .vs-store .vs-store-btn {
        transition: none;
    }
}

/* Grid: 2 columns on phones (gap 12, rows 26 apart), 3 from 48rem, 4 from 75rem (Figma: 4 of 263, 87 apart, rows
   74 apart, 1313 wide). The columns are fluid, so they are 263 wide at 1440 and narrower below. Any row short of a
   full row is centred, at every column count (the designer, 2026-10-09). */
.vs-store-shop {
    box-sizing: border-box;
    padding: var(--sf-space-xs) var(--vs-store-gutter) 0; /* 8 above, as the paper cards: 32 under the tab labels */
}

.vs-store-grid {
    --vs-cols: 2;
    --vs-gap: var(--sf-space-sm);

    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* a full row has no room to spare; a row short of a full one (the last, or the only) is centred */
    gap: 26px var(--vs-gap);
    max-width: 1313px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.vs-store-grid__item {
    flex: 0 0 calc((100% - (var(--vs-cols) - 1) * var(--vs-gap)) / var(--vs-cols));
    min-width: 0;
    margin: 0;
}

@media (min-width: 48rem) {
    .vs-store-grid {
        --vs-cols: 3;
        --vs-gap: clamp(24px, 6.04vw, 87px);

        row-gap: var(--sf-space-2xl);
    }
}

@media (min-width: 60rem) {
    .vs-store-grid {
        row-gap: 74px;
    }
}

@media (min-width: 75rem) {
    .vs-store-grid {
        --vs-cols: 4;
    }
}

/* Card: the category page's numbers. Phones 175 x 313: photo 175 : 226, info 87 (9 above, 2 title lines, 3, one
   line for the vendor and the price). Desktop 263 x 445: photo 263 : 350, info 95 (6 above and at the left, 2 title
   lines, the vendor under them). The info block is a fixed height, so every card is the same height. */
.vs-store .vs-store-card {
    display: flex;
    flex-direction: column;
    color: var(--sf-color-ink-inverse);
    text-decoration: none;
    transition: none; /* the theme's 0.2s on every link would fade the focus ring in; only the photo moves */
}

.vs-store-card__ph {
    position: relative;
    display: block;
    aspect-ratio: 175 / 226;
    overflow: hidden;
    background: var(--sf-color-ground-nav);
}

.vs-store-card__ph img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* The photo scales 5% on hover or keyboard focus; nothing moves under reduced motion. */
.vs-store .vs-store-card:hover .vs-store-card__ph img,
.vs-store .vs-store-card:focus-visible .vs-store-card__ph img {
    transform: scale(1.05);
}

.vs-store .vs-store-card:focus-visible {
    outline: 2px solid var(--sf-color-ground-cream);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .vs-store .vs-store-tab {
        transition: none;
    }

    .vs-store-card__ph img {
        transition: none;
    }

    .vs-store .vs-store-card:hover .vs-store-card__ph img,
    .vs-store .vs-store-card:focus-visible .vs-store-card__ph img {
        transform: none;
    }
}

.vs-store-card__info {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "name name"
        "vendor price";
    align-content: start;
    column-gap: 6px;
    row-gap: 3px;
    min-height: 87px; /* the category card's fixed height at the default text size; with larger text it grows instead of clipping */
    padding: 9px 3px 0;
    overflow: hidden;
}

.vs-store-card__name {
    display: -webkit-box;
    grid-area: name;
    overflow: hidden;
    font: var(--sf-type-mobile-body);
    overflow-wrap: break-word;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.vs-store-card__price {
    grid-area: price;
    align-self: center;
    font: var(--sf-type-mobile-label-mono);
    letter-spacing: var(--sf-tracking-label-mono);
    text-align: right;
    white-space: nowrap;
}

.vs-store-card__vendor {
    grid-area: vendor;
    align-self: center;
    min-width: 0;
    overflow: hidden;
    font: var(--sf-type-mobile-caption);
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 48rem) {
    .vs-store-card__ph {
        aspect-ratio: 263 / 350;
    }

    .vs-store-card__info {
        grid-template-areas:
            "name price"
            "vendor vendor";
        column-gap: var(--sf-space-xs);
        row-gap: 0;
        min-height: 95px;
        padding: 6px 0 0 6px;
    }

    .vs-store-card__name {
        font: var(--sf-type-desktop-title);
    }

    .vs-store-card__price {
        align-self: start;
        font: var(--sf-type-desktop-label-mono);
    }

    .vs-store-card__vendor {
        align-self: start;
        justify-self: start;
        max-width: 100%;
        font: var(--sf-type-desktop-body);
    }
}

/* Sold out (not in Figma, proposed): the photo stays, a small label sits on it (Label Mono, cream on the dark
   ground), and sold out pieces are listed last. */
.vs-store-card__sold {
    position: absolute;
    top: var(--sf-space-xs);
    left: var(--sf-space-xs);
    padding: 4px 10px;
    border-radius: var(--sf-radius-sm);
    background: var(--sf-color-ground-inverse);
    color: var(--sf-color-ground-cream);
    font: var(--sf-type-mobile-label-mono);
    letter-spacing: var(--sf-tracking-label-mono);
    text-transform: uppercase;
}

/* No pieces (3 of the 8 vendors today): centred text and a pill to the directory. Copy and layout are a draft.
   On phones the empty state's own 32 above is the whole gap under the tabs (Figma 573:1597): the shop panel's 8 is dropped. */
@media (max-width: 47.99rem) {
    .vs-store-shop:has(> .vs-store-empty) {
        padding-top: 0;
    }
}

.vs-store-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sf-space-md);
    max-width: 560px;
    margin: 0 auto;
    padding: var(--sf-space-xl) 0;
    text-align: center;
}

.vs-store-empty__title {
    margin: 0;
    font: var(--sf-type-mobile-heading-md);
}

.vs-store-empty__body {
    margin: 0;
    font: var(--sf-type-mobile-body-italic);
}

@media (min-width: 48rem) {
    .vs-store-empty__title {
        font: var(--sf-type-desktop-heading-md);
    }

    .vs-store-empty__body {
        font: var(--sf-type-desktop-body-italic);
    }
}

/* ======================================================================================================
   Step 7: the Contact tab (Figma drafts Contact Tab, Sent and Error, in the style of the review form 333:1154): a 780
   wide paper card, padding 43 above, 71 at the sides and 40 below (phones 28, 20 and 24), the heading with a rule as
   wide as the words, then the form: boxes at white 70% with a 10 radius (the review form's), Field Label above each,
   Review Body inside, the primary button at the right (full width under 30rem).
   ====================================================================================================== */

.vs-store-paper--contact {
    max-width: 780px;
    padding: 28px 20px 24px;
}

@media (min-width: 48rem) {
    .vs-store-paper--contact {
        padding: 43px 71px 40px;
    }
}

/* In this card the rule is the heading's own bottom border, so it is exactly as wide as the words. */
.vendorstore .vs-store-paper--contact .vs-store-paper__h {
    align-self: flex-start;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--sf-color-ink-primary);
}

.vendorstore .vs-store-contact__intro,
.vendorstore .vs-store-contact__sent {
    margin: 0;
}

.vs-store .vs-store-contact__back {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--sf-color-ink-primary);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.vs-store .vs-store-contact__back:hover {
    color: var(--sf-color-ink-primary);
}

.vs-store .vs-store-contact__back:focus-visible {
    outline: 3px solid var(--sf-color-ink-primary);
    outline-offset: 3px;
}

/* The answer to a failed send: told apart by weight and a bar at the left, as in the review form (the file has no
   error colour variable). It is announced (role alert) and the redirect brings it into view. */
.vs-store-status {
    padding-left: 14px;
    border-left: 3px solid var(--sf-color-ink-primary);
    font: var(--sf-type-mobile-body-emphasis);
}

@media (min-width: 48rem) {
    .vs-store-status {
        font: var(--sf-type-desktop-body-emphasis);
    }
}

.vendorstore .vs-store-status p {
    margin: 0;
}

.vs-store-status:focus,
.vs-store-contact__sent:focus {
    outline: none;
}

.vs-store-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vs-store-form__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}

@media (min-width: 48rem) {
    .vs-store-form__row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

.vs-store-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}

.vs-store-field__label {
    color: var(--sf-color-line-strong);
    font: var(--sf-type-mobile-label-mono);
    letter-spacing: var(--sf-tracking-field-label);
    text-transform: uppercase;
}

@media (min-width: 48rem) {
    .vs-store-field__label {
        font: var(--sf-type-desktop-field-label);
        letter-spacing: var(--sf-tracking-field-label);
    }
}

.vs-store .vs-store-field input,
.vs-store .vs-store-field textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 51px;
    margin: 0;
    padding: 14px 16px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.7);
    background: color-mix(in srgb, var(--sf-color-ground-page) 70%, transparent);
    box-shadow: none;
    color: var(--sf-color-ink-primary);
    font: var(--sf-type-desktop-review-body);
    letter-spacing: var(--sf-tracking-review-body);
}

.vs-store .vs-store-field textarea {
    min-height: 175px;
    resize: vertical;
}

.vs-store .vs-store-field input::placeholder,
.vs-store .vs-store-field textarea::placeholder {
    color: var(--sf-color-ink-secondary);
    opacity: 1;
}

.vs-store .vs-store-field input:focus-visible,
.vs-store .vs-store-field textarea:focus-visible {
    outline: 3px solid var(--sf-color-ink-primary);
    outline-offset: 2px;
}

.vs-store-form__actions {
    display: flex;
    justify-content: flex-end;
}

.vs-store .vs-store-form__actions .vs-store-btn {
    cursor: pointer;
}

@media (max-width: 29.99rem) {
    .vs-store .vs-store-form__actions .vs-store-btn {
        justify-content: center;
        width: 100%;
    }
}

/* Honeypot: off screen for people, there for bots. Never display none. */
.vs-store-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
