body { margin:0; font-family:Arial,sans-serif; height:100vh; overflow:hidden; }
.podbor-layout { display:grid; grid-template-columns:260px 1fr 420px; height:100vh; }

.podbor-filters { border-right:1px solid #ddd; padding:15px; overflow-y:auto; background:#fafafa; }
.podbor-filters h3 { margin:0 0 10px; font-size:14px; }

.podbor-grid { padding:10px; overflow-y:auto; background:#fff; display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:10px; }
.podbor-card { height:140px; border:1px solid #eee; display:flex; align-items:center; justify-content:center; cursor:pointer; background:#fff; }
.podbor-card.active { border:2px solid #23c55e; }
.podbor-card img { max-width:100%; max-height:100%; object-fit:contain; }

.podbor-preview { border-left:1px solid #ddd; padding:15px; overflow-y:auto; background:#f9f9f9; }
.podbor-preview-img { width:100%; height:320px; border:1px solid #ddd; background:#fff; display:flex; align-items:center; justify-content:center; margin-bottom:15px; }
.podbor-preview-img img { max-width:100%; max-height:100%; object-fit:contain; }
.podbor-preview-info div { margin-bottom:6px; font-size:14px; }

.podbor-wrap {
    display: grid;
    grid-template-columns: 260px 1fr 320px;
    gap: 16px;
    align-items: start;
}

.podbor-filters {
    grid-column: 1;
}

.podbor-grid-wrap {
    grid-column: 2;
    overflow-y: auto;
}

.podbor-preview {
    grid-column: 3;
    position: sticky;
    top: 20px;
    align-self: start;
}

#podbor-sentinel {
    width: 100%;
    height: 2px;
}

.podbor-grid-wrap {
    overflow-y: auto;
    height: 100%;
}
.podbor-filter-place label {
    display: inline;
    margin: 0;
}

.podbor-filter-place label input {
    margin-right: 4px;
}

.podbor-filter-place label::after {
    content: '';
    display: block;
}
.podbor-acc { margin-bottom:12px; }

.podbor-acc-head {
    display:flex;
    justify-content:space-between;
    align-items:center;
    cursor:pointer;
    font-weight:600;
    padding:4px 0;
}

.podbor-acc-toggle {
    font-size:18px;
    line-height:1;
}

.podbor-acc-body {
    display:none;
    padding-top:6px;
}

.podbor-acc.open .podbor-acc-body { display:block; }
.podbor-acc.open .podbor-acc-toggle { content:'-'; }

.podbor-brand-filter { position:relative; }

#f-brand-input {
    width:100%;
    padding:6px;
    box-sizing:border-box;
}

.podbor-brand-suggest {
    position:absolute;
    left:0;
    right:0;
    top:100%;
    background:#fff;
    border:1px solid #ddd;
    max-height:220px;
    overflow:auto;
    display:none;
    z-index:10;
}

.podbor-brand-suggest div {
    padding:6px 8px;
    cursor:pointer;
}

.podbor-brand-suggest div:hover {
    background:#f0f0f0;
}

.podbor-filter-actions {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.podbor-reset-btn {
    appearance: none;
    border: 1px solid #d0d0d0;
    background: #f7f7f7;
    color: #333;
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all .15s ease;
}

.podbor-reset-btn:hover {
    background: #ededed;
    border-color: #bdbdbd;
}

.podbor-reset-btn:active {
    background: #e5e5e5;
}
.podbor-count {
    margin-top: 4px;
    font-size: 13px;
    color: #666;
}
.podbor-count b {
    font-size: 15px;
    font-weight: 600;
    color: #000;
}
.podbor-filter-price input[type=number]::-webkit-outer-spin-button,
.podbor-filter-price input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.podbor-filter-price input[type=number] {
    -moz-appearance: textfield;
}
.podbor-filter-price label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: inherit;
}

.podbor-filter-price input {
    width: 60px;          /* ≈ 5 цифр */
    padding: 2px 4px;
    font-size: inherit;
    line-height: 1.2;
}
.podbor-fav-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.podbor-fav-actions button {
    width: 44px;
    height: 44px;
    font-size: 22px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fafafa;
    cursor: pointer;
}

.podbor-fav-actions button:hover {
    background: #f0f0f0;
}

#fav-toggle {
    font-size: 26px;
    color: #bbb;
}

#fav-toggle.fav-active {
    color: #f5b301;
}


.podbor-preview {
    overflow: hidden;
    height: auto;
}

.podbor-preview-info {
    overflow: hidden;
    height: auto;
}

.podbor-preview-info > div {
    margin-bottom: 6px;
}


.podbor-card { position: relative; }

.podbor-card-price {
    position: absolute;
    top: 2px;
    right: 2px;

    font-size: 10px;
    line-height: 1;
    color: #9a9a9a;

    background: rgba(255,255,255,0.65);
    padding: 2px 4px;
    border-radius: 2px;

    pointer-events: none;
    white-space: nowrap;
}

/* аккуратный, спокойный правый нижний угол */
.podbor-preview {
    position: relative;
}

.podbor-preview-contacts {
    position: absolute;
    right: 12px;
    bottom: 12px;

    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;

    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(250, 250, 250, 0.96);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* кнопка "Вернуться на сайт" — мягкая, не агрессивная */
.podbor-preview-contacts .ppc-site {
    display: inline-flex;
    align-items: center;

    padding: 6px 14px;
    border-radius: 18px;

    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    background: #e5e7eb;

    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.podbor-preview-contacts .ppc-site:hover {
    background: #d1d5db;
}

/* телефон — просто заметный, без "кричащих" эффектов */
.podbor-preview-contacts .ppc-phone {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.podbor-preview-contacts .ppc-phone::before {
    content: "☎";
    margin-right: 6px;
    font-size: 16px;
    vertical-align: middle;
}

/* никаких подчеркиваний и дерганий */
.podbor-preview-contacts .ppc-phone:hover {
    color: #111827;
}
