/*
 * JodalMate - Standard Products index
 * 2026-08-17 final page layout after public UI system refactor.
 * Scope: /products list/card only. Detail page continues to use products.css.
 */

.products-page .products-hero {
    padding-bottom: 14px !important;
}

.products-page .products-content {
    padding: 0 0 48px;
}

.products-page .products-filter {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 16px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.products-page .products-filter-row-selects {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.products-page .products-filter-row-selects > div,
.products-page .products-search {
    min-width: 0;
}

.products-page .products-filter label,
.products-page .products-per-page label {
    display: block;
    margin: 0 0 6px;
    color: var(--text);
font-weight: 800;
}

.products-page .products-filter select,
.products-page .products-filter input[type="search"],
.products-page .products-per-page select {
    width: 100%;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
}

.products-page .products-filter select {
    padding: 0 12px;
}

.products-page .products-filter select:disabled {
    opacity: .55;
}

.products-page .products-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
}

.products-page .products-filter input[type="search"] {
    min-width: 0;
    padding: 0 12px;
}

.products-page .products-result-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 7px;
    min-width: 0;
    color: var(--muted);
    font-size: 11px;
}

.products-page .products-result-summary strong {
    color: var(--text);
    font-size: 14px;
    font-weight: 850;
}

.products-page .products-summary-dot {
    opacity: .55;
}

.products-page .products-filtered-count {
    margin-left: 5px;
    padding: 3px 7px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 8%, var(--surface));
    color: var(--primary);
    font-weight: 750;
}

.products-page .products-view-toggle {
    padding: 2px;
    border: 1px solid var(--line);
    background: var(--surface);
}

.products-page .products-view-btn {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.products-page .products-view-btn.is-active {
    background: color-mix(in srgb, var(--primary) 10%, var(--surface));
    color: var(--primary);
}

.products-page .products-view-btn svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.products-page .products-view-btn svg rect {
    fill: none;
}

.products-page .products-per-page {
    margin: 0;
}

.products-page .products-per-page label {
    margin: 0;
    color: var(--muted);
    white-space: nowrap;
}

.products-page .products-per-page select {
    width: 76px;
    height: 34px;
    padding: 0 9px;
}

/* ---------- shared badges / input ---------- */
.products-page .products-price-source,
.products-page .sp-category-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 2px 8px;
    border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--line));
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 7%, var(--surface));
    color: var(--primary);
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
}

.products-page .products-price-source.is-standard {
    border-color: color-mix(in srgb, #10b981 32%, var(--line));
    background: color-mix(in srgb, #10b981 9%, var(--surface));
    color: #059669;
}

.products-page .products-price-source.is-manual {
    border-color: color-mix(in srgb, #2563eb 30%, var(--line));
    background: color-mix(in srgb, #2563eb 8%, var(--surface));
    color: #2563eb;
}

.products-page .products-source-empty {
    color: var(--muted);
    font-size: 11px;
}

.products-page .sp-list-source.is-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 2px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-soft, var(--surface));
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.products-page .sp-price-input {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
}

.products-page .sp-price-input input {
    width: 82px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface) 90%, var(--page-bg));
    color: var(--text);
    text-align: right;
    font-size: 12px;
    font-weight: 800;
    outline: 0;
}

.products-page .sp-price-input input:hover {
    border-color: color-mix(in srgb, var(--primary) 36%, var(--line));
}

.products-page .sp-price-input input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent);
}

.products-page .sp-price-input > span,
.products-page .sp-price-input > em {
    color: var(--muted);
    font-size: 10px;
    font-style: normal;
    white-space: nowrap;
}

.products-page .products-price-save-state {
    display: block;
    min-height: 11px;
    margin-top: 2px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.1;
    text-align: right;
}

.products-page .products-price-save-state.is-saving { color: #2563eb; }
.products-page .products-price-save-state.is-saved { color: #059669; }
.products-page .products-price-save-state.is-error { color: #dc2626; }

/* ---------- list ---------- */
.products-page .sp-list-wrap {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}

.products-page .sp-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.products-page .sp-table .sp-col-code { width: 20%; }
.products-page .sp-table .sp-col-info { width: 44%; }
.products-page .sp-table .sp-col-price { width: 14%; }
.products-page .sp-table .sp-col-source { width: 8%; }

.products-page .sp-table th {
    height: 38px;
    padding: 0 10px;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--page-bg) 58%, var(--surface));
    color: var(--muted);
    text-align: left;
    font-size: 10px;
    font-weight: 850;
    line-height: 1.2;
    white-space: nowrap;
}

.products-page .sp-table th.is-number { text-align: center; }
.products-page .sp-table th.is-center { text-align: center; }

.products-page .sp-list-row td {
    height: 56px;
    padding: 7px 10px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    vertical-align: middle;
    transition: background .15s ease, box-shadow .15s ease;
}

.products-page .sp-list-row:last-child td {
    border-bottom: 0;
}

.products-page .sp-list-row:hover td,
.products-page .sp-list-row:focus-within td {
    background: #eef4ff;
    box-shadow: inset 0 1px 0 #93b4f5,
                inset 0 -1px 0 #93b4f5;
}

.products-page .sp-list-row:hover td:first-child,
.products-page .sp-list-row:focus-within td:first-child {
    box-shadow: inset 4px 0 0 #2563eb,
                inset 0 1px 0 #93b4f5,
                inset 0 -1px 0 #93b4f5;
}

.products-page .sp-list-row:hover td:last-child,
.products-page .sp-list-row:focus-within td:last-child {
    box-shadow: inset -1px 0 0 #93b4f5,
                inset 0 1px 0 #93b4f5,
                inset 0 -1px 0 #93b4f5;
}

[data-theme="dark"] .products-page .sp-list-row:hover td,
[data-theme="dark"] .products-page .sp-list-row:focus-within td {
    background: #17243a;
    box-shadow: inset 0 1px 0 #3b82f6,
                inset 0 -1px 0 #3b82f6;
}

[data-theme="dark"] .products-page .sp-list-row:hover td:first-child,
[data-theme="dark"] .products-page .sp-list-row:focus-within td:first-child {
    box-shadow: inset 4px 0 0 #60a5fa,
                inset 0 1px 0 #3b82f6,
                inset 0 -1px 0 #3b82f6;
}

[data-theme="dark"] .products-page .sp-list-row:hover td:last-child,
[data-theme="dark"] .products-page .sp-list-row:focus-within td:last-child {
    box-shadow: inset -1px 0 0 #3b82f6,
                inset 0 1px 0 #3b82f6,
                inset 0 -1px 0 #3b82f6;
}

.products-page .sp-code-cell code,
.products-page .sp-code-cell span,
.products-page .sp-info-cell strong,
.products-page .sp-info-cell span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.products-page .sp-code-cell code {
    margin: 0 0 4px;
    color: var(--muted);
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}

.products-page .sp-code-cell span {
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
}

.products-page .sp-info-cell strong {
    margin-bottom: 4px;
    color: var(--text);
    font-size: 14px;
    font-weight: 850;
    line-height: 1.2;
    white-space: nowrap;
}

.products-page .sp-info-cell span {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.3;
    white-space: nowrap;
}

.products-page .sp-reference-price,
.products-page .sp-company-price {
    text-align: right;
    white-space: nowrap;
}

.products-page .sp-reference-price strong {
    color: var(--text);
    font-size: 12px;
    font-weight: 850;
}

.products-page .sp-reference-price > span:not(.sp-dash) {
    margin-left: 4px;
    color: var(--muted);
    font-size: 10px;
}

.products-page .sp-dash {
    color: var(--muted);
    font-weight: 650;
}

.products-page .sp-company-price .sp-price-input {
    justify-content: flex-end;
}

.products-page .sp-source-cell {
    min-width: 66px;
    text-align: center;
    white-space: nowrap;
}

.products-page .sp-locked-price {
    color: var(--muted);
    text-align: center;
    font-size: 11px;
}

/* ---------- card ---------- */
.products-page .sp-card-list {
    display: grid;
    gap: 9px;
}

.products-page .sp-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "meta"
        "info"
        "prices";
    row-gap: 6px;
    padding: 10px 16px 11px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface);
    box-shadow: 0 5px 16px rgba(15, 23, 42, .045);
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.products-page .sp-card:hover,
.products-page .sp-card:focus-within {
    border-color: #93b4f5;
    background: #eef4ff;
    box-shadow: inset 4px 0 0 #2563eb,
                0 7px 20px rgba(15, 23, 42, .07);
}

[data-theme="dark"] .products-page .sp-card:hover,
[data-theme="dark"] .products-page .sp-card:focus-within {
    border-color: #3b82f6;
    background: #17243a;
    box-shadow: inset 4px 0 0 #60a5fa,
                0 7px 20px rgba(0, 0, 0, .22);
}

.products-page .sp-card-meta {
    grid-area: meta;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 18px;
}

.products-page .sp-card-meta code {
    color: var(--muted);
    font-family: inherit;
    font-size: 10px;
    font-weight: 750;
    white-space: nowrap;
}

.products-page .sp-card-category {
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.products-page .sp-card-info {
    grid-area: info;
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.products-page .sp-card-info strong {
    flex: 0 0 auto;
    color: var(--text);
    font-size: 14px;
    font-weight: 850;
    line-height: 1.25;
    white-space: nowrap;
}

.products-page .sp-card-info span {
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.products-page .sp-card-prices {
    grid-area: prices;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px 22px;
    min-width: 0;
    padding-top: 1px;
    text-align: right;
}

.products-page .sp-card-price {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
    text-align: right;
    white-space: nowrap;
}

.products-page .sp-card-price > span:first-child {
    color: var(--muted);
    font-size: 9px;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
}

.products-page .sp-card-price > div {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.products-page .sp-card-price > div > strong {
    color: var(--text);
    font-size: 12px;
    font-weight: 850;
}

.products-page .sp-card-price > div > em {
    color: var(--muted);
    font-size: 10px;
    font-style: normal;
}

.products-page .sp-card-price .products-price-save-state {
    position: absolute;
    margin-top: 32px;
}

.products-page .sp-card-source {
    flex: 0 0 auto;
    white-space: nowrap;
}

.products-page .sp-card-source.is-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 2px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: var(--surface-soft, var(--surface));
    font-size: 12px;
    font-weight: 800;
}

.products-page .sp-card-locked {
    min-width: 150px;
}

.products-page .sp-card-locked strong {
    color: var(--muted);
    font-size: 11px;
}

.products-page .sp-empty {
    padding: 44px 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    color: var(--muted);
    text-align: center;
    font-size: 12px;
}

/* pagination uses existing markup but one stable geometry */
.products-page .products-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 18px 0 0;
}

.products-page .products-pagination a {
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
    color: var(--text);
    font-size: 11px;
    font-weight: 750;
    text-decoration: none;
}


.products-page .products-pagination a.is-disabled {
    pointer-events: none;
    opacity: .38;
}

html[data-theme="dark"] .products-page .sp-card,
html[data-theme="dark"] .products-page .sp-list-wrap,
html[data-theme="dark"] .products-page .products-filter {
    box-shadow: none;
}

html[data-theme="dark"] .products-page .products-price-source.is-standard {
    color: #6ee7b7;
}

html[data-theme="dark"] .products-page .products-price-source.is-manual {
    color: #93c5fd;
}

@media (max-width: 1040px) {
    .products-page .sp-table .sp-col-code { width: 22%; }
    .products-page .sp-table .sp-col-info { width: 38%; }
    .products-page .sp-table .sp-col-price { width: 15%; }
    .products-page .sp-table .sp-col-source { width: 10%; }

    .products-page .sp-card {
        grid-template-columns: 1fr;
        grid-template-areas: "meta" "info" "prices";
        row-gap: 8px;
    }

    .products-page .sp-card-prices {
        min-width: 0;
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 820px) {
    .products-page .products-filter-row-selects {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .products-page .sp-list-wrap {
        overflow-x: auto;
    }

    .products-page .sp-table {
        min-width: 900px;
    }

    .products-page .sp-card-prices {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 16px;
    }

    .products-page .sp-card-price {
        min-width: 0;
    }
}

@media (max-width: 620px) {
    .products-page .products-filter {
        padding: 12px;
    }

    .products-page .products-filter-row-selects {
        grid-template-columns: 1fr;
    }

    .products-page .products-search-row {
        grid-template-columns: 1fr 1fr;
    }

    .products-page .products-search-row input {
        grid-column: 1 / -1;
    }

    .products-page .products-result-head {
        align-items: flex-start !important;
    }

    .products-page .products-result-summary {
        flex-basis: 100%;
    }

    .products-page .products-result-tools {
        width: 100%;
        justify-content: flex-end;
    }

    .products-page .sp-card {
        padding: 11px 12px 12px;
    }

    .products-page .sp-card-meta {
        flex-wrap: wrap;
    }

    .products-page .sp-card-info {
        display: grid;
        gap: 4px;
    }

    .products-page .sp-card-info strong,
    .products-page .sp-card-info span {
        white-space: normal;
    }

    .products-page .sp-card-prices {
        grid-template-columns: 1fr;
    }

    .products-page .sp-card-price {
        grid-template-columns: minmax(90px, auto) 1fr;
        align-items: center;
        gap: 12px;
    }

    .products-page .sp-card-price > span:first-child {
        justify-self: start;
    }

    .products-page .sp-card-price > div,
    .products-page .sp-card-price > strong {
        justify-self: end;
    }
}


/* Product page-only title/action placement. Shared button, pagination and control styling lives in ui-system.css. */
.products-page .products-title-row.public-title-row {
    align-items: center !important;
}
.products-page .products-title-actions {
    align-self: center !important;
    display: flex;
    align-items: center;
}
/* Product title emphasis on hover - list/card only. Existing hover effects remain unchanged. */
.products-page .sp-list-row .sp-info-cell strong,
.products-page .sp-card .sp-card-info strong {
    transition: color .15s ease;
}

.products-page .sp-list-row:hover .sp-info-cell strong,
.products-page .sp-list-row:focus-within .sp-info-cell strong,
.products-page .sp-card:hover .sp-card-info strong,
.products-page .sp-card:focus-within .sp-card-info strong {
    color: #1d4ed8;
}

[data-theme="dark"] .products-page .sp-list-row:hover .sp-info-cell strong,
[data-theme="dark"] .products-page .sp-list-row:focus-within .sp-info-cell strong,
[data-theme="dark"] .products-page .sp-card:hover .sp-card-info strong,
[data-theme="dark"] .products-page .sp-card:focus-within .sp-card-info strong {
    color: #3b82f6;
}

/* ---------- guest price privacy ---------- */
.products-page .sp-guest-price-head {
    text-align: center;
}

.products-page .sp-guest-price-message {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.4;
    text-align: center;
}

.products-page .sp-list-row > .sp-guest-price-message {
    padding-left: 18px;
    padding-right: 18px;
}

.products-page .sp-card-prices.sp-card-prices-guest {
    justify-content: flex-end;
    width: 100%;
}

.products-page .sp-card-prices.sp-card-prices-guest .sp-guest-price-message {
    width: 100%;
    text-align: right;
}

[data-theme="dark"] .products-page .sp-guest-price-message {
    color: #94a3b8;
}

/* Keep the page title and English eyebrow on one line. */
.products-page .products-title-copy {
    min-width: 0;
}
.products-page .products-title-heading {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    min-width: 0;
}
.products-page .products-title-heading > h1,
.products-page .products-title-heading > .eyebrow {
    flex: 0 0 auto;
    margin: 0 !important;
}


/* =========================================================
 * 2026-08-18 Stage 3: standard products wide-view scale
 * - compact: keep the approved existing typography/layout
 * - wide (1500px): enlarge product-page controls/text one step
 * - mobile/tablet: keep compact density regardless of view mode
 * ========================================================= */
@media (min-width: 901px) {
    html[data-layout="wide"] .products-page .products-filter {
        gap: 12px;
        padding: 18px;
    }

    html[data-layout="wide"] .products-page .products-filter-row-selects {
        gap: 12px;
    }

    html[data-layout="wide"] .products-page .products-filter select,
    html[data-layout="wide"] .products-page .products-filter input[type="search"] {
        height: 44px;
        padding-left: 13px;
        padding-right: 13px;
}


    html[data-layout="wide"] .products-page .products-search-row {
        gap: 9px;
    }

    html[data-layout="wide"] .products-page .products-search-row .btn {
        min-height: 44px;
    }

    html[data-layout="wide"] .products-page .products-result-summary {
        font-size: 12px;
    }

    html[data-layout="wide"] .products-page .products-result-summary strong {
        font-size: 15px;
    }

    html[data-layout="wide"] .products-page .products-view-toggle {
        height: 36px !important;
    }

    html[data-layout="wide"] .products-page .products-view-btn {
        width: 32px;
        height: 32px;
    }

    html[data-layout="wide"] .products-page .products-view-btn svg {
        width: 18px;
        height: 18px;
    }

    html[data-layout="wide"] .products-page .products-per-page select {
        width: 82px;
        height: 36px !important;
}

    html[data-layout="wide"] .products-page .sp-table th {
        height: 42px;
        padding-left: 12px;
        padding-right: 12px;
        font-size: 13px !important;
    }

    html[data-layout="wide"] .products-page .sp-list-row td {
        height: 62px;
        padding: 8px 12px;
    }

    html[data-layout="wide"] .products-page .sp-code-cell code,
    html[data-layout="wide"] .products-page .sp-card-meta code {
        font-size: 11px;
    }

    html[data-layout="wide"] .products-page .sp-code-cell span,
    html[data-layout="wide"] .products-page .sp-card-category {
        font-size: 12px;
    }

    html[data-layout="wide"] .products-page .sp-info-cell strong,
    html[data-layout="wide"] .products-page .sp-card-info strong {
        font-size: 15px;
    }

    html[data-layout="wide"] .products-page .sp-info-cell span,
    html[data-layout="wide"] .products-page .sp-card-info span {
        font-size: 11px;
    }

    html[data-layout="wide"] .products-page .sp-reference-price strong,
    html[data-layout="wide"] .products-page .sp-card-price > div > strong {
        font-size: 13px;
    }

    html[data-layout="wide"] .products-page .sp-reference-price > span:not(.sp-dash),
    html[data-layout="wide"] .products-page .sp-card-price > div > em,
    html[data-layout="wide"] .products-page .sp-price-input > span,
    html[data-layout="wide"] .products-page .sp-price-input > em {
        font-size: 11px;
    }

    html[data-layout="wide"] .products-page .sp-price-input input {
        width: 92px;
        height: 34px;
        font-size: 13px;
    }

    html[data-layout="wide"] .products-page .products-price-source,
    html[data-layout="wide"] .products-page .sp-category-badge {
        min-height: 24px;
        padding-left: 9px;
        padding-right: 9px;
        font-size: 13px;
    }

    html[data-layout="wide"] .products-page .sp-list-source.is-empty,
    html[data-layout="wide"] .products-page .sp-card-source.is-empty {
        min-height: 24px;
        padding-left: 9px;
        padding-right: 9px;
        font-size: 13px;
    }

    html[data-layout="wide"] .products-page .sp-locked-price,
    html[data-layout="wide"] .products-page .sp-card-locked strong {
        font-size: 12px;
    }

    html[data-layout="wide"] .products-page .sp-card-list {
        gap: 10px;
    }

    html[data-layout="wide"] .products-page .sp-card {
        row-gap: 7px;
        padding: 12px 18px 13px;
    }

    html[data-layout="wide"] .products-page .sp-card-meta {
        gap: 9px;
        min-height: 20px;
    }

    html[data-layout="wide"] .products-page .sp-card-info {
        gap: 12px;
    }

    html[data-layout="wide"] .products-page .sp-card-prices {
        gap: 9px 26px;
    }

    html[data-layout="wide"] .products-page .sp-card-price > span:first-child {
        font-size: 10px;
    }

    html[data-layout="wide"] .products-page .sp-guest-price-message {
        font-size: 13px;
    }

    html[data-layout="wide"] .products-page .products-pagination a {
        min-width: 34px;
        height: 34px;
        font-size: 12px;
    }
}

/* Product-page typography only (shared search/filter typography lives in ui-system.css). */
.products-page .products-title-heading > h1 { font-size:25px !important; }
.products-page .products-title-heading > .eyebrow { font-size:11px !important; }
.products-page .products-hero > .site-container > p { font-size:12px !important; }
.products-page .site-main .btn,
.products-page .site-main .btn-primary,
.products-page .site-main .btn-subtle,
.products-page .site-main .btn-ghost { font-size:13px !important; }

@media (min-width:901px) {
    html[data-layout="wide"] .products-page .products-title-heading > h1 { font-size:27px !important; }
    html[data-layout="wide"] .products-page .products-title-heading > .eyebrow { font-size:12px !important; }
    html[data-layout="wide"] .products-page .products-hero > .site-container > p { font-size:13px !important; }
    html[data-layout="wide"] .products-page .site-main .btn,
    html[data-layout="wide"] .products-page .site-main .btn-primary,
    html[data-layout="wide"] .products-page .site-main .btn-subtle,
    html[data-layout="wide"] .products-page .site-main .btn-ghost { font-size:15px !important; }
}

/* 2026-08-27: 표준상품 실제 데이터값 굵기 제거
   - 목록/카드의 상품코드, 부류, 상품명, 설명, 가격값, 입력값만 일반 굵기
   - 컬럼 제목, 라벨, 상태/구분 배지는 기존 강조 유지 */
.products-page .sp-code-cell code,
.products-page .sp-code-cell span,
.products-page .sp-info-cell strong,
.products-page .sp-info-cell span,
.products-page .sp-reference-price strong,
.products-page .sp-reference-price > span:not(.sp-dash),
.products-page .sp-dash,
.products-page .sp-price-input input,
.products-page .sp-card-meta code,
.products-page .sp-card-category,
.products-page .sp-card-info strong,
.products-page .sp-card-info span,
.products-page .sp-card-price > div > strong,
.products-page .sp-card-price > div > em {
    font-weight: 400;
}

/* 2026-08-27: 표준상품의 '표준가' 적용 단가는 공고 상세의 표준단가처럼 회색 표시
   - 내단가(is-manual)는 기존 일반 텍스트색 유지
   - 배지 색상은 변경하지 않음
   - badge 클래스가 AJAX로 standard/manual 전환되면 입력값 색상도 즉시 따라감 */
.products-page .sp-table tbody tr:has(.products-price-source.is-standard) .sp-price-input input,
.products-page .sp-card:has(.products-price-source.is-standard) .sp-price-input input,
.products-page .sp-card:has(.products-price-source.is-standard) .sp-card-price > div > strong,
.products-page .sp-card:has(.products-price-source.is-standard) .sp-card-price > div > em {
    color: #8a94a3;
}

html[data-theme="dark"] .products-page .sp-table tbody tr:has(.products-price-source.is-standard) .sp-price-input input,
html[data-theme="dark"] .products-page .sp-card:has(.products-price-source.is-standard) .sp-price-input input,
html[data-theme="dark"] .products-page .sp-card:has(.products-price-source.is-standard) .sp-card-price > div > strong,
html[data-theme="dark"] .products-page .sp-card:has(.products-price-source.is-standard) .sp-card-price > div > em {
    color: #94a3b8;
}

.products-page .sp-table tbody tr:has(.products-price-source.is-manual) .sp-price-input input,
.products-page .sp-card:has(.products-price-source.is-manual) .sp-price-input input,
.products-page .sp-card:has(.products-price-source.is-manual) .sp-card-price > div > strong,
.products-page .sp-card:has(.products-price-source.is-manual) .sp-card-price > div > em {
    color: var(--text);
}

