.header-live-search {
    max-width: 620px;
    z-index: 1060;
}

.header-live-search-field {
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    border-color: rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
}

.header-live-search.is-open .header-live-search-field,
.header-live-search-field:focus-within {
    border-color: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.18);
}

.header-live-search-input {
    color: #1e293b;
    font-size: 0.95rem;
    font-weight: 500;
    padding-top: 0.72rem;
    padding-bottom: 0.72rem;
}

.header-live-search-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.header-live-search .input-group-text {
    color: var(--primary-color, #4f46e5);
}

.header-live-search-submit {
    transition: background-color 0.2s ease, color 0.2s ease;
}

.header-live-search-submit:hover {
    background: var(--primary-light, rgba(79, 70, 229, 0.12));
    color: var(--primary-color, #4f46e5);
}

.header-live-search-clear:hover {
    color: #ef4444 !important;
}

.header-live-search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    overflow: hidden;
}

.header-live-search-status {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 1rem 1.1rem;
    color: #64748b;
    font-size: 0.88rem;
}

.header-live-search-list {
    max-height: 380px;
    overflow-y: auto;
}

.header-live-search-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 1rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.15s ease;
}

.header-live-search-item:last-child {
    border-bottom: 0;
}

.header-live-search-item:hover,
.header-live-search-item.is-active {
    background: var(--primary-light, rgba(79, 70, 229, 0.08));
}

.header-live-search-thumb {
    width: 52px;
    height: 52px;
    border-radius: 0.75rem;
    object-fit: cover;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.header-live-search-meta {
    min-width: 0;
    flex: 1;
}

.header-live-search-name {
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 0.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.header-live-search-name mark {
    background: rgba(79, 70, 229, 0.14);
    color: var(--primary-color, #4f46e5);
    padding: 0 0.15rem;
    border-radius: 0.2rem;
}

.header-live-search-price {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.header-live-search-price-current {
    color: var(--primary-color, #4f46e5);
    font-weight: 700;
    font-size: 0.92rem;
}

.header-live-search-price-mrp {
    color: #94a3b8;
    font-size: 0.78rem;
    text-decoration: line-through;
}

.header-live-search-item-icon {
    color: #cbd5e1;
    font-size: 1rem;
    flex-shrink: 0;
}

.header-live-search-item:hover .header-live-search-item-icon,
.header-live-search-item.is-active .header-live-search-item-icon {
    color: var(--primary-color, #4f46e5);
}

.header-live-search-footer {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.85rem 1rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    color: var(--primary-color, #4f46e5);
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
}

.header-live-search-footer:hover {
    background: var(--primary-light, rgba(79, 70, 229, 0.08));
    color: var(--primary-dark, #1e1b4b);
}

.header-live-search-results::-webkit-scrollbar,
.header-live-search-list::-webkit-scrollbar {
    width: 6px;
}

.header-live-search-results::-webkit-scrollbar-thumb,
.header-live-search-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}
