﻿.search-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}
.search-page button,
.recent-searches button {
    font-family: inherit;
}
.search-hero {
    text-align: center;
    padding: 18px 0 8px;
}
.search-hero-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--avh-ink);
    margin: 0 0 6px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.search-hero-title svg {
    width: 28px;
    height: 28px;
    stroke: var(--avh-green);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.search-hero-sub {
    color: var(--avh-muted);
    font-size: 14px;
    margin: 0;
}
.search-panel {
    background: #fff;
    border: 1px solid var(--avh-border);
    border-radius: var(--avh-radius);
    padding: 16px;
    box-shadow: var(--avh-shadow-sm);
    margin-bottom: 18px;
}
.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.search-icon {
    position: absolute;
    right: 14px;
    width: 20px;
    height: 20px;
    stroke: var(--avh-muted);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}
.search-input {
    width: 100%;
    max-width: 100% !important;
    padding: 14px 46px;
    border: 1.5px solid var(--avh-border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 15px;
    color: var(--avh-ink);
    background: var(--avh-bg-soft);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.search-input:focus {
    outline: none;
    border-color: var(--avh-green);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(20, 139, 116, 0.12);
}
.search-clear {
    position: absolute;
    left: 12px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--avh-border);
    border: none;
    color: var(--avh-ink);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    transition: background 0.2s ease, color 0.2s ease;
}
.search-clear:hover {
    background: var(--avh-green);
    color: #fff;
}
.search-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.search-mode {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--avh-ink);
    cursor: pointer;
    font-weight: 600;
    user-select: none;
}
.search-mode input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--avh-border);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    position: relative;
    margin: 0;
    transition: border-color 0.2s ease, background 0.2s ease;
    flex-shrink: 0;
}
.search-mode input[type="checkbox"]:hover { border-color: var(--avh-green); }
.search-mode input[type="checkbox"]:checked {
    background: var(--avh-green);
    border-color: var(--avh-green);
}
.search-mode input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 45%;
    left: 50%;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg);
}
.search-filters {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--avh-border);
}
.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}
.filter-group { margin-bottom: 14px; }
.cat-combo {
    position: relative;
    background: var(--avh-bg-soft);
    border: 1.5px solid var(--avh-border);
    border-radius: 12px;
    padding: 8px 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.cat-combo:focus-within {
    border-color: var(--avh-green);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(20, 139, 116, 0.12);
}
.cat-combo-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}
.cat-combo-chips:empty {
    display: none;
    margin-bottom: 0;
}
.cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--avh-green), var(--avh-green-dark));
    color: #fff;
    border-radius: 999px;
    padding: 4px 4px 4px 12px;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.4;
    box-shadow: 0 3px 8px rgba(20, 139, 116, 0.28);
    animation: chipIn 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes chipIn {
    from { opacity: 0; transform: scale(0.82); }
    to { opacity: 1; transform: scale(1); }
}
.cat-chip-remove {
    background: rgba(255, 255, 255, 0.22);
    border: none;
    color: #fff;
    cursor: pointer;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 15px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}
.cat-chip-remove:hover {
    background: rgba(255, 255, 255, 0.45);
    transform: scale(1.1);
}
.cat-combo-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.cat-combo-icon {
    position: absolute;
    right: 6px;
    width: 18px;
    height: 18px;
    stroke: var(--avh-muted);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}
.cat-combo-input {
    width: 100%;
    max-width: 100% !important;
    border: none;
    background: transparent;
    padding: 8px 32px 8px 8px;
    font-family: inherit;
    font-size: 14px;
    color: var(--avh-ink);
    outline: none;
    line-height: 1.6;
}
.cat-combo-input::placeholder {
    color: var(--avh-muted);
    opacity: 0.85;
}
.cat-combo-input:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.cat-combo-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    z-index: 30;
    background: #fff;
    border: 1px solid var(--avh-border);
    border-radius: 12px;
    box-shadow: var(--avh-shadow-lg);
    max-height: 240px;
    overflow-y: auto;
    padding: 6px;
    animation: suggestionsIn 0.18s ease;
}
@keyframes suggestionsIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.cat-combo-suggestions::-webkit-scrollbar { width: 6px; }
.cat-combo-suggestions::-webkit-scrollbar-thumb {
    background: var(--avh-green-soft);
    border-radius: 999px;
}
.cat-suggestion {
    display: block;
    width: 100%;
    text-align: right;
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 9px 12px;
    font-family: inherit;
    font-size: 13.5px;
    color: var(--avh-ink);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, padding 0.15s ease;
}
.cat-suggestion:hover,
.cat-suggestion:focus {
    background: var(--avh-green-light);
    color: var(--avh-green-dark);
    outline: none;
    padding-right: 18px;
}
.cat-suggestion-empty {
    padding: 12px 14px;
    color: var(--avh-muted);
    font-size: 13px;
    text-align: center;
}
.spec-builder {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 1.2fr auto;
    gap: 8px;
    align-items: stretch;
}
.spec-builder > .cat-combo {
    padding: 0;
    display: flex;
    align-items: center;
    overflow: visible;
    background: #fff;
}
.spec-builder > .cat-combo .cat-combo-input-wrap {
    width: 100%;
    height: 100%;
    padding: 0 12px;
    box-sizing: border-box;
}
.spec-builder > .cat-combo .cat-combo-input {
    padding: 11px 32px 11px 8px;
    height: 100%;
    box-sizing: border-box;
    background: transparent;
}
.spec-builder > .cat-combo.spec-value-combo .cat-combo-input {
    padding-right: 8px;
}
.spec-builder select {
    max-width: 100% !important;
    padding: 10px 12px;
    border: 1px solid var(--avh-border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    background: #fff;
    color: var(--avh-ink);
}
.spec-builder select:focus {
    outline: none;
    border-color: var(--avh-green);
    box-shadow: 0 0 0 3px rgba(20, 139, 116, 0.15);
}
.spec-builder select:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.spec-builder .btn {
    padding: 10px 18px;
    white-space: nowrap;
}
.spec-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.spec-add-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    pointer-events: none;
    flex-shrink: 0;
}
.spec-add-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.spec-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}
.spec-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--avh-green-light);
    color: var(--avh-green-dark);
    border: 1px solid var(--avh-border);
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 13px;
    font-weight: 600;
}
.chip-remove {
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 17px;
    line-height: 1;
    padding: 0 2px;
    font-family: inherit;
    transition: color 0.2s ease;
}
.chip-remove:hover { color: #e74c3c; }
.filter-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 10px;
    border-top: 1px solid var(--avh-border);
}
.filter-actions .btn { padding: 10px 22px; }
.search-status {
    color: var(--avh-muted);
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
}
.search-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.search-results[data-cols="2"],
.search-results[data-cols="3"],
.search-results[data-cols="4"] {
    display: grid;
    gap: 12px;
}
.search-results[data-cols="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.search-results[data-cols="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.search-results[data-cols="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.search-results[data-cols="2"] .search-item,
.search-results[data-cols="3"] .search-item,
.search-results[data-cols="4"] .search-item {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    padding: 10px;
}
.search-results[data-cols="2"] .search-item-image,
.search-results[data-cols="3"] .search-item-image,
.search-results[data-cols="4"] .search-item-image {
    width: 100%;
    border-radius: 10px;
}
.search-results[data-cols="2"] .search-item-head,
.search-results[data-cols="3"] .search-item-head,
.search-results[data-cols="4"] .search-item-head {
    flex-direction: column;
    align-items: stretch;
}
.search-results[data-cols="2"] .search-item-actions,
.search-results[data-cols="3"] .search-item-actions,
.search-results[data-cols="4"] .search-item-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
}
.search-results[data-cols="2"] .search-item-title,
.search-results[data-cols="3"] .search-item-title,
.search-results[data-cols="4"] .search-item-title {
    font-size: 14px;
}
.search-results[data-cols="2"] .search-item-summary,
.search-results[data-cols="3"] .search-item-summary,
.search-results[data-cols="4"] .search-item-summary {
    font-size: 12.5px;
    -webkit-line-clamp: 3;
}
@media (max-width: 991px) {
    .search-results[data-cols="3"],
    .search-results[data-cols="4"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 576px) {
    .search-results[data-cols="2"],
    .search-results[data-cols="3"],
    .search-results[data-cols="4"] {
        grid-template-columns: 1fr;
    }
}
.search-item {
    position: relative;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--avh-border);
    border-radius: var(--avh-radius);
    padding: 14px;
    transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.search-item:hover {
    box-shadow: var(--avh-shadow);
    border-color: var(--avh-green-soft);
    transform: translateY(-2px);
}
.search-item-image {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    background: var(--avh-bg-soft);
    border-radius: 10px;
    overflow: hidden;
}
.search-item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    padding: 6px;
}
.search-item-image .no-image {
    color: var(--avh-muted);
    opacity: 0.5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-item-image .no-image svg {
    width: 42px;
    height: 42px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}
.search-item-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.search-item-head {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    justify-content: space-between;
}
.search-item-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.search-item-actions {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    gap: 6px;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: flex-end;
}
.search-item-actions .product-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--avh-green-light);
    color: var(--avh-green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(20, 46, 53, 0.12);
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
    padding: 0;
    text-decoration: none;
    line-height: 1;
}
.search-item-actions .product-icon-btn svg {
    width: 15px;
    height: 15px;
    display: block;
    stroke: currentColor;
    fill: none;
    pointer-events: none;
}
.search-item-actions .product-icon-btn:hover {
    background: var(--avh-green);
    color: #fff;
    transform: scale(1.08);
}
.search-item-actions .product-icon-btn:focus-visible {
    outline: 2px solid var(--avh-green);
    outline-offset: 2px;
}
.search-brand {
    display: inline-block;
    align-self: flex-start;
    background: var(--avh-green-light);
    color: var(--avh-green-dark);
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
}
.search-item-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    line-height: 1.6;
    color: var(--avh-ink);
}
.search-item-title a {
    position: relative;
    color: inherit;
    text-decoration: none;
    display: inline;
}
.search-item-title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}
.search-item-title a:hover { color: var(--avh-green); }
.search-item-summary {
    color: var(--avh-muted);
    font-size: 13.5px;
    line-height: 1.8;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}
.search-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--avh-green);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.search-price .price-final {
    display: inline-flex !important;
    align-items: center;
    padding: 5px 12px !important;
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.35) !important;
    line-height: 1.4;
}
.search-price .price-old {
    font-size: 12.5px;
    color: var(--avh-muted);
    text-decoration: line-through;
    font-weight: 500;
}
.search-status-row {
    margin-top: 6px;
}
.search-status-row .badge-unavailable,
.search-status-row .badge-call {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 7px 20px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    line-height: 1.4 !important;
    letter-spacing: 0.2px;
}
.search-status-row .badge-unavailable {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d) !important;
    box-shadow: 0 3px 10px rgba(149, 165, 166, 0.35) !important;
}
.search-status-row .badge-call {
    background: linear-gradient(135deg, #f39c12, #d68910) !important;
    box-shadow: 0 3px 10px rgba(243, 156, 18, 0.35) !important;
}
.search-item-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px dashed var(--avh-border);
}
.search-item-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
}
.search-badge {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    padding: 4px 12px !important;
    border-radius: 999px !important;
    line-height: 1.4 !important;
    color: #ffffff !important;
}
.search-badge.discount {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.35) !important;
}
.search-badge.unavailable {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d) !important;
    box-shadow: 0 2px 8px rgba(149, 165, 166, 0.35) !important;
}
.search-badge.call {
    background: linear-gradient(135deg, #f39c12, #d68910) !important;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.35) !important;
}
.search-breadcrumb {
    font-size: 12px;
    color: var(--avh-muted);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}
.search-breadcrumb a {
    color: var(--avh-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}
.search-breadcrumb a:hover { color: var(--avh-green); }
.bc-sep {
    color: var(--avh-border);
    margin: 0 2px;
}
.bc-current {
    color: var(--avh-ink);
    font-weight: 600;
}
.search-loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--avh-muted);
}
.search-loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 12px;
    border: 3px solid var(--avh-green-soft);
    border-top-color: var(--avh-green);
    border-radius: 50%;
    animation: searchSpin 0.8s linear infinite;
}
@keyframes searchSpin {
    to { transform: rotate(360deg); }
}
.search-empty {
    text-align: center;
    padding: 50px 20px;
    color: var(--avh-muted);
    background: var(--avh-bg-soft);
    border: 1px dashed var(--avh-border);
    border-radius: var(--avh-radius);
}
.search-empty svg {
    width: 60px;
    height: 60px;
    stroke: var(--avh-muted);
    fill: none;
    stroke-width: 1.5;
    opacity: 0.5;
    margin-bottom: 10px;
}
.search-empty p {
    margin: 0;
    font-size: 14px;
}
.category-description .description {
    line-height: 1.9;
    color: var(--avh-ink);
    font-size: 14px;
}
.search-pagination {
    margin-top: 20px;
    text-align: center;
}
.search-pagination .pg-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}
.search-pagination .pg-list li {
    display: inline-block;
}
.search-pagination .pg-btn {
    display: inline-block;
    min-width: 38px;
    padding: 8px 12px;
    border: 1px solid #d8dee6;
    background: #fff;
    color: #33404f;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background .2s, border-color .2s, color .2s;
}
.search-pagination .pg-btn:hover {
    background: #f2f5f9;
    border-color: #b9c2cd;
}
.search-pagination .pg-btn.pg-active {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
    cursor: default;
}
.search-pagination .pg-btn.pg-disabled {
    opacity: .5;
    cursor: default;
    background: #f8f9fa;
}
.search-pagination .pg-ellipsis {
    display: inline-block;
    padding: 8px 6px;
    color: #6c757d;
}
.recent-searches {
    margin: 14px 0 20px;
    padding: 14px 16px 16px;
    background: linear-gradient(135deg, #f6fbf9 0%, #eef7f4 100%);
    border: 1px solid #d6ebe3;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(20, 139, 116, 0.06);
    animation: recentFadeIn 0.3s ease;
}
@keyframes recentFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
.recent-searches-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 8px;
}
.recent-searches-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 800;
    color: #14303a;
    padding-right: 10px;
    border-right: 3px solid var(--avh-green);
    line-height: 1.3;
}
.recent-searches-title::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23148b74' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpolyline points='12 7 12 12 15 14'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}
.recent-searches-clear {
    background: rgba(231, 76, 60, 0.08) !important;
    border: 1px solid rgba(231, 76, 60, 0.25) !important;
    color: #e74c3c !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    cursor: pointer;
    padding: 6px 14px !important;
    border-radius: 999px !important;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
    font-family: inherit;
    line-height: 1;
}
.recent-searches-clear:hover {
    background: #e74c3c !important;
    color: #fff !important;
    border-color: #e74c3c !important;
    transform: translateY(-1px);
}
.recent-searches-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.recent-search-chip {
    display: inline-flex !important;
    align-items: center !important;
    background: #ffffff !important;
    border: 1.5px solid #d6ebe3 !important;
    border-radius: 999px !important;
    padding: 0 !important;
    box-shadow: 0 2px 6px rgba(20, 46, 53, 0.06) !important;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease, background .25s ease;
    overflow: hidden !important;
    height: 34px;
    animation: chipPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes chipPop {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}
.recent-search-chip:hover {
    border-color: var(--avh-green) !important;
    box-shadow: 0 4px 14px rgba(20, 139, 116, 0.2) !important;
    transform: translateY(-2px);
}
.recent-search-btn {
    display: inline-flex !important;
    align-items: center !important;
    background: transparent !important;
    border: none !important;
    padding: 0 12px 0 14px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #33404f !important;
    cursor: pointer;
    font-family: inherit;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    height: 100%;
    line-height: 1;
    transition: color .2s ease;
    position: relative;
}
.recent-search-btn::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 6px;
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23148b74' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity .2s ease;
}
.recent-search-chip:hover .recent-search-btn {
    color: var(--avh-green-dark) !important;
}
.recent-search-chip:hover .recent-search-btn::before {
    opacity: 1;
}
.recent-search-remove {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f4f8f7 !important;
    border: none !important;
    border-right: 1px solid #e5efec !important;
    width: 28px !important;
    height: 100%;
    padding: 0 !important;
    font-size: 16px !important;
    line-height: 1 !important;
    color: #95a5a6 !important;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s, color .2s;
    flex-shrink: 0;
}
.recent-search-remove:hover {
    background: #fdecea !important;
    color: #e74c3c !important;
}
@media (max-width: 768px) {
    .spec-builder {
        grid-template-columns: 1fr;
    }
    .recent-searches {
        padding: 12px 12px 14px;
    }
    .recent-searches-title {
        font-size: 12.5px;
    }
}
@media (max-width: 576px) {
    .search-item {
        grid-template-columns: 100px 1fr;
        gap: 12px;
        padding: 12px;
    }
    .search-hero-title { font-size: 20px; }
    .search-hero-title svg { width: 22px; height: 22px; }
    .filter-actions { flex-direction: column; }
    .filter-actions .btn { width: 100%; }
    .search-input { padding: 12px 40px; font-size: 14px; }
    .search-icon { right: 12px; width: 18px; height: 18px; }
    .search-item-head { flex-direction: column; }
    .search-item-actions { justify-content: flex-start; flex-wrap: wrap; }
    .search-item-actions .product-icon-btn { width: 30px; height: 30px; }
    .search-item-actions .product-icon-btn svg { width: 14px; height: 14px; }
    .recent-search-btn { max-width: 150px; font-size: 12px; padding: 0 10px 0 12px !important; }
    .recent-search-chip { height: 32px; }
    .recent-search-remove { width: 26px !important; font-size: 15px !important; }
}
.cat-search-panel {
    background: linear-gradient(180deg, var(--avh-green-light) 0%, var(--avh-bg-soft) 100%);
    padding: 16px;
    border-radius: var(--avh-radius);
    border: 1px solid var(--avh-border);
    box-shadow: var(--avh-shadow-sm);
    margin-top: 20px;
    margin-bottom: 16px;
}
.cat-search-header {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid var(--avh-green);
    padding-bottom: 10px;
    margin-bottom: 12px;
}
.cat-search-header h3 {
    font-size: 15px;
    font-weight: 800;
    color: var(--avh-ink);
    margin: 0;
    line-height: 1.4;
}
.cat-search-header svg {
    width: 18px;
    height: 18px;
    stroke: var(--avh-green);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}
.cat-search-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cat-search-field input,
.cat-search-field select {
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--avh-border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 13.5px;
    color: var(--avh-ink);
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cat-search-field select[multiple] {
    min-height: 80px;
}
.cat-search-field input:focus,
.cat-search-field select:focus {
    outline: none;
    border-color: var(--avh-green);
    box-shadow: 0 0 0 3px rgba(20, 139, 116, 0.15);
}
.cat-search-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--avh-muted);
    margin-bottom: 5px;
}
.cat-search-price {
    display: flex;
    align-items: center;
    gap: 6px;
}
.cat-search-price input {
    flex: 1 1 0;
    min-width: 0;
}
.cat-search-price span {
    color: var(--avh-muted);
    font-weight: 700;
}
.cat-search-spec-input {
    margin-bottom: 6px;
}
.cat-search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--avh-green), var(--avh-green-dark));
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(20, 139, 116, 0.3);
    margin-top: 4px;
}
.cat-search-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(20, 139, 116, 0.4);
}
.cat-search-submit:active {
    transform: translateY(0);
}
.cat-search-submit svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}
.search-section-title {
    grid-column: 1 / -1;
    font-size: 17px;
    font-weight: 800;
    color: var(--avh-ink);
    padding: 8px 14px;
    border-right: 4px solid var(--avh-green);
    margin: 18px 0 6px;
    background: var(--avh-bg-soft);
    border-radius: 8px;
    line-height: 1.4;
}
.search-results:not([data-cols="2"]):not([data-cols="3"]):not([data-cols="4"]) .search-section-title {
    grid-column: auto;
    margin: 18px 0 6px;
}
mark {
    background: rgba(20, 139, 116, 0.22);
    color: var(--avh-ink);
    padding: 0 2px;
    border-radius: 3px;
}
.spec-builder-sidebar {
    grid-template-columns: 1fr;
    gap: 6px;
}
.spec-builder-sidebar select,
.spec-builder-sidebar .spec-add-btn {
    width: 100%;
}
.cat-search-panel .cat-combo-suggestions {
    max-height: 200px;
}
.cat-search-panel .cat-combo-chips {
    margin-bottom: 6px;
}
.cat-search-panel .cat-chip {
    font-size: 11.5px;
}