/* Neon: expanded categories and the existing product/purchase flow. */
.neon-catalog {
    display: grid;
    grid-template-columns: minmax(230px, 290px) minmax(0, 1fr);
    align-items: start;
    gap: 26px;
    margin-top: 26px;
    margin-bottom: 32px;
}
.neon-catalog > .card { margin: 0; min-width: 0; }
.neon-category-card { position: sticky; top: 20px; }
.neon-category-card .card-header,
.neon-products-card .card-header { padding: 18px 22px; }
.neon-category-body { padding: 8px 18px 16px; }
.neon-category-list {
    max-height: min(760px, calc(100vh - 135px));
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #c0c9c8 transparent;
}
.neon-category-item {
    appearance: none;
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 53px;
    margin: 0;
    padding: 10px 8px 10px calc(8px + var(--category-depth, 0) * 12px);
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .45);
    border-radius: 9px;
    background: transparent;
    color: #6d7478;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: color .15s, background-color .15s;
}
.neon-category-item:hover { background: rgba(255, 255, 255, .48); color: #4b657b; }
.neon-category-item.is-active { color: #ee73c7; background: rgba(255, 255, 255, .62); }
.neon-category-item.is-active .neon-category-count { box-shadow: 0 0 0 3px rgba(255, 255, 255, .85); }
.neon-category-item.is-group { cursor: default; color: #8b9295; font-size: 12px; }
.neon-category-item:focus-visible,
.neon-buy:focus-visible { outline: 2px solid #1976ff; outline-offset: -2px; }
.neon-category-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; flex: 1; }
.neon-category-count {
    flex-shrink: 0;
    min-width: 29px;
    padding: 1px 7px;
    border: 1px solid #ffce93;
    border-radius: 20px;
    background: #fff3da;
    color: #df771f;
    font-size: 12px;
    line-height: 23px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.neon-item-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 24px; width: 24px; height: 24px; color: #2aa9df; }
.neon-item-icon img { display: block; width: 24px; height: 24px; object-fit: cover; border-radius: 6px; }
.neon-item-icon .fa { font-size: 20px; }
.neon-products-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.neon-products-header .card-title { flex-shrink: 0; margin: 0; }
.neon-current-category { color: #8b9197; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.neon-products-body { padding: 9px 22px 18px; }
.neon-product-table { display: none; width: 100%; margin: 0; table-layout: fixed; background: transparent; border: 0; border-collapse: collapse; }
.neon-col-name { width: 56%; }
.neon-col-price { width: 14%; }
.neon-col-stock { width: 14%; }
.neon-col-action { width: 16%; }
.neon-product-table .head { background: transparent; }
.neon-product-table .head th { padding: 15px 6px; color: #777d80; font-size: 14px; font-weight: 600; border: 0; background: transparent; }
.neon-product-table .item { border-bottom: 1px solid rgba(255, 255, 255, .55); }
.neon-product-table .item:last-child { border-bottom: 0; }
.neon-product-table .item:hover { background: rgba(255, 255, 255, .20); }
.neon-product-table .item td { border: 0; padding: 17px 6px; background: transparent; font-size: 14px; font-weight: 600; }
.neon-product-table th:not(:first-child),
.neon-product-table td:not(:first-child) { text-align: center; }
.neon-product-label { display: flex; align-items: center; gap: 8px; min-width: 0; }
.neon-product-name { display: block; min-width: 0; overflow-wrap: anywhere; line-height: 1.65; color: #6f777b; }
.neon-price { color: #f330d5; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.neon-stock { color: #1ab85d; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.neon-buy {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 36px;
    padding: 7px 13px;
    border: 0;
    border-radius: 11px;
    background: #1976ff;
    box-shadow: 0 5px 12px rgba(25, 118, 255, .18);
    color: white;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}
.neon-buy:hover { background: #0865e9; }
.neon-buy:active { transform: translateY(1px); }
.neon-sold-out { color: #969da2; font-size: 12px; font-weight: 400; }
.neon-category-message,
.neon-product-message { margin: 0; padding: 30px 10px; text-align: center; color: #8c959a; font-size: 13px; }
.neon-search-card { margin-bottom: 0; }
@media (max-width: 991px) {
    .neon-catalog { grid-template-columns: minmax(180px, 230px) minmax(0, 1fr); gap: 18px; }
    .neon-category-body { padding: 6px 10px 12px; }
    .neon-products-body { padding: 8px 15px 16px; }
    .neon-category-item { font-size: 13px; }
    .neon-col-name { width: 47%; }
    .neon-col-price { width: 16%; }
    .neon-col-stock { width: 16%; }
    .neon-col-action { width: 21%; }
}
@media (max-width: 700px) {
    .neon-catalog { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 18px; }
    .neon-category-card { position: static; }
    .neon-category-card .card-header,
    .neon-products-card .card-header { padding: 15px 17px; }
    .neon-category-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 7px; max-height: 245px; }
    .neon-category-item { min-height: 45px; padding: 8px 5px; gap: 6px; font-size: 12px; }
    .neon-category-count { min-width: 24px; padding: 0 5px; line-height: 21px; font-size: 11px; }
    .neon-item-icon, .neon-item-icon img { width: 21px; height: 21px; flex-basis: 21px; }
    .neon-products-body { padding: 4px 12px 12px; }
    .neon-product-table .head th { font-size: 12px; padding: 12px 3px; }
    .neon-product-table .item td { padding: 14px 3px; font-size: 12px; }
    .neon-product-label { gap: 6px; }
    .neon-product-table th:nth-child(2) .fa,
    .neon-product-table th:nth-child(3) .fa { display: none; }
    .neon-buy { font-size: 12px; padding: 6px 8px; min-height: 33px; gap: 3px; border-radius: 8px; }
    .neon-current-category { max-width: 60%; font-size: 11px; }
}
