:root {
    color-scheme: light;
    --ink: #171b18;
    --muted: #707871;
    --line: #e2e6e2;
    --surface: #fff;
    --surface-soft: #f5f6f4;
    --soft: #f2f2f2;
    --canvas: #dedee2;
    --green: #0f8f62;
    --green-dark: #096846;
    --green-pale: #e4f4ec;
    --lime: #b7d34b;
    --danger: #a33b3b;
    --shadow: 0 18px 50px rgba(27, 38, 31, .10);
    --shadow-soft: 0 8px 24px rgba(27, 38, 31, .065);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--soft); }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--soft); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.eyebrow {
    margin: 0 0 7px;
    color: var(--green);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.muted { color: var(--muted); }

.ribot-logo { display: block; width: auto; height: auto; }
.ribot-logo--compact { width: 148px; }
.ribot-logo--header { width: 122px; }

.login-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(420px, .85fr);
    background: var(--surface);
}

.login-brand {
    padding: clamp(44px, 8vw, 110px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    background:
        radial-gradient(circle at 82% 17%, rgba(174, 203, 59, .36), transparent 24%),
        linear-gradient(145deg, #123f20, #1e6b31 62%, #2f813c);
}

.login-brand h1 {
    max-width: 760px;
    margin: 0 0 24px;
    font: 500 clamp(42px, 5.5vw, 76px)/1.02 Georgia, serif;
    letter-spacing: -.045em;
}

.login-brand p:last-child {
    max-width: 540px;
    margin: 0;
    color: rgba(255,255,255,.74);
    font-size: 18px;
    line-height: 1.65;
}

.login-panel { display: grid; place-items: center; padding: 48px; }
.login-card { width: min(100%, 430px); }
.compact-brand { display: block; margin-bottom: 32px; }
.login-card h2 { margin: 0; font-size: 38px; letter-spacing: -.035em; }

.field { display: grid; gap: 8px; margin-top: 20px; font-size: 13px; font-weight: 750; }
.field input, .field select, .field textarea {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid #cbd3c9;
    border-radius: 9px;
    outline: 0;
}
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--line);
    box-shadow: 0 0 0 4px rgba(15,143,98,.11);
}
.field small { color: var(--muted); font-weight: 500; }
.customer-discount-field { max-width: calc(50% - 7px); }
.percentage-field { position: relative; display: block; }
.percentage-field input { padding-right: 42px; }
.percentage-field b {
    position: absolute;
    top: 50%;
    right: 15px;
    color: var(--muted);
    transform: translateY(-50%);
}

.checkbox-field { display: flex; gap: 9px; margin: 20px 0; color: #4e554f; font-size: 14px; }
.checkbox-field input { width: 17px; height: 17px; accent-color: var(--green); }

.button {
    min-height: 42px;
    padding: 0 18px;
    color: var(--ink);
    background: #e9ede7;
    border: 0;
    border-radius: 8px;
    font-weight: 780;
    transition: transform .14s ease, background .14s ease, opacity .14s ease;
}
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .55; transform: none; }
.button--primary { color: #fff; background: var(--green); }
.button--primary:hover { background: var(--green-dark); }
.button--outline { color: var(--green-dark); background: transparent; border: 1px solid #b7c2b5; }
.button--ghost { background: #e9ede7; }
.button--dark { color: #fff; background: #243229; }
.button--danger { color: #8a3131; background: #f5e4e4; }
.button--danger:hover { color: #fff; background: var(--danger); }
.button--wide { width: 100%; min-height: 49px; }

.form-error { min-height: 18px; margin: 10px 0; color: var(--danger); font-size: 13px; font-weight: 650; }
.application { min-height: 100vh; }
.app-header {
    position: sticky;
    top: 0;
    z-index: 30;
    height: 76px;
    padding: 0 24px 0 30px;
    display: flex;
    align-items: center;
    gap: clamp(24px, 4vw, 70px);
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    background: transparent;
    border: 0;
    text-align: left;
}
.header-nav { height: 100%; display: flex; align-items: stretch; gap: 4px; }
.header-nav button {
    position: relative;
    padding: 0 18px;
    color: #454d46;
    background: transparent;
    border: 0;
    font-weight: 650;
}
.header-nav button::after {
    content: "";
    position: absolute;
    right: 18px;
    bottom: 0;
    left: 18px;
    height: 3px;
    background: var(--green);
    border-radius: 3px 3px 0 0;
    opacity: 0;
}
.header-nav button:hover, .header-nav button.is-active { color: var(--green-dark); }
.header-nav button.is-active::after { opacity: 1; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.profile-button { display: flex; align-items: center; gap: 9px; padding: 5px 8px; color: var(--ink); background: transparent; border: 0; border-radius: 9px; text-align: left; }
.profile-button:hover { background: var(--soft); }
.profile-button strong, .profile-button small { display: block; }
.profile-button small { color: var(--muted); font-size: 11px; text-transform: capitalize; }
.avatar { width: 35px; height: 35px; display: grid; place-items: center; color: #fff; background: var(--green); border-radius: 50%; font-size: 12px; font-weight: 850; }

.icon-button {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--muted);
    background: var(--soft);
    border: 0;
    border-radius: 50%;
    font-size: 20px;
}

.budget-workspace { min-height: calc(100vh - 76px); display: grid; grid-template-columns: minmax(0, 1fr) 405px; }
.catalog-main { min-width: 0; padding: 28px clamp(26px, 4vw, 64px) 70px; background: #fafbf9; }

.breadcrumbs { min-height: 28px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 13px; }
.breadcrumbs button { padding: 3px 0; color: inherit; background: transparent; border: 0; }
.breadcrumbs button:hover { color: var(--green); }
.breadcrumbs span { color: #a0a7a0; }

.catalog-heading { margin: 24px 0 30px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.catalog-heading h1, .product-summary h1, .users-heading h1 { margin: 0; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.045em; }
#catalog-title { font-size: clamp(25px, 3vw, 36px); }
.catalog-heading p:last-child { max-width: 720px; margin-bottom: 0; line-height: 1.55; }

.section-label { margin: 0 0 15px; font-size: 15px; letter-spacing: -.01em; }
.section-title-row { margin-top: 35px; display: flex; align-items: center; justify-content: space-between; }
.section-title-row .section-label { margin: 0; }
.section-title-row span { color: var(--muted); font-size: 12px; }

.category-grid { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 15px; }
.category-card {
    min-height: 180px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    text-align: left;
    transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.category-card:hover { border-color: var(--line); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(33,61,36,.08); }
.category-icon { width: 44px; height: 44px; display: grid; place-items: center; color: var(--green-dark); background: var(--green-pale); border-radius: 11px; font-size: 19px; font-weight: 850; }
.category-card strong { margin-top: auto; font-size: 19px; }
.category-card small { margin-top: 6px; color: var(--muted); line-height: 1.4; }

.product-list { margin-top: 15px; display: grid; gap: 10px; }
.product-card {
    width: 100%;
    min-height: 96px;
    padding: 16px 18px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 16px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 11px;
    text-align: left;
}
.product-card:hover { border-color: var(--line); }
.product-monogram { width: 52px; height: 52px; display: grid; place-items: center; color: var(--green-dark); background: var(--green-pale); border-radius: 9px; font-weight: 850; }
.product-thumbnail { width: 58px; height: 58px; object-fit: contain; background: #fff; border-radius: 8px; }
.product-card strong, .product-card small { display: block; }
.product-card small { margin-top: 4px; color: var(--muted); }
.product-list-price { min-width: 110px; text-align: right; }
.product-list-price strong { font-size: 18px; }
.product-list-price small { font-size: 10px; }
.product-arrow { color: var(--green); font-size: 22px; }

.loading-state, .empty-state { padding: 38px; color: var(--muted); text-align: center; }
.empty-state { background: var(--surface); border: 1px dashed #c8d0c6; border-radius: 12px; }
.empty-state p { margin-bottom: 0; }

.product-summary {
    margin: 20px 0 30px;
    padding: 24px 28px;
    display: flex;
    justify-content: space-between;
    gap: 25px;
    color: #fff;
    background: linear-gradient(115deg, #1b572a, #2b7d39);
    border-radius: 13px;
}
.product-summary-image {
    width: 220px;
    height: 165px;
    flex: 0 0 auto;
    align-self: center;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
}
.product-summary-copy { flex: 1; align-self: center; }
.product-summary .eyebrow { color: var(--lime); }
.product-summary h1 { font-size: 34px; }
.product-summary p:last-child { max-width: 750px; margin-bottom: 0; color: rgba(255,255,255,.72); line-height: 1.5; }
.product-base-price { flex: 0 0 auto; align-self: center; text-align: right; }
.product-base-price span, .product-base-price small { display: block; color: rgba(255,255,255,.66); font-size: 11px; }
.product-base-price strong { display: block; margin: 3px 0; font-size: 26px; }

#configuration-form { padding: 0 0 20px; }
.configuration-toolbar { margin-bottom: 25px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.configuration-toolbar h2 { margin: 0; font-size: 26px; }
.quantity-field { display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; }
.quantity-field input { width: 90px; height: 42px; padding: 0 10px; border: 1px solid #cbd3c9; border-radius: 8px; }

.option-group { margin: 0 0 30px; }
.option-group-heading { margin-bottom: 13px; display: flex; align-items: center; gap: 10px; }
.option-group-heading h3 { margin: 0; font-size: 16px; }
.option-group-heading p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.required-badge { padding: 3px 7px; color: var(--green-dark); background: var(--green-pale); border-radius: 999px; font-size: 9px; font-weight: 850; text-transform: uppercase; }

.option-list { display: grid; grid-template-columns: repeat(4, minmax(170px, 1fr)); gap: 12px; }
.option-card {
    position: relative;
    min-height: 150px;
    padding: 17px;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid #bcc5ba;
    border-radius: 9px;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.option-card:hover { border-color: var(--line); }
.option-card.is-selected { padding: 17px; background: var(--green-pale); border: 1px solid var(--line); box-shadow: 0 0 0 3px rgba(15,143,98,.08); }
.option-card input { position: absolute; opacity: 0; pointer-events: none; }
.option-check { position: absolute; top: 13px; right: 13px; width: 18px; height: 18px; display: grid; place-items: center; color: transparent; border: 1px solid #adb7ac; border-radius: 4px; font-size: 12px; }
.option-card.is-selected .option-check { color: #fff; background: var(--green); border-color: transparent; }
.option-card-image { width: 100%; height: 145px; margin-bottom: 14px; object-fit: contain; background: #fff; border-radius: 7px; }
.option-card strong { padding-right: 24px; font-size: 15px; }
.option-price { margin-top: 5px; color: var(--green-dark); font-size: 13px; font-weight: 750; }
.option-description { margin: auto 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }

.configuration-error { margin-top: 0; }
.configuration-actions { padding-top: 18px; display: flex; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); }

.budget-aside {
    position: sticky;
    top: 76px;
    height: calc(100vh - 76px);
    padding: 25px 20px 22px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: var(--surface);
    border-left: 1px solid var(--line);
    box-shadow: -10px 0 35px rgba(27,47,30,.035);
}
.budget-aside-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.budget-aside-header h2 { margin: 0; font-size: 21px; }
.draft-badge { padding: 5px 8px; color: #745d16; background: #fff1bd; border-radius: 999px; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.budget-status--enviado { color: #285577; background: #dcecf7; }
.budget-status--aceptado { color: var(--green-dark); background: var(--green-pale); }
.budget-status--rechazado { color: #763737; background: #f6dddd; }
.budget-status--caducado, .budget-status--cancelado { color: #4f5750; background: #e8ece7; }

.budget-lines { margin: 22px 0 10px; display: grid; gap: 9px; }
.budget-empty { padding: 28px 18px; color: var(--muted); background: var(--soft); border: 1px dashed #c7cec5; border-radius: 9px; font-size: 13px; line-height: 1.5; text-align: center; }
.budget-empty--active p { margin: 0 0 16px; }
.budget-aside.is-readonly .budget-line-top { background: #f1f2f0; }
.budget-aside.is-readonly .budget-line-body { cursor: default; }
.budget-aside textarea:disabled, .budget-aside input:disabled { color: #707770; background: #f2f3f1; opacity: 1; }
.new-line-button:disabled, .square-button:disabled { cursor: not-allowed; opacity: .48; }
.budget-line { overflow: hidden; background: #fafbf9; border: 1px solid var(--line); border-radius: 9px; }
.budget-line-top { padding: 8px 10px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); background: #eef1ed; font-size: 10px; }
.delete-line { width: 24px; height: 24px; color: #7d4b4b; background: transparent; border: 0; font-size: 16px; }
.budget-line-body { width: 100%; padding: 12px; color: var(--ink); background: transparent; border: 0; text-align: left; }
.budget-line-title { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.budget-line-title strong:last-child { white-space: nowrap; }
.budget-line-option { margin-top: 5px; display: flex; justify-content: space-between; gap: 8px; color: #4f5750; font-size: 11px; }
.budget-line-option span:last-child { white-space: nowrap; }

.new-line-button { width: 100%; min-height: 38px; padding: 0 12px; color: #4e574f; background: #f0f2ef; border: 0; border-radius: 7px; text-align: left; }

.budget-footer { margin-top: auto; padding-top: 24px; }
.totals { padding-top: 17px; display: grid; gap: 10px; border-top: 1px solid var(--line); }
.totals > div, .discount-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; }
.totals strong { font-size: 13px; }
.cost-row { color: #785719; }
.discount-input { display: flex; align-items: center; gap: 4px; color: var(--green-dark); }
.discount-input input { width: 64px; height: 30px; padding: 0 7px; color: var(--green-dark); border: 1px solid #b8c8b7; border-radius: 6px; text-align: right; }
.tax-row { color: var(--green-dark); }
.grand-total { margin-top: 3px; padding-top: 12px; border-top: 1px solid var(--line); }
.grand-total span, .grand-total strong { font-size: 18px !important; }

.observations-field { margin: 20px 0 14px; display: grid; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 750; }
.observations-field textarea { min-height: 86px; padding: 10px; resize: vertical; color: var(--ink); border: 1px solid #cbd3c9; border-radius: 8px; outline: 0; }
.observations-field textarea:focus { border-color: var(--line); }

.customer-card { margin-bottom: 12px; padding: 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #e8ece7; border-radius: 8px; }
.customer-label, .customer-card strong { display: block; }
.customer-label { margin-bottom: 3px; color: var(--muted); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.customer-card strong { font-size: 12px; }
.square-button { width: 29px; height: 29px; color: #fff; background: #465148; border: 0; border-radius: 5px; }

.budget-actions { display: flex; gap: 8px; }
.budget-actions > .button { flex: 1; }
.budget-options { position: relative; flex: 0 0 auto; }
.budget-options-toggle {
    width: 49px;
    height: 49px;
    display: grid;
    place-items: center;
    color: #fff;
    background: #465148;
    border: 0;
    border-radius: 8px;
    font-size: 25px;
    line-height: 1;
}
.budget-options-toggle:hover { background: #243229; }
.budget-options-menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 9px);
    z-index: 20;
    width: 235px;
    padding: 15px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 14px 35px rgba(20, 38, 23, .18);
}
.budget-options-menu > strong {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.option-switch {
    position: relative;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
}
.option-switch input { position: absolute; right: 0; width: 38px; height: 22px; opacity: 0; }
.switch-control {
    position: relative;
    width: 38px;
    height: 22px;
    flex: 0 0 auto;
    background: #c7cdc6;
    border-radius: 999px;
    transition: background .15s ease;
}
.switch-control::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
    transition: transform .15s ease;
}
.option-switch input:checked + .switch-control { background: var(--green); }
.option-switch input:checked + .switch-control::after { transform: translateX(16px); }
.option-switch input:focus-visible + .switch-control { outline: 3px solid rgba(38,119,54,.2); outline-offset: 2px; }

.budget-workspace.is-without-budget-aside { grid-template-columns: minmax(0, 1fr); }
.customer-card > div { min-width: 0; }
.customer-card small { display: block; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.customer-selector-dialog { width: min(94vw, 900px); }
#customer-selector-dialog::backdrop { background: rgba(0, 0, 0, .72); }
.customer-selector-search { display: block; margin-top: 22px; }
.customer-selector-grid { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.selector-panel { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.selector-panel-heading { min-height: 48px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #f2f5f1; }
.selector-panel-heading strong { font-size: 13px; }
.selector-panel-heading small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.selector-list { max-height: min(42vh, 360px); padding: 7px; display: grid; gap: 6px; overflow-y: auto; }
.selector-choice { width: 100%; padding: 11px 12px; display: block; color: var(--ink); background: var(--surface); border: 1px solid transparent; border-radius: 7px; text-align: left; }
.selector-choice:hover { background: #f4f7f3; }
.selector-choice.is-selected { background: var(--green-pale); border-color: transparent; }
.selector-choice strong, .selector-choice small { display: block; }
.selector-choice strong { font-size: 12px; }
.selector-choice small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.selector-loading, .selector-empty { min-height: 90px; padding: 26px 18px; color: var(--muted); font-size: 12px; line-height: 1.45; text-align: center; }

@media (max-width: 700px) {
    .customer-selector-grid { grid-template-columns: 1fr; }
    .selector-list { max-height: 220px; }
}

.budgets-heading, .customers-heading, .customer-detail-heading { align-items: center; }
.budgets-heading h1, .customers-heading h1, .customer-detail-heading h1 { margin: 0; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.045em; }
.budget-filters { margin-bottom: 14px; display: grid; grid-template-columns: minmax(260px, 1fr) 180px 220px; gap: 12px; }
.customer-filters { margin-bottom: 14px; display: grid; grid-template-columns: minmax(240px, 1fr) 180px; gap: 12px; }
.search-field input, .filter-field select {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid #cbd3c9;
    border-radius: 9px;
    outline: 0;
}
.search-field input:focus, .filter-field select:focus { border-color: var(--line); box-shadow: 0 0 0 4px rgba(15,143,98,.11); }
.filter-field { position: relative; }
.filter-field > span { position: absolute; top: -7px; left: 10px; z-index: 1; padding: 0 5px; color: var(--muted); background: var(--surface); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.customer-table-card { overflow-x: auto; }
.budget-table-card, .customer-budget-table-card { overflow-x: auto; }
.budget-table-card table { min-width: 1050px; }
.customer-budget-table-card table { min-width: 850px; }
.budget-table-card .empty-state, .customer-budget-table-card .empty-state { border: 0; border-radius: 0; }
.budget-table-row { cursor: pointer; transition: background .15s ease; }
.budget-table-row:hover, .budget-table-row:focus-visible { background: #f5f8f4; outline: 0; }
.budget-table-row td { white-space: nowrap; }
.budget-table-row .table-user { min-width: 170px; white-space: normal; }
.budget-table-total { color: var(--green-dark); font-weight: 800; }
.budget-state-badge { white-space: nowrap; }
.budget-state--borrador { color: #745d16; background: #fff1bd; }
.budget-state--enviado { color: #285577; background: #dcecf7; }
.budget-state--aceptado { color: var(--green-dark); background: var(--green-pale); }
.budget-state--rechazado { color: #763737; background: #f6dddd; }
.budget-state--caducado, .budget-state--cancelado { color: #4f5750; background: #e8ece7; }
.customer-table-card .empty-state { border: 0; border-radius: 0; }
.customer-table-card td:nth-child(2), .customer-table-card td:nth-child(4) { white-space: nowrap; }
.pagination { margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 16px; }
.pagination span { color: var(--muted); font-size: 12px; }
.pagination .button:disabled { cursor: default; }

.customer-detail-heading { margin: 22px 0 20px; display: flex; justify-content: space-between; gap: 20px; }
.customer-heading-meta { display: flex; align-items: center; gap: 10px; }
.customer-heading-meta .eyebrow { margin: 0; }
.detail-tabs { margin-bottom: 20px; display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.detail-tabs button { position: relative; padding: 12px 16px; color: var(--muted); background: transparent; border: 0; font-weight: 750; }
.detail-tabs button::after { content: ""; position: absolute; right: 10px; bottom: -1px; left: 10px; height: 3px; background: var(--green); border-radius: 3px 3px 0 0; opacity: 0; }
.detail-tabs button.is-active { color: var(--green-dark); }
.detail-tabs button.is-active::after { opacity: 1; }
.detail-tabs button span { margin-left: 4px; padding: 2px 6px; color: var(--green-dark); background: var(--green-pale); border-radius: 999px; font-size: 10px; }
.form-card { padding: 26px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.form-card .field textarea { min-height: 120px; padding: 12px 14px; resize: vertical; }
.form-section-heading h2, .addresses-toolbar h2 { margin: 0; font-size: 22px; }
.form-section-heading p, .addresses-toolbar p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.customer-type-field { max-width: 260px; }
.form-actions { margin-top: 8px; padding-top: 20px; display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); }

.addresses-toolbar { margin: 5px 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.address-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.address-card { min-height: 150px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; }
.address-card.is-inactive { opacity: .68; background: #f6f7f5; }
.address-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.address-card-header strong { display: block; margin-bottom: 8px; font-size: 16px; }
.address-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.badge--neutral { color: #4f5750; background: #e8ece7; }
.address-card p { margin: 20px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.address-settings { display: grid; grid-template-columns: 1fr 180px; align-items: end; gap: 15px; }
.address-settings .checkbox-field { margin-bottom: 14px; }
.address-active-field { margin-top: 12px; }

.users-heading { align-items: center; }
.table-card { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 15px 16px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); background: #f5f7f4; font-size: 10px; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
.table-user strong, .table-user small { display: block; }
.table-user small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.badge { display: inline-flex; padding: 5px 8px; border-radius: 999px; font-size: 10px; font-weight: 750; }
.badge--admin { color: #6b510e; background: #ffefb6; }
.badge--commercial { color: #285577; background: #dcecf7; }
.badge--active { color: var(--green-dark); background: var(--green-pale); }
.badge--inactive { color: #763737; background: #f6dddd; }
.table-action { color: var(--green-dark); background: transparent; border: 0; font-weight: 750; }

.modal { width: min(92vw, 620px); padding: 0; color: var(--ink); background: var(--surface); border: 0; border-radius: 15px; box-shadow: var(--shadow); }
.modal--small { width: min(92vw, 480px); }
.modal::backdrop { background: rgba(12,27,16,.64); backdrop-filter: blur(3px); }
.modal form { padding: 27px; }
.modal h2 { margin: 0; }
.modal-header, .modal-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.modal-actions { margin-top: 25px; justify-content: flex-end; }
.modal-actions--split { justify-content: space-between; }
.modal-actions-group { display: flex; gap: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 60; max-width: min(420px, calc(100vw - 48px)); padding: 14px 18px; color: #fff; background: #173e23; border-radius: 9px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(12px); transition: .18s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast.is-error { background: #7b2929; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

@media (max-width: 900px) {
    .address-list { grid-template-columns: 1fr; }
    .budget-filters { grid-template-columns: 1fr 1fr; }
    .budget-filters .search-field { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
    .budgets-heading, .customers-heading, .customer-detail-heading, .addresses-toolbar { align-items: stretch; flex-direction: column; }
    .budget-filters, .customer-filters, .address-settings { grid-template-columns: 1fr; }
    .form-card { padding: 20px; }
    .form-actions { align-items: stretch; flex-direction: column-reverse; }
    .pagination { gap: 8px; }
    .pagination span { text-align: center; }
}

@media (max-width: 1180px) {
    .budget-workspace { grid-template-columns: minmax(0,1fr) 360px; }
    .catalog-main { padding-inline: 28px; }
    .header-nav button { padding-inline: 11px; }
    .header-nav button::after { right: 11px; left: 11px; }
    .profile-button span:last-child { display: none; }
    .option-list, .category-grid { grid-template-columns: repeat(2, minmax(160px,1fr)); }
}

@media (max-width: 900px) {
    .app-header { height: auto; min-height: 70px; padding: 10px 14px; gap: 14px; flex-wrap: wrap; }
    .header-nav { order: 3; width: 100%; height: 42px; overflow-x: auto; }
    .header-nav button { flex: 1 0 auto; }
    .header-actions .button--outline { display: none; }
    .budget-workspace { display: block; }
    .catalog-main { padding: 24px 18px 45px; }
    .budget-aside { position: static; height: auto; min-height: 580px; border-top: 1px solid var(--line); border-left: 0; }
}

@media (max-width: 620px) {
    .login-layout { display: block; }
    .login-brand { display: none; }
    .login-panel { min-height: 100vh; padding: 28px 20px; }
    .ribot-logo--header { width: 106px; }
    .header-actions { gap: 5px; }
    .category-grid, .option-list { grid-template-columns: 1fr; }
    .product-card { grid-template-columns: 48px minmax(0,1fr) auto; }
    .product-list-price { display: none; }
    .product-summary { display: block; }
    .product-summary-image { width: 100%; height: 200px; margin-bottom: 20px; }
    .product-base-price { margin-top: 20px; text-align: left; }
    .configuration-toolbar { align-items: flex-start; }
    .form-grid { grid-template-columns: 1fr; gap: 0; }
    .modal-actions--split { align-items: stretch; flex-direction: column-reverse; }
    .modal-actions-group { display: grid; grid-template-columns: 1fr 1fr; }
    .table-card { overflow-x: auto; }
    th, td { min-width: 120px; }
}

/* Rediseño visual 2026: lienzo flotante, superficies suaves y acento esmeralda. */
html { background: var(--soft); }
body {
    padding: 0;
    background: var(--soft);
    font-weight: 450;
}

:where(button, input, select, textarea):focus-visible {
    outline: 3px solid rgba(15, 143, 98, .24);
    outline-offset: 2px;
}

.application {
    width: min(100%, 1760px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 14px;
    background: var(--soft);
    border-radius: 0;
}

.app-header {
    position: sticky;
    top: 16px;
    z-index: 30;
    height: 72px;
    padding: 0 18px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, .96);
    border: 0;
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.header-brand { justify-self: start; }
.ribot-logo--header { width: 116px; }
.header-nav {
    height: 48px;
    justify-self: start;
    padding: 4px;
    align-items: center;
    gap: 2px;
    background: #f6f6f6;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(23, 27, 24, .025);
}
.header-nav button {
    min-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 620;
    transition: color .16s ease, background .16s ease, box-shadow .16s ease;
}
.header-nav button::after { display: none; }
.header-nav button:hover { color: var(--ink); background: rgba(255, 255, 255, .55); }
.header-nav button.is-active {
    color: var(--ink);
    background: var(--surface);
    box-shadow: 0 3px 10px rgba(27, 38, 31, .08);
}
.header-actions { justify-self: end; }
#new-budget-button {
    min-height: 44px;
    padding-inline: 20px;
    color: var(--green-dark);
    background: var(--green-pale);
    border: 0;
    border-radius: 999px;
}
#new-budget-button::before { content: "+"; margin-right: 7px; font-size: 17px; font-weight: 500; }
.profile-button { min-height: 48px; padding: 5px 10px 5px 6px; border-radius: 999px; }
.profile-button:hover { background: var(--surface-soft); }
.avatar { width: 38px; height: 38px; background: var(--green-dark); }

.budget-workspace {
    min-height: calc(100vh - 132px);
    grid-template-columns: minmax(0, 1fr) 390px;
    align-items: start;
    gap: 14px;
}
.catalog-main {
    padding: 34px clamp(28px, 4vw, 62px) 70px;
    background: transparent;
    border-radius: 22px;
}
.budget-workspace.is-without-budget-aside { grid-template-columns: minmax(0, 1fr); }

.budget-aside {
    position: sticky;
    top: 102px;
    height: calc(100vh - 118px);
    margin-top: 14px;
    padding: 28px 22px 24px;
    background: var(--surface);
    border: 0;
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
}
.budget-aside-header h2 { font-size: 20px; font-weight: 690; letter-spacing: -.025em; }
.budget-start {
    margin-top: 24px;
    padding: 18px;
    display: grid;
    gap: 12px;
    background: var(--surface-soft);
    border-radius: 16px;
}
.budget-start > p {
    margin: 0 0 2px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}
.budget-start-customer {
    width: 100%;
    min-height: 76px;
    padding: 13px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 13px;
    text-align: left;
}
.budget-start-customer:hover { background: #fafbfa; }
.budget-start-customer:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 4px rgba(15, 143, 98, .11);
}
.budget-start-customer.is-selected { background: var(--green-pale); }
.budget-start-customer > span:first-child { min-width: 0; display: grid; gap: 3px; }
.budget-start-customer small {
    color: var(--muted);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.budget-start-customer strong { font-size: 13px; }
.budget-start-customer #budget-start-customer-address {
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.budget-start-customer-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--green-dark);
    border-radius: 10px;
}
.budget-start .button { width: 100%; min-height: 48px; }
.budget-start .button:disabled { cursor: not-allowed; }
.budget-start-without-customer {
    padding: 2px 4px;
    color: var(--muted);
    background: transparent;
    border: 0;
    font-size: 11px;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.budget-start-without-customer:hover { color: var(--green-dark); }
.budget-start-without-customer:disabled { cursor: wait; opacity: .5; }
.budget-lines { gap: 10px; }
.budget-line {
    background: #f2f2f2;
    border: 0;
    border-radius: 14px;
}
.budget-line-top { padding: 9px 12px; background: #f6f6f6; }
.budget-line-body { padding: 13px 12px; }
.budget-aside.is-readonly .budget-line-top { background: #f6f6f6; }
.budget-line.is-active { background: var(--green-pale); }
.budget-line.is-active .budget-line-top { background: #d8eee2; color: var(--green-dark); }
.new-line-button { min-height: 42px; background: var(--surface-soft); border-radius: 12px; }
.budget-empty {
    background: var(--surface-soft);
    border: 0;
    border-radius: 14px;
}
.customer-card { padding: 14px; background: var(--surface-soft); border-radius: 14px; }
.square-button { width: 32px; height: 32px; background: var(--green-dark); border-radius: 10px; }
.totals, .grand-total, .configuration-actions, .form-actions { border-color: var(--line); }
.observations-field textarea { border-color: var(--line); border-radius: 12px; }
.observations-field textarea:focus { border-color: var(--line); box-shadow: 0 0 0 4px rgba(15, 143, 98, .11); }
.budget-options-toggle { background: var(--green-dark); border-radius: 13px; }
.budget-options-toggle:hover { background: var(--green); }
.budget-options-menu { border: 0; border-radius: 16px; box-shadow: var(--shadow); }

.login-layout {
    width: min(100%, 1760px);
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 18%, rgba(15, 143, 98, .12), transparent 28%),
        radial-gradient(circle at 84% 82%, rgba(15, 143, 98, .08), transparent 24%),
        var(--soft);
    border-radius: 28px;
}
.login-brand { display: none; }
.login-panel { width: 100%; min-height: 100vh; padding: 42px 24px; }
.login-card {
    width: min(100%, 450px);
    padding: 42px;
    background: var(--surface);
    border-radius: 24px;
    box-shadow: var(--shadow);
}
.login-card h2 { font-size: 34px; font-weight: 630; }
.compact-brand { margin-bottom: 28px; display: flex; align-items: center; gap: 17px; }
.ribot-logo--compact { width: 138px; }
.login-brand-copy strong, .login-brand-copy small { display: block; }
.login-brand-copy strong { font-size: 13px; font-weight: 720; }
.login-brand-copy small { margin-top: 3px; color: var(--muted); font-size: 10px; }

.button {
    min-height: 44px;
    border-radius: 12px;
    font-weight: 690;
    transition: transform .14s ease, background .14s ease, box-shadow .14s ease, opacity .14s ease;
}
.button:hover { box-shadow: 0 7px 18px rgba(27, 38, 31, .08); }
.button--primary { background: var(--green-dark); }
.button--primary:hover { background: #07573b; }
.button--outline { color: var(--ink); background: var(--surface); border-color: var(--line); }
.button--ghost { background: #e9ece9; }
.button--dark { background: var(--green-dark); }
.icon-button { background: var(--surface-soft); }

.field input, .field select, .field textarea,
.search-field input, .filter-field select,
.quantity-field input, .discount-input input {
    border-color: var(--line);
    border-radius: 12px;
}
.field input:focus, .field select:focus, .field textarea:focus,
.search-field input:focus, .filter-field select:focus {
    border-color: var(--line);
    box-shadow: 0 0 0 4px rgba(15, 143, 98, .11);
}
.filter-field > span { background: var(--surface); }

.catalog-heading { margin: 22px 0 28px; }
.catalog-heading h1, .product-summary h1, .users-heading h1,
.budgets-heading h1, .customers-heading h1, .customer-detail-heading h1 {
    font-size: clamp(29px, 3.6vw, 43px);
    font-weight: 610;
    letter-spacing: -.042em;
}
#catalog-title { font-size: clamp(27px, 3vw, 38px); }
.section-label { font-weight: 680; }

.category-grid { gap: 16px; }
.category-card {
    min-height: 184px;
    padding: 24px;
    background: var(--surface);
    border: 0;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}
.category-card:hover { border-color: transparent; transform: translateY(-3px); box-shadow: 0 16px 34px rgba(27, 38, 31, .10); }
.category-icon { width: 46px; height: 46px; color: var(--green-dark); background: var(--green-pale); border-radius: 14px; }
.category-card strong { font-weight: 680; }

.product-list { gap: 12px; }
.product-card {
    min-height: 102px;
    padding: 18px 20px;
    background: var(--surface);
    border: 0;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    transition: transform .16s ease, box-shadow .16s ease;
}
.product-card:hover { border-color: transparent; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(27, 38, 31, .09); }
.product-monogram { background: var(--green-pale); border-radius: 13px; }
.product-thumbnail { border-radius: 12px; }
.product-list-price strong { font-weight: 680; }
.product-arrow { color: var(--green); }

.product-summary {
    margin-top: 18px;
    padding: 28px 30px;
    background: linear-gradient(125deg, #07583d, var(--green-dark) 62%, #0b7b54);
    border-radius: 22px;
    box-shadow: 0 16px 36px rgba(9, 104, 70, .18);
}
.product-summary-image { border-radius: 16px; }
.product-summary h1 { font-size: 33px; }
.product-base-price strong { font-weight: 650; }

.option-list { grid-template-columns: repeat(4, minmax(140px, 1fr)); gap: 14px; }
.option-card {
    min-height: 158px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 17px;
    box-shadow: 0 5px 16px rgba(27, 38, 31, .035);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.option-card:hover { border-color: var(--line); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.option-card.is-selected {
    padding: 18px;
    background: var(--green-pale);
    border: 1px solid var(--line);
    box-shadow: 0 9px 24px rgba(9, 104, 70, .08);
}
.option-check { border-color: #b8c1ba; border-radius: 6px; }
.option-card.is-selected .option-check { background: var(--green); border-color: transparent; }
.option-card-image { border-radius: 12px; }
.option-price { color: var(--green-dark); }
.required-badge { color: var(--green-dark); background: var(--green-pale); }

.empty-state {
    background: var(--surface);
    border: 0;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}
.table-card {
    background: var(--surface);
    border: 0;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}
th, td { border-bottom-color: var(--line); }
th { background: var(--surface-soft); font-weight: 760; }
.budget-table-row:hover, .budget-table-row:focus-visible,
.customer-table-row:hover, .customer-table-row:focus-visible { background: #f1f7f3; }
.customer-table-row { cursor: pointer; transition: background .15s ease; }
.customer-table-row:focus-visible { outline: 0; }
.customer-budget-total { color: var(--green-dark); font-weight: 800; white-space: nowrap; }
.table-action { color: var(--green-dark); }

.detail-tabs {
    width: max-content;
    max-width: 100%;
    margin-bottom: 22px;
    padding: 4px;
    gap: 2px;
    overflow-x: auto;
    background: #e7eae7;
    border: 0;
    border-radius: 999px;
}
.detail-tabs button { padding: 10px 16px; border-radius: 999px; }
.detail-tabs button::after { display: none; }
.detail-tabs button.is-active { color: var(--ink); background: var(--surface); box-shadow: 0 3px 10px rgba(27, 38, 31, .07); }
.form-card {
    padding: 28px 30px;
    background: var(--surface);
    border: 0;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}
.address-list { gap: 14px; }
.address-card {
    min-height: 156px;
    padding: 20px;
    background: var(--surface);
    border: 0;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}
.address-card.is-inactive { background: #eff1ef; }

.modal {
    border-radius: 24px;
    box-shadow: 0 28px 80px rgba(18, 28, 21, .22);
}
.modal::backdrop { background: rgba(24, 29, 26, .58); }
.modal form { padding: 30px; }
.customer-selector-dialog { border-radius: 24px; }
.selector-panel { border-color: var(--line); border-radius: 16px; }
.selector-panel-heading { background: var(--surface-soft); }
.selector-choice { border-color: transparent; border-radius: 11px; }
.selector-choice.is-selected { background: var(--green-pale); border-color: transparent; }
.budget-options-menu, .selector-panel, .selector-choice { overflow: hidden; }

.switch-control { background: #cbd1cc; }
.option-switch input:checked + .switch-control { background: var(--green); }
.toast { background: var(--green-dark); border-radius: 14px; }

@media (max-width: 1180px) {
    .app-header { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; }
    .header-nav button { padding-inline: 13px; }
    .budget-workspace { grid-template-columns: minmax(0, 1fr) 350px; }
    .option-list, .category-grid { grid-template-columns: repeat(2, minmax(160px, 1fr)); }
}

@media (max-width: 900px) {
    body { padding: 0; }
    .application { min-height: 100vh; padding: 8px; border-radius: 0; }
    .app-header {
        top: 8px;
        height: auto;
        min-height: 70px;
        padding: 10px 12px;
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
        border-radius: 18px;
    }
    .header-nav { order: 3; width: 100%; height: 46px; overflow-x: auto; }
    .header-nav button { flex: 1 0 auto; }
    .header-actions { margin-left: auto; }
    .budget-workspace { display: block; min-height: 0; }
    .catalog-main { padding: 28px 20px 48px; }
    .budget-aside {
        position: static;
        height: auto;
        min-height: 580px;
        margin-top: 8px;
        border-radius: 20px;
    }
    .login-layout { min-height: 100vh; border-radius: 21px; }
    .login-panel { min-height: 100vh; }
}

@media (max-width: 620px) {
    body { padding: 0; }
    .application { min-height: 100vh; padding: 7px; border-radius: 0; }
    .app-header { top: 7px; }
    .login-layout { min-height: 100vh; border-radius: 0; }
    .login-panel { min-height: 100vh; padding: 24px 18px; }
    .login-card { padding: 30px 24px; border-radius: 21px; }
    .login-card h2 { font-size: 30px; }
    .compact-brand { align-items: center; flex-direction: column; gap: 10px; text-align: center; }
    .catalog-main { padding: 25px 14px 42px; }
    .catalog-heading h1, .product-summary h1, .users-heading h1,
    .budgets-heading h1, .customers-heading h1, .customer-detail-heading h1 {
        font-size: 29px;
    }
    .category-card { min-height: 160px; }
    .product-summary { padding: 22px; border-radius: 19px; }
    .form-card { padding: 22px 20px; }
    .customer-discount-field { max-width: none; }
    .modal form { padding: 24px 20px; }
    .detail-tabs { width: 100%; }
    .detail-tabs button { flex: 1 0 auto; }
    .category-grid, .option-list { grid-template-columns: 1fr; }
}

/* Características y filtros dinámicos del catálogo. */
.catalog-filters {
    margin: 14px 0 24px;
    padding: 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px;
    background: #e8ebe8;
    border-radius: 14px;
}
.catalog-filter-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.catalog-filter-field {
    min-width: 0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: 0;
}
.catalog-filter-field > span,
.catalog-filter-field legend { color: var(--ink); font-size: 11px; font-weight: 720; }
.catalog-filter-field select {
    width: 100%;
    min-height: 38px;
    padding: 7px 32px 7px 10px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 9px;
    cursor: pointer;
}
.catalog-filter-field select:focus { border-color: var(--line); box-shadow: 0 0 0 4px rgba(15, 143, 98, .11); }
.catalog-filter-field select option:disabled { color: #a3aaa5; }
.catalog-filter-field select[multiple] { min-height: 94px; padding: 6px; }
.catalog-filter-field--multiple { grid-column: span 2; }
.catalog-filters > .button { min-height: 38px; padding-inline: 14px; white-space: nowrap; }

.product-features {
    margin: -8px 0 28px;
    padding: 22px;
    background: var(--surface);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}
.product-features-heading { margin-bottom: 14px; }
.product-features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.product-features-grid > div {
    min-width: 0;
    padding: 13px 14px;
    background: #f6f6f6;
    border-radius: 13px;
}
.product-features-grid span,
.product-features-grid strong { display: block; }
.product-features-grid span { margin-bottom: 4px; color: var(--muted); font-size: 11px; }
.product-features-grid strong { color: var(--ink); font-size: 14px; font-weight: 680; line-height: 1.35; }
.product-features-empty { grid-column: 1 / -1; margin: 0; padding: 12px 0; color: var(--muted); font-size: 13px; }

@media (max-width: 620px) {
    .catalog-filters { padding: 10px; grid-template-columns: 1fr; border-radius: 14px; }
    .catalog-filters > .button { width: 100%; }
    .product-features { padding: 18px; border-radius: 17px; }
    .catalog-filter-fields, .product-features-grid { grid-template-columns: 1fr; }
    .catalog-filter-field--multiple { grid-column: auto; }
}
