/*
 * Shop layout in the style of the CTG Auction site: one header row, a set menu that is a sticky
 * sidebar on wide screens and a slide-in drawer on phones, card grids and a footer.
 * Colours come from ctg-theme.css. Class names start with "ctg-" so the older
 * styling.css and the two Bootstrap versions on the page leave them alone.
 */

/* ---------- Basics shared with the auction site ---------- */

.ctg-wrap { max-width: 1520px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
@media (min-width: 640px) { .ctg-wrap { padding: 0 24px; } }

html body .ctg-h1 { font-weight: 800; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 8px; color: var(--ctg-text); }
html body .ctg-h2 { font-weight: 700; font-size: 1.1rem; margin: 0 0 12px; color: var(--ctg-text); }
html body .ctg-lead { color: var(--ctg-muted); font-size: 1rem; line-height: 1.55; margin: 0; max-width: 44rem; }
html body .ctg-muted { color: var(--ctg-muted); }
html body .ctg-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ctg-muted); margin: 0 0 6px; }
html body .ctg-mono { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; letter-spacing: 0.02em; }
html body .ctg-error { color: var(--ctg-bad); font-weight: 600; font-size: 0.85rem; margin: 0; }

html body .ctg-card {
    background: var(--ctg-surface);
    border: 1px solid var(--ctg-line);
    border-radius: var(--ctg-radius);
    padding: 20px;
    box-sizing: border-box;
}

html body .ctg-form { display: grid; gap: 14px; }
html body .ctg-field { display: grid; gap: 6px; font-weight: 600; font-size: 0.85rem; color: var(--ctg-muted); margin: 0; }
html body .ctg-input,
html body .ctg-select {
    width: 100%;
    box-sizing: border-box;
    background: var(--ctg-surface-2);
    border: 1px solid var(--ctg-line-strong);
    border-radius: var(--ctg-radius);
    color: var(--ctg-text);
    padding: 9px 12px;
    font: inherit;
    font-weight: 500;
    font-size: 0.95rem;
    height: auto;
}
html body .ctg-input:focus, html body .ctg-select:focus { border-color: var(--ctg-accent); outline: none; }

html body .ctg-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: var(--ctg-accent);
    color: var(--ctg-on-accent);
    border: 1px solid var(--ctg-accent);
    border-radius: var(--ctg-radius);
    padding: 9px 16px;
    font: inherit;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}
html body .ctg-button:hover { background: var(--ctg-accent-hover); border-color: var(--ctg-accent-hover); color: var(--ctg-on-accent); }
html body .ctg-button:disabled { background: var(--ctg-surface-2); border-color: var(--ctg-line); color: var(--ctg-dim); cursor: not-allowed; }
html body .ctg-button-ghost { background: transparent; color: var(--ctg-text); border-color: var(--ctg-line-strong); }
html body .ctg-button-ghost:hover { background: var(--ctg-surface-2); border-color: var(--ctg-line-strong); color: var(--ctg-text); }
html body .ctg-link-button { background: none; border: 0; padding: 0; color: var(--ctg-accent); font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; }
html body .ctg-link-button:hover { color: var(--ctg-accent-hover); text-decoration: underline; text-underline-offset: 3px; }

html body .ctg-flash { border-radius: var(--ctg-radius); padding: 10px 14px; margin: 0 0 16px; font-weight: 600; }
html body .ctg-flash p { margin: 0; }
html body .ctg-flash-warn { background: rgba(251, 191, 36, 0.12); border: 1px solid var(--ctg-warn); color: var(--ctg-warn); }
html body .ctg-flash-warn .cart-stock-warning { background: none; border: 0; padding: 0; font-weight: 500; }

html body .ctg-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; font-size: 0.92rem; }
html body .ctg-dl dt { color: var(--ctg-muted); font-weight: 600; }
html body .ctg-dl dd { margin: 0; color: var(--ctg-text); }

/* Set symbol box, like the set logos on CTG Grading's pop report */
html body .ctg-set-symbol {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 2.6rem; padding: 1px 5px; box-sizing: border-box; white-space: nowrap;
    border: 1px solid var(--ctg-line-strong); border-radius: 4px;
    font-size: 0.66rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
    color: var(--ctg-dim); background: transparent; line-height: 1.5;
}

body.ctg-no-scroll { overflow: hidden; }

/* ---------- Header ---------- */

.ctg-shop-header {
    background: var(--ctg-surface-solid);
    border-bottom: 1px solid var(--ctg-line);
    position: sticky;
    top: 0;
    z-index: 40;
}
.ctg-shop-header-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand search nav";
    align-items: center;
    gap: 12px 24px;
    min-height: 64px;
}
html body .ctg-brand { grid-area: brand; display: flex; align-items: center; gap: 10px; color: var(--ctg-text); font-weight: 800; text-decoration: none; }
html body .ctg-brand:hover { color: var(--ctg-text); }
.ctg-brand img { height: 28px; width: auto; }
.ctg-brand-name { font-size: 1.1rem; letter-spacing: -0.01em; }
.ctg-brand-tag { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ctg-muted); border-left: 1px solid var(--ctg-line-strong); padding-left: 10px; }

.ctg-header-search { grid-area: search; margin: 0; max-width: 640px; width: 100%; justify-self: center; }
html body .ctg-header-search .select2-container { width: 100% !important; }
html body .ctg-header-search .select2-selection--single { height: 40px !important; display: flex !important; align-items: center; padding: 0 12px; color: var(--ctg-muted); font-size: 0.95rem; }

.ctg-header-nav { grid-area: nav; display: flex; align-items: center; gap: 6px; justify-self: end; }
html body .ctg-header-link {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 12px; border-radius: var(--ctg-radius);
    color: var(--ctg-text); font-weight: 600; font-size: 0.95rem;
    cursor: pointer; list-style: none; text-decoration: none; white-space: nowrap;
}
html body .ctg-header-link::-webkit-details-marker { display: none; }
html body .ctg-header-link:hover { background: var(--ctg-surface-2); color: var(--ctg-text); }
html body .ctg-header-link .fa { color: var(--ctg-accent); }
html body .ctg-lang { color: var(--ctg-muted); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.04em; padding: 8px 10px; border-radius: var(--ctg-radius); }
html body .ctg-lang:hover { color: var(--ctg-text); background: var(--ctg-surface-2); }

.ctg-cart-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box;
    border-radius: 999px; background: var(--ctg-accent); color: var(--ctg-on-accent);
    font-size: 0.75rem; font-weight: 800; font-variant-numeric: tabular-nums;
}
.ctg-cart-total { color: var(--ctg-muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }

/* Pop-ups under header links (log in form, account menu) */
.ctg-pop { position: relative; }
.ctg-pop[open] > summary { background: var(--ctg-surface-2); }
.ctg-pop-panel {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
    width: 300px; box-sizing: border-box; padding: 18px;
    background: var(--ctg-surface-solid);
    border: 1px solid var(--ctg-line-strong); border-radius: var(--ctg-radius);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
html body .ctg-pop-foot { margin: 0; font-size: 0.88rem; color: var(--ctg-muted); text-align: center; }
.ctg-pop-menu { width: 230px; padding: 6px; display: grid; }
html body .ctg-pop-menu a { padding: 9px 12px; border-radius: var(--ctg-radius); color: var(--ctg-text); font-weight: 600; font-size: 0.92rem; }
html body .ctg-pop-menu a:hover { background: var(--ctg-surface-2); color: var(--ctg-text); }

/* Phones: brand and links on the first row, search across the second */
@media (max-width: 899px) {
    .ctg-shop-header-row {
        grid-template-columns: auto 1fr;
        grid-template-areas: "brand nav" "search search";
        padding-top: 10px; padding-bottom: 10px;
        min-height: 0;
    }
    .ctg-header-search { max-width: none; }
    .ctg-header-nav { gap: 2px; }
}
@media (max-width: 560px) {
    .ctg-brand-tag { display: none; }
    html body .ctg-header-link { padding: 8px 9px; }
    .ctg-header-link .ctg-header-label, .ctg-cart-total { display: none; }
    html body .ctg-header-link .fa { font-size: 1.15rem; }
    .ctg-pop-panel { position: fixed; left: 16px; right: 16px; top: 64px; width: auto; }
}

/* ---------- Page body: set menu + content ---------- */

.ctg-shop-main { padding-top: 24px; padding-bottom: 48px; }
.ctg-shop-grid { display: grid; gap: 28px; }
.ctg-shop-content { min-width: 0; }

/* Set menu */
.ctg-sets {
    background: var(--ctg-surface-solid);
    border: 1px solid var(--ctg-line);
    border-radius: var(--ctg-radius);
    display: flex; flex-direction: column;
    box-sizing: border-box;
    min-width: 0; overflow-x: hidden;
}
.ctg-sets-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 16px 8px; }
html body .ctg-sets-head .ctg-h2 { margin: 0; }
.ctg-sets-close { display: none; background: none; border: 0; color: var(--ctg-text); font-size: 1.6rem; line-height: 1; padding: 2px 8px; border-radius: var(--ctg-radius); cursor: pointer; }
.ctg-sets-close:hover { background: var(--ctg-surface-2); }
.ctg-sets-body { padding: 0 8px 12px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; align-content: start; }
/* Grid and list children default to min-width: auto, which let long set names widen the menu */
.ctg-sets-body > *, .ctg-era, .ctg-era-sets, .ctg-set-row, .ctg-set-link { min-width: 0; }

html body .ctg-sets-all { display: block; padding: 8px 10px; border-radius: var(--ctg-radius); color: var(--ctg-text); font-weight: 700; font-size: 0.92rem; }
html body .ctg-sets-all:hover, html body .ctg-sets-all.is-current { background: var(--ctg-surface-2); color: var(--ctg-text); }
html body .ctg-sets-all.is-current { box-shadow: inset 3px 0 0 var(--ctg-accent); }

.ctg-era { border-top: 1px solid var(--ctg-line); }
.ctg-era-title {
    display: flex; justify-content: space-between; align-items: center; gap: 8px;
    padding: 10px; cursor: pointer; list-style: none;
    font-weight: 700; font-size: 0.92rem; color: var(--ctg-text);
    border-radius: var(--ctg-radius);
}
.ctg-era-title::-webkit-details-marker { display: none; }
.ctg-era-title::after { content: '▸'; color: var(--ctg-dim); transition: transform 0.15s ease; margin-left: 4px; }
.ctg-era[open] > .ctg-era-title::after { transform: rotate(90deg); }
.ctg-era-title:hover { background: var(--ctg-surface-2); }
.ctg-era-title span { flex: 1; min-width: 0; }
.ctg-era-title small { color: var(--ctg-dim); font-weight: 600; font-variant-numeric: tabular-nums; }

html body .ctg-era-sets { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; }
/* Same width for every set code so the names line up */
.ctg-set-link .ctg-set-symbol { flex: none; width: 3.5rem; overflow: hidden; text-overflow: ellipsis; }
html body .ctg-set-link, html body .ctg-set-lang {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 10px; border-radius: var(--ctg-radius);
    color: var(--ctg-muted); font-weight: 600; font-size: 0.86rem;
}
html body .ctg-set-link:hover, html body .ctg-set-lang:hover { background: var(--ctg-surface-2); color: var(--ctg-text); }
.ctg-set-row.is-current .ctg-set-link { background: var(--ctg-surface-2); color: var(--ctg-text); box-shadow: inset 3px 0 0 var(--ctg-accent); }
.ctg-set-row.is-current .ctg-set-symbol { color: var(--ctg-accent); border-color: var(--ctg-accent); }
/* Long set names wrap onto a second line instead of being cut off */
.ctg-set-name { flex: 1; min-width: 0; overflow: hidden; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ctg-set-flag { width: 16px; height: 11px; flex: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35); opacity: 0.85; }
.ctg-set-lang { padding-left: 76px; font-size: 0.8rem; }

.ctg-sets-scrim { display: none; }
.ctg-sets-open { flex: none; }

/* Phones and tablets: the set menu slides in from the left */
@media (max-width: 1023px) {
    .ctg-sets {
        position: fixed; z-index: 70; top: 0; bottom: 0; left: 0;
        width: min(340px, 88vw);
        border-radius: 0 var(--ctg-radius) var(--ctg-radius) 0;
        transform: translateX(-102%); visibility: hidden;
        transition: transform 0.22s ease, visibility 0.22s;
    }
    .ctg-sets.is-open { transform: none; visibility: visible; box-shadow: 12px 0 40px rgba(0, 0, 0, 0.45); }
    .ctg-sets-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
    .ctg-sets-close { display: inline-flex; }
    .ctg-sets-scrim { position: fixed; inset: 0; z-index: 69; background: rgba(5, 9, 18, 0.6); }
}
@media (max-width: 1023px) and (prefers-reduced-motion: reduce) { .ctg-sets { transition: none; } }

/* Wide screens: a sticky sidebar that scrolls on its own */
@media (min-width: 1024px) {
    .ctg-shop-grid { grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }
    .ctg-sets {
        position: sticky; top: 88px;
        max-height: calc(100vh - 112px);
        overflow-y: auto; overscroll-behavior: contain;
        scrollbar-width: thin; scrollbar-color: var(--ctg-line-strong) transparent;
    }
    .ctg-sets-head { position: sticky; top: 0; z-index: 1; background: var(--ctg-surface-solid); }
    html body .ctg-sets-open { display: none; }
}

/* ---------- Page title and toolbar ---------- */

.ctg-page-head { margin: 0 0 18px; }
.ctg-page-head .ctg-set-symbol { font-size: 0.72rem; }

.ctg-toolbar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
    margin: 0 0 18px; padding: 10px 14px;
    background: var(--ctg-surface); border: 1px solid var(--ctg-line); border-radius: var(--ctg-radius);
}
html body .ctg-results { margin: 0 auto 0 0; font-size: 0.9rem; font-weight: 600; color: var(--ctg-muted); font-variant-numeric: tabular-nums; }
html body .ctg-toolbar-field { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 0.85rem; font-weight: 600; color: var(--ctg-muted); }
html body .ctg-toolbar-field .ctg-select { width: auto; padding: 7px 10px; font-size: 0.9rem; }

/* "In stock only" as a pill switch, one tap */
html body .ctg-toggle { position: relative; margin: 0; cursor: pointer; }
html body .ctg-toggle input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
html body .ctg-toggle span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--ctg-line-strong); background: var(--ctg-surface-2); color: var(--ctg-text); font-size: 0.88rem; font-weight: 600; }
html body .ctg-toggle span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--ctg-muted); }
html body .ctg-toggle:hover span { border-color: var(--ctg-muted); }
html body .ctg-toggle input:checked + span { background: var(--ctg-accent); border-color: var(--ctg-accent); color: var(--ctg-on-accent); }
html body .ctg-toggle input:checked + span::before { background: var(--ctg-on-accent); border-color: var(--ctg-on-accent); }
html body .ctg-toggle input:focus-visible + span { outline: 2px solid var(--ctg-accent); outline-offset: 2px; }

@media (max-width: 639px) {
    .ctg-toolbar { padding: 10px; gap: 10px; }
    html body .ctg-results { order: -1; flex: 1 1 auto; margin: 0; }
    .ctg-toolbar .ctg-sets-open { order: -2; }
    html body .ctg-toggle { flex: 1 1 100%; }
    html body .ctg-toggle span { width: 100%; justify-content: center; box-sizing: border-box; }
    html body .ctg-toolbar-field { flex: 1 1 0; min-width: 0; }
    html body .ctg-toolbar-field .ctg-select { flex: 1; min-width: 0; width: 100%; }
}

/* ---------- Product grid (like the auction lot grid) ---------- */

.ctg-product-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); margin-bottom: 28px; }

html body .ctg-product-card { display: flex; flex-direction: column; padding: 12px; transition: border-color 0.15s ease; }
html body .ctg-product-card:hover { border-color: var(--ctg-accent); }
html body .ctg-product-link { display: block; color: inherit; text-decoration: none; }
html body .ctg-product-link:hover { color: inherit; }
html body .ctg-product-link:hover .ctg-product-title { color: var(--ctg-accent); }

html body .ctg-product-thumb {
    position: relative; width: 100%; aspect-ratio: 5 / 7;
    background: var(--ctg-surface-2); border-radius: var(--ctg-radius);
    overflow: hidden; margin-bottom: 10px;
}
html body .ctg-product-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
html body .ctg-product-thumb.home-product-sold-out img { opacity: 0.35; filter: grayscale(0.4); }
html body .ctg-product-thumb .sold-out-overlay { display: none; }
html body .ctg-product-thumb.home-product-sold-out .sold-out-overlay { display: inline-flex; }

html body .ctg-product-eyebrow { font-size: 0.68rem; letter-spacing: 0.1em; margin-bottom: 4px; }
.ctg-rarity, .ctg-condition { padding: 0 6px; border-radius: 999px; border: 1px solid var(--ctg-line-strong); color: var(--ctg-text); letter-spacing: 0.04em; }
.ctg-condition { border-color: var(--ctg-warn); color: var(--ctg-warn); }
html body .ctg-product-title {
    margin: 0 0 2px; font-size: 0.98rem; font-weight: 700; line-height: 1.3; color: var(--ctg-text);
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
html body .ctg-product-sub { margin: 0; font-size: 0.82rem; color: var(--ctg-muted); font-variant-numeric: tabular-nums; }

/* Price, stock and button pinned to the bottom, so they line up across a row */
.ctg-product-foot { margin-top: auto; padding-top: 10px; display: grid; gap: 8px; }
html body .ctg-product-price { margin: 0; font-size: 1.1rem; font-weight: 800; color: var(--ctg-text); font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 6px; }
html body .ctg-product-stock { margin: -6px 0 0; font-size: 0.8rem; font-weight: 600; color: var(--ctg-dim); display: flex; align-items: center; gap: 6px; }
html body .ctg-product-stock.is-in-stock { color: var(--ctg-ok); }
html body .ctg-product-foot .ctg-button { width: 100%; padding: 8px 10px; font-size: 0.9rem; }
/* Condition picker on cards that come in more than one condition */
.ctg-condition-pick { display: block; margin: 0; }
html body .ctg-condition-select { width: 100%; min-width: 0; height: auto; padding: 5px 26px 5px 8px; font-size: 0.82rem; font-weight: 600; font-variant-numeric: tabular-nums; }
html body .ctg-product-card.is-sold-out .ctg-product-price { color: var(--ctg-muted); }
html body .ctg-product-price.is-no-price, html body .ctg-buy-price.is-no-price { font-size: 0.95rem; font-weight: 600; color: var(--ctg-muted); }

/* Phones: three compact cards per row */
@media (max-width: 639px) {
    html body .ctg-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    html body .ctg-product-card { padding: 5px 5px 6px; }
    html body .ctg-product-thumb { margin-bottom: 6px; border-radius: 4px; }
    html body .ctg-product-thumb .sold-out-overlay { font-size: 0.58rem; padding: 3px 7px; letter-spacing: 0.04em; }
    html body .ctg-product-eyebrow { font-size: 0.56rem; letter-spacing: 0.04em; margin-bottom: 2px; gap: 3px; }
    html body .ctg-product-eyebrow > span:first-child { display: none; }   /* language: the set code says it */
    .ctg-rarity, .ctg-condition { padding: 0 4px; }
    html body .ctg-product-title { font-size: 0.74rem; line-height: 1.25; }
    html body .ctg-product-sub { font-size: 0.62rem; }
    .ctg-product-foot { padding-top: 6px; gap: 5px; }
    html body .ctg-product-price { font-size: 0.82rem; gap: 3px; }
    html body .ctg-product-price.is-no-price { font-size: 0.7rem; }
    html body .ctg-product-stock { margin-top: -4px; font-size: 0.6rem; gap: 3px; }
    html body .ctg-condition-select { padding: 3px 16px 3px 4px; font-size: 0.6rem; background-position: right 3px center; background-size: 10px; }
    html body .ctg-product-foot .ctg-button { padding: 6px 2px; font-size: 0.66rem; gap: 3px; white-space: nowrap; letter-spacing: -0.01em; }
    html body .ctg-product-price button img, html body .ctg-product-stock button img { width: 11px; height: 11px; }
}

/* Staff pencil buttons */
html body .edit-price-btn, html body .edit-stock-btn { background: none; border: 0; padding: 2px; line-height: 0; cursor: pointer; opacity: 0.7; }
html body .edit-price-btn:hover, html body .edit-stock-btn:hover { opacity: 1; }
html body .edit-price-btn img, html body .edit-stock-btn img { width: 14px; height: 14px; filter: invert(1); }

html body .ctg-empty { display: grid; gap: 4px; justify-items: start; padding: 32px 24px; }
html body .ctg-empty p { margin: 0 0 6px; }

/* Pager (Laravel's Bootstrap pager) */
.ctg-pager { display: flex; justify-content: center; }
html body .ctg-pager nav { display: flex; flex-direction: column; align-items: center; gap: 10px; }
html body .ctg-pager .pagination { margin: 0; gap: 4px; flex-wrap: wrap; justify-content: center; }
html body .ctg-pager .page-link, html body .ctg-pager .pagination li a, html body .ctg-pager .pagination li span {
    min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--ctg-radius) !important; border: 1px solid var(--ctg-line-strong);
    background: var(--ctg-surface); color: var(--ctg-text); font-weight: 600;
}
html body .ctg-pager .page-item.active .page-link, html body .ctg-pager .pagination li.active span { background: var(--ctg-accent); border-color: var(--ctg-accent); color: var(--ctg-on-accent); }
html body .ctg-pager p { color: var(--ctg-muted); font-size: 0.88rem; margin: 0; }

/* ---------- Add to cart pop-up ---------- */

.ctg-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.ctg-modal[hidden] { display: none; }
.ctg-modal-scrim { position: absolute; inset: 0; background: rgba(5, 9, 18, 0.7); }
html body .ctg-modal-panel { position: relative; width: 100%; max-width: 520px; background: var(--ctg-surface-solid); border-color: var(--ctg-line-strong); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
.ctg-modal-close { position: absolute; top: 8px; right: 8px; background: none; border: 0; color: var(--ctg-muted); font-size: 1.6rem; line-height: 1; padding: 4px 10px; border-radius: var(--ctg-radius); cursor: pointer; }
.ctg-modal-close:hover { color: var(--ctg-text); background: var(--ctg-surface-2); }
.ctg-modal-body { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: start; }
.ctg-modal-thumb { width: 100%; aspect-ratio: 5 / 7; object-fit: contain; border-radius: var(--ctg-radius); background: var(--ctg-surface-2); }
.ctg-modal-info { display: grid; gap: 10px; padding-right: 24px; }
html body .ctg-modal-info .ctg-h2 { margin: 0; font-size: 1.2rem; }
html body .ctg-modal-info .ctg-eyebrow { margin: 0; }
@media (max-width: 479px) { .ctg-modal-body { grid-template-columns: 96px 1fr; gap: 14px; } .ctg-modal-info { padding-right: 0; } }

/* ---------- Product page ---------- */

html body .ctg-back { display: inline-block; margin: 0 0 16px; font-size: 0.9rem; font-weight: 600; color: var(--ctg-muted); }
html body .ctg-back:hover { color: var(--ctg-accent); }

.ctg-product-layout { display: grid; gap: 24px; }
@media (min-width: 860px) { .ctg-product-layout { grid-template-columns: minmax(260px, 400px) minmax(0, 1fr); gap: 32px; align-items: start; } }
@media (min-width: 860px) { .ctg-product-hero { position: sticky; top: 88px; } }
html body .ctg-product-hero .product-image-container {
    position: relative; max-width: 400px; margin: 0 auto; aspect-ratio: 5 / 7;
    background: var(--ctg-surface-2); border: 1px solid var(--ctg-line); border-radius: 12px; overflow: hidden;
}
html body .ctg-product-hero .product-image-container img { width: 100%; height: 100%; object-fit: contain; display: block; }
@media (max-width: 859px) { html body .ctg-product-hero .product-image-container { max-width: 300px; } }
html body .ctg-product-hero .sold-out-overlay { font-size: 1rem; padding: 8px 16px; }

.ctg-product-side { display: grid; gap: 20px; min-width: 0; }
html body .ctg-buy-card { padding: 24px; display: grid; gap: 4px; }
html body .ctg-product-name { margin: 0; }
.ctg-product-number { color: var(--ctg-muted); font-weight: 600; font-size: 0.7em; margin-left: 6px; font-variant-numeric: tabular-nums; }
html body .ctg-product-alt { margin: 0; font-size: 0.95rem; }
html body .ctg-buy-price { margin: 14px 0 0; font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ctg-text); display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
html body .ctg-buy-stock { margin: 0; font-weight: 700; font-size: 0.92rem; display: flex; align-items: center; gap: 8px; }
html body .ctg-buy-stock.is-in-stock { color: var(--ctg-ok); }
html body .ctg-buy-stock.is-sold-out { color: var(--ctg-bad); }
.ctg-buy-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 16px 0 4px; }
html body .ctg-buy-qty { flex: 0 0 110px; }
html body .ctg-buy-row .ctg-button { flex: 1 1 140px; padding: 11px 18px; font-size: 1rem; }
html body .ctg-product-facts { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ctg-line); }

html body .ctg-product-description { color: var(--ctg-muted); }
html body .ctg-product-description:empty { display: none; }

.ctg-policies { display: grid; gap: 8px; }
html body .ctg-policies .ctg-h2 { margin: 4px 0 4px; }
.ctg-policy { background: var(--ctg-surface); border: 1px solid var(--ctg-line); border-radius: var(--ctg-radius); }
.ctg-policy > summary {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 12px 16px; cursor: pointer; list-style: none; font-weight: 700; font-size: 0.95rem; color: var(--ctg-text);
}
.ctg-policy > summary::-webkit-details-marker { display: none; }
.ctg-policy > summary::after { content: '+'; color: var(--ctg-accent); font-size: 1.2rem; line-height: 1; }
.ctg-policy[open] > summary::after { content: '−'; }
.ctg-policy > summary:hover { background: var(--ctg-surface-2); border-radius: var(--ctg-radius); }
html body .ctg-policy-body { padding: 0 16px 6px; color: var(--ctg-muted); font-size: 0.92rem; line-height: 1.6; }
html body .ctg-policy-body strong { color: var(--ctg-text); }

/* ---------- Cart ---------- */

.ctg-cart-layout { display: grid; gap: 20px; }
@media (min-width: 1100px) { .ctg-cart-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.ctg-cart-items { display: grid; gap: 10px; min-width: 0; }

html body .ctg-cart-row {
    display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; align-items: center;
    padding: 12px 16px;
}
html body .ctg-cart-thumb img { width: 72px; aspect-ratio: 5 / 7; object-fit: contain; border-radius: 4px; background: var(--ctg-surface-2); display: block; }
.ctg-cart-info { min-width: 0; }
html body .ctg-cart-info .ctg-eyebrow { margin: 0 0 2px; font-size: 0.68rem; }
html body .ctg-cart-name { display: block; color: var(--ctg-text); font-weight: 700; font-size: 1rem; }
html body .ctg-cart-name:hover { color: var(--ctg-accent); }
html body .ctg-cart-each { margin: 2px 0 0; font-size: 0.85rem; }
.ctg-cart-actions { display: grid; grid-template-columns: 90px 110px; gap: 4px 16px; align-items: center; justify-items: end; }
html body .ctg-cart-qty { grid-row: span 2; justify-self: stretch; }
html body .ctg-cart-line-total { margin: 0; font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; color: var(--ctg-text); }
html body .ctg-cart-actions .cart-remove-btn { color: var(--ctg-bad); border: 0 !important; background: none !important; padding: 0; font-size: 0.85rem; }
@media (max-width: 639px) {
    html body .ctg-cart-row { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 12px; }
    html body .ctg-cart-thumb img { width: 64px; }
    .ctg-cart-actions { grid-column: 1 / -1; grid-template-columns: 90px 1fr auto; justify-items: start; }
    html body .ctg-cart-qty { grid-row: auto; }
    html body .ctg-cart-line-total { justify-self: end; grid-column: 3; grid-row: 1; }
    html body .ctg-cart-actions .cart-remove-btn { grid-column: 2; grid-row: 1; justify-self: start; }
}

html body .ctg-cart-summary { position: static; display: grid; gap: 14px; padding: 20px; box-shadow: none; border-top: 1px solid var(--ctg-line); background: var(--ctg-surface-solid); }
@media (min-width: 1100px) { html body .ctg-cart-summary { position: sticky; top: 88px; } }
html body .ctg-cart-summary .ctg-h2 { margin: 0; }
.ctg-cart-totals { padding-bottom: 14px; border-bottom: 1px solid var(--ctg-line); }
html body .ctg-cart-totals dd { text-align: right; font-variant-numeric: tabular-nums; }
html body .ctg-cart-sum { font-size: 1.3rem; font-weight: 800; }
html body .ctg-fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; min-width: 0; }
html body .ctg-fieldset legend { font-weight: 700; font-size: 0.9rem; color: var(--ctg-text); margin: 0 0 4px; padding: 0; float: left; width: 100%; }
html body .ctg-fieldset legend + * { clear: both; }
html body .ctg-choice { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 12px; border: 1px solid var(--ctg-line-strong); border-radius: var(--ctg-radius); background: var(--ctg-surface-2); cursor: pointer; font-weight: 600; font-size: 0.92rem; color: var(--ctg-text); }
html body .ctg-choice:hover { border-color: var(--ctg-muted); }
html body .ctg-choice:has(input:checked) { border-color: var(--ctg-accent); background: rgba(125, 211, 252, 0.1); }
html body .ctg-choice input { accent-color: var(--ctg-accent); width: 16px; height: 16px; margin: 0; }
html body .ctg-choice small { color: var(--ctg-muted); font-weight: 600; margin-left: 4px; }
html body .ctg-cart-summary .ctg-button { width: 100%; padding: 11px 16px; }
html body .ctg-cart-summary .cart-menu-please-log-in { margin: 0; font-size: 0.92rem; }

/* ---------- Footer ---------- */

.ctg-shop-footer { border-top: 1px solid var(--ctg-line); padding: 28px 0 40px; font-size: 0.9rem; color: var(--ctg-muted); }
html body .ctg-shop-footer p { margin: 0 0 8px; }
html body .ctg-shop-footer strong { color: var(--ctg-text); }
.ctg-shop-footer-links { display: flex; gap: 8px 18px; flex-wrap: wrap; }

/* Hover preview of a card picture: keep it inside the screen */
html body .product-image-preview { max-width: 280px; border-radius: 10px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); }

/* ---------- Log in page ---------- */

.ctg-auth { display: grid; place-items: center; padding: 32px 0 24px; }
html body .ctg-auth-card { width: 100%; max-width: 420px; padding: 28px; }
html body .ctg-check { display: flex; gap: 8px; align-items: center; margin: 0; color: var(--ctg-muted); font-size: 0.9rem; font-weight: 500; }
html body .ctg-auth-link { font-size: 0.9rem; justify-self: center; }
html body .ctg-auth-foot { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--ctg-line); text-align: center; color: var(--ctg-muted); font-size: 0.92rem; }

/* ---------- Staff product editor (admin_product_editor) ---------- */

html body .admin-product-header { background: var(--ctg-surface-solid); border: 1px solid var(--ctg-line); border-radius: var(--ctg-radius); color: var(--ctg-dim); }
html body .btn-apply, html body .btn-save-single, html body .btn-add-condition {
    background: var(--ctg-accent); color: var(--ctg-on-accent); border: 0; border-radius: var(--ctg-radius); font-weight: 700;
}
html body .btn-apply:hover, html body .btn-save-single:hover, html body .btn-add-condition:hover { background: var(--ctg-accent-hover); color: var(--ctg-on-accent); }
html body .admin-product-row { border-color: var(--ctg-line) !important; }
html body .admin-product-row .rarity { color: var(--ctg-muted); }
html body .admin-product-row-unpriced { background: rgba(251, 191, 36, 0.08); color: var(--ctg-text); border-color: var(--ctg-warn); }

/* Checkout and customer order pages */
.checkout-section { padding: 20px; }
.checkout-postcode-row { display: flex; gap: 10px; align-items: end; }
.checkout-postcode-row .ctg-field { flex: 0 1 160px; }
.checkout-remote-note, .checkout-hold-note { font-size: 0.85rem; margin: 10px 0 0; }
.checkout-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.9rem; }
.checkout-items li { display: flex; justify-content: space-between; gap: 12px; }
.my-orders-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.my-orders-table th, .my-orders-table td { padding: 10px 8px; border-bottom: 1px solid var(--ctg-line); text-align: left; }
.my-orders-table td.num, .my-orders-table th.num { text-align: right; }
.my-order-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .my-order-grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.my-order-status { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--ctg-surface-2); border: 1px solid var(--ctg-line-strong); font-weight: 700; font-size: 0.8rem; }
.my-order-pay-box { border-left: 3px solid var(--ctg-accent); padding: 12px 16px; margin: 0 0 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ctg-shop-footer-business { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.78rem; color: var(--ctg-muted); }
.ctg-legal { max-width: 760px; padding: 24px; line-height: 1.65; }
.ctg-legal h2 { font-size: 1.05rem; margin: 24px 0 8px; }
.ctg-legal ol, .ctg-legal ul { padding-left: 1.4em; }
.ctg-legal table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 8px 0; }
.ctg-legal th, .ctg-legal td { border: 1px solid var(--ctg-line); padding: 6px 8px; text-align: left; vertical-align: top; }
.ctg-returns-note { font-size: 0.82rem; margin: 8px 0 0; }

/* In the store: tagged copies on display (store_items) */
html body .ctg-in-store { padding: 20px 24px; display: grid; gap: 6px; }
html body .ctg-in-store .ctg-h2 { margin: 0; }
html body .ctg-in-store-note { margin: 0 0 6px; font-size: 0.9rem; max-width: 60ch; }
.ctg-in-store-list { list-style: none; margin: 0; padding: 0; display: grid; }
.ctg-in-store-copy {
    display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 6px 12px;
    padding: 10px 0; border-top: 1px solid var(--ctg-line);
}
.ctg-in-store-grade {
    font-weight: 700; padding: 3px 10px; border-radius: 6px;
    background: var(--ctg-surface-2); border: 1px solid var(--ctg-line); font-variant-numeric: tabular-nums;
}
.ctg-in-store-copy.is-graded .ctg-in-store-grade { border-color: var(--ctg-accent); }
html body .ctg-in-store-cert { font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.ctg-in-store-price { grid-column: 3; font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
html body .ctg-in-store-add { grid-column: 4; padding: 7px 12px; font-size: 0.9rem; white-space: nowrap; }
@media (max-width: 520px) {
    .ctg-in-store-copy { grid-template-columns: auto 1fr auto; }
    html body .ctg-in-store-add { grid-column: 1 / -1; justify-self: stretch; }
}
.ctg-cart-condition { font-weight: 700; padding: 1px 7px; border-radius: 5px; border: 1px solid var(--ctg-line); margin-left: 4px; font-size: 0.85em; }

/* ---------- Staff phone page: scan tags (staff/scan.blade.php) ---------- */
.scan-page { max-width: 560px; margin: 0 auto; padding: 0 0 96px; display: grid; gap: 14px; }
.scan-head .ctg-h1 { margin-bottom: 2px; }
html body .scan-counts { margin: 0; font-variant-numeric: tabular-nums; }
.scan-modes { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ctg-line-strong); border-radius: var(--ctg-radius); overflow: hidden; }
.scan-mode { background: transparent; color: var(--ctg-muted); border: 0; padding: 11px 8px; font-weight: 700; font-family: inherit; }
.scan-mode.is-on { background: var(--ctg-surface-2); color: var(--ctg-text); box-shadow: inset 0 -2px 0 var(--ctg-accent); }
.scan-mode:focus-visible { outline: 2px solid var(--ctg-accent); outline-offset: -2px; }
.scan-camera { position: relative; aspect-ratio: 4 / 3; background: #000; border-radius: 10px; overflow: hidden; }
.scan-camera video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-aim { position: absolute; left: 12%; right: 12%; top: 50%; height: 0; border-top: 2px solid var(--ctg-accent); box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.25); }
.scan-entry { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
html body .scan-input { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; min-height: 48px; }
html body .scan-cam-btn { grid-column: 1 / -1; }
.scan-note { margin: 0; padding: 10px 12px; border-radius: var(--ctg-radius); background: var(--ctg-surface-2); border-left: 3px solid var(--ctg-muted); }
.scan-note.is-ok { border-left-color: var(--ctg-ok); }
.scan-note.is-warn { border-left-color: var(--ctg-warn); }
.scan-note.is-bad { border-left-color: var(--ctg-bad); }

.scan-result { background: var(--ctg-surface); border: 1px solid var(--ctg-line); border-radius: 10px; overflow: hidden; }
/* The one loud thing on the page: what this copy is doing right now */
.scan-status { padding: 14px 18px; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; color: var(--ctg-on-accent); background: var(--ctg-muted); }
.scan-status.is-in_store { background: var(--ctg-ok); }
.scan-status.is-held, .scan-status.is-pulled { background: var(--ctg-warn); }
.scan-status.is-sold, .scan-status.is-removed { background: var(--ctg-bad); }
.scan-status.is-auction { background: var(--ctg-accent); }
.scan-copy { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 16px 18px; }
.scan-pic { width: 96px; aspect-ratio: 5 / 7; object-fit: contain; background: var(--ctg-surface-2); border-radius: 6px; }
.scan-copy-text p { margin: 0; }
.scan-name { font-weight: 800; font-size: 1.1rem; line-height: 1.25; }
html body .scan-number { font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.scan-grade { margin-top: 8px !important; }
.scan-chip { display: inline-block; font-weight: 700; padding: 2px 9px; border-radius: 6px; background: var(--ctg-surface-2); border: 1px solid var(--ctg-line-strong); font-variant-numeric: tabular-nums; }
.scan-price { font-size: 1.6rem; font-weight: 800; margin-top: 6px !important; font-variant-numeric: tabular-nums; }
html body .scan-printed { font-size: 0.85rem; }
.scan-order { display: block; margin: 0 18px 12px; font-weight: 700; color: var(--ctg-accent); }
.scan-actions { display: grid; gap: 8px; padding: 0 18px 18px; }
html body .scan-act { min-height: 48px; font-size: 1rem; }
html body .scan-act.is-danger { color: var(--ctg-bad); border-color: var(--ctg-bad); }

.scan-count { display: grid; gap: 10px; }
.scan-count > p { margin: 0; }
.scan-tally { font-size: 1.1rem; font-weight: 700; color: var(--ctg-muted); }
.scan-tally span { font-size: 3rem; font-weight: 800; color: var(--ctg-text); font-variant-numeric: tabular-nums; margin-right: 6px; }
.scan-last { margin: 0; padding-left: 0; list-style: none; color: var(--ctg-muted); font-variant-numeric: tabular-nums; }
.scan-count-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.scan-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.scan-list-item { width: 100%; text-align: left; display: grid; grid-template-columns: auto 1fr auto; gap: 2px 10px; align-items: center; padding: 10px 12px; border-radius: var(--ctg-radius); border: 1px solid var(--ctg-line); background: var(--ctg-surface); color: var(--ctg-text); font-family: inherit; }
.scan-list-name { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scan-list-price { font-weight: 800; font-variant-numeric: tabular-nums; }
.scan-list-code { grid-column: 1 / -1; font-size: 0.82rem; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .scan-page { max-width: 640px; } }
.scan-page [hidden] { display: none !important; }
/* Order alerts on this phone: quiet until on; the state line carries the colour */
.scan-alerts { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ctg-line); display: grid; gap: 10px; }
html body .scan-alerts-title { margin: 0; font-size: 1.05rem; font-weight: 800; }
html body .scan-alerts-state { margin: 0; padding: 8px 12px; border-left: 3px solid var(--ctg-muted); background: var(--ctg-surface-2); border-radius: var(--ctg-radius); }
html body .scan-alerts-state.is-on { border-left-color: var(--ctg-ok); }
html body .scan-alerts-state.is-warn { border-left-color: var(--ctg-warn); }
.scan-alerts-kinds { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; }
.scan-alerts-kinds label { display: flex; gap: 10px; align-items: center; font-weight: 600; padding: 6px 0; }
.scan-alerts-kinds input { width: 20px; height: 20px; accent-color: var(--ctg-accent); }
.scan-alerts-actions { display: flex; flex-wrap: wrap; gap: 8px; }
html body .scan-alerts-hint { margin: 0; font-size: 0.85rem; }
.scan-alerts .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Staff: store stock (staff/store_stock.blade.php) ---------- */
.stock-page { display: grid; gap: 18px; max-width: 1100px; }
html body .stock-lead { margin: 0; max-width: 60ch; }
.stock-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 24px; align-items: baseline; }
.stock-big { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; margin-right: 4px; }
html body .stock-slow { padding: 20px 22px; display: grid; gap: 10px; }
.stock-slow-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
html body .stock-slow-head .ctg-h2 { margin: 0; }
.stock-ages { display: flex; border: 1px solid var(--ctg-line-strong); border-radius: var(--ctg-radius); overflow: hidden; }
.stock-ages a { padding: 6px 12px; white-space: nowrap; color: var(--ctg-muted); font-weight: 600; text-decoration: none; }
.stock-ages a.is-on { background: var(--ctg-surface-2); color: var(--ctg-text); box-shadow: inset 0 -2px 0 var(--ctg-accent); }
.stock-slow > p { margin: 0; }
.stock-empty { padding: 14px 0; }
.stock-table-wrap { overflow-x: auto; }
.stock-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.stock-table th { text-align: left; color: var(--ctg-muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--ctg-line-strong); white-space: nowrap; }
.stock-table td { padding: 9px 10px; border-bottom: 1px solid var(--ctg-line); }
.stock-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stock-table .is-high { color: var(--ctg-warn); font-weight: 700; }
.stock-chip { font-weight: 700; padding: 1px 8px; border-radius: 5px; border: 1px solid var(--ctg-line-strong); white-space: nowrap; }
.stock-code { color: var(--ctg-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 640px) {
    .stock-table thead { display: none; }
    .stock-table tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--ctg-line); }
    .stock-table td { border: 0; padding: 0; }
    .stock-table td:nth-child(1) { grid-column: 1 / -1; font-weight: 700; }
    .stock-table td.num { text-align: left; }
    .stock-table td:nth-child(4)::before { content: 'market '; color: var(--ctg-muted); }
    .stock-table td:nth-child(6)::after { content: ' days'; color: var(--ctg-muted); }
}
@media (max-width: 420px) { .stock-ages a { padding: 6px 9px; font-size: 0.9rem; } }
html body .ctg-product-in-store { display: block; font-size: 0.82rem; font-weight: 700; color: var(--ctg-accent); text-decoration: none; margin-top: 2px; }
html body .ctg-product-in-store:hover { text-decoration: underline; }

/* Card lists: the number right after the name ("Gengar ex 240/193"), the set on one line below */
html body .ctg-product-title .ctg-product-number { margin-left: 0; font-size: inherit; font-weight: inherit; color: inherit; white-space: nowrap; }
html body .ctg-product-card .ctg-product-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
