/* Tokens, layout chrome, buttons/forms/tables: see public/css/admin-ds/ */
/* Domain-specific portal styles below */

.turbo-progress-bar {
    height: 2px;
    background: var(--admin-primary, #e2001a);
}

#portalSearchResults {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    display: block;
    max-height: 420px;
    overflow: auto;
    z-index: 1050;
}

#portalSearchResults.d-none {
    display: none;
}

/* Shell / rail / page chrome: public/css/admin-ds/ */

.portal-main {
    min-width: 0;
    padding-bottom: 2rem;
}

.page-content .pagination {
    flex-wrap: nowrap;
    max-width: 100%;
    gap: var(--admin-space-2);
}

.catalog-head {
    margin-bottom: 1.35rem;
    padding-top: .15rem;
}

.catalog-title {
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -.03em;
    color: var(--portal-ink);
    margin: 0 0 .35rem;
}

.catalog-sub {
    margin: 0;
    color: var(--portal-muted);
    font-size: .95rem;
    line-height: 1.5;
    max-width: 46rem;
}

.catalog-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius-lg);
    box-shadow: none;
}

.catalog-filters-search {
    display: flex;
    min-width: 0;
    flex: 1 1 220px;
    align-items: center;
    gap: 0.5rem;
    height: var(--admin-control-h-sm);
    min-height: var(--admin-control-h-sm);
    padding: 0 0.75rem;
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius);
    background: var(--admin-surface);
    color: var(--admin-text-muted);
    box-sizing: border-box;
}

.catalog-filters-search input {
    width: 100%;
    border: 0;
    background: transparent;
    outline: none;
    font-size: 12px;
    color: var(--admin-text);
    min-height: 0;
    height: 100%;
    padding: 0;
}

.catalog-filters-price {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-size: .8rem;
    color: var(--vz-secondary-color, #878a99);
    white-space: nowrap;
}

.catalog-filters-price input[type=range] {
    width: 180px;
    accent-color: #e2001a;
}

.catalog-filters-price strong {
    font-size: .85rem;
    font-weight: 700;
    color: var(--vz-body-color, #212529);
}

.catalog-filters-stock {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin: 0;
    font-size: .875rem;
    color: var(--vz-body-color, #495057);
    white-space: nowrap;
}

.catalog-filters-stock input {
    accent-color: #e2001a;
}

.catalog-switch {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin: 0;
    font-size: .875rem;
    color: var(--vz-body-color, #495057);
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}

.catalog-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.catalog-switch-track {
    width: 2.4rem;
    height: 1.28rem;
    border-radius: 999px;
    background: #e4e4e4;
    position: relative;
    flex-shrink: 0;
    transition: background .15s ease;
}

.catalog-switch-track::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 1.02rem;
    height: 1.02rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(16, 16, 16, .2);
    transition: transform .15s ease;
}

.catalog-switch input:checked + .catalog-switch-track {
    background: #e2001a;
}

.catalog-switch input:checked + .catalog-switch-track::after {
    transform: translateX(1.12rem);
}

.catalog-switch input:focus-visible + .catalog-switch-track {
    outline: 2px solid rgba(226, 0, 26, .35);
    outline-offset: 2px;
}

.catalog-sort {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin: 0 0 0 auto;
    font-size: .8rem;
    color: var(--vz-secondary-color, #878a99);
    white-space: nowrap;
}

.catalog-sort select {
    appearance: none;
    border: 1px solid var(--portal-line);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23878a99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right .7rem center;
    border-radius: 999px;
    padding: .42rem 2rem .42rem .9rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--vz-body-color, #212529);
    cursor: pointer;
}

.catalog-sort select:focus {
    outline: 2px solid rgba(226, 0, 26, .2);
    border-color: #e2001a;
}

.catalog-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .7rem 1rem;
    margin: 1.05rem 0 1.2rem;
}

.catalog-found {
    font-size: .875rem;
    color: var(--portal-muted);
}

.catalog-found strong {
    color: var(--portal-ink);
    font-weight: 700;
}

.catalog-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    flex: 1 1 240px;
    min-width: 0;
}

.catalog-chips-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--portal-muted);
    margin-right: .15rem;
}

.catalog-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    max-width: 18rem;
    padding: .35rem .4rem .35rem .75rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e4e4e6;
    box-shadow: 0 1px 2px rgba(16, 16, 16, .04);
    color: var(--portal-ink);
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.2;
}

.catalog-chip span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-chip-x {
    flex-shrink: 0;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #f3f3f4;
    color: var(--portal-muted);
}

.catalog-chip-x i {
    font-size: .85rem;
    line-height: 1;
}

.catalog-chip:hover {
    border-color: #e2001a;
    color: #e2001a;
}

.catalog-chip:hover .catalog-chip-x {
    background: #ffe5e8;
    color: #e2001a;
}

.catalog-empty {
    margin-top: .25rem;
    padding: 3rem 1.5rem;
}

.catalog-empty-sub {
    max-width: 28rem;
    margin: 0 auto !important;
    color: var(--portal-muted) !important;
    font-size: .88rem !important;
    font-weight: 400 !important;
}

.catalog-empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    margin-top: .35rem;
}

.catalog-views {
    display: flex;
    margin-left: auto;
    border: 1px solid var(--portal-line);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.catalog-views a {
    width: 2.3rem;
    height: 2.3rem;
    display: grid;
    place-items: center;
    color: var(--portal-muted);
    text-decoration: none;
}

.catalog-views a + a {
    border-left: 1px solid var(--portal-line);
}

.catalog-views a:hover {
    color: #e2001a;
    background: #fafafa;
}

.catalog-views a.is-on {
    background: #e2001a;
    color: #fff;
}

.catalog-views a.is-on:hover {
    background: #c40016;
    color: #fff;
}

.catalog-filters-count {
    margin-left: auto;
    font-size: .82rem;
    font-weight: 600;
    color: var(--vz-secondary-color, #878a99);
    white-space: nowrap;
}

.btn-primary,
.bg-primary {
    --vz-primary: #e2001a;
    --vz-primary-rgb: 226, 0, 26;
}

.form-check-input:checked {
    background-color: #e2001a;
    border-color: #e2001a;
}

.auth-one-bg .bg-overlay {
    background: linear-gradient(to right, #b40016, #e2001a);
    opacity: .92;
}

.auth-page-wrapper .portal-logo {
    background: #fff;
    color: #e2001a;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
}

.auth-page-wrapper .auth-brand-line {
    color: #fff;
}

.text-primary {
    color: #e2001a !important;
}

.portal-product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 700px) {
    .portal-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1120px) {
    .portal-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1540px) {
    .portal-product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.portal-product-grid.is-list {
    grid-template-columns: 1fr;
    gap: 1rem;
}

.portal-product-grid.is-list .pcard {
    flex-direction: row;
    align-items: stretch;
    padding-right: .35rem;
}

.portal-product-grid.is-list .pcard:hover {
    transform: translateY(-3px);
}

.portal-product-grid.is-list .pcard-media {
    width: 210px;
    height: auto;
    min-height: 100%;
    flex-shrink: 0;
    align-self: stretch;
}

.portal-product-grid.is-list .pcard-media img {
    padding: 0;
    object-fit: cover;
}

.portal-product-grid.is-list .pcard-quick-btn {
    bottom: .45rem;
    padding: .35rem .55rem;
    font-size: .7rem;
}

.portal-product-grid.is-list .pcard-quick-btn span {
    display: none;
}

.portal-product-grid.is-list .pcard-body {
    flex: 1;
    min-width: 0;
    padding: .95rem 1.15rem 1rem;
}

.portal-product-grid.is-list .pcard-form {
    margin-top: .55rem;
}

.portal-product-grid.is-list .pcard-actions {
    max-width: 22rem;
}

@media (max-width: 699.98px) {
    .portal-product-grid.is-list .pcard {
        flex-direction: column;
        align-items: stretch;
        padding-right: 0;
    }

    .portal-product-grid.is-list .pcard-media {
        width: 100%;
        height: 180px;
    }
}

@media (min-width: 900px) {
    .portal-product-grid.is-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portal-product-grid.is-list .pcard-actions {
        max-width: none;
    }
}

.pcard {
    background: var(--portal-card);
    border: 1px solid var(--portal-line);
    border-radius: var(--portal-radius);
    box-shadow: var(--portal-box-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: inherit;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.pcard:hover {
    transform: translateY(-4px);
    border-color: #ececec;
    box-shadow: var(--portal-box-hover);
    color: inherit;
}

.pcard-media {
    position: relative;
    display: grid;
    place-items: center;
    height: 236px;
    background:
        radial-gradient(120% 80% at 50% 0%, #fff 0%, #f4f4f4 70%);
    color: #c9b8b3;
    font-size: 2.8rem;
    overflow: hidden;
}

.pcard-media-link {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: inherit;
    text-decoration: none;
    z-index: 1;
}

.pcard-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
}

.pcard-quick-btn {
    position: absolute;
    left: 50%;
    bottom: .85rem;
    transform: translateX(-50%) translateY(.25rem);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem .8rem;
    border: 0;
    border-radius: 999px;
    background: rgba(28, 28, 28, .88);
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.1;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease, background .16s ease;
}

.pcard-quick-btn i {
    font-size: 1rem;
    line-height: 1;
}

.pcard:hover .pcard-quick-btn,
.pcard:focus-within .pcard-quick-btn {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.pcard-quick-btn:hover,
.pcard-quick-btn:focus-visible {
    background: #e2001a;
    outline: none;
}

@media (hover: none) {
    .pcard-quick-btn {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
        padding: .4rem;
        border-radius: 50%;
        background: rgba(28, 28, 28, .72);
    }

    .pcard-quick-btn span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }
}

.pcard-sale {
    position: absolute;
    top: .85rem;
    left: .85rem;
    z-index: 2;
    background: #e2001a;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .01em;
    padding: .28rem .55rem;
    border-radius: 8px;
}

.pcard-body {
    padding: 1.15rem 1.2rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: .22rem;
    flex: 1;
}

.pcard-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    min-height: 1.3rem;
}

.pcard-code {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--portal-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pcard-code.is-overlay {
    position: absolute;
    top: .85rem;
    left: .85rem;
    z-index: 2;
    max-width: calc(100% - 7.5rem);
    margin: 0;
    padding: .18rem .55rem;
    border-radius: 999px;
    background: #e7eef4;
    color: #3d5363;
    text-transform: none;
    letter-spacing: .01em;
    font-weight: 600;
    line-height: 1.3;
    box-shadow: 0 1px 2px rgba(16, 16, 16, .08);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-2px);
    transition: opacity .15s ease, transform .15s ease;
}

.pcard:hover .pcard-code.is-overlay,
.pcard:focus-within .pcard-code.is-overlay {
    opacity: 1;
    transform: translateY(0);
}

.pcard-media:has(.pcard-sale) .pcard-code.is-overlay {
    top: 2.65rem;
}

.pcard-stock,
.pcard-order {
    flex-shrink: 0;
    font-size: .68rem;
    font-weight: 700;
    padding: .18rem .5rem;
    border-radius: 999px;
    line-height: 1.3;
}

.pcard-stock.is-overlay,
.pcard-order.is-overlay {
    position: absolute;
    top: .85rem;
    right: .85rem;
    z-index: 2;
    box-shadow: 0 1px 2px rgba(16, 16, 16, .08);
}

.pcard-stock {
    background: #e7f6ec;
    color: #147a3c;
}

.pcard-order {
    background: #fff4e5;
    color: #b76a00;
}

.pcard-name {
    display: block;
    color: var(--portal-ink);
    font-weight: 700;
    font-size: 1.08rem;
    line-height: 1.3;
    text-decoration: none;
    margin: .12rem 0 .04rem;
}

.pcard-name:hover {
    color: #e2001a;
}

.pcard-cat {
    color: var(--portal-muted);
    font-size: .8rem;
    line-height: 1.35;
    min-height: 1.2em;
}

.pcard-dims {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-top: .55rem;
    padding-top: .7rem;
    padding-bottom: .7rem;
    border-top: 1px solid var(--portal-line, #edf0e9);
    border-bottom: 1px solid var(--portal-line, #edf0e9);
}

.pcard-dims-ico {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #f1f3f0;
    color: #6b746e;
    font-size: 16px;
}

.pcard-dims-text {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    min-width: 0;
}

.pcard-dims-label {
    font-size: .72rem;
    color: #81898d;
    line-height: 1.3;
}

.pcard-dims-val {
    font-size: .92rem;
    font-weight: 700;
    color: #242a2e;
    letter-spacing: -.02em;
    line-height: 1.25;
}

.pcard-price-rail {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .65rem;
    margin-top: .55rem;
}

.pcard-cat + .pcard-price-rail {
    padding-top: .7rem;
    border-top: 1px solid var(--portal-line);
}

.pcard-price {
    color: var(--portal-ink);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -.03em;
    line-height: 1.1;
    margin: 0;
}

.pcard-moc {
    color: var(--portal-muted);
    font-size: .72rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.pcard-moc.is-sale {
    text-decoration: line-through;
}

.pcard-pending {
    margin: 0;
    font-size: .8rem;
    font-weight: 700;
    color: #b76a00;
}

.pcard-form {
    margin-top: .9rem;
}

.pcard-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .55rem;
}

.pcard-buy,
.pcard-offer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    border-radius: 10px;
    font-size: .8rem;
    font-weight: 700;
    padding: .62rem .4rem;
    line-height: 1.1;
    border: 1px solid transparent;
    white-space: nowrap;
}

.pcard-buy {
    background: #e2001a;
    color: #fff;
}

.pcard-buy:hover,
.pcard-buy:disabled {
    background: #c40016;
    color: #fff;
}

.pcard-buy:disabled {
    opacity: .55;
}

.pcard-offer {
    background: #fff0f2;
    color: #e2001a;
    border-color: #ffd0d7;
}

.pcard-offer:hover {
    background: #ffe3e7;
    border-color: #e2001a;
    color: #c40016;
}

.pcard-buy i,
.pcard-offer i {
    font-size: 1rem;
    line-height: 1;
}

.pcard-mini {
    color: inherit;
    box-shadow: none;
}

.pcard-mini:hover {
    transform: translateY(-3px);
    box-shadow: var(--portal-box-hover);
}

.pcard-mini .pcard-media {
    height: 140px;
}

.pcard-mini .pcard-name {
    font-size: .85rem;
}

.pd-wrap {
    background: var(--portal-card);
    border: 1px solid var(--portal-line);
    border-radius: var(--portal-radius);
    box-shadow: var(--portal-box-shadow);
    padding: 1.5rem 1.75rem 2rem;
}

.pd-bc {
    font-size: .8rem;
    color: var(--vz-secondary-color, #878a99);
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    align-items: center;
}

.pd-bc a {
    color: inherit;
    text-decoration: none;
}

.pd-bc a:hover {
    color: #e2001a;
}

.pd-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.pd-gallery {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.pd-main {
    position: relative;
    background: #f4f5f7;
    border: 0;
    border-radius: var(--portal-radius);
    min-height: 420px;
    display: grid;
    place-items: center;
    color: #c5c9ce;
    overflow: hidden;
}

.pd-main img {
    width: 100%;
    height: 440px;
    object-fit: contain;
    background: #f7f8fa;
}

.pd-sale {
    position: absolute;
    top: .75rem;
    right: .75rem;
}

.pd-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .5rem;
}

.pd-thumb {
    border: 1px solid var(--portal-line);
    background: #f4f5f7;
    border-radius: 10px;
    padding: 0;
    height: 72px;
    overflow: hidden;
}

.pd-thumb.is-active {
    border-color: #e2001a;
}

.pd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pd-kicker {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .8rem;
    color: var(--vz-secondary-color, #878a99);
    margin-bottom: .25rem;
}

.pd-badge-stock,
.pd-badge-order {
    font-size: .68rem;
    font-weight: 600;
    padding: .12rem .4rem;
    border-radius: 4px;
}

.pd-badge-stock {
    background: #e7f6ec;
    color: #0f7b3a;
}

.pd-badge-order {
    background: #fff4e5;
    color: #b76a00;
}

.pd-title {
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -.03em;
    margin: 0 0 .25rem;
    color: var(--portal-ink);
}

.pd-sub {
    color: var(--vz-secondary-color, #878a99);
    margin-bottom: 1rem;
}

.pd-pricebox {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: .15rem 0 .35rem;
    margin-bottom: .85rem;
}

.pd-partner {
    color: #e2001a;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.1;
}

.pd-moc-row {
    display: flex;
    gap: .75rem;
    align-items: center;
    color: var(--vz-secondary-color, #878a99);
    font-size: .85rem;
}

.pd-moc-row span:first-child {
    text-decoration: line-through;
}

.pd-disc {
    color: #e2001a;
    font-weight: 700;
    text-decoration: none !important;
}

.pd-swatches {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
}

.pd-swatch {
    cursor: pointer;
    margin: 0;
}

.pd-swatch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pd-swatch span {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #cfd4d8;
}

.pd-swatch.is-active span {
    box-shadow: 0 0 0 2px #e2001a;
}

.pd-buy {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    align-items: stretch;
}

.pd-qty {
    max-width: none;
}

.pd-buy-main {
    min-width: 128px;
    padding: .62rem 1rem;
    font-size: .9rem;
}

.pd-buy .pcard-offer {
    padding: .62rem .9rem;
    font-size: .9rem;
}

.pd-wh {
    background: var(--portal-card);
    border: 1px solid var(--portal-line);
    border-radius: var(--portal-radius-sm);
    padding: .85rem 1rem;
}

.pd-wh .form-select {
    max-width: 280px;
    margin: .25rem 0 .4rem;
}

.pd-wh-meta {
    font-size: .85rem;
    color: var(--vz-secondary-color, #878a99);
    display: flex;
    gap: .4rem;
}

.pd-tabs {
    border-bottom: 1px solid var(--portal-line);
    gap: .25rem;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.pd-tabs .nav-link {
    border: 0;
    background: none;
    color: #e2001a;
    font-weight: 600;
    padding: .55rem .85rem;
    border-radius: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.pd-tabs .nav-link.active {
    color: #1a1a1a;
    border-bottom-color: #e2001a;
}

.pd-tab-body {
    padding: 1.25rem 0 1.5rem;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.pd-desc {
    line-height: 1.55;
    color: #242a2e;
}

.pd-desc-block {
    margin-top: 1.1rem;
}

.pd-params {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.75rem;
}

.pd-params-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    min-height: 2.35rem;
    padding: .55rem 0;
    border-bottom: 1px solid #edf0e9;
}

.pd-params-key {
    color: var(--vz-secondary-color, #878a99);
    font-weight: 500;
}

.pd-params-val {
    text-align: right;
    font-weight: 600;
    color: #242a2e;
}

.pd-specs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem 1.5rem;
}

.pd-specs li {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin: 0;
}

.pd-specs i {
    color: #e2001a;
    flex-shrink: 0;
}

@media (max-width: 699.98px) {
    .pd-params,
    .pd-specs {
        grid-template-columns: 1fr;
    }
}

.pd-docs {
    display: grid;
    gap: .6rem;
}

.pd-doc {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem;
    border: 1px solid var(--vz-border-color, #e9ebec);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
}

.pd-doc:hover {
    border-color: #e2001a;
    color: inherit;
}

.pd-doc i:first-child {
    font-size: 1.4rem;
    color: #e2001a;
}

.pd-doc small {
    display: block;
    color: var(--vz-secondary-color, #878a99);
}

.pd-videos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: .75rem;
}

.pd-video {
    text-align: left;
    background: #fff;
    border: 1px solid var(--vz-border-color, #e9ebec);
    border-radius: 8px;
    padding: .9rem;
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.pd-video-play {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2001a;
    color: #fff;
    display: grid;
    place-items: center;
    margin-bottom: .4rem;
}

.pd-video small {
    color: var(--vz-secondary-color, #878a99);
}

.modal {
    z-index: 2200;
}

.modal-backdrop {
    z-index: 2190;
    background: rgba(28, 12, 12, .52);
}

.modal-backdrop.show {
    opacity: 1;
}

#pdVideoFrame {
    width: 100%;
    height: 360px;
    border: 0;
    background: #1a1a1a;
}

.pd-group-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 1.75rem 0 .75rem;
}

.pd-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.pd-mini {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--vz-border-color, #e9ebec);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: #fff;
}

.pd-mini:hover {
    border-color: #e2001a;
    color: inherit;
}

.pd-mini-thumb {
    height: 110px;
    background: #f7f8fa;
    display: grid;
    place-items: center;
    color: #adb5bd;
}

.pd-mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pd-mini-body {
    padding: .7rem .8rem .85rem;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

@media (max-width: 991.98px) {
    .pd-hero {
        grid-template-columns: 1fr;
    }
}

.portal-product-card .body {
    padding: .9rem;
    display: flex;
    flex-direction: column;
    gap: .25rem;
    flex: 1;
}

.price-moc {
    color: var(--vz-secondary-color, #878a99);
    text-decoration: line-through;
    font-size: .8rem;
}

.price-partner {
    color: #e2001a;
    font-weight: 700;
}

.portal-stepper {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
}

.portal-stepper .step {
    flex: 1;
    text-align: center;
    font-size: .75rem;
}

.portal-stepper .dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin: 0 auto .35rem;
    display: grid;
    place-items: center;
    background: #e9ebec;
    color: #878a99;
    font-weight: 700;
}

.portal-stepper .step.done .dot,
.portal-stepper .step.current .dot {
    background: #e2001a;
    color: #fff;
}

.news-tag {
    font-size: .7rem;
    font-weight: 600;
    color: var(--admin-primary);
}

/* Page chrome / cards / forms / tables / badges / KPI / empty: admin-ds */

.proj-card.is-overdue {
    border-color: #f5c2c7;
    background: #fff8f8;
}

.cat-bar { margin-bottom: .75rem; }

.cat-bar-track {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #f6f6f6;
}

.cat-bar-track > div {
    height: 100%;
    background: #e2001a;
    border-radius: 999px;
}

.news-row {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    width: 100%;
    padding: .75rem 0;
    border: 0;
    background: none;
    text-align: left;
    border-top: 1px solid var(--portal-line);
}

.news-row:first-of-type { border-top: 0; padding-top: 0; }

.news-badge {
    flex-shrink: 0;
    font-weight: 600;
}

.news-badge-akce { background: #fbe9ea; color: #e2001a; }
.news-badge-produkt { background: #e6f2e7; color: #2e7d32; }
.news-badge-ceník,
.news-badge-cenik { background: #e7f0f5; color: #2f6e8f; }
.news-badge-systém,
.news-badge-system { background: #fcefd6; color: #c98a1f; }

.promo-card {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding: .85rem;
    border: 1px solid var(--portal-line);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    height: 100%;
    position: relative;
}

.promo-card:hover { background: #fafafa; color: inherit; }

.promo-off {
    align-self: flex-start;
    background: #e2001a;
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    border-radius: 6px;
    padding: .1rem .4rem;
}

.promo-name {
    font-size: .875rem;
    font-weight: 600;
    color: var(--portal-ink);
}

.promo-code {
    font-family: ui-monospace, monospace;
    font-size: .72rem;
    color: var(--portal-muted);
}

.promo-price {
    margin-top: .25rem;
    font-weight: 700;
    color: #e2001a;
}

.modal-content,
.page-content .modal-content {
    background: #fff;
    border-radius: var(--portal-radius);
    border: 1px solid var(--portal-line);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
}

.modal-header,
.modal-footer {
    border-color: var(--portal-line);
    background: transparent;
}

.modal-title {
    font-weight: 600;
    color: var(--portal-ink);
}

/* empty-state / page patterns: admin-ds */

.proj-list {
    display: grid;
    gap: 0.5rem;
}

.proj-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1.15rem 1.5rem;
    align-items: center;
    padding: 1.2rem 1.4rem;
    background: var(--portal-card);
    border: 1px solid var(--portal-line);
    border-radius: var(--portal-radius);
    box-shadow: var(--portal-box-shadow);
    text-decoration: none;
    color: inherit;
    transition: transform .18s ease, box-shadow .18s ease;
}

.proj-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--portal-box-hover);
    color: inherit;
}

.proj-mini {
    display: flex;
    align-items: center;
    gap: 5px;
}

.proj-mini span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #e6e6e6;
    position: relative;
}

.proj-mini span + span::before {
    content: "";
    position: absolute;
    right: 100%;
    top: 50%;
    width: 5px;
    height: 2px;
    margin-top: -1px;
    background: #e6e6e6;
}

.proj-mini .is-on {
    background: #e2001a;
}

.proj-mini .is-on + .is-on::before,
.proj-mini span.is-on + span.is-now::before {
    background: #e2001a;
}

.proj-mini .is-now {
    box-shadow: 0 0 0 4px rgba(226, 0, 26, .16);
}

.proj-card-id {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: #e2001a;
}

.proj-card-title {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--portal-ink);
    letter-spacing: -.02em;
    margin: .1rem 0 .35rem;
}

.proj-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem .5rem;
    color: var(--portal-muted);
    font-size: .85rem;
}

.proj-ava {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #fde8ea;
    color: #e2001a;
    display: inline-grid;
    place-items: center;
    font-weight: 700;
    font-size: .68rem;
    flex-shrink: 0;
}

.proj-sep {
    color: #c8c8c8;
}

.proj-card-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .45rem;
}

.proj-card-counts {
    font-size: .78rem;
    color: var(--portal-muted);
}

.proj-pill {
    display: inline-flex;
    align-items: center;
    padding: .28rem .7rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.2;
}

.proj-pill.is-inquiry,
.proj-pill.is-draft { background: #f3f3f3; color: #4a4a4a; }
.proj-pill.is-measurement,
.proj-pill.is-sent,
.proj-pill.is-internal_review,
.proj-pill.is-unpaid,
.proj-pill.is-pricing,
.proj-pill.is-received,
.proj-pill.is-in_progress,
.proj-pill.is-preorder { background: #fff4e5; color: #b76a00; }
.proj-pill.is-design,
.proj-pill.is-ordered { background: #fde8ea; color: #c40016; }
.proj-pill.is-production,
.proj-pill.is-in_production { background: #e8f1fb; color: #1d4f91; }
.proj-pill.is-assembly,
.proj-pill.is-in_stock,
.proj-pill.is-ready_for_pickup { background: #e7f1ee; color: #1f6a58; }
.proj-pill.is-done,
.proj-pill.is-approved,
.proj-pill.is-client_approved,
.proj-pill.is-paid,
.proj-pill.is-priced,
.proj-pill.is-accepted,
.proj-pill.is-dispatched { background: #e7f6ec; color: #147a3c; }
.proj-pill.is-rejected,
.proj-pill.is-cancelled { background: #fde8ea; color: #c40016; }
.proj-pill.is-repair { background: #e8f1fb; color: #1d4f91; }
.proj-pill.is-replacement { background: #e7f1ee; color: #1f6a58; }
.proj-pill.is-refund { background: #f3f3f3; color: #4a4a4a; }

.proj-card.no-rail {
    grid-template-columns: minmax(0, 1fr) auto;
}

.proj-card.is-static,
.proj-card.is-static:hover {
    transform: none;
    cursor: default;
}

.proj-pipeline.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.proj-pipeline.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.proj-pipeline.is-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.proj-pipe.done .proj-pipe-node {
    background: #e2001a;
    color: #fff;
}

.proj-pipe.current .proj-pipe-node {
    background: #fff;
    color: #e2001a;
    border: 2px solid #e2001a;
    animation: proj-pulse 2.2s ease-in-out infinite;
}

.proj-pipe.done .proj-pipe-name,
.proj-pipe.current .proj-pipe-name {
    color: var(--portal-ink);
    font-weight: 700;
}

.proj-pipe.done .proj-pipe-line {
    background: #e2001a;
}

.proj-grid.is-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.proj-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: .85rem 1rem;
    align-items: center;
    padding: .95rem 0;
    border-top: 1px solid #f0f0f0;
}

.proj-item.is-edit {
    grid-template-columns: 72px minmax(0, 1fr) auto auto auto;
}

.proj-item:first-of-type {
    border-top: 0;
}

.proj-item-media {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    background: #f6f6f6;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #c9b8b3;
    font-size: 1.4rem;
    text-decoration: none;
    flex-shrink: 0;
}

.proj-item-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: .35rem;
}

.proj-item-name {
    min-width: 0;
}

.proj-item-code {
    display: block;
    font-size: .75rem;
    font-weight: 600;
    color: var(--portal-muted);
}

.proj-item-title {
    display: block;
    font-weight: 700;
    color: var(--portal-ink);
    text-decoration: none;
    margin: .1rem 0 .15rem;
}

.proj-item-title:hover {
    color: #e2001a;
}

.proj-item-sub {
    display: block;
    font-size: .78rem;
    font-weight: 400;
    color: var(--portal-muted);
}

.proj-item-qty,
.proj-item-actions {
    display: flex;
    align-items: center;
    gap: .4rem;
}

.proj-item-qty span {
    font-size: .8rem;
    color: var(--portal-muted);
}

.proj-item-price {
    text-align: right;
    min-width: 6.5rem;
}

.proj-item-price strong {
    display: block;
    font-size: 1.05rem;
}

.proj-item-remove {
    margin: 0;
}

.proj-sum {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .4rem 0;
    font-size: .9rem;
}

.proj-sum.is-total {
    font-size: 1.2rem;
    font-weight: 800;
    color: #e2001a;
    padding-top: .75rem;
    margin-top: .35rem;
    border-top: 1px solid var(--portal-line);
}

.proj-choice {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1rem;
    border: 1px solid var(--portal-line);
    border-radius: 14px;
    margin-bottom: .55rem;
    cursor: pointer;
}

.proj-choice:has(input:checked) {
    border-color: #e2001a;
    background: #fff7f8;
}

.proj-choice input {
    accent-color: #e2001a;
}

.proj-perm {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .22rem .55rem;
    border-radius: 999px;
    background: #f3f3f3;
    color: #8a8a8a;
    font-size: .72rem;
    font-weight: 700;
}

.proj-perm.is-on {
    background: #e7f6ec;
    color: #147a3c;
}

.claim-timeline {
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

.claim-tl-item {
    position: relative;
    display: grid;
    grid-template-columns: 14px 1fr;
    gap: .75rem;
    padding-left: .15rem;
}

.claim-tl-item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 18px;
    bottom: -0.85rem;
    width: 2px;
    background: #ececec;
}

.claim-tl-dot {
    width: 12px;
    height: 12px;
    margin-top: .45rem;
    border-radius: 50%;
    background: #e2001a;
    box-shadow: 0 0 0 3px #ffe5e8;
}

.claim-tl-item.is-system .claim-tl-dot {
    background: #6c757d;
    box-shadow: 0 0 0 3px #ececec;
}

.claim-msg {
    padding: .9rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--portal-line);
    margin-bottom: .75rem;
}

.claim-msg.is-system {
    background: #f7f7f7;
    border-color: transparent;
}

.claim-msg-top {
    display: flex;
    gap: .6rem;
    align-items: baseline;
    margin-bottom: .35rem;
}

.claim-msg-top strong { font-size: .88rem; }
.claim-msg-top span { margin-left: auto; font-size: .75rem; color: var(--portal-muted); }

.audit-wrap {
    overflow: auto;
}

.proj-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem 1.5rem;
    align-items: start;
    margin-bottom: 1.25rem;
}

.proj-hero-kicker {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #e2001a;
    margin-bottom: .2rem;
}

.proj-hero .page-title {
    margin-bottom: .2rem;
}

.proj-hero-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .35rem;
    grid-column: 2;
    grid-row: 1;
}

.proj-hero-step {
    font-size: .78rem;
    color: var(--portal-muted);
    font-weight: 600;
}

.proj-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .5rem;
    grid-column: 1 / -1;
}

.proj-pipeline-wrap {
    background: var(--portal-card);
    border: 1px solid var(--portal-line);
    border-radius: var(--portal-radius);
    box-shadow: var(--portal-box-shadow);
    padding: 1.35rem 1.1rem 1.2rem;
    margin-bottom: 1.25rem;
}

.proj-pipeline {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.proj-pipe {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .55rem;
    min-width: 0;
}

.proj-pipe-line {
    position: absolute;
    top: 21px;
    left: calc(50% + 22px);
    right: calc(-50% + 22px);
    height: 3px;
    background: #ececec;
    border-radius: 99px;
    z-index: 0;
}

.proj-pipe-line.is-on {
    background: #e2001a;
}

.proj-pipe-node {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #f4f4f4;
    color: #8a8a8a;
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

.proj-pipe.is-done .proj-pipe-node {
    background: #e2001a;
    color: #fff;
}

.proj-pipe.is-now .proj-pipe-node {
    background: #fff;
    color: #e2001a;
    border: 2px solid #e2001a;
    animation: proj-pulse 2.2s ease-in-out infinite;
}

.proj-pipe-name {
    font-size: .78rem;
    font-weight: 600;
    color: var(--portal-muted);
}

.proj-pipe.is-done .proj-pipe-name,
.proj-pipe.is-now .proj-pipe-name {
    color: var(--portal-ink);
    font-weight: 700;
}

@keyframes proj-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(226, 0, 26, .28); }
    50% { box-shadow: 0 0 0 8px rgba(226, 0, 26, 0); }
}

.proj-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
}

.proj-panel {
    background: var(--portal-card);
    border: 1px solid var(--portal-line);
    border-radius: var(--portal-radius);
    box-shadow: var(--portal-box-shadow);
    padding: 1.15rem 1.25rem 1.2rem;
    min-width: 0;
}

.proj-panel-head {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: .9rem;
}

.proj-panel-head h2 {
    margin: 0;
    font-size: .95rem;
    font-weight: 700;
}

.proj-panel-ico {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #fde8ea;
    color: #e2001a;
    font-size: 1.05rem;
}

.proj-kv {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .55rem 0;
    border-top: 1px solid #f0f0f0;
    font-size: .88rem;
}

.proj-kv span {
    color: var(--portal-muted);
}

.proj-kv strong {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-weight: 600;
    color: var(--portal-ink);
    text-align: right;
}

.proj-note {
    margin: .75rem 0 0;
    padding: .75rem .85rem;
    background: #f7f7f7;
    border-radius: 12px;
    font-size: .85rem;
    color: var(--portal-ink);
}

.proj-row {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .7rem .15rem;
    border-top: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
}

.proj-row:hover {
    color: #e2001a;
}

.proj-row i {
    color: #e2001a;
    font-size: 1.1rem;
}

.proj-row-main {
    font-weight: 700;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.proj-row-meta {
    margin-left: auto;
    font-size: .78rem;
    color: var(--portal-muted);
    text-align: right;
    white-space: nowrap;
}

.proj-empty {
    margin: 0;
    color: var(--portal-muted);
    font-size: .88rem;
}

.proj-activity {
    display: grid;
    gap: .15rem;
    padding: .55rem 0;
    border-bottom: 1px solid #eee;
}

.proj-activity:last-child {
    border-bottom: 0;
}

.proj-activity-time {
    font-size: .72rem;
    color: var(--portal-muted);
}

.proj-activity-msg {
    font-size: .88rem;
    color: var(--portal-text, #212529);
}

.proj-file-kind {
    margin: 1rem 0 .4rem;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--portal-muted);
    display: flex;
    align-items: center;
    gap: .35rem;
}

.proj-upload .form-label {
    font-size: .78rem;
    margin-bottom: .25rem;
}

.portal-drawer {
    --bs-offcanvas-width: min(460px, 100vw);
    width: var(--bs-offcanvas-width);
}

.portal-drawer-head {
    align-items: flex-start;
    border-bottom: 1px solid var(--portal-line);
    padding: 1rem 1.15rem .95rem;
}

.portal-drawer-head .offcanvas-title {
    font-weight: 700;
    letter-spacing: -.02em;
}

.portal-drawer-count {
    margin-top: .15rem;
    font-size: .8rem;
    color: var(--portal-muted);
}

.portal-drawer-list {
    padding: .35rem 1.05rem 0;
}

.portal-line {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: .75rem;
    align-items: start;
    padding: .85rem 0;
    border-bottom: 1px solid var(--portal-line);
}

.portal-line:last-child {
    border-bottom: 0;
}

.portal-line-media {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    background: #f6f6f6;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #c9b8b3;
    font-size: 1.35rem;
    text-decoration: none;
}

.portal-line-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: .3rem;
}

.portal-line-media img.catalog-sketch {
    padding: 0;
    object-fit: cover;
}

.portal-line-body {
    min-width: 0;
}

.portal-line-code {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--portal-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-line-title {
    display: block;
    font-weight: 700;
    color: var(--portal-ink);
    text-decoration: none;
    line-height: 1.3;
    margin: .08rem 0 .2rem;
}

.portal-line-title:hover {
    color: #e2001a;
}

.portal-line-meta,
.portal-line-flags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .3rem .4rem;
    font-size: .78rem;
    color: var(--portal-muted);
}

.portal-line-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .45rem;
}

.portal-line-tools {
    display: flex;
    align-items: center;
    gap: .4rem;
}

.portal-line-qty {
    margin: 0;
}

.portal-line-qty-static {
    font-size: .75rem;
    color: var(--portal-muted);
}

.portal-line-price {
    text-align: right;
    white-space: nowrap;
}

.portal-line-price strong {
    display: block;
    color: #e2001a;
    font-size: 1rem;
    font-weight: 700;
}

.portal-line-price span {
    display: block;
    margin-top: .15rem;
    font-size: .75rem;
    color: var(--portal-muted);
    font-weight: 400;
}

.portal-line-remove {
    margin: 0;
}

.portal-line-remove-btn {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #e4e6e2;
    border-radius: 8px;
    background: #fff;
    color: #8a9390;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.portal-line-remove-btn:hover {
    border-color: #f0c4c8;
    background: #fff5f5;
    color: #e2001a;
}

.portal-line-meta {
    margin-bottom: .35rem;
}

.portal-line-sep {
    color: #cfcfcf;
}

.portal-line-decor {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

.portal-line-decor i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #d5d5d5;
    display: inline-block;
}

.portal-drawer-empty {
    display: grid;
    place-items: center;
    text-align: center;
    gap: .7rem;
    padding: 2.4rem 1.4rem;
}

.portal-drawer-empty p {
    margin: 0;
    color: var(--portal-muted);
    max-width: 16rem;
}

.portal-drawer-foot {
    border-top: 1px solid var(--portal-line);
    padding: 1rem 1.15rem 1.15rem;
    background: #fff;
}

.portal-drawer-sum {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: .85rem;
}

.portal-drawer-sum span {
    color: var(--portal-muted);
}

.portal-drawer-sum strong {
    font-size: 1.15rem;
    letter-spacing: -.02em;
}

.portal-drawer-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    background: #f6f6f6;
    border-radius: 8px;
    overflow: hidden;
}

.portal-drawer-media img {
    width: 100%;
    height: auto;
    display: block;
}

.portal-drawer-media i {
    font-size: 2rem;
    color: #bbb;
}

.pq-media {
    position: relative;
    background: #f6f6f6;
    min-height: 220px;
    display: grid;
    place-items: center;
}

.pq-media img {
    width: 100%;
    height: 240px;
    object-fit: contain;
    display: block;
    padding: .6rem;
}

.pq-media-empty {
    height: 220px;
    display: grid;
    place-items: center;
    color: #c9b8b3;
    font-size: 2.2rem;
}

.pq-thumbs {
    display: flex;
    gap: .4rem;
    padding: .65rem 1.05rem 0;
    overflow-x: auto;
}

.pq-thumb {
    width: 56px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--portal-line);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    flex-shrink: 0;
}

.pq-thumb.is-active {
    border-color: #e2001a;
}

.pq-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pq-body {
    padding: 1rem 1.15rem 1.2rem;
}

.pq-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--portal-muted);
    margin-bottom: .2rem;
}

.pq-title {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -.02em;
    margin: 0 0 .2rem;
    color: var(--portal-ink);
}

.pq-sub {
    color: var(--portal-muted);
    font-size: .85rem;
    margin-bottom: .7rem;
}

.pq-price {
    margin-bottom: .9rem;
}

.pq-decors {
    margin-bottom: .75rem;
}

.pq-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-bottom: 1rem;
}

.pq-qty {
    width: auto;
    border-radius: 0;
}

.pq-actions .pcard-buy,
.pq-actions .pcard-offer {
    flex: 1;
    min-width: 0;
}

.pq-facts {
    display: grid;
    gap: .35rem 1rem;
    margin: 0 0 1rem;
    padding: .75rem .85rem;
    background: #f7f7f7;
    border-radius: 12px;
}

.pq-facts > div {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    font-size: .82rem;
}

.pq-facts dt {
    color: var(--portal-muted);
    font-weight: 500;
}

.pq-facts dd {
    margin: 0;
    font-weight: 600;
    text-align: right;
}

.pq-desc {
    font-size: .86rem;
    color: var(--portal-muted);
    line-height: 1.45;
    margin: 0 0 1rem;
}

@media (max-width: 900px) {
    .proj-card,
    .proj-card.no-rail,
    .proj-hero,
    .proj-grid,
    .proj-grid.is-3 {
        grid-template-columns: 1fr;
    }

    .proj-item {
        grid-template-columns: 1fr;
    }

    .proj-item.is-edit {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .proj-item.is-edit .proj-item-qty,
    .proj-item.is-edit .proj-item-price,
    .proj-item.is-edit .proj-item-remove {
        grid-column: 2;
        justify-self: start;
    }

    .proj-item-price {
        text-align: left;
    }

    .proj-card-side,
    .proj-hero-status {
        align-items: flex-start;
    }

    .proj-hero-actions {
        justify-content: flex-start;
    }

    .proj-pipeline,
    .proj-pipeline.is-2,
    .proj-pipeline.is-4,
    .proj-pipeline.is-5 {
        overflow-x: auto;
        grid-template-columns: repeat(6, minmax(92px, 1fr));
    }

    .proj-pipeline.is-2 { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
    .proj-pipeline.is-4 { grid-template-columns: repeat(4, minmax(92px, 1fr)); }
    .proj-pipeline.is-5 { grid-template-columns: repeat(5, minmax(92px, 1fr)); }
}

.page-content .alert {
    border-radius: 12px;
}

.page-content .btn-primary {
    box-shadow: none;
}

.page-content .btn-primary:hover {
    box-shadow: none;
}

@media (max-width: 991.98px) {
    .portal-shell {
        grid-template-columns: 1fr;
    }

    .portal-rail {
        position: static;
        max-height: none;
        margin: 0;
        overflow: visible;
    }

    .portal-rail-nav {
        overflow: visible;
    }
}

@media (min-width: 1024.1px) {
    [data-layout="horizontal"] #page-topbar,
    [data-layout="horizontal"] .navbar-menu,
    [data-layout="horizontal"] .page-content,
    [data-layout="horizontal"] .footer {
        width: 100%;
        max-width: none;
        left: 0;
        right: 0;
        margin-left: 0;
        margin-right: 0;
    }

    [data-layout="horizontal"] .layout-width,
    [data-layout="horizontal"] .navbar-menu .container-fluid,
    [data-layout="horizontal"] .page-content .container-fluid,
    [data-layout="horizontal"] .footer .container-fluid {
        max-width: var(--portal-content-max);
        margin-left: auto;
        margin-right: auto;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    [data-layout="horizontal"] .page-content .portal-shell {
        max-width: none;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
        box-sizing: border-box;
    }

    [data-layout="horizontal"] .page-content .portal-shell .portal-main.container-fluid {
        max-width: none;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-left: var(--admin-content-pad);
        padding-right: var(--admin-content-pad);
    }

    [data-layout="horizontal"] .footer {
        padding-left: 0;
        padding-right: 0;
        border-top: 1px solid var(--portal-line);
    }

    [data-layout="horizontal"] .navbar-menu .navbar-nav {
        flex-wrap: nowrap;
        width: 100%;
        justify-content: space-between;
        overflow: visible;
    }

    [data-layout="horizontal"] .navbar-menu .navbar-nav > .nav-item {
        flex: 1 1 0;
        min-width: 0;
    }

    [data-layout="horizontal"] .navbar-menu .navbar-nav .nav-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: .15rem;
        padding: .55rem .2rem .45rem;
        white-space: nowrap;
        text-align: center;
        font-size: .75rem;
        line-height: 1.15;
        color: #4a4a4a;
        border-radius: 0;
        border-bottom: 2px solid transparent;
    }

    [data-layout="horizontal"] .navbar-menu .navbar-nav > li:nth-of-type(2) > .nav-link.menu-link {
        padding-left: .2rem;
    }

    [data-layout="horizontal"] .navbar-menu .navbar-nav .nav-link i {
        display: block;
        margin: 0;
        min-width: 0;
        font-size: 1.1rem;
        line-height: 1;
    }

    [data-layout="horizontal"] .navbar-menu .navbar-nav .nav-link:hover {
        color: #e2001a;
        background: transparent;
    }

    [data-layout="horizontal"] .navbar-menu .navbar-nav .nav-link.active {
        background: transparent;
        color: #e2001a;
        font-weight: 700;
        border-bottom-color: #e2001a;
        border-radius: 0;
    }

    [data-layout="horizontal"] .page-content {
        padding-top: calc(3.5rem + 1.25rem);
        padding-bottom: 2rem;
    }

    [data-layout="horizontal"] .portal-rail {
        margin-left: 0;
    }
}

/* Quantity stepper: − / value / + */
.qty-stepper {
    display: inline-flex;
    align-items: stretch;
    height: 40px;
    border: 1px solid var(--portal-line, #e4e6e2);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    vertical-align: middle;
}

.qty-stepper__btn {
    display: inline-grid;
    place-items: center;
    width: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    background: #f7f7f8;
    color: #4a4a4a;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: background .14s ease, color .14s ease;
}

.qty-stepper__btn:hover:not(:disabled) {
    background: #eeeef0;
    color: #e2001a;
}

.qty-stepper__btn:disabled {
    opacity: .38;
    cursor: default;
}

.qty-stepper__btn:focus-visible {
    outline: 2px solid #e2001a;
    outline-offset: -2px;
    z-index: 1;
}

.qty-stepper__input {
    width: 2.6rem;
    min-width: 0;
    margin: 0;
    padding: 0 .15rem;
    border: 0;
    border-left: 1px solid var(--portal-line, #e4e6e2);
    border-right: 1px solid var(--portal-line, #e4e6e2);
    border-radius: 0;
    background: #fff;
    color: var(--portal-ink, #1c1c1c);
    font-size: .95rem;
    font-weight: 700;
    text-align: center;
    appearance: textfield;
    -moz-appearance: textfield;
}

.qty-stepper__input::-webkit-outer-spin-button,
.qty-stepper__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-stepper__input:focus {
    outline: none;
    background: #fffafb;
}

.qty-stepper--sm {
    height: 32px;
    border-radius: 8px;
}

.qty-stepper--sm .qty-stepper__btn {
    width: 30px;
    font-size: .95rem;
    background: #fafafa;
}

.qty-stepper--sm .qty-stepper__input {
    width: 2.2rem;
    font-size: .85rem;
}

.pd-buy .qty-stepper,
.pq-actions .qty-stepper {
    flex: 0 0 auto;
}

.offer-line__qty .qty-stepper,
.offer-app .qty-step .qty-stepper {
    justify-content: flex-end;
}
