.smartsearch__layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    margin-top: 20px;
}

.smartsearch__form {
    display: flex;
    gap: 8px;
}

.smartsearch__input {
    flex: 1;
    padding: 10px 12px;
}

.smartsearch__toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.smartsearch__sort select {
    min-width: 220px;
    padding: 6px 8px;
}

.smartsearch__results.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.smartsearch__results .ms2_product {
    margin-bottom: 30px;
}

.ms2_product-thumb img {
    max-width: 100%;
    height: auto;
}

.ms2_product-title {
    margin: 10px 0 6px;
    font-size: 16px;
    line-height: 1.3;
}

.ms2_product-vendor {
    color: #6b7280;
    font-size: 13px;
    margin-bottom: 4px;
}

.ms2_product-article {
    color: #9ca3af;
    font-size: 12px;
    margin-bottom: 6px;
}

.ms2_product-price .ms2_price {
    font-weight: 700;
    font-size: 18px;
}

.ms2_product-price .ms2_old_price {
    color: #9ca3af;
    text-decoration: line-through;
    margin-left: 8px;
    font-size: 14px;
}

.smartfilter__group {
    margin-bottom: 20px;
}

.smartfilter__group-title {
    font-weight: 700;
    margin-bottom: 8px;
}

.smartfilter__row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
}

.smartfilter__count {
    color: #6b7280;
    font-size: 12px;
}

.smartfilter__price-slider {
    position: relative;
    height: 36px;
    margin: 12px 0 16px;
}

.smartfilter__price-track {
    position: absolute;
    top: 16px;
    left: 0;
    right: 0;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
}

.smartfilter__price-range {
    position: absolute;
    top: 16px;
    height: 4px;
    background: #2563eb;
    border-radius: 2px;
}

.smartfilter__range {
    position: absolute;
    top: 8px;
    width: 100%;
    margin: 0;
    pointer-events: none;
    background: none;
    -webkit-appearance: none;
    appearance: none;
}

.smartfilter__range::-webkit-slider-thumb {
    pointer-events: all;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2563eb;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.smartfilter__range::-moz-range-thumb {
    pointer-events: all;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2563eb;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.smartfilter__price-values {
    display: flex;
    align-items: center;
    gap: 8px;
}

.smartfilter__price-input {
    width: 100%;
    padding: 6px 8px;
}

.smartfilter__price-sep {
    color: #6b7280;
}

mark,
.ss-highlight {
    background: #fef08a;
    padding: 0 2px;
}

.smartsearch__pager {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 24px;
}

.smartsearch__pager-btn {
    display: inline-block;
    min-width: 40px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    text-align: center;
    line-height: 1.2;
}

.smartsearch__pager-link:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.smartsearch__pager-btn:hover:not(:disabled):not(.smartsearch__pager-btn--disabled) {
    border-color: #2563eb;
    color: #2563eb;
}

.smartsearch__pager-btn--active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.smartsearch__pager-btn--disabled {
    opacity: 0.45;
    cursor: default;
}

.smartsearch__pager-btn:disabled {
    opacity: 0.45;
    cursor: default;
}

.ss-product-card {
    height: 100%;
}

.ss-product-card__form {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ss-product-card__image {
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #f9fafb;
}

.ss-product-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-top: 12px;
}

.ss-product-card__title-link {
    color: inherit;
    text-decoration: none;
}

.ss-product-card__title-link:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .smartsearch__layout {
        grid-template-columns: 1fr;
    }

    .smartsearch__toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Manager */
.ss-mgr-panel {
    padding: 20px;
}

.ss-mgr-stats {
    margin: 16px 0;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.ss-mgr-log {
    margin-top: 16px;
    white-space: pre-wrap;
    font-family: monospace;
    font-size: 12px;
}
