.catalogue-prices-page {
    position: fixed;
    inset: 0;
    z-index: 3000;
    padding: 32px 28px;
    overflow: auto;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(1px);
    font-family: Manrope, sans-serif;
}

.catalogue-prices-modal {
    width: min(1360px, calc(100vw - 56px));
    min-width: 980px;
    min-height: calc(100vh - 64px);
    margin: 0 auto;
    padding: 28px 24px 24px;
    overflow: hidden;
    border-radius: 10px;
    background: #fcfcfd;
    box-shadow: 0 34px 90px rgba(7, 27, 47, 0.24);
}

.catalogue-prices-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e8ef;
}

.catalogue-prices-title {
    display: flex;
    align-items: center;
    gap: 22px;
}

.catalogue-prices-title h1 {
    margin: 0;
    color: #171725;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
}

.catalogue-prices-title p {
    margin: 7px 0 0;
    color: #ada7a7;
    font-size: 14px;
    font-weight: 500;
}

.catalogue-prices-close {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid #e5e8ef;
    border-radius: 50%;
    background: #fff;
    color: #ada7a7;
    transition: transform 160ms ease, border-color 160ms ease, color 160ms ease;
}

.catalogue-prices-close:hover {
    color: #12355b;
    border-color: #cbd6e4;
    transform: scale(1.03);
}

.catalogue-prices-link {
    border: 0;
    background: transparent;
    color: #ada7a7;
    font-size: 14px;
    font-weight: 600;
}

.catalogue-category-chips {
    display: flex;
    gap: 20px;
    padding: 24px 10px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.catalogue-chip {
    min-height: 50px;
    padding: 0 24px;
    border: 1px solid #e5e8ef;
    border-radius: 999px;
    background: #fff;
    color: #ada7a7;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.catalogue-chip:hover {
    border-color: #59beab;
    color: #12355b;
    transform: translateY(-1px);
}

.catalogue-chip--active {
    border-color: #59beab;
    background: #59beab;
    color: #fff;
    font-weight: 800;
}

.catalogue-prices-layout {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr) 300px;
    gap: 12px;
    min-height: 720px;
}

.catalogue-filter-panel,
.catalogue-product-grid,
.catalogue-summary-panel {
    background: #fff;
}

.catalogue-filter-panel {
    overflow: hidden;
    border-radius: 10px 0 0 0;
    border-right: 1px solid #e5e8ef;
}

.catalogue-filter-title {
    padding: 24px;
    border-bottom: 1px solid #e5e8ef;
    color: #171725;
    font-size: 16px;
    font-weight: 800;
}

.catalogue-filter-list {
    max-height: 690px;
    padding: 18px 16px 28px;
    overflow-y: auto;
}

.catalogue-filter-group + .catalogue-filter-group {
    margin-top: 16px;
}

.catalogue-filter-item {
    position: relative;
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 12px;
    align-items: start;
    margin: 0;
    color: #171725;
    cursor: pointer;
}

.catalogue-filter-item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.catalogue-filter-check {
    position: relative;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border: 1px solid #dfe5ee;
    border-radius: 5px;
    background: #fff;
}

.catalogue-filter-item input:checked + .catalogue-filter-check {
    border-color: #d9f4ef;
    background: #d9f4ef;
}

.catalogue-filter-item input:checked + .catalogue-filter-check::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid #59beab;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.catalogue-filter-item strong {
    display: block;
    color: #171725;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.catalogue-filter-item small {
    display: block;
    margin-top: 4px;
    color: #ada7a7;
    font-size: 12px;
    font-weight: 700;
}

.catalogue-subfilters {
    display: grid;
    gap: 14px;
    margin-top: 15px;
    padding-left: 14px;
}

.catalogue-filter-item--sub strong {
    font-weight: 500;
}

.catalogue-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    align-content: start;
    gap: 10px;
    max-height: 720px;
    padding: 20px 16px;
    overflow-y: auto;
}

.catalogue-product-card {
    display: flex;
    min-height: 360px;
    padding: 14px 10px 10px;
    flex-direction: column;
    border: 1px solid #e5e8ef;
    border-radius: 7px;
    background: #fff;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.catalogue-product-card:hover,
.catalogue-product-card--editing {
    border-color: rgba(89, 190, 171, 0.55);
    box-shadow: 0 18px 34px rgba(18, 53, 91, 0.08);
    transform: translateY(-1px);
}

.catalogue-product-image {
    width: 100%;
    height: 154px;
    border-radius: 4px;
}

.catalogue-product-body {
    padding: 12px 4px 0;
}

.catalogue-product-category,
.catalogue-product-package {
    display: block;
    color: #ada7a7;
    font-size: 12px;
    font-weight: 800;
}

.catalogue-product-body h2 {
    display: -webkit-box;
    min-height: 34px;
    margin: 8px 0 0;
    overflow: hidden;
    color: #171725;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.catalogue-product-body p {
    display: -webkit-box;
    min-height: 32px;
    margin: 6px 0 0;
    overflow: hidden;
    color: #687c97;
    font-size: 11px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.catalogue-product-package {
    margin-top: 12px;
}

.catalogue-product-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: auto 4px 10px;
}

.catalogue-product-price {
    color: #12355b;
    font-size: 16px;
    font-weight: 900;
}

.catalogue-price-badge {
    display: inline-flex;
    min-width: 45px;
    height: 20px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 900;
}

.catalogue-price-badge--positive {
    background: #eafff0;
    color: #59c478;
}

.catalogue-price-badge--negative {
    background: #fff5f3;
    color: #ed2e35;
}

.catalogue-card-action,
.catalogue-save-button {
    width: 100%;
    min-height: 38px;
    border: 0;
    border-radius: 999px;
    background: #59beab;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.catalogue-card-action:hover,
.catalogue-save-button:hover:not(:disabled) {
    box-shadow: 0 10px 22px rgba(89, 190, 171, 0.24);
    transform: translateY(-1px);
}

.catalogue-card-action--secondary {
    background: #eaf1fb;
    color: #12355b;
}

.catalogue-edit-fields {
    display: grid;
    gap: 10px;
    margin: 10px 0;
}

.catalogue-edit-fields label {
    display: grid;
    gap: 6px;
    color: #ada7a7;
    font-size: 11px;
    font-weight: 800;
}

.catalogue-price-input,
.catalogue-date-input {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #e5e8ef;
    border-radius: 10px;
    background: #fff;
    color: #12355b;
    font-size: 13px;
    font-weight: 800;
}

.catalogue-summary-panel {
    display: flex;
    min-height: 720px;
    flex-direction: column;
    padding: 24px;
    border-radius: 0 10px 10px 0;
}

.catalogue-summary-panel h2 {
    margin: 0 0 22px;
    color: #171725;
    font-size: 24px;
    font-weight: 900;
}

.catalogue-summary-count {
    display: grid;
    gap: 6px;
    padding: 18px;
    border-radius: 14px;
    background: #f4fbf9;
}

.catalogue-summary-count strong {
    color: #12355b;
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
}

.catalogue-summary-count span,
.catalogue-summary-total span {
    color: #ada7a7;
    font-size: 12px;
    font-weight: 800;
}

.catalogue-summary-list {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.catalogue-summary-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    color: #171725;
    font-size: 12px;
}

.catalogue-summary-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalogue-summary-item strong {
    color: #12355b;
}

.catalogue-summary-total {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid #e5e8ef;
}

.catalogue-summary-total strong {
    color: #12355b;
    font-size: 24px;
    font-weight: 900;
}

.catalogue-save-button {
    min-height: 50px;
    margin-top: 28px;
    background: #12355b;
    font-size: 16px;
}

.catalogue-save-button:disabled {
    background: #d7dde6;
    color: #8b99aa;
    cursor: not-allowed;
}

.order-catalogue-modal {
    min-height: calc(100vh - 64px);
}

.order-catalogue-header {
    align-items: flex-start;
}

.order-catalogue-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.order-catalogue-search {
    position: relative;
    display: flex;
    width: 360px;
    height: 46px;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    border-radius: 999px;
    background: #e2f4f0;
}

.order-catalogue-search button {
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
}

.order-catalogue-search img {
    width: 18px;
    height: 18px;
}

.order-catalogue-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: #12355b;
    font-size: 13px;
    font-weight: 600;
}

.order-catalogue-search input::placeholder {
    color: #59beab;
}

.order-secondary-action {
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: #eaf1fb;
    color: #12355b;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.order-product-title {
    display: -webkit-box;
    min-height: 34px;
    width: 100%;
    margin: 8px 0 0;
    overflow: hidden;
    border: 0;
    padding: 0;
    background: transparent;
    color: #171725;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.order-card-actions {
    display: grid;
    gap: 10px;
}

.order-quantity-stepper,
.order-cart-quantity {
    display: grid;
    grid-template-columns: 32px 1fr 32px;
    align-items: center;
    min-height: 38px;
    border: 2px solid #12355b;
    border-radius: 999px;
    overflow: hidden;
}

.order-quantity-stepper button,
.order-cart-quantity button {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #eaf1fb;
    color: #12355b;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}

.order-quantity-stepper input,
.order-cart-quantity input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #12355b;
    font-size: 13px;
    font-weight: 900;
    text-align: center;
}

.order-grams-field {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    min-height: 38px;
    border: 1px solid #e5e8ef;
    border-radius: 999px;
    overflow: hidden;
    color: #ada7a7;
    font-size: 12px;
    font-weight: 800;
}

.order-grams-field input {
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 12px;
    color: #12355b;
    font-weight: 900;
}

.order-grams-field span {
    padding-right: 12px;
}

.order-cart-panel {
    min-height: 720px;
}

.order-empty-cart {
    display: grid;
    min-height: 420px;
    place-items: center;
    align-content: center;
    gap: 10px;
    color: #687c97;
    text-align: center;
}

.order-empty-cart img {
    width: 58px;
    opacity: 0.55;
}

.order-empty-cart h3 {
    margin: 0;
    color: #12355b;
    font-size: 20px;
    font-weight: 900;
}

.order-empty-cart p {
    margin: 0;
    max-width: 220px;
    font-size: 13px;
}

.order-cart-list {
    display: grid;
    gap: 18px;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 4px;
}

.order-cart-item {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding-bottom: 18px;
    border-bottom: 1px solid #eef2f7;
}

.order-cart-image {
    width: 60px;
    height: 60px;
    border-radius: 4px;
}

.order-cart-copy button {
    display: -webkit-box;
    width: 100%;
    margin: 0 0 8px;
    overflow: hidden;
    border: 0;
    padding: 0;
    background: transparent;
    color: #171725;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.order-cart-copy span {
    display: block;
    color: #ada7a7;
    font-size: 12px;
    font-weight: 700;
}

.order-cart-copy strong {
    color: #12355b;
    font-size: 16px;
    font-weight: 900;
}

.order-cart-quantity {
    grid-column: 1 / -1;
    width: 138px;
    justify-self: end;
    min-height: 32px;
}

.order-cart-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 28px;
}

.order-save-draft {
    min-height: 50px;
    border: 0;
    border-radius: 999px;
    background: #eaf1fb;
    color: #12355b;
    font-size: 16px;
    font-weight: 800;
}

.catalogue-empty-state {
    grid-column: 1 / -1;
    display: grid;
    min-height: 360px;
    place-items: center;
    align-content: center;
    border: 1px dashed #dfe5ee;
    border-radius: 10px;
    color: #687c97;
    text-align: center;
}

.catalogue-empty-state h2 {
    margin: 0;
    color: #12355b;
    font-size: 20px;
    font-weight: 900;
}

.catalogue-empty-state p {
    margin: 8px 0 0;
}

.catalogue-prices-page .product-image-frame {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #f8fbfa;
}

.catalogue-prices-page .product-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.catalogue-prices-page .product-image-frame--placeholder {
    padding: 0 !important;
    border: 1px solid rgba(18, 53, 91, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.catalogue-prices-page .product-image-fallback {
    width: 100%;
    height: 100%;
    min-width: 56px;
    min-height: 56px;
    display: grid;
    place-items: center;
    padding: 8px;
    color: #12355b;
    text-align: center;
}

.catalogue-prices-page .product-image-fallback svg {
    width: 70%;
    height: 70%;
    max-width: 44px;
    max-height: 44px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.catalogue-prices-page .product-image-fallback--meat {
    background: linear-gradient(145deg, #fff2d6 0%, #f9c784 100%);
    color: #7a3416;
}

.catalogue-prices-page .product-image-fallback--seafood {
    background: linear-gradient(145deg, #dff8f6 0%, #7adbd1 100%);
    color: #12355b;
}

.catalogue-prices-page .product-image-fallback--produce {
    background: linear-gradient(145deg, #e8f8df 0%, #93d86f 100%);
    color: #1d6b3d;
}

.catalogue-prices-page .product-image-fallback--dairy {
    background: linear-gradient(145deg, #fff8cf 0%, #f5dc6d 100%);
    color: #755b00;
}

.catalogue-prices-page .product-image-fallback--bakery {
    background: linear-gradient(145deg, #fff0d9 0%, #e5a451 100%);
    color: #6f3b09;
}

.catalogue-prices-page .product-image-fallback--pantry {
    background: linear-gradient(145deg, #edf8f5 0%, #59beab 100%);
    color: #12355b;
}

@media (max-width: 1180px) {
    .catalogue-prices-page {
        overflow-x: auto;
    }

    .catalogue-prices-modal {
        width: 1120px;
    }

    .catalogue-prices-layout {
        grid-template-columns: 200px 1fr 280px;
    }
}
