[v-cloak] {
    display: none;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
.demo-intro {
    margin: 24px 16px 8px;
    padding: 18px 20px;
    border: 1px solid #667eea;
    border-radius: 12px;
    background: linear-gradient(180deg, #fff8f3 0%, #fff 100%);
}

.demo-intro-badge {
    display: inline-block;
    margin: 0 0 8px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.demo-intro-title {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.2;
    color: #2b231c;
}

.demo-intro-text {
    margin: 0;
    color: #5b5b5b;
    line-height: 1.45;
}

.demo-intro-list {
    margin: 10px 0 0;
    padding-left: 18px;
    color: #3d3d3d;
}

.hint-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.hint-row-title {
    font-size: 13px;
    font-weight: 600;
    color: #666;
}

.hint-trigger {
    width: 24px;
    height: 24px;
    border: 1px solid #667eea;
    border-radius: 50%;
    background: #fff;
    color: #667eea;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.hint-trigger-active {
    background: #667eea;
    color: #fff;
}

.hint-popup {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 10;
    width: min(420px, 94vw);
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #ffd4b8;
    background: #fff8f3;
    color: #2b231c;
    font-size: 13px;
    line-height: 1.45;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.hint-row-results {
    margin-bottom: 12px;
}

.hint-row-filters .hint-popup {
    width: min(280px, 90vw);
}

.search-open-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 28px;
    background: #667eea;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 99998;
    transition: transform 0.2s;
}

.search-open-btn:hover {
    transform: scale(1.05);
}

.fullscreen-search {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background: #fff;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

.search-header {
    padding: 20px 24px;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    flex-shrink: 0;
}

.search-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.close-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #f5f5f5;
    font-size: 24px;
    cursor: pointer;
}

.search-input-wrapper {
    padding: 20px 24px;
    border-bottom: 1px solid #eaeaea;
    flex-shrink: 0;
}

.search-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    outline: none;
}

.search-input:focus {
    border-color: #667eea;
}

.correction-info {
    margin-top: 8px;
    padding: 8px 12px;
    background: #fff3cd;
    border-radius: 8px;
    font-size: 13px;
    color: #856404;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    flex-direction: row;
}

.correction-info button {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    text-decoration: underline;
    font-size: 13px;
}

.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.filters-sidebar {
    width: 300px;
    background: #fafafa;
    border-right: 1px solid #eaeaea;
    overflow-y: auto;
    padding: 20px 16px;
    flex-shrink: 0;
}

.filter-group {
    margin-bottom: 24px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 16px;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-group-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.filter-tag {
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    color: #333;
}

.filter-tag:hover {
    border-color: #667eea;
    background: #fff5f0;
}

.filter-tag.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.color-filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.color-filter-item:hover {
    border-color: #667eea;
    background: #fff5f0;
}

.color-filter-item.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.color-square {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.1);
}

.color-name {
    font-size: 12px;
}

.price-range {
    padding: 8px 0;
}

.price-inputs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.price-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 12px;
    max-width: 120px;
}

.price-slider {
    width: 100%;
    margin: 12px 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
}
.price-slider-container {
    position: relative;
    width: 100%;
    height: 40px;
    margin: 15px 0;
}

.price-slider-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: #e0e0e0;
    border-radius: 4px;
    transform: translateY(-50%);
}

.price-slider-track-fill {
    position: absolute;
    top: 50%;
    height: 4px;
    background: #667eea;
    border-radius: 4px;
    transform: translateY(-50%);
}

.price-slider-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-appearance: none;
    background: transparent;
    pointer-events: none;
    margin: 0;
    padding: 0;
}

.price-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    border: 2px solid white;
    z-index: 10;
    position: relative;
}

.price-slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background: #e04e00;
}
.search-mode-info {
    background: #fffa78;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 12px;
    color: #2B231C;
}
.price-slider-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: 2px solid white;
}

.price-values {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

.active-filters {
    margin-bottom: 16px;
    padding: 12px;
    background: #f0f0f0;
    border-radius: 8px;
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #667eea;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    margin: 4px;
}

.active-filter-tag button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 14px;
    margin-left: 4px;
}

.results-area {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.results-stats {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eaeaea;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.product-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: white;
}

.product-info {
    padding: 12px;
    flex: 1;
}

.product-title {
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.4;
    color: #333;
}

.product-title a {
    text-decoration: none;
    color: #707380;
}

.product-title a:hover {
    color: #667eea;
}

.product-title mark {
    background: #fff3cd;
    padding: 0 2px;
    border-radius: 4px;
}

.product-price {
    font-size: 22px;
    font-weight: bold;
    color: #e81e5a;
    background: #fffa78;
    padding: 7px;
    border-radius: 8px;
    font-family: "Rubik", sans-serif;
}
.p-price {
    margin-top: 10px;
    margin-bottom: 20px;
}
.product-old-price {
    font-size: 15px;
    font-weight: 600;
    text-decoration: line-through;
    margin-left: 8px;
    color: #2b231c !important;
    text-decoration-color: #e81e5a;
    font-family: "Rubik", sans-serif;
}

.product-vendor {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
}

/* Строка с цветом и иконками */
.product-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.product-color {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #888;
}

.product-icons {
    display: flex;
    gap: 8px;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    transform: scale(1.1);
}

.icon-btn.favorite:hover path {
    fill: #e81e5a;
}
.icon-btn.compare:hover path {
    fill: #e81e5a;
}
.icon-btn.favorite.active {
    color: #ff4757;
    text-shadow: 0 0 2px #ff4757;
}

.icon-btn.compare.active {
    color: #667eea;
    text-shadow: 0 0 2px #667eea;
}

.product-buttons {
    display: flex;
    gap: 8px;
    padding: 12px;
}

.cart-btn {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-column-gap: 10px;
    -moz-column-gap: 10px;
    column-gap: 10px;
    border-radius: 8px;
    padding: 11px 9px;
    max-width: 190px;
    width: 100%;
    height: 40px;
    -webkit-box-shadow: 0 1px 4px 0 rgba(223, 223, 223, .9);
    box-shadow: 0 1px 4px 0 rgba(223, 223, 223, .9);
    background: #fff;
    color: #e81e5a;
    -webkit-transition: all .3s ease 0s;
    -o-transition: all .3s ease 0s;
    transition: all .3s ease 0s;
    border: 1px solid transparent;
}
.cart-btn svg path {
    stroke: #e81e5a;
    -webkit-transition: all .3s ease 0s;
    -o-transition: all .3s ease 0s;
    transition: all .3s ease 0s;
}
.cart-btn:hover {
    border: 1px solid #e81e5a;
    background: #e81e5a;
    color: #fff;
}
.cart-btn:hover svg path {
    stroke: #fff;
}
.cart-btn.added {
    background: #e81e5a;
    color: #fff;
}
.cart-btn.added svg path {
    stroke: #fff;
}
.oneclick-btn {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-column-gap: 10px;
    -moz-column-gap: 10px;
    column-gap: 10px;
    border-radius: 8px;
    padding: 11px 9px;
    max-width: 190px;
    width: 100%;
    height: 40px;
    -webkit-box-shadow: 0 1px 4px 0 rgba(223, 223, 223, .9);
    box-shadow: 0 1px 4px 0 rgba(223, 223, 223, .9);
    background: #fff;
    color: #e81e5a;
    -webkit-transition: all .3s ease 0s;
    -o-transition: all .3s ease 0s;
    transition: all .3s ease 0s;
    border: 1px solid transparent;
}

.oneclick-btn:hover {
    border: 1px solid #e81e5a;
    background: #e81e5a;
    color: #fff;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    padding: 24px;
    position: relative;
}

.modal-content h3 {
    margin-bottom: 16px;
}

.modal-content input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 14px;
}

.modal-content button {
    width: 100%;
    padding: 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.reset-filters-btn {
    width: 100%;
    padding: 10px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 16px;
}

.loading-spinner {
    text-align: center;
    padding: 60px;
    color: #999;
}

.no-results {
    text-align: center;
    padding: 60px;
    color: #999;
}

@media (max-width: 768px) {
    .demo-intro {
        margin: 16px 12px 8px;
        padding: 14px;
    }

    .demo-intro-title {
        font-size: 18px;
    }

    .demo-intro-text,
    .demo-intro-list {
        font-size: 14px;
    }

    .search-header {
        padding: 12px 16px;
        padding-top: max(12px, env(safe-area-inset-top));
    }

    .search-header h2 {
        font-size: 18px;
        line-height: 1.2;
        padding-right: 8px;
    }

    .close-btn {
        min-width: 44px;
        min-height: 44px;
    }

    .search-input-wrapper {
        padding: 12px 16px;
    }

    .search-input {
        font-size: 16px;
        padding: 14px 16px;
        border-radius: 10px;
    }

    .filters-mobile-bar {
        display: flex;
        flex-shrink: 0;
        padding: 8px 16px 10px;
        background: #fff;
        border-bottom: 1px solid #eaeaea;
        display: block!important;
    }

    .main-content {
        flex-direction: column;
        flex: 1;
        min-height: 0;
    }

    .filters-sidebar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-height: min(88vh, 100% - 56px);
        margin: 0;
        padding: 0 16px 16px;
        padding-bottom: max(16px, env(safe-area-inset-bottom));
        border-right: none;
        border-top: 1px solid #eaeaea;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.12);
        z-index: 100001;
        transform: translateY(105%);
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.3s ease, visibility 0.3s;
        flex-shrink: 0;
    }

    .filters-sidebar.filters-sidebar--drawer-open {
        transform: translateY(0);
        visibility: visible;
        pointer-events: auto;
    }

    .filters-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin: 0 -16px 8px;
        padding: 14px 16px;
        background: #fafafa;
        border-bottom: 1px solid #eaeaea;
        border-radius: 16px 16px 0 0;
        position: sticky;
        top: 0;
        z-index: 2;
    }

    .filter-options {
        max-height: 160px;
    }

    .results-area {
        flex: 1;
        padding: 16px;
        min-height: 0;
    }

    .results-stats {
        font-size: 13px;
        margin-bottom: 14px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .product-image {
        height: 140px;
    }

    .product-price {
        font-size: 18px;
    }

    .product-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .cart-btn,
    .oneclick-btn {
        max-width: none;
        width: 100%;
    }

    .modal-content {
        width: calc(100% - 32px);
        max-height: calc(100dvh - 32px);
        overflow-y: auto;
    }

    .hint-popup {
        width: min(100%, 330px);
        font-size: 12px;
    }
}

@media (min-width: 769px) {
    .filters-backdrop {
        display: none !important;
    }
}
.product-title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
    min-height: 2.7em;
}

.search-header-input {
    width: 100%;
    box-sizing: border-box;
    min-height: 44px;
    -webkit-box-flex: 0;
    -ms-flex: 0 1 566px;
    flex: 0 1 min(566px, 100%);
    padding: 11px 13.5px;
    font-size: 16px;
    border: 1px solid #715bb9;
    border-radius: 8px;
}

.breadcrumbs-container {
    box-sizing: border-box;
    padding: 12px 16px;
    max-width: 100%;
}

/* Мобильная панель фильтров: кнопка только на узких экранах */
.filters-mobile-bar {
    display: none;
}

.filters-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 100000;
    -webkit-tap-highlight-color: transparent;
}

.filters-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    width: 100%;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    background: #fafafa;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.filters-toggle-btn:active {
    background: #f0f0f0;
}

.filters-toggle-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: #667eea;
    border-radius: 999px;
}

.filters-drawer-header {
    display: none;
}

.filters-drawer-close {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #f0f0f0;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}
.demo-intro-list li {
    margin-bottom: 12px;
}
