/* ===== 18. Price list: search + accordion categories + tables ===== */
.hm-price { --_hl: var(--hm-c-accent-2); --_on-hl: var(--hm-c-on-accent); }
.hm-price__inner { max-width: calc(980px + var(--hm-gutter) * 2); }
.hm-price__head { margin-bottom: 28px; gap: 6px; }
.hm-price__eyebrow { font-size: 15px; font-weight: 300; letter-spacing: .04em; color: var(--hm-c-muted); }

/* Search */
.hm-price__search { position: relative; margin-bottom: 18px; }
.hm-price__search-label { display: block; }
.hm-price__search-icon { position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: var(--hm-c-muted); pointer-events: none; }
.hm-price__input {
    width: 100%;
    height: 40px;
    padding: 0 44px 0 40px;
    border: 1px solid transparent;
    border-radius: var(--hm-radius-btn);
    background: var(--hm-c-alt);
    color: inherit;
    font: inherit;
    font-size: 13px;
    transition: border-color var(--hm-dur), background-color var(--hm-dur);
}
.hm-price__input::placeholder { color: var(--hm-c-muted); }
.hm-price__input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.hm-price__input:focus { outline: none; border-color: var(--_hl); background: var(--hm-c-bg); }
.hm-price__clear {
    position: absolute;
    right: 6px;
    top: 50%;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-top: -16px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--hm-c-muted);
    cursor: pointer;
}
.hm-price__clear svg { width: 16px; height: 16px; }
.hm-price__clear:hover { color: var(--hm-c-text); background: var(--hm-c-line); }

/* Categories */
.hm-price__cats { display: grid; gap: 12px; }
.hm-price__cat-head { margin: 0; font: inherit; }
.hm-price__toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 44px;
    padding: 8px 22px;
    border: 0;
    border-radius: var(--hm-radius-btn);
    background: var(--_hl);
    color: var(--_on-hl);
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: filter var(--hm-dur);
}
.hm-price__toggle:hover { filter: brightness(.95); }
.hm-price__cat-name { flex: 1; min-width: 0; }
.hm-price__count { display: none; }
.hm-price__icon { position: relative; width: 12px; height: 12px; flex: none; }
.hm-price__icon::before {
    content: "";
    position: absolute;
    inset: 2px;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform var(--hm-dur) var(--hm-ease);
}
.hm-price__cat.is-open .hm-price__icon::before { transform: rotate(-135deg) translate(-2px, -2px); }

.hm-price__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--hm-dur) var(--hm-ease); }
.hm-price__cat.is-open .hm-price__panel { grid-template-rows: 1fr; }
.hm-price__panel-inner { min-height: 0; overflow: hidden; }
.hm-price__group { padding-bottom: 8px; }
.hm-price__sub { margin: 14px 16px 10px; color: var(--_hl); font-size: 13px; font-weight: 500; }

/* Table */
.hm-price__table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.hm-price__table th {
    padding: 11px 16px;
    background: color-mix(in srgb, var(--hm-c-text) 30%, var(--hm-c-bg));
    font-size: 12px;
    font-weight: 500;
    text-align: left;
}
.hm-price__table td { padding: 11px 16px; background: var(--hm-c-alt); vertical-align: middle; }
.hm-price__c-name { width: 46%; }
td.hm-price__c-name { font-weight: 600; overflow-wrap: anywhere; }
.hm-price__c-meta { color: var(--hm-c-muted); white-space: nowrap; }
.hm-price__c-cost { text-align: right !important; white-space: nowrap; }
th.hm-price__c-cost { font-weight: 600; }
td.hm-price__c-cost { font-weight: 700; }
.hm-price__mark { padding: 0 1px; border-radius: 2px; background: color-mix(in srgb, var(--_hl) 35%, transparent); color: inherit; }

/* JS hides rows/groups/categories; keep [hidden] stronger than display rules below */
.hm-price__row[hidden], .hm-price__group[hidden], .hm-price__cat[hidden], .hm-price__empty[hidden] { display: none !important; }

.hm-price__empty { padding: 40px 16px; text-align: center; }
.hm-price__empty-title { margin: 0; font-size: 18px; font-weight: 600; }
.hm-price__empty-text { margin: 6px 0 0; font-size: 14px; color: var(--hm-c-muted); }
.hm-price__empty-text a { color: var(--hm-c-accent); white-space: nowrap; }
.hm-price__note { margin: 20px 0 0; font-size: 12.5px; color: var(--hm-c-muted); }

/* Mobile: rows become stacked cards */
@media (max-width: 767px) {
    .hm-price__toggle { padding-inline: 18px; }
    .hm-price__sub { margin-inline: 4px; }
    .hm-price__table, .hm-price__table tbody, .hm-price__table td { display: block; }
    .hm-price__table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
    .hm-price__table tbody { display: grid; gap: 8px; }
    .hm-price__row {
        display: grid;
        gap: 4px;
        padding: 14px 16px;
        border-radius: var(--hm-radius-field);
        background: var(--hm-c-alt);
    }
    .hm-price__table td { padding: 0; background: none; width: auto; }
    td.hm-price__c-name { margin-bottom: 4px; font-size: 13.5px; }
    /* every other cell: «label ··· value» */
    .hm-price__table td:not(.hm-price__c-name) { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; text-align: right; }
    .hm-price__table td:not(.hm-price__c-name)::before { content: attr(data-label); color: var(--hm-c-muted); font-size: 12px; font-weight: 400; font-family: var(--hm-font-body); text-align: left; }
    td.hm-price__c-meta { font-size: 13px; }
    td.hm-price__c-cost { font-size: 15px; }
}
