.stockroom-staff-preview {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px clamp(18px, 4vw, 48px);
    color: #fff8ec;
    background: #82401f;
    font-family: var(--sans, Arial, Helvetica, sans-serif);
}

.stockroom-staff-preview div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    align-items: baseline;
}

.stockroom-staff-preview strong {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stockroom-staff-preview span {
    font-size: 14px;
}

.stockroom-shell {
    --gfl-blue: #ad5f31;
    --gfl-blue-dark: #82401f;
    --stockroom-ink: #172027;
    --stockroom-muted: #4c5962;
    --stockroom-soft-text: #68757d;
    --stockroom-line: rgba(148, 163, 184, 0.35);
    --stockroom-soft-line: rgba(15, 23, 42, 0.08);
    --stockroom-panel: #ffffff;
    --stockroom-soft: #f7f3ec;
    --stockroom-blue-soft: #f5ebe2;
    --stockroom-teal: #1f6f78;
    --stockroom-gold: #82401f;
    --stockroom-red: #b42318;
    --stockroom-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    box-sizing: border-box;
    max-width: 1440px;
    margin: 0 auto;
    padding: 28px 24px 44px;
    color: var(--stockroom-ink);
    font-family: var(--sans, Arial, Helvetica, sans-serif);
    line-height: 1.6;
}

.stockroom-shell *,
.stockroom-shell *::before,
.stockroom-shell *::after {
    box-sizing: border-box;
}

.stockroom-card-actions,
.stockroom-artwork-nav,
.stockroom-artwork-nav-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.stockroom-cart-link,
.stockroom-artwork-nav a,
.stockroom-card-actions a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 7px 13px;
    border: 1px solid var(--stockroom-line);
    border-radius: 999px;
    color: var(--gfl-blue-dark);
    background: #ffffff;
    text-decoration: none;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 600;
}

.stockroom-filter-bar a.active {
    border-color: var(--stockroom-line);
    color: var(--gfl-blue-dark);
    background: var(--stockroom-blue-soft);
}

.stockroom-cart-link span,
.stockroom-filter-bar span {
    display: inline-flex;
    min-width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(15, 23, 42, .08);
    font-size: 12px;
}

.stockroom-main {
    padding-top: 0;
}

.stockroom-catalogue {
    width: 100%;
    max-width: 1120px;
}

.stockroom-heading-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.stockroom-heading-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.stockroom-kicker {
    margin: 0 0 4px;
    color: var(--gfl-blue-dark);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: uppercase;
}

.stockroom-heading-row h1,
.stockroom-detail-copy h1,
.stockroom-empty h1,
.stockroom-empty h2,
.stockroom-complete-panel h1 {
    margin: 0;
    color: var(--stockroom-ink);
    font-size: 30px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: 0;
}

.stockroom-count {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 11px;
    border: 1px solid var(--stockroom-line);
    border-radius: 999px;
    background: var(--stockroom-soft);
    color: var(--stockroom-muted);
    font-size: 13px;
    font-weight: 700;
}

.stockroom-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
}

.stockroom-filter-bar a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid var(--stockroom-line);
    border-radius: 999px;
    color: var(--gfl-blue-dark);
    background: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.stockroom-browse {
    display: grid;
    gap: 10px;
    margin: 0 0 22px;
    padding: 14px 0;
    border-top: 1px solid var(--stockroom-soft-line);
    border-bottom: 1px solid var(--stockroom-soft-line);
}

.stockroom-browse-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.stockroom-browse h2,
.stockroom-browse h3 {
    flex: 0 0 88px;
    margin: 0;
    color: var(--stockroom-soft-text);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
}

.stockroom-browse h2 {
    color: var(--stockroom-ink);
}

.stockroom-browse a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid var(--stockroom-line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--gfl-blue-dark);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 600;
    text-decoration: none;
}

.stockroom-browse a.active {
    background: var(--stockroom-blue-soft);
}

.stockroom-browse span {
    display: inline-flex;
    min-width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(15, 23, 42, .08);
    color: var(--stockroom-muted);
    font-size: 11px;
}

.stockroom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    width: 100%;
    margin: 0 0 20px;
}

.stockroom-card,
.stockroom-cart-item,
.stockroom-summary,
.stockroom-checkout-form,
.stockroom-complete-panel,
.stockroom-empty {
    border: 1px solid var(--stockroom-line);
    border-radius: 18px;
    background: var(--stockroom-panel);
}

.stockroom-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border-color: var(--stockroom-soft-line);
    box-shadow: var(--stockroom-shadow);
}

.stockroom-card-image,
.stockroom-cart-image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    padding: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: var(--stockroom-muted);
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.stockroom-card-image img,
.stockroom-cart-image img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.stockroom-card-body {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 9px;
    padding: 0 18px 18px;
}

.stockroom-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    color: var(--stockroom-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.stockroom-status {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #edf7f4;
    color: #116149;
    line-height: 1;
}

.stockroom-status.unavailable {
    background: #fff3e8;
    color: var(--stockroom-red);
}

.stockroom-card h2,
.stockroom-cart-item h2,
.stockroom-summary h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: 0;
}

.stockroom-card h2 a {
    color: var(--stockroom-ink);
    text-decoration: none;
}

.stockroom-card-title,
.stockroom-card-detail,
.stockroom-cart-item p,
.stockroom-empty p,
.stockroom-complete-panel p {
    margin: 0;
    color: var(--stockroom-muted);
    font-size: 14px;
    line-height: 1.45;
}

.stockroom-card-title {
    color: var(--stockroom-ink);
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.stockroom-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
}

.stockroom-icon-button,
.stockroom-button,
.stockroom-remove-button,
.stockroom-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.stockroom-icon-button {
    width: 38px;
    padding: 0;
    color: #ffffff;
    background: var(--gfl-blue-dark);
}

.stockroom-icon-button svg,
.stockroom-button svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stockroom-button {
    padding: 10px 15px;
    color: var(--gfl-blue-dark);
    background: var(--stockroom-soft);
}

.stockroom-button.secondary {
    border: 1px solid var(--stockroom-line);
    color: var(--stockroom-ink);
    background: #ffffff;
}

.stockroom-button.primary {
    color: #ffffff;
    background: var(--gfl-blue-dark);
}

.stockroom-button.disabled,
.stockroom-button:disabled,
.disabled-link {
    pointer-events: none;
    opacity: .55;
}

.stockroom-flash {
    margin: 16px 0 0;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
}

.stockroom-flash.success {
    color: #116149;
    background: #edf7f4;
}

.stockroom-flash.warning,
.stockroom-warning-text {
    color: var(--stockroom-red);
    background: #fff7ed;
}

.stockroom-empty,
.stockroom-complete-panel {
    padding: 28px;
}

.stockroom-empty {
    display: grid;
    gap: 12px;
    justify-items: start;
}

.stockroom-artwork-nav {
    justify-content: space-between;
    margin: 0 0 56px;
    width: 100%;
}

.stockroom-artwork-nav-group + .stockroom-artwork-nav-group {
    padding-left: 12px;
    border-left: 1px solid var(--stockroom-soft-line);
}

.stockroom-detail-layout {
    display: grid;
    grid-template-columns: minmax(360px, 620px) minmax(320px, 560px);
    column-gap: 64px;
    row-gap: 20px;
    align-items: start;
    width: 100%;
}

.stockroom-detail-media {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.stockroom-viewer-link,
.stockroom-detail-placeholder {
    display: flex;
    width: 100%;
    max-width: 620px;
    min-height: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--stockroom-muted);
    overflow: hidden;
}

.stockroom-detail-placeholder {
    min-height: 420px;
    border: 1px solid var(--stockroom-line);
    border-radius: 18px;
    background: var(--stockroom-soft);
    font-weight: 700;
}

.stockroom-viewer {
    display: block;
    width: 100%;
    max-width: 620px;
    height: auto;
    max-height: 720px;
    cursor: zoom-in;
    object-fit: contain;
}

.stockroom-thumbnails {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    align-items: flex-start;
    margin-top: 14px;
    width: 100%;
}

.stockroom-thumbnails button {
    width: 150px;
    height: auto;
    padding: 0;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.08s ease;
}

.stockroom-thumbnails button:hover,
.stockroom-thumbnails button.active {
    border-color: #333;
    transform: translateY(-1px);
}

.stockroom-thumbnails img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.stockroom-shell .artwork-scale-preview {
    width: 100%;
    max-width: 620px;
    margin-top: 20px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
    box-sizing: border-box;
    overflow-x: auto;
}

.stockroom-shell .artwork-scale-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.stockroom-shell .artwork-scale-heading strong {
    color: var(--stockroom-ink);
    font-size: 15px;
    line-height: 1.2;
}

.stockroom-shell .artwork-scale-heading span {
    color: #47637f;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 600;
}

.stockroom-shell .artwork-scale-room {
    position: relative;
    min-width: 390px;
    height: 292px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 12px;
    background:
        linear-gradient(to top, #edf2f7 0 38px, transparent 38px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.12) 1px, transparent 1px) 0 0 / 46px 100%,
        linear-gradient(180deg, #fbfdff 0%, #f5f8fb 100%);
}

.stockroom-shell .artwork-scale-room::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 38px;
    height: 1px;
    background: rgba(100, 116, 139, 0.34);
}

.stockroom-shell .artwork-scale-person {
    position: absolute;
    left: 62px;
    bottom: 18px;
    display: flex;
    justify-content: center;
    width: calc(var(--scale-person-height) * 0.35);
    height: var(--scale-person-height);
}

.stockroom-shell .artwork-scale-person img {
    display: block;
    width: auto;
    height: 100%;
    opacity: 0.9;
}

.stockroom-shell .artwork-scale-person span {
    position: absolute;
    left: -56px;
    top: 2px;
    width: 54px;
    text-align: right;
    color: #47637f;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 600;
}

.stockroom-shell .artwork-scale-artwork {
    position: absolute;
    left: clamp(134px, 36%, 214px);
    bottom: calc(38px + var(--artwork-scale-bottom));
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--artwork-scale-width);
    height: var(--artwork-scale-height);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
    box-sizing: border-box;
}

.stockroom-shell .artwork-scale-artwork.framed {
    border: 1px solid rgba(71, 85, 105, 0.34);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 34%),
        #7a8390;
}

.stockroom-shell .artwork-scale-artwork.unframed {
    border: 1px solid rgba(71, 85, 105, 0.28);
    background: #aeb6c3;
}

.stockroom-shell .artwork-scale-artwork-inner {
    display: block;
    width: var(--artwork-inner-width, 100%);
    height: var(--artwork-inner-height, 100%);
    max-width: 100%;
    max-height: 100%;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent 38%),
        #b7bec9;
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-sizing: border-box;
}

.stockroom-shell .artwork-scale-artwork.unframed .artwork-scale-artwork-inner {
    width: 100%;
    height: 100%;
    border-color: rgba(255, 255, 255, 0.28);
}

.stockroom-shell .artwork-scale-preview p {
    margin: 12px 0 0;
    color: #47637f;
    font-size: 12px;
    line-height: 1.4;
}

.stockroom-detail-copy {
    align-self: flex-start;
    max-width: 560px;
    color: var(--stockroom-ink);
    font-size: 16px;
    line-height: 1.45;
    word-wrap: break-word;
}

.stockroom-detail-code {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 8px;
    color: var(--stockroom-soft-text);
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
}

.stockroom-detail-code .available {
    color: #116149;
}

.stockroom-detail-code .unavailable {
    color: var(--stockroom-red);
}

.stockroom-location-marker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 17px;
    padding: 10px 13px;
    border: 1px solid rgba(36, 95, 61, .24);
    border-radius: 7px;
    color: #1f5739;
    background: #f1f7f2;
}

.stockroom-location-marker svg,
.stockroom-card-location svg {
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.stockroom-location-marker svg {
    width: 21px;
    height: 21px;
}

.stockroom-location-marker > span {
    display: grid;
    gap: 1px;
}

.stockroom-location-marker small {
    color: var(--stockroom-soft-text);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.stockroom-location-marker strong {
    font-size: 13px;
    line-height: 1.25;
}

.stockroom-location-marker.in_transit,
.stockroom-location-marker.offsite,
.stockroom-location-marker.unknown {
    border-color: rgba(130, 64, 31, .22);
    color: #82401f;
    background: #fbf5ee;
}

.stockroom-detail-copy h1 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
}

.stockroom-detail-copy p {
    margin: 0;
}

.stockroom-detail-title {
    font-weight: 700;
    text-transform: uppercase;
}

.stockroom-info {
    margin-top: 22px;
    color: var(--stockroom-ink);
    font-size: 15px;
    line-height: 1.6;
}

.stockroom-viewing-panel {
    margin-top: 24px;
    padding: 18px 20px;
    border: 1px solid var(--stockroom-line);
    border-radius: 8px;
    background: var(--stockroom-soft);
}

.stockroom-viewing-panel h2 {
    margin: 0 0 8px;
    color: var(--stockroom-ink);
    font-family: var(--serif, Georgia, serif);
    font-size: 21px;
    font-weight: 600;
}

.stockroom-viewing-panel p {
    color: var(--stockroom-muted);
    font-size: 14px;
    line-height: 1.55;
}

.stockroom-viewing-panel a {
    display: inline-block;
    margin-top: 10px;
    color: var(--stockroom-red);
    font-size: 14px;
    font-weight: 700;
}

.stockroom-detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.stockroom-detail-actions p {
    flex: 1 1 100%;
}

.stockroom-detail-actions form {
    margin: 0;
}

.stockroom-detail-purchase-actions {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 10px;
    width: 100%;
}

.stockroom-detail-purchase-actions .stockroom-button {
    width: 100%;
    min-height: 44px;
}

.stockroom-cart-layout,
.stockroom-checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
    align-items: start;
}

.stockroom-cart-list {
    display: grid;
    gap: 12px;
}

.stockroom-cart-item {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
}

.stockroom-cart-image {
    width: 116px;
    aspect-ratio: 1 / 1;
    padding: 0;
    border-radius: 6px;
    background: var(--stockroom-soft);
    overflow: hidden;
}

.stockroom-cart-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stockroom-remove-button {
    padding: 9px 12px;
    color: #ffffff;
    background: var(--stockroom-red);
}

.stockroom-summary,
.stockroom-checkout-form {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.stockroom-summary > .stockroom-button {
    width: 100%;
}

.stockroom-checkout-form .stockroom-button {
    width: 100%;
}

.stockroom-summary-row,
.stockroom-summary-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--stockroom-line);
}

.stockroom-summary-row.total {
    border-bottom: 0;
    font-size: 18px;
}

.stockroom-warning-text {
    margin: 0;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
}

.stockroom-link-button {
    padding: 0;
    color: var(--stockroom-muted);
    background: transparent;
    text-decoration: underline;
}

.stockroom-checkout-form label {
    display: grid;
    gap: 6px;
    color: var(--stockroom-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.stockroom-checkout-form input,
.stockroom-checkout-form select,
.stockroom-checkout-form textarea {
    width: 100%;
    border: 1px solid var(--stockroom-line);
    border-radius: 6px;
    padding: 10px 11px;
    color: var(--stockroom-ink);
    background: #ffffff;
    font-size: 15px;
    line-height: 1.4;
    text-transform: none;
}

.stockroom-checkout-form textarea {
    resize: vertical;
}

.stockroom-complete-panel {
    max-width: 760px;
    margin: 0 auto;
}

.stockroom-complete-list {
    display: grid;
    gap: 10px;
    margin: 22px 0;
}

.stockroom-complete-list div {
    display: grid;
    gap: 3px;
    padding: 12px;
    border: 1px solid var(--stockroom-line);
    border-radius: 6px;
    background: var(--stockroom-soft);
}

.stockroom-complete-list span {
    color: var(--stockroom-muted);
    font-size: 13px;
}

/* Catalogue layout */
.stockroom-catalogue {
    max-width: none;
}

.stockroom-catalogue-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 34px;
}

.stockroom-catalogue-heading h1 {
    margin: 0;
    color: var(--stockroom-ink);
    font-family: var(--serif, Georgia, serif);
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.stockroom-catalogue-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.stockroom-sort {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 4px;
    padding: 0 12px 0 16px;
    border: 1px solid var(--stockroom-line);
    border-radius: 8px;
    background: #fff;
}

.stockroom-sort label,
.stockroom-sort select {
    color: var(--stockroom-ink);
    font-family: inherit;
    font-size: 14px;
}

.stockroom-sort label {
    white-space: nowrap;
}

.stockroom-sort select {
    min-width: 132px;
    padding: 8px 28px 8px 4px;
    border: 0;
    outline: 0;
    background: #fff;
    font-weight: 700;
    cursor: pointer;
}

.stockroom-catalogue-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: clamp(30px, 4vw, 54px);
    align-items: start;
}

.stockroom-filter-sidebar {
    display: grid;
    gap: 0;
    min-width: 0;
}

.stockroom-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-self: start;
    margin: 0 0 22px;
    color: #24573d;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
}

.stockroom-back-link:hover,
.stockroom-back-link:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.stockroom-back-link span {
    font-size: 21px;
    line-height: 1;
    transition: transform 140ms ease;
}

.stockroom-back-link:hover span,
.stockroom-back-link:focus-visible span {
    transform: translateX(-2px);
}

.stockroom-sidebar-cart {
    display: grid;
    gap: 5px;
    margin-bottom: 24px;
    padding: 13px 14px;
    border: 1px solid #397154;
    border-radius: 9px;
    color: #ffffff;
    background: #245f3d;
    text-decoration: none;
}

.stockroom-sidebar-cart span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 750;
}

.stockroom-sidebar-cart strong {
    font-size: 12px;
    font-weight: 600;
    opacity: .86;
}

.stockroom-sidebar-cart svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stockroom-filter-section {
    padding: 0 0 24px;
}

.stockroom-filter-section + .stockroom-filter-section {
    padding-top: 4px;
}

.stockroom-filter-section h2,
.stockroom-filter-section h3 {
    margin: 0 0 13px;
    color: var(--stockroom-ink);
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.stockroom-filter-count {
    display: inline-flex;
    min-width: 21px;
    height: 21px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--stockroom-muted);
    background: #f4f4f2;
    font-size: 11px;
    font-weight: 700;
}

.stockroom-filter-options {
    display: grid;
    gap: 7px;
}

.stockroom-filter-options a {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    min-height: 28px;
    color: var(--stockroom-ink);
    font-size: 13px;
    line-height: 1.3;
    text-decoration: none;
}

.stockroom-filter-options a:hover .stockroom-filter-label,
.stockroom-filter-options a.active .stockroom-filter-label {
    color: #24573d;
}

.stockroom-filter-check {
    position: relative;
    width: 18px;
    height: 18px;
    border: 1px solid var(--stockroom-line);
    border-radius: 4px;
    background: #fff;
}

.stockroom-filter-options a.active .stockroom-filter-check {
    border-color: #245f3d;
    background: #245f3d;
}

.stockroom-filter-options a.active .stockroom-filter-check::after {
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    content: '';
    transform: rotate(45deg);
}

.stockroom-filter-label {
    overflow-wrap: anywhere;
}

.stockroom-catalogue-results {
    min-width: 0;
}

.stockroom-artist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 356px));
    gap: 18px;
    justify-content: start;
}

.stockroom-artist-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(23, 32, 39, .13);
    border-radius: 5px;
    color: var(--stockroom-ink);
    background: var(--stockroom-panel);
    box-shadow: 0 3px 12px rgba(23, 32, 39, .045);
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.stockroom-artist-card:hover,
.stockroom-artist-card:focus-visible {
    border-color: rgba(23, 32, 39, .24);
    box-shadow: 0 10px 26px rgba(23, 32, 39, .08);
    transform: translateY(-2px);
}

.stockroom-artist-card:focus-visible {
    outline: 3px solid rgba(36, 95, 61, .24);
    outline-offset: 3px;
}

.stockroom-artist-card-image {
    display: flex;
    aspect-ratio: 4 / 3;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f3efe8;
}

.stockroom-artist-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.stockroom-artist-card-body {
    display: grid;
    gap: 5px;
    padding: 17px;
}

.stockroom-artist-card-name {
    font-family: var(--serif, Georgia, serif);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
}

.stockroom-artist-card-count {
    color: var(--stockroom-muted);
    font-size: 13px;
}

.stockroom-artist-card-action {
    margin-top: 7px;
    color: #24573d;
    font-size: 12px;
    font-weight: 750;
}

.stockroom-catalogue .stockroom-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 356px));
    gap: 18px;
    justify-content: start;
}

.stockroom-catalogue .stockroom-card {
    border-color: rgba(23, 32, 39, .13);
    border-radius: 5px;
    box-shadow: 0 3px 12px rgba(23, 32, 39, .045);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.stockroom-catalogue .stockroom-card:hover {
    border-color: rgba(23, 32, 39, .24);
    box-shadow: 0 10px 26px rgba(23, 32, 39, .08);
    transform: translateY(-2px);
}

.stockroom-catalogue .stockroom-card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    padding: 0;
    overflow: hidden;
    background: #f3efe8;
}

.stockroom-catalogue .stockroom-card-image img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
}

.stockroom-image-placeholder {
    display: grid;
    gap: 12px;
    place-items: center;
    color: #746f67;
    font-size: 13px;
    font-weight: 500;
}

.stockroom-image-placeholder svg {
    width: 64px;
    height: 52px;
    fill: none;
    stroke: #aaa39a;
    stroke-width: 2;
}

.stockroom-catalogue .stockroom-status {
    position: absolute;
    bottom: 13px;
    left: 14px;
    min-height: 23px;
    padding: 5px 8px;
    border-radius: 3px;
    color: #fff;
    background: #2d6845;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .025em;
    text-transform: uppercase;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .16);
}

.stockroom-catalogue .stockroom-status.unavailable {
    color: #fff;
    background: #bd4f2f;
}

.stockroom-catalogue .stockroom-card-body {
    gap: 6px;
    padding: 17px 17px 16px;
}

.stockroom-catalogue .stockroom-card h2 {
    font-family: var(--serif, Georgia, serif);
    font-size: 22px;
    font-weight: 600;
}

.stockroom-catalogue .stockroom-card-title {
    color: var(--stockroom-ink);
    font-size: 13px;
    font-weight: 650;
}

.stockroom-catalogue .stockroom-card-detail {
    font-size: 13px;
}

.stockroom-card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 3px 0 0;
    color: #2d6845;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

.stockroom-card-location svg {
    width: 15px;
    height: 15px;
}

.stockroom-card-location.in_transit,
.stockroom-card-location.offsite,
.stockroom-card-location.unknown {
    color: #82401f;
}

.stockroom-catalogue .stockroom-card-footer {
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--stockroom-soft-line);
}

.stockroom-catalogue .stockroom-card-footer > strong {
    color: var(--stockroom-ink);
    font-size: 16px;
}

.stockroom-catalogue .stockroom-card-actions {
    flex-wrap: nowrap;
    gap: 8px;
}

.stockroom-catalogue .stockroom-card-actions a {
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 7px;
    border-color: #245f3d;
    color: #ffffff;
    background: #245f3d;
    font-size: 12px;
}

@media (max-width: 1040px) {
    .stockroom-catalogue-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .stockroom-filter-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 28px;
        padding: 20px;
        border: 1px solid var(--stockroom-soft-line);
        border-radius: 8px;
        background: var(--stockroom-soft);
    }

    .stockroom-back-link,
    .stockroom-sidebar-cart {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .stockroom-detail-layout,
    .stockroom-cart-layout,
    .stockroom-checkout-layout {
        grid-template-columns: 1fr;
    }

    .stockroom-detail-placeholder {
        min-height: 300px;
    }

    .stockroom-detail-copy {
        max-width: none;
        padding-top: 24px;
    }

    .stockroom-shell .artwork-scale-preview {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .stockroom-shell {
        padding: 16px 12px 34px;
    }

    .stockroom-catalogue-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 20px;
        margin-bottom: 26px;
    }

    .stockroom-catalogue-heading h1 {
        font-size: 34px;
    }

    .stockroom-catalogue-tools {
        align-items: stretch;
        justify-content: flex-start;
    }

    .stockroom-sort {
        width: 100%;
    }

    .stockroom-sort select {
        flex: 1;
        min-width: 0;
    }

    .stockroom-filter-sidebar {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 17px;
    }

    .stockroom-back-link,
    .stockroom-sidebar-cart {
        grid-column: auto;
    }

    .stockroom-catalogue .stockroom-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .stockroom-artist-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .stockroom-heading-row {
        align-items: stretch;
        flex-direction: column;
    }

    .stockroom-heading-actions {
        justify-content: flex-start;
    }

    .stockroom-browse h2,
    .stockroom-browse h3 {
        flex-basis: 100%;
    }

    .stockroom-artwork-nav {
        margin-bottom: 28px;
    }

    .stockroom-artwork-nav a {
        flex: 1 1 auto;
        justify-content: center;
    }

    .stockroom-artwork-nav-group {
        flex: 1 1 100%;
    }

    .stockroom-artwork-nav-group + .stockroom-artwork-nav-group {
        padding-left: 0;
        border-left: none;
    }

    .stockroom-detail-purchase-actions {
        grid-template-columns: 1fr;
    }

    .stockroom-heading-row h1,
    .stockroom-detail-copy h1,
    .stockroom-empty h1,
    .stockroom-empty h2,
    .stockroom-complete-panel h1 {
        font-size: 25px;
    }

    .stockroom-cart-item {
        grid-template-columns: 86px minmax(0, 1fr);
    }

    .stockroom-cart-item form {
        grid-column: 1 / -1;
    }

    .stockroom-cart-image {
        width: 86px;
    }

    .stockroom-thumbnails button {
        width: 92px;
    }

    .stockroom-shell .artwork-scale-room {
        min-width: 340px;
    }
}

.stockroom-order-complete .stockroom-complete-panel {
    max-width: var(--container);
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    overflow-wrap: anywhere;
}
.order-heading {
    margin-block: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--line);
}
.stockroom-order-complete h1 {
    font: normal clamp(2.2rem, 4vw, 3.75rem)/1.12 var(--serif);
    margin: .35rem 0 .8rem;
}
.order-heading p { max-width: 74ch; }
.order-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 3vw, 2.5rem);
    align-items: start;
    margin-bottom: 1.5rem;
}
.order-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: clamp(1.1rem, 3vw, 2.25rem);
}
.order-card h2 {
    margin: 1.75rem 0 .75rem;
    font: normal clamp(1.6rem, 3vw, 2.2rem)/1.15 var(--serif);
}
.order-card h2:first-child { margin-top: 0; }
.order-card .stockroom-complete-list { gap: 0; margin: 0; }
.order-card .stockroom-complete-list div {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    border-radius: 0;
    padding: .85rem 0;
}
.order-card .stockroom-complete-list strong { grid-column: 1; }
.order-card .order-price { grid-column: 2; grid-row: 2; color: var(--ink); }
.order-card ul { padding-left: 1.2rem; }
.order-card li { margin-bottom: .75rem; }
.order-card label, .order-card textarea { display: block; width: 100%; }
.order-card textarea {
    margin: .4rem 0 .75rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: .6rem;
    resize: vertical;
    font: inherit;
}
.order-card button { margin-bottom: .4rem; }
@media (max-width: 800px) {
    .order-columns { grid-template-columns: minmax(0, 1fr); }
}

.stockroom-delivery-options {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
.stockroom-delivery-options legend {
    margin-bottom: 1rem;
    padding: 0;
    font: normal 1.5rem/1.25 var(--serif);
}
.stockroom-checkout-form .stockroom-delivery-choice {
    display: flex;
    align-items: baseline;
    gap: .75rem;
    margin-bottom: .5rem;
    padding: .75rem 1rem;
    border: 1px solid var(--stockroom-line);
    border-radius: 6px;
    cursor: pointer;
    color: var(--ink);
    font-size: 1rem;
    text-transform: none;
}
.stockroom-delivery-choice input[type="radio"] {
    flex: none;
    width: 1rem;
    height: 1rem;
    margin: 0;
    padding: 0;
    accent-color: var(--copper-dark);
}
.stockroom-delivery-choice:has(input:checked) {
    border-color: var(--copper-dark);
    background: var(--stockroom-soft);
}
.stockroom-delivery-choice small {
    display: block;
    color: var(--stockroom-muted);
    font-weight: normal;
}
.stockroom-delivery-postcode { margin-top: 1rem; }
.stockroom-delivery-postcode input { max-width: 12rem; }
.stockroom-delivery-options:has(input[type="radio"]:checked:not([value="domestic"])) .stockroom-delivery-postcode { display: none; }
