/* ==========================================================================
   Shop module — printable price list (?print=1 on a category)
   A standalone document without the theme: plain, legible, black on
   white, one table that breaks cleanly across pages.
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.shop-print-page {
    margin: 0;
    padding: 24px;
    background: #fff;
    color: #16181d;
    font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.shop-pricelist {
    max-width: 1000px;
    margin: 0 auto;
}

.shop-pricelist__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 24px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid #16181d;
}

.shop-pricelist__site {
    margin: 0 0 4px;
    font-size: 13px;
    color: #555a64;
}

.shop-pricelist__title {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
}

.shop-pricelist__meta {
    margin: 4px 0 0;
    font-size: 13px;
    color: #555a64;
}

.shop-pricelist__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0;
}

.shop-pricelist__btn {
    min-height: 40px;
    padding: 8px 18px;
    border: 0;
    border-radius: 6px;
    background: #16181d;
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.shop-pricelist__btn[hidden] {
    display: none;
}

.shop-pricelist__back {
    color: #1f5fbf;
}

.shop-pricelist__table {
    width: 100%;
    border-collapse: collapse;
}

.shop-pricelist__table th,
.shop-pricelist__table td {
    padding: 6px 8px;
    border-bottom: 1px solid #d9dce2;
    text-align: left;
    vertical-align: top;
}

.shop-pricelist__table thead th {
    border-bottom: 1.5px solid #16181d;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.shop-pricelist__table .n {
    width: 3em;
    color: #777c86;
    font-variant-numeric: tabular-nums;
}

.shop-pricelist__table .sku {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.shop-pricelist__table .money {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.shop-pricelist__table .money s {
    margin-left: 6px;
    color: #8a8f99;
    font-weight: 400;
}

.shop-pricelist__table .variant {
    color: #555a64;
}

.shop-pricelist__table tr.is-out td {
    color: #8a8f99;
}

.shop-pricelist__cut,
.shop-pricelist__empty {
    margin-top: 16px;
    color: #555a64;
}

@media print {
    body.shop-print-page {
        padding: 0;
        font-size: 11pt;
    }

    .shop-pricelist__actions {
        display: none;
    }

    .shop-pricelist__table thead {
        display: table-header-group;
    }

    .shop-pricelist__table tr {
        break-inside: avoid;
    }

    @page {
        margin: 14mm 12mm;
    }
}
