/* SVG Fast Product Search — search bar + live dropdown. */

.svgfs-bar {
    background: #fff;
    border-bottom: 1px solid #ececec;
}

.svgfs-bar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 20px;
}

.svgfs-form {
    position: relative;
    display: flex;
    max-width: 640px;
    margin: 0 auto;
}

.svgfs-input {
    flex: 1 1 auto;
    padding: 10px 16px;
    border: 2px solid #e3e3e3;
    border-right: 0;
    border-radius: 999px 0 0 999px;
    font-size: 15px;
    line-height: 1.4;
    outline: none;
    -webkit-appearance: none;
}

.svgfs-input:focus {
    border-color: #d6336c;
}

.svgfs-input::-webkit-search-decoration,
.svgfs-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.svgfs-submit {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 2px solid #d6336c;
    border-radius: 0 999px 999px 0;
    background: #d6336c;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s ease;
}

.svgfs-submit:hover,
.svgfs-submit:focus {
    background: #b02a5b;
    border-color: #b02a5b;
    color: #fff;
}

.svgfs-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    max-height: 420px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.svgfs-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 14px;
    text-decoration: none;
    color: #222;
    border-bottom: 1px solid #f4f4f4;
}

.svgfs-item:hover,
.svgfs-item.is-active {
    background: #fdf2f6;
}

.svgfs-item img,
.svgfs-thumb-ph {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    object-fit: cover;
    border-radius: 6px;
    background: #f2f2f2;
}

.svgfs-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.svgfs-title {
    font-size: 14px;
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.svgfs-title mark {
    background: #ffe3ee;
    color: inherit;
    padding: 0;
}

.svgfs-price {
    font-size: 13px;
    font-weight: 700;
    color: #0ca678;
}

.svgfs-more {
    display: block;
    padding: 11px 14px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: #d6336c;
    text-decoration: none;
}

.svgfs-more:hover,
.svgfs-more.is-active {
    background: #fdf2f6;
}

.svgfs-empty {
    padding: 14px;
    text-align: center;
    color: #777;
    font-size: 14px;
}

@media (max-width: 768px) {
    .svgfs-bar-inner {
        padding: 8px 12px;
    }

    .svgfs-input {
        font-size: 16px; /* prevents iOS zoom-on-focus */
    }

    .svgfs-results {
        max-height: 60vh;
    }
}
